/* =========================================================
   2026赛场 — 全站共享样式  /assets/site.css
   深空底蓝 · 荧光绿动作 · 琥珀数据 · 粗野主义边框
   ========================================================= */

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

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

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

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

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

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

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

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

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

[hidden] { display: none !important; }

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #050C18;
  --night: #0A1729;
  --panel: #12233C;
  --line: #223A5E;
  --neon: #35F2A0;
  --neon-dim: #12B877;
  --amber: #FFB238;
  --cyan: #4FD6FF;
  --text: #EAF2FF;
  --muted: #93A9C6;
  --coral: #FF6B7A;

  --t12: 12px;
  --t14: 14px;
  --t16: 16px;
  --t18: 18px;
  --t22: 22px;
  --t28: 28px;
  --t40: 40px;
  --t64: 64px;
  --t112: 112px;

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

  --wrap: 1320px;
  --pad: 24px;
  --radius: 8px;
  --pill: 999px;
  --strip-h: 40px;

  --dur-enter: 320ms;
  --dur-hover: 140ms;
  --dur-jump: 260ms;
  --ease-out: cubic-bezier(0.2, 0.8, 0.3, 1);
}

@media (min-width: 900px) {
  :root { --pad: 40px; }
}

/* ---------- 3. Base ---------- */
body {
  background-color: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--t16);
  line-height: 1.75;
  font-weight: 400;
  min-height: 100vh;
  padding-bottom: calc(var(--strip-h) + 6px);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
  font-style: normal;
}

h1 { font-size: clamp(var(--t40), 6.6vw, var(--t64)); }
h2 { font-size: clamp(var(--t28), 4vw, var(--t40)); }
h3 { font-size: var(--t22); }
h4 { font-size: var(--t18); }

p { text-wrap: pretty; }

.num,
[data-num] {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.muted { color: var(--muted); }

.display {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(var(--t64), 13vw, var(--t112));
  letter-spacing: -0.04em;
  line-height: 0.92;
}

.grid-texture {
  background-image:
    linear-gradient(rgba(34, 58, 94, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 58, 94, 0.5) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ---------- 4. Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

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

#main-content {
  display: block;
  padding-top: 104px;
}

@media (max-width: 1080px) {
  #main-content { padding-top: 86px; }
}

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

.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(0, 2fr) minmax(0, 1fr); }

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

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

/* ---------- 5. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 200;
  padding: 10px 22px;
  background: var(--neon);
  color: var(--ink);
  font-size: var(--t14);
  font-weight: 700;
  border-radius: var(--pill);
  box-shadow: 0 4px 0 0 var(--neon-dim);
  transform: translate(-50%, -180%);
  transition: transform var(--dur-hover) linear;
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

/* ---------- 6. Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: 2px solid transparent;
  border-radius: var(--pill);
  font-family: var(--font-body);
  font-size: var(--t14);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  transition:
    background-color var(--dur-hover) linear,
    color var(--dur-hover) linear,
    border-color var(--dur-hover) linear,
    box-shadow var(--dur-hover) linear,
    transform var(--dur-hover) linear;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 32%, rgba(255, 255, 255, 0.3) 48%, transparent 64%);
  transform: translateX(-130%);
  transition: transform 360ms var(--ease-out);
  pointer-events: none;
}

.btn:hover::after { transform: translateX(130%); }

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

.btn--primary {
  background-color: var(--neon);
  border-color: var(--neon);
  color: var(--ink);
  box-shadow: 0 3px 0 0 var(--neon-dim);
}

.btn--primary:hover {
  background-color: var(--neon-dim);
  border-color: var(--neon-dim);
  color: var(--ink);
}

.btn--primary:active { box-shadow: 0 1px 0 0 var(--neon-dim); }

.btn--ghost {
  background-color: var(--night);
  border-color: var(--line);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.btn--sm {
  padding: 8px 15px;
  font-size: 13px;
}

/* ---------- 7. Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  padding-top: 14px;
  pointer-events: none;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: rgba(34, 58, 94, 0.55);
  pointer-events: none;
  z-index: 90;
}

.scroll-progress > span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--neon-dim) 0%, var(--neon) 58%, var(--cyan) 100%);
  transition: width 80ms linear;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  pointer-events: auto;
}

/* --- 品牌岛 --- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 8px 16px 8px 14px;
  background-color: var(--night);
  border: 2px solid var(--line);
  border-radius: var(--pill);
  transition: border-color var(--dur-hover) linear, background-color var(--dur-hover) linear;
}

.brand:hover { border-color: var(--neon-dim); }

.brand-mark {
  font-family: var(--font-mono);
  font-size: var(--t18);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--neon);
  font-variant-numeric: tabular-nums;
}

.brand-tick {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 16px;
  flex: 0 0 auto;
}

.brand-tick::before,
.brand-tick::after {
  content: "";
  display: block;
  width: 2px;
  height: 15px;
  background-color: var(--neon);
  border-radius: 1px;
  transform: skewX(-18deg);
}

.brand-name {
  font-family: var(--font-head);
  font-size: var(--t16);
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--text);
  max-width: 4em;
  overflow: hidden;
  white-space: nowrap;
  transition:
    max-width var(--dur-jump) ease-in-out,
    opacity var(--dur-hover) linear,
    margin var(--dur-jump) ease-in-out;
}

.brand-tag {
  padding-left: 10px;
  margin-left: 2px;
  border-left: 1px solid var(--line);
  font-size: var(--t12);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
  white-space: nowrap;
  max-width: 12em;
  overflow: hidden;
  transition:
    max-width var(--dur-jump) ease-in-out,
    opacity var(--dur-hover) linear,
    padding var(--dur-jump) ease-in-out;
}

@media (max-width: 1280px) {
  .brand-tag {
    max-width: 0;
    padding-left: 0;
    margin-left: 0;
    border-left: 0;
    opacity: 0;
  }
}

.site-header.is-slim .brand-name {
  max-width: 0;
  opacity: 0;
  margin-left: -8px;
}

.site-header.is-slim .brand-tag {
  max-width: 0;
  padding-left: 0;
  margin-left: 0;
  border-left: 0;
  opacity: 0;
}

/* --- 栏目岛 --- */
.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px;
  background-color: var(--night);
  border: 2px solid var(--line);
  border-radius: var(--pill);
}

.nav-link {
  display: block;
  padding: 7px 14px;
  border-radius: var(--pill);
  font-size: var(--t14);
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color var(--dur-hover) linear, background-color var(--dur-hover) linear;
}

.nav-link:hover {
  color: var(--text);
  background-color: var(--panel);
}

.nav-link[aria-current="page"] {
  background-color: var(--neon);
  color: var(--ink);
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* --- 移动按钮 --- */
.header-cta,
.nav-toggle { display: none; }

.nav-toggle {
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 9px 15px;
  background-color: var(--night);
  border: 2px solid var(--line);
  border-radius: var(--pill);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  transition: border-color var(--dur-hover) linear, color var(--dur-hover) linear;
}

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

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

.nav-toggle__bars i {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--neon);
  border-radius: 1px;
  transition: transform var(--dur-hover) linear, opacity var(--dur-hover) linear;
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

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

/* --- 移动端两行折叠 --- */
@media (max-width: 1080px) {
  .header-inner { flex-wrap: wrap; }

  .header-cta {
    display: inline-flex;
    margin-left: auto;
  }

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

  .site-nav {
    display: none;
    order: 10;
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
    background-color: var(--night);
    border: 2px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 6px 0 0 rgba(5, 12, 24, 0.75);
  }

  .site-nav[data-open] { display: flex; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 0;
    background-color: transparent;
    border: 0;
    border-radius: 0;
  }

  .nav-link {
    padding: 11px 12px;
    border-radius: 6px;
    font-size: 15px;
  }

  .nav-actions {
    flex-wrap: wrap;
    gap: 8px;
  }

  .nav-actions .btn { flex: 1 1 auto; }
  .nav-actions .btn--primary { display: none; }
}

/* ---------- 8. Footer ---------- */
.site-footer {
  margin-top: 88px;
  background-color: var(--night);
  border-top: 2px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
  gap: 36px 28px;
  padding-block: 52px 36px;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.footer-logo .brand-mark { font-size: 20px; }
.footer-logo .brand-name { max-width: none; }

.footer-summary {
  font-size: var(--t16);
  font-weight: 500;
  color: var(--text);
  max-width: 24em;
  margin-bottom: 12px;
}

.footer-note {
  font-size: var(--t12);
  line-height: 1.7;
  color: var(--muted);
  max-width: 30em;
}

.footer-col__title {
  font-family: var(--font-mono);
  font-size: var(--t12);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
  line-height: 1.4;
}

.footer-col ul { display: grid; gap: 2px; }

.footer-col a {
  display: inline-block;
  padding: 5px 0;
  font-size: var(--t14);
  color: var(--muted);
  transition: color var(--dur-hover) linear, transform var(--dur-hover) linear;
}

.footer-col a:hover {
  color: var(--neon);
  transform: translateX(3px);
}

.footer-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px 32px;
  padding-block: 26px;
  border-top: 1px solid var(--line);
}

.footer-contact__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-contact__key {
  font-family: var(--font-mono);
  font-size: var(--t12);
  letter-spacing: 0.1em;
  color: var(--muted);
}

.footer-contact__val {
  font-size: var(--t14);
  color: var(--text);
  word-break: break-all;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding-block: 18px 30px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--t12);
  color: var(--muted);
}

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

@media (max-width: 640px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-block: 40px 28px;
  }
  .footer-brand { grid-column: 1 / -1; }
}

/* --- 常驻备案细带 --- */
.icp-strip {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  height: var(--strip-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-inline: var(--pad);
  background-color: var(--ink);
  border-top: 2px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--t12);
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
}

.icp-strip__dot { color: var(--neon); }

@media (max-width: 560px) {
  .icp-strip { font-size: 11px; gap: 6px; }
  .icp-strip__mail { display: none; }
}

/* ---------- 9. Components ---------- */
.panel {
  background-color: var(--panel);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.panel--flat { background-color: var(--night); }
.panel--neon { border-color: var(--neon-dim); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--t12);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  line-height: 1.4;
}

.eyebrow::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  background-color: var(--neon);
  flex: 0 0 auto;
}

.section { padding-block: 64px; }

.section--band {
  background-color: var(--night);
  border-block: 2px solid var(--line);
}

.section__head { margin-bottom: 28px; }

.section__title { font-size: clamp(var(--t22), 3.6vw, var(--t28)); }

.entry-list {
  display: grid;
  border-top: 2px solid var(--line);
}

.entry {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  transition: background-color var(--dur-hover) linear, padding-left var(--dur-hover) linear;
}

.entry:hover {
  background-color: var(--night);
  padding-left: 12px;
}

.table-wrap {
  overflow-x: auto;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--night);
}

table.data { min-width: 520px; font-size: var(--t14); }

table.data th,
table.data td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

table.data tbody tr:last-child th,
table.data tbody tr:last-child td { border-bottom: 0; }

table.data thead th {
  background-color: var(--panel);
  font-family: var(--font-mono);
  font-size: var(--t12);
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--muted);
}

table.data td.num { color: var(--amber); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  background-color: var(--night);
  border: 2px solid var(--line);
  border-radius: var(--pill);
  font-size: var(--t12);
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition:
    color var(--dur-hover) linear,
    border-color var(--dur-hover) linear,
    background-color var(--dur-hover) linear;
}

.chip:hover {
  color: var(--text);
  border-color: var(--cyan);
}

.chip[aria-pressed="true"] {
  background-color: var(--neon);
  border-color: var(--neon);
  color: var(--ink);
}

/* --- 图片容器基础规则 --- */
.media {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background-color: var(--panel);
  background-image:
    linear-gradient(rgba(34, 58, 94, 0.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 58, 94, 0.45) 1px, transparent 1px);
  background-size: 24px 24px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

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

.media--wide { aspect-ratio: 21 / 9; }
.media--hero { aspect-ratio: 16 / 7; }
.media--square { aspect-ratio: 1 / 1; }
.media--portrait { aspect-ratio: 3 / 4; }

.media__cap {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: var(--t12);
  color: var(--muted);
}

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

.accordion__item { border-bottom: 1px solid var(--line); }

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 16px 4px;
  text-align: left;
  font-family: var(--font-head);
  font-size: var(--t18);
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color var(--dur-hover) linear;
}

.accordion__trigger:hover { color: var(--neon); }

.accordion__trigger::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1;
  color: var(--neon);
  flex: 0 0 auto;
}

.accordion__trigger[aria-expanded="true"]::after { content: "\2212"; }

.accordion__panel {
  padding: 0 4px 20px;
  color: var(--muted);
  font-size: var(--t16);
}

/* --- 面包屑 --- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: var(--t12);
  color: var(--muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.breadcrumb li { display: inline-flex; align-items: center; }

.breadcrumb li + li::before {
  content: "/";
  margin-inline: 8px;
  color: var(--line);
}

.breadcrumb a:hover { color: var(--cyan); }

/* --- 正文 --- */
.prose { max-width: 38em; }

.prose > * + * { margin-top: 1.1em; }

.prose h2 {
  margin-top: 1.6em;
  font-size: clamp(var(--t22), 3vw, var(--t28));
}

.prose h3 {
  margin-top: 1.4em;
  font-family: var(--font-mono);
  font-size: var(--t18);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--cyan);
}

.prose ul { display: grid; gap: 8px; }

.prose ul li {
  position: relative;
  padding-left: 20px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: 8px;
  height: 2px;
  background-color: var(--neon);
}

.prose a {
  color: var(--cyan);
  border-bottom: 1px solid var(--line);
}

.prose a:hover { border-bottom-color: var(--cyan); }

.prose code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background-color: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
}

.prose blockquote {
  border-left: 3px solid var(--neon);
  padding-left: 16px;
  color: var(--muted);
}

/* --- 章节目录胶囊 --- */
.chapter-rail {
  position: fixed;
  right: var(--pad);
  top: 50%;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background-color: var(--night);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  max-height: 62vh;
  overflow-y: auto;
  transform: translateY(-50%);
}

.chapter-rail__link {
  display: block;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: var(--t12);
  color: var(--muted);
  white-space: nowrap;
  transition: color var(--dur-hover) linear, background-color var(--dur-hover) linear;
}

.chapter-rail__link:hover {
  color: var(--text);
  background-color: var(--panel);
}

.chapter-rail__link[aria-current="true"] {
  background-color: var(--neon);
  color: var(--ink);
  font-weight: 700;
}

@media (max-width: 1080px) {
  .chapter-rail { display: none; }
}

/* --- 返回顶部 --- */
.to-top {
  position: fixed;
  right: var(--pad);
  bottom: calc(var(--strip-h) + 16px);
  z-index: 75;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--night);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: var(--t18);
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity var(--dur-hover) linear,
    transform var(--dur-hover) linear,
    visibility var(--dur-hover) linear,
    border-color var(--dur-hover) linear,
    background-color var(--dur-hover) linear;
}

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

.to-top:hover {
  border-color: var(--neon);
  background-color: var(--panel);
}

/* --- 显现 --- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity var(--dur-enter) var(--ease-out),
    transform var(--dur-enter) var(--ease-out);
  transition-delay: calc(var(--reveal-delay, 0) * 60ms);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 10. Reduced motion ---------- */
@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;
    transition-delay: 0ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

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

  .btn::after { display: none; }
}
