/* ============================================================
   OK体育 · 共享样式 /assets/site.css
   高原夜空深蓝底 · 荧光草绿焦点 · 信号橙状态 · 双层头 + 数据页脚
   ============================================================ */

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

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

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

ul, ol { list-style: none; }

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

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

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

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

/* ---------- 2. 设计令牌 ---------- */
:root {
  --night: #0A1A2F;
  --panel: #10263F;
  --ink-black: #05101D;
  --line-blue: #2A5480;
  --glass: rgba(20, 45, 75, 0.55);
  --glass-border: rgba(184, 255, 61, 0.18);
  --lime: #B8FF3D;
  --lime-soft: #DBFF9A;
  --signal: #FF6B2C;
  --ice: #F3F7FF;
  --mist: #93A9C6;

  --radius-card: 14px;
  --radius-glass: 18px;
  --container: 1280px;
  --gutter: 24px;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC",
    "Noto Sans CJK SC", "Microsoft YaHei", system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "IBM Plex Mono", Menlo,
    Consolas, "Liberation Mono", monospace;
  --font-condensed: "PingFang SC", "Helvetica Neue", "Arial Narrow",
    "Microsoft YaHei", sans-serif;
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--night);
  background-image:
    radial-gradient(1100px 620px at 84% -14%, rgba(184, 255, 61, 0.09), transparent 62%),
    radial-gradient(820px 540px at -10% 6%, rgba(42, 84, 128, 0.40), transparent 66%),
    repeating-linear-gradient(90deg, rgba(42, 84, 128, 0.13) 0 1px, transparent 1px 120px);
  background-repeat: no-repeat, no-repeat, repeat;
  color: var(--ice);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-condensed);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.012em;
  color: var(--ice);
  text-wrap: balance;
}

h1 { font-size: clamp(32px, 4.4vw, 48px); }
h2 { font-size: clamp(24px, 2.6vw, 32px); }
h3 { font-size: 20px; }
h4 { font-size: 17px; letter-spacing: 0; }

p { max-width: 68ch; }

strong, b { font-weight: 700; color: var(--ice); }

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

/* ---------- 4. 可访问性 ---------- */
:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 200;
  transform: translateY(-220%);
  background: var(--lime);
  color: var(--night);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 10px 18px;
  border-radius: 10px;
  transition: transform 180ms ease-out;
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--ice);
  outline-offset: 2px;
}

/* ---------- 5. 版心与分区 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(16px, 3.2vw, 32px);
}

.section {
  padding-block: clamp(40px, 5.5vw, 76px);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 18px;
  margin-bottom: clamp(20px, 2.4vw, 32px);
}

.section-number {
  font-family: var(--font-mono);
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--lime);
  text-stroke: 1.5px var(--lime);
  flex: none;
}

.divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--line-blue), rgba(42, 84, 128, 0));
  margin-block: clamp(24px, 3vw, 40px);
}

/* ---------- 6. 文本层级 ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime-soft);
}

.lede {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.8;
  color: var(--mist);
  max-width: 60ch;
}

.meta {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--mist);
}

.prose {
  max-width: 68ch;
  color: var(--mist);
}

.prose > * + * { margin-top: 16px; }
.prose h2, .prose h3 { color: var(--ice); margin-top: 32px; }
.prose a {
  color: var(--lime-soft);
  border-bottom: 1px solid rgba(219, 255, 154, 0.45);
}
.prose a:hover { color: var(--lime); border-bottom-color: var(--lime); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-blue);
  color: var(--mist);
  background: rgba(5, 16, 29, 0.6);
}

.tag--live {
  color: var(--signal);
  border-color: rgba(255, 107, 44, 0.55);
  background: rgba(255, 107, 44, 0.10);
}

.tag--live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
}

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-condensed);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background-color 180ms ease-out, border-color 180ms ease-out,
    color 180ms ease-out, transform 180ms ease-out;
}

.btn--lime {
  background: var(--lime);
  color: var(--night);
}

.btn--lime:hover {
  background: var(--lime-soft);
  transform: translateY(-2px);
}

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

.btn--ghost:hover {
  border-color: var(--lime);
  color: var(--lime-soft);
  transform: translateY(-2px);
}

/* ---------- 8. 容器层：面板 / 玻璃 ---------- */
.panel {
  background: var(--panel);
  border: 1px solid rgba(42, 84, 128, 0.42);
  border-radius: var(--radius-card);
  padding: 20px;
}

.panel--interactive {
  transition: transform 180ms ease-out, border-color 180ms ease-out,
    background-color 180ms ease-out;
}

.panel--interactive:hover,
.panel--interactive:focus-within {
  transform: translateY(-2px);
  border-color: var(--lime);
  background: #122c49;
}

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 20px;
}

/* ---------- 9. 布局工具 ---------- */
.grid {
  display: grid;
  gap: var(--gutter);
}

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

.split {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: var(--gutter);
  align-items: start;
}

.split__aside {
  position: sticky;
  top: 140px;
}

/* ---------- 10. 图片容器基础规则 ---------- */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  border: 1px solid rgba(42, 84, 128, 0.55);
  background:
    linear-gradient(145deg, #0d2137 0%, #153355 58%, #0a1a2f 100%);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.media--pitch::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      transparent calc(50% - 0.5px),
      rgba(184, 255, 61, 0.22) 50%,
      transparent calc(50% + 0.5px)),
    radial-gradient(circle at 50% 50%,
      rgba(184, 255, 61, 0.16) 0 62px,
      transparent 63px);
}

.media__caption {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--mist);
  padding-top: 8px;
}

/* ---------- 11. 面包屑 ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mist);
  padding-block: 16px;
}

.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: rgba(147, 169, 198, 0.55);
}

.breadcrumb a { color: var(--mist); }
.breadcrumb a:hover { color: var(--lime-soft); }
.breadcrumb [aria-current="page"] { color: var(--ice); }

/* ============================================================
   12. 页头
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--night);
}

.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(42, 84, 128, 0.45);
  pointer-events: none;
  z-index: 3;
}

.header-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 120ms linear;
}

.header-upper {
  background: var(--glass);
  border-bottom: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.header-upper__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding-block: 10px;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__mark {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border: 2px solid var(--lime);
  border-radius: 9px;
}

.brand__mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--lime);
  opacity: 0.9;
}

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

.brand__name {
  font-family: var(--font-condensed);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: var(--ice);
}

.brand__tagline {
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: var(--mist);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand:hover .brand__name { color: var(--lime); }

/* 右上工具区 */
.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.version-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-blue);
  border-radius: 999px;
  background: rgba(5, 16, 29, 0.65);
}

.version-switch__btn {
  font-family: var(--font-condensed);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--mist);
  transition: background-color 180ms ease-out, color 180ms ease-out;
}

.version-switch__btn:hover { color: var(--lime-soft); }

.version-switch__btn.is-active {
  background: var(--lime);
  color: var(--night);
}

.version-switch__btn.is-active:hover { color: var(--night); }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line-blue);
  border-radius: 10px;
  color: var(--ice);
  transition: border-color 180ms ease-out, color 180ms ease-out;
}

.nav-toggle:hover {
  border-color: var(--lime);
  color: var(--lime-soft);
}

.nav-toggle__label {
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.10em;
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  width: 16px;
}

.nav-toggle__bars i {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--lime);
  border-radius: 2px;
}

/* 下层栏目 */
.header-lower {
  background: var(--ink-black);
  border-bottom: 1px solid rgba(42, 84, 128, 0.55);
}

.site-nav { display: block; }

.site-nav__list {
  display: flex;
  align-items: stretch;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav__list::-webkit-scrollbar { display: none; }

.site-nav__item { flex: none; }

.site-nav__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  font-family: var(--font-condensed);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.4;
  white-space: nowrap;
  color: var(--mist);
  border-bottom: 2px solid transparent;
  transition: color 180ms ease-out, border-color 180ms ease-out,
    background-color 180ms ease-out;
}

.site-nav__link:hover {
  color: var(--lime-soft);
  border-bottom-color: var(--lime-soft);
  background: rgba(184, 255, 61, 0.06);
}

.site-nav__link[aria-current="page"] {
  color: var(--lime);
  border-bottom-color: var(--lime);
  background: rgba(184, 255, 61, 0.07);
}

.site-nav__index {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(147, 169, 198, 0.72);
}

.site-nav__link[aria-current="page"] .site-nav__index { color: var(--lime); }

/* ============================================================
   13. 页脚
   ============================================================ */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--ink-black);
  border-top: 1px solid rgba(184, 255, 61, 0.24);
  color: var(--mist);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    repeating-linear-gradient(90deg, rgba(42, 84, 128, 0.22) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(42, 84, 128, 0.14) 0 1px, transparent 1px 72px);
}

.site-footer__inner {
  position: relative;
  padding-block: clamp(40px, 5vw, 64px) clamp(24px, 3vw, 32px);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(200px, 1.35fr) minmax(0, 2.5fr) minmax(210px, 1.15fr);
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
}

.footer-brand__link {
  display: inline-block;
  font-family: var(--font-condensed);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ice);
  margin-bottom: 12px;
}

.footer-brand__link:hover { color: var(--lime); }

.footer-brand__note {
  font-size: 14px;
  line-height: 1.8;
  color: var(--mist);
  max-width: 30ch;
}

.footer-brand__meta {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: rgba(147, 169, 198, 0.8);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.footer-col__title {
  display: inline-block;
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.10em;
  color: var(--lime-soft);
  margin-bottom: 12px;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease-out, border-color 180ms ease-out;
}

.footer-col__title:hover {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col__list a {
  font-size: 14px;
  line-height: 1.6;
  color: var(--mist);
  transition: color 180ms ease-out;
}

.footer-col__list a:hover { color: var(--ice); }

.footer-contact {
  border-left: 1px solid rgba(42, 84, 128, 0.45);
  padding-left: clamp(16px, 2vw, 24px);
}

.footer-contact__title {
  font-family: var(--font-condensed);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.10em;
  color: var(--lime-soft);
  margin-bottom: 12px;
}

.footer-contact__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-contact__line {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(147, 169, 198, 0.72);
}

.footer-contact__value {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ice);
  word-break: break-word;
}

.footer-contact__hours {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(147, 169, 198, 0.82);
  max-width: 34ch;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(28px, 3.4vw, 44px);
  padding-top: 18px;
  border-top: 1px solid rgba(42, 84, 128, 0.42);
}

.footer-legal__copy {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: rgba(147, 169, 198, 0.82);
  max-width: none;
}

.footer-legal__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}

.footer-legal__links a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--mist);
  border-bottom: 1px solid transparent;
  transition: color 180ms ease-out, border-color 180ms ease-out;
}

.footer-legal__links a:hover {
  color: var(--lime-soft);
  border-bottom-color: var(--lime-soft);
}

/* ============================================================
   14. 滚动显现（由 site.js 驱动）
   ============================================================ */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 420ms ease-out, transform 420ms ease-out;
  will-change: opacity, transform;
}

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

/* ============================================================
   15. 响应式
   ============================================================ */
@media (max-width: 1100px) {
  .split {
    grid-template-columns: 240px minmax(0, 1fr);
  }

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

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

  .footer-nav {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-contact {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 1px solid rgba(42, 84, 128, 0.42);
    padding-left: 0;
    padding-top: 20px;
  }

  .footer-contact__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px 32px;
  }
}

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

  .split__aside {
    position: static;
    top: auto;
  }

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

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

  .site-nav { display: none; }

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

  .site-nav__list {
    flex-direction: column;
    gap: 0;
    padding-block: 6px 14px;
    overflow-x: visible;
  }

  .site-nav__item { width: 100%; }

  .site-nav__link {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(42, 84, 128, 0.42);
    font-size: 16px;
  }

  .site-nav__link:hover,
  .site-nav__link[aria-current="page"] {
    border-bottom-color: var(--lime);
  }

  .section-head { align-items: center; }

  .brand__tagline { display: none; }
}

@media (max-width: 620px) {
  .header-upper__inner {
    min-height: 58px;
    gap: 10px;
  }

  .brand { gap: 9px; }
  .brand__mark { width: 26px; height: 26px; border-radius: 8px; }
  .brand__mark::after { inset: 7px; }
  .brand__name { font-size: 17px; }

  .header-tools { gap: 8px; }

  .version-switch__btn {
    padding: 6px 9px;
    font-size: 11px;
    letter-spacing: 0.04em;
  }

  .nav-toggle { padding: 7px 10px; }
  .nav-toggle__label { display: none; }

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

  .footer-grid { gap: 26px; }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer-contact__list { flex-direction: column; gap: 10px; }
}

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

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

  .panel--interactive:hover,
  .panel--interactive:focus-within,
  .btn:hover {
    transform: none;
  }
}
