/* ==========================================================================
   星空体育看台 · 共享样式 /assets/site.css
   0 reset · 1 变量 · 2 中文排版 · 3 头部 · 4 页脚 · 5 通用组件 · 6 响应式
   ========================================================================== */

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

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

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

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

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

a { color: inherit; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid #4DD8E6;
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 1. 变量 ---------- */
:root {
  --night: #05070D;
  --deep: #0B1324;
  --stand: #14233F;
  --horizon: #1E3355;
  --gold: #F2C14E;
  --cyan: #4DD8E6;
  --muted: #93A7C4;
  --line: #2E4260;
  --paper: #EAF1FA;
  --coral: #FF7A6B;
  --mint: #58E0B0;
  --ink: #01030A;

  --rail: 220px;
  --rail-sm: 180px;
  --panel-w: 300px;

  --font-display: 'Arial Narrow', 'Helvetica Neue Condensed', 'Noto Sans SC', system-ui, sans-serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', 'Roboto Mono', 'Menlo', monospace;

  --shadow: 8px 8px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 180ms;
  --pad-x: clamp(16px, 4vw, 56px);
}

/* ---------- 2. 中文排版与底纹 ---------- */
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background-color: var(--night);
  background-image:
    radial-gradient(circle at 14% 8%, rgba(77, 216, 230, 0.07), transparent 44%),
    radial-gradient(circle at 86% 82%, rgba(242, 193, 78, 0.055), transparent 48%);
  background-attachment: fixed;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--paper);
  text-wrap: balance;
}

p { text-wrap: pretty; }

code, kbd, samp { font-family: var(--font-mono); font-size: 0.92em; }

strong { font-weight: 700; color: var(--paper); }

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

/* ---------- 3. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background-image: linear-gradient(180deg, #070A12 0%, var(--deep) 100%);
  border-bottom: 2px solid var(--line);
  box-shadow: 0 2px 0 0 rgba(1, 3, 10, 0.9);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -72px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--gold);
  color: var(--night);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 2px;
  box-shadow: var(--shadow-sm);
  transition: top var(--dur) var(--ease);
}

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

/* 顶部状态条 */
.frame-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  padding: 5px var(--pad-x);
  background: var(--night);
  border-bottom: 2px solid var(--line);
}

.frame-status {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.status-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(88, 224, 176, 0.16);
  animation: status-pulse 2.6s var(--ease) infinite;
}

@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(88, 224, 176, 0.16); }
  50% { box-shadow: 0 0 0 6px rgba(88, 224, 176, 0.04); }
}

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

.frame-bar__cta { flex: none; }

/* 框架带 */
.rail-bar {
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr) auto;
  align-items: stretch;
  min-height: 66px;
}

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 10px 16px;
  background: var(--stand);
  border-left: 4px solid var(--gold);
  border-right: 2px solid var(--line);
  text-decoration: none;
  transition: background 120ms var(--ease), border-color 120ms var(--ease);
}

.brand__mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--paper);
}

.brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.brand:hover {
  background: var(--horizon);
  border-left-color: var(--cyan);
}

/* 栏目轨道 */
.rail-nav {
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.rail-nav__list {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail-nav__list > li {
  display: flex;
  align-items: stretch;
}

.rail-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-decoration: none;
  border-left: 4px solid transparent;
  border-right: 2px solid var(--line);
  transition: color 120ms var(--ease), background 120ms var(--ease), border-color 120ms var(--ease);
}

.rail-nav__link:hover {
  color: var(--paper);
  background: var(--stand);
  border-left-color: var(--horizon);
}

.rail-nav__link[aria-current="page"] {
  color: var(--gold);
  background: var(--stand);
  border-left-color: var(--gold);
  box-shadow: inset 0 -3px 0 0 var(--gold);
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-left: 2px solid var(--line);
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: background 120ms var(--ease), color 120ms var(--ease);
}

.nav-toggle:hover { background: var(--stand); }

.nav-toggle__bars {
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--gold);
  box-shadow: 0 -6px 0 var(--gold), 0 6px 0 var(--gold);
  transition: box-shadow 120ms var(--ease), background 120ms var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
  background: var(--cyan);
  box-shadow: 0 -6px 0 var(--cyan), 0 6px 0 var(--cyan);
}

/* 阅读进度轨 */
.scroll-progress {
  display: block;
  width: 100%;
  height: 2px;
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  background-image: linear-gradient(90deg, var(--gold), var(--cyan));
  transition: transform 120ms linear;
}

/* ---------- 4. 页脚 ---------- */
.site-footer {
  border-top: 2px solid var(--line);
  background-image: linear-gradient(180deg, var(--deep) 0%, #070B15 100%);
  color: var(--muted);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 2fr);
  gap: clamp(28px, 4vw, 56px);
  max-width: 1600px;
  margin-inline: auto;
  padding: clamp(32px, 5vw, 64px) var(--pad-x);
  border-bottom: 1px solid var(--line);
}

.footer-brand__mark {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--paper);
}

.footer-brand__sub {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold);
}

.footer-brand__note {
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.footer-contact {
  margin-top: 18px;
  padding: 12px 14px;
  background: var(--stand);
  border: 2px solid var(--line);
  border-left: 4px solid var(--cyan);
  border-radius: 3px;
}

.footer-contact__item {
  font-size: 13px;
  line-height: 1.6;
  color: var(--paper);
  overflow-wrap: anywhere;
}

.footer-contact__item + .footer-contact__item { margin-top: 8px; }

.footer-contact__label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  align-content: start;
}

.footer-col__title {
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.footer-links li + li { margin-top: 10px; }

.footer-links a {
  display: inline-block;
  padding-bottom: 2px;
  font-size: 14px;
  color: var(--paper);
  text-decoration: none;
  background-image: linear-gradient(var(--cyan), var(--cyan));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size var(--dur) var(--ease), color 120ms var(--ease);
}

.footer-links a:hover {
  color: var(--cyan);
  background-size: 100% 2px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: 1600px;
  margin-inline: auto;
  padding: 16px var(--pad-x);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.footer-legal__icp {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--gold);
}

.footer-legal__addr { color: var(--muted); }

.footer-legal__copy { color: var(--muted); }

/* ---------- 5. 通用组件 ---------- */
.container {
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

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

.section {
  padding-block: clamp(32px, 5vw, 72px);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: clamp(16px, 2.5vw, 28px);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--line);
}

.section__title {
  font-size: clamp(1.8rem, 3.6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.lede {
  max-width: 64ch;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.7;
  color: var(--paper);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 2px solid var(--line);
  border-radius: 3px;
  background: var(--stand);
  color: var(--paper);
  transition: background 120ms var(--ease), color 120ms var(--ease),
              border-color 120ms var(--ease), box-shadow 120ms var(--ease),
              transform 120ms var(--ease);
}

.btn:hover {
  background: var(--horizon);
  border-color: var(--muted);
}

.btn:active { transform: translate(2px, 2px); }

.btn--gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--night);
  box-shadow: var(--shadow-sm);
}

.btn--gold:hover {
  background: #FFD873;
  border-color: #FFD873;
  color: var(--night);
}

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

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

.btn--sm {
  padding: 6px 14px;
  font-size: 12px;
  letter-spacing: 0.06em;
  box-shadow: none;
}

.btn--gold.btn--sm { box-shadow: 3px 3px 0 var(--ink); }

/* 文本链接 */
.text-link {
  display: inline-block;
  padding-bottom: 2px;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  background-image: linear-gradient(var(--cyan), var(--cyan));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  transition: background-size var(--dur) var(--ease), color 120ms var(--ease);
}

.text-link:hover {
  color: var(--paper);
  background-image: linear-gradient(var(--paper), var(--paper));
  background-size: 100% 2px;
}

/* 面包屑 */
.breadcrumbs {
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.breadcrumbs__list > li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs__list > li + li::before {
  content: "/";
  color: var(--line);
}

.breadcrumbs__link {
  color: var(--muted);
  text-decoration: none;
  transition: color 120ms var(--ease);
}

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

/* 面板 */
.panel {
  padding: 16px;
  background: var(--stand);
  border: 2px solid var(--line);
  border-radius: 3px;
  box-shadow: var(--shadow);
}

.panel__title {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--line);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold);
}

/* 指标 */
.stat { display: block; }

.stat__value {
  display: block;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--gold);
}

.stat__value--cyan { color: var(--cyan); }

.stat__label {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: var(--night);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.tag--gold {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(242, 193, 78, 0.08);
}

.tag--cyan {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(77, 216, 230, 0.08);
}

/* 图片容器（供页面阶段放置实拍图） */
.figure {
  position: relative;
  display: block;
  overflow: hidden;
  border: 2px solid var(--line);
  border-radius: 3px;
  background-color: var(--stand);
  background-image:
    radial-gradient(circle at 28% 22%, rgba(77, 216, 230, 0.2), transparent 56%),
    radial-gradient(circle at 76% 82%, rgba(242, 193, 78, 0.16), transparent 56%),
    linear-gradient(160deg, var(--horizon), var(--night));
  box-shadow: var(--shadow);
}

.figure__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
}

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

.figure__cap {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* 网格 */
.grid {
  display: grid;
  gap: clamp(16px, 2vw, 28px);
}

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

.divider {
  height: 2px;
  border: 0;
  margin-block: clamp(24px, 4vw, 48px);
  background: var(--line);
}

/* ---------- 6. 响应式 ---------- */
@media (max-width: 1200px) {
  :root { --rail: var(--rail-sm); }

  .rail-nav__link {
    padding: 0 12px;
    font-size: 13px;
    letter-spacing: 0.03em;
  }
}

@media (max-width: 900px) {
  .rail-bar {
    position: relative;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 58px;
  }

  .brand {
    border-right: 0;
    padding: 10px 16px;
  }

  .nav-toggle { display: inline-flex; }

  .rail-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    background: var(--deep);
    border-top: 2px solid var(--line);
    border-bottom: 2px solid var(--line);
    box-shadow: var(--shadow);
    max-height: min(72vh, 560px);
    overflow-y: auto;
  }

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

  .rail-nav__list { flex-direction: column; }

  .rail-nav__list > li { width: 100%; }

  .rail-nav__link {
    width: 100%;
    padding: 15px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    border-left-width: 5px;
  }

  .rail-nav__link[aria-current="page"] {
    box-shadow: inset 4px 0 0 0 var(--gold);
  }

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

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

@media (max-width: 640px) {
  body { font-size: 15px; }

  .frame-bar {
    min-height: 28px;
    padding: 4px 12px;
    gap: 8px;
  }

  .frame-status {
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .brand__mark { font-size: 1.05rem; }

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

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    font-size: 11px;
  }

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

  .section__head { align-items: flex-start; }
}

@media (max-width: 420px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

/* 减少动态偏好 */
@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;
  }

  .status-dot { animation: none; }

  .scroll-progress { transition: none; }
}
