/* ==========================================================================
   冠竞体育 — 共享样式 /assets/site.css
   设计基调：夜间球场电子记分牌 · 墨绿夜底 + 荧光黄绿数据锚点
   ========================================================================== */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --bg: #0A1512;
  --panel: #121A17;
  --layer: #16261F;
  --accent: #C9FF33;
  --accent-soft: #E6FF9E;
  --accent-ink: #0A1512;
  --ink: #F4F7F4;
  --grey: #9BA8A2;
  --line: #3C4A44;
  --warn: #FF6B45;
  --glass: rgba(201, 255, 51, 0.06);
  --glass-line: rgba(201, 255, 51, 0.18);
  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", "Courier New", monospace;
  --shell: 1320px;
  --gutter: clamp(18px, 4vw, 48px);
  --radius: 14px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  background-color: var(--bg);
  background-image:
    linear-gradient(90deg, rgba(244, 247, 244, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 247, 244, 0.012) 1px, transparent 1px);
  background-size: 96px 100%, 24px 100%;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; 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; cursor: pointer; }

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

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

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; }

/* ---------- 3. 中文排版基线 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: clamp(24px, 3vw, 28px); }
h3 { font-size: 20px; line-height: 1.2; }
h4 { font-size: 16px; line-height: 1.3; }

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

.site-main {
  display: block;
  padding-top: clamp(100px, 11vw, 126px);
  padding-bottom: clamp(24px, 5vw, 56px);
}

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

.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-12 { grid-column: span 12; }

@media (max-width: 900px) {
  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .col-3, .col-4, .col-5, .col-6, .col-7 { grid-column: span 6; }
}

/* ---------- 5. 通用文字组件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.index-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--grey);
  font-variant-numeric: tabular-nums;
}

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, var(--line), rgba(60, 74, 68, 0));
}

.prose {
  max-width: 68ch;
  color: var(--grey);
  font-size: 16px;
  line-height: 1.7;
}
.prose > * + * { margin-top: 1em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose h2, .prose h3 { color: var(--ink); margin-top: 1.7em; }
.prose a { color: var(--accent); border-bottom: 1px solid rgba(201, 255, 51, 0.4); }
.prose a:hover { border-bottom-color: var(--accent); }

/* ---------- 6. 面包屑 ---------- */
.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: 8px; }
.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: var(--line); }
.breadcrumb a { color: var(--grey); transition: color 0.18s var(--ease); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current="page"] { color: var(--ink); }

/* ---------- 7. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-soft); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 13px; }

/* ---------- 8. 标签 / 面板 / 数据 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--grey);
}
.tag--accent {
  border-color: rgba(201, 255, 51, 0.4);
  background: rgba(201, 255, 51, 0.07);
  color: var(--accent);
}
.tag--warn {
  border-color: rgba(255, 107, 69, 0.5);
  background: rgba(255, 107, 69, 0.08);
  color: var(--warn);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 28px);
}
.panel--glass {
  background: var(--glass);
  border-color: var(--glass-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.stat { display: flex; flex-direction: column; gap: 6px; }
.stat-value {
  font-family: var(--font-mono);
  font-size: clamp(40px, 7vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}

/* ---------- 9. 图片容器（供页面阶段放图） ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--layer), var(--panel));
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}
.media-frame:empty::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(201, 255, 51, 0.055) 0 10px, transparent 10px 20px);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 21, 18, 0) 42%, rgba(10, 21, 18, 0.72));
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-caption {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--grey);
}

/* ---------- 10. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 200;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 700;
  transform: translate(-50%, -180%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- 11. 页头 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 16px var(--gutter) 0;
  pointer-events: none;
  transition: padding 0.3s var(--ease);
}
.site-header[data-shrunk] { padding-top: 8px; }

.header-inner {
  position: relative;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 26px);
  max-width: var(--shell);
  margin-inline: auto;
  padding: 9px 10px 9px 12px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(18, 26, 23, 0.84), rgba(10, 21, 18, 0.74));
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 22px 46px -30px rgba(0, 0, 0, 0.95);
  transition: padding 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header[data-shrunk] .header-inner {
  padding: 5px 8px 5px 10px;
  background: rgba(10, 21, 18, 0.94);
  border-color: rgba(201, 255, 51, 0.26);
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-height: 44px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 30px;
  padding: 0 7px;
  border-radius: 7px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.brand-sub {
  display: none;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--grey);
  white-space: nowrap;
}
@media (min-width: 1180px) { .brand-sub { display: block; } }

/* 导航 —— 移动端为下拉面板 */
.nav {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 5;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  max-height: min(72vh, 560px);
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--glass-line);
  border-radius: 22px;
  background: rgba(10, 21, 18, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 34px 70px -34px rgba(0, 0, 0, 1);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s var(--ease);
}
.nav[data-open="true"] {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.nav-list { display: grid; gap: 4px; }
.nav-link {
  display: block;
  padding: 13px 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 16px;
  color: var(--grey);
  transition: color 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.nav-link:hover { color: var(--ink); background: var(--glass); }
.nav-link[aria-current="page"] {
  color: var(--accent);
  background: rgba(201, 255, 51, 0.08);
  border-color: rgba(201, 255, 51, 0.28);
}

.nav-extra {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.nav-extra a {
  display: block;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--glass);
  font-size: 14px;
  color: var(--ink);
}
.nav-extra a:first-child {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

@media (min-width: 900px) {
  .nav {
    position: static;
    flex: 1 1 auto;
    visibility: visible;
    opacity: 1;
    transform: none;
    max-height: none;
    overflow: visible;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }
  .nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
  }
  .nav-link {
    padding: 9px 12px;
    border-radius: 999px;
    font-size: 14px;
    white-space: nowrap;
  }
  .nav-extra { display: none; }
}

@media (min-width: 900px) and (max-width: 1080px) {
  .nav-link { padding: 9px 9px; font-size: 13px; }
}

/* 头部工具 */
.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(18, 26, 23, 0.6);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.chip:hover { border-color: var(--glass-line); color: var(--ink); }
.chip-value {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(201, 255, 51, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(201, 255, 51, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 255, 51, 0); }
}

.header-cta { display: none; }
@media (min-width: 1120px) { .header-cta { display: inline-flex; } }

/* 移动菜单按钮 */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(201, 255, 51, 0.22);
  border-radius: 999px;
  background: var(--glass);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 16px;
}
.nav-toggle-bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle-bars span:nth-child(1) { width: 16px; }
.nav-toggle-bars span:nth-child(2) { width: 11px; }
.nav-toggle-bars span:nth-child(3) { width: 16px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
@media (min-width: 900px) { .nav-toggle { display: none; } }

/* 阅读进度 */
.read-progress {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(244, 247, 244, 0.08);
  pointer-events: none;
}
.read-progress-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  transition: width 0.12s linear;
}

@media (max-width: 620px) {
  .chip-fav { display: none; }
  .chip { padding: 0 11px; }
  .brand-sub { display: none; }
  .header-inner { gap: 8px; }
}

/* ---------- 12. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 120px);
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--layer);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(52%, 560px);
  height: 100%;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(201, 255, 51, 0.08), rgba(201, 255, 51, 0) 72%);
  clip-path: polygon(0 0, 100% 0, 58% 100%, 0 100%);
}

.footer-inner {
  position: relative;
  width: 100%;
  max-width: calc(var(--shell) + 2 * var(--gutter));
  margin-inline: auto;
  padding: clamp(44px, 6vw, 76px) var(--gutter) 26px;
}

.footer-grid {
  display: grid;
  gap: clamp(26px, 4vw, 52px);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1060px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }

.footer-mark {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
}
.footer-line {
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.footer-note {
  margin-top: 16px;
  max-width: 44ch;
  font-size: 14px;
  line-height: 1.75;
  color: var(--grey);
}

.footer-col-title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
}
.footer-list { display: grid; gap: 10px; }
.footer-link {
  font-size: 14px;
  color: var(--grey);
  transition: color 0.18s var(--ease), padding-left 0.18s var(--ease);
}
.footer-link:hover { color: var(--accent); padding-left: 4px; }

.footer-contact {
  display: grid;
  gap: 12px;
  margin-top: clamp(34px, 5vw, 56px);
  padding-top: clamp(24px, 3vw, 34px);
  border-top: 1px solid var(--line);
}
@media (min-width: 860px) {
  .footer-contact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 24px; }
}
.footer-contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.footer-key {
  flex: 0 0 auto;
  color: var(--grey);
  letter-spacing: 0.08em;
}
.footer-contact-note {
  grid-column: 1 / -1;
  max-width: 82ch;
  padding-left: 14px;
  border-left: 2px solid rgba(201, 255, 51, 0.35);
  font-size: 13px;
  line-height: 1.75;
  color: var(--grey);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: clamp(28px, 4vw, 40px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.footer-legal-links a { color: var(--grey); transition: color 0.18s var(--ease); }
.footer-legal-links a:hover { color: var(--accent); }
.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--grey);
}

/* ---------- 13. 滚动显现 ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: calc(var(--i, 0) * 120ms);
}
html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 14. 减动效 ---------- */
@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 !important;
    transform: none !important;
  }
  .chip-dot { animation: none; }
}
