/* ==========================================================================
   天行体育赛事 — 共享 Site Kit
   /assets/site.css
   负责：reset / CSS 变量 / 中文排版 / 刊头与页脚 / 通用按钮与组件
   ========================================================================== */

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

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

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--night);
  background-image:
    radial-gradient(68% 42% at 86% -6%, rgba(63, 240, 228, 0.12), transparent 62%),
    radial-gradient(52% 36% at 2% 4%, rgba(255, 138, 60, 0.08), transparent 64%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan-mist); }

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }

button { font: inherit; color: inherit; }

hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

::selection { background: var(--cyan); color: #03181a; }

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

/* ---------- 2. 变量 ---------- */
:root {
  --night: #050912;
  --panel: #0c1730;
  --panel-lift: #14244c;
  --line: #2b3f6e;
  --cyan: #3ff0e4;
  --cyan-mist: #a9fbf5;
  --orange: #ff8a3c;
  --amber: #ffc978;
  --teal: #082b33;
  --text: #e9f1ff;
  --muted: #9db1d2;
  --on-accent: #1b0c02;
  --on-cyan: #03181a;

  --radius-card: 24px;
  --radius-panel: 28px;
  --radius-pill: 999px;

  --shell: 1240px;
  --gutter: 20px;

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

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-soft: 0 18px 48px -28px rgba(0, 0, 0, 0.9);
}

@media (min-width: 720px) { :root { --gutter: 32px; } }
@media (min-width: 1100px) { :root { --gutter: 40px; } }

/* ---------- 3. 通用容器与排版 ---------- */
.wrap {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(48px, 7vw, 108px); }

.display-1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.25rem, 7vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.display-2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.display-3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.125rem, 1.6vw, 1.5rem);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.lede {
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  line-height: 1.75;
  color: var(--muted);
  max-width: 34em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

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

.prose { max-width: 38em; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.375rem, 2.6vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 2.1em;
}
.prose h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  color: var(--text);
  margin-top: 1.7em;
}
.prose p { color: var(--muted); }
.prose strong { color: var(--text); font-weight: 700; }
.prose a { border-bottom: 1px solid rgba(63, 240, 228, 0.4); }
.prose a:hover { border-bottom-color: var(--cyan); }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--teal);
  color: var(--cyan-mist);
}
.prose blockquote {
  padding: 16px 20px;
  border-radius: 18px;
  border-left: 3px solid var(--cyan);
  background: var(--teal);
  color: var(--text);
}
.prose ul { list-style: none; }
.prose ul li { position: relative; padding-left: 20px; color: var(--muted); }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 8px;
  height: 2px;
  background: var(--cyan);
}

/* ---------- 4. 网格工具 ---------- */
.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
}
.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)); }

.asym {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
}

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

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease),
    border-color 0.22s var(--ease), transform 0.22s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--accent {
  background: var(--orange);
  color: var(--on-accent);
  border-color: var(--orange);
}
.btn--accent:hover,
.btn--accent:focus-visible {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--on-accent);
}

.btn--cyan {
  background: var(--cyan);
  color: var(--on-cyan);
  border-color: var(--cyan);
}
.btn--cyan:hover,
.btn--cyan:focus-visible {
  background: var(--cyan-mist);
  border-color: var(--cyan-mist);
  color: var(--on-cyan);
}

.btn--ghost {
  background: rgba(12, 23, 48, 0.6);
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(8, 43, 51, 0.65);
}

.btn--sm {
  padding: 8px 15px;
  font-size: 13px;
}

/* ---------- 6. 胶囊标签 / 卡片 / 指标 ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  line-height: 1.6;
  white-space: nowrap;
}
.pill--cyan { border-color: rgba(63, 240, 228, 0.5); color: var(--cyan); }
.pill--orange { border-color: rgba(255, 138, 60, 0.55); color: var(--amber); }

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid rgba(43, 63, 110, 0.7);
  border-radius: var(--radius-card);
  padding: clamp(18px, 2.4vw, 28px);
  box-shadow: var(--shadow-soft);
}
.card--lift {
  background: linear-gradient(150deg, var(--panel-lift), var(--panel) 70%);
}
.card--teal {
  background: var(--teal);
  border-color: rgba(63, 240, 228, 0.26);
}

.metric { display: block; }
.metric__value {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.875rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cyan);
}
.metric__label {
  display: block;
  margin-top: 10px;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ---------- 7. 面包屑 ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before {
  content: "/";
  color: var(--line);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--cyan-mist); }

/* ---------- 8. 数据表格 ---------- */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel);
  -webkit-overflow-scrolling: touch;
}
.data-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14.5px;
}
.data-table caption {
  caption-side: top;
  padding: 16px 18px 0;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.data-table th,
.data-table td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(43, 63, 110, 0.55);
}
.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--panel-lift);
  color: var(--cyan-mist);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.data-table tbody tr:nth-child(even) { background: rgba(20, 36, 76, 0.42); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: rgba(20, 36, 76, 0.85); }
.data-table .is-numeric,
.data-table [data-numeric] {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.data-table .is-highlight { color: var(--cyan); }

/* ---------- 9. 图片容器（页面阶段放置本地素材） ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-card);
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 92% at 14% 0%, rgba(63, 240, 228, 0.18), transparent 62%),
    linear-gradient(158deg, #0c1730 0%, #050912 100%);
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--portrait { aspect-ratio: 4 / 5; }
.media-frame--cut {
  clip-path: polygon(0 0, calc(100% - 52px) 0, 100% 52px, 100% 100%, 0 100%);
  border-radius: 0 0 var(--radius-card) var(--radius-card);
}
.media-frame > img,
.media-frame > svg,
.media-frame > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame > img { filter: saturate(1.05) contrast(1.04); }
.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 20px 14px;
  background: linear-gradient(180deg, rgba(5, 9, 18, 0), rgba(5, 9, 18, 0.92));
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- 10. 刊头 ---------- */
.skip-link {
  position: absolute;
  left: 50%;
  top: -120px;
  transform: translateX(-50%);
  z-index: 120;
  padding: 10px 22px;
  border-radius: 0 0 16px 16px;
  background: var(--cyan);
  color: var(--on-cyan);
  font-size: 14px;
  font-weight: 700;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; color: var(--on-cyan); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(5, 9, 18, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(43, 63, 110, 0.7);
}

.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: calc(var(--scroll-progress, 0) * 100%);
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  transition: width 0.12s linear;
  pointer-events: none;
}

.masthead__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px 18px;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 16px var(--gutter) 12px;
  transition: padding 0.25s var(--ease);
}

.masthead__rail {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.masthead__rail--start { grid-column: 1; justify-self: start; }
.masthead__rail--end { grid-column: 3; justify-self: end; }

.masthead__brand {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
  color: var(--text);
  padding-inline: 6px;
}
.masthead__brand:hover { color: var(--cyan-mist); }

.masthead__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 3.2vw, 2.375rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  white-space: nowrap;
  background: linear-gradient(96deg, #e9f1ff 8%, #a9fbf5 52%, #3ff0e4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.masthead__note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  white-space: nowrap;
  transition: opacity 0.2s var(--ease);
}

.site-header[data-condensed] .masthead__inner { padding-top: 9px; padding-bottom: 7px; }
.site-header[data-condensed] .masthead__note { opacity: 0; pointer-events: none; }

/* 赛季选择器 */
.season-picker {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}
.season-picker__label {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-right: 2px;
}
.season-chip {
  flex: none;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}
.season-chip:hover { color: var(--cyan-mist); border-color: var(--cyan); }
.season-chip.is-active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--on-accent);
  font-weight: 700;
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: rgba(12, 23, 48, 0.75);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 16px;
  height: 11px;
}
.nav-toggle__bars span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--cyan);
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.site-header[data-open] .nav-toggle__bars span:nth-child(1) { transform: translateY(4.75px) rotate(45deg); }
.site-header[data-open] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bars span:nth-child(3) { transform: translateY(-4.75px) rotate(-45deg); }
.site-header[data-open] .nav-toggle { border-color: var(--cyan); color: var(--cyan); }

/* ---------- 11. 栏目导航 ---------- */
.site-nav {
  border-top: 1px solid rgba(43, 63, 110, 0.55);
  background: linear-gradient(180deg, rgba(12, 23, 48, 0.55), rgba(5, 9, 18, 0));
}
.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px;
  max-width: var(--shell);
  margin-inline: auto;
  padding: 8px var(--gutter) 12px;
}
.site-nav__link {
  display: inline-block;
  padding: 8px 17px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--muted);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}
.site-nav__link:hover,
.site-nav__link:focus-visible {
  color: var(--cyan-mist);
  background: rgba(20, 36, 76, 0.8);
  border-color: rgba(63, 240, 228, 0.28);
}
.site-nav__link[aria-current="page"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--on-cyan);
  font-weight: 700;
}

.nav-quick { display: none; }

/* ---------- 12. 移动端刊头与抽屉 ---------- */
@media (max-width: 900px) {
  .masthead__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand toggle"
      "tools tools";
    row-gap: 10px;
    padding-top: 13px;
    padding-bottom: 11px;
  }
  .masthead__brand {
    grid-area: brand;
    align-items: flex-start;
    text-align: left;
  }
  .masthead__rail--start { grid-area: tools; justify-self: stretch; }
  .masthead__rail--end { display: none; }
  .nav-toggle { grid-area: toggle; display: inline-flex; }

  .site-nav { display: none; border-top-color: var(--line); }
  .site-header[data-open] .site-nav { display: block; }
  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px var(--gutter) 6px;
  }
  .site-nav__link {
    display: block;
    padding: 13px 16px;
    border-radius: 16px;
    font-size: 15px;
  }
  .site-nav__link:hover,
  .site-nav__link:focus-visible { background: rgba(20, 36, 76, 0.9); }
  .nav-quick {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px var(--gutter) 20px;
  }
  .masthead__name { font-size: clamp(1.25rem, 6vw, 1.75rem); }
  .masthead__note { white-space: normal; letter-spacing: 0.1em; }
}

@media (max-width: 420px) {
  .masthead__name { font-size: 1.25rem; }
  .masthead__note { font-size: 10px; }
}

/* ---------- 13. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 132px);
  background:
    linear-gradient(180deg, rgba(8, 43, 51, 0.6) 0%, rgba(5, 9, 18, 0.98) 46%),
    var(--night);
  border-top: 1px solid var(--line);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(63, 240, 228, 0.85), transparent);
  opacity: 0.7;
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(26px, 3.4vw, 52px);
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(44px, 6vw, 78px) var(--gutter) clamp(30px, 4vw, 52px);
}

.footer__brand-link {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}
.footer__brand-link:hover { color: var(--cyan-mist); }

.footer__tagline {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.footer__note {
  margin-top: 16px;
  max-width: 30em;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

.footer__heading {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--cyan);
}
.footer__heading::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  margin-top: 10px;
  background: var(--orange);
  opacity: 0.85;
}

.footer__list li + li { margin-top: 4px; }
.footer__list a {
  display: inline-block;
  padding: 4px 0;
  font-size: 14.5px;
  color: var(--muted);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer__list a:hover {
  color: var(--cyan-mist);
  transform: translateX(3px);
}

.footer__legal {
  border-top: 1px solid rgba(43, 63, 110, 0.6);
  background: rgba(5, 9, 18, 0.6);
}
.footer__legal-inner {
  max-width: var(--shell);
  margin-inline: auto;
  padding: 22px var(--gutter) 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  justify-content: space-between;
}

.footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.footer__legal-links a {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.footer__legal-links a:hover { color: var(--cyan); }

.footer__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  font-size: 12.5px;
  color: var(--muted);
}
.footer__fact { letter-spacing: 0.04em; }
.footer__fact-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--text);
  margin-left: 4px;
}

.footer__copy {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* 回到顶部 */
.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(16px, 3vw, 34px);
  z-index: 80;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(63, 240, 228, 0.5);
  background: rgba(12, 23, 48, 0.94);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease),
    background-color 0.2s var(--ease), color 0.2s var(--ease),
    visibility 0.28s var(--ease);
}
.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.to-top:hover,
.to-top:focus-visible {
  background: var(--cyan);
  color: var(--on-cyan);
}

@media (max-width: 960px) {
  .footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer__inner { grid-template-columns: minmax(0, 1fr); }
  .footer__legal-inner { justify-content: flex-start; }
  .footer__facts { flex-direction: column; gap: 6px; }
}

/* ---------- 14. 滚动显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 0.62s var(--ease), transform 0.62s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
html:not(.js) [data-reveal] {
  opacity: 1;
  transform: none;
}

/* ---------- 15. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .to-top { transform: none; }
  .footer__list a:hover { transform: none; }
}

/* ---------- 16. 打印 ---------- */
@media print {
  .site-header,
  .to-top { display: none; }
  body { background: #fff; color: #111; }
}
