/* =========================================================
   完美体育主站 · 共享样式表 /assets/site.css
   深海蓝框架 + 电光青坐标 + 橙红数据高亮 + 矿物色呼吸区
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, blockquote, dl, dd, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
table { border-collapse: collapse; }
main { display: block; }

/* ---------- 2. Tokens ---------- */
:root {
  --c-deep: #0B1E33;
  --c-night: #14304F;
  --c-cyan: #17E0D2;
  --c-cyan-soft: #7FF2E8;
  --c-orange: #FF5B2E;
  --c-amber: #FFA24B;
  --c-rock: #6E7A84;
  --c-moss: #4C6B4F;
  --c-clay: #B4704E;
  --c-cream: #F3EFE7;
  --c-ink: #05121F;

  --bg: var(--c-deep);
  --bg-raised: var(--c-night);
  --text: #E4EDF4;
  --text-dim: #93A6B5;
  --line: rgba(23, 224, 210, 0.20);
  --line-soft: rgba(110, 122, 132, 0.30);
  --line-strong: rgba(23, 224, 210, 0.55);

  --font-display: 'Barlow Condensed', 'HarmonyOS Sans SC', 'Source Han Sans SC', sans-serif;
  --font-body: 'Inter', 'HarmonyOS Sans SC', 'PingFang SC', sans-serif;
  --font-mono: 'JetBrains Mono', 'IBM Plex Mono', monospace;

  --header-h: 63px;
  --shell: 1280px;
  --gutter: clamp(18px, 4vw, 44px);
  --radius: 2px;
}

@media (min-width: 1024px) {
  :root { --header-h: 109px; }
}

/* ---------- 3. Base ---------- */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  padding-top: var(--header-h);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 1024px) { body { font-size: 17px; } }

/* 页面视觉边框：桌面端在外沿描一圈极细电光青 */
body::after {
  content: "";
  position: fixed;
  inset: 10px;
  border: 1px solid rgba(23, 224, 210, 0.10);
  pointer-events: none;
  z-index: 30;
}

@media (max-width: 1023px) { body::after { display: none; } }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--c-cream);
}

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

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

#main-content { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ---------- 4. Utilities ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: 8px;
  z-index: 120;
  transform: translateY(-180%);
  background: var(--c-cyan);
  color: var(--c-ink);
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: transform 0.2s ease-out;
}

.skip-link:focus { transform: translateY(0); }

.divider-net {
  height: 1px;
  border: 0;
  background-image: repeating-linear-gradient(90deg, var(--line) 0 22px, transparent 22px 44px);
}

/* ---------- 5. Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  background: rgba(11, 30, 51, 0.93);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
  transition: border-color 0.25s ease-out, box-shadow 0.25s ease-out;
}

.site-header[data-scrolled] {
  border-bottom-color: var(--line);
  box-shadow: 0 12px 32px -24px rgba(5, 18, 31, 0.95);
}

.header-bar__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--c-cream);
  flex: 0 0 auto;
}

.brand__mark {
  position: relative;
  width: 34px; height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(23, 224, 210, 0.45);
  background-image:
    repeating-linear-gradient(to right, rgba(23, 224, 210, 0.13) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(to bottom, rgba(23, 224, 210, 0.13) 0 1px, transparent 1px 7px);
}

.brand__mark::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px; bottom: 6px;
  height: 2px;
  background: var(--c-orange);
  transform: skewX(-26deg);
}

.brand__text { display: flex; flex-direction: column; }

.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.12rem;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.brand__meta {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--c-cyan);
  margin-top: 2px;
}

/* 移动端开关 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 48px;
  min-height: 48px;
  padding: 0 0.8rem;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--line-soft);
  color: var(--c-cream);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: border-color 0.22s ease-out, color 0.22s ease-out;
}

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

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px; height: 12px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--c-cyan);
  transition: transform 0.28s ease-out;
}

.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5.5px) rotate(-45deg); }

/* 主导航 · 桌面 */
.primary-nav { display: none; }

@media (min-width: 1024px) {
  .primary-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
  }
}

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.primary-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.85rem;
  font-size: 0.95rem;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.22s ease-out;
}

.primary-nav__link::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 9px;
  height: 1px;
  background: var(--c-cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s ease-out, background-color 0.2s ease-out;
}

.primary-nav__link:hover,
.primary-nav__link:focus-visible { color: var(--c-cream); }
.primary-nav__link:hover::after,
.primary-nav__link:focus-visible::after { transform: scaleX(1); }

.primary-nav__link[aria-current="page"] { color: var(--c-cyan-soft); }
.primary-nav__link[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--c-orange);
  height: 2px;
}

.primary-nav__utility {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 16px;
}

/* 主导航 · 移动抽屉 */
@media (max-width: 1023px) {
  .primary-nav {
    position: fixed;
    left: 0; right: 0;
    top: var(--header-h);
    bottom: 0;
    z-index: 55;
    flex-direction: column;
    padding: 20px var(--gutter) 48px;
    overflow-y: auto;
    background: linear-gradient(180deg, #0B1E33 0%, #081827 100%);
    border-top: 1px solid var(--line);
  }

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

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    counter-reset: nav;
  }

  .primary-nav__item {
    counter-increment: nav;
    border-bottom: 1px solid var(--line-soft);
  }

  .primary-nav__link {
    min-height: 58px;
    padding: 0;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 0.01em;
    color: var(--c-cream);
  }

  .primary-nav__link::before {
    content: counter(nav, decimal-leading-zero);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--c-cyan);
    margin-right: 0.9rem;
  }

  .primary-nav__link::after { display: none; }

  .primary-nav__link[aria-current="page"] {
    color: var(--c-cyan);
    box-shadow: inset 2px 0 0 var(--c-orange);
    padding-left: 12px;
  }

  .primary-nav__utility {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin: 24px 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--line-soft);
  }

  .primary-nav__utility .btn { width: 100%; justify-content: center; }

  body[data-nav-locked] { overflow: hidden; }
}

/* 分栏刻度轨 */
.column-rail {
  display: none;
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(20, 48, 79, 0.55), rgba(11, 30, 51, 0.12));
}

@media (min-width: 1024px) { .column-rail { display: block; } }

.column-rail__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 45px;
}

.column-rail__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--c-rock);
  white-space: nowrap;
}

.column-rail__dot {
  width: 6px; height: 6px;
  background: var(--c-orange);
  box-shadow: 0 0 0 3px rgba(255, 91, 46, 0.16);
}

.column-rail__list {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.column-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid transparent;
  font-size: 0.78rem;
  color: var(--text-dim);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.22s ease-out, border-color 0.22s ease-out, background-color 0.22s ease-out, transform 0.22s ease-out;
}

.column-chip__num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--c-cyan);
}

.column-chip:hover,
.column-chip:focus-visible {
  color: var(--c-cream);
  border-color: var(--line);
  background: rgba(23, 224, 210, 0.07);
  transform: translateX(2px);
}

/* 阅读进度 */
.header-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  overflow: hidden;
}

.header-progress__bar {
  display: block;
  width: 100%; height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-orange));
  will-change: transform;
}

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.22s ease-out, background-color 0.22s ease-out, border-color 0.22s ease-out, transform 0.22s ease-out;
}

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

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--c-cyan-soft);
  border-color: var(--c-cyan-soft);
  transform: translateX(2px);
}

.btn--ghost {
  background: transparent;
  color: var(--c-cyan);
  border-color: var(--line-strong);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  color: var(--c-cyan-soft);
  border-color: var(--c-cyan-soft);
  transform: translateX(2px);
}

.btn--line {
  background: transparent;
  color: var(--c-cream);
  border-color: var(--line-soft);
}

.btn--line:hover,
.btn--line:focus-visible {
  color: var(--c-cyan);
  border-color: var(--c-cyan);
  transform: translateX(2px);
}

/* ---------- 7. Breadcrumbs ---------- */
.breadcrumbs {
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--c-rock);
}

.breadcrumbs__list li + li::before {
  content: "/";
  margin-right: 0.55rem;
  color: var(--c-rock);
}

.breadcrumbs__list a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease-out;
}

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

/* ---------- 8. Sections ---------- */
.section {
  position: relative;
  padding: clamp(46px, 7vw, 96px) 0;
}

.section--tint {
  background: linear-gradient(180deg, rgba(20, 48, 79, 0.55), rgba(11, 30, 51, 0));
}

.section--cream {
  background: var(--c-cream);
  color: #1B2A33;
}

.section--cream h2,
.section--cream h3 { color: #0B1E33; }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.9rem 2rem;
  margin-bottom: clamp(22px, 3vw, 40px);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.section__title {
  font-size: clamp(28px, 4.4vw, 52px);
  max-width: 22ch;
}

.section__intro {
  max-width: 44ch;
  margin: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.section--cream .section__intro { color: #4A5A66; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-cyan);
}

.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--c-cyan);
}

/* ---------- 9. Grid ---------- */
.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}

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

.grid-auto {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

@media (max-width: 1023px) {
  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .span-3, .span-4, .span-5 { grid-column: span 3; }
  .span-6 { grid-column: span 3; }
  .span-7, .span-8, .span-9 { grid-column: span 6; }
  .span-12 { grid-column: span 6; }
}

@media (max-width: 639px) {
  .grid-12 { grid-template-columns: minmax(0, 1fr); }
  .span-3, .span-4, .span-5, .span-6,
  .span-7, .span-8, .span-9, .span-12 { grid-column: span 1; }
}

/* ---------- 10. Panel / Card / Stat ---------- */
.panel {
  position: relative;
  padding: clamp(16px, 2.4vw, 26px);
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(20, 48, 79, 0.6), rgba(11, 30, 51, 0.88));
  transition: border-color 0.25s ease-out, transform 0.25s ease-out;
}

.panel:hover { border-color: var(--line); }

.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}

.panel__title {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0;
}

.panel__body {
  color: var(--text-dim);
  font-size: 0.94rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(20, 48, 79, 0.5), rgba(11, 30, 51, 0.92));
  transition: border-color 0.25s ease-out, transform 0.25s ease-out;
}

.card:hover {
  border-color: var(--c-cyan);
  transform: translateX(2px);
}

.card__title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0;
}

.card__text { color: var(--text-dim); font-size: 0.92rem; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.stat {
  background: var(--c-deep);
  padding: 18px;
}

.stat__value {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--c-cyan);
}

.stat__value--hot { color: var(--c-orange); }

.stat__label {
  display: block;
  margin-top: 9px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--c-rock);
}

/* ---------- 11. Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.5rem;
  border: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  white-space: nowrap;
}

.tag--cyan { color: var(--c-cyan); border-color: rgba(23, 224, 210, 0.42); }
.tag--hot { color: var(--c-orange); border-color: rgba(255, 91, 46, 0.45); }
.tag--moss { color: var(--c-cream); background: rgba(76, 107, 79, 0.38); border-color: rgba(76, 107, 79, 0.9); }
.tag--clay { color: var(--c-clay); border-color: rgba(180, 112, 78, 0.55); }

/* ---------- 12. Rank table ---------- */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
}

.rank-table {
  width: 100%;
  min-width: 520px;
  font-size: 0.92rem;
}

.rank-table th {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--c-rock);
  text-align: left;
  white-space: nowrap;
}

.rank-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(110, 122, 132, 0.16);
  color: var(--text);
}

.rank-table tbody tr:nth-child(even) { background: rgba(20, 48, 79, 0.35); }
.rank-table tbody tr:hover { background: rgba(23, 224, 210, 0.06); }
.rank-table tbody tr:last-child td { border-bottom: 0; }

.rank-table .num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--c-cream);
}

.rank-table .num--hot { color: var(--c-orange); }

/* ---------- 13. Media frame ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-soft);
  background-color: var(--c-ink);
  background-image:
    linear-gradient(135deg, rgba(20, 48, 79, 0.9), rgba(5, 18, 31, 0.95)),
    repeating-linear-gradient(to right, rgba(23, 224, 210, 0.08) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(to bottom, rgba(23, 224, 210, 0.08) 0 1px, transparent 1px 34px);
}

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

.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--tilt { transform: rotate(-1.2deg); }

.media-frame__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.7rem 0.9rem;
  background: linear-gradient(0deg, rgba(5, 18, 31, 0.92), rgba(5, 18, 31, 0));
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--c-cyan-soft);
}

/* ---------- 14. Prose ---------- */
.prose {
  max-width: 36em;
  color: #D8E3EC;
  font-size: 17px;
  line-height: 1.75;
}

.prose p,
.prose li { max-width: 34em; }

.prose h2 {
  margin: 1.8em 0 0.6em;
  font-size: clamp(22px, 3vw, 30px);
}

.prose h3 {
  margin: 1.5em 0 0.5em;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0;
}

.prose p + p { margin-top: 0.9em; }
.prose ul { margin: 0.8em 0; display: flex; flex-direction: column; gap: 0.5em; }
.prose li { padding-left: 1.1em; position: relative; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.75em;
  width: 6px; height: 1px;
  background: var(--c-cyan);
}

.prose a {
  color: var(--c-cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(23, 224, 210, 0.42);
  transition: color 0.2s ease-out, border-color 0.2s ease-out;
}

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

.prose--cream {
  max-width: 44em;
  padding: clamp(20px, 4vw, 48px);
  background: var(--c-cream);
  color: #22323C;
  border: 1px solid rgba(5, 18, 31, 0.12);
  font-size: 16.5px;
  line-height: 1.85;
}

.prose--cream h2,
.prose--cream h3 { color: #0B1E33; }
.prose--cream a { color: #0E6F6B; border-bottom-color: rgba(14, 111, 107, 0.4); }
.prose--cream li::before { background: #0E6F6F; }

/* ---------- 15. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(40px, 6vw, 80px);
  background: linear-gradient(180deg, #08182A 0%, var(--c-ink) 72%);
  border-top: 1px solid var(--line);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(28px, 4vw, 48px) 0 clamp(20px, 3vw, 32px);
  border-bottom: 1px solid var(--line-soft);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 48ch;
}

.footer-brand__note {
  color: var(--c-rock);
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.35fr;
  gap: clamp(18px, 3vw, 40px);
  padding: clamp(26px, 4vw, 44px) 0;
}

.footer-col__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--c-cyan);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-list--dense { gap: 6px; }

.footer-list a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 0.89rem;
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease-out, border-color 0.2s ease-out;
}

.footer-list--dense a { font-size: 0.84rem; }

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--c-cyan);
  border-bottom-color: rgba(23, 224, 210, 0.5);
}

.footer-list__num {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  color: var(--c-cyan);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-style: normal;
  font-size: 0.86rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.footer-contact__value {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--c-cream);
}

.footer-meta {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--c-clay);
}

.footer-meta--dim {
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 0.79rem;
  letter-spacing: 0;
  line-height: 1.65;
  color: var(--c-rock);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 20px 0 34px;
  border-top: 1px solid var(--line-soft);
}

.footer-legal__copy {
  font-size: 0.78rem;
  color: var(--c-rock);
  font-variant-numeric: tabular-nums;
}

.footer-legal__list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.footer-legal__list a {
  font-size: 0.79rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease-out;
}

.footer-legal__list a:hover { color: var(--c-cyan); }

/* 回到顶部 */
.to-top {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.5rem 1rem;
  background: transparent;
  border: 1px solid var(--line-soft);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out, visibility 0.3s linear, border-color 0.22s ease-out, color 0.22s ease-out;
}

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

.to-top:hover,
.to-top:focus-visible {
  border-color: var(--c-cyan);
  color: var(--c-cyan);
}

.to-top__mark {
  display: block;
  width: 9px; height: 9px;
  border-left: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg);
}

/* ---------- 16. Reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

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

/* ---------- 17. Breakpoints ---------- */
@media (max-width: 1023px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 639px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; align-items: stretch; }
  .to-top { align-self: flex-start; }
  .stat { padding: 15px; }
}

/* ---------- 18. Motion preference ---------- */
@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;
  }

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

  .btn:hover, .btn:focus-visible,
  .card:hover,
  .column-chip:hover, .column-chip:focus-visible,
  .panel:hover { transform: none; }

  .to-top { transform: none; }
}
