/* =========================================================
   爱体育赛场 · 共享样式 /assets/site.css
   夜光蓝底 · 荧光绿强调 · 非对称编辑部节奏
   ========================================================= */

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

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

body,
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; }

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

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

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

/* ---------- Tokens ---------- */
:root {
  --ink-900: #0A1A2F;
  --ink-800: #0E2A3A;
  --ink-700: #1B1440;
  --ink-600: #3A0E1E;

  --neon: #39FF88;
  --flare: #FF5A2A;
  --cyan: #4DD8FF;
  --gold: #C9A24B;
  --heat: #FFD84D;

  --text: #EAF2FF;
  --text-dim: #7A8CA8;
  --line: #1E3A5C;
  --line-soft: rgba(30, 58, 92, .55);

  --shell: 1280px;
  --gutter: 20px;
  --radius: 4px;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system,
    "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", "Courier New", monospace;

  --shadow-1: 0 1px 0 rgba(234, 242, 255, .04), 0 14px 34px -20px rgba(0, 0, 0, .8);
  --rise: translateY(-2px);
}

@media (min-width: 768px) { :root { --gutter: 36px; } }
@media (min-width: 1200px) { :root { --gutter: 44px; } }

/* ---------- Base ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: clamp(15px, .22vw + 14.2px, 17px);
  line-height: 1.7;
  color: var(--text);
  background-color: var(--ink-900);
  background-image:
    radial-gradient(1100px 620px at 10% -12%, rgba(27, 20, 64, .85), transparent 62%),
    radial-gradient(920px 520px at 106% 6%, rgba(14, 42, 58, .92), transparent 60%),
    radial-gradient(700px 500px at 50% 118%, rgba(58, 14, 30, .55), transparent 68%);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: .015em;
}

h1 { font-size: clamp(38px, 6.4vw, 96px); }
h2 { font-size: clamp(28px, 3.6vw, 64px); }
h3 { font-size: clamp(21px, 2vw, 40px); }
h4 { font-size: clamp(17px, 1.2vw, 28px); }

p { max-width: 72ch; }

::selection { background: rgba(57, 255, 136, .28); color: #ffffff; }

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

#main-content { display: block; }

/* ---------- Layout helpers ---------- */
.shell {
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--shell);
  margin-inline: auto;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
}

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

.panel {
  background: linear-gradient(180deg, rgba(14, 42, 58, .72), rgba(10, 26, 47, .52));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.panel:hover {
  transform: var(--rise);
  border-color: rgba(77, 216, 255, .48);
  box-shadow: 0 1px 0 rgba(234, 242, 255, .06), 0 22px 46px -26px rgba(0, 0, 0, .9);
}

/* ---------- Media frames (页面阶段放图) ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background-color: var(--ink-800);
  background-image: repeating-linear-gradient(
    135deg,
    rgba(30, 58, 92, .45) 0 1px,
    transparent 1px 9px
  );
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 26, 47, 0) 42%, rgba(10, 26, 47, .88) 100%);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.06);
}

.media-frame--wide   { aspect-ratio: 16 / 9; }
.media-frame--band   { aspect-ratio: 21 / 9; }
.media-frame--tall   { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--free   { aspect-ratio: auto; min-height: 180px; }

/* ---------- Meter ---------- */
.meter {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(30, 58, 92, .6);
  overflow: hidden;
}

.meter-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--neon));
  box-shadow: 0 0 12px rgba(57, 255, 136, .4);
  transition: width .9s cubic-bezier(.2, .7, .3, 1);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(14, 42, 58, .7);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .16s ease, border-color .16s ease,
    background-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.btn:hover {
  transform: var(--rise);
  border-color: var(--cyan);
  color: #ffffff;
  box-shadow: 0 12px 26px -18px rgba(77, 216, 255, .8);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(57, 255, 136, .2), rgba(77, 216, 255, .14));
  border-color: rgba(57, 255, 136, .52);
  color: var(--neon);
}

.btn-primary:hover {
  background: linear-gradient(135deg, rgba(57, 255, 136, .3), rgba(77, 216, 255, .2));
  border-color: var(--neon);
  color: #ffffff;
  box-shadow: 0 14px 30px -18px rgba(57, 255, 136, .9);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text-dim);
}

.btn-ghost:hover {
  color: var(--cyan);
  border-color: rgba(77, 216, 255, .6);
}

.btn-block { width: 100%; }

/* ---------- Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 50%;
  z-index: 200;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--neon);
  color: #04160c;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translate(-50%, -180%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(10, 26, 47, .92);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.header-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  display: block;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--neon) 58%, var(--flare));
  box-shadow: 0 0 12px rgba(57, 255, 136, .55);
  transition: width .12s linear;
}

.header-shell {
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--shell);
  margin-inline: auto;
  padding: 12px 0 0;
}

.brand-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.brand-meta {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

.brand-meta::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 0 4px rgba(57, 255, 136, .16);
  animation: beacon 2.4s ease-in-out infinite;
}

@keyframes beacon {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .42; transform: scale(.78); }
}

.brand {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 8px;
  border-radius: 6px;
  text-decoration: none;
}

.brand-title {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .1em;
  color: var(--text);
}

.brand-name {
  font-style: normal;
  color: var(--neon);
  text-shadow: 0 0 24px rgba(57, 255, 136, .38);
  transition: color .16s ease;
}

.brand:hover .brand-name { color: #9dffc8; }

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

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(14, 42, 58, .78);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  transition: border-color .16s ease, color .16s ease, background-color .16s ease;
}

.nav-toggle:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(77, 216, 255, .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: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s ease, top .2s ease;
}

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

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

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

.nav-toggle-text {
  font-size: 13px;
  letter-spacing: .08em;
}

/* ---------- Primary navigation ---------- */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 0 12px;
  border-top: 1px solid var(--line);
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-group + .nav-group {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.nav-group-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: .82;
  white-space: nowrap;
}

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

.nav-link {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  transition: color .16s ease, background-color .16s ease,
    border-color .16s ease, transform .16s ease;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(77, 216, 255, .08);
  border-color: rgba(77, 216, 255, .34);
  transform: var(--rise);
}

.nav-link[aria-current="page"] {
  color: var(--neon);
  background: rgba(57, 255, 136, .1);
  border-color: rgba(57, 255, 136, .46);
  box-shadow: 0 0 0 1px rgba(57, 255, 136, .08) inset;
}

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

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 13px; }

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
}

.breadcrumb li + li::before {
  content: "/";
  font-family: var(--font-mono);
  color: var(--line);
}

.breadcrumb a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color .16s ease;
}

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

.breadcrumb [aria-current="page"] {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  margin-top: 96px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 42, 58, .62), rgba(10, 26, 47, 1) 58%);
}

.footer-edge {
  height: 2px;
  background: linear-gradient(90deg, var(--flare), var(--neon) 34%, var(--cyan) 68%, var(--ink-700));
  opacity: .85;
}

.footer-shell {
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--shell);
  margin-inline: auto;
  padding: 60px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1.25fr 1.2fr;
  gap: 44px 32px;
}

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

.footer-brand {
  display: inline-block;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 900;
  letter-spacing: .1em;
  color: var(--text);
  text-decoration: none;
  transition: color .16s ease;
}

.footer-brand::after {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  margin-top: 12px;
  border-radius: 2px;
  background: var(--neon);
  box-shadow: 0 0 14px rgba(57, 255, 136, .55);
}

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

.footer-tagline {
  margin-top: 18px;
  font-size: 15px;
  color: var(--text);
  max-width: 26ch;
}

.footer-note {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 34ch;
}

.footer-title {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.footer-list a {
  display: inline-block;
  color: var(--text-dim);
  text-decoration: none;
  transition: color .16s ease, transform .16s ease;
}

.footer-list a:hover {
  color: var(--neon);
  transform: translateX(3px);
}

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

.footer-k {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-dim);
  opacity: .75;
}

.footer-v {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  overflow-wrap: anywhere;
}

.footer-cta-text {
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-dim);
}

.footer-cta-actions {
  display: grid;
  gap: 10px;
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 22px;
  margin-top: 54px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-dim);
}

.footer-copy {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.footer-legal a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color .16s ease;
}

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

.footer-icp {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--gold);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .brand-row { grid-template-columns: auto 1fr auto; gap: 10px; }

  .brand-meta { display: none; }

  .brand {
    justify-self: start;
    align-items: flex-start;
    padding-left: 0;
  }

  .brand-sub { display: none; }

  .brand-title { font-size: 22px; letter-spacing: .08em; }

  .header-actions {
    justify-self: end;
    gap: 6px;
  }

  .header-actions .btn-ghost { display: none; }

  .header-actions .btn {
    padding: 8px 14px;
    font-size: 13px;
  }

  .nav-toggle { display: inline-flex; justify-self: end; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    margin: 0;
    padding: 16px var(--gutter) 24px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(10, 26, 47, .99), rgba(14, 42, 58, .99));
    box-shadow: 0 28px 48px -30px rgba(0, 0, 0, .92);
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }

  .site-header[data-open] .site-nav { display: flex; }

  .nav-group {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .nav-group + .nav-group {
    margin-top: 14px;
    padding-top: 14px;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .nav-group-label { padding-left: 4px; }

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

  .nav-link {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 15px;
  }

  .footer-shell { padding-top: 48px; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bar { margin-top: 40px; }
  .site-footer { margin-top: 72px; }
}

@media (max-width: 560px) {
  h1 { font-size: clamp(32px, 10vw, 46px); }
  .brand-title { font-size: 19px; }
  .header-actions .btn { padding: 7px 12px; font-size: 12px; }
  .footer-bar { flex-direction: column; align-items: flex-start; }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .media-frame img { filter: none; }
  .meter-fill { transition: none; }
}
