/* ==========================================================================
   赢体育唯一 · 共享站点样式 /assets/site.css
   夜间球场指挥中心：深墨绿底 + 青柠/电光橙状态点 + 等宽索引 + 战术网格
   ========================================================================== */

/* ---------- 1. 变量 ---------- */
:root {
  color-scheme: dark;

  --ink: #07231C;
  --ink-2: #101715;
  --paper: #F1E9D8;
  --chalk: #F4F7F2;
  --grey: #B9C4BD;
  --lime: #C6FF3D;
  --orange: #FF6A2A;
  --red: #D8432F;
  --brown: #2A1F1A;

  --line: rgba(185, 196, 189, 0.24);
  --line-strong: rgba(185, 196, 189, 0.42);
  --lime-soft: rgba(198, 255, 61, 0.10);
  --orange-soft: rgba(255, 106, 42, 0.10);

  --font-display: "Oswald", "Barlow Condensed", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", 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", "JetBrains Mono", "Roboto Mono", ui-monospace, "Menlo", "Consolas", monospace;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 16px;
  --sp-4: 24px;
  --sp-5: 40px;
  --sp-6: 72px;
  --sp-7: 120px;

  --shell: 1240px;
  --radius: 2px;
}

/* ---------- 2. Reset 与全局基础 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

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

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

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

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

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

address { font-style: normal; }

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

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

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--ink);
  background-image: linear-gradient(180deg, rgba(198, 255, 61, 0.05) 0, rgba(7, 35, 28, 0) 460px);
  color: var(--chalk);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 轻微球场灯光扫描线颗粒 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    0deg,
    rgba(244, 247, 242, 0.05) 0 1px,
    rgba(7, 35, 28, 0) 1px 3px
  );
  opacity: 0.35;
}

main {
  display: block;
  flex: 1 0 auto;
}

/* ---------- 3. 布局容器 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

.section { padding-block: clamp(56px, 7vw, 112px); }
.section-tight { padding-block: clamp(32px, 4vw, 64px); }

.grid { display: grid; gap: clamp(20px, 3vw, 40px); }
.grid-split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-side { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: var(--line);
}

/* ---------- 4. 头部 ---------- */
.site-header {
  position: relative;
  z-index: 40;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}

.skip-link {
  position: absolute;
  top: -100%;
  left: clamp(16px, 4vw, 40px);
  z-index: 120;
  padding: 10px 18px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  transition: top 0.18s ease;
}
.skip-link:focus { top: 10px; }

/* 顶部索引条 */
.head-rail {
  border-bottom: 1px solid var(--line);
  background-image: linear-gradient(90deg, var(--lime-soft), rgba(198, 255, 61, 0) 55%);
}

.head-rail-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: 42px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.10em;
  color: var(--grey);
}

.rail-index {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--chalk);
  white-space: nowrap;
}

.rail-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(198, 255, 61, 0.18);
}

.rail-meta {
  color: var(--grey);
  letter-spacing: 0.08em;
}

.rail-slot { white-space: nowrap; }

/* 居中刊头 */
.masthead {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: clamp(22px, 3vw, 34px);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  padding-inline: 72px;
  text-align: center;
}

.brand-mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
}

.brand-mark > span {
  display: block;
  width: 3px;
  height: 7px;
  background: var(--lime);
}

.brand-mark > span:nth-child(2) {
  height: 14px;
  background: var(--orange);
}

.brand-mark > span:nth-child(3) { height: 10px; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.05;
  letter-spacing: 0.20em;
  color: var(--chalk);
  transition: color 0.2s ease;
}

.brand:hover .brand-name,
.brand:focus-visible .brand-name { color: var(--lime); }

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

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  position: absolute;
  top: 50%;
  right: clamp(16px, 4vw, 40px);
  transform: translateY(-50%);
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--grey);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  transition: color 0.2s ease, border-color 0.2s ease;
}

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

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 16px;
}

.nav-toggle-bars > span {
  display: block;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s ease;
}

.nav-toggle[aria-expanded="true"] {
  color: var(--lime);
  border-color: rgba(198, 255, 61, 0.5);
}

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

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

/* 栏目导航 */
.site-nav {
  position: relative;
  border-top: 1px solid var(--line);
  background: var(--ink);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 clamp(14px, 2vw, 22px);
  font-size: 15px;
  letter-spacing: 0.10em;
  color: var(--grey);
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: clamp(14px, 2vw, 22px);
  right: clamp(14px, 2vw, 22px);
  bottom: 0;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: 50% 50%;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] { color: var(--chalk); }

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

.nav-link[aria-current="page"] { font-weight: 600; }

/* ---------- 5. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: auto;
  background: var(--ink-2);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  pointer-events: none;
  background-image: linear-gradient(
    90deg,
    var(--lime) 0%,
    rgba(198, 255, 61, 0) 38%,
    rgba(255, 106, 42, 0) 86%,
    var(--orange) 100%
  );
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.7fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(40px, 6vw, 72px) clamp(28px, 4vw, 48px);
}

.footer-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: 0.16em;
  color: var(--chalk);
}

.footer-line {
  margin-top: var(--sp-2);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--lime);
}

.footer-note {
  margin-top: var(--sp-3);
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.8;
  color: var(--grey);
}

.footer-head {
  margin-bottom: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--grey);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer-list a {
  display: inline-block;
  font-size: 15px;
  color: var(--chalk);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.footer-contact { gap: var(--sp-3); }

.footer-contact li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-key {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(185, 196, 189, 0.72);
}

.footer-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: var(--chalk);
  overflow-wrap: anywhere;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-block: var(--sp-4);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--grey);
}

.footer-copy { line-height: 1.9; }

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.legal-links a {
  color: var(--grey);
  transition: color 0.2s ease;
}

.legal-links a:hover,
.legal-links a:focus-visible { color: var(--lime); }

/* ---------- 6. 通用组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--grey);
}

.eyebrow::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--lime);
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: 0.02em;
  color: var(--chalk);
}

.h1 { font-size: clamp(38px, 6vw, 72px); }
.h2 { font-size: clamp(28px, 4.2vw, 48px); }
.h3 { font-size: clamp(20px, 2.4vw, 28px); line-height: 1.32; }

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

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-align: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
  background: var(--lime);
  color: var(--ink);
  border-color: var(--lime);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: transparent;
  color: var(--lime);
}

.btn-ghost {
  background: transparent;
  color: var(--chalk);
  border-color: var(--line-strong);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  color: var(--lime);
  border-color: var(--lime);
}

.btn-accent {
  background: var(--orange);
  color: var(--ink-2);
  border-color: var(--orange);
}
.btn-accent:hover,
.btn-accent:focus-visible {
  background: transparent;
  color: var(--orange);
}

/* 印刷边框标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  line-height: 1.6;
  color: var(--grey);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.tag-lime {
  color: var(--lime);
  border-color: rgba(198, 255, 61, 0.5);
  background: var(--lime-soft);
}

.tag-orange {
  color: var(--orange);
  border-color: rgba(255, 106, 42, 0.5);
  background: var(--orange-soft);
}

.tag-paper {
  color: var(--brown);
  background: var(--paper);
  border-color: var(--brown);
}

/* 悬浮数据面板 */
.panel {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* 纸张叠层 */
.paper {
  position: relative;
  padding: clamp(20px, 3vw, 32px);
  background: var(--paper);
  color: var(--brown);
  border: 1px solid var(--brown);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 rgba(42, 31, 26, 0.55), 12px 12px 0 rgba(241, 233, 216, 0.12);
}

.paper a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }

/* 响应式图片容器基础规则 */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

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

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: screen;
  background-image:
    linear-gradient(rgba(198, 255, 61, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198, 255, 61, 0.14) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* 面包屑 */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--grey);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
}

.breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

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

.breadcrumb a {
  color: var(--grey);
  transition: color 0.2s ease;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible { color: var(--lime); }

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

/* ---------- 7. 滚动显现（页面阶段加 data-reveal） ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

/* ---------- 8. 响应式 ---------- */
@media (max-width: 900px) {
  .rail-meta { display: none; }
  .head-rail-inner { min-height: 38px; font-size: 11px; }

  .masthead { padding-block: 18px; }
  .brand { padding-inline: 64px; }

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

  .site-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .site-nav[data-open="true"] {
    max-height: min(72vh, 540px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav-list {
    display: block;
    padding-block: 6px 10px;
  }

  .nav-list > li + li { border-top: 1px solid var(--line); }

  .nav-link {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    min-height: 52px;
    padding: 0 24px;
    font-size: 16px;
  }

  .nav-link::after {
    left: 0;
    right: auto;
    top: 0;
    bottom: 0;
    width: 3px;
    height: auto;
    transform: scaleY(0);
    transform-origin: 50% 0;
  }

  .nav-link:hover::after,
  .nav-link[aria-current="page"]::after { transform: scaleY(1); }

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

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

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

@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand-name { letter-spacing: 0.14em; }
  .brand { padding-inline: 52px; }
  .nav-toggle { padding: 0; width: 44px; justify-content: center; }
  .nav-toggle-label { display: none; }

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

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-links { gap: var(--sp-3); }
}

/* ---------- 9. 动效偏好 ---------- */
@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.js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .site-nav { transition: none; }
}
