/* ==========================================================================
   BSPORT 赛事主站 · /assets/site.css
   夜间记分牌 × 技术蓝图 · 深墨绿基底 / 荧光青赛程 / 暖橙操作 / 暖纸阅读区
   ========================================================================== */

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

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

:root {
  --ink: #0A241F;
  --ink-deep: #071A16;
  --panel: #123A32;
  --paper: #F3EBDD;
  --paper-deep: #E7DDC9;
  --cyan: #58F2CE;
  --cyan-soft: rgba(88, 242, 206, .12);
  --orange: #FF8A3D;
  --slate: #8FA6B2;
  --slate-light: #DCE6E5;
  --black: #101816;
  --rust: #C75B2A;
  --ok: #2FBF8F;

  --line-dark: 1px solid rgba(243, 235, 221, .18);
  --line-cyan: 1px solid rgba(88, 242, 206, .28);
  --line-light: 1px solid rgba(10, 36, 31, .16);

  --font-display: "Arial Narrow", "Helvetica Neue", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Menlo", "Consolas", monospace;
  --font-serif: "Songti SC", "Source Han Serif SC", "Noto Serif SC", Georgia, "Times New Roman", serif;

  --shell: 1440px;
  --pad: 48px;
  --gap: 24px;
  --radius: 2px;
  --shadow: 0 12px 32px rgba(0, 0, 0, .18);
  --ease: cubic-bezier(.2, .6, .2, 1);
}

body {
  margin: 0;
  background-color: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, figure, dl, dd, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }

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

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

.section--paper :focus-visible {
  outline-color: var(--ink);
}

/* ---------------------------------------------------------------- 通用布局 */

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

.section {
  position: relative;
  padding: 64px 0;
}

.section--tight { padding: 32px 0; }

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

.section--paper {
  background: var(--paper);
  color: var(--black);
}

.section--paper .section-title { color: var(--black); }
.section--paper .lead { color: #384A44; }
.section--paper .label,
.section--paper .figure__caption { color: #5B6B66; }
.section--paper .section-head { border-bottom: var(--line-light); }
.section--paper .serif-quote { color: var(--black); }
.section--paper .tag { color: #3A4A45; border-color: rgba(10, 36, 31, .28); }
.section--paper .btn--ghost { --btn-fg: var(--black); --btn-bd: rgba(10, 36, 31, .32); }
.section--paper .btn--ghost:hover { --btn-fg: #0A241F; --btn-bd: #0A241F; background: rgba(10, 36, 31, .06); }
.section--paper .card { background: #FFFCF3; border-color: rgba(10, 36, 31, .16); color: var(--black); }
.section--paper .figure { border-color: rgba(10, 36, 31, .16); }

/* 蓝图网格底纹 */
.blueprint { position: relative; isolation: isolate; }

.blueprint::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(to right, rgba(88, 242, 206, .07) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(to bottom, rgba(88, 242, 206, .07) 0 1px, transparent 1px 96px);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .9), transparent 92%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .9), transparent 92%);
}

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

.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

/* ---------------------------------------------------------------- 文本组件 */

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

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

.lead {
  max-width: 62ch;
  font-size: 18px;
  line-height: 1.9;
  color: var(--slate-light);
}

.prose {
  max-width: 68ch;
  font-size: 16px;
  line-height: 1.9;
}

.prose > * + * { margin-top: 18px; }
.prose ul { list-style: disc; padding-left: 1.2em; }
.prose ol { list-style: decimal; padding-left: 1.4em; }
.prose li + li { margin-top: 8px; }
.prose h2 { font-size: 26px; line-height: 1.3; letter-spacing: -.01em; }
.prose h3 { font-size: 20px; line-height: 1.35; }
.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.section--paper .prose a { color: var(--rust); }
.prose strong { font-weight: 700; }

.serif-quote {
  max-width: 46ch;
  margin: 32px 0;
  padding-left: 20px;
  border-left: 2px solid var(--orange);
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--paper);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 16px;
  margin-bottom: 32px;
  border-bottom: var(--line-dark);
}

.section-kicker {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cyan);
}

.section-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--paper);
}

/* ---------------------------------------------------------------- 按钮 */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  --btn-bd: rgba(243, 235, 221, .32);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms var(--ease), color 180ms var(--ease),
              border-color 180ms var(--ease), transform 180ms var(--ease),
              box-shadow 180ms var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn--primary {
  --btn-bg: var(--cyan);
  --btn-fg: var(--ink);
  --btn-bd: var(--cyan);
  font-weight: 700;
}

.btn--primary:hover { --btn-bg: #79F8DC; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  --btn-bd: rgba(243, 235, 221, .32);
}

.btn--ghost:hover {
  --btn-fg: var(--cyan);
  --btn-bd: var(--cyan);
  background: var(--cyan-soft);
}

.btn--accent {
  --btn-bg: var(--orange);
  --btn-fg: #1A0E05;
  --btn-bd: var(--orange);
  font-weight: 700;
}

.btn--accent:hover { --btn-bg: #FFA061; }

.btn--sm {
  padding: 7px 12px;
  font-size: 12px;
  letter-spacing: .08em;
}

/* ---------------------------------------------------------------- 面包屑 */

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

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.crumbs li + li::before {
  content: "／";
  margin-right: 8px;
  color: rgba(143, 166, 178, .6);
}

.crumbs a {
  color: var(--slate-light);
  text-decoration: none;
  transition: color 180ms var(--ease);
}

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

.crumbs [aria-current="page"] { color: var(--cyan); }

/* ---------------------------------------------------------------- 标签与筛选 */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid rgba(243, 235, 221, .28);
  border-radius: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--slate-light);
}

.tag--live {
  color: #1A0E05;
  background: var(--orange);
  border-color: var(--orange);
}

.tag--ok {
  color: var(--ink);
  background: var(--ok);
  border-color: var(--ok);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(243, 235, 221, .24);
  border-radius: var(--radius);
  background: transparent;
  color: var(--slate-light);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 180ms var(--ease), color 180ms var(--ease),
              border-color 180ms var(--ease);
}

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

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

/* ---------------------------------------------------------------- 卡片与面板 */

.card {
  position: relative;
  padding: 24px;
  background: var(--panel);
  border: 1px solid rgba(243, 235, 221, .16);
  border-radius: var(--radius);
  transition: transform 180ms var(--ease), border-color 180ms var(--ease),
              box-shadow 180ms var(--ease);
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(88, 242, 206, .55);
  box-shadow: var(--shadow);
}

.card--panel {
  background: linear-gradient(150deg, #123A32 0%, #0C2A24 100%);
}

.card--tilt {
  -webkit-clip-path: polygon(0 0, 100% 14px, 100% 100%, 0 calc(100% - 14px));
  clip-path: polygon(0 0, 100% 14px, 100% 100%, 0 calc(100% - 14px));
}

.panel {
  padding: 24px;
  background: var(--panel);
  border: var(--line-dark);
  border-radius: var(--radius);
}

.stat {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border-left: 2px solid var(--cyan);
  background: rgba(88, 242, 206, .05);
}

.stat-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--cyan);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ---------------------------------------------------------------- 图片容器 */

.figure {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(243, 235, 221, .16);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 18% 12%, rgba(88, 242, 206, .22), transparent 58%),
    radial-gradient(80% 70% at 82% 88%, rgba(255, 138, 61, .20), transparent 62%),
    linear-gradient(160deg, #0E2C26 0%, #071A16 62%);
}

.figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .55;
  background-image:
    repeating-linear-gradient(to right, rgba(88, 242, 206, .10) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(to bottom, rgba(88, 242, 206, .10) 0 1px, transparent 1px 48px);
}

.figure__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure--wide { aspect-ratio: 21 / 9; }
.figure--tall { aspect-ratio: 4 / 5; }
.figure--square { aspect-ratio: 1 / 1; }

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

/* ---------------------------------------------------------------- 侧栏索引与操作条 */

.spine {
  position: sticky;
  top: 132px;
  align-self: start;
  padding-left: 18px;
  border-left: 1px solid rgba(88, 242, 206, .28);
}

.spine-list {
  display: grid;
  gap: 12px;
}

.spine-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--slate);
  text-decoration: none;
  transition: color 180ms var(--ease);
}

.spine-link:hover { color: var(--cyan); }
.spine-link[aria-current] { color: var(--cyan); }

.action-dock {
  position: fixed;
  right: 24px;
  bottom: 96px;
  z-index: 70;
  display: grid;
  gap: 10px;
  padding: 12px;
  background: rgba(18, 58, 50, .95);
  border: 1px solid rgba(88, 242, 206, .32);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 180ms var(--ease), opacity 180ms var(--ease);
}

.action-dock[data-collapsed="true"] {
  transform: translateX(calc(100% - 58px));
  opacity: .92;
}

/* ---------------------------------------------------------------- 页头 */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(7, 26, 22, .96);
  border-bottom: var(--line-dark);
  box-shadow: inset 0 1px 0 rgba(88, 242, 206, .16);
  color: var(--paper);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -72px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--cyan);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top 160ms var(--ease);
}

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

.header-rail,
.footer-rail {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 6px var(--pad);
  border-bottom: 1px solid rgba(88, 242, 206, .14);
  overflow: hidden;
}

.rail-mark {
  flex: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--slate);
  white-space: nowrap;
}

.rail-mark--right { margin-left: auto; }

.rail-line {
  flex: 1 1 auto;
  height: 1px;
  min-width: 24px;
  background: linear-gradient(to right, rgba(88, 242, 206, .45), rgba(88, 242, 206, .06));
}

.header-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 14px var(--pad);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--paper);
}

.brand-glyph {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(88, 242, 206, .5);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(88, 242, 206, .18), rgba(88, 242, 206, 0));
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  transition: background 180ms var(--ease), color 180ms var(--ease),
              border-color 180ms var(--ease);
}

.brand:hover .brand-glyph {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
}

.brand-stack {
  display: flex;
  flex-direction: column;
  gap: 5px;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .1em;
}

.brand-sub {
  font-size: 10px;
  letter-spacing: .26em;
  color: var(--slate);
}

.version-badge {
  padding: 3px 7px;
  border: 1px solid rgba(255, 138, 61, .55);
  border-radius: 0;
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  line-height: 1.4;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-item { flex: none; }

.nav-link {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 2px;
  color: var(--paper);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  transition: color 180ms var(--ease);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 180ms var(--ease);
}

.nav-index {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .18em;
  color: var(--slate);
  transition: color 180ms var(--ease);
}

.nav-link:hover { color: var(--cyan); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link:hover .nav-index { color: var(--cyan); }

.nav-link[aria-current="page"] { color: var(--cyan); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link[aria-current="page"] .nav-index { color: var(--cyan); }

.nav-aside {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 22px;
  border-left: var(--line-dark);
}

.nav-quick {
  padding: 8px 12px;
  border: 1px solid rgba(243, 235, 221, .28);
  border-radius: var(--radius);
  color: var(--paper);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms var(--ease), border-color 180ms var(--ease),
              background 180ms var(--ease);
}

.nav-quick:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: var(--cyan-soft);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(243, 235, 221, .28);
  border-radius: var(--radius);
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  transition: color 180ms var(--ease), border-color 180ms var(--ease),
              background 180ms var(--ease);
}

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

.nav-toggle-bars {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 180ms var(--ease), opacity 180ms var(--ease);
}

.nav-toggle-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
}

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

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  transform: translateY(6px) 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(-6px) rotate(-45deg);
}

.scroll-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(88, 242, 206, .12);
}

.scroll-meter-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--orange) 100%);
  transition: width 120ms linear;
}

/* 移动端单手四格条 */
.thumb-bar { display: none; }

.thumb-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 6px 2px;
  color: var(--slate-light);
  text-decoration: none;
  transition: color 180ms var(--ease);
}

.thumb-link:hover,
.thumb-link[aria-current="page"] { color: var(--cyan); }

.thumb-glyph {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
  border: 1px solid currentColor;
  border-radius: 1px;
}

.thumb-glyph::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 4px;
  height: 2px;
  background: currentColor;
}

.thumb-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .12em;
}

/* ---------------------------------------------------------------- 页脚 */

.site-footer {
  position: relative;
  background: var(--ink-deep);
  color: var(--paper);
  border-top: var(--line-dark);
}

.footer-rail {
  border-bottom: 1px solid rgba(88, 242, 206, .14);
  border-top: none;
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(240px, 1.1fr) 1.6fr 1.1fr;
  gap: 48px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 56px var(--pad) 40px;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
  color: var(--paper);
}

.footer-wordmark-dot { color: var(--orange); }

.footer-intro {
  max-width: 34ch;
  margin: 16px 0 22px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--slate);
}

.footer-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(88, 242, 206, .4);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
  transition: color 180ms var(--ease), border-color 180ms var(--ease),
              gap 180ms var(--ease);
}

.footer-cta::after {
  content: "→";
  font-family: var(--font-mono);
}

.footer-cta:hover {
  color: var(--orange);
  border-color: var(--orange);
  gap: 14px;
}

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

.footer-col-title,
.footer-label {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: var(--line-dark);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--slate);
}

.footer-label { border-bottom: none; padding-bottom: 0; margin-bottom: 16px; }

.footer-list {
  display: grid;
  gap: 10px;
}

.footer-link {
  color: var(--slate-light);
  font-size: 14px;
  text-decoration: none;
  text-underline-offset: 4px;
  transition: color 180ms var(--ease);
}

.footer-link:hover {
  color: var(--cyan);
  text-decoration: underline;
}

.contact-list {
  display: grid;
  gap: 10px;
}

.contact-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
}

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

.contact-val {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--paper);
  word-break: break-word;
}

.contact-note {
  margin-top: 18px;
  padding-top: 14px;
  border-top: var(--line-dark);
  font-size: 12px;
  line-height: 1.85;
  color: var(--slate);
}

.footer-base {
  border-top: var(--line-dark);
  background: rgba(7, 26, 22, .6);
}

.footer-base-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 18px var(--pad) 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--slate);
}

.footer-legal { color: var(--slate-light); }
.footer-icp { color: var(--slate); }

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-left: auto;
}

.footer-legal-link {
  color: var(--slate-light);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-decoration: none;
  transition: color 180ms var(--ease);
}

.footer-legal-link:hover { color: var(--cyan); }

/* ---------------------------------------------------------------- 进入动效 */

[data-reveal] {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 320ms var(--ease), transform 320ms var(--ease);
}

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

/* ---------------------------------------------------------------- 响应式 */

@media (max-width: 1200px) {
  :root { --pad: 32px; --gap: 20px; }

  .footer-shell {
    grid-template-columns: minmax(220px, 1fr) 1.4fr;
    gap: 32px;
  }

  .footer-contact { grid-column: span 2; }
}

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    order: 3;
    flex-basis: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 2px 0 8px;
  }

  .site-header[data-open="true"] .site-nav { display: flex; }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-item + .nav-item { border-top: var(--line-dark); }

  .nav-link {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 14px 2px;
    font-size: 17px;
  }

  .nav-link::after { display: none; }

  .nav-index { font-size: 10px; letter-spacing: .2em; }

  .nav-link[aria-current="page"] .nav-index { color: var(--cyan); }

  .nav-aside {
    flex-wrap: wrap;
    padding: 16px 0 0;
    border-left: none;
    border-top: 1px solid rgba(88, 242, 206, .24);
  }

  .grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .col-4, .col-5, .col-6, .col-7, .col-8, .col-12 { grid-column: span 6; }

  .spine {
    position: static;
    padding: 14px 0 0;
    border-left: none;
    border-top: 1px solid rgba(88, 242, 206, .28);
  }

  .spine-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
  }
}

@media (max-width: 900px) {
  .thumb-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(7, 26, 22, .98);
    border-top: 1px solid rgba(88, 242, 206, .28);
  }

  .site-footer { padding-bottom: 76px; }

  .action-dock { display: none; }

  .footer-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 40px var(--pad) 32px;
  }

  .footer-contact { grid-column: auto; }

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

  .footer-base-inner { justify-content: flex-start; }
  .footer-legal-links { margin-left: 0; }
}

@media (max-width: 640px) {
  :root { --pad: 20px; --gap: 16px; }

  body { font-size: 15px; }

  .header-rail { padding: 5px var(--pad); gap: 10px; }
  .rail-mark { font-size: 9px; letter-spacing: .14em; }
  .rail-mark--right { display: none; }

  .header-shell { padding: 12px var(--pad); gap: 12px; }

  .brand-glyph { width: 32px; height: 32px; }
  .brand-name { font-size: 18px; }
  .brand-sub { font-size: 9px; letter-spacing: .22em; }

  .section { padding: 44px 0; }
  .section--tight { padding: 24px 0; }
  .section-title { font-size: 27px; }
  .lead { font-size: 16px; }
  .serif-quote { font-size: 18px; }

  .footer-columns { grid-template-columns: minmax(0, 1fr); }
  .footer-wordmark { font-size: 28px; }
  .footer-legal-links { gap: 14px; }

  .stat-value { font-size: 24px; }
}

@media (max-width: 420px) {
  .version-badge { display: none; }
}

/* ---------------------------------------------------------------- 减弱动效 */

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

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

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

  .card:hover,
  .btn:hover {
    transform: none;
  }

  .action-dock[data-collapsed="true"] {
    transform: none;
    opacity: 1;
  }
}
