/* ===================================================================
   01体育 · 共享外壳样式 /assets/site.css
   夜间控制室：深墨蓝底 + 荧光青锚点 + 信号橙重点 + 浅灰绿状态
   =================================================================== */

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

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

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

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

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

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

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

table { border-collapse: collapse; width: 100%; }

/* ---------- tokens ---------- */
:root {
  --bg-abyss: #04101C;
  --bg-base: #0A1424;
  --bg-deep: #0F1E33;
  --panel: #16294A;
  --line: #1E3A5F;
  --line-strong: #2A4C77;

  --cyan: #00E5D4;
  --orange: #FF7A1A;
  --sage: #A8C4A2;

  --paper: #F2F6FA;
  --muted: #8FA3BC;

  --font-sans: "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB",
    "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", system-ui,
    -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-num: ui-monospace, "SFMono-Regular", "JetBrains Mono", "Roboto Mono",
    Menlo, Consolas, "Courier New", monospace;

  --shell: 1320px;
  --gutter: clamp(1rem, 3.2vw, 2.25rem);

  --border-w: 2px;
  --radius-pill: 999px;
  --radius-panel: 2px;

  --shadow-hard: 6px 6px 0 rgba(0, 0, 0, 0.5);
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.35);
  --glow-cyan: 0 0 0 1px rgba(0, 229, 212, 0.35), 0 0 18px rgba(0, 229, 212, 0.18);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- base ---------- */
body {
  min-height: 100vh;
  background-color: var(--bg-base);
  background-image:
    radial-gradient(1100px 560px at 8% -12%, rgba(0, 229, 212, 0.08), transparent 62%),
    radial-gradient(900px 480px at 102% -4%, rgba(255, 122, 26, 0.07), transparent 58%),
    linear-gradient(180deg, var(--bg-abyss) 0%, var(--bg-base) 34%, var(--bg-base) 100%);
  background-repeat: no-repeat;
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.005em;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: var(--paper);
}

h1 { font-size: clamp(2rem, 5.4vw, 3.6rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.05rem; }

p { max-width: 68ch; }

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

/* ---------- a11y ---------- */
:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 1px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -120px;
  z-index: 200;
  padding: 0.55rem 1rem;
  background: var(--cyan);
  color: var(--bg-abyss);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  border: var(--border-w) solid var(--bg-abyss);
  box-shadow: var(--shadow-hard);
  transition: top 0.18s var(--ease);
}

.skip-link:focus { top: 0.75rem; }

/* ---------- layout ---------- */
.container {
  width: min(var(--shell), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  margin-bottom: 1.6rem;
  border-bottom: var(--border-w) solid var(--line);
}

.eyebrow {
  display: block;
  font-family: var(--font-num);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

.lede {
  font-size: 1.02rem;
  color: var(--muted);
  max-width: 62ch;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.col-main { grid-column: span 8; min-width: 0; }
.col-aside { grid-column: span 4; min-width: 0; }

.stack > * + * { margin-top: 1rem; }

/* ---------- breadcrumb ---------- */
.breadcrumb {
  padding-top: clamp(1rem, 3vw, 1.75rem);
  font-size: 0.78rem;
  color: var(--muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.breadcrumb li { display: inline-flex; align-items: center; gap: 0.4rem; }

.breadcrumb li + li::before {
  content: "/";
  color: var(--line-strong);
  font-family: var(--font-num);
}

.breadcrumb a { transition: color 0.16s var(--ease); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--paper); font-weight: 700; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(4, 16, 28, 0.97) 0%, rgba(10, 20, 36, 0.9) 100%);
  border-bottom: var(--border-w) solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.header-shell {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-block: 0.7rem;
}

/* 品牌 */
.brand { flex: 0 0 auto; min-width: 0; }

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--cyan);
  color: var(--bg-abyss);
  border: var(--border-w) solid var(--bg-abyss);
  box-shadow: 3px 3px 0 rgba(0, 229, 212, 0.28);
  font-family: var(--font-num);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums slashed-zero;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }

.brand-name {
  font-size: 1.06rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-claim {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* 胶囊导航 */
.nav-rail {
  margin-inline: auto;
  padding: 0.26rem;
  background: rgba(15, 30, 51, 0.85);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav-link {
  position: relative;
  display: block;
  padding: 0.44rem 0.88rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.nav-link:hover {
  color: var(--paper);
  background: rgba(0, 229, 212, 0.09);
}

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

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.88rem;
  right: 0.88rem;
  bottom: 0.16rem;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 229, 212, 0.8);
}

/* 右侧工具区 */
.header-tools {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
}

.version-badge {
  font-family: var(--font-num);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums slashed-zero;
  color: var(--sage);
  padding: 0.28rem 0.5rem;
  border: 1px solid var(--line-strong);
  background: rgba(168, 196, 162, 0.09);
}

/* 移动端开关 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.72rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgba(22, 41, 74, 0.85);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
}

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

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

.nav-toggle-bars span {
  display: block;
  height: 2px;
  background: currentColor;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.58rem 1.05rem;
  border: var(--border-w) solid var(--line-strong);
  background: var(--panel);
  color: var(--paper);
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  border-radius: var(--radius-panel);
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease),
    box-shadow 0.16s var(--ease), transform 0.16s var(--ease);
}

.btn:hover {
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--bg-abyss);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.45);
}

.btn-primary:hover {
  background: #4dfff0;
  box-shadow: 4px 4px 0 rgba(0, 229, 212, 0.3);
}

.btn-ghost { background: transparent; }

.btn-sm {
  padding: 0.38rem 0.78rem;
  font-size: 0.8rem;
}

/* ---------- footer ---------- */
.site-footer {
  margin-top: clamp(3rem, 8vw, 6rem);
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-abyss) 100%);
  border-top: var(--border-w) solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.05fr 1.35fr;
  gap: clamp(1.25rem, 2.6vw, 2.4rem);
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
}

.footer-brand { min-width: 0; }

.footer-logo {
  display: inline-block;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.footer-tagline {
  margin-top: 0.6rem;
  font-size: 0.86rem;
  line-height: 1.75;
  max-width: 24ch;
  color: var(--muted);
}

.footer-note {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--muted);
  opacity: 0.85;
  max-width: 26ch;
}

.footer-col { min-width: 0; }

.footer-title {
  font-family: var(--font-num);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 0.8rem;
}

.footer-list li + li { margin-top: 0.5rem; }

.footer-link {
  font-size: 0.86rem;
  color: var(--muted);
  transition: color 0.16s var(--ease);
}

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

.footer-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.footer-tag {
  display: inline-block;
  font-size: 0.73rem;
  padding: 0.18rem 0.5rem;
  border: 1px solid var(--line);
  color: var(--muted);
  letter-spacing: 0.04em;
}

.footer-contact li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.82rem;
  line-height: 1.7;
}

.footer-key {
  flex: 0 0 auto;
  color: var(--sage);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
}

.footer-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1.5rem;
  padding-block: 0.95rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.legend-item--note { color: var(--muted); opacity: 0.8; }

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.legend-dot--live { background: var(--cyan); box-shadow: 0 0 10px rgba(0, 229, 212, 0.75); }
.legend-dot--focus { background: var(--orange); }
.legend-dot--done { background: var(--sage); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 1.1rem 1.7rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
}

.footer-copy { max-width: none; }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- panels ---------- */
.panel {
  border: var(--border-w) solid var(--line);
  background: var(--panel);
  border-radius: var(--radius-panel);
  box-shadow: var(--shadow-hard);
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.6rem 0.95rem;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-num);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.panel-body { padding: 1rem 0.95rem; }

.panel-foot {
  padding: 0.6rem 0.95rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------- numeric ---------- */
.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums slashed-zero;
  font-feature-settings: "tnum" 1, "zero" 1;
  letter-spacing: -0.01em;
}

/* ---------- status chips ---------- */
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.16rem 0.5rem;
  border: 1px solid currentColor;
  font-family: var(--font-num);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.status-chip--live { color: var(--cyan); }
.status-chip--focus { color: var(--orange); }
.status-chip--done { color: var(--sage); }

/* ---------- filter chips ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.82rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgba(22, 41, 74, 0.7);
  color: var(--muted);
  font-size: 0.82rem;
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease),
    border-color 0.16s var(--ease);
}

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

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

.filter-count {
  margin-left: auto;
  font-family: var(--font-num);
  font-size: 0.78rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums slashed-zero;
}

[data-filter-item][hidden] { display: none; }

/* ---------- anchor index ---------- */
.index-link {
  display: block;
  padding: 0.4rem 0.75rem;
  border-left: 2px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease),
    background-color 0.16s var(--ease);
}

.index-link:hover { color: var(--paper); border-left-color: var(--line-strong); }

.index-link[aria-current="true"] {
  color: var(--cyan);
  border-left-color: var(--cyan);
  background: rgba(0, 229, 212, 0.08);
  font-weight: 700;
}

/* ---------- media frames ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border: var(--border-w) solid var(--line);
  background-color: var(--bg-deep);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(30, 58, 95, 0.42) 0 12px,
    rgba(15, 30, 51, 0.42) 12px 24px
  );
  box-shadow: var(--shadow-hard);
  border-radius: var(--radius-panel);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 58, 95, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 95, 0.5) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.35;
  pointer-events: none;
}

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

.media-frame--wide { aspect-ratio: 16 / 9; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--banner { aspect-ratio: 21 / 9; }

.media-frame__label {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  z-index: 2;
  padding: 0.15rem 0.45rem;
  background: rgba(4, 16, 28, 0.85);
  border: 1px solid var(--line-strong);
  font-family: var(--font-num);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.media-caption {
  padding: 0.5rem 0.75rem;
  border-top: 1px solid var(--line);
  background: var(--bg-abyss);
  font-family: var(--font-num);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* ---------- reveal ---------- */
.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
}

.has-reveal [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  transition: opacity 0.42s var(--ease), transform 0.42s var(--ease);
}

/* ---------- scrollbar (webkit) ---------- */
.nav-list::-webkit-scrollbar { height: 4px; }
.nav-list::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: var(--radius-pill);
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-tagline,
  .footer-note { max-width: 46ch; }
}

@media (max-width: 980px) {
  .brand-claim { display: none; }

  .version-badge { display: none; }

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

  .nav-rail {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0.75rem var(--gutter) 1rem;
    border: 0;
    border-bottom: var(--border-w) solid var(--cyan);
    border-radius: 0;
    background: rgba(4, 16, 28, 0.98);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.55);
    display: none;
    max-height: 72vh;
    overflow-y: auto;
  }

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

  .nav-list {
    flex-wrap: nowrap;
    gap: 0.45rem;
    overflow-x: auto;
    padding-bottom: 0.4rem;
    -webkit-overflow-scrolling: touch;
  }

  .nav-link {
    padding: 0.5rem 0.95rem;
    border: 1px solid var(--line);
    background: rgba(22, 41, 74, 0.7);
  }

  .nav-link[aria-current="page"] {
    background: rgba(0, 229, 212, 0.14);
    border-color: var(--cyan);
  }

  .nav-link[aria-current="page"]::after { display: none; }
}

@media (max-width: 900px) {
  .col-main,
  .col-aside { grid-column: 1 / -1; }
}

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

  .footer-grid { grid-template-columns: 1fr; }

  .header-tools { gap: 0.4rem; }

  .btn-sm { padding: 0.34rem 0.65rem; font-size: 0.76rem; }

  .footer-base { justify-content: flex-start; }

  .filter-count { margin-left: 0; width: 100%; }
}

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
