/* =========================================================
   天博赛场 / 共享样式表  /assets/site.css
   赛场数据指挥台：深空蓝底 + 蓝图网格 + 青橙双锚点
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 132px;
}

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

ul, ol { padding: 0; }

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

button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- 2. 变量 ---------- */
:root {
  /* 色板 */
  --ink: #061826;
  --panel: #0C2A3D;
  --line: #1E4E66;
  --cyan: #1FE0CF;
  --orange: #FF7A1A;
  --green: #7BE26B;
  --ice: #F4FBFF;
  --haze: #9DB8C7;
  --black: #02090F;
  --coral: #FF5C5C;

  /* 语义 */
  --bg: var(--ink);
  --surface: var(--panel);
  --surface-deep: #082031;
  --text: var(--ice);
  --text-soft: #D6E7F0;
  --muted: var(--haze);
  --accent: var(--cyan);
  --accent-warm: var(--orange);

  /* 线 */
  --rule: 1px solid var(--line);
  --rule-soft: 1px solid rgba(30, 78, 102, .48);
  --rule-faint: 1px solid rgba(30, 78, 102, .26);

  /* 字体 */
  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace;

  /* 尺度 */
  --shell: 1440px;
  --gutter: clamp(16px, 4vw, 48px);
  --gap: clamp(16px, 1.8vw, 28px);
  --section-y: clamp(40px, 6vw, 88px);

  /* 直角 */
  --sharp: 0;
  --pill: 999px;
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    linear-gradient(to right, rgba(30, 78, 102, .16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 78, 102, .16) 1px, transparent 1px);
  background-size: 96px 96px;
  background-position: -1px -1px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: .05em;
  color: var(--ice);
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); }

p { line-height: 1.78; }

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color .18s ease, opacity .18s ease;
}

a:hover { color: var(--orange); }

strong, b { color: var(--ice); font-weight: 700; }

::selection {
  background: var(--cyan);
  color: var(--black);
}

hr {
  border: 0;
  border-top: var(--rule);
  margin: clamp(28px, 4vw, 56px) 0;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

#main-content:focus { outline: none; }

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 300;
  display: inline-block;
  padding: 12px 20px;
  background: var(--cyan);
  color: var(--black);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .08em;
  border: 2px solid var(--black);
  transition: top .18s ease;
}

.skip-link:focus {
  top: 12px;
  color: var(--black);
}

/* ---------- 5. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background:
    linear-gradient(180deg, rgba(6, 24, 38, .99) 0%, rgba(6, 24, 38, .93) 100%);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(150%) blur(8px);
  backdrop-filter: saturate(150%) blur(8px);
  transition: box-shadow .32s ease;
}

.site-header.is-condensed {
  box-shadow: 0 18px 40px -30px rgba(0, 0, 0, .95);
}

.header-rail {
  border-bottom: var(--rule-soft);
}

.rail-inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 30px);
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 10px var(--gutter);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ice);
  flex: 0 0 auto;
}

.brand:hover { color: var(--ice); }

.brand-mark {
  position: relative;
  display: block;
  width: 34px;
  height: 34px;
  border: 1px solid var(--cyan);
  background:
    linear-gradient(90deg, rgba(31, 224, 207, .14) 1px, transparent 1px) 0 0 / 8px 8px,
    linear-gradient(180deg, rgba(31, 224, 207, .14) 1px, transparent 1px) 0 0 / 8px 8px,
    rgba(31, 224, 207, .05);
  flex: 0 0 auto;
}

.brand-mark::before {
  content: "";
  position: absolute;
  inset: 6px;
  border-top: 1px solid rgba(31, 224, 207, .55);
  border-bottom: 1px solid rgba(31, 224, 207, .55);
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 9px;
  height: 9px;
  background: var(--orange);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
  gap: 3px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: .14em;
  color: var(--ice);
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--haze);
  white-space: nowrap;
}

/* 状态区 */
.rail-meta {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 24px);
  margin-left: auto;
  min-width: 0;
}

.rail-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid rgba(123, 226, 107, .34);
  background: rgba(123, 226, 107, .07);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--green);
  white-space: nowrap;
}

.rail-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(123, 226, 107, .16);
  animation: chipPulse 2.6s ease-in-out infinite;
}

@keyframes chipPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

.rail-coord {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--haze);
  opacity: .82;
  white-space: nowrap;
}

.rail-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: var(--orange);
  border: 1px solid var(--orange);
  color: var(--black);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .1em;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.rail-cta:hover {
  background: #FF9440;
  border-color: #FF9440;
  color: var(--black);
  box-shadow: 0 0 0 3px rgba(255, 122, 26, .18);
  transform: translateY(-1px);
}

/* 移动端按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: 4px;
  padding: 9px 12px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ice);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.nav-toggle:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(31, 224, 207, .07);
}

.nav-toggle-lines {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.nav-toggle-bar {
  display: block;
  height: 1px;
  width: 16px;
  background: currentColor;
  transition: width .2s ease;
}

.nav-toggle-bar:last-child { width: 9px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child { width: 16px; }

.nav-toggle-label { line-height: 1; }

/* 导航条 */
.site-nav {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.nav-list {
  display: flex;
  align-items: stretch;
  flex: 1 1 auto;
  min-width: 0;
  list-style: none;
  counter-reset: navidx;
}

.nav-list li {
  display: flex;
  counter-increment: navidx;
  border-left: var(--rule-faint);
}

.nav-list li:first-child { border-left: 0; }

.nav-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px clamp(10px, 1.4vw, 22px);
  color: var(--haze);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .07em;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.nav-list a::before {
  content: counter(navidx, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0;
  color: rgba(157, 184, 199, .55);
  transition: color .18s ease;
}

.nav-list a:hover {
  color: var(--ice);
  background: rgba(31, 224, 207, .06);
  border-bottom-color: rgba(31, 224, 207, .5);
}

.nav-list a[aria-current="page"] {
  color: var(--cyan);
  background: linear-gradient(180deg, rgba(31, 224, 207, .12), rgba(31, 224, 207, 0));
  border-bottom-color: var(--cyan);
}

.nav-list a[aria-current="page"]::before { color: var(--cyan); }

/* 滚动进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--green) 55%, var(--orange) 100%);
  pointer-events: none;
  z-index: 3;
}

/* ---------- 6. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: var(--section-y);
  background: var(--black);
  border-top: 1px solid var(--line);
  color: var(--muted);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(30, 78, 102, .30) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 78, 102, .30) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .85), transparent 72%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .85), transparent 72%);
}

.footer-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) var(--gutter) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr .85fr 1.35fr .8fr;
  gap: clamp(24px, 3vw, 48px);
  padding-bottom: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid rgba(30, 78, 102, .55);
}

.footer-brand { min-width: 0; }

.footer-brand .brand-mark { margin-bottom: 16px; }

.footer-motto {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  letter-spacing: .12em;
  color: var(--ice);
  line-height: 1.2;
}

.footer-sub {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--cyan);
}

.footer-note {
  margin-top: 18px;
  max-width: 36ch;
  font-size: 13px;
  line-height: 1.82;
  color: var(--haze);
}

.footer-col { min-width: 0; }

.footer-col-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--haze);
  text-transform: uppercase;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 14px;
}

.footer-list a {
  display: inline-block;
  color: var(--ice);
  opacity: .84;
  transition: color .18s ease, opacity .18s ease, transform .18s ease;
}

.footer-list a:hover {
  color: var(--cyan);
  opacity: 1;
  transform: translateX(3px);
}

.footer-key {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: rgba(157, 184, 199, .68);
  margin-bottom: 2px;
}

.footer-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--ice);
  word-break: break-word;
  font-variant-numeric: tabular-nums;
}

.footer-value--text {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.7;
  color: var(--haze);
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  padding: 18px 0 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .07em;
  color: rgba(157, 184, 199, .76);
}

.footer-copy,
.footer-icp,
.footer-coord { margin: 0; }

.footer-icp { color: var(--haze); }

.footer-coord {
  margin-left: auto;
  color: rgba(31, 224, 207, .72);
  letter-spacing: .16em;
}

/* ---------- 7. 布局容器 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.doc {
  padding-block: clamp(28px, 4vw, 56px);
}

.bp-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

.bp-grid > * { min-width: 0; }

@media (min-width: 901px) {
  .u-span-4 { grid-column: span 4; }
  .u-span-5 { grid-column: span 5; }
  .u-span-6 { grid-column: span 6; }
  .u-span-7 { grid-column: span 7; }
  .u-span-8 { grid-column: span 8; }
  .u-span-12 { grid-column: span 12; }
}

@media (max-width: 900px) {
  .bp-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bp-grid > * { grid-column: span 6; }
}

@media (max-width: 560px) {
  .bp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .bp-grid > * { grid-column: span 2; }
}

/* ---------- 8. 文本工具 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--cyan);
}

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

.data-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
  line-height: 1;
  color: var(--ice);
}

/* ---------- 9. 组件：标签 / 面板 / 色带 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: var(--pill);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--haze);
  white-space: nowrap;
}

.tag--live {
  color: var(--orange);
  border-color: rgba(255, 122, 26, .55);
  background: rgba(255, 122, 26, .09);
}

.tag--up {
  color: var(--green);
  border-color: rgba(123, 226, 107, .45);
  background: rgba(123, 226, 107, .08);
}

.tag--calm {
  color: var(--cyan);
  border-color: rgba(31, 224, 207, .45);
  background: rgba(31, 224, 207, .08);
}

.panel {
  background: var(--panel);
  border: var(--rule);
  padding: clamp(18px, 2.4vw, 32px);
}

.band {
  border-top: var(--rule);
  border-bottom: var(--rule);
  background:
    linear-gradient(90deg, rgba(12, 42, 61, .92) 0%, rgba(8, 32, 49, .55) 55%, rgba(6, 24, 38, .18) 100%);
  padding: clamp(14px, 1.8vw, 22px) 0;
}

/* ---------- 10. 组件：按钮 ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--ice);
  --btn-bd: var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .1em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.btn:hover {
  color: var(--btn-fg);
  transform: translateY(-1px);
}

.btn--primary {
  --btn-bg: var(--cyan);
  --btn-fg: var(--black);
  --btn-bd: var(--cyan);
}

.btn--primary:hover {
  --btn-bg: #5BF0E4;
  --btn-bd: #5BF0E4;
  box-shadow: 0 10px 28px -16px rgba(31, 224, 207, .95);
}

.btn--accent {
  --btn-bg: var(--orange);
  --btn-fg: var(--black);
  --btn-bd: var(--orange);
}

.btn--accent:hover {
  --btn-bg: #FF9440;
  --btn-bd: #FF9440;
  box-shadow: 0 10px 28px -16px rgba(255, 122, 26, .95);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ice);
  --btn-bd: rgba(30, 78, 102, .95);
}

.btn--ghost:hover {
  --btn-fg: var(--cyan);
  --btn-bd: var(--cyan);
  background: rgba(31, 224, 207, .08);
}

.btn--sm {
  padding: 9px 16px;
  font-size: 12px;
  letter-spacing: .12em;
}

/* ---------- 11. 组件：面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--haze);
}

.crumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.crumbs li + li::before {
  content: "/";
  color: var(--line);
}

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

.crumbs [aria-current="page"] { color: var(--ice); }

/* ---------- 12. 组件：图片容器 ---------- */
.figure {
  display: block;
  margin: 0;
}

.figure__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: var(--rule);
  background-color: var(--surface-deep);
  background-image:
    linear-gradient(135deg, rgba(12, 42, 61, .95), rgba(6, 24, 38, .95)),
    repeating-linear-gradient(45deg, rgba(30, 78, 102, .28) 0 1px, transparent 1px 12px);
}

.figure__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(31, 224, 207, .14);
}

.figure__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.figure__media--wide { aspect-ratio: 21 / 9; }
.figure__media--tall { aspect-ratio: 4 / 5; }
.figure__media--square { aspect-ratio: 1 / 1; }

.figure__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  line-height: 1.7;
  color: var(--haze);
}

/* ---------- 13. 组件：长文 ---------- */
.prose {
  max-width: 72ch;
  font-size: clamp(16px, 1.05vw, 17.5px);
  line-height: 1.78;
  color: var(--text-soft);
}

.prose > * + * { margin-top: 1.1em; }

.prose h2 {
  margin-top: 2.2em;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  letter-spacing: .06em;
}

.prose h3 {
  margin-top: 1.8em;
  font-size: clamp(1.08rem, 1.4vw, 1.28rem);
  letter-spacing: .06em;
  color: var(--cyan);
}

.prose ul,
.prose ol {
  padding-left: 1.35em;
}

.prose li + li { margin-top: .45em; }

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

.prose a:hover { color: var(--orange); }

.prose blockquote {
  margin: 1.6em 0;
  padding: 14px 22px;
  border-left: 2px solid var(--cyan);
  background: rgba(12, 42, 61, .62);
  color: var(--haze);
}

.prose code {
  font-family: var(--font-mono);
  font-size: .9em;
  padding: 2px 6px;
  background: rgba(30, 78, 102, .5);
  color: var(--cyan);
}

.prose hr {
  border: 0;
  border-top: var(--rule);
  margin: 2em 0;
}

/* ---------- 14. 滚动显现 ---------- */
[data-reveal].is-visible {
  animation: riseIn .58s cubic-bezier(.22, .8, .3, 1) both;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1180px) {
  .rail-coord { display: none; }
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-coord { margin-left: 0; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 108px; }

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

  .rail-chip { display: none; }

  .rail-inner { padding: 9px var(--gutter); gap: 10px; }

  .rail-cta {
    padding: 8px 14px;
    font-size: 12px;
    letter-spacing: .08em;
  }

  .site-nav {
    display: none;
    padding: 0;
    border-top: var(--rule-soft);
  }

  .site-nav[data-open] {
    display: block;
    animation: navDrop .26s ease-out both;
  }

  @keyframes navDrop {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    max-height: min(66vh, 520px);
    overflow-y: auto;
  }

  .nav-list li {
    border-left: 0;
    border-bottom: var(--rule-faint);
  }

  .nav-list li:last-child { border-bottom: 0; }

  .nav-list a {
    padding: 15px var(--gutter);
    font-size: 15px;
    letter-spacing: .1em;
    border-bottom: 0;
  }

  .nav-list a::before { font-size: 11px; }

  .nav-list a[aria-current="page"] {
    color: var(--cyan);
    background: linear-gradient(90deg, rgba(31, 224, 207, .16), rgba(31, 224, 207, 0));
    box-shadow: inset 3px 0 0 var(--cyan);
  }
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-note { max-width: none; }
}

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

  .brand-mark { width: 30px; height: 30px; }

  .brand-name { font-size: .95rem; letter-spacing: .1em; }

  .brand-tag { font-size: 9px; letter-spacing: .16em; }

  .rail-cta {
    padding: 7px 11px;
    font-size: 11.5px;
    letter-spacing: .04em;
  }

  .btn { width: 100%; }

  .footer-base {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}

/* ---------- 16. 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal].is-visible {
    animation: none !important;
    opacity: 1;
    transform: none;
  }

  .rail-dot { animation: none !important; }
}
