/* =====================================================================
   亚星赛季档案 · /assets/site.css
   共享外壳：深靛蓝档案室底 · 荧光青绿数据 · 琥珀金荣誉刻度
   ===================================================================== */

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

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

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

ul, ol { list-style: none; }

img, 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%; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #05070F;
  --bg: #0B1030;
  --panel: #141B4D;
  --structure: #232E6B;
  --rule: #2A3468;
  --teal: #3DF5C8;
  --teal-dim: #1E8F79;
  --gold: #F2B23E;
  --white: #F5F7FA;
  --slate: #9AA3C7;

  --rail-w: 272px;
  --bar-h: 60px;
  --gap: 20px;
  --maxw: 1280px;
  --ease: cubic-bezier(.2, .7, .3, 1);

  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --font-heading: "Archivo Narrow", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, "Courier New", monospace;

  --grid-line: rgba(42, 52, 104, .55);
  --grid-line-soft: rgba(42, 52, 104, .28);
  --teal-wash: rgba(61, 245, 200, .07);
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---------- 3. 基础中文排版 ---------- */
body {
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-soft) 1px, transparent 1px);
  background-size: 120px 120px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .01em;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

:focus-visible {
  outline: 1px solid var(--teal);
  outline-offset: 2px;
}

#main-content:focus { outline: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 10px;
  top: -80px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--teal);
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
}

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

/* ---------- 4. 头部：框架式导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  width: 100%;
  background: var(--ink);
  border-bottom: 1px solid var(--rule);
}

.masthead {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: var(--bar-h);
  padding: 0 16px;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  padding: 9px 0;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .04em;
  color: var(--white);
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--slate);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--rule);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  transition: color .2s, border-color .2s, background-color .2s;
}

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

.nav-toggle[aria-expanded="true"] {
  background: var(--structure);
  border-color: var(--teal);
  color: var(--teal);
}

.nav-toggle-icon {
  position: relative;
  width: 16px;
  height: 12px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(50% - .5px);
  height: 1px;
  background: currentColor;
}

.header-body {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  top: var(--bar-h);
  bottom: 0;
  overflow-y: auto;
  background: var(--ink);
  border-top: 1px solid var(--rule);
}

.site-header[data-open] .header-body { display: block; }

.nav-list { display: flex; flex-direction: column; }

.nav-list a {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  min-height: 48px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--rule);
  color: var(--slate);
  transition: color .2s, background-color .2s, box-shadow .2s;
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--teal-dim);
}

.nav-label {
  font-family: var(--font-heading);
  font-size: 15px;
  letter-spacing: .08em;
}

.nav-list a:hover { color: var(--white); background: var(--panel); }
.nav-list a:hover .nav-index { color: var(--teal); }

.nav-list a[aria-current="page"] {
  color: var(--white);
  background: var(--panel);
  box-shadow: inset 3px 0 0 var(--teal);
}

.nav-list a[aria-current="page"] .nav-index { color: var(--teal); }

.rail-utility {
  padding: 20px 22px 28px;
  border-top: 1px solid var(--rule);
  background: var(--bg);
}

.season-switch { margin-bottom: 18px; }

.season-switch-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--slate);
}

.season-switch-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.season-btn {
  padding: 7px 2px;
  border: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
  color: var(--slate);
  transition: color .2s, border-color .2s, background-color .2s;
}

.season-btn:hover { color: var(--teal); border-color: var(--teal-dim); }

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

.season-readout {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--slate);
}

/* ---------- 5. 页脚 ---------- */
.site-footer {
  background: var(--ink);
  border-top: 1px solid var(--rule);
  padding: 44px 0 28px;
  color: var(--slate);
}

.footer-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

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

.footer-mark {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--white);
}

.footer-tag {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--slate);
}

.footer-note {
  margin-top: 12px;
  max-width: 38em;
  font-size: 13px;
  line-height: 1.7;
  color: var(--slate);
}

.contact-list {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.contact-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  line-height: 1.7;
}

.contact-key { color: var(--teal-dim); letter-spacing: .12em; }
.contact-val { color: var(--slate); word-break: break-all; }

.footer-col-title {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--white);
}

.footer-list { display: grid; gap: 2px; margin-top: 12px; }

.footer-list a {
  display: inline-block;
  padding: 5px 0;
  font-size: 14px;
  color: var(--slate);
  transition: color .2s;
}

.footer-list a:hover { color: var(--teal); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--slate);
}

.footer-icp { color: var(--gold); }

/* ---------- 6. 容器与网格 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.container--narrow { max-width: 840px; }

.grid { display: grid; gap: var(--gap); }
.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, 5fr) minmax(0, 7fr); }
.grid--edge { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }

.cell {
  background: var(--panel);
  border: 1px solid var(--rule);
  padding: 20px;
}

.rule { height: 1px; border: 0; background: var(--rule); }

/* ---------- 7. 文字层级 ---------- */
.display {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: .01em;
  color: var(--white);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .04em;
  color: var(--white);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal);
}

.lede {
  max-width: 38em;
  font-size: 17px;
  line-height: 1.9;
  color: var(--slate);
}

.prose { max-width: 38em; }
.prose p { margin-bottom: 1em; color: var(--slate); }
.prose strong { color: var(--white); font-weight: 600; }

/* ---------- 8. 数据读数 ---------- */
.data {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
  color: var(--teal);
}

.data--lg {
  display: block;
  font-size: clamp(40px, 7vw, 96px);
  line-height: .95;
  letter-spacing: -.02em;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0 4px;
  border-top: 1px solid var(--rule);
}

.stat__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(24px, 4vw, 40px);
  line-height: 1.1;
  color: var(--teal);
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--slate);
}

/* ---------- 9. 按钮与标记 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--rule);
  border-radius: 0;
  background: var(--panel);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  transition: color .2s, background-color .2s, border-color .2s;
}

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

.btn--primary {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--ink);
}

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

.btn--ghost { background: transparent; }
.btn--block { width: 100%; margin-top: 10px; }

.tag {
  display: inline-block;
  padding: 4px 9px;
  border: 1px solid var(--rule);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--slate);
}

.tag--teal { border-color: var(--teal-dim); color: var(--teal); }
.tag--gold { border-color: var(--gold); color: var(--gold); }

/* ---------- 10. 面包屑 ---------- */
.breadcrumb {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--slate);
}

.breadcrumb li + li::before {
  content: "/";
  padding-right: 6px;
  color: var(--rule);
}

.breadcrumb a:hover { color: var(--teal); }
.breadcrumb [aria-current="page"] { color: var(--white); }

/* ---------- 11. 面板 ---------- */
.panel {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 0;
}

.panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  padding: 14px 20px;
  background: var(--structure);
  border-bottom: 1px solid var(--rule);
}

.panel__index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--gold);
}

.panel__title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--white);
}

.panel__body { padding: 22px 20px; }

.panel__note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--slate);
}

/* ---------- 12. 表格与折叠 ---------- */
.data-table {
  font-family: var(--font-mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

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

.data-table thead th {
  position: sticky;
  top: 0;
  background: var(--structure);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .14em;
  color: var(--white);
}

.data-table tbody tr:hover { background: var(--teal-wash); }
.data-table tbody td:first-child { color: var(--white); }

.disclosure {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-bottom: 0;
}

.disclosure:last-of-type { border-bottom: 1px solid var(--rule); }

.disclosure summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 17px;
  letter-spacing: .04em;
  color: var(--white);
  list-style: none;
}

.disclosure summary::-webkit-details-marker { display: none; }

.disclosure summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--teal);
}

.disclosure[open] summary::after { content: "–"; }

.disclosure__body {
  padding: 0 18px 18px;
  max-width: 38em;
  font-size: 15px;
  color: var(--slate);
}

/* ---------- 13. 图像容器 ---------- */
.media {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--structure);
  border: 1px solid var(--rule);
}

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

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--1x1 { aspect-ratio: 1 / 1; }
.media--tall { aspect-ratio: 3 / 4; }

.media__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
}

.media__tag {
  position: absolute;
  left: 0;
  top: 0;
  padding: 5px 10px;
  background: var(--teal);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
}

.media__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--slate);
}

/* ---------- 14. 章节索引 ---------- */
.section-index { border-left: 1px solid var(--rule); }

.section-index a {
  display: block;
  padding: 10px 14px;
  border-left: 2px solid transparent;
  font-family: var(--font-heading);
  font-size: 14px;
  letter-spacing: .08em;
  color: var(--slate);
  transition: color .2s, border-color .2s, background-color .2s;
}

.section-index a:hover { color: var(--white); background: var(--panel); }

.section-index a[aria-current="true"] {
  color: var(--teal);
  border-left-color: var(--teal);
  background: var(--panel);
}

/* ---------- 15. 显现 / 进度 / 返回顶部 ---------- */
[data-reveal].is-armed {
  opacity: 0;
  transform: translateY(12px);
}

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

.scroll-progress {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--bar-h);
  height: 2px;
  z-index: 90;
  pointer-events: none;
  background: transparent;
}

.scroll-progress__bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--teal) 0%, var(--gold) 100%);
}

.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 54px;
  height: 54px;
  background: var(--ink);
  border: 1px solid var(--rule);
  color: var(--slate);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .24s var(--ease), transform .24s var(--ease), color .2s, border-color .2s, visibility .24s;
}

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

.to-top:hover { color: var(--teal); border-color: var(--teal); }

.to-top__arrow { font-size: 14px; line-height: 1; color: var(--teal); }

.to-top__text { line-height: 1; }

/* ---------- 16. 平板 ---------- */
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .masthead { padding: 0 24px; }
  .brand-mark { font-size: 20px; }
  .grid--3, .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- 17. 桌面：左侧框架竖栏 ---------- */
@media (min-width: 1024px) {
  body { padding-left: var(--rail-w); }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--rail-w);
    display: flex;
    flex-direction: column;
    border-bottom: 0;
    border-right: 1px solid var(--rule);
  }

  .masthead {
    display: block;
    flex: 0 0 auto;
    padding: 26px 22px;
  }

  .brand { padding: 0; }
  .brand-mark { font-size: 21px; }
  .brand-tag { margin-top: 4px; font-size: 10px; }

  .nav-toggle { display: none; }

  .header-body {
    display: flex;
    flex-direction: column;
    position: static;
    flex: 1 1 auto;
    min-height: 0;
    overflow: visible;
    border-top: 0;
    background: transparent;
  }

  .site-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    border-top: 1px solid var(--rule);
  }

  .rail-utility {
    flex: 0 0 auto;
    margin-top: auto;
    padding: 18px 22px 24px;
    background: transparent;
  }

  .scroll-progress { left: var(--rail-w); top: 0; }

  .footer-grid { grid-template-columns: 1.6fr .9fr .9fr 1fr; gap: 28px; }
  .footer-brand { grid-column: auto; }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- 18. 窄屏微调 ---------- */
@media (max-width: 419px) {
  .brand-tag { display: none; }
  .contact-list li { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

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

/* ---------- 19. 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  html { scroll-behavior: auto; }

  [data-reveal].is-armed { opacity: 1; transform: none; }
}
