/* ============================================================
   乐思赛事 · 共享样式 /assets/site.css
   夜场球场 · 技术蓝图网格 · 荧光比分牌
   ============================================================ */

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.72;
  color: var(--mist);
  background-color: var(--stand);
  background-image:
    linear-gradient(rgba(198, 255, 61, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198, 255, 61, .05) 1px, transparent 1px),
    radial-gradient(1100px 620px at 88% -8%, rgba(91, 231, 196, .14), transparent 62%),
    radial-gradient(900px 520px at 2% 4%, rgba(198, 255, 61, .1), transparent 58%),
    linear-gradient(180deg, #061a14 0%, #0b3d2e 62%, #061a14 100%);
  background-size: 56px 56px, 56px 56px, auto, auto, auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img { height: auto; }

button { font: inherit; color: inherit; }

a { color: inherit; }

p { margin: 0 0 1em; }

::selection { background: var(--lime); color: #06231a; }

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

/* ---------- 2. 变量 ---------- */
:root {
  --pitch: #0b3d2e;
  --stand: #061a14;
  --lime: #c6ff3d;
  --lime-soft: #ddff8a;
  --orange: #ff6b35;
  --orange-alert: #ff8a5c;
  --mist: #f2f7ee;
  --mint: #5be7c4;
  --graphite: #1c2b25;
  --line: rgba(198, 255, 61, .22);
  --line-soft: rgba(242, 247, 238, .13);
  --ink: #06231a;

  --font-display: "Impact", "Haettenschweiler", "Arial Black", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-num: "Roboto Mono", "SFMono-Regular", ui-monospace, "Menlo", "Consolas", monospace;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;

  --max: 1240px;
  --pad: clamp(16px, 4vw, 40px);
  --radius: 2px;
}

/* ---------- 3. 中文排版与标题 ---------- */
h1, h2, h3, h4, h5 {
  margin: 0 0 .5em;
  color: var(--mist);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(34px, 6vw, 68px); }
h2 { font-size: clamp(26px, 3.6vw, 40px); }

h3 {
  font-size: clamp(19px, 2.2vw, 26px);
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.25;
}

h4 {
  font-size: 17px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .01em;
}

small { font-size: 13px; }

/* ---------- 4. 通用容器与栅格 ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.grid {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
}

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  gap: clamp(18px, 3vw, 40px);
  align-items: start;
}

/* ---------- 5. 文本装饰件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--lime);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--lime);
}

.lede {
  max-width: 62ch;
  font-size: clamp(16px, 1.6vw, 18px);
  color: rgba(242, 247, 238, .82);
}

.chapter-num {
  display: block;
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(46px, 9vw, 110px);
  line-height: .8;
  letter-spacing: -.03em;
  color: rgba(198, 255, 61, .18);
}

@supports (-webkit-text-stroke: 1px #000) {
  .chapter-num {
    color: transparent;
    -webkit-text-stroke: 1px rgba(198, 255, 61, .55);
  }
}

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

.section-rule {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: clamp(28px, 5vw, 56px) 0;
}

.section-rule::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(198, 255, 61, .55), rgba(198, 255, 61, 0));
}

.section-rule-label {
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--lime);
  white-space: nowrap;
}

.hatch {
  height: 12px;
  background-image: repeating-linear-gradient(-45deg, rgba(198, 255, 61, .55) 0 2px, transparent 2px 10px);
  opacity: .55;
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: .72em 1.25em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

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

.btn--sm {
  padding: .55em 1em;
  font-size: 13.5px;
}

.btn--lime {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
  box-shadow: 4px 4px 0 rgba(198, 255, 61, .18);
}

.btn--lime:hover,
.btn--lime:focus-visible {
  background: var(--lime-soft);
  box-shadow: 6px 6px 0 rgba(198, 255, 61, .28);
}

.btn--ghost {
  background: transparent;
  color: var(--lime);
  border-color: rgba(198, 255, 61, .5);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: rgba(198, 255, 61, .12);
  border-color: var(--lime);
}

.btn--orange {
  background: var(--orange);
  color: #2a1005;
  border-color: var(--orange);
}

.btn--orange:hover,
.btn--orange:focus-visible {
  background: var(--orange-alert);
  border-color: var(--orange-alert);
}

/* ---------- 7. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: .2em .62em;
  border: 1px solid rgba(198, 255, 61, .45);
  border-radius: var(--radius);
  background: rgba(198, 255, 61, .1);
  color: var(--lime);
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag--lime {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

.tag--mint {
  background: var(--mint);
  border-color: var(--mint);
  color: #04231c;
}

.tag--orange {
  background: var(--orange);
  border-color: var(--orange);
  color: #2a1005;
}

.tag--ghost {
  background: transparent;
  border-color: rgba(242, 247, 238, .3);
  color: rgba(242, 247, 238, .78);
}

/* ---------- 8. 面板 ---------- */
.panel {
  position: relative;
  padding: clamp(16px, 2.4vw, 26px);
  background: linear-gradient(160deg, rgba(11, 61, 46, .92) 0%, rgba(6, 26, 20, .96) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.panel::before,
.panel::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--lime);
  opacity: .85;
  pointer-events: none;
}

.panel::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.panel::after {
  right: -1px;
  bottom: -1px;
  border-top: 0;
  border-left: 0;
}

.panel--lime {
  background: linear-gradient(160deg, rgba(198, 255, 61, .16) 0%, rgba(6, 26, 20, .94) 100%);
  border-color: rgba(198, 255, 61, .42);
}

.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.panel-title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--mist);
}

.panel-note {
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(242, 247, 238, .5);
}

/* ---------- 9. 图片容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(242, 247, 238, .16);
  border-radius: var(--radius);
  background: linear-gradient(140deg, #0b3d2e, #061a14);
}

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

.media-frame::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34%;
  height: 34%;
  background: linear-gradient(140deg, rgba(198, 255, 61, 0), rgba(198, 255, 61, .28));
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

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

/* ---------- 10. 面包屑 ---------- */
.breadcrumbs {
  margin: clamp(16px, 2.4vw, 26px) 0 0;
  font-size: 13px;
}

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-num);
  letter-spacing: .06em;
}

.crumb {
  color: rgba(242, 247, 238, .6);
  text-decoration: none;
  transition: color .18s ease;
}

.crumb:hover { color: var(--lime); }

.crumb[aria-current="page"] { color: var(--lime); }

.crumb-sep { color: rgba(242, 247, 238, .3); }

/* ---------- 11. 章节目录 ---------- */
.toc {
  position: sticky;
  top: clamp(96px, 14vh, 132px);
  display: grid;
  gap: 4px;
  padding: 16px;
  border-left: 2px solid rgba(198, 255, 61, .25);
  background: linear-gradient(180deg, rgba(6, 26, 20, .6), rgba(6, 26, 20, 0));
}

.toc-title {
  margin: 0 0 8px;
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--lime);
}

.toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.toc-link {
  display: block;
  margin-left: -2px;
  padding: 6px 10px;
  border-left: 2px solid transparent;
  font-size: 14px;
  color: rgba(242, 247, 238, .65);
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

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

.toc-link[aria-current="true"] {
  color: var(--lime);
  border-left-color: var(--lime);
  background: rgba(198, 255, 61, .08);
}

/* ---------- 12. 滚动栏 ---------- */
.ticker {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(6, 26, 20, .58);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker-slide 42s linear infinite;
}

.ticker[data-paused] .ticker-track { animation-play-state: paused; }

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: .65rem 1.1rem;
  border-right: 1px solid var(--line-soft);
  font-size: 14px;
  white-space: nowrap;
}

.ticker-item--alert { color: var(--orange-alert); }

.ticker-toggle {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0 12px;
  background: rgba(6, 26, 20, .94);
  border: 0;
  border-left: 1px solid var(--line-soft);
  color: var(--lime);
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  cursor: pointer;
}

@keyframes ticker-slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 13. 返回顶部 ---------- */
.back-to-top {
  position: fixed;
  right: clamp(12px, 3vw, 28px);
  bottom: clamp(12px, 3vw, 28px);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 0;
  border-radius: var(--radius);
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .45);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
}

.back-to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

/* ---------- 14. 显现动效 ---------- */
.has-js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}

.has-js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 15. 跳至主要内容 ---------- */
.skip-link {
  position: absolute;
  top: -80px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius);
  background: var(--lime);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  transition: top .18s ease;
}

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

/* ---------- 16. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: linear-gradient(180deg, rgba(6, 26, 20, .98) 0%, rgba(11, 61, 46, .95) 100%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-rail {
  background: rgba(6, 26, 20, .78);
  border-bottom: 1px solid rgba(242, 247, 238, .08);
}

.rail-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: 6px var(--pad);
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(242, 247, 238, .55);
}

.rail-mark { color: var(--lime); }
.rail-coord { color: rgba(91, 231, 196, .75); }
.rail-note { color: rgba(242, 247, 238, .5); }

.header-frame {
  position: relative;
  border-bottom: 0;
}

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

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--mist);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1;
  transform: skewX(-12deg);
  box-shadow: 4px 4px 0 rgba(198, 255, 61, .18);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: 20px;
  line-height: 1.1;
  letter-spacing: .02em;
}

.brand-badge {
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-num);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--mint);
}

/* 导航 */
.primary-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item { flex: 0 0 auto; }

.nav-link {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .01em;
  color: rgba(242, 247, 238, .78);
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.nav-index {
  font-family: var(--font-num);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .2em;
  color: rgba(198, 255, 61, .55);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--lime);
  border-color: rgba(198, 255, 61, .38);
  background: rgba(198, 255, 61, .07);
}

.nav-link[aria-current="page"] {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

.nav-link[aria-current="page"] .nav-index { color: rgba(6, 35, 26, .72); }

/* 页头右侧 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.header-cta { white-space: nowrap; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(198, 255, 61, .45);
  border-radius: var(--radius);
  background: rgba(198, 255, 61, .08);
  cursor: pointer;
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: var(--lime);
  transition: background-color .2s ease;
}

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

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

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

/* 滚动进度 */
.scroll-progress {
  height: 2px;
  background: rgba(242, 247, 238, .08);
}

.scroll-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--lime), var(--mint));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------- 17. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  background: linear-gradient(180deg, #0b3d2e 0%, #061a14 62%);
  border-top: 1px solid var(--line);
  color: var(--mist);
}

.footer-edge {
  height: 12px;
  background-image: repeating-linear-gradient(-45deg, rgba(198, 255, 61, .55) 0 2px, transparent 2px 10px);
  opacity: .5;
}

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

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(32px, 5vw, 64px);
}

.footer-eyebrow {
  margin: 0 0 10px;
  font-family: var(--font-num);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--lime);
}

.footer-brand-line {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--mist);
}

.footer-tagline {
  margin: 0 0 14px;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(242, 247, 238, .72);
}

.footer-badge { margin: 0; }

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

.footer-col-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-num);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(242, 247, 238, .85);
}

.col-index { color: var(--lime); }

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.footer-link {
  display: inline-block;
  width: fit-content;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  font-size: 15px;
  color: rgba(242, 247, 238, .74);
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.footer-contact {
  display: grid;
  gap: 12px;
  align-content: start;
}

.contact-item {
  display: grid;
  gap: 2px;
}

.contact-label {
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(198, 255, 61, .62);
}

.contact-value {
  font-family: var(--font-num);
  font-size: 14.5px;
  letter-spacing: .02em;
  color: var(--mist);
  word-break: break-word;
}

.contact-value--text {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.65;
  color: rgba(242, 247, 238, .82);
}

.contact-hint {
  font-size: 12px;
  letter-spacing: .02em;
  color: rgba(242, 247, 238, .5);
}

.footer-note {
  margin: 4px 0 0;
  padding-top: 12px;
  border-top: 1px dashed rgba(242, 247, 238, .16);
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(242, 247, 238, .55);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding-block: 16px 22px;
  border-top: 1px solid rgba(242, 247, 238, .12);
}

.footer-legal {
  margin: 0;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: .1em;
  color: rgba(242, 247, 238, .55);
}

.footer-copy {
  margin: 0;
  font-size: 12px;
  color: rgba(242, 247, 238, .45);
}

/* ---------- 18. 响应式 ---------- */
@media (max-width: 1060px) {
  .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
  .footer-contact { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .footer-note { grid-column: 1 / -1; }
}

@media (max-width: 940px) {
  html { scroll-padding-top: 108px; }

  .rail-coord { display: none; }

  .header-inner { padding-block: 9px; }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    padding: 10px var(--pad) 20px;
    background: linear-gradient(180deg, #061a14 0%, #0b3d2e 100%);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(0, 0, 0, .5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }

  .primary-nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

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

  .nav-link {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-color: rgba(242, 247, 238, .1);
    font-size: 16px;
  }

  .nav-index { font-size: 11px; }

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

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

  .toc {
    position: static;
    border-left: 0;
    border-top: 2px solid rgba(198, 255, 61, .25);
    padding: 12px 0 0;
  }
}

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

@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-cta { display: none; }
  .rail-note { display: none; }
  .brand-badge { max-width: 150px; }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .btn { width: 100%; }
  .header-cta { width: auto; }
  .back-to-top { padding: 9px 12px; }
}

@media (max-width: 420px) {
  .brand-badge { display: none; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

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

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

  .has-js .reveal { opacity: 1; transform: none; }
  .ticker-track { animation: none; }
  .back-to-top { transform: none; }
}
