/* ==========================================================================
   环球体育入口 /assets/site.css
   共享外壳样式：reset · 变量 · 中文排版 · 头部 · 页脚 · 通用组件
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: #0A1A2A;
}

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

ul, ol { list-style: none; }

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

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

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

/* ---------- 2. 设计变量 ---------- */
:root {
  --ink-900: #06121E;
  --ink-800: #0A1A2A;
  --ink-700: #0F2437;
  --neon: #35F2D0;
  --neon-deep: #00C9A7;
  --orange: #FF6B2C;
  --yellow: #FFD166;
  --stone: #4C5B63;
  --moss: #5F7F5C;
  --clay: #C07A5B;
  --paper: #F4EFE6;

  --glass: rgba(255, 255, 255, 0.08);
  --glass-2: rgba(255, 255, 255, 0.14);
  --line: rgba(244, 239, 230, 0.14);
  --line-soft: rgba(244, 239, 230, 0.08);
  --text: rgba(244, 239, 230, 0.88);
  --text-dim: rgba(244, 239, 230, 0.62);

  --font-display: "Archivo Black", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "DIN Alternate", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shell: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 14px;
  --radius-lg: 22px;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --speed: 180ms;
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink-800);
  background-image:
    radial-gradient(920px 520px at 6% -8%, rgba(53, 242, 208, 0.13), transparent 62%),
    radial-gradient(780px 480px at 102% 2%, rgba(255, 107, 44, 0.13), transparent 58%),
    radial-gradient(700px 640px at 50% 118%, rgba(0, 201, 167, 0.10), transparent 62%),
    repeating-linear-gradient(180deg, rgba(244, 239, 230, 0.028) 0 1px, transparent 1px 96px);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--paper);
}

h1 { font-size: clamp(2.5rem, 7vw, 5rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.12rem, 2vw, 1.4rem); letter-spacing: -0.01em; }

p { text-wrap: pretty; }

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

/* ---------- 4. 布局容器与栅格 ---------- */
.shell {
  width: min(100% - (var(--gutter) * 2), var(--shell));
  margin-inline: auto;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
  align-items: start;
}

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

/* ---------- 5. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(6, 18, 30, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header-rail {
  background:
    linear-gradient(90deg, rgba(53, 242, 208, 0.10), rgba(255, 107, 44, 0.08) 62%, rgba(10, 26, 42, 0) 100%);
}

.header-rail__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: var(--header-h);
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  min-width: 0;
}

.brand__mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--neon), var(--neon-deep));
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 22px rgba(53, 242, 208, 0.22);
}

.brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--paper);
}

.brand__tagline {
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 40vw;
}

.header-status {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border: 1px solid rgba(53, 242, 208, 0.32);
  border-radius: 999px;
  background: var(--glass);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.header-status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 0 4px rgba(53, 242, 208, 0.16);
}

.header-status__label { color: var(--text-dim); }
.header-status__value { color: var(--neon); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--glass);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
}

.nav-toggle__bars {
  position: relative;
  width: 16px;
  height: 10px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--neon);
  transition: transform var(--speed) var(--ease);
}

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

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

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

/* ---------- 6. 主导航 ---------- */
.site-nav {
  display: none;
  border-top: 1px solid var(--line-soft);
  background: rgba(6, 18, 30, 0.4);
}

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

.site-nav__inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 0 16px;
}

.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.site-nav__link {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14.5px;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  transition: color var(--speed) var(--ease), background-color var(--speed) var(--ease);
}

.site-nav__link:hover {
  color: var(--paper);
  background: var(--glass);
}

.site-nav__link[aria-current="page"] {
  color: var(--ink-900);
  background: var(--neon);
  font-weight: 600;
}

.site-nav__cta {
  align-self: flex-start;
  margin-top: 6px;
}

/* ---------- 7. 阅读进度 ---------- */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(244, 239, 230, 0.07);
  overflow: hidden;
}

.scroll-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--neon-deep), var(--neon) 44%, var(--orange));
  transition: width 120ms linear;
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  margin-top: clamp(48px, 8vw, 96px);
  background: linear-gradient(180deg, var(--ink-800) 0%, var(--ink-900) 100%);
  border-top: 1px solid var(--line);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: clamp(36px, 6vw, 64px) 0 clamp(26px, 4vw, 40px);
}

.footer__brand { min-width: 0; }

.footer__lockup {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.01em;
  color: var(--paper);
}

.footer__note {
  margin-top: 10px;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
}

.footer__note--small {
  margin-top: 12px;
  max-width: 40ch;
  font-size: 12.5px;
  line-height: 1.65;
}

.footer__title {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
}

.footer__list {
  display: grid;
  gap: 9px;
  font-size: 14px;
  line-height: 1.6;
}

.footer__list--plain { color: var(--text-dim); }

.footer__link {
  color: var(--text-dim);
  transition: color var(--speed) var(--ease);
}

.footer__link:hover { color: var(--neon); }

.footer__key {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--text-dim);
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 28px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.footer__icp { color: var(--neon); }

/* ---------- 9. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  transition:
    background-color var(--speed) var(--ease),
    color var(--speed) var(--ease),
    border-color var(--speed) var(--ease),
    transform var(--speed) var(--ease);
}

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

.btn--accent {
  background: var(--orange);
  color: #1A0A02;
}
.btn--accent:hover { background: #FF8549; }

.btn--neon {
  background: var(--neon);
  color: var(--ink-900);
}
.btn--neon:hover { background: var(--neon-deep); }

.btn--ghost {
  border-color: rgba(53, 242, 208, 0.42);
  background: rgba(53, 242, 208, 0.07);
  color: var(--neon);
}
.btn--ghost:hover { background: rgba(53, 242, 208, 0.16); }

.btn--paper {
  background: var(--paper);
  color: var(--ink-900);
}
.btn--paper:hover { background: #FFFFFF; }

/* ---------- 10. 基础组件 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border: 1px solid rgba(53, 242, 208, 0.32);
  border-radius: 999px;
  background: rgba(53, 242, 208, 0.08);
  color: var(--neon);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
}

.panel {
  padding: clamp(16px, 2.4vw, 22px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.card {
  padding: clamp(18px, 2.6vw, 26px);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink-900);
}

.card h2,
.card h3,
.card h4 { color: var(--ink-900); }

.card a { color: var(--ink-900); text-decoration: underline; text-underline-offset: 3px; }

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--yellow);
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
}

/* ---------- 11. 目录 / 面包屑 / 章节标题 ---------- */
.toc { min-width: 0; }

.toc__title {
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
}

.toc__list {
  border-left: 1px solid var(--line);
}

.toc__link {
  display: block;
  margin-left: -1px;
  padding: 7px 0 7px 14px;
  border-left: 2px solid transparent;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-dim);
  transition: color var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.toc__link:hover { color: var(--paper); }

.toc__link.is-current {
  color: var(--neon);
  border-left-color: var(--neon);
}

.breadcrumbs {
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--stone);
}

.breadcrumbs a { color: var(--neon); }
.breadcrumbs a:hover { text-decoration: underline; }

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

.divider {
  height: 1px;
  margin: clamp(28px, 4vw, 48px) 0;
  background: linear-gradient(90deg, var(--line), rgba(244, 239, 230, 0.02));
  border: 0;
}

/* ---------- 12. 长文阅读区 ---------- */
.prose {
  max-width: 68ch;
  font-size: 17px;
  color: var(--text);
}

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

.prose h2 {
  margin-top: 1.5em;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}

.prose h3 { margin-top: 1.3em; }

.prose ul,
.prose ol {
  display: grid;
  gap: 9px;
}

.prose ul > li,
.prose ol > li {
  position: relative;
  padding-left: 20px;
}

.prose ul > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 9px;
  height: 2px;
  background: var(--neon);
}

.prose ol { counter-reset: prose-ol; }

.prose ol > li::before {
  counter-increment: prose-ol;
  content: counter(prose-ol, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--yellow);
}

/* ---------- 13. 图片容器 ---------- */
.media {
  display: block;
  width: 100%;
  min-width: 0;
}

.media__frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 12% 0%, rgba(53, 242, 208, 0.16), transparent 60%),
    radial-gradient(110% 90% at 100% 100%, rgba(255, 107, 44, 0.16), transparent 58%),
    var(--ink-900);
}

.media__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(244, 239, 230, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 230, 0.07) 1px, transparent 1px);
  background-size: 38px 38px;
}

.media__frame img,
.media__frame picture {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.media__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

/* ---------- 14. 显现动效 ---------- */
html[data-reveal-ready] [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}

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

/* ---------- 15. 焦点可见 ---------- */
:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -80px;
  z-index: 120;
  padding: 11px 18px;
  border-radius: 0 0 12px 12px;
  background: var(--neon);
  color: var(--ink-900);
  font-weight: 700;
  font-size: 14px;
  transition: top var(--speed) var(--ease);
}

.skip-link:focus { top: 0; }

/* ---------- 16. 平板 ---------- */
@media (min-width: 760px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

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

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

/* ---------- 17. 桌面 ---------- */
@media (min-width: 881px) {
  .nav-toggle { display: none; }

  .site-nav { display: block; }

  .site-nav__inner {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 0;
  }

  .site-nav__list {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
    margin-right: auto;
  }

  .site-nav__link {
    padding: 15px 14px;
    border-radius: 0;
    border-bottom: 2px solid transparent;
  }

  .site-nav__link:hover {
    background: transparent;
    color: var(--neon);
  }

  .site-nav__link[aria-current="page"] {
    background: transparent;
    color: var(--paper);
    border-bottom-color: var(--neon);
  }

  .site-nav__cta { margin: 9px 0; }
}

@media (min-width: 1024px) {
  .header-status { display: inline-flex; }

  .footer__grid {
    grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.9fr);
    gap: 34px;
  }

  .footer__brand { grid-column: auto; }
}

/* ---------- 18. 降低动效 ---------- */
@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;
    scroll-behavior: auto !important;
  }

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

  .scroll-progress__bar { transition: none; }
}
