/* ==========================================================================
   Zoobo — 官网样式表
   单文件设计系统：排版 / 栅格 / 组件
   ========================================================================== */

:root {
  --ink: #111111;
  --ink-2: #333333;
  --soft: #6e6e6e;
  --faint: #9b9b9b;
  --line: #e8e6e3;
  --line-soft: #f1efec;
  --bg: #ffffff;
  --sand: #f7f4ef;
  --sand-2: #efeae1;
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --content: 1120px;
  --nav-h: 72px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC",
    "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-serif: "Songti SC", "Noto Serif CJK SC", "STSong", "SimSun", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.28;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

::selection {
  background: #111;
  color: #fff;
}

/* ---------- 布局 ---------- */

.container {
  width: min(100% - 48px, var(--content));
  margin-inline: auto;
}

.section {
  padding: 104px 0;
}

.section--tight {
  padding: 72px 0;
}

.section--sand {
  background: var(--sand);
}

.section--line {
  border-top: 1px solid var(--line);
}

[id] {
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

/* ---------- 顶栏 ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.topbar.is-scrolled {
  border-bottom-color: var(--line);
}

.topbar__inner {
  width: min(100% - 48px, var(--content));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.01em;
  flex: 0 0 auto;
}

.brand__mark {
  width: 26px;
  height: 26px;
  display: block;
  color: var(--ink);
}

.brand__img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 32%;
  display: block;
  flex: 0 0 auto;
  box-shadow: 0 0 0 1px rgba(17, 17, 17, 0.08);
  background: #f5f3ef;
}

.brand__en {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--faint);
  font-weight: 500;
  margin-left: 2px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14.5px;
  color: var(--ink-2);
}

.nav a {
  position: relative;
  padding: 4px 0;
  color: var(--soft);
  transition: color 0.18s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1.5px;
  background: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease,
    border-color 0.18s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--ink);
  color: #fff;
}

.btn--primary:hover {
  background: #000;
  transform: translateY(-1px);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--ink);
}

.btn--sm {
  height: 38px;
  padding: 0 16px;
  font-size: 13.5px;
}

.btn--lg {
  height: 52px;
  padding: 0 28px;
  font-size: 15px;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 72px;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 545px) minmax(0, 1fr);
  align-items: center;
  gap: 36px;
}

.hero__media {
  position: relative;
  margin-right: calc(-1 * clamp(0px, 5vw, 78px));
}

.hero__media img {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

.hero__media--mobile {
  display: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 22px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--ink);
  display: block;
}

h1.hero__title {
  font-size: clamp(36px, 4.6vw, 57px);
  letter-spacing: -0.035em;
  line-height: 1.14;
  margin-bottom: 26px;
}

.hero__sub {
  font-size: 17px;
  line-height: 1.85;
  color: var(--soft);
  max-width: 30em;
  margin-bottom: 34px;
}

.hero__sub strong {
  color: var(--ink);
  font-weight: 600;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-size: 13px;
  color: var(--soft);
}

.hero__badge svg {
  width: 15px;
  height: 15px;
}

/* ---------- 数据条 ---------- */

.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stats__item {
  padding: 30px 26px;
  border-left: 1px solid var(--line);
}

.stats__item:first-child {
  border-left: 0;
  padding-left: 0;
}

.stats__num {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stats__num span {
  font-size: 15px;
  font-weight: 500;
  color: var(--soft);
  margin-left: 3px;
}

.stats__label {
  margin-top: 8px;
  font-size: 13px;
  color: var(--soft);
  letter-spacing: 0.02em;
}

/* ---------- 章节标题 ---------- */

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--center .eyebrow {
  justify-content: center;
}

.section-head h2 {
  font-size: clamp(27px, 3.3vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1.24;
  margin-bottom: 18px;
}

.section-head p {
  font-size: 16.5px;
  color: var(--soft);
  line-height: 1.85;
}

.section-head p + p {
  margin-top: 14px;
}

/* ---------- 卡片栅格 ---------- */

.grid {
  display: grid;
  gap: 20px;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: #fff;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: #cfcbc4;
}

.card__icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--ink);
}

.card__icon svg {
  width: 19px;
  height: 19px;
}

.card h3 {
  font-size: 17.5px;
  margin-bottom: 10px;
}

.card p {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--soft);
}

.card__more {
  margin-top: auto;
  padding-top: 18px;
  font-size: 13.5px;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card__more::after {
  content: "→";
  transition: transform 0.2s ease;
}

.card:hover .card__more::after {
  transform: translateX(3px);
}

/* ---------- 三步机制 ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.step {
  padding: 36px 32px 0 0;
  border-right: 1px solid var(--line);
}

.step:last-child {
  border-right: 0;
  padding-right: 0;
}

.step__num {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--faint);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}

.step h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.step p {
  font-size: 14.5px;
  color: var(--soft);
  line-height: 1.85;
  max-width: 26em;
}

/* ---------- 信件样式 ---------- */

.letter {
  background: var(--sand);
  border-radius: var(--radius-l);
  padding: 64px clamp(28px, 6vw, 84px);
  position: relative;
  overflow: hidden;
}

.letter__meta {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.letter__meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--faint);
}

.letter__body {
  font-family: var(--font-serif);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 2;
  color: var(--ink-2);
  max-width: 40em;
}

.letter__body p + p {
  margin-top: 18px;
}

.letter__sign {
  margin-top: 30px;
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--soft);
  text-align: right;
}

/* ---------- 旅伴卡 ---------- */

.chars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.char {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 32px 30px 26px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease;
}

.char:hover {
  border-color: #cfcbc4;
}

.char__species {
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 14px;
}

.char__name {
  font-family: var(--font-serif);
  font-size: 27px;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.char__role {
  font-size: 14px;
  color: var(--soft);
  margin-top: 6px;
  margin-bottom: 20px;
}

.char__quote {
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.95;
  color: var(--ink-2);
  padding-left: 16px;
  border-left: 2px solid var(--sand-2);
  margin-bottom: 22px;
}

.char__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}

.tag {
  font-size: 12px;
  color: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 11px;
  line-height: 1.7;
}

.char__facts {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: var(--soft);
}

.char__facts div {
  display: flex;
  gap: 10px;
}

.char__facts dt {
  flex: 0 0 46px;
  color: var(--faint);
  margin: 0;
}

.char__facts dd {
  margin: 0;
  color: var(--ink-2);
}

/* ---------- 功能详情 ---------- */

.feature {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}

.feature:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.feature__grid {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.feature__side .step__num {
  margin-bottom: 14px;
}

.feature__side h2 {
  font-size: 27px;
  letter-spacing: -0.02em;
}

.feature__body > p {
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-2);
  margin-bottom: 24px;
  max-width: 42em;
}

.feature__body > p.def {
  font-size: 17.5px;
  color: var(--ink);
}

.feature__list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
}

.feature__list li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--soft);
  line-height: 1.8;
}

.feature__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 1.5px;
  background: var(--ink);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.mini {
  background: var(--sand);
  border-radius: var(--radius-s);
  padding: 16px 18px;
}

.mini b {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  font-weight: 600;
}

.mini span {
  font-size: 12.5px;
  color: var(--soft);
  line-height: 1.7;
  display: block;
}

/* ---------- 表格 ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 560px;
}

th,
td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

thead th {
  background: var(--sand);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

tbody tr:last-child td {
  border-bottom: 0;
}

td:first-child {
  color: var(--ink-2);
}

td.yes {
  color: var(--ink);
  font-weight: 500;
}

td.no {
  color: var(--faint);
}

/* ---------- FAQ ---------- */

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 26px 44px 26px 0;
  font-size: 16.5px;
  font-weight: 500;
  position: relative;
  letter-spacing: -0.01em;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 1.5px solid var(--soft);
  border-bottom: 1.5px solid var(--soft);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.22s ease;
}

.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq .answer {
  padding: 0 60px 28px 0;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--soft);
  max-width: 52em;
}

.faq .answer p + p {
  margin-top: 12px;
}

/* ---------- 通知条 ---------- */

.notice {
  display: flex;
  gap: 14px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--sand);
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-2);
}

.notice svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--soft);
}

/* ---------- 结尾 CTA ---------- */

.cta {
  text-align: center;
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.cta h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.cta p {
  color: var(--soft);
  font-size: 16px;
  margin-bottom: 32px;
}

.cta .btn-row {
  justify-content: center;
}

/* ---------- 页脚 ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
  background: #fcfbfa;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
  padding-bottom: 48px;
}

.footer__brand p {
  margin-top: 16px;
  font-size: 13.5px;
  color: var(--soft);
  line-height: 1.85;
  max-width: 24em;
}

.footer__col h4 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
  font-weight: 500;
}

.footer__col a {
  display: block;
  font-size: 14px;
  color: var(--soft);
  padding: 5px 0;
  transition: color 0.18s ease;
}

.footer__col a:hover {
  color: var(--ink);
}

.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
  color: var(--faint);
}

.footer__bottom a {
  color: var(--faint);
}

.footer__bottom a:hover {
  color: var(--ink);
}

/* ---------- 通用文本块 ---------- */

.prose {
  max-width: 46em;
}

.prose h2 {
  font-size: clamp(24px, 2.6vw, 32px);
  margin: 48px 0 16px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 18px;
  margin: 32px 0 10px;
}

.prose p {
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--ink-2);
  margin-bottom: 16px;
}

.prose ul {
  margin: 0 0 18px;
  padding-left: 20px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.9;
}

.prose li {
  margin-bottom: 6px;
}

.prose a {
  border-bottom: 1px solid var(--line);
}

.prose a:hover {
  border-bottom-color: var(--ink);
}

/* ---------- 响应式 ---------- */

@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero__media {
    display: block;
    margin: 4px 0 0;
  }

  .hero__media img {
    width: 100%;
  }

  .feature__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .nav {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--line);
    display: none;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 13px 0;
    border-bottom: 1px solid var(--line-soft);
    font-size: 15px;
  }

  .nav a[aria-current="page"]::after {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 620px) {
  .nav-actions .btn--primary {
    display: none;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 15.5px;
  }

  .container {
    width: calc(100% - 40px);
  }

  .section {
    padding: 68px 0;
  }

  .hero {
    padding: 48px 0 56px;
  }

  .hero__sub {
    font-size: 16px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats__item {
    padding: 22px 18px;
    border-top: 1px solid var(--line);
  }

  .stats__item:nth-child(1),
  .stats__item:nth-child(2) {
    border-top: 0;
  }

  .stats__item:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 28px 0;
  }

  .step:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .grid--2,
  .grid--3,
  .grid--4,
  .chars {
    grid-template-columns: 1fr;
  }

  .mini-grid {
    grid-template-columns: 1fr;
  }

  .letter {
    padding: 40px 24px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .section-head {
    margin-bottom: 40px;
  }

  .faq summary {
    font-size: 15.5px;
    padding: 22px 36px 22px 0;
  }

  .faq .answer {
    padding-right: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
    animation: none !important;
  }
}

/* ---------- 补充：旅伴描述 ---------- */

.char__desc {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--soft);
  margin-bottom: 20px;
}

.section--sand .card {
  background: #fff;
  border-color: #e6e0d5;
}

.page-head {
  padding: 72px 0 44px;
}

.page-head h1 {
  font-size: clamp(32px, 4.4vw, 52px);
  letter-spacing: -0.035em;
  line-height: 1.16;
  margin-bottom: 20px;
  max-width: 20em;
}

.page-head .hero__sub {
  margin-bottom: 0;
}

.anchor-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.anchor-bar__inner {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.anchor-bar__inner::-webkit-scrollbar {
  display: none;
}

.anchor-bar a {
  font-size: 13.5px;
  color: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  white-space: nowrap;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.anchor-bar a:hover {
  color: var(--ink);
  border-color: var(--ink);
}

/* ---------- 带插图的主标题 ---------- */

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  align-items: center;
  gap: 56px;
}

.page-hero--wide {
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
}

.page-hero__media img {
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
}

@media (max-width: 900px) {
  .page-hero,
  .page-hero--wide {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-hero__media {
    max-width: 320px;
  }
}

/* ---------- 语言切换 ---------- */

.lang {
  position: relative;
  flex: 0 0 auto;
}

.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.lang__btn:hover {
  border-color: #cfcbc4;
  color: var(--ink);
}

.lang__globe {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.lang__chev {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  transition: transform 0.2s ease;
  opacity: 0.55;
}

.lang.is-open .lang__chev {
  transform: rotate(180deg);
}

.lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 176px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(17, 17, 17, 0.09);
  display: none;
  z-index: 70;
}

.lang.is-open .lang__menu {
  display: block;
}

.lang__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
  white-space: nowrap;
  transition: background 0.15s ease;
}

a.lang__item:hover {
  background: var(--sand);
}

.lang__item.is-active {
  color: var(--ink);
  font-weight: 600;
}

.lang__item.is-active::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
}

.lang__item.is-disabled {
  color: var(--faint);
  cursor: default;
}

.lang__item i {
  font-style: normal;
  font-size: 11px;
  color: var(--faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 7px;
  line-height: 1.7;
}

@media (max-width: 560px) {
  .lang__label {
    display: none;
  }

  .lang__btn {
    padding: 0 10px;
    gap: 5px;
  }
}
