/* ==========================================================================
   ZOTY · 中欧体育平台 — 共享样式表 /assets/site.css
   夜场战术板：夜蓝铺底 · 墨绿边线 · 米白正文 · 青绿数据
   ========================================================================== */

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

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

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

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

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

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

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

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

::selection {
  background: var(--c-mint);
  color: #04221c;
}

/* ---------- 2. 变量 ---------- */
:root {
  /* 色彩 */
  --c-night: #0B1B2B;
  --c-forest: #0E2A26;
  --c-rock: #243238;
  --c-cream: #F2EDE4;
  --c-moss: #5F7A62;
  --c-red: #E0402F;
  --c-yellow: #F2C230;
  --c-mint: #3BEFC4;
  --c-clay: #B4693F;

  --ink: var(--c-cream);
  --ink-70: rgba(242, 237, 228, 0.7);
  --ink-55: rgba(242, 237, 228, 0.55);
  --ink-40: rgba(242, 237, 228, 0.4);

  --line: 1px solid rgba(95, 122, 98, 0.42);
  --line-strong: 1px solid rgba(95, 122, 98, 0.78);

  /* 尺寸 */
  --rail: 88px;
  --wrap: 1240px;
  --gutter: clamp(18px, 4vw, 64px);
  --cut: 14px;

  /* 字体 */
  --font-display: 'Arial Narrow', 'Helvetica Neue Condensed', 'PingFang SC',
    'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --font-body: 'Inter', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei',
    system-ui, -apple-system, sans-serif;
  --font-num: 'Roboto Mono', 'SF Mono', Menlo, Consolas, monospace;

  /* 动效 */
  --t-fast: 140ms;
  --t-mid: 180ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--c-night);
  background-image:
    linear-gradient(180deg, rgba(14, 42, 38, 0.55) 0%, rgba(11, 27, 43, 0) 420px);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(42px, 7vw, 96px); letter-spacing: -0.03em; }
h2 { font-size: clamp(26px, 3.2vw, 42px); }
h3 { font-size: clamp(19px, 1.8vw, 24px); letter-spacing: 0; }
h4 { font-size: 17px; letter-spacing: 0.02em; }

p { line-height: 1.72; }

strong { font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--c-mint);
  outline-offset: 3px;
  border-radius: 1px;
}

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

.section { padding-block: clamp(44px, 6vw, 104px); }
.section--tight { padding-block: clamp(28px, 4vw, 56px); }
.section--forest { background: var(--c-forest); }
.section--rock { background: var(--c-rock); }

.lede {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.8;
  color: var(--ink-70);
  max-width: 32em;
}

.prose { color: var(--ink-70); }
.prose p { max-width: 32em; margin-bottom: 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); }

/* ---------- 5. 章节带 ---------- */
.chapter-band {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  padding-top: 14px;
  border-top: var(--line);
  margin-bottom: clamp(24px, 3vw, 44px);
}

.chapter-band__num {
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--c-clay);
  flex: 0 0 auto;
}

.chapter-band__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
}

.chapter-band__meta {
  margin-left: auto;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-40);
  text-transform: uppercase;
}

/* ---------- 6. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: var(--line);
  font-family: var(--font-num);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-70);
  background: rgba(11, 27, 43, 0.4);
  white-space: nowrap;
}

.tag--red {
  background: var(--c-red);
  border-color: var(--c-red);
  color: #FFF6F3;
}

.tag--yellow {
  background: var(--c-yellow);
  border-color: var(--c-yellow);
  color: #21180A;
}

.tag--mint {
  border-color: rgba(59, 239, 196, 0.6);
  color: var(--c-mint);
  background: rgba(59, 239, 196, 0.08);
}

.tag--clay {
  border-color: rgba(180, 105, 63, 0.7);
  color: #D99B72;
  background: rgba(180, 105, 63, 0.1);
}

/* ---------- 7. 按钮 ---------- */
.btn {
  --cut: 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--c-rock);
  color: var(--ink);
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut));
  box-shadow: inset 0 0 0 1px rgba(95, 122, 98, 0.7);
  transition: background var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease);
  cursor: pointer;
}

.btn:hover {
  box-shadow: inset 0 0 0 1px var(--c-mint);
  background: #2C3C43;
}

.btn--primary {
  background: var(--c-mint);
  color: #04221C;
  box-shadow: inset 0 0 0 1px var(--c-mint);
}

.btn--primary:hover {
  background: #6FF6D6;
  box-shadow: inset 0 0 0 1px #6FF6D6;
}

.btn--ghost {
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(242, 237, 228, 0.34);
}

.btn--ghost:hover {
  background: rgba(59, 239, 196, 0.08);
  box-shadow: inset 0 0 0 1px var(--c-mint);
  color: var(--c-mint);
}

/* ---------- 8. 面包屑 ---------- */
.breadcrumb {
  padding-block: 18px;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-40);
}

.breadcrumb__item { display: inline-flex; align-items: center; gap: 10px; }

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: rgba(95, 122, 98, 0.7);
}

.breadcrumb__item a {
  color: var(--ink-55);
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
}

.breadcrumb__item a:hover { color: var(--c-mint); border-bottom-color: var(--c-mint); }

.breadcrumb__item[aria-current="page"] { color: var(--c-clay); }

/* ---------- 9. 数据卡 ---------- */
.data-card {
  --cut: 16px;
  position: relative;
  padding: 22px 24px 24px;
  background: var(--c-rock);
  box-shadow: inset 0 0 0 1px rgba(95, 122, 98, 0.45);
  clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut));
  transition: transform var(--t-fast) var(--ease),
    box-shadow var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease);
}

.data-card:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px var(--c-mint);
  background: #2A3A40;
}

.data-card__value {
  display: inline-block;
  font-family: var(--font-num);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-mint);
  font-variant-numeric: tabular-nums;
}

.data-card__unit {
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-55);
  margin-left: 6px;
}

.data-card__label {
  display: block;
  margin-top: 12px;
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-clay);
}

.data-card__note {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-55);
}

/* ---------- 10. 宽表 ---------- */
.wide-table {
  width: 100%;
  overflow-x: auto;
  border: var(--line);
  background: rgba(11, 27, 43, 0.35);
  -webkit-overflow-scrolling: touch;
}

.wide-table table {
  min-width: 640px;
  font-size: 14px;
}

.wide-table caption {
  caption-side: top;
  text-align: left;
  padding: 12px 16px;
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-40);
}

.wide-table th,
.wide-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(95, 122, 98, 0.22);
  white-space: nowrap;
}

.wide-table thead th {
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-40);
  background: var(--c-forest);
  border-bottom: var(--line);
}

.wide-table tbody tr {
  transition: background var(--t-fast) linear;
}

.wide-table tbody tr:hover { background: rgba(59, 239, 196, 0.06); }

.wide-table th:first-child,
.wide-table td:first-child {
  position: sticky;
  left: 0;
  background: #16283A;
  z-index: 2;
  box-shadow: 1px 0 0 rgba(95, 122, 98, 0.35);
}

.wide-table thead th:first-child { background: var(--c-forest); }

.wide-table td:first-child { color: var(--ink); }

/* ---------- 11. 图片容器 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--c-rock);
  border: var(--line);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
}

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

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(11, 27, 43, 0) 48%,
    rgba(11, 27, 43, 0.76) 100%
  );
}

.media--16-9 { aspect-ratio: 16 / 9; }
.media--4-5  { aspect-ratio: 4 / 5; }
.media--cinema { aspect-ratio: 21 / 9; }

.media__caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-70);
}

/* ---------- 12. 显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease);
}

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

/* ==========================================================================
   13. 头部 / 边线栏
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 80;
  width: var(--rail);
  display: flex;
  flex-direction: column;
  background: var(--c-forest);
  background-image: linear-gradient(
    180deg,
    rgba(59, 239, 196, 0.05) 0%,
    rgba(11, 27, 43, 0) 38%
  );
  border-right: 1px solid rgba(95, 122, 98, 0.45);
}

/* 跳转链接 */
.skip-link {
  position: absolute;
  top: -120px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--c-mint);
  color: #04221C;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  white-space: nowrap;
  transition: top var(--t-fast) var(--ease);
}

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

/* 品牌 */
.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 4px 16px;
  border-bottom: 1px solid rgba(95, 122, 98, 0.35);
  transition: background var(--t-fast) var(--ease);
}

.brand:hover { background: rgba(59, 239, 196, 0.06); }

.brand__mark {
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--c-mint);
}

.brand__name {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--ink);
}

/* 移动端命令条里的查询入口 */
.header-query {
  display: none;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(95, 122, 98, 0.7);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink);
  white-space: nowrap;
  transition: border-color var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease);
}

.header-query:hover {
  border-color: var(--c-mint);
  background: rgba(59, 239, 196, 0.1);
  color: var(--c-mint);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  border: 1px solid rgba(95, 122, 98, 0.7);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink);
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease);
}

.nav-toggle:hover { border-color: var(--c-mint); }

.nav-toggle[aria-expanded="true"] {
  border-color: var(--c-mint);
  background: rgba(59, 239, 196, 0.12);
  color: var(--c-mint);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 14px;
}

.nav-toggle__bars span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: currentColor;
  transition: transform var(--t-fast) var(--ease),
    opacity var(--t-fast) var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  transform: translateY(4.5px) 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(-4.5px) rotate(-45deg);
}

.nav-toggle__label { line-height: 1; }

/* 导航 */
.site-nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 6px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(95, 122, 98, 0.6) transparent;
}

.site-nav__list {
  display: flex;
  flex-direction: column;
}

.site-nav__list li { position: relative; }

.site-nav__list a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 11px 3px;
  border-left: 2px solid transparent;
  color: rgba(242, 237, 228, 0.62);
  transition: color var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
}

.site-nav__idx {
  font-family: var(--font-num);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--c-clay);
  transition: color var(--t-fast) var(--ease);
}

.site-nav__text {
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-align: center;
  word-break: keep-all;
}

.site-nav__list a:hover {
  color: var(--ink);
  background: rgba(242, 237, 228, 0.06);
  border-left-color: rgba(180, 105, 63, 0.9);
}

.site-nav__list a:hover .site-nav__idx { color: #D99B72; }

.site-nav__list a[aria-current="page"] {
  color: var(--ink);
  background: rgba(59, 239, 196, 0.1);
  border-left-color: var(--c-mint);
}

.site-nav__list a[aria-current="page"] .site-nav__idx { color: var(--c-mint); }

/* 底部状态 */
.rail-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 14px 8px 16px;
  border-top: 1px solid rgba(95, 122, 98, 0.35);
  text-align: center;
}

.rail-status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-mint);
  box-shadow: 0 0 0 3px rgba(59, 239, 196, 0.16);
}

.rail-status__text {
  font-family: var(--font-num);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: rgba(242, 237, 228, 0.5);
}

/* 滚动进度条 */
.scroll-meter {
  position: absolute;
  top: 0;
  right: -1px;
  bottom: 0;
  width: 2px;
  pointer-events: none;
  background: rgba(95, 122, 98, 0.22);
}

.scroll-meter__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: top center;
  transform: scaleY(var(--progress, 0));
  background: linear-gradient(180deg, var(--c-mint) 0%, var(--c-mint) 55%, var(--c-clay) 100%);
  transition: transform 90ms linear;
}

/* ==========================================================================
   14. 页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: auto;
  background: var(--c-forest);
  color: var(--ink-70);
  border-top: 1px solid rgba(95, 122, 98, 0.45);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--c-mint) 0%,
    var(--c-clay) 46%,
    rgba(95, 122, 98, 0.12) 78%,
    transparent 100%
  );
  opacity: 0.7;
}

.footer-inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(38px, 5vw, 76px) var(--gutter) clamp(26px, 3.4vw, 46px);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 54px);
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.footer-brand__mark {
  font-family: var(--font-num);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.3em;
  line-height: 1;
  color: var(--ink);
}

.footer-brand__name {
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.24em;
  color: var(--c-mint);
}

.footer-brand__note {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-40);
}

.footer-col__title {
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-clay);
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(95, 122, 98, 0.32);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: rgba(242, 237, 228, 0.64);
}

.footer-list strong {
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.footer-list a {
  display: inline-block;
  width: fit-content;
  color: rgba(242, 237, 228, 0.7);
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
}

.footer-list a:hover {
  color: var(--c-mint);
  border-bottom-color: var(--c-mint);
}

.footer-base {
  border-top: 1px solid rgba(95, 122, 98, 0.3);
}

.footer-base__inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 16px var(--gutter) 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 22px;
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-40);
}

.to-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(95, 122, 98, 0.5);
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-55);
  cursor: pointer;
  transition: color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease);
}

.to-top:hover {
  color: var(--c-mint);
  border-color: var(--c-mint);
  background: rgba(59, 239, 196, 0.08);
}

/* ==========================================================================
   15. 桌面断点：留出边线栏宽度
   ========================================================================== */
@media (min-width: 768px) {

  body { padding-left: var(--rail); }

  .footer-inner {
    grid-template-columns: 1.15fr 1fr 1fr;
    align-items: start;
  }

  .wide-table table { white-space: normal; }
}

@media (min-width: 1180px) {
  .footer-inner { grid-template-columns: 1.35fr 1fr 1fr; }
}

/* ==========================================================================
   16. 移动端：边线栏折叠为顶部命令条
   ========================================================================== */
@media (max-width: 767px) {

  html { scroll-padding-top: 84px; }

  body { padding-left: 0; }

  .site-header {
    position: sticky;
    top: 0;
    left: auto;
    bottom: auto;
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    border-right: 0;
    border-bottom: 1px solid rgba(95, 122, 98, 0.5);
    box-shadow: 0 10px 26px rgba(4, 12, 20, 0.45);
  }

  .skip-link { left: 12px; }

  .brand {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 0;
    border-bottom: 0;
    margin-right: auto;
  }

  .brand__mark { font-size: 10px; letter-spacing: 0.2em; }

  .brand__name {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    font-size: 15px;
    letter-spacing: 0.14em;
  }

  .header-query,
  .nav-toggle { display: inline-flex; }

  .rail-status { display: none; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 90;
    flex: none;
    padding: 6px 0 16px;
    max-height: calc(100vh - 58px);
    overflow-y: auto;
    background: var(--c-forest);
    border-bottom: 1px solid rgba(95, 122, 98, 0.55);
    box-shadow: 0 26px 46px rgba(4, 12, 20, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--t-mid) var(--ease),
      transform var(--t-mid) var(--ease),
      visibility var(--t-mid) linear;
  }

  .site-header[data-open] .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .site-nav__list a {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 15px 18px;
    border-left: 0;
    border-bottom: 1px solid rgba(95, 122, 98, 0.18);
    font-size: 15px;
    color: rgba(242, 237, 228, 0.78);
  }

  .site-nav__idx { font-size: 11px; }

  .site-nav__text { font-size: 15px; text-align: left; letter-spacing: 0.04em; }

  .site-nav__list a:hover { border-left-color: transparent; }

  .site-nav__list a[aria-current="page"] {
    border-left-color: transparent;
    border-bottom-color: rgba(59, 239, 196, 0.4);
    box-shadow: inset 3px 0 0 var(--c-mint);
  }

  .scroll-meter {
    top: auto;
    right: 0;
    left: 0;
    bottom: -1px;
    width: auto;
    height: 2px;
  }

  .scroll-meter__bar {
    transform-origin: left center;
    transform: scaleX(var(--progress, 0));
  }

  .footer-base__inner { justify-content: flex-start; }
}

/* ==========================================================================
   17. 减少动态
   ========================================================================== */
@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;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

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

  .scroll-meter__bar { transition: none; }
}

/* ==========================================================================
   18. 高对比兜底
   ========================================================================== */
@media (prefers-contrast: more) {
  :root {
    --ink-70: rgba(242, 237, 228, 0.92);
    --ink-55: rgba(242, 237, 228, 0.8);
    --ink-40: rgba(242, 237, 228, 0.68);
  }

  .site-nav__list a { color: rgba(242, 237, 228, 0.88); }

  .wide-table th,
  .wide-table td { border-bottom-color: rgba(95, 122, 98, 0.5); }
}
