/* ==========================================================================
   亚新指南 · 共享 Site Kit  /assets/site.css
   深墨蓝档案底 · 左侧品牌轨道 · 左右分置导航 · 纸面阅读区
   ========================================================================== */

/* ---------- 1. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ul, ol { margin: 0; }

ul, ol { padding: 0; list-style: none; }

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

button { font: inherit; }

a { color: inherit; }

table { border-collapse: collapse; width: 100%; }

/* ---------- 2. Tokens ---------- */
:root {
  /* 色板 */
  --ink-900: #0A1220;   /* 夜幕蓝 */
  --ink-800: #101B2D;   /* 深墨蓝 */
  --ink-700: #1B2A42;   /* 墨蓝面板 */
  --red: #D6402A;       /* 亚新红 */
  --red-deep: #C1341F;
  --gold: #E8B04B;      /* 暖砂金 */
  --gold-soft: #F2BD5C;
  --cyan: #2EC4B6;      /* 信号青 */
  --paper: #F4F1EA;     /* 暖纸白 */
  --mist: #CED5E0;      /* 浅雾 */
  --graphite: #5B6478;  /* 石墨蓝 */
  --graphite-ink: #3A4356;

  /* 派生 */
  --line-dark: rgba(206, 213, 224, 0.18);
  --line-dark-soft: rgba(206, 213, 224, 0.10);
  --line-light: rgba(16, 27, 45, 0.12);
  --muted: rgba(206, 213, 224, 0.66);

  /* 尺度 */
  --rail-w: 92px;
  --header-h: 72px;
  --maxw: 1280px;
  --gutter: 40px;

  /* 圆角 */
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --r-pill: 999px;

  /* 动效 */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-micro: 160ms;
  --t-block: 420ms;
  --t-drawer: 300ms;

  /* 字体 */
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong, SimSun, serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
}

/* ---------- 3. Base ---------- */
html { scroll-padding-top: calc(var(--header-h) + 20px); }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.78;
  color: var(--mist);
  background-color: var(--ink-800);
  background-image:
    radial-gradient(1200px 620px at 78% -10%, rgba(46, 196, 182, 0.07), transparent 70%),
    radial-gradient(900px 520px at 4% 8%, rgba(214, 64, 42, 0.10), transparent 68%);
  background-repeat: no-repeat;
  padding-left: var(--rail-w);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--paper);
}

p { max-width: 74ch; }

::selection { background: var(--red); color: #fff; }

/* ---------- 4. Focus & a11y ---------- */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 8px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, -140%);
  z-index: 200;
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 0 0 16px 16px;
  background: var(--gold);
  color: var(--ink-900);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: transform var(--t-micro) var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- 5. 左侧品牌轨道 ---------- */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail-w);
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 26px 0 22px;
  background: var(--ink-900);
  border-right: 1px solid var(--line-dark);
}

.rail__brand {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.34em;
  color: var(--paper);
  text-decoration: none;
  padding: 10px 4px;
  transition: color var(--t-micro) var(--ease);
}
.rail__brand:hover { color: var(--gold); }

.rail__spine {
  position: relative;
  flex: 1 1 auto;
  width: 1px;
  min-height: 80px;
  background: linear-gradient(180deg,
    transparent 0%,
    rgba(214, 64, 42, 0.85) 18%,
    rgba(214, 64, 42, 0.85) 82%,
    transparent 100%);
}
.rail__spine::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 7px;
  height: 7px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(214, 64, 42, 0.16);
}

.rail__top {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 58px;
  min-height: 58px;
  padding: 8px 4px;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-pill);
  background: rgba(27, 42, 66, 0.72);
  color: var(--mist);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity var(--t-micro) var(--ease),
    transform var(--t-micro) var(--ease),
    visibility var(--t-micro) var(--ease),
    color var(--t-micro) var(--ease),
    border-color var(--t-micro) var(--ease);
}
.rail__top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.rail__top:hover {
  color: var(--gold);
  border-color: rgba(232, 176, 75, 0.55);
}
.rail__top-icon { font-size: 15px; line-height: 1; }
.rail__top-text {
  font-size: 10px;
  letter-spacing: 0.12em;
  line-height: 1;
}

/* ---------- 6. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(10, 18, 32, 0.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-dark);
  transition:
    background var(--t-micro) var(--ease),
    box-shadow var(--t-micro) var(--ease);
}
.site-header[data-scrolled="true"] {
  background: rgba(10, 18, 32, 0.96);
  box-shadow: 0 14px 36px rgba(10, 18, 32, 0.55);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  max-width: var(--maxw);
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand { display: none; }

.brand__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(214, 64, 42, 0.18);
}

.brand__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--paper);
}

/* 导航：左右分置，中间留白 */
.nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  min-width: 0;
}

.nav__group {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  color: var(--mist);
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color var(--t-micro) var(--ease),
    background-color var(--t-micro) var(--ease);
}
.nav__link:hover {
  color: var(--paper);
  background: rgba(206, 213, 224, 0.08);
}
.nav__link:focus-visible { color: var(--paper); }
.nav__link[aria-current="page"] { color: var(--paper); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--red);
}

.nav-toggle { display: none; }

/* 阅读进度条 */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--red) 0%, var(--gold) 100%);
  transition: width 100ms linear;
  pointer-events: none;
}

/* ---------- 7. 移动端底部常驻组 ---------- */
.mobile-dock { display: none; }

/* ---------- 8. Footer ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink-900);
  border-top: 1px solid var(--line-dark);
  color: var(--mist);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(120px, 24vw, 340px);
  height: 2px;
  background: var(--red);
}
.site-footer::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 196, 182, 0.10), transparent 66%);
  pointer-events: none;
}

.site-footer__inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 76px var(--gutter) 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.35fr 1fr;
  gap: 44px;
  padding-bottom: 56px;
}

.footer__col { min-width: 0; }

.footer__logo {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-decoration: none;
  transition: color var(--t-micro) var(--ease);
}
.footer__logo:hover { color: var(--gold); }

.footer__slogan {
  max-width: 22ch;
  margin: 16px 0 20px;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--paper);
}

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer__meta li {
  padding: 4px 12px;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-pill);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.footer__title {
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 15px;
}
.footer__list a {
  display: inline-block;
  padding: 2px 0;
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color var(--t-micro) var(--ease),
    border-color var(--t-micro) var(--ease);
}
.footer__list a:hover {
  color: var(--paper);
  border-bottom-color: var(--red);
}

.footer__list--plain { gap: 14px; }
.footer__list--plain li {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer__key {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer__val {
  color: var(--paper);
  font-size: 15px;
  line-height: 1.65;
  word-break: break-word;
}

.footer__col--cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.footer__col--cta .footer__title { margin-bottom: 2px; }

.footer__note {
  max-width: 30ch;
  margin-bottom: 6px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  padding: 22px 0 28px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.footer__status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
}

/* ---------- 9. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--t-micro) var(--ease),
    color var(--t-micro) var(--ease),
    border-color var(--t-micro) var(--ease),
    box-shadow var(--t-micro) var(--ease),
    transform var(--t-micro) var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--red);
  color: #FFFFFF;
}
.btn--primary:hover {
  background: var(--red-deep);
  box-shadow: 0 10px 26px rgba(214, 64, 42, 0.30);
}

.btn--gold {
  background: var(--gold);
  color: var(--ink-900);
}
.btn--gold:hover {
  background: var(--gold-soft);
  box-shadow: 0 10px 26px rgba(232, 176, 75, 0.26);
}

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(206, 213, 224, 0.35);
}
.btn--ghost:hover {
  color: var(--gold);
  border-color: rgba(232, 176, 75, 0.65);
}

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

/* ---------- 10. 标签与状态点 ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-pill);
  background: rgba(27, 42, 66, 0.6);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--mist);
  white-space: nowrap;
}
.pill--cyan {
  color: var(--cyan);
  border-color: rgba(46, 196, 182, 0.45);
  background: rgba(46, 196, 182, 0.10);
}
.pill--gold {
  color: var(--gold);
  border-color: rgba(232, 176, 75, 0.45);
  background: rgba(232, 176, 75, 0.10);
}
.pill--red {
  color: #FFFFFF;
  border-color: var(--red);
  background: var(--red);
}

.dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mist);
}
.dot--cyan { background: var(--cyan); box-shadow: 0 0 0 4px rgba(46, 196, 182, 0.16); }
.dot--gold { background: var(--gold); box-shadow: 0 0 0 4px rgba(232, 176, 75, 0.16); }
.dot--red  { background: var(--red);  box-shadow: 0 0 0 4px rgba(214, 64, 42, 0.16); }

@keyframes yx-dot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(46, 196, 182, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(46, 196, 182, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 196, 182, 0); }
}
.dot--pulse { animation: yx-dot-pulse 1.6s var(--ease) 1; }

/* ---------- 11. 布局与容器 ---------- */
.content-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.grid {
  display: grid;
  gap: 24px;
}
.grid--12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.grid--halves { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--thirds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--quarters { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.surface-paper {
  background: var(--paper);
  color: var(--graphite-ink);
}
.surface-paper h1,
.surface-paper h2,
.surface-paper h3,
.surface-paper h4 { color: var(--ink-800); }

.surface-dark {
  background: var(--ink-800);
  color: var(--mist);
}

.card {
  padding: 28px;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  background: var(--ink-700);
}
.card--lg {
  padding: 32px;
  border-radius: var(--r-lg);
}
.card--paper {
  background: var(--paper);
  border-color: var(--line-light);
  color: var(--graphite-ink);
}
.card--paper h1,
.card--paper h2,
.card--paper h3 { color: var(--ink-800); }

/* ---------- 12. 排版组件 ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 88px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.section-number {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--red);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.prose {
  max-width: 72ch;
  font-size: 17px;
  line-height: 1.78;
}
.prose p + p { margin-top: 18px; }

/* ---------- 13. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb li + li::before {
  content: "/";
  color: rgba(206, 213, 224, 0.32);
}
.breadcrumb a {
  color: var(--mist);
  text-decoration: none;
  transition: color var(--t-micro) var(--ease);
}
.breadcrumb a:hover { color: var(--gold); }

.breadcrumb--paper { color: var(--graphite); }
.breadcrumb--paper a { color: var(--graphite-ink); }
.breadcrumb--paper a:hover { color: var(--red); }
.breadcrumb--paper li + li::before { color: rgba(58, 67, 86, 0.38); }

/* ---------- 14. 图片 / 图示容器 ---------- */
.media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  background-color: var(--ink-700);
  background-image:
    radial-gradient(120% 120% at 0% 0%, rgba(214, 64, 42, 0.20), transparent 58%),
    radial-gradient(90% 90% at 100% 100%, rgba(46, 196, 182, 0.14), transparent 60%),
    repeating-linear-gradient(90deg, rgba(206, 213, 224, 0.09) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, rgba(206, 213, 224, 0.09) 0 1px, transparent 1px 48px);
}
.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 3 / 4; }

.media__caption {
  display: block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* ---------- 15. 入场动效 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity var(--t-block) var(--ease),
    transform var(--t-block) var(--ease);
}
.js [data-reveal][data-revealed="true"] {
  opacity: 1;
  transform: none;
}

/* ---------- 16. 响应式 ---------- */
@media (max-width: 1180px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1.3fr; }
  .footer__col--cta { grid-column: 1 / -1; }
}

@media (max-width: 1023px) {
  :root { --gutter: 28px; }
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
  }
  .footer__col--cta { grid-column: auto; }
  .grid--quarters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--thirds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  :root {
    --rail-w: 0px;
    --header-h: 60px;
    --gutter: 18px;
  }

  body {
    padding-left: 0;
    padding-bottom: 80px;
    font-size: 16.5px;
  }

  .rail { display: none; }

  .site-header__inner {
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
  }

  .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    text-decoration: none;
  }

  .nav-toggle {
    position: relative;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 16px 0 14px;
    border: 1px solid var(--line-dark);
    border-radius: var(--r-pill);
    background: rgba(27, 42, 66, 0.72);
    color: var(--paper);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: border-color var(--t-micro) var(--ease);
  }
  .nav-toggle:hover { border-color: rgba(232, 176, 75, 0.55); }

  .nav-toggle__bars {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 16px;
  }
  .nav-toggle__bars span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 240ms var(--ease);
  }
  .site-header[data-open="true"] .nav-toggle__bars span:nth-child(1) {
    transform: translateY(3px) rotate(45deg);
  }
  .site-header[data-open="true"] .nav-toggle__bars span:nth-child(2) {
    transform: translateY(-3px) rotate(-45deg);
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 85;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    width: min(84vw, 360px);
    margin: 0;
    padding: 84px 22px 116px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--ink-900);
    border-left: 1px solid var(--line-dark);
    box-shadow: -28px 0 64px rgba(10, 18, 32, 0.62);
    transform: translateX(101%);
    visibility: hidden;
    transition:
      transform var(--t-drawer) var(--ease),
      visibility var(--t-drawer) var(--ease);
  }
  .site-header[data-open="true"] .nav {
    transform: none;
    visibility: visible;
  }

  .nav__group {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .nav__group--end {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line-dark);
  }

  .nav__link {
    min-height: 52px;
    padding: 0 16px;
    border-radius: var(--r-sm);
    font-size: 17px;
  }
  .nav__link[aria-current="page"] {
    background: rgba(214, 64, 42, 0.14);
  }
  .nav__link[aria-current="page"]::after {
    left: 0;
    right: auto;
    top: 50%;
    bottom: auto;
    width: 3px;
    height: 22px;
    transform: translateY(-50%);
  }

  .mobile-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 75;
    display: flex;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(10, 18, 32, 0.94);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-top: 1px solid var(--line-dark);
  }
  .dock__btn {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 1px solid var(--line-dark);
    border-radius: var(--r-pill);
    background: rgba(27, 42, 66, 0.82);
    color: var(--paper);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition:
      border-color var(--t-micro) var(--ease),
      background-color var(--t-micro) var(--ease);
  }
  .dock__btn:hover { border-color: rgba(232, 176, 75, 0.6); }
  .dock__btn--key {
    background: var(--red);
    border-color: var(--red);
    color: #FFFFFF;
  }
  .dock__btn--key:hover { background: var(--red-deep); border-color: var(--red-deep); }

  .grid--split,
  .grid--halves,
  .grid--thirds,
  .grid--quarters,
  .grid--12 {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer__inner { padding: 56px 18px 0; }
  .footer__col--cta { align-items: stretch; }
  .footer__status { margin-left: 0; }
}

@media (max-width: 639px) {
  :root { --gutter: 16px; }

  .display { font-size: clamp(34px, 10vw, 46px); }

  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding-bottom: 40px;
  }
  .footer__logo { font-size: 26px; }
  .footer__slogan { font-size: 18px; }
  .footer__base {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
  }
  .card,
  .card--lg { padding: 22px; }
  .btn { min-height: 48px; }
}

/* ---------- 17. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html { scroll-behavior: auto; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
