/* ================================================================
   冠竞体育 · 全站共享样式 /assets/site.css
   设计系统：实时数据仪表盘 / 目录地图
================================================================ */

/* ---------- 0. Reset ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background-color: var(--bg-main);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

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

ul, ol {
  list-style: none;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 180ms ease;
}

a:hover {
  color: var(--text);
}

/* ---------- 1. Variables ---------- */
:root {
  --bg-main: #0A0E17;
  --bg-panel: #0F1F2E;
  --glass: rgba(255, 255, 255, 0.06);
  --neon: #39FF14;
  --blue: #00E5FF;
  --gold: #F5C518;
  --text: #E6F0FF;
  --text-dim: #8FA3BF;
  --warn: #FF4D4F;
  --line: #1E2A3A;
  --serif: "Noto Serif SC", "Playfair Display", "Songti SC", "SimSun", serif;
  --sans: "Noto Sans SC", "Inter", "PingFang SC", "Microsoft YaHei", sans-serif;
  --maxw: 1280px;
  --header-h: 64px;
  --transition: 180ms ease;
}

/* ---------- 2. Base Typography ---------- */
::selection {
  background: rgba(57, 255, 20, 0.25);
  color: var(--text);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  text-wrap: balance;
}

p {
  margin-bottom: 1em;
}

small {
  font-size: 0.875em;
  color: var(--text-dim);
}

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

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2a3d52;
}

#main-content {
  scroll-margin-top: 96px;
}

[data-year] {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* ---------- 3. Accessibility ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.site-skip {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 250;
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: var(--neon);
  color: var(--bg-main);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
  border-radius: 2px;
  transform: translateY(-220%);
  transition: transform 180ms ease;
}

.site-skip:focus {
  transform: translateY(0);
}

/* ---------- 4. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 23, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--neon), var(--blue));
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.45);
  pointer-events: none;
  transition: width 80ms linear;
}

.header-inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 32px;
}

.header-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

/* Brand */
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand-link:hover .brand-name {
  color: var(--blue);
}

.brand-link:hover .brand-mark {
  border-color: var(--blue);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.2);
}

.brand-mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(57, 255, 20, 0.6);
  border-radius: 2px;
  background: linear-gradient(135deg, rgba(57, 255, 20, 0.15), rgba(0, 229, 255, 0.08));
  color: var(--neon);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.12);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.brand-mark::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--blue);
  border-left: 2px solid var(--blue);
  border-radius: 2px 0 0 0;
}

.brand-mark::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 12px;
  height: 12px;
  border-bottom: 2px solid var(--gold);
  border-right: 2px solid var(--gold);
  border-radius: 0 0 2px 0;
}

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

.brand-name {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  color: var(--text);
  transition: color 180ms ease;
}

.brand-tagline {
  display: block;
  margin-top: 2px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 2px;
  background: rgba(0, 229, 255, 0.05);
  color: var(--text);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.header-contact:hover {
  border-color: var(--blue);
  background: rgba(0, 229, 255, 0.1);
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.15);
}

.contact-chip {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.header-contact:hover .contact-chip {
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
}

.contact-phone {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text);
}

/* Nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  transition: border-color 180ms ease, background 180ms ease;
}

.nav-toggle:hover {
  border-color: var(--blue);
  background: rgba(0, 229, 255, 0.06);
}

.nav-toggle-line {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--blue);
  border-radius: 1px;
  transition: transform 220ms ease, opacity 180ms ease;
}

.nav-toggle--active .nav-toggle-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle--active .nav-toggle-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle--active .nav-toggle-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Navbar */
.header-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 8px 0;
}

.nav-item {
  list-style: none;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  transition: color 180ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 2px;
  background: var(--neon);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.nav-link:hover {
  color: var(--blue);
}

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

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

.nav-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-right: 4px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

.nav-meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  color: var(--neon);
  animation: pulse-dot 2s ease-in-out infinite;
}

.nav-meta-text {
  color: var(--text-dim);
}

/* ---------- 5. Footer ---------- */
.site-footer {
  position: relative;
  margin-top: 88px;
  background: var(--bg-panel);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--neon), var(--blue), var(--gold), transparent 90%);
  background-size: 250% 100%;
  animation: footer-shimmer 9s ease-in-out infinite alternate;
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 15% 120%, rgba(0, 229, 255, 0.07), transparent 45%),
    radial-gradient(circle at 90% -20%, rgba(57, 255, 20, 0.05), transparent 40%),
    repeating-linear-gradient(45deg, transparent 0 28px, rgba(255, 255, 255, 0.015) 28px 29px);
  pointer-events: none;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 56px 32px 48px;
}

.footer-brand .brand-link {
  margin-bottom: 4px;
}

.brand-link--footer .brand-mark {
  width: 36px;
  height: 36px;
  font-size: 20px;
}

.brand-link--footer .brand-name {
  font-size: 18px;
}

.footer-slogan {
  margin: 16px 0 16px;
  max-width: 26em;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-dim);
}

.footer-trust {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(57, 255, 20, 0.25);
  border-radius: 2px;
  background: rgba(57, 255, 20, 0.06);
}

.trust-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  color: var(--neon);
  animation: pulse-dot 2s ease-in-out infinite;
}

.trust-text {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text);
}

.footer-heading {
  margin-bottom: 16px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
}

.footer-link-list {
  display: grid;
  gap: 10px;
}

.footer-link-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-dim);
  transition: color 180ms ease;
}

.footer-link-list a::before {
  content: "→";
  display: inline-block;
  font-size: 12px;
  color: var(--neon);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.footer-link-list a:hover {
  color: var(--text);
}

.footer-link-list a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-contact-list {
  display: grid;
  gap: 14px;
  list-style: none;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
}

.footer-contact-label {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: rgba(10, 14, 23, 0.5);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 20px 32px;
}

.footer-copy,
.footer-icp {
  margin: 0;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

/* To top */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 2px;
  background: rgba(15, 31, 46, 0.92);
  color: var(--blue);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease, border-color 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

.to-top:hover {
  border-color: var(--neon);
  color: var(--neon);
  box-shadow: 0 0 16px rgba(57, 255, 20, 0.2);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top-arrow {
  font-size: 18px;
  line-height: 1;
}

/* ---------- 6. Common Components ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 32px;
}

.content-header {
  position: relative;
  padding: 48px 0 32px;
  margin-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.content-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 80px;
  height: 2px;
  background: var(--neon);
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.4);
}

.content-title {
  margin-bottom: 16px;
  font-size: 48px;
  line-height: 1.1;
  max-width: 18em;
}

.content-lead {
  max-width: 42em;
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-dim);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid var(--neon);
  border-radius: 2px;
  background: transparent;
  color: var(--neon);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  background: rgba(57, 255, 20, 0.1);
  color: var(--neon);
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.15);
}

.btn--solid {
  background: var(--neon);
  color: var(--bg-main);
}

.btn--solid:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--bg-main);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.25);
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 20px 0;
  font-size: 13px;
  color: var(--text-dim);
}

.breadcrumbs li + li::before {
  content: "→";
  margin-right: 6px;
  font-size: 12px;
  color: var(--text-dim);
}

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

.breadcrumbs a:hover {
  color: var(--text);
  text-decoration: underline;
}

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

/* Grid */
.grid {
  display: grid;
  gap: 24px;
}

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

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

/* Atlas sections */
.atlas-section {
  position: relative;
  padding: 48px 0;
}

.section-index {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}

.section-index::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
}

/* Legend */
.legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 16px 0;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
}

.legend-key {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--blue);
  flex-shrink: 0;
}

.legend-key--neon {
  background: var(--neon);
}

.legend-key--gold {
  background: var(--gold);
}

.legend-key--glass {
  background: rgba(255, 255, 255, 0.25);
}

.legend-label {
  letter-spacing: 0.02em;
}

/* Data chips */
.data-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  white-space: nowrap;
}

.data-chip::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}

.data-chip--neon::before {
  background: var(--neon);
}

.data-chip--gold::before {
  background: var(--gold);
}

/* Data number */
.data-number {
  font-family: var(--sans);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--neon);
}

/* ---------- 7. Responsive ---------- */
@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }
}

@media (max-width: 860px) {
  .header-navbar {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(15, 31, 46, 0.98);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  }

  .header-navbar[data-open] {
    display: flex;
    animation: nav-drop-in 220ms ease both;
  }

  .main-nav {
    flex-direction: column;
    gap: 0;
    padding: 8px 32px 16px;
  }

  .nav-link {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid rgba(30, 42, 58, 0.6);
  }

  .nav-link::after {
    display: none;
  }

  .main-nav li:last-child .nav-link {
    border-bottom: none;
  }

  .nav-meta {
    display: none;
  }

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

@media (max-width: 680px) {
  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr;
  }

  .content-title {
    font-size: 36px;
  }

  .container,
  .header-inner,
  .footer-bottom-inner,
  .footer-grid {
    padding-inline: 20px;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    padding-top: 40px;
    gap: 32px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 6px;
  }
}

@media (max-width: 400px) {
  .brand-tagline {
    display: none;
  }

  .contact-phone {
    display: none;
  }

  .header-contact {
    padding: 8px 12px;
  }
}

/* ---------- 8. Motion & Reduced Motion ---------- */
@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 8px currentColor;
  }
  50% {
    opacity: 0.35;
    box-shadow: 0 0 2px currentColor;
  }
}

@keyframes footer-shimmer {
  0% {
    background-position: 0% 0;
  }
  100% {
    background-position: 100% 0;
  }
}

@keyframes nav-drop-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
}
