/* ==========================================================================
   爱体育月卡 · 全站共享样式 /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, figure, blockquote, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; 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; padding: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid #FF6B1A; outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }

/* --- 2. tokens --- */
:root {
  --void: #08121C;
  --space: #0B1B2A;
  --grass: #1E7A46;
  --grass-bright: #3FD07A;
  --score: #FF6B1A;
  --clay: #C2532A;
  --moss: #5C6B4A;
  --stone: #7C8A92;
  --bone: #F3EFE4;
  --cyan: #2FD3C0;
  --rule: #27384A;

  --rail-w: 240px;
  --shell-w: 1280px;

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

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

/* --- 3. base --- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  color: var(--bone);
  background-color: var(--space);
  background-image: repeating-linear-gradient(90deg, rgba(39, 56, 74, .42) 0 1px, transparent 1px 120px);
  background-repeat: repeat;
}
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--bone);
  transform: skewX(-5deg);
  transform-origin: left center;
}
h1 { font-size: clamp(30px, 5vw, 64px); }
h2 { font-size: clamp(24px, 3.4vw, 42px); }
h3 { font-size: clamp(18px, 2vw, 24px); font-weight: 800; letter-spacing: -.01em; transform: none; }
h4 { font-size: 16px; font-weight: 800; transform: none; }

::selection { background: var(--score); color: var(--void); }

/* --- 4. type utilities --- */
.display {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(30px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -.02em;
  transform: skewX(-5deg);
  transform-origin: left center;
}
.lede {
  max-width: 60ch;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.72;
  color: rgba(243, 239, 228, .82);
}
.prose { max-width: 68ch; font-size: 16px; line-height: 1.75; color: rgba(243, 239, 228, .82); }
.prose p + p { margin-top: 14px; }
.label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--stone);
}
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.muted { color: var(--stone); }
.link {
  color: var(--grass-bright);
  border-bottom: 1px solid rgba(63, 208, 122, .42);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.link:hover { color: var(--score); border-bottom-color: var(--score); }

/* --- 5. layout --- */
.shell {
  width: 100%;
  max-width: var(--shell-w);
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 768px) { .shell { padding-inline: 32px; } }
@media (min-width: 1024px) { .shell { padding-inline: 40px; } }

.section { padding-block: 56px; }
@media (min-width: 1024px) { .section { padding-block: 88px; } }
.section--tight { padding-block: 32px; }
@media (min-width: 1024px) { .section--tight { padding-block: 44px; } }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  padding-bottom: 14px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--rule);
}
.section-head__aside { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--stone); }

.stack { display: flex; flex-direction: column; gap: 16px; }
.stack--tight { gap: 8px; }
.stack--loose { gap: 32px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 768px) { .grid { gap: 24px; grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); } }

.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.row-full { grid-column: 1 / -1; }
@media (min-width: 768px) {
  .md-col-3 { grid-column: span 3; }
  .md-col-4 { grid-column: span 4; }
  .md-col-5 { grid-column: span 5; }
  .md-col-6 { grid-column: span 6; }
  .md-col-8 { grid-column: span 8; }
}
@media (min-width: 1024px) {
  .lg-col-3 { grid-column: span 3; }
  .lg-col-4 { grid-column: span 4; }
  .lg-col-5 { grid-column: span 5; }
  .lg-col-6 { grid-column: span 6; }
  .lg-col-7 { grid-column: span 7; }
  .lg-col-8 { grid-column: span 8; }
  .lg-col-9 { grid-column: span 9; }
  .lg-col-12 { grid-column: span 12; }
}

/* --- 6. skip link --- */
.skip-link {
  position: absolute;
  top: -70px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--score);
  color: var(--void);
  font-weight: 700;
  font-size: 14px;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 12px; }

/* --- 7. header / 左缘刻度导航 --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 80;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  padding: 22px 18px 18px;
  background: linear-gradient(180deg, var(--void) 0%, var(--space) 58%, var(--void) 100%);
  border-right: 1px solid var(--rule);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.site-header::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 8px;
  pointer-events: none;
  background-image: repeating-linear-gradient(180deg, var(--rule) 0 1px, transparent 1px 24px);
}

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

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border: 1px solid var(--grass);
  display: grid;
  place-items: center;
  transition: border-color var(--dur) var(--ease);
}
.brand-mark::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--score);
  transform: skewX(-5deg);
  transition: background-color var(--dur) var(--ease);
}
.brand:hover .brand-mark { border-color: var(--score); }
.brand:hover .brand-mark::before { background: var(--grass-bright); }

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text__name { font-family: var(--font-head); font-weight: 900; font-size: 16px; letter-spacing: .01em; }
.brand-text__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--stone);
}

.brand-tag {
  margin-top: 14px;
  padding-left: 12px;
  border-left: 1px solid var(--rule);
  font-size: 12px;
  line-height: 1.6;
  color: var(--grass-bright);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--rule);
  color: var(--bone);
  font-size: 12px;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav-toggle:hover, .nav-toggle[aria-expanded="true"] { border-color: var(--score); color: var(--score); }
.nav-toggle__bars { display: flex; flex-direction: column; gap: 3px; width: 16px; }
.nav-toggle__bars i { display: block; height: 1.5px; background: currentColor; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(4.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(-4.5px) rotate(-45deg); }
.nav-toggle__label { font-family: var(--font-mono); letter-spacing: .12em; }

.site-nav { display: flex; flex-direction: column; flex: 1 1 auto; margin-top: 22px; }
.site-nav__caption {
  margin-bottom: 10px;
  padding-left: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--stone);
}
.site-nav__list { display: flex; flex-direction: column; }

.site-nav__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px 10px 12px;
  border-left: 1px solid var(--rule);
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(243, 239, 228, .74);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.site-nav__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--score);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform var(--dur) var(--ease);
}
.site-nav__link:hover { color: var(--bone); background: rgba(255, 107, 26, .06); border-left-color: var(--score); }
.site-nav__link:hover::before { transform: scaleY(1); }
.site-nav__link[aria-current="page"] {
  color: var(--score);
  background: rgba(255, 107, 26, .09);
  border-left-color: var(--score);
}
.site-nav__link[aria-current="page"]::before { transform: scaleY(1); }

.site-nav__idx {
  flex: none;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 10.5px;
  color: var(--stone);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.site-nav__link:hover .site-nav__idx { border-color: var(--score); color: var(--score); }
.site-nav__link[aria-current="page"] .site-nav__idx { border-color: var(--score); background: var(--score); color: var(--void); }
.site-nav__label { flex: 1 1 auto; }

.rail-actions {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.rail-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.rail-foot__label { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; color: var(--stone); }
.rail-foot__meter {
  flex: 1 1 auto;
  height: 10px;
  background-image: repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px 8px);
  background-position: right center;
}

/* --- 8. buttons --- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--bone);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .02em;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-fill, var(--score));
  transform: translateX(-101%);
  transition: transform .17s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateX(0); }
.btn:hover, .btn:focus-visible { color: var(--void); border-color: var(--btn-fill, var(--score)); }
.btn--accent { --btn-fill: var(--bone); background: var(--score); border-color: var(--score); color: var(--void); }
.btn--solid { --btn-fill: var(--score); background: var(--grass); border-color: var(--grass); color: var(--bone); }
.btn--ghost { --btn-fill: var(--score); }
.btn--block { width: 100%; }

/* --- 9. cards / panels / stats --- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  background: var(--void);
  border: 1px solid var(--rule);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.card::before, .card::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  opacity: .5;
  transition: border-color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.card::before { top: -1px; left: -1px; border-top: 1px solid var(--stone); border-left: 1px solid var(--stone); }
.card::after { bottom: -1px; right: -1px; border-bottom: 1px solid var(--stone); border-right: 1px solid var(--stone); }
.card:hover { border-color: var(--score); background: #0A1622; }
.card:hover::before, .card:hover::after { border-color: var(--score); opacity: 1; }
.card__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); }
.card__title { font-family: var(--font-head); font-size: 19px; font-weight: 800; line-height: 1.32; color: var(--bone); }

.stat { display: flex; flex-direction: column; gap: 8px; }
.stat__value {
  align-self: flex-start;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--moss);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--score);
}
.stat__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; color: var(--stone); }

.panel { padding: 24px; background: var(--void); border: 1px solid var(--rule); }
.panel--bone { background: var(--bone); border-color: rgba(8, 18, 28, .14); color: var(--void); }
.panel--bone h1, .panel--bone h2, .panel--bone h3, .panel--bone h4, .panel--bone .card__title { color: var(--void); }
.panel--bone .label, .panel--bone .card__label, .panel--bone .stat__label, .panel--bone .section-head__aside { color: var(--moss); }
.panel--bone .lede, .panel--bone .prose { color: rgba(8, 18, 28, .82); }
.panel--moss { background: var(--moss); border-color: rgba(243, 239, 228, .18); }
.panel--grass { background: var(--grass); border-color: rgba(243, 239, 228, .2); }

.frame { position: relative; padding: 24px; border: 1px solid var(--rule); }
.frame::before, .frame::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border-color: var(--score);
}
.frame::before { top: -1px; left: -1px; border-top: 2px solid var(--score); border-left: 2px solid var(--score); }
.frame::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--score); border-right: 2px solid var(--score); }

/* --- 10. tags / tables --- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--stone);
}
.tag--live { border-color: var(--grass); color: var(--grass-bright); }
.tag--hot { border-color: var(--score); color: var(--score); }

.table-wrap { overflow-x: auto; border: 1px solid var(--rule); background: var(--void); }
.table { min-width: 560px; font-size: 14px; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid rgba(39, 56, 74, .7); }
.table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #0A1622;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--stone);
}
.table tbody tr:nth-child(odd) { background: rgba(39, 56, 74, .26); }
.table tbody tr:hover { background: rgba(255, 107, 26, .08); }
.table .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* --- 11. breadcrumb --- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--stone);
}
.breadcrumb a { transition: color var(--dur) var(--ease); }
.breadcrumb a:hover { color: var(--score); }
.breadcrumb__sep { color: var(--rule); }
.breadcrumb [aria-current="page"] { color: var(--bone); }

/* --- 12. figure / 响应式图片容器 --- */
.figure {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--void);
}
.figure::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 18, 28, 0) 42%, rgba(8, 18, 28, .86) 100%);
}
.figure__media { position: relative; width: 100%; aspect-ratio: 16 / 9; background: var(--space); }
.figure__media img, .figure__media svg { width: 100%; height: 100%; object-fit: cover; }
.figure__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 16px 18px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(243, 239, 228, .88);
}
.figure--wide .figure__media { aspect-ratio: 21 / 9; }
.figure--square .figure__media { aspect-ratio: 1 / 1; }
.figure--tall .figure__media { aspect-ratio: 3 / 4; }
.figure--plain::after { display: none; }
.figure--empty .figure__media {
  background-image: repeating-linear-gradient(135deg, rgba(39, 56, 74, .9) 0 1px, transparent 1px 12px);
}

/* --- 13. accordion --- */
.accordion { border-top: 1px solid var(--rule); }
.accordion__item { border-bottom: 1px solid var(--rule); }
.accordion__btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  text-align: left;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 800;
  color: var(--bone);
  transition: color var(--dur) var(--ease);
}
.accordion__btn:hover { color: var(--score); }
.accordion__sign { position: relative; flex: none; width: 18px; height: 18px; }
.accordion__sign::before, .accordion__sign::after { content: ""; position: absolute; background: currentColor; }
.accordion__sign::before { left: 0; right: 0; top: 8px; height: 1.5px; }
.accordion__sign::after { top: 0; bottom: 0; left: 8px; width: 1.5px; transition: transform var(--dur) var(--ease); }
.accordion__btn[aria-expanded="true"] .accordion__sign::after { transform: scaleY(0); }
.accordion__panel { padding: 0 4px 22px; }
.accordion__panel[hidden] { display: none; }

/* --- 14. copy button --- */
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--stone);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.copy-btn:hover { border-color: var(--score); color: var(--score); }
.copy-btn.is-copied { border-color: var(--grass-bright); background: rgba(63, 208, 122, .12); color: var(--grass-bright); }

/* --- 15. footer --- */
.site-footer {
  position: relative;
  margin-top: 56px;
  background: var(--void);
  border-top: 1px solid var(--rule);
  color: rgba(243, 239, 228, .78);
}
.footer-ruler {
  height: 10px;
  border-bottom: 1px solid var(--rule);
  background-image: repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px 20px);
}

.footer-grid { display: grid; gap: 32px; padding-block: 44px 36px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 32px 40px; } }

.footer-brand { display: flex; flex-direction: column; gap: 12px; max-width: 46ch; }
.footer-brand__name { font-family: var(--font-head); font-size: 20px; font-weight: 900; letter-spacing: -.01em; color: var(--bone); }
.footer-brand__note { font-size: 14px; line-height: 1.72; color: rgba(243, 239, 228, .68); }
.footer-meter {
  display: block;
  width: 100%;
  height: 8px;
  background-image: repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px 14px);
}

.footer-col__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bone);
  transform: none;
}
.footer-col__list { display: flex; flex-direction: column; gap: 2px; }
.footer-col__link {
  position: relative;
  display: inline-block;
  padding: 5px 0;
  font-size: 14.5px;
  color: rgba(243, 239, 228, .7);
  transition: color var(--dur) var(--ease);
}
.footer-col__link::after {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  margin-top: 2px;
  background: var(--score);
  transition: width var(--dur) var(--ease);
}
.footer-col__link:hover { color: var(--bone); }
.footer-col__link:hover::after { width: 100%; }

.footer-contact { padding-block: 28px; border-top: 1px solid var(--rule); }
.footer-contact__head {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--stone);
}
.footer-contact__list { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .footer-contact__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 32px; } }
.footer-contact__item { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.footer-contact__key { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--stone); }
.footer-contact__val { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: 13.5px; color: var(--bone); }
.footer-contact__note { margin-top: 14px; font-size: 13px; line-height: 1.7; color: rgba(243, 239, 228, .58); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--stone);
}
.footer-base__copy { font-variant-numeric: tabular-nums; }
.footer-base__icp { color: rgba(243, 239, 228, .6); }

/* --- 16. 滚动进度 + 章节刻度（JS 生成） --- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 120;
  pointer-events: none;
  background: linear-gradient(90deg, var(--grass) 0%, var(--grass-bright) 42%, var(--score) 100%);
  transform: scaleX(0);
  transform-origin: left center;
}
@media (min-width: 1024px) { .scroll-progress { left: var(--rail-w); } }

.tick-rail {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 70;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
@media (min-width: 1280px) { .tick-rail { display: flex; } }
.tick-rail__item { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.tick-rail__label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--stone);
  opacity: 0;
  transition: opacity var(--dur) var(--ease), color var(--dur) var(--ease);
}
.tick-rail__item:hover .tick-rail__label, .tick-rail__item.is-active .tick-rail__label { opacity: 1; }
.tick-rail__item.is-active .tick-rail__label { color: var(--score); }
.tick-rail__dot {
  display: block;
  width: 14px;
  height: 2px;
  background: var(--rule);
  transition: width var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.tick-rail__item:hover .tick-rail__dot { background: var(--bone); }
.tick-rail__item.is-active .tick-rail__dot { width: 28px; background: var(--score); }

/* --- 17. 移动端头部形态 --- */
@media (max-width: 1023px) {
  .site-header {
    position: sticky;
    top: 0;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    padding: 10px 16px 12px;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    background: rgba(8, 18, 28, .96);
    overflow: visible;
    z-index: 90;
  }
  .site-header::after { display: none; }
  .brand-tag { display: none; }
  .site-nav { display: none; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule); }
  .site-nav[data-open] { display: flex; animation: nav-drop .18s var(--ease) both; }
  .rail-actions { grid-template-columns: 1fr 1fr; }
  .rail-foot { display: none; }
}
@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- 18. reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }
  .site-nav__link::before { transition: none; }
  .btn::before { transition: none; }
  .scroll-progress { transition: none; }
}
