/* ==========================================================================
   光速体育 / Site Kit — /assets/site.css
   深空黑底 · 电光蓝同色阶骨架 · 荧光绿状态 · 亮橙操作
   ========================================================================== */

/* ---------- 1. 变量 ---------- */
:root {
  --ink: #05070D;
  --ink-2: #0A1224;
  --blue: #1B6BFF;
  --blue-deep: #0E3FA8;
  --green: #39FF88;
  --mint: #8BFFC0;
  --orange: #FF7A1A;
  --orange-deep: #B34F00;
  --ice: #EAF2FF;
  --mist: #8FA6C8;
  --edge: #2E5BFF;

  --line: rgba(46, 91, 255, 0.28);
  --line-strong: rgba(46, 91, 255, 0.66);

  --shadow-hard: 8px 8px 0 rgba(14, 63, 168, 0.85);
  --shadow-lift: 0 18px 44px rgba(2, 4, 10, 0.62);
  --shadow-accent: 0 6px 0 var(--orange-deep), 0 12px 28px rgba(255, 122, 26, 0.3);

  --radius-pill: 999px;
  --radius-card: 18px;
  --radius-panel: 22px;

  --shell-max: 1260px;
  --shell-wide: 1480px;
  --gutter: clamp(16px, 4vw, 48px);
  --block: clamp(48px, 7vw, 96px);

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    radial-gradient(1100px 640px at 92% -10%, rgba(27, 107, 255, 0.28), transparent 68%),
    radial-gradient(820px 520px at -8% 10%, rgba(57, 255, 136, 0.09), transparent 66%),
    linear-gradient(180deg, #05070D 0%, #060A16 46%, #05070D 100%);
  background-repeat: no-repeat;
  color: var(--ice);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

button { font: inherit; color: inherit; }

a {
  color: var(--mint);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.18s ease;
}
a:hover { color: var(--green); }

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

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }

[id] { scroll-margin-top: 120px; }

/* ---------- 3. 排版 ---------- */
h1, h2, h3, h4 {
  color: var(--ice);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.3rem, 5.2vw, 4rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-style: italic;
}

h2 {
  font-size: clamp(1.55rem, 2.8vw, 2.3rem);
  font-style: italic;
}

h3 { font-size: clamp(1.05rem, 1.5vw, 1.22rem); }

p { line-height: 1.78; }

strong { color: var(--ice); font-weight: 700; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.lede {
  max-width: 62ch;
  color: var(--mist);
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.75;
}

/* ---------- 4. 布局 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--narrow { max-width: 880px; }
.shell--wide { max-width: var(--shell-wide); }

.section {
  position: relative;
  padding-block: var(--block);
}
.section--tight { padding-block: clamp(28px, 4vw, 52px); }

[data-section] { position: relative; }
[data-section]::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--blue), var(--green));
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
[data-section][data-active="true"]::before { opacity: 1; }

.grid { display: grid; gap: clamp(16px, 2.4vw, 32px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }

@media (max-width: 900px) {
  .grid--split { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- 5. 通用组件 ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-card);
  background: linear-gradient(160deg, rgba(10, 18, 36, 0.96), rgba(5, 7, 13, 0.94));
  box-shadow: var(--shadow-hard);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgba(27, 107, 255, 0.12);
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.chip--accent {
  border-color: rgba(255, 122, 26, 0.6);
  background: rgba(255, 122, 26, 0.14);
  color: #FFD3B0;
}
.chip--ok {
  border-color: rgba(57, 255, 136, 0.5);
  background: rgba(57, 255, 136, 0.1);
  color: var(--mint);
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(57, 255, 136, 0.16);
  animation: sl-pulse 2.6s ease-in-out infinite;
}
@keyframes sl-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.82); }
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.18s ease,
    color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { text-decoration: none; }

.btn--accent {
  background: var(--orange);
  color: #1A0A00;
  box-shadow: var(--shadow-accent);
}
.btn--accent:hover {
  color: #1A0A00;
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--orange-deep), 0 16px 32px rgba(255, 122, 26, 0.42);
}
.btn--accent:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--orange-deep);
}

.btn--blue {
  background: var(--blue);
  color: #FFFFFF;
  box-shadow: 0 6px 0 var(--blue-deep);
}
.btn--blue:hover {
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 0 var(--blue-deep), 0 14px 30px rgba(27, 107, 255, 0.4);
}
.btn--blue:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--blue-deep);
}

.btn--ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ice);
}
.btn--ghost:hover {
  border-color: var(--green);
  background: rgba(57, 255, 136, 0.08);
  color: var(--green);
}

/* ---------- 7. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
}
.breadcrumb a {
  color: var(--mist);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--green); }
.breadcrumb__sep { color: var(--edge); }
.breadcrumb [aria-current="page"] { color: var(--ice); }

/* ---------- 8. 跳转链接与进度条 ---------- */
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 300;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--green);
  color: #04140A;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.18s ease;
}
.skip-link:focus,
.skip-link:focus-visible {
  top: 14px;
  color: #04140A;
  outline: 3px solid var(--ice);
  outline-offset: 2px;
}

.progress-bar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 220;
  height: 3px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--green) 58%, var(--orange) 100%);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ---------- 9. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 180;
  padding: 12px var(--gutter) 10px;
  background: linear-gradient(180deg, rgba(5, 7, 13, 0.97) 0%, rgba(5, 7, 13, 0.88) 62%, rgba(5, 7, 13, 0) 100%);
}

.header-shell {
  max-width: var(--shell-max);
  margin-inline: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-panel);
  background: linear-gradient(150deg, rgba(10, 18, 36, 0.97), rgba(5, 7, 13, 0.95));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.58), inset 0 0 0 1px rgba(234, 242, 255, 0.05);
}

.header-rail {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 18px;
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius-panel) var(--radius-panel) 0 0;
  background: linear-gradient(90deg, rgba(27, 107, 255, 0.18), rgba(5, 7, 13, 0.1) 70%);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
  white-space: nowrap;
  overflow: hidden;
}
.rail-label { color: var(--blue); font-weight: 700; }
.rail-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mint);
}
.rail-hint {
  margin-left: auto;
  color: var(--mist);
  letter-spacing: 0.06em;
}

.header-main {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 18px;
}

/* 品牌刻度标记 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: var(--ice);
  text-decoration: none;
}
.brand:hover { color: var(--ice); }
.brand__mark {
  display: grid;
  gap: 3px;
  width: 26px;
  flex: 0 0 auto;
  transform: skewX(-16deg);
}
.brand__mark i {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: var(--blue);
}
.brand__mark i:nth-child(2) { width: 74%; background: var(--green); }
.brand__mark i:nth-child(3) { width: 46%; background: var(--orange); }

.brand__text { display: block; }
.brand__name {
  display: block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.15;
  transform: skewX(-8deg);
  transform-origin: left center;
  transition: color 0.18s ease;
}
.brand:hover .brand__name { color: var(--green); }
.brand__line {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
}

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: rgba(27, 107, 255, 0.14);
  color: var(--ice);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.nav-toggle:hover { border-color: var(--green); }
.nav-toggle__bars { display: grid; gap: 3px; width: 18px; }
.nav-toggle__bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 导航 */
.nav { display: flex; align-items: center; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: var(--ice);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.nav__link:hover {
  background: rgba(27, 107, 255, 0.16);
  border-color: var(--line-strong);
  color: var(--ice);
  transform: translateY(-1px);
}
.nav__link[aria-current="page"] {
  background: var(--blue);
  border-color: #5B94FF;
  color: #FFFFFF;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 6px 18px rgba(27, 107, 255, 0.4);
}

.nav__actions { display: none; }
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ---------- 10. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: var(--block);
  border-top: 1px solid var(--line-strong);
  background: linear-gradient(180deg, #05070D 0%, #0A1224 34%, #0A1224 100%);
  color: var(--ice);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--green) 44%, var(--orange));
}
.site-footer::after {
  content: "";
  position: absolute;
  right: -6%;
  bottom: -180px;
  width: 620px;
  height: 420px;
  background: radial-gradient(closest-side, rgba(27, 107, 255, 0.22), transparent 74%);
  pointer-events: none;
}

.footer-shell {
  position: relative;
  z-index: 1;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.72fr) minmax(0, 1.05fr);
  gap: clamp(28px, 4vw, 64px);
  padding-block: clamp(40px, 5vw, 76px) clamp(24px, 3vw, 40px);
}

.brand--footer .brand__name { font-size: 22px; }
.brand--footer .brand__line { color: var(--mist); }

.footer-intro {
  margin-top: 18px;
  max-width: 34ch;
  color: var(--mist);
  font-size: 15px;
  line-height: 1.8;
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(57, 255, 136, 0.35);
  border-radius: var(--radius-pill);
  background: rgba(57, 255, 136, 0.08);
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.footer-label {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
}

.footer-nav__list { display: grid; gap: 10px; }
.footer-nav__list a {
  position: relative;
  display: inline-block;
  padding-left: 0;
  color: var(--ice);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.18s ease, padding-left 0.18s ease;
}
.footer-nav__list a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 2px;
  background: var(--green);
  transform: translateY(-50%);
  transition: width 0.18s ease;
}
.footer-nav__list a:hover {
  padding-left: 18px;
  color: var(--green);
}
.footer-nav__list a:hover::before { width: 12px; }

.contact-list { display: grid; gap: 12px; }
.contact-list__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}
.contact-list__key {
  min-width: 42px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--mist);
}
.contact-list__value {
  color: var(--ice);
  font-family: var(--font-mono);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.copy-btn {
  margin-left: auto;
  padding: 4px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.copy-btn:hover {
  border-color: var(--green);
  background: var(--green);
  color: #04140A;
}
.copy-btn[data-copied="true"] {
  border-color: var(--mint);
  background: var(--mint);
  color: #04140A;
}

.footer-note {
  margin-top: 14px;
  color: var(--mist);
  font-size: 12.5px;
  line-height: 1.75;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-block: 20px 30px;
  border-top: 1px solid rgba(46, 91, 255, 0.22);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
}
.footer-copy { color: var(--mist); }
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.legal-links a {
  color: var(--mist);
  text-decoration: none;
}
.legal-links a:hover { color: var(--green); }
.footer-icp {
  margin-left: auto;
  color: var(--mist);
}

/* ---------- 11. 可复用图片容器 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-card);
  background:
    linear-gradient(140deg, rgba(27, 107, 255, 0.24), rgba(5, 7, 13, 0.92) 62%);
  box-shadow: var(--shadow-hard);
}
.media-frame > img,
.media-frame > picture,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame > img,
.media-frame > picture > img {
  transition: transform 0.5s ease;
}
.media-frame:hover > img,
.media-frame:hover > picture > img { transform: scale(1.04); }

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-frame__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 14px 18px;
  background: linear-gradient(180deg, rgba(5, 7, 13, 0), rgba(5, 7, 13, 0.88));
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}

/* ---------- 12. 焦点与可访问性 ---------- */
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1080px) {
  .rail-hint { display: none; }
  .header-actions { display: none; }
  .nav-toggle { display: inline-flex; }

  .nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 40;
    padding: 10px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-card);
    background: var(--ink-2);
    box-shadow: var(--shadow-lift);
  }
  .nav[data-open="true"] { display: block; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .nav__link {
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 15px;
  }
  .nav__link::after {
    content: "→";
    color: var(--edge);
    font-family: var(--font-mono);
  }
  .nav__link[aria-current="page"]::after { color: #FFFFFF; }

  .nav__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 2px 2px;
  }
  .nav__actions .btn { flex: 1 1 140px; }
}

@media (max-width: 980px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-lead { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  h1 { font-size: clamp(2rem, 8vw, 2.8rem); }
  .header-rail {
    flex-wrap: wrap;
    row-gap: 4px;
    white-space: normal;
    font-size: 10px;
    letter-spacing: 0.08em;
  }
  .rail-label { display: none; }
  .brand__line { display: none; }
  .brand__name { font-size: 18px; }
  .site-header { padding-inline: 12px; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-lead { grid-column: auto; }
  .footer-base {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .footer-icp { margin-left: 0; }
}

/* ---------- 14. 减弱动效 ---------- */
@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;
  }
  .status-dot { animation: none; }
  .media-frame:hover > img,
  .media-frame:hover > picture > img { transform: none; }
}
