/* ============================================================
   贝博中心 /assets/site.css — 共享外壳与基础组件
   版本地图：深海蓝轨道 + 档案纸阅读面 + 信号青指认 + 暖橙入口
   ============================================================ */

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

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

body,
h1, h2, h3, h4, h5,
p, ul, ol, li,
figure, figcaption, blockquote {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
}

a { color: inherit; }

/* ---------- 2. Tokens ---------- */
:root {
  --sea-900: #061A2B;
  --sea-800: #0B2942;
  --sea-700: #123A57;
  --cyan: #12B5AE;
  --cyan-soft: #9FE3DF;
  --orange: #E4621F;
  --orange-soft: #FBD9C2;
  --paper: #F8F2E7;
  --sand: #E7DCC9;
  --ink: #22303C;
  --muted: #6F7E8B;
  --white: #FFFFFF;

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "Noto Sans Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;

  --rail-w: 88px;
  --header-h: 84px;
  --header-h-compact: 56px;

  --radius-lg: 26px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --pill: 999px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 260ms;

  --shadow-soft: 0 18px 40px -24px rgba(6, 26, 43, 0.45);
  --scanlines: repeating-linear-gradient(
    0deg,
    rgba(159, 227, 223, 0.055) 0px,
    rgba(159, 227, 223, 0.055) 1px,
    transparent 1px,
    transparent 4px
  );
}

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

/* ---------- 3. 中文正文基调 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.85;
  font-weight: 400;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(34, 48, 60, 0.05) 1px, transparent 1px);
  background-size: 5px 5px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: semi-condensed;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--sea-800);
}

p { overflow-wrap: break-word; }

#main-content { display: block; }

/* ---------- 4. 焦点与可达性 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--cyan-soft);
}

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

/* ---------- 5. 顶栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background-color: var(--sea-800);
  background-image: var(--scanlines);
  color: var(--paper);
  border-bottom: 1px solid rgba(159, 227, 223, 0.18);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 120;
  padding: 10px 20px;
  border-radius: 0 0 14px 14px;
  background: var(--orange);
  color: var(--sea-900);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: top 160ms var(--ease);
}

.skip-link:focus { top: 0; }

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  min-height: var(--header-h);
  transition: min-height var(--dur) var(--ease), padding var(--dur) var(--ease);
}

.site-header[data-compact] .header-inner { min-height: var(--header-h-compact); }

/* 品牌块 */
.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--paper);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  font-stretch: semi-condensed;
  letter-spacing: 0.04em;
  line-height: 1.15;
  transition: font-size var(--dur) var(--ease);
}

.brand-domain {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--cyan-soft);
  transition: color var(--dur) var(--ease), font-size var(--dur) var(--ease);
}

.brand:hover .brand-domain,
.brand:focus-visible .brand-domain { color: var(--orange-soft); }

.site-header[data-compact] .brand-name { font-size: 17px; }
.site-header[data-compact] .brand-domain { font-size: 11px; }

/* 栏目胶囊组 */
.nav {
  margin-left: auto;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  color: rgba(248, 242, 231, 0.82);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.nav-link:hover {
  color: var(--white);
  background: rgba(159, 227, 223, 0.12);
  border-color: rgba(159, 227, 223, 0.32);
}

.nav-link[aria-current="page"] {
  background: var(--cyan-soft);
  border-color: var(--cyan-soft);
  color: var(--sea-900);
  font-weight: 700;
}

.nav-link[aria-current="page"] .nav-index { opacity: 0.7; }

.nav-index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  opacity: 0.6;
}

/* 右上角悬浮角标 */
.corner-badge {
  position: absolute;
  top: 50%;
  right: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--pill);
  background: var(--orange);
  color: var(--sea-900);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.1;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(6, 26, 43, 0.16), 0 16px 28px -16px rgba(6, 26, 43, 0.95);
  transform: translateY(-50%);
  animation: badge-breath 3s ease-in-out infinite;
  transition: padding var(--dur) var(--ease), font-size var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.corner-badge:hover,
.corner-badge:focus-visible {
  background: #F0723A;
  animation-play-state: paused;
}

.corner-badge-label { white-space: nowrap; }

.corner-badge-ver {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: var(--pill);
  background: rgba(6, 26, 43, 0.82);
  color: var(--cyan-soft);
}

.site-header[data-compact] .corner-badge { padding: 7px 14px; font-size: 14px; }

@keyframes badge-breath {
  0%, 100% { transform: translateY(-50%) scale(1); }
  50%      { transform: translateY(-50%) scale(1.03); }
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid rgba(159, 227, 223, 0.32);
  background: rgba(159, 227, 223, 0.1);
  color: var(--paper);
  cursor: pointer;
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 18px;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 200ms var(--ease), opacity 160ms linear;
}

.site-header[data-open] .nav-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header[data-open] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 桌面侧轨 */
.brand-rail {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 65;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0 22px;
  background-color: var(--sea-900);
  background-image: var(--scanlines);
  border-right: 1px solid rgba(159, 227, 223, 0.16);
  color: var(--paper);
}

.rail-name {
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: rgba(248, 242, 231, 0.9);
}

.rail-track {
  flex: 1;
  width: 2px;
  min-height: 80px;
  margin: 18px 0;
  border-radius: 2px;
  background: rgba(159, 227, 223, 0.22);
  overflow: hidden;
  position: relative;
}

.rail-progress {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--orange));
  transform: scaleY(0);
  transform-origin: top center;
}

.rail-chapters {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.rail-dot {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: rgba(159, 227, 223, 0.45);
  transition: color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.rail-dot.is-current {
  color: var(--cyan);
  transform: scale(1.2);
}

/* ---------- 6. 页脚 ---------- */
.site-footer {
  margin-top: 96px;
  padding: 64px 0 28px;
  background-color: var(--sea-800);
  background-image: var(--scanlines);
  color: var(--paper);
  border-top: 1px solid rgba(159, 227, 223, 0.18);
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: 48px;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  font-stretch: semi-condensed;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.footer-brand-note {
  margin-top: 10px;
  max-width: 22em;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(248, 242, 231, 0.66);
}

.footer-brand-domain {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--cyan-soft);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.footer-col-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--cyan-soft);
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-link {
  font-size: 15px;
  color: rgba(248, 242, 231, 0.82);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.footer-link:hover { color: var(--cyan); }

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px 40px;
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(159, 227, 223, 0.18);
}

.footer-version {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.version-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 13px;
  border-radius: var(--pill);
  border: 1px solid rgba(18, 181, 174, 0.45);
  background: rgba(18, 181, 174, 0.16);
  color: var(--cyan-soft);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: 0.05em;
  line-height: 1.4;
}

.footer-version-note {
  font-size: 13px;
  color: rgba(248, 242, 231, 0.55);
}

.footer-contact {
  display: grid;
  gap: 4px;
  font-size: 14px;
  line-height: 1.75;
  color: rgba(248, 242, 231, 0.72);
}

.footer-contact-line { overflow-wrap: break-word; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 22px;
  font-size: 13px;
  color: rgba(248, 242, 231, 0.55);
}

.footer-legal-line { font-family: var(--font-mono); letter-spacing: 0.02em; }

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-legal-link {
  color: rgba(248, 242, 231, 0.68);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.footer-legal-link:hover { color: var(--cyan-soft); }

.footer-copy {
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(248, 242, 231, 0.4);
}

/* ---------- 7. 容器与章节 ---------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

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

.section-head {
  display: grid;
  gap: 14px;
  max-width: 44em;
  margin-bottom: 32px;
}

.divider {
  height: 1px;
  margin: 40px 0;
  border: 0;
  background: var(--sand);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  line-height: 1.4;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  flex: 0 0 auto;
}

.section-title {
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.22;
}

.lead {
  max-width: 34em;
  font-size: 19px;
  line-height: 1.8;
  color: var(--ink);
}

.prose {
  max-width: 38em;
  font-size: 17px;
  line-height: 1.85;
}

.prose p + p { margin-top: 1.2em; }

.prose h2,
.prose h3 {
  margin-top: 1.6em;
  margin-bottom: 0.6em;
  font-size: 24px;
}

.prose ul {
  display: grid;
  gap: 10px;
  margin: 1.2em 0;
}

.prose ul li {
  position: relative;
  padding-left: 22px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 8px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
}

.prose strong { color: var(--sea-800); font-weight: 700; }

.prose a {
  color: var(--sea-800);
  text-decoration: underline;
  text-decoration-color: var(--cyan);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.annotation {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  line-height: 1.2;
  color: var(--muted);
}

/* ---------- 8. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--orange);
  color: var(--sea-900);
  box-shadow: 0 14px 26px -18px rgba(228, 98, 31, 0.9);
}

.btn-primary:hover { background: #F0723A; }

.btn-dark {
  background: var(--sea-800);
  color: var(--paper);
}

.btn-dark:hover { background: var(--sea-900); color: var(--cyan-soft); }

.btn-ghost {
  background: transparent;
  border-color: var(--sand);
  color: var(--sea-800);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  background: rgba(18, 181, 174, 0.08);
  color: var(--sea-900);
}

/* ---------- 9. 标签 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: var(--pill);
  background: var(--sand);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.chip-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.chip-cyan {
  background: var(--cyan-soft);
  color: var(--sea-900);
}

.chip-orange {
  background: var(--orange-soft);
  color: #8A3410;
}

/* ---------- 10. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--sand);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.breadcrumb a:hover { color: var(--cyan); }

.breadcrumb [aria-current="page"] {
  color: var(--sea-800);
  font-weight: 700;
}

/* ---------- 11. 卡片 ---------- */
.card {
  padding: 26px;
  border: 1px solid var(--sand);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 1px 0 rgba(34, 48, 60, 0.04);
}

.card-index {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

/* ---------- 12. 图像容器 ---------- */
.figure {
  display: grid;
  gap: 10px;
  margin: 0;
}

.figure-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--sand);
  border-radius: var(--radius-md);
  background: var(--white);
}

.figure-frame--wide { aspect-ratio: 16 / 9; }
.figure-frame--tall { aspect-ratio: 3 / 4; }

.figure-frame img,
.figure-frame svg,
.figure-frame picture {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(6, 26, 43, 0.86);
  color: var(--cyan-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.figure-cap {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 13. 提示 ---------- */
.note {
  padding: 14px 18px;
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--orange-soft);
  color: #5A2A10;
  font-size: 15px;
  line-height: 1.75;
}

.note--cyan {
  border-left-color: var(--cyan);
  background: rgba(159, 227, 223, 0.42);
  color: #0A4B49;
}

/* ---------- 14. 网格 ---------- */
.grid {
  display: grid;
  gap: 24px;
}

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

/* ---------- 15. 浮动返回入口 ---------- */
.back-anchor {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid rgba(159, 227, 223, 0.38);
  border-radius: var(--pill);
  background: var(--sea-800);
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 16px 30px -18px rgba(6, 26, 43, 0.9);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.back-anchor:hover {
  background: var(--sea-900);
  color: var(--cyan-soft);
}

/* ---------- 16. 进入动效 ---------- */
@media (prefers-reduced-motion: no-preference) {
  html[data-js] [data-reveal] {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  }

  html[data-js] [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 17. 响应式 ---------- */
@media (min-width: 1080px) {
  body { padding-left: var(--rail-w); }
  .brand-rail { display: flex; }
  .header-inner { padding-right: 236px; }
}

@media (max-width: 1079px) {
  .nav-link { font-size: 14px; padding: 8px 11px; gap: 5px; }
  .nav-index { display: none; }
  .header-inner { padding-right: 220px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 759px) {
  body { font-size: 16px; line-height: 1.8; }

  .header-inner {
    gap: 10px;
    padding: 0 16px;
    min-height: 64px;
  }

  .site-header[data-compact] .header-inner { min-height: 56px; }

  .brand-name { font-size: 18px; }
  .brand-domain { font-size: 10px; letter-spacing: 0.06em; }

  .corner-badge {
    position: static;
    margin-left: auto;
    transform: none;
    padding: 8px 13px;
    font-size: 13px;
    animation: none;
    gap: 8px;
  }

  .corner-badge-ver { font-size: 11px; padding: 2px 7px; }

  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    z-index: 80;
    max-height: 80vh;
    overflow-y: auto;
    padding: 16px 18px calc(22px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(159, 227, 223, 0.26);
    border-radius: 24px 24px 0 0;
    background-color: var(--sea-900);
    background-image: var(--scanlines);
    color: var(--paper);
    box-shadow: 0 -30px 60px -30px rgba(6, 26, 43, 0.95);
    transform: translateY(104%);
    opacity: 0;
    visibility: hidden;
    transition: transform 300ms var(--ease), opacity 180ms var(--ease), visibility 0s linear 300ms;
  }

  .site-header[data-open] .nav {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform 300ms var(--ease), opacity 180ms var(--ease), visibility 0s linear 0s;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-item { border-bottom: 1px solid rgba(159, 227, 223, 0.12); }
  .nav-item:last-child { border-bottom: 0; }

  .nav-link {
    width: 100%;
    padding: 13px 10px;
    gap: 14px;
    font-size: 19px;
    border-radius: 10px;
    border: 0;
    color: rgba(248, 242, 231, 0.9);
  }

  .nav-index {
    display: inline;
    font-size: 12px;
    color: var(--cyan);
    opacity: 1;
  }

  .nav-link[aria-current="page"] {
    background: rgba(159, 227, 223, 0.16);
    border: 0;
    color: var(--cyan-soft);
  }

  .nav-link[aria-current="page"] .nav-index { color: var(--cyan-soft); }

  .container { padding: 0 20px; }
  .section { padding: 52px 0; }
  .section--tight { padding: 34px 0; }

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

  .site-footer { margin-top: 64px; padding: 48px 0 24px; }
  .footer-inner { padding: 0 20px; }
  .footer-legal { flex-direction: column; align-items: flex-start; }

  .back-anchor { right: 16px; bottom: 16px; padding: 9px 15px; font-size: 13px; }
}

@media (max-width: 480px) {
  .header-inner { padding: 0 14px; gap: 8px; }
  .brand-name { font-size: 16px; }
  .corner-badge { padding: 7px 11px; font-size: 12px; }
  .corner-badge-label { letter-spacing: 0.02em; }
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .section-title { font-size: clamp(24px, 7vw, 30px); }
  .lead { font-size: 17px; }
}

/* ---------- 18. 降低动效 ---------- */
@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;
  }

  .corner-badge { animation: none; }
  .rail-progress { transition: none; }
  html[data-js] [data-reveal] { opacity: 1; transform: none; }
}
