/* ============================================================
   /assets/site.css — 亚体育赛场 全站共享层
   夜间赛场数据指挥中心 / 蓝图网格 / 电光青 × 琥珀橙
   ============================================================ */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --ink: #061B16;
  --panel: #0B2B23;
  --grid: #123A31;
  --cyan: #35F2D0;
  --cyan-deep: #19B9A6;
  --amber: #FFB547;
  --lime: #E9FF66;
  --text: #E6F4EF;
  --muted: #8FB3A8;
  --alert: #FF6B6B;

  --radius: 2px;
  --shell-max: 1320px;
  --gutter: clamp(16px, 4vw, 48px);

  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, "Courier New", monospace;
  --font-display: "Arial Narrow", "Helvetica Neue", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;

  --header-h: 128px;
}

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
}

body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    linear-gradient(to right, rgba(18, 58, 49, 0.45) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(18, 58, 49, 0.45) 1px, transparent 1px);
  background-size: 96px 96px;
  background-position: -1px -1px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

a { color: var(--cyan); text-decoration: none; }

::selection { background: var(--cyan); color: #04150F; }

/* ---------- 3. 中文排版基调 ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--text);
  line-height: 1.16;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
h3 { font-size: clamp(1.125rem, 1.6vw, 1.375rem); font-weight: 500; letter-spacing: -0.01em; }

p { max-width: 68ch; color: var(--text); }
p + p { margin-top: 0.85em; }

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

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

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

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

.skip-link {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  padding: 0.7rem 1.1rem;
  background: var(--cyan);
  color: #04150F;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 0 0 var(--radius) 0;
  transform: translateY(-130%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid #04150F;
  outline-offset: -5px;
}

#main-content { scroll-margin-top: 140px; outline: none; }

/* ---------- 5. 布局容器 ---------- */
.wrap {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.divider {
  height: 1px;
  border: 0;
  background: var(--grid);
  margin-block: clamp(24px, 3vw, 40px);
}

.grid {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
}

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

/* ---------- 6. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(6, 27, 22, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--grid);
  color: var(--text);
}

.header-frame {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 40px);
  padding-block: clamp(12px, 1.4vw, 18px);
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: color 0.18s ease;
}

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

.brand-glyph {
  position: relative;
  display: block;
  width: 17px;
  height: 17px;
  flex: none;
  border: 1px solid var(--cyan);
  background-image:
    linear-gradient(var(--cyan), var(--cyan)),
    linear-gradient(var(--cyan), var(--cyan));
  background-repeat: no-repeat;
  background-position: center center, center center;
  background-size: 1px 100%, 100% 1px;
  opacity: 0.92;
}

.brand-name { white-space: nowrap; }

.version-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1.5;
  letter-spacing: 0.12em;
  color: var(--amber);
  background: rgba(255, 181, 71, 0.07);
  border: 1px solid rgba(255, 181, 71, 0.45);
  border-radius: var(--radius);
  padding: 0.08rem 0.42rem;
  white-space: nowrap;
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  background: rgba(53, 242, 208, 0.04);
  color: var(--text);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.nav-toggle:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(53, 242, 208, 0.08);
}

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: currentColor;
  transition: transform 0.2s ease, top 0.2s ease, bottom 0.2s ease;
}

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

.site-header[data-open="true"] .nav-toggle-bars::before {
  top: 4px;
  transform: rotate(45deg);
}

.site-header[data-open="true"] .nav-toggle-bars::after {
  bottom: 5px;
  transform: rotate(-45deg);
}

/* 主导航 */
.primary-nav {
  display: flex;
  justify-content: flex-end;
  flex: 1 1 auto;
}

.nav-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(10px, 1.8vw, 26px);
}

.nav-list a {
  position: relative;
  display: block;
  padding: 0.35rem 0 0.4rem;
  color: var(--muted);
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.nav-list a:hover {
  color: var(--text);
  border-bottom-color: var(--cyan);
}

.nav-list a[aria-current="page"] {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.nav-list a[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: 0.24rem;
  left: -0.62rem;
  width: 4px;
  height: 4px;
  background: var(--lime);
}

/* 页头坐标导轨 */
.header-rail {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-bottom: 0.62rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.rail-coord { flex: none; opacity: 0.85; }

.rail-line {
  flex: 1 1 auto;
  height: 1px;
  min-width: 24px;
  background: linear-gradient(90deg, rgba(53, 242, 208, 0.4), rgba(18, 58, 49, 0.95));
}

.rail-link {
  flex: none;
  color: var(--cyan);
  border-bottom: 1px solid rgba(53, 242, 208, 0.35);
  padding-bottom: 1px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.rail-link:hover {
  color: var(--lime);
  border-color: var(--lime);
}

/* 阅读进度条 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: 0 50%;
  opacity: 0.85;
  pointer-events: none;
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  margin-top: clamp(48px, 8vw, 96px);
  background: var(--ink);
  border-top: 1px solid var(--grid);
  color: var(--text);
}

.footer-matrix {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(34px, 5vw, 64px);
}

.footer-col { min-width: 0; }

.footer-brand .brand { margin-bottom: 0.85rem; }

.footer-note {
  max-width: 34ch;
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 0.9rem;
}

.footer-title {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.95rem;
}

.footer-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 1.25rem;
}

.footer-list a,
.footer-nav a {
  display: inline-block;
  color: var(--muted);
  font-size: 0.875rem;
  padding-block: 0.1rem;
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.footer-list a:hover {
  color: var(--cyan);
  border-bottom-color: rgba(53, 242, 208, 0.5);
}

.footer-contact { display: grid; gap: 0.55rem; align-content: start; }

.contact-line {
  display: grid;
  grid-template-columns: 3.2em minmax(0, 1fr);
  gap: 0.5rem;
  align-items: baseline;
  max-width: none;
  font-size: 0.8125rem;
  line-height: 1.65;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  color: var(--cyan-deep);
}

.contact-value {
  color: var(--muted);
  word-break: break-word;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.6rem;
  padding-block: 1.15rem;
  border-top: 1px solid var(--grid);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.footer-copy,
.footer-icp { white-space: nowrap; }

.footer-icp { color: var(--muted); }

.legal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.35rem;
  margin-left: auto;
}

.legal-list a {
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.legal-list a:hover {
  color: var(--cyan);
  border-bottom-color: rgba(53, 242, 208, 0.5);
}

/* ---------- 8. 基础组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.7rem 1.15rem;
  border: 1px solid var(--cyan-deep);
  border-radius: var(--radius);
  background: transparent;
  color: var(--cyan);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.btn:hover {
  background: rgba(53, 242, 208, 0.1);
  border-color: var(--cyan);
  color: var(--text);
  transform: translateY(-1px);
}

.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04150F;
  font-weight: 600;
}

.btn--primary:hover {
  background: var(--cyan-deep);
  border-color: var(--cyan-deep);
  color: #04150F;
}

.btn--amber {
  border-color: rgba(255, 181, 71, 0.55);
  color: var(--amber);
}

.btn--amber:hover {
  background: rgba(255, 181, 71, 0.12);
  border-color: var(--amber);
  color: var(--amber);
}

.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  padding: clamp(16px, 2vw, 24px);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: rgba(53, 242, 208, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -18px rgba(0, 0, 0, 0.95);
}

.card:focus-within { border-color: var(--cyan); }

.panel {
  background: var(--panel);
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  padding: clamp(16px, 2vw, 28px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.7rem;
}

.eyebrow::before {
  content: "";
  width: 14px;
  height: 1px;
  background: currentColor;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.16rem 0.55rem;
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.tag--cyan {
  color: var(--cyan);
  border-color: rgba(53, 242, 208, 0.4);
  background: rgba(53, 242, 208, 0.06);
}

.tag--amber {
  color: var(--amber);
  border-color: rgba(255, 181, 71, 0.4);
  background: rgba(255, 181, 71, 0.06);
}

/* 面包屑 */
.breadcrumbs {
  margin-bottom: clamp(16px, 2.5vw, 28px);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.5rem; }

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: var(--grid);
}

.breadcrumbs a {
  color: var(--muted);
  transition: color 0.18s ease;
}

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

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

/* 数据表 */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.data-table caption {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.65rem;
}

.data-table th,
.data-table td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--grid);
  text-align: left;
  vertical-align: top;
}

.data-table thead th {
  background: var(--panel);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.data-table tbody tr { transition: background-color 0.15s ease; }
.data-table tbody tr:hover { background: rgba(53, 242, 208, 0.05); }

/* 折叠面板 */
.fold {
  border: 1px solid var(--grid);
  border-radius: var(--radius);
  background: var(--panel);
  margin-bottom: 0.5rem;
  transition: border-color 0.18s ease;
}

.fold:hover { border-color: rgba(53, 242, 208, 0.4); }

.fold summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  font-size: 0.9375rem;
  color: var(--text);
  list-style: none;
}

.fold summary::-webkit-details-marker { display: none; }

.fold summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.05rem;
  line-height: 1;
  color: var(--cyan);
}

.fold[open] summary::after { content: "−"; }

.fold summary:hover { color: var(--cyan); }

.fold-body {
  padding: 0 1rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--muted);
}

.fold-body p { color: var(--muted); }

/* 图片容器基础 */
.media-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--panel);
  border: 1px solid var(--grid);
  border-radius: var(--radius);
}

.media-box > img,
.media-box > svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.05) brightness(0.9);
}

.media-box::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(53, 242, 208, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(53, 242, 208, 0.1) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.55;
}

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

/* ---------- 9. 响应式 ---------- */
@media (max-width: 1080px) {
  .footer-matrix {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 899px) {
  html { scroll-padding-top: 120px; }

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

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: block;
    justify-content: flex-start;
    max-height: 0;
    visibility: hidden;
    overflow: hidden;
    background: #08221C;
    border-bottom: 1px solid var(--grid);
    box-shadow: 0 22px 34px -26px rgba(0, 0, 0, 0.95);
    transition: max-height 0.3s cubic-bezier(0.2, 0.7, 0.3, 1), visibility 0.3s;
  }

  .site-header[data-open="true"] .primary-nav {
    max-height: min(72vh, 520px);
    overflow-y: auto;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem var(--gutter) 1.25rem;
  }

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

  .nav-list a {
    padding: 0.9rem 0;
    font-size: 1rem;
    border-bottom: 0;
  }

  .nav-list a[aria-current="page"]::before {
    top: 50%;
    left: -0.7rem;
    transform: translateY(-50%);
  }

  .footer-list { gap: 0.4rem 1rem; }
}

@media (min-width: 900px) {
  .primary-nav { visibility: visible; max-height: none; overflow: visible; }
}

@media (max-width: 719px) {
  .header-rail { display: none; }
  .footer-matrix { padding-block: clamp(28px, 7vw, 44px); }
}

@media (max-width: 599px) {
  .footer-matrix { grid-template-columns: minmax(0, 1fr); }
  .footer-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .legal-list { margin-left: 0; width: 100%; }
  .contact-line { grid-template-columns: 3em minmax(0, 1fr); }
}

/* ---------- 10. 降低动效 ---------- */
@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;
  }

  .card:hover,
  .btn:hover { transform: none; }
}
