/* ============================================================
   9博体育看台 · 共享样式表 /assets/site.css
   夜间看台终端：炭黑底 + 墨绿分区 + 青柠信号 + 陶土纸层
   ============================================================ */

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

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

ul, ol { list-style: none; }

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

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

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

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

[hidden] { display: none !important; }

/* ---------- 2. 设计令牌 ---------- */
:root {
  /* 品牌色 */
  --ink-900: #0B1210;
  --pitch-900: #0E2A22;
  --moss-700: #1F4A3A;
  --mineral-500: #6E7C74;
  --bone-100: #EDE7DA;
  --bone-300: #C9C2B2;
  --lime-400: #C6F24E;
  --lime-700: #7C9B2A;
  --amber-500: #FF9E3D;
  --clay-600: #A65E3C;

  /* 语义别名 */
  --bg: var(--ink-900);
  --surface: var(--pitch-900);
  --surface-2: var(--moss-700);
  --text: var(--bone-100);
  --muted: var(--mineral-500);
  --accent: var(--lime-400);
  --warm: var(--amber-500);
  --hairline: rgba(237, 231, 218, 0.12);
  --hairline-soft: rgba(237, 231, 218, 0.08);

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

  /* 尺度 */
  --maxw: 1320px;
  --gutter: clamp(18px, 4vw, 56px);
  --rail-w: 88px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --header-h: 78px;
}

/* ---------- 3. 基础排版 ---------- */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background-color: var(--ink-900);
  color: var(--bone-100);
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* 极淡扫描线，暗示终端屏幕 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(237, 231, 218, 0.026) 0 1px,
    transparent 1px 3px
  );
  opacity: 0.7;
}

main { display: block; }

#main-content { padding-top: clamp(84px, 9vw, 108px); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--bone-100);
  line-height: 1.12;
}

h1 {
  font-size: clamp(34px, 5.4vw, 68px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

h2 {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 800;
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 700;
  letter-spacing: -0.01em;
}

p { max-width: 68ch; }

strong { font-weight: 700; color: var(--bone-100); }

::selection {
  background: var(--lime-400);
  color: var(--ink-900);
}

:focus-visible {
  outline: 2px solid var(--lime-400);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -90px;
  left: 16px;
  z-index: 200;
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: var(--lime-400);
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: top 0.22s ease;
}

.skip-link:focus {
  top: 16px;
}

/* ---------- 5. 容器与栅格 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 28px);
}

.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)); }

/* ---------- 6. 页头 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  padding: clamp(12px, 1.6vw, 20px) var(--gutter);
  pointer-events: none;
  transition: padding 0.28s ease;
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 2vw, 28px);
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  pointer-events: auto;
}

.site-header[data-scrolled] {
  padding-top: 8px;
  padding-bottom: 8px;
}

/* 品牌字标 */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 6px 16px 6px 6px;
  border-radius: var(--radius-pill);
  background: rgba(14, 42, 34, 0.86);
  border: 1px solid rgba(237, 231, 218, 0.12);
  box-shadow: 0 18px 38px -30px #000, inset 0 1px 0 rgba(237, 231, 218, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.brand-lockup:hover {
  border-color: rgba(198, 242, 78, 0.55);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 11px;
  background: var(--lime-400);
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(11, 18, 16, 0.35);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--bone-100);
}

.brand-tagline {
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--bone-300);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(237, 231, 218, 0.16);
  background: rgba(14, 42, 34, 0.9);
  color: var(--bone-100);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-toggle:hover {
  border-color: rgba(198, 242, 78, 0.6);
  color: var(--lime-400);
}

.nav-toggle-bars {
  display: grid;
  gap: 4px;
  width: 16px;
}

.nav-toggle-bars span {
  display: block;
  height: 1.6px;
  width: 100%;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  transform: translateY(5.6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-5.6px) rotate(-45deg);
}

/* 悬浮胶囊导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: var(--radius-pill);
  background: rgba(14, 42, 34, 0.88);
  border: 1px solid rgba(237, 231, 218, 0.12);
  box-shadow: 0 22px 46px -34px #000, inset 0 1px 0 rgba(237, 231, 218, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-item { display: block; }

.nav-link {
  display: block;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--bone-300);
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}

.nav-link:hover {
  color: var(--bone-100);
  background: rgba(237, 231, 218, 0.08);
}

.nav-link[aria-current="page"] {
  background: var(--lime-400);
  color: var(--ink-900);
  font-weight: 700;
}

.nav-link[aria-current="page"]:hover {
  background: var(--lime-700);
  color: var(--bone-100);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
}

.nav-search {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  border: 1px solid rgba(237, 231, 218, 0.16);
  color: var(--bone-300);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.nav-search:hover {
  color: var(--ink-900);
  background: var(--lime-400);
  border-color: var(--lime-400);
}

.nav-cta { padding: 9px 17px; }

/* ---------- 7. 按钮族 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

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

.btn-primary {
  background: var(--lime-400);
  color: var(--ink-900);
  box-shadow: inset 0 0 0 1px rgba(11, 18, 16, 0.35);
}

.btn-primary:hover {
  background: var(--lime-700);
  color: var(--bone-100);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(237, 231, 218, 0.24);
  color: var(--bone-100);
}

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

.btn-warm {
  background: var(--amber-500);
  color: var(--ink-900);
  box-shadow: inset 0 0 0 1px rgba(11, 18, 16, 0.3);
}

.btn-warm:hover {
  background: #ffb164;
  color: var(--ink-900);
}

.btn-sm {
  padding: 8px 15px;
  font-size: 12.5px;
}

/* ---------- 8. 索引与标签 ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-300);
}

.section-label::before {
  content: "";
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--mineral-500);
}

.section-label--lime { color: var(--lime-400); }
.section-label--lime::before { background: var(--lime-400); }
.section-label--warm { color: var(--amber-500); }
.section-label--warm::before { background: var(--amber-500); }

.giant-index {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 132px);
  font-weight: 200;
  line-height: 0.82;
  letter-spacing: -0.04em;
  color: var(--moss-700);
  font-variant-numeric: tabular-nums;
  user-select: none;
}

.tag-sticker {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 5px;
  background: var(--clay-600);
  color: var(--bone-100);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: rotate(-1.5deg);
  box-shadow: 0 6px 14px -10px #000;
}

/* ---------- 9. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mineral-500);
}

.breadcrumb a {
  color: var(--bone-300);
  transition: color 0.18s ease;
}

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

.breadcrumb-current {
  color: var(--lime-400);
  font-weight: 500;
}

/* ---------- 10. 纸张卡片 ---------- */
.paper-card {
  position: relative;
  padding: clamp(20px, 2.4vw, 30px);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: linear-gradient(165deg, rgba(31, 74, 58, 0.55), rgba(14, 42, 34, 0.92) 62%);
  box-shadow: 6px 6px 0 rgba(166, 94, 60, 0.22), 0 26px 48px -40px #000;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.paper-card:hover {
  border-color: rgba(198, 242, 78, 0.4);
  transform: translateY(-2px);
  box-shadow: 8px 8px 0 rgba(166, 94, 60, 0.28), 0 30px 54px -40px #000;
}

/* ---------- 11. 数据面板 ---------- */
.data-slab {
  padding: clamp(18px, 2.2vw, 26px);
  border: 1px solid rgba(198, 242, 78, 0.18);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(31, 74, 58, 0.92), rgba(14, 42, 34, 0.96));
}

.data-bar {
  position: relative;
  height: 6px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: rgba(237, 231, 218, 0.14);
}

.data-bar > span {
  display: block;
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--lime-400);
  transition: width 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.data-bar--warm > span { background: var(--amber-500); }

/* ---------- 12. 索引轨道 ---------- */
.index-rail {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-self: start;
}

/* ---------- 13. 账本表格 ---------- */
.ledger {
  width: 100%;
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
}

.ledger caption {
  padding-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mineral-500);
  text-align: left;
}

.ledger th {
  padding: 12px 16px;
  background: var(--moss-700);
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--bone-300);
  text-align: left;
  white-space: nowrap;
}

.ledger td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline-soft);
  color: var(--bone-100);
}

.ledger tbody tr:nth-child(odd) { background: rgba(31, 74, 58, 0.34); }

.ledger tbody tr { transition: background 0.16s ease; }

.ledger tbody tr:hover {
  background: rgba(198, 242, 78, 0.09);
  box-shadow: inset 3px 0 0 var(--lime-400);
}

/* ---------- 14. 图片容器基础 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  background: linear-gradient(150deg, var(--pitch-900), #07100d 72%);
}

.media-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.06) brightness(0.94);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(11, 18, 16, 0.24) 0 1px,
    transparent 1px 3px
  );
  mix-blend-mode: multiply;
}

.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 14px 18px;
  background: linear-gradient(0deg, rgba(7, 11, 10, 0.9), transparent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bone-100);
}

/* ---------- 15. 显现动画 ---------- */
html.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}

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

/* ---------- 16. 页脚 ---------- */
.site-footer {
  position: relative;
  z-index: 2;
  margin-top: clamp(72px, 9vw, 132px);
  padding: clamp(40px, 5.4vw, 78px) 0 26px;
  border-top: 1px solid rgba(237, 231, 218, 0.1);
  background-image:
    radial-gradient(120% 92% at 10% 0%, rgba(31, 74, 58, 0.6), transparent 62%),
    linear-gradient(180deg, #0a1210, #070b0a 72%);
  color: var(--bone-100);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  width: clamp(90px, 18vw, 220px);
  height: 2px;
  background: var(--lime-400);
}

.footer-inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.85fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.brand-lockup--footer {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  padding: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  align-self: flex-start;
}

.brand-lockup--footer:hover { border-color: transparent; }

.footer-note {
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--bone-300);
}

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

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

.footer-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime-400);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-link {
  display: inline-block;
  padding: 5px 0;
  border-left: 2px solid transparent;
  padding-left: 10px;
  font-size: 14px;
  color: var(--bone-300);
  transition: color 0.18s ease, border-color 0.18s ease, padding-left 0.18s ease;
}

.footer-link:hover {
  color: var(--lime-400);
  border-left-color: var(--lime-400);
  padding-left: 14px;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact li {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.footer-contact-key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mineral-500);
}

.footer-contact-val {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--bone-100);
  word-break: break-word;
}

.footer-contact-note {
  margin-top: 12px;
  max-width: 34ch;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--mineral-500);
}

.footer-index {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: clamp(28px, 4vw, 48px);
  padding: 15px 20px;
  border: 1px dashed rgba(237, 231, 218, 0.2);
  border-radius: var(--radius-md);
  background: rgba(14, 42, 34, 0.5);
}

.footer-index-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lime-400);
}

.footer-index-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-chip {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(237, 231, 218, 0.18);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--bone-300);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.footer-chip:hover {
  color: var(--ink-900);
  background: var(--lime-400);
  border-color: var(--lime-400);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline-soft);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--mineral-500);
}

.footer-legal,
.footer-region,
.footer-copy {
  max-width: none;
  font-size: inherit;
  line-height: 1.4;
}

.footer-copy { color: var(--bone-300); }

/* ---------- 17. 平板 ---------- */
@media (max-width: 1100px) {
  .nav-link {
    padding: 8px 10px;
    font-size: 13px;
  }
  .brand-tagline { letter-spacing: 0.02em; }
  .footer-top { gap: clamp(24px, 4vw, 48px); }
}

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-col--contact { grid-column: 1 / -1; }
}

/* ---------- 18. 移动 ---------- */
@media (max-width: 900px) {
  :root { --header-h: 66px; }

  .site-header { padding: 11px var(--gutter); }

  .brand-tagline { display: none; }

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

  .site-nav {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: rgba(9, 15, 13, 0.98);
    border: 1px solid rgba(237, 231, 218, 0.16);
    box-shadow: 0 34px 66px -30px #000;
  }

  .site-nav[data-open] { display: flex; }

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

  .nav-link {
    padding: 13px 16px;
    border-radius: 14px;
    font-size: 15px;
  }

  .nav-link[aria-current="page"] {
    box-shadow: inset 3px 0 0 var(--amber-500);
  }

  .nav-actions {
    margin-left: 0;
    padding-top: 12px;
    border-top: 1px solid rgba(237, 231, 218, 0.12);
    gap: 10px;
  }

  .nav-cta {
    flex: 1 1 auto;
    justify-content: center;
  }

  .nav-search { flex: none; }

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

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

  .index-rail { position: static; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }

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

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

  .footer-index { flex-direction: column; align-items: flex-start; }

  .paper-card { box-shadow: 4px 4px 0 rgba(166, 94, 60, 0.22); }

  .footer-meta { gap: 6px 16px; }
}

@media (max-width: 420px) {
  .brand-name { font-size: 14.5px; }
  .nav-toggle-text { display: none; }
  .nav-toggle { padding: 10px 13px; }
}

/* ---------- 19. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

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

  .paper-card:hover { transform: none; }
}
