/* ============================================================
   三亿体育站 · /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, ul, ol, li, figure, blockquote, dl, dd {
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }

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

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

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

button {
  background: none;
  border: 0;
  cursor: pointer;
}

[hidden] { display: none !important; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #0A1F19;
  --ink-2: #12302A;
  --ink-3: #05100C;
  --neon: #3BF2B0;
  --neon-2: #8CF8CE;
  --action: #FF7A29;
  --action-2: #C9530F;
  --paper: #F4EFE3;
  --paper-2: #DFD6BF;
  --muted: #9CB3AB;
  --white: #FFFFFF;

  --text: #F4EFE3;
  --text-dim: #9CB3AB;
  --heading: #FFFFFF;

  --rail-w: 84px;
  --rail-top: 60px;
  --bd: 3px;
  --shadow: 8px 8px 0 var(--ink-3);
  --shadow-sm: 3px 3px 0 var(--ink-3);

  --font-display: "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-num: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  padding-left: var(--rail-w);
  background-color: var(--ink);
  background-image:
    linear-gradient(to right, rgba(59, 242, 176, .055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(59, 242, 176, .055) 1px, transparent 1px);
  background-size: 96px 96px;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .01em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--heading);
}

h1 { font-size: clamp(40px, 7vw, 96px); }
h2 { font-size: clamp(28px, 4.4vw, 54px); }
h3 { font-size: clamp(21px, 2.6vw, 30px); }
h4 { font-size: clamp(17px, 1.8vw, 21px); }

p { max-width: 68ch; }

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

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

/* ---------- 4. 布局容器 ---------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

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

.section--paper {
  background: var(--paper);
  color: var(--ink-3);
  --text: #12302A;
  --text-dim: #5C6F68;
  --heading: #05100C;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 14px;
}

.label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.lead {
  font-size: clamp(17px, 2.1vw, 21px);
  line-height: 1.72;
  color: var(--text);
  max-width: 62ch;
}

.mono {
  font-family: var(--font-num);
  font-weight: 600;
  letter-spacing: -.01em;
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: var(--bd) solid var(--ink-3);
  background: var(--ink-2);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.2;
  box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background .18s var(--ease), border-color .18s var(--ease),
              color .18s var(--ease);
}

.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink-3); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink-3); }

.btn--action {
  background: var(--action);
  border-color: var(--ink-3);
  color: var(--ink-3);
}

.btn--action:hover { background: #FF8F4C; }

.btn--line {
  background: transparent;
  border-color: var(--neon);
  color: var(--neon);
}

.btn--line:hover { background: var(--neon); color: var(--ink-3); }

.btn--ghost {
  background: transparent;
  border-color: var(--text-dim);
  color: var(--text);
  box-shadow: none;
}

.btn--ghost:hover { border-color: var(--neon); color: var(--neon); transform: none; box-shadow: var(--shadow-sm); }

/* ---------- 6. 标签 / 芯片 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 2px solid var(--neon);
  color: var(--neon);
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  line-height: 1.6;
  white-space: nowrap;
}

/* ---------- 7. 专题研究板 ---------- */
.board {
  display: block;
  padding: clamp(18px, 3vw, 28px);
  background: var(--ink-2);
  border: var(--bd) solid var(--ink-3);
  box-shadow: var(--shadow);
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease),
              transform .2s var(--ease);
}

.board:hover,
.board:focus-within {
  box-shadow: var(--shadow-sm);
  border-color: var(--neon);
  transform: translate(2px, 2px);
}

.board__title {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.2vw, 25px);
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--white);
  margin-bottom: 10px;
}

.board__meta {
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.board__list {
  display: grid;
  gap: 8px;
  font-size: 15px;
  color: var(--text);
}

.board__list li {
  padding-left: 18px;
  position: relative;
}

.board__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 9px;
  height: 2px;
  background: var(--neon);
}

/* ---------- 8. 数字板 ---------- */
.stat { display: block; }

.stat__num {
  display: block;
  font-family: var(--font-num);
  font-weight: 600;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--neon);
}

.stat__unit {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--text-dim);
}

/* ---------- 9. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-block: 18px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--text-dim);
}

.breadcrumb__link {
  color: var(--text-dim);
  border-bottom: 1px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}

.breadcrumb__link:hover,
.breadcrumb__link:focus-visible {
  color: var(--neon);
  border-bottom-color: var(--neon);
}

.breadcrumb__sep { opacity: .5; }

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

.grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ---------- 11. 图片容器基础规则 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border: var(--bd) solid var(--ink-3);
  background-color: var(--ink-2);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(59, 242, 176, .10) 0 2px,
    transparent 2px 14px
  );
}

.media img,
.media__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.94) contrast(1.04);
}

.media--16x10 { aspect-ratio: 16 / 10; }
.media--21x9 { aspect-ratio: 21 / 9; }
.media--4x5 { aspect-ratio: 4 / 5; }

.media__cap {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 6px 12px;
  background: var(--ink-3);
  color: var(--neon);
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
}

.section--paper .media { border-color: var(--ink-3); }

/* ---------- 12. 跳转链接 / 进度条 ---------- */
.skip-link {
  position: fixed;
  top: 8px;
  left: -9999px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--neon);
  color: var(--ink-3);
  border: var(--bd) solid var(--ink-3);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .04em;
}

.skip-link:focus {
  left: 10px;
  outline: 3px solid var(--ink-3);
  outline-offset: 2px;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 100;
  background: rgba(5, 16, 12, .65);
  pointer-events: none;
}

.progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--neon);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .1s linear;
}

/* ---------- 13. 侧边轨道 header ---------- */
.rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 60;
  display: flex;
  justify-content: center;
  background: var(--ink-2);
  border-right: var(--bd) solid var(--ink-3);
}

.rail__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 0 20px;
}

.rail__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.rail__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--neon);
  color: var(--ink-3);
  border: 2px solid var(--ink-3);
  box-shadow: 4px 4px 0 var(--ink-3);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  transition: background .18s var(--ease), transform .18s var(--ease);
}

.rail__brand:hover .rail__mark,
.rail__brand:focus-visible .rail__mark {
  background: var(--neon-2);
  transform: translate(-1px, -1px);
}

.rail__name {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  line-height: 1.2;
  color: var(--muted);
  transition: color .18s var(--ease);
}

.rail__brand:hover .rail__name { color: var(--paper); }

.rail__search {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 34px;
  margin-top: 4px;
  border: 2px solid var(--muted);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  transition: border-color .18s var(--ease), color .18s var(--ease),
              background .18s var(--ease);
}

.rail__search:hover,
.rail__search:focus-visible,
.rail__search[aria-expanded="true"] {
  border-color: var(--neon);
  color: var(--neon);
  background: var(--ink-3);
}

.rail__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
  margin-top: auto;
}

.rail__nav::before { content: none; }

.rail__list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.rail__item { display: block; }

.rail__link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 64px;
  min-height: 54px;
  padding: 6px 2px;
  border: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  line-height: 1.2;
  transition: color .18s var(--ease), border-color .18s var(--ease),
              background .18s var(--ease);
}

.rail__num {
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  opacity: .85;
}

.rail__text {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
}

.rail__link:hover,
.rail__link:focus-visible {
  color: var(--neon);
  border-color: var(--neon);
  background: var(--ink-3);
}

.rail__link.is-active {
  color: var(--neon);
  border-color: var(--neon);
}

.rail__link[aria-current="page"] {
  background: var(--neon);
  border-color: var(--neon);
  color: var(--ink-3);
}

.rail__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  margin-top: 14px;
  padding: 16px 0;
  background: var(--action);
  color: var(--ink-3);
  border: 2px solid var(--ink-3);
  box-shadow: var(--shadow-sm);
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.3;
  transition: background .18s var(--ease), transform .18s var(--ease),
              box-shadow .18s var(--ease);
}

.rail__cta:hover,
.rail__cta:focus-visible {
  background: var(--neon);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--ink-3);
}

.rail__cta:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink-3); }

/* ---------- 14. 移动导航按钮 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 2px solid var(--neon);
  background: transparent;
  color: var(--neon);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: background .2s var(--ease);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
  transition: transform .2s var(--ease), top .2s var(--ease);
}

.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }

.nav-toggle[data-open] .nav-toggle__bars { background: transparent; }
.nav-toggle[data-open] .nav-toggle__bars::before { top: 0; transform: rotate(45deg); }
.nav-toggle[data-open] .nav-toggle__bars::after { top: 0; transform: rotate(-45deg); }

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

/* ---------- 15. 站内索引面板 ---------- */
.searchpad {
  position: fixed;
  top: 14px;
  left: calc(var(--rail-w) + 14px);
  z-index: 95;
  width: min(430px, calc(100vw - var(--rail-w) - 28px));
  padding: 18px;
  background: var(--ink-2);
  border: var(--bd) solid var(--neon);
  box-shadow: 10px 10px 0 var(--ink-3);
}

.searchpad__hint {
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--neon);
  margin-bottom: 12px;
}

.searchpad__field {
  display: block;
  width: 100%;
  padding: 11px 12px;
  background: var(--ink-3);
  border: 2px solid var(--ink-3);
  border-bottom-color: var(--neon);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: .01em;
}

.searchpad__field::placeholder { color: var(--muted); opacity: .8; }

.searchpad__field:focus-visible {
  outline: 3px solid var(--neon);
  outline-offset: 0;
}

.searchpad__list {
  display: grid;
  gap: 2px;
  margin-top: 14px;
  max-height: 46vh;
  overflow-y: auto;
}

.searchpad__item { display: block; }

.searchpad__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border-left: 2px solid transparent;
  color: var(--paper);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: background .16s var(--ease), border-color .16s var(--ease),
              color .16s var(--ease);
}

.searchpad__link:hover,
.searchpad__link:focus-visible {
  background: var(--ink-3);
  border-left-color: var(--neon);
  color: var(--neon);
}

.searchpad__no {
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--muted);
}

.searchpad__note {
  margin-top: 12px;
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--muted);
}

.searchpad__empty {
  margin-top: 12px;
  padding: 10px;
  border: 2px dashed var(--muted);
  font-size: 13px;
  color: var(--muted);
}

/* ---------- 16. footer ---------- */
.foot {
  position: relative;
  background: var(--paper);
  color: var(--ink-3);
  border-top: var(--bd) solid var(--ink-3);
  --text: #12302A;
  --text-dim: #5C6F68;
  --heading: #05100C;
}

.foot__inner {
  padding-block: clamp(36px, 5vw, 64px) 28px;
}

.foot__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 18px 24px;
  padding-bottom: 26px;
  border-bottom: 2px solid var(--paper-2);
}

.foot__brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.foot__mark {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--ink-3);
  padding: 2px 10px;
  background: var(--neon);
  border: 2px solid var(--ink-3);
}

.foot__name {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.6vw, 26px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink-3);
}

.foot__tagline {
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  color: #5C6F68;
  max-width: none;
}

.foot__cta { margin-left: auto; }

.foot__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
  padding-block: 32px;
  border-bottom: 2px solid var(--paper-2);
}

.foot__col { min-width: 0; }

.foot__title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.4;
  color: var(--ink-3);
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--ink-3);
}

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

.foot__link {
  display: inline-block;
  padding: 3px 0;
  font-size: 14px;
  font-weight: 500;
  color: #3B4A45;
  border-bottom: 1px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}

.foot__link:hover,
.foot__link:focus-visible {
  color: var(--action-2);
  border-bottom-color: var(--action-2);
}

.foot__contact {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(18px, 3vw, 36px);
  margin-block: 30px;
  padding: clamp(18px, 3vw, 30px);
  background: var(--ink);
  color: var(--paper);
  border: var(--bd) solid var(--ink-3);
  box-shadow: 8px 8px 0 rgba(5, 16, 12, .22);
}

.foot__block { min-width: 0; }

.foot__label {
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--neon);
  margin-bottom: 10px;
}

.foot__big {
  font-family: var(--font-num);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}

.foot__big--mail { font-size: clamp(15px, 2.2vw, 19px); margin-top: 16px; }

.foot__addr {
  font-size: 14px;
  line-height: 1.7;
  color: var(--paper);
  margin-bottom: 10px;
  max-width: none;
}

.foot__note {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 34ch;
}

.copybtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 14px;
  border: 2px solid var(--neon);
  background: transparent;
  color: var(--neon);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  transition: background .18s var(--ease), color .18s var(--ease);
}

.copybtn:hover,
.copybtn:focus-visible {
  background: var(--neon);
  color: var(--ink-3);
}

.foot__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 20px;
  font-size: 13px;
  color: #5C6F68;
}

.foot__meta {
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: .04em;
  max-width: none;
}

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

/* ---------- 17. 滚动显现 / 章节高亮 ---------- */
[data-reveal-ready] [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
}

[data-reveal-ready] [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}

[data-chapter] { scroll-margin-top: 24px; }

/* ---------- 18. 响应式：平板与手机 ---------- */
@media (max-width: 1099px) {
  .foot__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 899px) {
  body {
    padding-left: 0;
    padding-top: var(--rail-top);
    font-size: 16px;
    line-height: 1.7;
  }

  .rail {
    top: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: var(--rail-top);
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    border-right: 0;
    border-bottom: var(--bd) solid var(--ink-3);
  }

  .rail__inner {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    height: 100%;
  }

  .rail__brand {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-right: auto;
  }

  .rail__mark {
    width: 34px;
    height: 34px;
    font-size: 12px;
    box-shadow: 3px 3px 0 var(--ink-3);
  }

  .rail__name {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    font-size: 12px;
    letter-spacing: .06em;
    color: var(--paper);
  }

  .rail__search {
    width: auto;
    height: 36px;
    padding: 0 12px;
    margin-top: 0;
    font-size: 12px;
  }

  .rail__nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: auto;
    margin-top: 0;
    padding: 20px 18px 26px;
    max-height: 84vh;
    overflow-y: auto;
    background: var(--ink-2);
    border-top: var(--bd) solid var(--neon);
    transform: translateY(calc(100% + 12px));
    visibility: hidden;
    transition: transform .32s var(--ease), visibility .32s var(--ease);
  }

  .rail__nav[data-open] {
    transform: translateY(0);
    visibility: visible;
  }

  .rail__nav::before {
    content: "站点目录 01 — 06";
    display: block;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ink-3);
    font-family: var(--font-num);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .18em;
    color: var(--neon);
  }

  .rail__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
  }

  .rail__link {
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    width: auto;
    min-height: 52px;
    padding: 10px 12px;
    border: 2px solid var(--ink-3);
    background: var(--ink);
    color: var(--paper);
  }

  .rail__num { font-size: 12px; color: var(--neon); }
  .rail__text { font-size: 14px; font-weight: 700; }

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

  .rail__cta {
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    width: 100%;
    margin-top: 14px;
    padding: 14px 0;
    font-size: 15px;
    letter-spacing: .06em;
  }

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

  .searchpad {
    top: calc(var(--rail-top) + 10px);
    left: 14px;
    right: 14px;
    width: auto;
  }
}

@media (max-width: 719px) {
  .foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot__contact { grid-template-columns: 1fr; }
  .foot__cta { margin-left: 0; width: 100%; }
  .foot__brand { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .rail__list { grid-template-columns: 1fr; }
  .rail__name { font-size: 11px; }
}

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

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

  .btn:hover,
  .board:hover,
  .board:focus-within,
  .rail__cta:hover,
  .rail__cta:focus-visible {
    transform: none;
  }
}
