/* ============================================================
   乐动赛场 · 共享样式  /assets/site.css
   深空蓝基底 + 活力橙强调 + 薄荷绿数据色
   ============================================================ */

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

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

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

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

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

button { font: inherit; color: inherit; }

a { color: inherit; }

/* ---------- tokens ---------- */
:root {
  --ink-950: #050E1C;
  --ink-900: #071427;
  --ink-800: #0B1E3A;
  --ink-700: #12305C;
  --orange: #FF6B1A;
  --orange-soft: #FF9A57;
  --mint: #00C9A7;
  --mint-soft: #7BE0D0;
  --warn: #FFC24B;
  --text: #E8EDF5;
  --muted: #9BABC4;
  --glass: rgba(18, 48, 92, 0.52);
  --line: rgba(155, 171, 196, 0.18);
  --line-strong: rgba(155, 171, 196, 0.32);
  --line-orange: rgba(255, 107, 26, 0.46);

  --header-h: 72px;
  --index-w: 232px;
  --maxw: 1440px;

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

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

/* ---------- base ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--ink-900);
  background-image:
    radial-gradient(1000px 560px at 82% -10%, rgba(255, 107, 26, 0.18), transparent 60%),
    radial-gradient(760px 460px at 4% 6%, rgba(0, 201, 167, 0.10), transparent 58%),
    linear-gradient(180deg, #0B1E3A 0%, #071427 60%, #050E1C 100%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

p { line-height: 1.75; }

strong { font-weight: 700; }

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

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

#main-content {
  scroll-margin-top: 96px;
}

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

/* ---------- layout containers ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.prose {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.75;
}

.prose > * + * { margin-top: 1em; }

.prose h2 {
  margin-top: 2.2em;
  font-size: 28px;
  line-height: 1.2;
}

.prose h3 {
  margin-top: 1.8em;
  font-size: 20px;
  font-weight: 900;
}

.prose ul,
.prose ol {
  padding-left: 1.15em;
  list-style: disc;
}

.prose li + li { margin-top: 0.4em; }

/* ---------- grid ---------- */
.grid {
  display: grid;
  gap: 24px;
}

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

.grid--12 > * { grid-column: span 6; }

.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; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms var(--ease), color 160ms var(--ease),
    border-color 160ms var(--ease), transform 160ms var(--ease);
}

.btn--primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink-900);
}

.btn--primary:hover {
  background: var(--orange-soft);
  border-color: var(--orange-soft);
}

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

.btn--ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* ---------- breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.breadcrumb li + li::before {
  content: "/";
  color: rgba(155, 171, 196, 0.45);
}

.breadcrumb a {
  text-decoration: none;
  color: inherit;
  transition: color 140ms var(--ease);
}

.breadcrumb a:hover { color: var(--orange); }

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

/* ---------- section head ---------- */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px 18px;
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.section-head__index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--orange);
}

.section-head__title {
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 900;
}

.section-head__note {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* ---------- panels ---------- */
.panel {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--ink-800);
}

.panel--glass {
  background: var(--glass);
  border-color: rgba(155, 171, 196, 0.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.panel__label {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  background: rgba(18, 48, 92, 0.44);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.tag--accent {
  border-color: var(--line-orange);
  background: rgba(255, 107, 26, 0.12);
  color: var(--orange);
}

.tag--mint {
  border-color: rgba(0, 201, 167, 0.44);
  background: rgba(0, 201, 167, 0.10);
  color: var(--mint);
}

.tag--warn {
  border-color: rgba(255, 194, 75, 0.44);
  background: rgba(255, 194, 75, 0.10);
  color: var(--warn);
}

/* ---------- metric ---------- */
.metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.metric__value {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--text);
}

.metric__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.metric--accent .metric__value { color: var(--orange); }

/* ---------- tables ---------- */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
}

.data-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(18, 48, 92, 0.42);
}

.data-table tbody tr:hover { background: rgba(18, 48, 92, 0.34); }

.data-table td[data-num],
.data-table .num {
  font-family: var(--font-mono);
  color: var(--mint-soft);
}

/* ---------- figures (image containers, page stage fills <img>) ---------- */
.figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  background:
    linear-gradient(140deg, rgba(18, 48, 92, 0.92), rgba(7, 20, 39, 0.96));
}

.figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(115deg,
      rgba(155, 171, 196, 0.07) 0 1px,
      transparent 1px 16px);
}

.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: contrast(1.06) saturate(0.94);
}

.figure--portrait { aspect-ratio: 3 / 4; }
.figure--landscape { aspect-ratio: 16 / 9; }
.figure--wide { aspect-ratio: 21 / 9; }
.figure--square { aspect-ratio: 1 / 1; }

.figure__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 22px 14px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text);
  background: linear-gradient(0deg, rgba(7, 20, 39, 0.94), rgba(7, 20, 39, 0));
}

.figure__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

/* ---------- reveal ---------- */
[data-reveal].reveal-ready {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 340ms var(--ease), transform 340ms var(--ease);
}

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

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(7, 20, 39, 0.78), rgba(7, 20, 39, 0));
  transition: background-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.site-header.is-stuck {
  background: rgba(7, 20, 39, 0.95);
  box-shadow:
    0 1px 0 rgba(155, 171, 196, 0.16),
    0 22px 46px -34px rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 2px;
  background: var(--orange);
  color: var(--ink-900);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 160ms var(--ease);
}

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

.header-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: var(--maxw);
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 14px 28px;
  transition: padding 200ms var(--ease);
}

.site-header.is-stuck .header-bar {
  padding-top: 8px;
  padding-bottom: 8px;
}

/* brand */
.brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-orange);
  background:
    linear-gradient(140deg, rgba(255, 107, 26, 0.24), rgba(0, 201, 167, 0.16));
  color: var(--orange);
  font-size: 16px;
  font-weight: 900;
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-name {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

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

.nav-list a {
  position: relative;
  display: block;
  padding: 10px 12px;
  border-radius: 2px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: color 140ms var(--ease);
}

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

.nav-list a:hover { color: var(--text); }

.nav-list a:hover::after { transform: scaleX(1); }

.nav-list a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
}

.nav-list a[aria-current="page"]::after { transform: scaleX(1); }

.nav-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.season-switch {
  display: flex;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.season-btn {
  appearance: none;
  padding: 6px 9px;
  border: 0;
  background: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background-color 140ms var(--ease), color 140ms var(--ease);
}

.season-btn + .season-btn {
  border-left: 1px solid var(--line);
}

.season-btn:hover { color: var(--text); }

.season-btn.is-active {
  background: var(--orange);
  color: var(--ink-900);
  font-weight: 700;
}

.search-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 250px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: border-color 140ms var(--ease), color 140ms var(--ease);
}

.search-entry:hover {
  border-color: var(--line-orange);
  color: var(--text);
}

.search-entry-key {
  flex: 0 0 auto;
  padding: 1px 7px;
  border: 1px solid var(--line-orange);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--orange);
}

.search-entry-text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* toggle */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 120;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: border-color 140ms var(--ease);
}

.nav-toggle:hover { border-color: var(--line-orange); }

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 2px;
  background: var(--orange);
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--text);
  transition: transform 180ms var(--ease), top 180ms var(--ease);
}

.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

/* progress rail */
.progress-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(155, 171, 196, 0.12);
}

.progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--orange-soft));
  transition: width 120ms linear;
}

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

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: 80px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(11, 30, 58, 0.6) 0%, var(--ink-900) 46%, var(--ink-950) 100%);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  opacity: 0.6;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(320px, 1.5fr) minmax(260px, 1fr);
  gap: 44px 48px;
  align-items: start;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 28px 44px;
}

.footer-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}

.footer-title {
  margin-top: 10px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.footer-desc {
  margin-top: 12px;
  max-width: 34ch;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-lead .btn {
  margin-top: 22px;
}

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

.footer-heading {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.footer-links a {
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 140ms var(--ease), border-color 140ms var(--ease);
}

.footer-links a:hover {
  color: var(--orange);
  border-bottom-color: var(--line-orange);
}

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

.contact-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
}

.contact-item dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.contact-item dd {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  word-break: break-word;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 28px 36px;
  border-top: 1px solid var(--line);
}

.footer-record,
.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.footer-note {
  flex: 1 1 320px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1240px) {
  .search-entry {
    min-width: 0;
    padding: 8px 10px;
  }

  .search-entry-text { display: none; }
}

@media (max-width: 1080px) {
  .header-bar { gap: 14px; padding: 12px 20px; }

  .site-nav { gap: 14px; }

  .nav-list a { padding: 10px 9px; font-size: 13px; }

  .nav-list a::after { left: 9px; right: 9px; }

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

  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .span-3, .span-4, .span-5 { grid-column: span 3; }
  .span-6, .span-7, .span-8, .span-9, .span-12 { grid-column: span 6; }
}

@media (max-width: 900px) {
  .header-bar { padding: 10px 18px; gap: 12px; }

  .nav-toggle { display: inline-flex; margin-left: auto; }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 90;
    width: min(400px, 88vw);
    margin: 0;
    padding: 92px 22px 36px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 20px;
    overflow-y: auto;
    background: rgba(7, 20, 39, 0.97);
    border-left: 1px solid var(--line);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transform: translateX(102%);
    visibility: hidden;
    transition: transform 240ms var(--ease), visibility 240ms var(--ease);
  }

  .site-nav[data-open] {
    transform: translateX(0);
    visibility: visible;
  }

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

  .nav-list a {
    padding: 15px 2px;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
  }

  .nav-list a::after { display: none; }

  .nav-list a[aria-current="page"] { color: var(--orange); }

  .nav-meta {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .season-switch { align-self: flex-start; }

  .search-entry {
    justify-content: flex-start;
    padding: 12px;
  }

  .search-entry-text { display: inline; }

  .footer-inner { padding: 48px 20px 32px; }
}

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

  .wrap { padding: 0 18px; }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    padding: 42px 18px 28px;
  }

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

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

  .footer-base { padding: 20px 18px 32px; }

  .site-footer { margin-top: 56px; }
}

@media (max-width: 640px) {
  .grid--12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

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

  .contact-item {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

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

  .brand-sub { display: none; }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }

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

  .progress-bar { transition: none; }
}
