/* ==========================================================================
   欧宝体育站 · 共享样式表 /assets/site.css
   夜场墨绿 · 荧光橙 · 展览画册式非对称网格
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --ink: #07231C;
  --ink-2: #0E3A30;
  --ink-3: #0A2B23;
  --ink-deep: #041914;
  --orange: #FF6B1A;
  --orange-soft: #FFB27A;
  --steel: #8FA6B2;
  --steel-light: #CEDAE0;
  --paper: #F5F7F6;
  --indigo: #1B2E4A;
  --violet: #3B1F4E;
  --gold: #C9A227;

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

  --header-h: 76px;
  --header-solid-h: 60px;
  --header-offset: var(--header-h);

  --page-max: 1280px;
  --narrow-max: 820px;
  --gutter: clamp(18px, 4vw, 56px);
  --cut: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 320ms;

  --line: rgba(143, 166, 178, 0.24);
  --line-strong: rgba(143, 166, 178, 0.42);

  --strong: #F5F7F6;
  --muted: #8FA6B2;
  --surface: #0E3A30;
}

/* ---------- 2. RESET ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-offset) + 18px);
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  color: var(--steel-light);
  background-color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

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

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

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

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

::selection {
  background: var(--orange);
  color: var(--ink);
}

#main-content { padding-top: var(--header-offset); }

/* ---------- 3. 中文排版 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.16;
  color: var(--strong);
  text-wrap: balance;
}

.display-1 {
  font-size: clamp(34px, 6vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.display-2 {
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.08;
}

.h-section {
  font-size: clamp(19px, 2.1vw, 28px);
}

.mono,
.num,
.index-label,
.kicker,
.tool-btn,
.chip,
.btn,
.breadcrumb,
.toc-link,
.footer-col-title,
.footer-legal-item,
.media-caption {
  font-family: var(--font-mono);
}

.num,
.stat-value {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.index-label {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
}

.kicker::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--orange);
  flex: 0 0 auto;
}

.hl {
  background-image: linear-gradient(180deg, transparent 62%, rgba(255, 107, 26, 0.62) 62%);
  background-repeat: no-repeat;
  color: var(--strong);
  padding-inline: 2px;
}

.prose {
  max-width: 68ch;
  color: var(--steel-light);
}

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

.prose p { line-height: 1.78; }

.prose a {
  color: var(--orange);
  border-bottom: 1px solid rgba(255, 107, 26, 0.42);
}

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

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

.prose h2, .prose h3 { margin-top: 1.7em; }

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

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

.rule-diagonal {
  height: 1px;
  border: 0;
  background: repeating-linear-gradient(115deg,
    var(--line-strong) 0 10px, transparent 10px 20px);
}

.stack > * + * { margin-top: var(--stack-gap, 1.05em); }

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  left: 50%;
  top: -90px;
  transform: translateX(-50%);
  z-index: 200;
  padding: 12px 22px;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  font-weight: 700;
  transition: top 180ms var(--ease);
}

.skip-link:focus {
  top: 10px;
  outline-offset: 2px;
}

/* ---------- 5. 头部 ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: height var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}

.site-header.is-solid {
  height: var(--header-solid-h);
  background: var(--ink);
  border-bottom-color: var(--line);
  box-shadow: 0 22px 44px -34px rgba(0, 0, 0, 0.9);
}

.header-inner {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 28px);
}

/* 品牌 */
.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 0 0 auto;
  padding-block: 4px;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(17px, 1.5vw, 21px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--paper);
  white-space: nowrap;
}

.brand-mark::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  background: var(--orange);
  transform: translateY(-1px) rotate(45deg);
}

.brand-line {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--steel);
  padding-left: 17px;
  white-space: nowrap;
}

/* 导航 */
.site-nav { margin-inline-start: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(2px, 0.8vw, 8px);
}

.nav-list a {
  position: relative;
  display: inline-block;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--steel-light);
  white-space: nowrap;
  transition: color 160ms var(--ease), background-color 160ms var(--ease);
}

.nav-list a:hover { color: var(--paper); }

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

.nav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  background: var(--orange);
}

/* 工具区 */
.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  background: transparent;
  color: var(--steel-light);
  border: 1px solid var(--line-strong);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
  transition: border-color 160ms var(--ease), color 160ms var(--ease);
}

.tool-btn:hover { border-color: var(--orange); color: var(--paper); }

.tool-btn-value { color: var(--orange); }

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--line-strong);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

.nav-toggle-bars {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 10px;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--orange);
  transition: transform 220ms var(--ease);
}

.nav-toggle-bars::before { top: 0; }
.nav-toggle-bars::after { bottom: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: translateY(-4px) rotate(-45deg);
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  font-size: 13px;
  letter-spacing: 0.07em;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  transition: background-color 180ms var(--ease),
              color 180ms var(--ease),
              border-color 180ms var(--ease),
              transform 180ms var(--ease);
}

.btn-primary {
  background: var(--orange);
  color: #06201A;
  font-weight: 700;
}

.btn-primary:hover {
  background: var(--orange-soft);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--line-strong);
}

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

.btn-sm { padding: 10px 15px; font-size: 11.5px; }

/* ---------- 7. 容器与色区 ---------- */
.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: var(--narrow-max); }

.section { padding-block: clamp(40px, 6vw, 92px); }

.section--tight { padding-block: clamp(26px, 3.4vw, 52px); }

.section--paper {
  background: var(--paper);
  color: #23343C;
  --strong: #081F19;
  --muted: #5A707C;
  --line: rgba(8, 31, 25, 0.14);
  --line-strong: rgba(8, 31, 25, 0.26);
  --surface: #FFFFFF;
}

.section--indigo {
  background: var(--indigo);
  color: var(--steel-light);
  --strong: #FFFFFF;
  --muted: #9FB4CE;
  --line: rgba(206, 218, 224, 0.22);
  --line-strong: rgba(206, 218, 224, 0.4);
  --surface: #223A5C;
}

.section--violet {
  background: var(--violet);
  color: var(--steel-light);
  --strong: #FFFFFF;
  --muted: #C2A8D6;
  --line: rgba(206, 218, 224, 0.22);
  --line-strong: rgba(206, 218, 224, 0.4);
  --surface: #4A2A61;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 22px;
  margin-bottom: clamp(20px, 2.6vw, 36px);
}

.section-head .h-section { flex: 1 1 auto; min-width: 200px; }

/* ---------- 8. 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(16px, 2vw, 28px);
}

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

.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-9 { grid-column: span 9; }
.col-12 { grid-column: span 12; }

/* ---------- 9. 面板 / 卡片 / 数据块 ---------- */
.panel,
.card,
.btn,
.tool-btn,
.chip,
.nav-toggle,
.to-top,
.media {
  clip-path: polygon(0 0,
    calc(100% - var(--cut, 18px)) 0,
    100% var(--cut, 18px),
    100% 100%,
    0 100%);
}

.panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(20px, 2.4vw, 34px);
  color: inherit;
}

.panel--ink { background: var(--ink-2); --surface: var(--ink-2); }
.panel--indigo { background: var(--indigo); --surface: var(--indigo); }
.panel--violet { background: var(--violet); --surface: var(--violet); }
.panel--paper { background: var(--paper); color: #23343C; --surface: var(--paper); }

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(18px, 2vw, 26px);
  transition: border-color 200ms var(--ease), transform 200ms var(--ease);
}

.card:hover {
  border-color: rgba(255, 107, 26, 0.55);
  transform: translateY(-2px);
}

.card-title {
  font-size: clamp(16px, 1.5vw, 20px);
  font-weight: 900;
  color: var(--strong);
  line-height: 1.3;
}

.card-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.stat {
  min-width: 160px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-value {
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1;
  color: var(--orange);
  letter-spacing: -0.02em;
}

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

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 3vw, 44px);
  align-items: flex-end;
}

/* ---------- 10. 面包屑 ---------- */
.breadcrumb { padding-block: clamp(18px, 2.4vw, 30px); }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.breadcrumb-list li { display: inline-flex; align-items: center; gap: 8px; }

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

.breadcrumb-list a {
  color: var(--steel-light);
  transition: color 160ms var(--ease);
}

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

.breadcrumb-list [aria-current="page"] { color: var(--orange); }

/* ---------- 11. 图片容器 ---------- */
.media {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
}

.media > img,
.media > svg,
.media > picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media--4x5 { aspect-ratio: 4 / 5; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--21x9 { aspect-ratio: 21 / 9; }
.media--paper { background: #E4EAE8; }

.media-caption {
  margin-top: 10px;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- 12. 横向数据轨道 ---------- */
.rail-wrap {
  position: relative;
}

.rail-wrap::before,
.rail-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--orange);
  opacity: 0;
  pointer-events: none;
  z-index: 2;
  transition: opacity 200ms var(--ease);
}

.rail-wrap::before { left: 0; }
.rail-wrap::after { right: 0; }

.rail-wrap[data-at-start="true"]::before { opacity: 1; }
.rail-wrap[data-at-end="true"]::after { opacity: 1; }

.rail {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--orange-soft) rgba(143, 166, 178, 0.2);
  padding-block: 6px;
}

.rail::-webkit-scrollbar { height: 6px; }
.rail::-webkit-scrollbar-track { background: rgba(143, 166, 178, 0.18); }
.rail::-webkit-scrollbar-thumb { background: var(--orange-soft); }

.rail-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding-inline: clamp(14px, 1.8vw, 24px);
  border-left: 1px solid var(--line);
}

.rail-item:first-child { border-left: 0; }

/* ---------- 13. 章节索引 ---------- */
.toc {
  position: sticky;
  top: calc(var(--header-h) + 22px);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc-link {
  display: block;
  padding: 8px 12px;
  border-left: 1px solid var(--line-strong);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: color 160ms var(--ease),
              border-color 160ms var(--ease),
              background-color 160ms var(--ease);
}

.toc-link:hover { color: var(--paper); }

.toc-link[aria-current="true"] {
  color: var(--orange);
  border-left-color: var(--orange);
  background: rgba(255, 107, 26, 0.1);
}

/* ---------- 14. 标签筛选 ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 15px;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--steel-light);
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
  --cut: 10px;
  transition: background-color 160ms var(--ease),
              color 160ms var(--ease),
              border-color 160ms var(--ease);
}

.chip:hover { border-color: var(--orange); color: var(--paper); }

.chip[aria-pressed="true"] {
  background: var(--orange);
  border-color: var(--orange);
  color: #06201A;
  font-weight: 700;
}

/* ---------- 15. 显现与返回顶部 ---------- */
[data-reveal] { opacity: 1; transform: none; }

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(8px);
}

html.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 38px);
  bottom: clamp(16px, 3vw, 38px);
  z-index: 110;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink-2);
  color: var(--orange);
  border: 1px solid rgba(255, 107, 26, 0.5);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translate(16px, 16px);
  transition: opacity 280ms var(--ease),
              transform 280ms var(--ease),
              visibility 280ms var(--ease),
              background-color 180ms var(--ease);
}

.to-top:hover { background: var(--ink); }

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* ---------- 16. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 120px);
  background: var(--ink-deep);
  border-top: 1px solid var(--line);
  color: var(--steel-light);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), rgba(255, 107, 26, 0) 68%);
  opacity: 0.9;
}

.footer-inner {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding: clamp(40px, 5.4vw, 78px) var(--gutter) 0;
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) repeat(3, minmax(130px, 0.85fr));
  gap: clamp(24px, 3vw, 52px);
}

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

.footer-brand-mark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(20px, 2vw, 25px);
  letter-spacing: -0.02em;
  color: var(--paper);
  line-height: 1.1;
}

.footer-brand-line {
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--steel);
}

.footer-contact-line {
  margin-top: 18px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--steel-light);
}

.footer-address {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--steel);
  max-width: 30ch;
}

.footer-col-title {
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-list a {
  position: relative;
  display: inline-block;
  font-size: 14px;
  color: var(--steel-light);
  transition: color 160ms var(--ease), padding-left 180ms var(--ease);
}

.footer-list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--orange);
  transform: translateY(-50%);
  transition: width 180ms var(--ease);
}

.footer-list a:hover {
  color: var(--paper);
  padding-left: 16px;
}

.footer-list a:hover::before { width: 10px; }

.footer-legal {
  width: 100%;
  max-width: var(--page-max);
  margin: clamp(32px, 4vw, 58px) auto 0;
  padding: 20px var(--gutter) 26px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 26px;
}

.footer-legal-item {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--steel);
}

/* ---------- 17. 紧凑密度 ---------- */
html[data-density="compact"] .section {
  padding-block: clamp(26px, 4vw, 56px);
}

html[data-density="compact"] .card {
  padding: clamp(13px, 1.4vw, 18px);
  gap: 8px;
}

html[data-density="compact"] .grid {
  gap: clamp(10px, 1.2vw, 16px);
}

html[data-density="compact"] .section-head {
  margin-bottom: clamp(14px, 1.8vw, 22px);
}

/* ---------- 18. 响应式 ---------- */
@media (max-width: 1140px) {
  .nav-list a { padding: 10px 9px; font-size: 12px; }
  .brand-line { display: none; }
}

@media (max-width: 960px) {
  .site-header,
  .site-header.is-solid { height: var(--header-h); }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    display: none;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    padding: 10px var(--gutter) 24px;
    margin-inline-start: 0;
  }

  .site-nav[data-open] {
    display: block;
    animation: nav-drop 260ms var(--ease);
  }

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

  .nav-list a {
    display: block;
    padding: 15px 2px;
    font-size: 14px;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--line);
  }

  .nav-list a[aria-current="page"]::after {
    left: 2px;
    right: auto;
    bottom: 10px;
    width: 24px;
  }

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

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

  .col-3, .col-4, .col-5, .col-6,
  .col-7, .col-8, .col-9 { grid-column: span 6; }

  .toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 22px;
  }

  .toc-link {
    border-left: 0;
    border-bottom: 1px solid var(--line-strong);
    padding: 7px 10px;
  }

  .toc-link[aria-current="true"] {
    border-bottom-color: var(--orange);
  }

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

  .footer-brand { grid-column: 1 / -1; }
}

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

@media (max-width: 720px) {
  .header-cta { display: none; }
  .tool-btn-label { display: none; }
}

@media (max-width: 620px) {
  .grid-12 { grid-template-columns: minmax(0, 1fr); }

  .col-3, .col-4, .col-5, .col-6,
  .col-7, .col-8, .col-9,
  .col-12 { grid-column: 1 / -1; }

  .stat { min-width: 130px; }

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

  .footer-legal { flex-direction: column; }
}

/* ---------- 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;
  }

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

  .to-top { transform: none; }
}
