/* ============================================================
   完美体育 · 赛事数据台
   /assets/site.css — 共享层
   重置 / 变量 / 中文排版 / 头部战术轴 / 页脚 / 通用组件
   ============================================================ */

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

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

body,
h1, h2, h3, h4, h5, p,
dl, dt, dd, figure, blockquote, pre { margin: 0; }

ul, ol { margin: 0; padding: 0; 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;
  padding: 0;
  cursor: pointer;
}

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

hr { border: 0; border-top: 1px dashed var(--line); }

/* ---------- 2. 变量 ---------- */
:root {
  --teal: #07302B;
  --moss: #14524A;
  --flare: #FF6A1F;
  --clay: #C2532A;
  --spark: #2FD2F0;
  --paper: #F4F1E9;
  --warm: #FBFAF5;
  --stone: #2B2E2C;
  --mist: #9AA39C;
  --night: #0A1512;

  --line: rgba(43, 46, 44, .22);
  --line-invert: rgba(244, 241, 233, .2);

  --rail-w: 252px;
  --topbar-h: 62px;
  --strip-h: 46px;

  --gutter: clamp(18px, 4vw, 52px);
  --vpad: clamp(48px, 6.5vw, 96px);

  --bd: 2px solid var(--teal);
  --bd-dark: 2px solid var(--night);
  --bd-invert: 2px solid rgba(244, 241, 233, .22);
  --shadow: 4px 4px 0 var(--teal);
  --shadow-soft: 6px 6px 0 rgba(7, 48, 43, .28);

  --f-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
            "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", "IBM Plex Mono", "Roboto Mono",
            ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: 340ms;
}

/* ---------- 3. 基础排版 ---------- */
body {
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(7, 48, 43, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 48, 43, .035) 1px, transparent 1px);
  background-size: 72px 72px;
  background-attachment: fixed;
  color: var(--stone);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(34px, 5.2vw, 66px); font-weight: 200; line-height: 1.02; }
h2 { font-size: clamp(24px, 3.2vw, 40px); }
h3 { font-size: clamp(17px, 1.7vw, 22px); font-weight: 500; line-height: 1.3; }
h4 { font-size: 15px; font-weight: 600; letter-spacing: .02em; }

p { max-width: 72ch; }

.display {
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 200;
  line-height: .98;
  letter-spacing: -.01em;
}

.label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--mist);
  line-height: 1.5;
}

.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

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

::selection {
  background: var(--flare);
  color: var(--night);
}

/* ---------- 4. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  top: -72px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--flare);
  color: var(--night);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  border: 2px solid var(--night);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- 5. 站点头部 · 侧边战术轴 ---------- */
.site-head {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 90;
  background: var(--teal);
  color: var(--paper);
  border-right: 2px solid var(--night);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  height: 3px;
  background: var(--spark);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
  pointer-events: none;
  z-index: 95;
}

.rail {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
  padding: 22px 16px 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.rail__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rail__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.rail__mark {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--flare);
  border: 2px solid rgba(255, 106, 31, .5);
  background: rgba(255, 106, 31, .08);
}

.rail__id {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rail__name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.3;
  color: var(--paper);
}

.rail__sub {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: rgba(244, 241, 233, .5);
  line-height: 1.5;
}

.rail__meta {
  max-width: none;
  font-size: 11px;
  letter-spacing: .14em;
  line-height: 1.8;
  color: rgba(244, 241, 233, .55);
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line-invert);
}

.rail__nav { flex: 1 1 auto; min-height: 0; }

.rail__list { display: flex; flex-direction: column; gap: 2px; }

.rail__link {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 10px 11px 12px;
  border-left: 3px solid transparent;
  font-size: 15px;
  letter-spacing: .02em;
  color: rgba(244, 241, 233, .68);
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}

.rail__num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--mist);
  transition: color .2s var(--ease);
}

.rail__link:hover {
  color: var(--paper);
  background: rgba(244, 241, 233, .06);
}

.rail__link[aria-current="page"] {
  color: var(--paper);
  background: rgba(255, 106, 31, .12);
  border-left-color: var(--flare);
}

.rail__link[aria-current="page"] .rail__num { color: var(--flare); }

/* 悬浮数据条 */
.rail__strip {
  position: relative;
  margin-top: auto;
  background: var(--night);
  border: 2px solid rgba(47, 210, 240, .34);
  padding: 14px 12px 12px;
}

.strip__toggle {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--spark);
}

.strip__chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
  transition: transform .25s var(--ease);
}

.rail__strip[data-collapsed] .strip__chevron {
  transform: rotate(-135deg) translate(-1px, -1px);
}

.rail__strip[data-collapsed] .strip__list { display: none; }

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

.strip__k {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--mist);
  line-height: 1.4;
}

.strip__v {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  letter-spacing: .02em;
  color: var(--spark);
  line-height: 1.4;
  margin: 0;
  white-space: nowrap;
}

/* 移动端抽屉按钮 */
.nav-toggle {
  display: none;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 2px solid rgba(244, 241, 233, .32);
  color: var(--paper);
  transition: background .2s var(--ease), border-color .2s var(--ease);
}

.nav-toggle:hover { background: rgba(244, 241, 233, .08); }

.nav-toggle__bar {
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform .26s var(--ease);
}

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

/* ---------- 6. 站点页脚 ---------- */
.site-foot {
  background: var(--night);
  color: rgba(244, 241, 233, .78);
  border-top: 6px solid var(--moss);
  padding: clamp(44px, 6vw, 84px) 0 28px;
}

.foot__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px 26px;
}

.foot__brand {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 22px;
  border-bottom: 1px dashed var(--line-invert);
}

.foot__mark {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--flare);
  border: 2px solid rgba(255, 106, 31, .45);
}

.foot__id { display: flex; flex-direction: column; min-width: 0; }

.foot__name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--paper);
  line-height: 1.4;
}

.foot__sub {
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(244, 241, 233, .5);
  line-height: 1.6;
}

.foot__head {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--spark);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(47, 210, 240, .22);
}

.foot__links { display: flex; flex-direction: column; gap: 9px; }

.foot__links a {
  display: inline-block;
  font-size: 14px;
  color: rgba(244, 241, 233, .7);
  border-bottom: 1px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}

.foot__links a:hover {
  color: var(--paper);
  border-bottom-color: var(--flare);
}

.foot__contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px 28px;
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px dashed var(--line-invert);
}

.foot__item--wide { grid-column: span 1; }

.foot__k {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--mist);
  line-height: 1.6;
  max-width: none;
}

.foot__v {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(244, 241, 233, .82);
  max-width: 42ch;
  word-break: break-word;
}

.foot__base {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 28px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 2px solid var(--moss);
}

.foot__legal,
.foot__copy {
  font-size: 12px;
  line-height: 1.8;
  color: var(--mist);
  max-width: 62ch;
}

.foot__copy { font-family: var(--f-mono); letter-spacing: .04em; white-space: nowrap; }

/* ---------- 7. 容器与章节 ---------- */
.wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: 820px; }

.section {
  position: relative;
  padding: var(--vpad) 0;
}

.section--tight { padding: clamp(28px, 3.5vw, 52px) 0; }
.section--paper { background: var(--paper); }
.section--warm { background: var(--warm); }
.section--dark { background: var(--teal); color: var(--paper); }
.section--moss { background: var(--moss); color: var(--paper); }
.section--night { background: var(--night); color: var(--paper); }

.section--dark .section__lede,
.section--moss .section__lede,
.section--night .section__lede { color: rgba(244, 241, 233, .76); }

.section--dark .section__eyebrow,
.section--moss .section__eyebrow,
.section--night .section__eyebrow { color: var(--spark); }

.section__head { margin-bottom: clamp(22px, 3vw, 40px); }

.section__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--clay);
  margin-bottom: 14px;
}

.section__eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 22px;
  height: 2px;
  background: var(--flare);
}

.section__title { max-width: 22ch; }

.section__lede {
  margin-top: 14px;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.8;
  color: rgba(43, 46, 44, .78);
  max-width: 64ch;
}

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

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

@media (max-width: 900px) {
  .grid--2,
  .grid--3,
  .grid--7-4,
  .grid--4-7 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 9. 面板 / 斜切 ---------- */
.panel {
  background: var(--warm);
  border: var(--bd);
  box-shadow: var(--shadow);
  padding: clamp(18px, 2.4vw, 28px);
}

.panel--dark {
  background: var(--teal);
  color: var(--paper);
  border-color: var(--night);
  box-shadow: var(--shadow-soft);
}

.panel--moss {
  background: var(--moss);
  color: var(--paper);
  border-color: var(--night);
  box-shadow: var(--shadow-soft);
}

.panel--flare {
  background: var(--flare);
  color: var(--night);
  border-color: var(--night);
  box-shadow: 4px 4px 0 var(--night);
}

.cut-tr { clip-path: polygon(0 0, calc(100% - 34px) 0, 100% 34px, 100% 100%, 0 100%); }
.cut-bl { clip-path: polygon(0 0, 100% 0, 100% 100%, 34px 100%, 0 calc(100% - 34px)); }

/* ---------- 10. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--warm);
  color: var(--teal);
  border: 2px solid var(--teal);
  box-shadow: 4px 4px 0 var(--teal);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.4;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}

.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--teal); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--teal); }

.btn--solid {
  background: var(--teal);
  color: var(--paper);
  box-shadow: 4px 4px 0 var(--flare);
}
.btn--solid:hover { box-shadow: 2px 2px 0 var(--flare); }
.btn--solid:active { box-shadow: 0 0 0 var(--flare); }

.btn--flare {
  background: var(--flare);
  color: var(--night);
  border-color: var(--night);
  box-shadow: 4px 4px 0 var(--night);
}
.btn--flare:hover { box-shadow: 2px 2px 0 var(--night); }
.btn--flare:active { box-shadow: 0 0 0 var(--night); }

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(244, 241, 233, .45);
  box-shadow: 4px 4px 0 rgba(244, 241, 233, .18);
}
.btn--ghost:hover { box-shadow: 2px 2px 0 rgba(244, 241, 233, .18); }
.btn--ghost:active { box-shadow: 0 0 0 rgba(244, 241, 233, .18); }

/* ---------- 11. 面包屑 / 标签 ---------- */
.crumbs {
  padding-top: 20px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--mist);
}

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

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

.crumbs li + li::before {
  content: "—";
  color: rgba(154, 163, 156, .7);
}

.crumbs a { transition: color .2s var(--ease); }
.crumbs a:hover { color: var(--flare); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  line-height: 1.6;
  border: 1px solid var(--clay);
  color: var(--clay);
  background: transparent;
}

.tag--flare { border-color: var(--flare); color: var(--flare); }
.tag--spark { border-color: var(--spark); color: var(--spark); }

/* ---------- 12. 数据组件 ---------- */
.stat { display: flex; flex-direction: column; gap: 6px; }

.stat__num {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(34px, 4.6vw, 60px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.02em;
}

.stat__unit {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--mist);
}

.stat__label {
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--mist);
  line-height: 1.6;
}

.stat__row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3.4vw, 48px);
}

.band {
  border-top: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  background: var(--warm);
  padding: 18px 0;
  overflow: hidden;
}

.section--dark .band,
.section--night .band { border-color: rgba(47, 210, 240, .4); background: rgba(47, 210, 240, .05); }

.band__track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  padding-inline: var(--gutter);
  scrollbar-width: thin;
}

.band__tick {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--mist);
}

.band__tick b {
  font-size: 18px;
  font-weight: 500;
  color: var(--teal);
}

/* ---------- 13. 长文 / 旁注 / 折叠 ---------- */
.prose { max-width: 72ch; }

.prose p { font-size: clamp(15px, 1.2vw, 17px); line-height: 1.8; }

.prose p + p {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.section--dark .prose p + p,
.section--moss .prose p + p,
.section--night .prose p + p { border-top-color: var(--line-invert); }

.note {
  border-left: 3px solid var(--clay);
  background: var(--warm);
  padding: 12px 16px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--stone);
}

.fold { border-top: 1px dashed var(--line); }

.fold summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--mist);
}

.fold summary::-webkit-details-marker { display: none; }

.fold summary::after {
  content: "+";
  font-family: var(--f-mono);
  font-size: 16px;
  line-height: 1;
  color: var(--clay);
}

.fold[open] summary::after { content: "−"; }

.fold__body {
  padding: 0 0 16px;
  font-size: 14px;
  line-height: 1.85;
  color: rgba(43, 46, 44, .82);
}

/* ---------- 14. 索引列表 ---------- */
.index-list { display: flex; flex-direction: column; }

.index-list li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
}

.index-list__idx {
  flex: 0 0 auto;
  min-width: 38px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--clay);
}

.index-list__txt { font-size: 15px; line-height: 1.7; }

.section--dark .index-list li,
.section--night .index-list li { border-bottom-color: var(--line-invert); }

/* ---------- 15. 数据表 ---------- */
.data-table {
  width: 100%;
  font-size: 14px;
  border-top: 2px solid var(--teal);
}

.data-table th {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--mist);
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid var(--teal);
  white-space: nowrap;
}

.data-table td {
  padding: 12px;
  border-bottom: 1px dashed var(--line);
  vertical-align: middle;
  line-height: 1.6;
}

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

.data-table tbody tr:nth-child(even) { background: var(--warm); }
.data-table tbody tr:hover { background: rgba(47, 210, 240, .08); }

/* ---------- 16. 图片容器（页面阶段放入 <img>） ---------- */
.media {
  position: relative;
  overflow: hidden;
  background: var(--moss);
  border: var(--bd);
  aspect-ratio: 16 / 9;
}

.media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(135deg, rgba(47, 210, 240, .16) 0 1px, transparent 1px),
    repeating-linear-gradient(45deg, rgba(244, 241, 233, .06) 0 8px, transparent 8px 18px);
}

.media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.media__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  background: var(--night);
  color: var(--paper);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  padding: 6px 10px;
}

/* ---------- 17. 分割线 ---------- */
.rule {
  height: 0;
  border-top: 1px dashed var(--line);
  margin: clamp(22px, 3vw, 38px) 0;
}

.section--dark .rule,
.section--moss .rule,
.section--night .rule { border-top-color: var(--line-invert); }

/* ---------- 18. 滚动显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 19. 响应式：内容偏移 ---------- */
@media (min-width: 1080px) {
  body { padding-left: var(--rail-w); }
}

@media (max-width: 1079.98px) {
  body {
    padding-top: var(--topbar-h);
    padding-bottom: calc(var(--strip-h) + 4px);
  }

  .scroll-progress { top: var(--topbar-h); left: 0; }

  .site-head {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: var(--topbar-h);
    border-right: 0;
    border-bottom: 2px solid var(--night);
    overflow: visible;
  }

  .rail {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    height: 100%;
    padding: 0 10px 0 16px;
    overflow: visible;
  }

  .rail__top { width: 100%; }

  .rail__meta { display: none; }

  .nav-toggle { display: flex; }

  .rail__nav {
    position: fixed;
    top: var(--topbar-h);
    right: 0;
    bottom: 0;
    width: min(320px, 86vw);
    background: var(--moss);
    border-left: 2px solid var(--night);
    box-shadow: -10px 0 0 rgba(10, 21, 18, .35);
    padding: 20px 16px calc(var(--strip-h) + 28px);
    overflow-y: auto;
    transform: translateX(102%);
    transition: transform .3s var(--ease);
    z-index: 92;
  }

  .site-head[data-open] .rail__nav { transform: translateX(0); }

  .rail__link {
    padding: 14px 12px;
    font-size: 16px;
    border-left-width: 3px;
  }

  .rail__strip {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    min-height: var(--strip-h);
    display: flex;
    align-items: center;
    border: 0;
    border-top: 2px solid rgba(47, 210, 240, .4);
    padding: 6px 14px;
    z-index: 93;
  }

  .rail__strip[data-collapsed] .strip__list { display: grid; }

  .strip__toggle { display: none; }

  .strip__list {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .strip__k { font-size: 9px; }
  .strip__v { font-size: 12px; }
}

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

@media (max-width: 560px) {
  .foot__grid { grid-template-columns: minmax(0, 1fr); }
  .foot__brand { align-items: flex-start; }
  .foot__copy { white-space: normal; }
  .foot__base { flex-direction: column; align-items: flex-start; }
  .rail__name { font-size: 15px; }
}

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

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

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