/* ==========================================================================
   诺亚赛场 · 共享站点样式 /assets/site.css
   骨架：技术蓝图网格 + 框架式导航 + 档案馆式密集索引
   ========================================================================== */

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

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

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

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

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

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

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

address { font-style: normal; }

/* ---------- 变量 ---------- */
:root {
  /* 品牌色板 */
  --navy: #0A1128;
  --ink: #05070F;
  --paper: #F7F4EC;
  --bone: #E8E2D6;
  --gold: #D4A643;
  --gold-bright: #F2C94C;
  --green: #2E7D4F;
  --orange: #FF6B35;
  --steel: #5C6B7A;
  --cool: #AAB4C0;

  /* 线条与容器 */
  --line-light: rgba(247, 244, 236, 0.14);
  --line-gold: rgba(212, 166, 67, 0.34);
  --line-dark: rgba(10, 17, 40, 0.18);
  --grid-line: rgba(92, 107, 122, 0.32);

  --bw: 2px;
  --bw-thick: 3px;
  --u: 8px;
  --gutter: 24px;
  --maxw: 1440px;
  --shell-pad: clamp(16px, 4vw, 48px);

  /* 字体 */
  --font-display: 'Noto Sans SC', 'Source Han Sans SC', 'PingFang SC', sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', 'Roboto Mono', monospace;

  /* 阴影与过渡 */
  --shadow-hard: 6px 6px 0 var(--ink);
  --shadow-gold: 6px 6px 0 rgba(212, 166, 67, 0.28);
  --t: 160ms ease-out;
}

/* ---------- 基础排版 ---------- */
body {
  background-color: var(--navy);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 96px 96px;
  color: var(--paper);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
  text-align: left;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; }

em, i, .italic {
  font-style: italic;
  font-weight: 300;
}

strong { font-weight: 700; }

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

/* ---------- 工具类 ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--shell-pad);
}

.container--tight {
  max-width: 900px;
}

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

.col-3, .col-4, .col-6, .col-8 { grid-column: span 12; }

@media (min-width: 760px) {
  .col-3 { grid-column: span 6; }
  .col-4 { grid-column: span 6; }
  .col-6 { grid-column: span 12; }
  .col-8 { grid-column: span 12; }
}

@media (min-width: 1080px) {
  .col-3 { grid-column: span 3; }
  .col-4 { grid-column: span 4; }
  .col-6 { grid-column: span 6; }
  .col-8 { grid-column: span 8; }
}

.rule {
  height: 2px;
  border: 0;
  background: var(--line-light);
}

.rule--gold { background: var(--line-gold); }

/* 背景分区 */
.surface-paper {
  background: var(--paper);
  color: var(--ink);
}

.surface-bone {
  background: var(--bone);
  color: var(--ink);
}

.surface-ink {
  background: var(--ink);
  color: var(--paper);
}

.surface-navy {
  background: var(--navy);
  color: var(--paper);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--u);
  padding: 11px 20px;
  border: var(--bw) solid var(--gold);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transition: background var(--t), color var(--t), border-color var(--t),
              transform var(--t), box-shadow var(--t);
}

.btn--gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn--gold:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

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

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(247, 244, 236, 0.32);
}

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

.btn--outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.btn--outline:hover {
  background: var(--ink);
  color: var(--paper);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--gold);
}

.btn--sm {
  padding: 7px 13px;
  font-size: 0.82rem;
}

/* ---------- 头部：框架式导航 ---------- */
.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--gold);
  color: var(--ink);
  border: var(--bw) solid var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  transition: top var(--t);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: var(--navy);
  color: var(--paper);
  border-bottom: var(--bw) solid var(--gold);
}

/* 顶部刻度尺：蓝图坐标感 */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--gold) 0 2px,
    transparent 2px 24px
  );
  opacity: 0.55;
  pointer-events: none;
}

/* 底部金色锚线段 */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: calc(-1 * var(--bw));
  width: clamp(88px, 14vw, 220px);
  height: var(--bw);
  background: var(--gold-bright);
  pointer-events: none;
}

.site-header[data-scrolled] {
  box-shadow: 0 8px 0 rgba(5, 7, 15, 0.55);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: calc(-1 * var(--bw));
  z-index: 2;
  width: 0;
  height: var(--bw);
  background: var(--orange);
  transition: width 90ms linear;
  pointer-events: none;
}

.header-inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 14px var(--shell-pad) 12px;
  min-height: 76px;
}

.brand { margin: 0; }

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-crest {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  background: var(--gold);
  color: var(--ink);
  border: var(--bw) solid var(--gold-bright);
  box-shadow: 3px 3px 0 rgba(5, 7, 15, 0.7);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
  transition: transform var(--t), box-shadow var(--t);
}

.brand-link:hover .brand-crest {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(242, 201, 76, 0.6);
}

.brand-words {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--paper);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  color: var(--cool);
}

/* 移动端导航面板 */
.site-nav {
  position: absolute;
  inset: 100% 0 auto 0;
  z-index: 3;
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  background: var(--navy);
  border-bottom: var(--bw) solid var(--gold);
  border-top: 1px solid var(--line-light);
  transition: max-height 200ms ease-out, visibility 200ms ease-out;
}

.site-nav[data-open] {
  max-height: min(72vh, 560px);
  overflow-y: auto;
  visibility: visible;
}

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

.nav-item { width: 100%; }

.nav-link {
  position: relative;
  display: block;
  padding: 15px 20px;
  border-top: 1px solid var(--line-light);
  color: var(--bone);
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color var(--t), background var(--t);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: var(--bw-thick);
  background: var(--gold);
  transition: width var(--t);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--paper);
  background: rgba(212, 166, 67, 0.1);
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  width: 100%;
}

.nav-link[aria-current="page"] {
  color: var(--gold-bright);
  background: rgba(212, 166, 67, 0.08);
}

.nav-link[aria-current="page"]::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.header-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: var(--bw) solid rgba(247, 244, 236, 0.26);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  transition: border-color var(--t), color var(--t), background var(--t);
}

.header-search:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
  background: rgba(212, 166, 67, 0.08);
}

.search-icon {
  position: relative;
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  border: var(--bw) solid currentColor;
  border-radius: 50%;
}

.search-icon::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 7px;
  height: var(--bw);
  background: currentColor;
  transform: rotate(45deg);
}

.search-label { line-height: 1; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: var(--bw) solid var(--gold);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  transition: background var(--t), color var(--t), border-color var(--t);
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold-bright);
}

.nav-toggle-bars {
  display: grid;
  gap: 3px;
  width: 16px;
}

.nav-toggle-bars span {
  display: block;
  height: var(--bw);
  background: currentColor;
  transition: transform var(--t), opacity var(--t);
}

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

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

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

.nav-toggle-text { line-height: 1; }

/* 桌面：导航成为横向框架边 */
@media (min-width: 900px) {
  .header-inner {
    flex-wrap: nowrap;
    gap: clamp(16px, 2.4vw, 40px);
    padding-block: 10px;
    min-height: 84px;
  }

  .site-nav {
    position: static;
    flex: 1 1 auto;
    max-height: none;
    overflow: visible;
    visibility: visible;
    background: transparent;
    border: 0;
    transition: none;
  }

  .nav-list {
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 2px;
  }

  .nav-item { width: auto; }

  .nav-link {
    padding: 26px 13px;
    border-top: 0;
    font-size: 0.92rem;
  }

  .nav-link::after {
    bottom: 14px;
    height: var(--bw);
  }

  .nav-toggle { display: none; }
}

@media (min-width: 1180px) {
  .nav-link {
    padding-inline: 17px;
    font-size: 0.95rem;
  }
}

/* ---------- 页脚：高密度索引区 ---------- */
.site-footer {
  position: relative;
  background: var(--ink);
  color: var(--bone);
  border-top: var(--bw-thick) solid var(--gold);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 8px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--steel) 0 1px,
    transparent 1px 48px
  );
  opacity: 0.5;
  pointer-events: none;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 3.4vw, 44px);
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(44px, 6vw, 76px) var(--shell-pad) clamp(28px, 4vw, 48px);
}

@media (min-width: 640px) {
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col--seasons { grid-column: 1 / -1; }
}

@media (min-width: 1080px) {
  .footer-inner {
    grid-template-columns: 1.35fr 0.85fr 1.7fr 0.9fr 1.3fr;
  }
  .footer-brand { grid-column: auto; }
  .footer-col--seasons { grid-column: auto; }
}

.footer-brand {
  display: grid;
  gap: 16px;
  align-content: start;
}

.footer-brand .brand-name { color: var(--paper); }

.footer-note {
  max-width: 42ch;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--cool);
}

.footer-note--small {
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--steel);
}

.footer-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--steel);
}

.footer-col {
  display: grid;
  gap: 14px;
  align-content: start;
}

.footer-title {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-gold);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.footer-list {
  display: grid;
  gap: 2px;
  align-content: start;
}

.footer-link {
  position: relative;
  display: inline-block;
  padding: 4px 0;
  color: var(--bone);
  font-size: 0.92rem;
  transition: color var(--t), transform var(--t);
}

.footer-link::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--t);
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--gold-bright);
  transform: translateX(2px);
}

.footer-link:hover::before,
.footer-link:focus-visible::before {
  width: 100%;
}

.footer-link--more {
  margin-top: 6px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
}

.footer-link--sm {
  font-size: 0.78rem;
  color: var(--cool);
}

/* 赛季索引网格 */
.season-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
}

@media (min-width: 640px) {
  .season-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}

@media (min-width: 1080px) {
  .season-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

.index-cell {
  display: grid;
  place-items: center;
  padding: 6px 0;
  border: 1px solid rgba(170, 180, 192, 0.28);
  color: var(--cool);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-variant-numeric: tabular-nums;
  transition: background var(--t), color var(--t), border-color var(--t);
}

.index-cell:hover,
.index-cell:focus-visible {
  background: var(--gold);
  border-color: var(--gold-bright);
  color: var(--ink);
}

/* 联系方式 */
.footer-contact {
  display: grid;
  gap: 9px;
}

.contact-line {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  font-size: 0.86rem;
  line-height: 1.6;
  word-break: break-word;
}

.contact-key {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--steel);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 18px var(--shell-pad) 26px;
  border-top: 1px solid var(--line-light);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--steel);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--steel);
}

.dot { color: var(--steel); }

/* ---------- 通用内容组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  color: var(--gold);
}

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

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(24px, 3vw, 40px);
  padding-bottom: 16px;
  border-bottom: var(--bw) solid var(--line-light);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-desc {
  max-width: 68ch;
  font-size: 0.96rem;
  opacity: 0.78;
}

.surface-paper .section-head,
.surface-bone .section-head {
  border-bottom-color: var(--line-dark);
}

.surface-paper .eyebrow,
.surface-bone .eyebrow { color: var(--ink); }

.surface-paper .eyebrow::before,
.surface-bone .eyebrow::before { background: var(--gold); }

.prose {
  display: grid;
  gap: 16px;
  max-width: 72ch;
  font-size: 1rem;
  line-height: 1.78;
}

.prose h3 { margin-top: 8px; }

.panel {
  display: grid;
  gap: 16px;
  padding: clamp(20px, 2.4vw, 32px);
  background: var(--paper);
  color: var(--ink);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-hard);
}

.panel--bone { background: var(--bone); }

.panel--dark {
  background: var(--navy);
  color: var(--paper);
  border-color: var(--gold);
  box-shadow: var(--shadow-gold);
}

.panel--flush { padding: 0; gap: 0; }

.archive-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: var(--navy);
  color: var(--paper);
  border: var(--bw) solid rgba(247, 244, 236, 0.18);
  box-shadow: 6px 6px 0 rgba(5, 7, 15, 0.75);
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}

.archive-card:hover {
  border-color: var(--gold);
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 rgba(212, 166, 67, 0.3);
}

.archive-card__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.archive-card__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.22rem;
  line-height: 1.32;
}

.archive-card__meta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--cool);
}

.stat {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-left: var(--bw-thick) solid var(--gold);
  background: rgba(247, 244, 236, 0.04);
}

.stat__value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--cool);
}

.surface-paper .stat,
.surface-bone .stat { background: rgba(10, 17, 40, 0.04); }

.surface-paper .stat__value,
.surface-bone .stat__value { color: var(--ink); }

.surface-paper .stat__label,
.surface-bone .stat__label { color: var(--steel); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  line-height: 1.6;
}

.tag--gold { color: var(--gold); }
.tag--green { color: var(--green); border-color: rgba(46, 125, 79, 0.65); }
.tag--orange { color: var(--orange); border-color: rgba(255, 107, 53, 0.65); }

.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-hard);
  background: var(--paper);
}

.data-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.92rem;
}

.data-table caption {
  padding: 10px 14px;
  background: var(--ink);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-align: left;
}

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

.data-table thead th {
  background: var(--bone);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
}

.data-table tbody tr {
  transition: background var(--t);
}

.data-table tbody tr:hover {
  background: rgba(212, 166, 67, 0.16);
}

.data-table .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.timeline {
  position: relative;
  display: grid;
  gap: clamp(24px, 3vw, 40px);
  padding-left: 34px;
  border-left: var(--bw) solid var(--line-gold);
}

.timeline__item {
  position: relative;
  display: grid;
  gap: 10px;
}

.timeline__marker {
  position: absolute;
  left: -50px;
  top: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: var(--navy);
  border: var(--bw) solid var(--gold);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.surface-paper .timeline,
.surface-bone .timeline { border-left-color: rgba(212, 166, 67, 0.55); }

.surface-paper .timeline__marker,
.surface-bone .timeline__marker {
  background: var(--paper);
  color: var(--ink);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--cool);
}

.crumbs a {
  color: var(--cool);
  transition: color var(--t);
}

.crumbs a:hover,
.crumbs a:focus-visible { color: var(--gold-bright); }

.crumbs__sep { opacity: 0.55; }

.crumbs__current { color: var(--gold); }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: var(--bw) solid var(--line-light);
}

.tab {
  position: relative;
  padding: 12px 18px;
  border: var(--bw) solid transparent;
  border-bottom: 0;
  color: var(--cool);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  transition: color var(--t), background var(--t), border-color var(--t);
}

.tab:hover { color: var(--gold-bright); }

.tab[aria-selected="true"],
.tab[data-active] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--ink);
}

.tabpanel {
  padding-top: clamp(18px, 2.4vw, 28px);
}

.tabpanel[hidden] { display: none; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-btn {
  padding: 7px 14px;
  border: var(--bw) solid rgba(247, 244, 236, 0.24);
  color: var(--bone);
  font-family: var(--font-mono);
  font-size: 0.79rem;
  letter-spacing: 0.06em;
  transition: background var(--t), color var(--t), border-color var(--t);
}

.filter-btn:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}

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

.surface-paper .filter-btn,
.surface-bone .filter-btn {
  border-color: var(--line-dark);
  color: var(--ink);
}

.index-rail {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 2px;
  align-content: start;
  border-left: var(--bw) solid var(--line-light);
}

.index-rail__link {
  display: block;
  margin-left: calc(-1 * var(--bw));
  padding: 10px 14px;
  border-left: var(--bw) solid transparent;
  color: var(--cool);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  transition: color var(--t), border-color var(--t), background var(--t);
}

.index-rail__link:hover {
  color: var(--paper);
  border-left-color: var(--gold);
}

.index-rail__link[aria-current] {
  color: var(--gold-bright);
  border-left-color: var(--gold);
  background: rgba(212, 166, 67, 0.08);
}

/* ---------- 响应式图片容器（供页面阶段使用） ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bone);
  border: var(--bw) solid var(--ink);
  box-shadow: var(--shadow-hard);
}

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

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

.media-frame--onDark {
  border-color: var(--gold);
  box-shadow: 6px 6px 0 rgba(212, 166, 67, 0.28);
}

.media-frame--grid::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(10, 17, 40, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 17, 40, 0.14) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.7;
}

.media-frame__cap {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--cool);
}

/* ---------- 焦点与降噪 ---------- */
:focus-visible {
  outline: var(--bw) solid var(--orange);
  outline-offset: 2px;
}

#main-content { display: block; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .archive-card:hover,
  .brand-link:hover .brand-crest,
  .btn--gold:hover,
  .btn--outline:hover,
  .footer-link:hover {
    transform: none;
  }

  .scroll-progress { transition: none; }
}

@media (prefers-contrast: more) {
  .nav-link,
  .footer-link,
  .footer-note { color: var(--paper); }
}
