/* ==========================================================================
   光速体育最新版 — 全站共享样式 /assets/site.css
   深空黑 · 荧光青 · 蓝图网格 · 档案卡片
   ========================================================================== */

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

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

body,
h1, h2, h3, h4, h5, p, ul, ol, dl, dd, figure, blockquote, pre {
  margin: 0;
}

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

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

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

a { color: inherit; text-decoration: none; }

table { border-collapse: collapse; }

/* ---------- 2. Tokens ---------- */
:root {
  --void: #05080F;
  --deep: #0B1220;
  --line: #1B2A3A;
  --cyan: #39F5E1;
  --cyan-dim: #0E4D4A;
  --orange: #FF7A1A;
  --violet: #B36BFF;
  --fog: #F3F7FA;
  --steel: #8FA2B3;
  --green: #52E08A;

  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Roboto Mono", "Noto Sans Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-body: "Noto Sans SC", "Source Han Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;

  --shell: min(1200px, 92vw);
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-pill: 999px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur: 180ms;
}

/* ---------- 3. Base ---------- */
body {
  min-height: 100vh;
  background-color: var(--void);
  color: var(--fog);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: .01em;
  color: var(--fog);
}

strong, b { font-weight: 700; color: var(--fog); }

::selection {
  background: var(--cyan);
  color: var(--void);
}

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- 4. Utilities ---------- */
.container {
  width: var(--shell);
  margin-inline: auto;
}

.section {
  padding-block: clamp(52px, 7vw, 104px);
}

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

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

.grid-lines {
  position: relative;
  isolation: isolate;
}

.grid-lines::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(27, 42, 58, .5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 42, 58, .5) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 0%, transparent 78%);
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  flex: none;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  line-height: 1.15;
  color: var(--fog);
}

.prose {
  max-width: 68ch;
  color: #D7E2EA;
}

.prose > p {
  max-width: 38em;
  margin-bottom: 1.1em;
  color: #D7E2EA;
}

.prose h2,
.prose h3 {
  margin: 1.6em 0 .6em;
}

.prose h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.prose h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

.prose ul,
.prose ol {
  max-width: 38em;
  margin: 0 0 1.1em;
  padding-left: 1.1em;
  list-style: none;
}

.prose li {
  position: relative;
  padding-left: 18px;
  margin-bottom: .5em;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 7px;
  height: 1px;
  background: var(--cyan);
}

.prose a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(57, 245, 225, .35);
}

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1;
  text-align: center;
  cursor: pointer;
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.btn--solid {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04120F;
}

.btn--solid:hover {
  background: #5BFFF0;
  border-color: #5BFFF0;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px -12px rgba(57, 245, 225, .9);
}

.btn--ghost {
  background: rgba(11, 18, 32, .65);
  border-color: var(--line);
  color: var(--fog);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

.btn--outline {
  background: rgba(14, 77, 74, .42);
  border-color: rgba(57, 245, 225, .4);
  color: var(--cyan);
}

.btn--outline:hover {
  background: rgba(14, 77, 74, .82);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.btn--sm {
  min-height: 44px;
  padding: 0 18px;
  font-size: .84rem;
}

/* ---------- 6. Tags ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: rgba(27, 42, 58, .6);
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  line-height: 1.6;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}

.tag--cyan {
  color: var(--cyan);
  border-color: rgba(57, 245, 225, .35);
  background: rgba(14, 77, 74, .5);
}

.tag--orange {
  color: var(--orange);
  border-color: rgba(255, 122, 26, .38);
  background: rgba(255, 122, 26, .1);
}

.tag--violet {
  color: var(--violet);
  border-color: rgba(179, 107, 255, .38);
  background: rgba(179, 107, 255, .1);
}

.tag--green {
  color: var(--green);
  border-color: rgba(82, 224, 138, .38);
  background: rgba(82, 224, 138, .1);
}

/* ---------- 7. Breadcrumb ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  color: var(--steel);
}

.breadcrumb > li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.breadcrumb a {
  color: var(--steel);
  transition: color var(--dur) var(--ease);
}

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

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

/* ---------- 8. Figure ---------- */
.figure {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.figure__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 120% at 18% 0%, #122033 0%, #0B1220 46%, #05080F 100%);
}

.figure__frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(57, 245, 225, .18);
  border-radius: 13px;
  pointer-events: none;
}

.figure__frame > img,
.figure__frame > svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.figure--wide .figure__frame { aspect-ratio: 21 / 9; }
.figure--tall .figure__frame { aspect-ratio: 4 / 5; }

.figure__caption {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--steel);
}

/* ---------- 9. Reveal ---------- */
[data-reveal-ready] [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
}

[data-reveal-ready] [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  transition:
    opacity .5s var(--ease),
    transform .5s var(--ease);
}

/* ---------- 10. Skip link ---------- */
.skip-link {
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 200;
  transform: translate(-50%, -160%);
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: var(--cyan);
  color: var(--void);
  font-size: .85rem;
  font-weight: 700;
  transition: transform var(--dur) var(--ease);
}

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

/* ==========================================================================
   11. Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(5, 8, 15, .9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  background: transparent;
  pointer-events: none;
}

.header-progress__fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan-dim), var(--cyan) 40%, var(--violet));
  transition: width .12s linear;
}

.header-inner {
  width: var(--shell);
  margin-inline: auto;
}

/* --- masthead --- */
.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px 0 12px;
  transition: padding var(--dur) var(--ease);
}

.site-header[data-compact="true"] .masthead {
  padding: 8px 0 6px;
}

.version-chip {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(11, 18, 32, .72);
  color: var(--steel);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  white-space: nowrap;
}

.version-chip__dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 3px rgba(179, 107, 255, .18);
}

.brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px;
  color: var(--fog);
}

.brand__mark {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(150deg, #0F1B2B 0%, #05080F 100%);
  overflow: hidden;
  transition: width var(--dur) var(--ease), height var(--dur) var(--ease);
}

.brand__mark-a,
.brand__mark-b {
  position: absolute;
  height: 3px;
  border-radius: 2px;
  transform: rotate(-32deg);
  transform-origin: left center;
}

.brand__mark-a {
  left: 8px;
  top: 12px;
  width: 21px;
  background: var(--cyan);
}

.brand__mark-b {
  left: 8px;
  top: 21px;
  width: 13px;
  background: var(--violet);
  opacity: .9;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: .05em;
  line-height: 1.05;
  color: var(--fog);
}

.brand__descriptor {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .26em;
  line-height: 1.2;
  color: var(--steel);
  text-transform: uppercase;
  transition: opacity var(--dur) var(--ease);
}

.site-header[data-compact="true"] .brand__descriptor {
  opacity: .55;
}

.masthead__cta {
  justify-self: end;
}

/* --- nav toggle --- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(11, 18, 32, .82);
  color: var(--fog);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .18em;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.nav-toggle:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.nav-toggle__bars span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), width var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-toggle__bars span:nth-child(2) { width: 11px; }

.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) {
  width: 0;
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* --- nav --- */
.nav-shell {
  border-top: 1px solid rgba(27, 42, 58, .55);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 0 14px;
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 6px 15px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: var(--steel);
  font-size: .92rem;
  font-weight: 500;
  letter-spacing: .04em;
  transition:
    color var(--dur) var(--ease),
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.site-nav__link:hover {
  color: var(--fog);
  background: rgba(27, 42, 58, .55);
  border-color: var(--line);
}

.site-nav__link[aria-current="page"] {
  color: var(--cyan);
  background: rgba(14, 77, 74, .55);
  border-color: rgba(57, 245, 225, .38);
  font-weight: 600;
}

.site-nav__actions {
  display: none;
}

/* ==========================================================================
   12. Footer
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 6vw, 88px);
  padding-block: clamp(44px, 5vw, 72px) 28px;
  background: var(--deep);
  border-top: 1px solid var(--line);
  color: var(--steel);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(27, 42, 58, .6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 42, 58, .6) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(110% 100% at 50% 0%, #000 0%, transparent 76%);
  mask-image: radial-gradient(110% 100% at 50% 0%, #000 0%, transparent 76%);
  opacity: .55;
  pointer-events: none;
}

.footer-inner {
  position: relative;
  width: var(--shell);
  margin-inline: auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr .9fr 1.2fr;
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.footer-brand__name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: .04em;
  color: var(--fog);
  margin-bottom: 10px;
}

.footer-brand__tagline {
  max-width: 30em;
  font-size: .92rem;
  line-height: 1.8;
  color: #A9BAC8;
}

.footer-brand__stamp {
  display: inline-block;
  margin-top: 18px;
  padding-left: 12px;
  border-left: 2px solid var(--cyan);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .2em;
  color: var(--cyan);
  text-transform: uppercase;
}

.footer-col__title {
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 14px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px 18px;
}

.footer-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-left: 14px;
  color: #B9C8D4;
  font-size: .9rem;
  transition: color var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}

.footer-links a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 1px;
  background: var(--line);
  transition: width var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.footer-links a:hover {
  color: var(--cyan);
  padding-left: 18px;
}

.footer-links a:hover::before {
  width: 10px;
  background: var(--cyan);
}

.footer-contact li {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(27, 42, 58, .9);
  font-size: .88rem;
  line-height: 1.7;
}

.footer-contact li:last-child { border-bottom: 0; }

.footer-contact__key {
  flex: none;
  min-width: 5.6em;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .16em;
  color: var(--cyan);
  text-transform: uppercase;
  padding-top: 3px;
}

.footer-contact__val {
  color: #C9D6E0;
  word-break: break-word;
}

.footer-feedback {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  padding: 18px 22px;
  border: 1px solid rgba(57, 245, 225, .28);
  border-radius: var(--radius-lg);
  background: linear-gradient(100deg, rgba(14, 77, 74, .55) 0%, rgba(11, 18, 32, .7) 70%);
}

.footer-feedback__text {
  flex: 1 1 320px;
  font-size: .88rem;
  line-height: 1.75;
  color: #CFE2EA;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .1em;
  color: var(--steel);
}

.footer-bottom__bar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-bottom__dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--green);
}

.footer-bottom__legal { color: #7A8D9E; }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .masthead {
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 12px 0;
  }

  .version-chip,
  .masthead__cta {
    display: none;
  }

  .brand {
    justify-self: start;
  }

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

  .nav-toggle__label {
    display: inline;
  }

  .site-nav {
    display: none;
  }

  .site-nav[data-open="true"] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px 0 20px;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .site-nav__link {
    justify-content: space-between;
    padding: 14px 14px;
    border-radius: var(--radius-md);
    border-bottom: 1px solid rgba(27, 42, 58, .7);
    font-size: 1rem;
  }

  .site-nav__link[aria-current="page"] {
    border-bottom-color: rgba(57, 245, 225, .38);
  }

  .site-nav__actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
  }

  .site-nav__actions .btn {
    width: 100%;
  }

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

@media (max-width: 700px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-links {
    grid-template-columns: 1fr;
  }

  .footer-feedback {
    padding: 16px 18px;
  }

  .footer-feedback .btn {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .brand__mark {
    width: 32px;
    height: 32px;
  }

  .brand__name {
    font-size: 1.18rem;
  }

  .brand__descriptor {
    font-size: .58rem;
    letter-spacing: .2em;
  }

  .figure__frame {
    border-radius: var(--radius-md);
  }
}

/* ==========================================================================
   14. 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;
    scroll-behavior: auto !important;
  }

  [data-reveal-ready] [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .btn:hover,
  .nav-toggle:hover,
  .footer-links a:hover {
    transform: none;
  }
}
