/* ============================================================
   盈嘉体育 · CN 看台  —  /assets/site.css
   共享外壳：reset / 变量 / 中文排版 / 侧轨头部 / 页脚 / 通用组件
   ============================================================ */

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

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

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

ol, ul { list-style: none; }

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

a { color: inherit; }

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

/* ---------- 1. 变量 ---------- */
:root {
  --red: #E63946;
  --red-deep: #B4232F;
  --amber: #F4A261;
  --amber-deep: #D98A3D;
  --ink: #1D3557;
  --blue: #457B9D;
  --mist: #A8DADC;
  --white: #F1FAEE;
  --paper: #FDFBF7;
  --char: #0B132B;

  --rail-w: 268px;
  --wrap: 1180px;
  --wrap-wide: 1360px;

  --font-head: "Source Han Sans HC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", "Heiti SC", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Roboto Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;

  --hair: rgba(11, 19, 43, 0.14);
  --hair-strong: rgba(11, 19, 43, 0.42);
  --hair-light: rgba(241, 250, 238, 0.16);
}

/* ---------- 2. 基底与中文排版 ---------- */
body {
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(0deg, rgba(11, 19, 43, 0.045) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(90deg, rgba(11, 19, 43, 0.035) 0 1px, transparent 1px 56px);
  color: var(--char);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  min-height: 100%;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.015em;
}

h1 { font-size: 44px; }
h2 { font-size: 32px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; line-height: 1.35; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

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

strong { font-weight: 800; }

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

.rail :focus-visible,
.foot :focus-visible {
  outline-color: var(--amber);
}

/* ---------- 3. 通用容器 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

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

.section { padding: 56px 0; }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 26px;
  border-bottom: 2px solid var(--char);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
}

.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--red);
  flex: none;
}

/* ---------- 4. 面包屑 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(11, 19, 43, 0.62);
}

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

.breadcrumbs li::after {
  content: "/";
  color: rgba(11, 19, 43, 0.32);
}

.breadcrumbs li:last-child::after { content: ""; }

.breadcrumbs a {
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.breadcrumbs a:hover { border-bottom-color: var(--blue); }

/* ---------- 5. 栅格 ---------- */
.grid { display: grid; gap: 20px; }

.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)); }
.grid--split { grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); }

/* ---------- 6. 纸张面板 / 数据横切 ---------- */
.panel {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--char);
  box-shadow: 6px 6px 0 rgba(11, 19, 43, 0.12);
  padding: 24px;
}

.panel--ink {
  background: var(--ink);
  color: var(--white);
  border-color: var(--char);
  box-shadow: 6px 6px 0 rgba(230, 57, 70, 0.5);
}

.panel--ink .panel__title { color: var(--white); }

.panel--dry {
  background: var(--paper);
  border: 1px solid var(--char);
  outline: 1px solid rgba(11, 19, 43, 0.28);
  outline-offset: 4px;
  box-shadow: none;
}

.panel__title {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 18px;
  margin: 0 0 10px;
}

.strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(11, 19, 43, 0.22);
  border: 1px solid var(--char);
}

.strip__cell {
  background: var(--ink);
  color: var(--white);
  padding: 18px 16px;
}

.strip__cell:nth-child(even) { background: #16294a; }

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

.stat__num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 30px;
  line-height: 1;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}

.stat__label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.72;
}

/* ---------- 7. 标签徽章 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  background: transparent;
  color: var(--char);
  white-space: nowrap;
}

.tag--red { background: var(--red); border-color: var(--red-deep); color: #fff; }
.tag--amber { background: var(--amber); border-color: var(--amber-deep); color: var(--char); }
.tag--blue { background: var(--blue); border-color: var(--blue); color: #fff; }
.tag--mist { background: var(--mist); border-color: #7FB6B8; color: var(--char); }

.tagrow { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- 8. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 12px 20px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-decoration: none;
  color: var(--char);
  background: var(--paper);
  border: 1px solid var(--char);
  box-shadow: 3px 3px 0 var(--char);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--char); }

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

.btn--red {
  background: var(--red);
  color: #fff;
  border-color: var(--red-deep);
  box-shadow: 3px 3px 0 var(--red-deep);
}

.btn--red:hover { box-shadow: 5px 5px 0 var(--red-deep); }
.btn--red:active { box-shadow: 0 0 0 var(--red-deep); }

.btn--amber {
  background: var(--amber);
  color: var(--char);
  border-color: var(--amber-deep);
  box-shadow: 3px 3px 0 var(--amber-deep);
}

.btn--amber:hover { box-shadow: 5px 5px 0 var(--amber-deep); }
.btn--amber:active { box-shadow: 0 0 0 var(--amber-deep); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
  box-shadow: 3px 3px 0 rgba(241, 250, 238, 0.32);
}

.btn--ghost:hover { box-shadow: 5px 5px 0 rgba(241, 250, 238, 0.32); }

.copy-btn {
  padding: 4px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--char);
  background: var(--mist);
  border: 1px solid rgba(11, 19, 43, 0.3);
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.copy-btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.copy-btn.is-done { background: var(--amber); border-color: var(--amber-deep); color: var(--char); }

/* ---------- 9. 标签页 ---------- */
.tabs { margin: 0; }

.tabs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 2px solid var(--char);
}

.tabs__tab {
  appearance: none;
  margin: 0 0 -2px;
  padding: 10px 16px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--char);
  background: var(--paper);
  border: 1px solid var(--char);
  border-bottom: 0;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.tabs__tab:hover { background: var(--amber); }

.tabs__tab[aria-selected="true"] {
  background: var(--ink);
  color: var(--white);
  box-shadow: inset 0 -4px 0 var(--amber);
}

.tabs__panel {
  padding: 22px 0 0;
  border-top: 0;
}

.tabs__panel[hidden] { display: none; }

/* ---------- 10. 折叠面板 ---------- */
.accordion { border-top: 1px solid var(--char); }

.accordion__item { border-bottom: 1px solid rgba(11, 19, 43, 0.24); }

.accordion__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 17px;
  text-align: left;
  color: var(--char);
  background: none;
  border: 0;
  cursor: pointer;
  transition: color 0.16s ease, padding-left 0.16s ease;
}

.accordion__btn:hover { color: var(--blue); padding-left: 6px; }

.accordion__btn[aria-expanded="true"] { color: var(--red); }

.accordion__icon {
  flex: none;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 14px;
  border: 1px solid currentColor;
  transition: background 0.16s ease, color 0.16s ease;
}

.accordion__btn[aria-expanded="true"] .accordion__icon {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.accordion__panel {
  padding: 0 0 18px;
  font-size: 16px;
  color: rgba(11, 19, 43, 0.84);
}

.accordion__panel[hidden] { display: none; }

/* ---------- 11. 时间线 / 索引轨道 ---------- */
.timeline {
  position: relative;
  margin: 0;
  padding: 0 0 0 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--red), var(--amber), var(--blue));
}

.timeline__item {
  position: relative;
  padding: 0 0 22px;
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__node {
  position: absolute;
  left: -28px;
  top: 5px;
  width: 16px;
  height: 16px;
  background: var(--paper);
  border: 2px solid var(--char);
  border-radius: 2px;
}

.timeline__item[data-tone="red"] .timeline__node { background: var(--red); border-color: var(--red-deep); }
.timeline__item[data-tone="amber"] .timeline__node { background: var(--amber); border-color: var(--amber-deep); }
.timeline__item[data-tone="blue"] .timeline__node { background: var(--blue); border-color: var(--blue); }
.timeline__item.is-active .timeline__node { box-shadow: 0 0 0 5px rgba(230, 57, 70, 0.2); }

.timeline__time {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--blue);
}

.timeline__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 17px;
  margin: 2px 0 4px;
}

.timeline__body { font-size: 15px; color: rgba(11, 19, 43, 0.8); }

/* ---------- 12. 图文容器 ---------- */
.figure { margin: 0; }

.figure__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--ink);
  border: 1px solid var(--char);
  box-shadow: 6px 6px 0 rgba(11, 19, 43, 0.12);
}

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

.figure__cap {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--hair);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(11, 19, 43, 0.66);
}

.figure__badge {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--red);
  color: #fff;
  border-top: 1px solid var(--red-deep);
  border-right: 1px solid var(--red-deep);
}

.figure--tall .figure__frame { aspect-ratio: 3 / 4; }
.figure--wide .figure__frame { aspect-ratio: 21 / 9; }

/* ---------- 13. 显现与章节高亮 ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.spy-link {
  display: block;
  padding: 6px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(11, 19, 43, 0.62);
  text-decoration: none;
  border-left: 3px solid transparent;
  padding-left: 10px;
  transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.spy-link:hover { color: var(--char); background: rgba(168, 218, 220, 0.35); }

.spy-link.is-active {
  color: #fff;
  background: var(--ink);
  border-left-color: var(--red);
}

/* ---------- 14. 滚动进度与返回顶部（JS 注入） ---------- */
.prog {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(11, 19, 43, 0.12);
  z-index: 90;
  pointer-events: none;
}

.prog__bar {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--red), var(--amber));
  transition: width 0.1s linear;
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 88;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--char);
  background: var(--amber);
  border: 1px solid var(--char);
  box-shadow: 3px 3px 0 var(--char);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

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

.to-top__mark { font-family: var(--font-mono); font-size: 14px; line-height: 1; }
.to-top__text { line-height: 1; }

/* ---------- 15. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 200;
  padding: 10px 16px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  color: #fff;
  background: var(--red);
  border: 1px solid var(--red-deep);
  box-shadow: 3px 3px 0 var(--char);
  transform: translateY(-200%);
  transition: transform 0.18s ease;
}

.skip-link:focus { transform: none; }

/* ============================================================
   16. 侧轨头部
   ============================================================ */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 60;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--white);
  border-right: 3px solid var(--char);
}

.rail::after {
  content: "";
  position: absolute;
  top: 0;
  right: 3px;
  bottom: 0;
  width: 7px;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(241, 250, 238, 0.45) 0 1px, transparent 1px 12px);
}

.rail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--hair-light);
}

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brandmark__flag {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  flex: none;
}

.brandmark__flag i { display: block; width: 17px; height: 11px; }
.brandmark__flag i:first-child { background: var(--red); }
.brandmark__flag i:last-child { background: var(--amber); }

.brandmark__text { display: flex; flex-direction: column; line-height: 1.12; }

.brandmark__name {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: 0.02em;
}

.brandmark__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--amber);
  text-transform: uppercase;
}

.rail__toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--red);
  color: #fff;
  border: 1px solid var(--red-deep);
  box-shadow: 2px 2px 0 var(--red-deep);
  cursor: pointer;
}

.rail__toggle-bars { display: inline-flex; flex-direction: column; gap: 3px; }
.rail__toggle-bars i { display: block; width: 16px; height: 2px; background: currentColor; }

.rail__toggle-label {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.12em;
}

.rail__toggle[aria-expanded="true"] {
  background: var(--amber);
  color: var(--char);
  border-color: var(--amber-deep);
  box-shadow: 2px 2px 0 var(--amber-deep);
}

.rail__sync {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(241, 250, 238, 0.84);
  background: rgba(11, 19, 43, 0.4);
  border-bottom: 1px solid var(--hair-light);
}

.rail__pulse {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(244, 162, 97, 0.6); }
  70% { box-shadow: 0 0 0 9px rgba(244, 162, 97, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 162, 97, 0); }
}

.rail__synctext { min-width: 0; }
.rail__syncshort { display: none; }

.rail__nav {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 10px 0 22px;
}

.rail__list { display: block; }

.rail__item { display: block; }

.rail__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: rgba(241, 250, 238, 0.86);
  text-decoration: none;
  border-bottom: 1px solid rgba(241, 250, 238, 0.1);
  transition: background 0.16s ease, color 0.16s ease, padding-left 0.16s ease;
}

.rail__link:hover {
  background: rgba(244, 162, 97, 0.16);
  color: #fff;
  padding-left: 24px;
}

.rail__link[aria-current="page"] {
  background: var(--red);
  color: #fff;
  box-shadow: inset 4px 0 0 var(--amber);
}

.rail__link[aria-current="page"] .rail__idx { color: #fff; }

.rail__idx {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--amber);
}

.rail__label { min-width: 0; }

.rail__meta {
  margin-top: auto;
  display: grid;
  gap: 6px;
  padding: 14px 18px;
  border-top: 1px solid var(--hair-light);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.rail__metarow { display: flex; justify-content: space-between; gap: 10px; }
.rail__metakey { color: rgba(241, 250, 238, 0.58); }
.rail__metaval { color: var(--amber); font-variant-numeric: tabular-nums; }

.rail__cta { margin: 14px 18px 0; }

.rail__scrim { display: none; }

/* 桌面：内容让位侧轨 */
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }
  .prog { left: var(--rail-w); }
}

/* 移动 / 平板：顶栏 + 抽屉 */
@media (max-width: 1023.98px) {
  .rail {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    overflow: visible;
    border-right: 0;
    border-bottom: 3px solid var(--char);
  }

  .rail::after { display: none; }

  .rail__head {
    flex: 1 1 auto;
    padding: 0;
    border-bottom: 0;
  }

  .rail__toggle { display: inline-flex; }

  .rail__sync {
    display: flex;
    padding: 6px 10px;
    border: 1px solid var(--hair-light);
    background: rgba(11, 19, 43, 0.35);
  }

  .rail__synclong { display: none; }
  .rail__syncshort { display: inline; }

  .rail__nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(86vw, 336px);
    padding: 16px 0 24px;
    background: var(--ink);
    border-right: 3px solid var(--char);
    box-shadow: 0 0 0 rgba(11, 19, 43, 0);
    transform: translateX(-104%);
    transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.32s ease;
    overflow-y: auto;
    z-index: 80;
  }

  .rail[data-open] .rail__nav {
    transform: none;
    box-shadow: 14px 0 0 rgba(11, 19, 43, 0.28);
  }

  .rail__scrim {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(11, 19, 43, 0.58);
  }

  .rail[data-open] .rail__scrim { display: block; }

  .rail__link { font-size: 16px; padding: 14px 20px; }
}

@media (max-width: 559.98px) {
  .rail__sync { display: none; }
  .brandmark__name { font-size: 17px; }
}

/* ============================================================
   17. 页脚
   ============================================================ */
.foot {
  position: relative;
  background: var(--char);
  color: var(--white);
  border-top: 3px solid var(--char);
}

.foot__rule {
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--red) 0 20px, var(--amber) 20px 40px, var(--mist) 40px 48px);
}

.foot__inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 44px 20px 30px;
  display: grid;
  gap: 34px;
  grid-template-columns: 1.1fr 0.9fr 1.3fr;
}

.foot__brandmark {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--white);
  text-decoration: none;
  border-bottom: 3px solid var(--red);
  padding-bottom: 4px;
}

.foot__brandmark:hover { color: var(--amber); }

.foot__tagline {
  margin: 16px 0 0;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(241, 250, 238, 0.72);
}

.foot__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.foot__badges .tag { border-color: currentColor; }

.foot__coltitle {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 8px;
}

.foot__coltitle::before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--red);
  flex: none;
}

.foot__list { display: grid; gap: 2px; }

.foot__link {
  display: inline-block;
  padding: 5px 0;
  font-size: 15px;
  color: rgba(241, 250, 238, 0.78);
  text-decoration: none;
  border-bottom: 1px dotted transparent;
  transition: color 0.16s ease, border-color 0.16s ease, padding-left 0.16s ease;
}

.foot__link:hover {
  color: var(--amber);
  border-bottom-color: var(--amber);
  padding-left: 5px;
}

.foot__card {
  background: var(--paper);
  color: var(--char);
  border: 1px solid var(--char);
  box-shadow: 5px 5px 0 var(--red);
  padding: 14px 16px;
}

.foot__row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed rgba(11, 19, 43, 0.22);
}

.foot__row:last-child { border-bottom: 0; }

.foot__key {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.foot__val {
  font-size: 14px;
  line-height: 1.5;
  color: var(--char);
  word-break: break-word;
}

.foot__legal {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 16px 20px 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  border-top: 1px solid var(--hair-light);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(241, 250, 238, 0.62);
}

.foot__copy { margin: 0; }

.foot__legallist { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot__legallist .foot__link { font-size: 12px; padding: 2px 0; }

.foot__icp { margin: 0; color: rgba(241, 250, 238, 0.62); }

@media (max-width: 1023.98px) {
  .foot__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 36px; }
  .foot__brandcol { grid-column: 1 / -1; }
}

@media (max-width: 679.98px) {
  .foot__inner { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .foot__legal { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   18. 平板与手机通用调整
   ============================================================ */
@media (max-width: 1023.98px) {
  h1 { font-size: 34px; }
  h2 { font-size: 27px; }
  h3 { font-size: 21px; }
  .section { padding: 44px 0; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--split { grid-template-columns: minmax(0, 1fr); }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 679.98px) {
  body { font-size: 16px; }
  h1 { font-size: 29px; }
  h2 { font-size: 23px; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 18px; }
  .strip { grid-template-columns: minmax(0, 1fr); }
  .wrap { padding: 0 16px; }
  .to-top { right: 12px; bottom: 12px; padding: 9px 12px; }
}

/* ---------- 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; }
  .rail__pulse { animation: none; box-shadow: 0 0 0 4px rgba(244, 162, 97, 0.28); }
}
