/* ==========================================================================
   XHMH · Global Chapters
   与北美战略中心同一套设计语言：白底 / 大留白 / 大字 / 极少颜色 / 细线
   ========================================================================== */

/* ---------- 1. Token ---------- */
:root {
  --ink:        #0B0C0E;
  --ink-soft:   #16181D;
  --paper:      #FFFFFF;
  --mist:       #F5F6F8;
  --line:       #E6E8EC;
  --muted:      #6B7280;
  --text:       #1A1C20;
  --indigo:     #2B4CF0;
  --indigo-600: #1F3AD0;
  --gold:       #C7A265;

  --r-card: 16px;
  --r-img:  14px;
  --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(11, 12, 14, .04);
  --shadow-2: 0 12px 32px -12px rgba(11, 12, 14, .18);

  --max: 1200px;
  --pad: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 9vw, 132px);

  --font: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont,
          "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ---------- 2. 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

.section { padding-block: var(--section); }
.section--mist { background: var(--mist); }
.section--tight { padding-block: clamp(56px, 7vw, 88px); }

/* ---------- 3. 字阶 ---------- */
.h2 {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 10px 0 0;
}
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.75; color: var(--muted); margin: 0; }
.body { font-size: 16.5px; line-height: 1.85; color: var(--muted); margin: 0; }
.small { font-size: 13.5px; line-height: 1.7; color: var(--muted); margin: 0; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.eyebrow--light { color: rgba(255, 255, 255, .55); }

/* ---------- 4. 导航 ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  color: #fff;
  transition: background .3s ease, box-shadow .3s ease, color .3s ease;
}
.nav__inner { display: flex; align-items: center; gap: 28px; height: 72px; }

.nav__brand { display: flex; align-items: baseline; gap: 10px; font-weight: 700; letter-spacing: -.02em; }
.nav__brand b { font-size: 19px; }
.nav__brand span { font-size: 11px; letter-spacing: .18em; opacity: .65; }

.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: 15px; }
.nav__links a { opacity: .82; transition: opacity .2s ease; }
.nav__links a:hover { opacity: 1; }

.nav__side { display: flex; align-items: center; gap: 18px; }
.lang { font-size: 13px; letter-spacing: .04em; opacity: .9; }
.lang b { opacity: 1; }
.lang i { font-style: normal; opacity: .35; padding-inline: 7px; }

.nav.is-solid {
  background: rgba(255, 255, 255, .84);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  color: var(--text);
  box-shadow: 0 1px 0 var(--line);
}

.nav__burger { display: none; }
.nav__mobile {
  position: fixed; inset: 72px 0 auto; z-index: 55;
  background: #fff; padding: 14px var(--pad) 34px;
  display: grid; gap: 0; box-shadow: 0 24px 40px -24px rgba(11,12,14,.3);
}
.nav__mobile[hidden] { display: none; }
.nav__mobile > a {
  font-size: 21px; font-weight: 600; letter-spacing: -.01em;
  padding: 15px 0; border-bottom: 1px solid var(--line);
}
.nav__mobile-lang { display: flex; gap: 20px; margin-top: 22px; font-size: 15px; color: var(--muted); }
.nav__mobile-lang .is-current { color: var(--ink); font-weight: 600; }

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding-inline: 30px;
  border: 1px solid transparent; border-radius: var(--r-pill);
  font-family: inherit; font-size: 15.5px; font-weight: 600; letter-spacing: -.01em;
  cursor: pointer; white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:active { transform: translateY(1px); }

.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--ink-soft); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { background: rgba(255,255,255,.9); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--accent { background: var(--indigo); color: #fff; height: 42px; padding-inline: 22px; font-size: 14.5px; }
.btn--accent:hover { background: var(--indigo-600); }
.btn--block { display: flex; width: 100%; margin-top: 26px; }

/* ---------- 6. 首屏 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(100svh, 940px);
  display: flex;
  align-items: center;
  padding-block: clamp(124px, 15vw, 196px) clamp(84px, 10vw, 128px);
  background: var(--ink);
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.085) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(78% 66% at 50% 44%, #000 18%, transparent 100%);
  mask-image: radial-gradient(78% 66% at 50% 44%, #000 18%, transparent 100%);
}
.hero::after {
  content: "";
  position: absolute;
  width: min(940px, 96vw);
  aspect-ratio: 1;
  right: -20%;
  top: -30%;
  background: radial-gradient(circle, rgba(43,76,240,.28), transparent 62%);
  pointer-events: none;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  width: 100%;
}
.hero__title {
  font-size: clamp(56px, 9vw, 124px);
  font-weight: 700;
  line-height: .94;
  letter-spacing: -.045em;
  margin: 18px 0 0;
}
.hero__tag {
  margin: 18px 0 0;
  color: var(--gold);
  font-size: clamp(15px, 1.5vw, 20px);
  letter-spacing: .055em;
}
.hero__lead {
  margin: 26px 0 0;
  max-width: 47ch;
  color: rgba(255,255,255,.7);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.8;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero__globe {
  justify-self: end;
  align-self: center;
  display: grid; gap: 18px; justify-items: end;
  width: 100%; max-width: 500px;
}
.hero__globe svg { width: 100%; height: auto; overflow: visible; }

/* 数据球 */
.g-ticks path { fill: none; stroke: rgba(255,255,255,.16); stroke-width: 1; }
.g-grid path { fill: none; stroke: rgba(255,255,255,.075); stroke-width: 1; }
.g-arcs path {
  fill: none;
  stroke: url(#gArc);
  stroke-width: 1.3;
  stroke-dasharray: 4 9;
  opacity: .72;
  animation: gflow 7s linear infinite;
}
.g-node .g-halo {
  fill: none;
  stroke-width: 1;
  transform-box: fill-box;
  transform-origin: center;
  animation: gpulse 3.6s ease-out infinite;
}
.g-node--indigo .g-halo { stroke: #5B77FF; }
.g-node--indigo .g-core { fill: #5B77FF; }
.g-node--hq .g-halo { stroke: #E3BE86; stroke-width: 1.2; }
.g-node--hq .g-halo--slow { animation-delay: 1.8s; }
.g-node--hq .g-core { fill: #E3BE86; }
.g-node--white .g-halo { stroke: rgba(255,255,255,.75); animation-delay: 1s; }
.g-node--white .g-core { fill: rgba(255,255,255,.9); }
.g-node--dim .g-halo { stroke: rgba(255,255,255,.45); stroke-dasharray: 2 4; animation-delay: 1.5s; }
.g-node--dim .g-core { fill: rgba(255,255,255,.5); }
.g-label {
  fill: rgba(255,255,255,.42);
  font-family: var(--font);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .2em;
}
.g-label--hq { fill: rgba(227,190,134,.9); letter-spacing: .24em; }

/* 大陆轮廓 */
.g-land {
  fill: rgba(233,238,255,.105);
  stroke: rgba(233,238,255,.26);
  stroke-width: .65;
  stroke-linejoin: round;
}

.globe__legend {
  display: flex; flex-wrap: wrap; gap: 16px;
  margin: 0; padding: 0; list-style: none;
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.45);
}
.globe__legend li { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot--indigo { background: #5B77FF; }
.dot--hq { background: #E3BE86; }
.dot--white { background: rgba(255,255,255,.85); }
.dot--dim {
  width: 7px; height: 7px;
  background: transparent;
  border: 1px dashed rgba(255,255,255,.5);
}

@keyframes gflow { to { stroke-dashoffset: -130; } }
@keyframes gdash { to { stroke-dashoffset: -220; } }
@keyframes gpulse {
  0%        { transform: scale(.8); opacity: .6; }
  70%, 100% { transform: scale(2.2); opacity: 0; }
}

.hero__scroll {
  position: absolute; right: var(--pad); bottom: 26px; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 10px; letter-spacing: .22em;
  color: rgba(255,255,255,.5);
}
.hero__scroll i { font-style: normal; font-size: 15px; animation: bob 1.9s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: .5; }
  50%      { transform: translateY(6px); opacity: 1; }
}

/* ---------- 7. 数字条 ---------- */
.strip { background: #fff; border-bottom: 1px solid var(--line); }
.strip__inner {
  display: flex; flex-wrap: wrap;
  gap: clamp(26px, 6vw, 76px);
  padding-block: 30px;
}
.strip__item { display: flex; align-items: baseline; gap: 10px; }
.strip__item b {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700; line-height: 1; letter-spacing: -.03em;
}
.strip__item span { font-size: 14px; color: var(--muted); }

/* ---------- 8. 区块标题 ---------- */
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
  margin-bottom: clamp(28px, 4vw, 46px);
}
.section-head__note { max-width: 46ch; }

/* ---------- 9. 分会卡片 ---------- */
.bgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 24px); }
.bgrid--three { grid-template-columns: repeat(3, 1fr); }

.bcard {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: 274px;
  padding: clamp(24px, 2.6vw, 32px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-1);
  transition: transform .28s cubic-bezier(.22,.61,.36,1), box-shadow .28s ease, border-color .28s ease;
}
.bcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: transparent; }

.bcard__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 22px;
}
.bcard__code {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--mist);
  font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--ink);
}
.bcard__region {
  font-size: 11.5px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--muted);
}
.bcard__name {
  margin: 0;
  font-size: clamp(19px, 1.8vw, 23px);
  font-weight: 650; line-height: 1.3; letter-spacing: -.015em;
}
.bcard__city { margin: 8px 0 0; font-size: 14.5px; color: var(--muted); }
.bcard__lead {
  margin: auto 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px; line-height: 1.6; color: var(--muted);
}
.bcard__go {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px;
  font-size: 14px; font-weight: 600; color: var(--indigo);
}
.bcard__go span { transition: transform .2s ease; }
.bcard:hover .bcard__go span { transform: translateX(4px); }

.bcard--planning { border-style: dashed; box-shadow: none; }
.bcard--planning:hover { border-color: var(--line); }

/* ---------- 10. 中国城市 ---------- */
.domestic {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.domestic__note { margin-top: 18px; max-width: 44ch; }
.cities { display: flex; flex-wrap: wrap; gap: 10px; }
.city {
  display: inline-flex; align-items: center;
  padding: 9px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 14.5px;
}
.city--hq { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- 11. 联络横幅 ---------- */
.cta {
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(24px, 4vw, 48px); flex-wrap: wrap;
  padding: clamp(32px, 5vw, 56px);
  background: var(--ink); color: #fff;
  border-radius: 24px;
}
.cta__title {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700; line-height: 1.2; letter-spacing: -.025em;
}
.cta__text { margin: 14px 0 0; max-width: 52ch; font-size: 15.5px; color: rgba(255,255,255,.66); }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 12. 分会详情页 ---------- */
.phero {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
  padding-block: clamp(120px, 14vw, 184px) clamp(56px, 7vw, 92px);
}
.phero::after {
  content: "";
  position: absolute;
  width: min(720px, 80vw); aspect-ratio: 1;
  right: -12%; bottom: -60%;
  background: radial-gradient(circle, rgba(43,76,240,.26), transparent 62%);
  pointer-events: none;
}
.phero .wrap { position: relative; z-index: 1; }
.phero__back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: rgba(255,255,255,.6);
  transition: color .2s ease;
}
.phero__back:hover { color: #fff; }
.phero__meta { display: flex; align-items: center; gap: 14px; margin: 28px 0 20px; }
.phero__code {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  font-size: 13px; font-weight: 700; letter-spacing: .1em;
}
.phero__region {
  font-size: 11.5px; letter-spacing: .17em; text-transform: uppercase;
  color: rgba(255,255,255,.58);
}
.badge {
  padding: 5px 12px;
  border: 1px solid rgba(199,162,101,.5);
  border-radius: var(--r-pill);
  color: var(--gold);
  font-size: 12px; letter-spacing: .08em;
}
.phero__title {
  margin: 0;
  font-size: clamp(34px, 5.4vw, 68px);
  font-weight: 700; line-height: 1.05; letter-spacing: -.035em;
}
.phero__city { margin: 16px 0 0; font-size: 17px; color: rgba(255,255,255,.62); }
.phero__summary {
  margin: 22px 0 0; max-width: 62ch;
  font-size: clamp(16px, 1.4vw, 18px); line-height: 1.8;
  color: rgba(255,255,255,.78);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.prose { font-size: 16.5px; line-height: 1.9; color: var(--muted); }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.2em; }
.prose h3 {
  margin: 1.8em 0 .6em;
  font-size: clamp(19px, 1.7vw, 22px);
  font-weight: 650; color: var(--text); letter-spacing: -.01em;
}
.prose ul { margin: 0 0 1.2em; padding-left: 1.2em; }
.prose a { color: var(--indigo); border-bottom: 1px solid rgba(43,76,240,.3); }

.facts { margin: 0; border-top: 1px solid var(--line); }
.fact { padding-block: 18px; border-bottom: 1px solid var(--line); }
.fact dt {
  margin-bottom: 6px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.fact dd { margin: 0; font-size: 16.5px; font-weight: 500; line-height: 1.6; color: var(--text); }
.aside__note { margin-top: 16px; }

/* ---------- 13. 404 ---------- */
.nf {
  padding-block: clamp(160px, 20vw, 240px) clamp(120px, 16vw, 200px);
  min-height: 72svh;
}
.nf__title {
  margin: 16px 0 0;
  font-size: clamp(34px, 5.6vw, 72px);
  font-weight: 700; line-height: 1.06; letter-spacing: -.03em;
}
.nf__text { margin: 20px 0 34px; max-width: 52ch; }

/* ---------- 14. 页脚 ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.72); }
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(24px, 3vw, 48px);
  padding-block: clamp(56px, 6vw, 88px);
}
.footer h4 { margin: 0 0 16px; color: #fff; font-size: 14px; font-weight: 650; letter-spacing: .02em; }
.footer p, .footer li { margin: 0; font-size: 14.5px; line-height: 1.9; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer a:hover { color: #fff; }
.footer__bottom {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding-block: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px; color: rgba(255,255,255,.48);
}
.footer__bottom .lang { margin-left: auto; }

/* ---------- 15. 滚动淡入 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s cubic-bezier(.22,.61,.36,1), transform .55s cubic-bezier(.22,.61,.36,1);
}
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .gl-pulse, .hero__scroll i { animation: none; }
}

/* ---------- 16. 细节 ---------- */
::selection { background: rgba(43,76,240,.16); }

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--indigo);
  outline-offset: 3px;
}

/* 小标题前的短横线 */
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px; height: 1px;
  margin-right: 10px;
  vertical-align: middle;
  background: currentColor;
  opacity: .4;
}

#chapters { scroll-margin-top: 92px; }

/* 卡片顶部一线光，悬停出现 */
.bcard::after {
  content: "";
  position: absolute;
  left: 24px; right: 24px; top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(43,76,240,.6), transparent);
  opacity: 0;
  transition: opacity .3s ease;
}
.bcard:hover::after { opacity: 1; }

.bcard__name { text-wrap: balance; }
.hero__lead { text-wrap: pretty; }
.strip__item b { font-variant-numeric: tabular-nums; }

/* 城市标签 */
.city { transition: transform .2s ease, border-color .2s ease; }
.city:hover { transform: translateY(-2px); border-color: var(--ink); }

/* 联络横幅：淡淡点阵 */
.cta { position: relative; overflow: hidden; }
.cta::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(60% 130% at 100% 0%, #000, transparent 72%);
  mask-image: radial-gradient(60% 130% at 100% 0%, #000, transparent 72%);
  pointer-events: none;
}
.cta > * { position: relative; }

/* 分会页顶部：点阵 */
.phero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(70% 70% at 18% 18%, #000, transparent 100%);
  mask-image: radial-gradient(70% 70% at 18% 18%, #000, transparent 100%);
  pointer-events: none;
}

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1024px) {
  .bgrid--three { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .domestic { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .hero { min-height: auto; padding-block: clamp(120px, 18vw, 160px) 72px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__globe { max-width: 340px; justify-self: start; justify-items: start; margin-top: 12px; }
  .hero__scroll { display: none; }
  .bgrid { grid-template-columns: 1fr; }
  .bgrid--three { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .nav__links, .nav__side { display: none; }
  .nav__burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; margin-left: auto;
    border: 1px solid currentColor; border-radius: 12px;
    background: transparent; color: inherit; font-size: 18px; cursor: pointer;
  }
  .hero__actions .btn { width: 100%; }
  .cta { border-radius: 18px; }
  .cta__actions { width: 100%; }
  .cta__actions .btn { flex: 1; }
  .footer__grid { grid-template-columns: 1fr; }
  .strip__inner { gap: 20px 32px; }
}
