/* ============================================================
   乐动体育中心 · 共享样式 /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, h6,
p, figure, blockquote, dl, dd, ul, ol {
  margin: 0;
}

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

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  cursor: pointer;
}

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

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

/* ---------- 2. 设计变量 ---------- */
:root {
  --c-deep: #0A1835;
  --c-night: #102A52;
  --c-paper: #F3EDE0;
  --c-white: #FBF9F4;
  --c-ink: #10151C;
  --c-cyan: #2CF2CE;
  --c-yellow: #FFD24A;
  --c-crimson: #8E2233;
  --c-grid: #1E355F;
  --c-gray: #6D7686;

  --line-soft: rgba(44, 242, 206, 0.16);
  --line-strong: rgba(44, 242, 206, 0.42);
  --line-ink: rgba(16, 21, 28, 0.14);

  --font-display: "Barlow Condensed", "Oswald", system-ui, -apple-system,
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
    "Noto Sans SC", sans-serif;
  --font-body: system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", "IBM Plex Mono",
    Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1200px;
  --gutter: clamp(18px, 4vw, 44px);
  --capsule: 999px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-paper);
  background-color: var(--c-deep);
  background-image:
    radial-gradient(880px 520px at 88% -12%, rgba(44, 242, 206, 0.11), transparent 62%),
    radial-gradient(620px 420px at -10% 12%, rgba(142, 34, 51, 0.16), transparent 66%),
    repeating-linear-gradient(115deg, rgba(30, 53, 95, 0.55) 0 1px, transparent 1px 64px);
  background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--c-white);
}

p { max-width: 72ch; }

strong { color: var(--c-white); }

small { font-size: 13px; }

#main-content {
  display: block;
  scroll-margin-top: 112px;
}

[id] { scroll-margin-top: 112px; }

::selection {
  background: var(--c-cyan);
  color: var(--c-deep);
}

:focus-visible {
  outline: 2px solid var(--c-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 4. 布局工具 ---------- */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(44px, 7vw, 96px); }

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

.section-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--c-yellow);
}

.section-title {
  font-size: clamp(26px, 4vw, 46px);
  font-weight: 800;
}

.chapter-num {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: clamp(12px, 1.4vw, 15px);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--c-cyan);
}

.chapter-num::after {
  content: "";
  width: clamp(40px, 9vw, 130px);
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 32px);
}

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

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--c-cyan), rgba(44, 242, 206, 0));
}

.prose { color: rgba(243, 237, 224, 0.86); }
.prose p + p { margin-top: 1em; }
.prose h3 { margin-top: 1.6em; font-size: clamp(20px, 2.4vw, 28px); }
.prose a { border-bottom: 1px solid var(--line-strong); }

/* ---------- 5. 数据标签与卡片 ---------- */
.data-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-gray);
}

.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 30px);
  background: rgba(16, 42, 82, 0.55);
  border: 1px solid var(--line-soft);
}

.card-paper {
  background: var(--c-paper);
  color: var(--c-ink);
  border-color: var(--line-ink);
}

.card-paper h2,
.card-paper h3,
.card-paper strong { color: var(--c-ink); }

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

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 92px);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.03em;
  color: var(--c-cyan);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gray);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tag-cyan { color: var(--c-cyan); }
.tag-yellow { color: var(--c-yellow); }

.tag-crimson {
  color: #FF93A4;
  border-color: rgba(142, 34, 51, 0.85);
  background: rgba(142, 34, 51, 0.26);
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn-primary {
  background: var(--c-cyan);
  color: var(--c-deep);
}

.btn-primary:hover { background: #62f8de; transform: translateY(-2px); }

.btn-ghost {
  border-color: rgba(243, 237, 224, 0.34);
  color: var(--c-paper);
}

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

.btn-yellow {
  background: var(--c-yellow);
  color: var(--c-ink);
}

.btn-yellow:hover { background: #ffdf7c; transform: translateY(-2px); }

/* ---------- 7. 面包屑 ---------- */
.breadcrumbs {
  padding-block: clamp(14px, 2vw, 22px);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--c-gray);
}

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

.breadcrumbs-list li + li::before {
  content: "／";
  color: var(--c-grid);
}

.breadcrumbs-list a {
  color: rgba(243, 237, 224, 0.8);
  border-bottom: 1px solid var(--line-soft);
}

.breadcrumbs-list a:hover { color: var(--c-cyan); }

.breadcrumbs-list [aria-current="page"] { color: var(--c-cyan); }

/* ---------- 8. 图片容器（供页面阶段放置图片） ---------- */
.figure { position: relative; margin: 0; }

.figure-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    linear-gradient(140deg, #12233F 0%, #0A1835 100%);
  border: 1px solid var(--line-soft);
}

.figure-media > img,
.figure-media > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.08) brightness(0.94);
}

.figure-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 24, 53, 0) 38%, rgba(10, 24, 53, 0.76) 100%),
    repeating-linear-gradient(0deg, rgba(44, 242, 206, 0.05) 0 1px, transparent 1px 6px);
}

.figure-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--c-gray);
}

.figure--wide .figure-media { aspect-ratio: 21 / 9; }
.figure--portrait .figure-media { aspect-ratio: 4 / 5; }
.figure--square .figure-media { aspect-ratio: 1 / 1; }

/* ---------- 9. 显现动效 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 10. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 11px 18px;
  background: var(--c-cyan);
  color: var(--c-deep);
  font-weight: 700;
  border-radius: 6px;
  transform: translateY(-220%);
  transition: transform 0.18s var(--ease);
}

.skip-link:focus { transform: none; }

/* ---------- 11. 头部悬浮胶囊 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 12px var(--gutter) 10px;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 24, 53, 0.94) 0%, rgba(10, 24, 53, 0) 100%);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 24px);
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 9px 14px 9px 10px;
  border: 1px solid var(--line-soft);
  border-radius: var(--capsule);
  background: linear-gradient(102deg, rgba(16, 42, 82, 0.95), rgba(10, 24, 53, 0.93));
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 20px 44px -26px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 4px 8px 4px 4px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--c-cyan);
  color: var(--c-deep);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

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

.brand-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--c-white);
  white-space: nowrap;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-cyan);
}

/* 导航胶囊 */
.nav-capsule {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  min-width: 0;
}

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

.nav-link {
  display: block;
  padding: 9px 14px;
  border-radius: var(--capsule);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(243, 237, 224, 0.78);
  white-space: nowrap;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-link:hover {
  color: var(--c-white);
  background: rgba(44, 242, 206, 0.12);
}

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

/* 右侧：赛季切换 + 移动按钮 */
.header-side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.season-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 4px 4px 10px;
  border: 1px solid rgba(255, 210, 74, 0.3);
  border-radius: var(--capsule);
  background: rgba(255, 210, 74, 0.07);
}

.season-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-yellow);
}

.season-btn {
  padding: 5px 10px;
  border-radius: var(--capsule);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(243, 237, 224, 0.72);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

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

.season-btn[aria-pressed="true"] {
  background: var(--c-yellow);
  color: var(--c-ink);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--capsule);
  color: var(--c-cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

.nav-toggle-bar {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.22s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

/* 阅读进度尺 */
.scroll-meter {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: rgba(44, 242, 206, 0.12);
  overflow: hidden;
}

.scroll-meter-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-yellow));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.12s linear;
}

/* ---------- 12. 页脚 ---------- */
.site-footer {
  margin-top: clamp(60px, 8vw, 120px);
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(700px 360px at 12% 0%, rgba(44, 242, 206, 0.08), transparent 62%),
    linear-gradient(180deg, rgba(10, 24, 53, 0.6) 0%, var(--c-night) 42%, #0B1B36 100%);
  color: var(--c-paper);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.3fr 1fr;
  gap: clamp(24px, 4vw, 52px);
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 76px) var(--gutter) clamp(28px, 4vw, 46px);
}

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

.footer-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--c-cyan);
  color: var(--c-deep);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}

.footer-name {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--c-white);
}

.footer-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--c-cyan);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-yellow);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-link {
  font-size: 15px;
  color: rgba(243, 237, 224, 0.78);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.footer-link:hover {
  color: var(--c-cyan);
  border-bottom-color: var(--line-strong);
}

.footer-link-strong {
  align-self: flex-start;
  padding: 9px 16px;
  border: 1px solid var(--line-strong);
  color: var(--c-cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.footer-link-strong:hover {
  background: var(--c-cyan);
  color: var(--c-deep);
  border-color: var(--c-cyan);
}

.footer-contact { gap: 12px; }

.footer-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-value {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  color: rgba(243, 237, 224, 0.9);
  word-break: break-word;
}

.footer-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--c-gray);
}

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  background: rgba(10, 24, 53, 0.55);
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 18px var(--gutter);
}

.footer-copy,
.footer-icp {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--c-gray);
}

/* ---------- 13. 返回顶部（脚本注入） ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 30px);
  bottom: clamp(14px, 3vw, 30px);
  z-index: 70;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(16, 42, 82, 0.94);
  color: var(--c-cyan);
  font-family: var(--font-mono);
  font-size: 18px;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
    visibility 0.22s var(--ease), background 0.22s var(--ease);
}

.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover { background: var(--c-cyan); color: var(--c-deep); }

/* ---------- 14. 响应式 ---------- */
@media (max-width: 1080px) {
  .nav-link { padding: 8px 10px; font-size: 13px; }
  .season-label { display: none; }
  .brand-sub { display: none; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1.2fr; }
  .footer-brand { grid-column: 1 / -1; }
}

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

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

  .nav-capsule {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: block;
    padding: 12px;
    border: 1px solid var(--line-soft);
    border-radius: 22px;
    background: linear-gradient(155deg, rgba(16, 42, 82, 0.99), rgba(10, 24, 53, 0.99));
    box-shadow: 0 26px 50px -24px rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
      visibility 0.22s var(--ease);
  }

  .nav-capsule[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

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

  .nav-link {
    padding: 13px 16px;
    border-radius: 14px;
    font-size: 16px;
  }

  .grid-2,
  .grid-3,
  .grid-asym { grid-template-columns: 1fr; }

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

@media (max-width: 620px) {
  .site-header { padding-top: 8px; }
  .header-inner { padding: 7px 10px 7px 8px; }
  .brand-name { font-size: 14px; }
  .brand-mark { width: 30px; height: 30px; font-size: 16px; }
  .nav-toggle-label { display: none; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
}

/* ---------- 15. 无障碍与动效偏好 ---------- */
@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;
  }

  .reveal { opacity: 1; transform: none; }
  .scroll-meter-fill { transition: none; }
  .btn:hover { transform: none; }
}
