/* ============================================================
   /assets/site.css — 南宫体育入口 共享外壳样式
   夜场墨绿底 / 网格青灰细线 / 荧光青强调 / 琥珀比分
   ============================================================ */

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; }

/* ---------- tokens ---------- */
:root {
  --ink: #0B1B16;
  --ink-2: #10261F;
  --line: #24443B;
  --mint: #A8F5E1;
  --neon: #35F0C2;
  --white: #F3EFE4;
  --amber: #FFA73B;
  --alert: #FF5C4D;
  --mist: #6E8A80;

  --edge: clamp(16px, 4vw, 56px);
  --maxw: 1400px;
  --gutter: clamp(12px, 1.6vw, 24px);
  --dock-h: 54px;
  --hdr-h: 62px;

  --f-head: "Noto Sans SC Condensed", "Oswald", "PingFang SC", "Microsoft YaHei", sans-serif;
  --f-body: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --f-serif: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --f-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 16px); }

body {
  min-height: 100%;
  padding-bottom: calc(var(--dock-h) + 10px);
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  color: var(--white);
  background-color: var(--ink);
  background-image:
    radial-gradient(900px 520px at 10% -12%, rgba(243, 239, 228, 0.075), transparent 70%),
    radial-gradient(760px 440px at 102% 6%, rgba(255, 167, 59, 0.085), transparent 72%),
    linear-gradient(to right, rgba(36, 68, 59, 0.42) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(36, 68, 59, 0.22) 1px, transparent 1px);
  background-size: auto, auto, 80px 100%, 100% 80px;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  text-rendering: optimizeLegibility;
}

main { display: block; }

::selection { background: rgba(53, 240, 194, 0.28); color: var(--white); }

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

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 700;
  letter-spacing: -0.012em;
  color: var(--white);
  line-height: 1.14;
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); }
h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
h3 { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--mint); }

p { max-width: 42ch; }
.num {
  font-family: var(--f-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -0.01em;
}

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

/* ---------- layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--edge);
}
.wrap--narrow { max-width: 62rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}
.grid > * { grid-column: 1 / -1; min-width: 0; }
@media (min-width: 760px) {
  .col-4 { grid-column: span 4; }
  .col-6 { grid-column: span 6; }
  .col-8 { grid-column: span 8; }
  .col-12 { grid-column: span 12; }
}

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.62rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--white);
  font-family: var(--f-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--solid { background: var(--neon); border-color: var(--neon); color: #06201A; }
.btn--solid:hover { background: #6BF7D4; border-color: #6BF7D4; }
.btn--ghost { border-color: var(--line); color: var(--mint); }
.btn--ghost:hover { border-color: var(--neon); color: var(--neon); background: rgba(53, 240, 194, 0.07); }
.btn--quiet { border-color: transparent; color: var(--mint); padding-inline: 0.4rem; }
.btn--quiet:hover { color: var(--neon); }

/* ---------- tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  line-height: 1.4;
  color: var(--mint);
}
.tag--neon { border-color: rgba(53, 240, 194, 0.6); color: var(--neon); }
.tag--amber { border-color: rgba(255, 167, 59, 0.6); color: var(--amber); }

/* ---------- section label ---------- */
.section-label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
}
.section-label::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
}
.section-label__num { color: var(--amber); }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: var(--edge);
  top: -100px;
  z-index: 200;
  padding: 0.6rem 1rem;
  background: var(--neon);
  color: #06201A;
  font-family: var(--f-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: 2px;
  transition: top 0.18s ease;
}
.skip-link:focus { top: 10px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(11, 27, 22, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--neon), var(--amber));
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

.header-rail {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 10px var(--edge);
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
  min-height: var(--hdr-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: 0 0 auto;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--neon);
  color: var(--neon);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--f-head);
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
}
.brand__tag {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--mint);
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.nav-toggle:hover { border-color: var(--neon); color: var(--neon); }
.nav-toggle__bars { display: grid; gap: 4px; width: 16px; }
.nav-toggle__bars i { display: block; height: 1.5px; background: currentColor; }
.nav-toggle[aria-expanded="true"] { border-color: var(--neon); color: var(--neon); }

/* nav — mobile default: collapsed panel */
.site-nav { display: none; }
.site-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 4px var(--edge) 14px;
}
.site-nav__link {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--mint);
  font-size: 1rem;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.site-nav__link:hover { color: var(--white); }
.nav-idx {
  font-family: var(--f-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--mist);
}
.site-nav__link[aria-current="page"] { color: var(--neon); border-bottom-color: var(--neon); }
.site-nav__link[aria-current="page"] .nav-idx { color: var(--amber); }

@media (max-width: 899px) {
  .site-nav[data-open] {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.5);
  }
}

.header-actions { display: none; }

@media (min-width: 720px) {
  .header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-left: auto;
    flex: 0 0 auto;
  }
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; margin-left: auto; }
  .site-nav__list {
    flex-direction: row;
    align-items: center;
    gap: clamp(4px, 1vw, 16px);
    padding: 0;
  }
  .site-nav__link {
    padding: 0.5rem 0.35rem;
    border-bottom: 2px solid transparent;
    font-size: 0.9rem;
  }
  .site-nav__link:hover { border-bottom-color: var(--line); }
  .site-nav__link[aria-current="page"] { border-bottom-color: var(--neon); }
  .header-actions { margin-left: 0.4rem; }
}

/* ---------- bottom dock ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  height: var(--dock-h);
  padding-inline: var(--edge);
  background: rgba(16, 38, 31, 0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.dock__hint {
  flex: 0 0 auto;
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: var(--mist);
  white-space: nowrap;
}
.dock__list {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.dock__list::-webkit-scrollbar { display: none; }
.dock__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.72rem;
  scroll-snap-align: center;
  white-space: nowrap;
  border-radius: 2px;
  color: var(--mint);
  font-size: 0.82rem;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.dock__link:hover { background: rgba(53, 240, 194, 0.09); color: var(--white); }
.dock__link[aria-current="page"] { background: var(--neon); color: #06201A; }
.dock__idx {
  font-family: var(--f-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: var(--mist);
}
.dock__link[aria-current="page"] .dock__idx { color: #06201A; }

@media (max-width: 760px) {
  .dock__hint { display: none; }
}

/* ---------- footer ---------- */
.site-footer {
  margin-top: clamp(48px, 8vw, 104px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(11, 27, 22, 1) 0%, #0d2019 100%);
}
.footer-grid {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(30px, 5vw, 60px) var(--edge) clamp(22px, 3vw, 36px);
  display: grid;
  gap: clamp(22px, 3vw, 40px);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1040px) {
  .footer-grid { grid-template-columns: 1.5fr 0.8fr 0.8fr 0.8fr 1.3fr; }
}
.footer-brand__name {
  font-family: var(--f-head);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--white);
}
.footer-brand__tag {
  margin-top: 0.3rem;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--neon);
}
.footer-brand__note {
  margin-top: 0.9rem;
  max-width: 34ch;
  font-family: var(--f-serif);
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--mint);
}
.footer-col__title {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}
.footer-col__list { margin-top: 0.85rem; display: grid; gap: 0.5rem; }
.footer-link {
  color: var(--mint);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}
.footer-link:hover { color: var(--neon); padding-left: 4px; }
.footer-contact { display: grid; gap: 0.5rem; }
.footer-contact__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: none;
  font-size: 0.86rem;
  color: var(--white);
}
.footer-contact__key {
  flex: 0 0 auto;
  min-width: 3.2em;
  font-family: var(--f-mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  color: var(--mist);
  align-self: center;
}
.footer-note {
  max-width: 34ch;
  margin-top: 0.3rem;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--mist);
}
.footer-base {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 0.9rem var(--edge) 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  justify-content: space-between;
}
.footer-base__copy,
.footer-base__legal {
  max-width: none;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--mist);
}

/* ---------- breadcrumbs ---------- */
.breadcrumbs {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding: 16px var(--edge) 0;
}
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--mist);
}
.breadcrumbs__item { display: inline-flex; align-items: center; gap: 0.4rem; }
.breadcrumbs__item + .breadcrumbs__item::before { content: "/"; color: var(--line); }
.breadcrumbs__link { color: var(--mint); text-decoration: none; }
.breadcrumbs__link:hover { color: var(--neon); }

/* ---------- page head ---------- */
.page-head {
  padding: clamp(26px, 5vw, 68px) 0 clamp(18px, 3vw, 34px);
  border-bottom: 1px solid var(--line);
}
.page-head__eyebrow {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
}
.page-head__title { margin: 0.4em 0 0.28em; }
.page-head__lede {
  max-width: 44ch;
  font-family: var(--f-serif);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  line-height: 1.78;
  color: var(--mint);
}

/* ---------- prose ---------- */
.lede {
  max-width: 40ch;
  font-family: var(--f-serif);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.78;
  color: var(--mint);
}
.prose {
  max-width: 38rem;
  font-size: 1rem;
  line-height: 1.85;
  color: #DCE9E2;
}
.prose h2 { margin: 2.2em 0 0.55em; }
.prose h3 { margin: 1.8em 0 0.5em; }
.prose p { max-width: none; margin: 0 0 1.1em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.25em; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li { margin: 0.4em 0; }
.prose li::marker { color: var(--neon); }
.prose a { color: var(--neon); text-underline-offset: 3px; }
.prose a:hover { color: var(--white); }
.prose strong { color: var(--white); font-weight: 600; }
.prose blockquote {
  margin: 1.6em 0;
  padding-left: 1.1rem;
  border-left: 2px solid var(--amber);
  font-family: var(--f-serif);
  color: var(--mint);
}

/* ---------- media ---------- */
.media { margin: 0; }
.media__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  background-color: #08130F;
  background-image:
    radial-gradient(120% 90% at 12% 0%, rgba(243, 239, 228, 0.09), transparent 62%),
    radial-gradient(90% 80% at 100% 100%, rgba(255, 167, 59, 0.12), transparent 66%),
    repeating-linear-gradient(to right, rgba(36, 68, 59, 0.55) 1px, transparent 1px),
    repeating-linear-gradient(to bottom, rgba(36, 68, 59, 0.35) 1px, transparent 1px);
  background-size: auto, auto, 40px 100%, 100% 40px;
}
.media__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 46%, rgba(11, 27, 22, 0.72));
}
.media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media__cap {
  margin-top: 0.62rem;
  max-width: none;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--mist);
}
.media--wide .media__frame { aspect-ratio: 16 / 9; }
.media--tall .media__frame { aspect-ratio: 3 / 4; }
@media (max-width: 560px) {
  .media--tall .media__frame { aspect-ratio: 4 / 5; }
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.55s ease, transform 0.55s ease;
    transition-delay: var(--reveal-delay, 0ms);
  }
  [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}

@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;
  }
  .btn:hover { transform: none; }
  .footer-link:hover { padding-left: 0; }
}
