/* ==========================================================================
   贝博体育 · 共享 Site Kit  →  /assets/site.css
   暗夜演播室数据墙 / Bento 母题 / 荧光青 + 电光橙
   ========================================================================== */

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

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

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

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

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

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

button { background: none; border: 0; }

/* ---------- 2. Design tokens ---------- */
:root {
  --ink-900: #070B14;
  --ink-800: #0E1624;
  --ink-700: #162233;
  --line: #263850;

  --moon: #F2F7FF;
  --mist: #9FB0C7;

  --cyan: #21F5E3;
  --orange: #FF6A2A;
  --gold: #F5B84B;
  --green: #4ADE80;
  --red: #FF4D6D;
  --violet: #A78BFA;

  --font-display: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;

  --hdr-h: 64px;
  --gutter: clamp(16px, 4vw, 40px);
  --wrap: 1240px;
  --radius: 10px;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

@media (min-width: 961px) {
  :root { --hdr-h: 72px; }
}

/* ---------- 3. 基础排版 ---------- */
body {
  margin: 0;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(900px 540px at 84% -8%, rgba(33, 245, 227, .10), transparent 70%),
    radial-gradient(760px 480px at 4% 2%, rgba(255, 106, 42, .075), transparent 72%);
  background-repeat: no-repeat;
  color: var(--moon);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -.012em;
  color: var(--moon);
}

h1 { font-size: clamp(2rem, 4.4vw, 3.35rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--cyan); text-decoration: none; }
a:hover { color: #7FFBF0; }

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

::selection { background: rgba(33, 245, 227, .28); color: #FFFFFF; }

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

#main-content { scroll-margin-top: calc(var(--hdr-h) + 16px); }

/* ---------- 4. 通用布局与工具 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(40px, 6vw, 84px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(33, 245, 227, .8);
}

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

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(22, 34, 51, .72);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .1em;
  line-height: 1.6;
  white-space: nowrap;
}

.tag--cyan { color: var(--cyan); border-color: rgba(33, 245, 227, .38); background: rgba(33, 245, 227, .09); }
.tag--orange { color: #FFB48C; border-color: rgba(255, 106, 42, .42); background: rgba(255, 106, 42, .10); }
.tag--gold { color: var(--gold); border-color: rgba(245, 184, 75, .40); background: rgba(245, 184, 75, .10); }

/* 面包屑 */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: rgba(159, 176, 199, .78);
}

.breadcrumb li { display: flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: #2E4360; }
.breadcrumb a { color: var(--mist); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--moon); }

/* 图片容器基础规则（页面阶段放 <img> 占位） */
.img-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(22, 34, 51, .95), rgba(14, 22, 36, .95));
}

.img-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(33, 245, 227, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 245, 227, .07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(160deg, #000 12%, transparent 82%);
  -webkit-mask-image: linear-gradient(160deg, #000 12%, transparent 82%);
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-frame--wide { aspect-ratio: 16 / 9; }
.img-frame--square { aspect-ratio: 1 / 1; }
.img-frame--tall { aspect-ratio: 4 / 5; }

/* ---------- 5. 跳转链 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 12px;
  z-index: 300;
  padding: 10px 18px;
  border-radius: 6px;
  background: var(--cyan);
  color: #04120F;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform .22s var(--ease);
}

.skip-link:focus,
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--moon);
  outline-offset: 3px;
  color: #04120F;
}

/* ---------- 6. 头部：命令栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(7, 11, 20, .90);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.cmd-bar__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1480px;
  min-height: var(--hdr-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--moon);
  text-decoration: none;
}

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

.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(150deg, var(--cyan), #0FD6C6 58%, #0AA79C);
  color: #04120F;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  box-shadow:
    0 0 0 1px rgba(33, 245, 227, .55),
    0 10px 24px -12px rgba(33, 245, 227, .9);
}

.brand__text { display: flex; flex-direction: column; line-height: 1.1; }

.brand__name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .06em;
  color: var(--moon);
}

.brand__line {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .28em;
  color: var(--mist);
}

/* 主导航 */
.cmd-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.cmd-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cmd-nav__item { position: relative; }

.cmd-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: 6px;
  color: var(--mist);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .02em;
  white-space: nowrap;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease;
}

.cmd-nav__idx {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .04em;
  color: rgba(159, 176, 199, .55);
  transition: color .18s ease;
}

.cmd-nav__link:hover { color: var(--moon); background: rgba(38, 56, 80, .46); }
.cmd-nav__link:hover .cmd-nav__idx { color: var(--mist); }

.cmd-nav__link[aria-current="page"] {
  color: var(--moon);
  background: rgba(33, 245, 227, .10);
}

.cmd-nav__link[aria-current="page"] .cmd-nav__idx { color: var(--cyan); }

.cmd-nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(33, 245, 227, .95);
}

/* 工具组 */
.cmd-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
}

.version-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid rgba(255, 106, 42, .42);
  border-radius: 999px;
  background: rgba(255, 106, 42, .09);
  color: #FFB48C;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .12em;
  white-space: nowrap;
}

.version-tag__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px var(--orange);
  animation: kit-pulse 2.4s ease-in-out infinite;
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .03em;
  line-height: 1.5;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.btn--accent {
  background: var(--orange);
  color: #1A0A02;
  box-shadow: 0 12px 26px -16px rgba(255, 106, 42, .95);
}

.btn--accent:hover {
  background: #FF814E;
  color: #1A0A02;
  transform: translateY(-1px);
}

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

.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(22, 34, 51, .7);
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease;
}

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

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--moon);
  transition: transform .22s var(--ease), opacity .22s var(--ease);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 滚动进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  overflow: hidden;
  background: rgba(38, 56, 80, .55);
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--gold) 62%, var(--orange));
  box-shadow: 0 0 12px rgba(33, 245, 227, .85);
}

/* ---------- 7. 左侧悬浮索引轴 ---------- */
.data-rail { display: none; }

@media (min-width: 1440px) {
  .data-rail {
    display: flex;
    position: fixed;
    left: 0;
    top: var(--hdr-h);
    bottom: 0;
    z-index: 60;
    width: 74px;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 22px 0 18px;
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(14, 22, 36, .94), rgba(7, 11, 20, .72));
  }

  .data-rail__cap {
    margin-bottom: 14px;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: .2em;
    color: rgba(159, 176, 199, .5);
  }

  .data-rail__item {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 36px;
    border-radius: 6px;
    color: rgba(159, 176, 199, .62);
    text-decoration: none;
    transition: color .18s ease, background-color .18s ease;
  }

  .data-rail__idx {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .08em;
  }

  .data-rail__label {
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translate(-6px, -50%);
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--ink-700);
    color: var(--moon);
    font-family: var(--font-body);
    font-size: 11.5px;
    line-height: 1.6;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease, transform .16s ease;
  }

  .data-rail__item:hover { color: var(--moon); background: rgba(38, 56, 80, .5); }

  .data-rail__item:hover .data-rail__label,
  .data-rail__item:focus-visible .data-rail__label {
    opacity: 1;
    transform: translate(0, -50%);
  }

  .data-rail__item[aria-current="page"] {
    color: var(--cyan);
    background: rgba(33, 245, 227, .10);
  }

  .data-rail__item[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: -15px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    border-radius: 2px;
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan);
  }

  .data-rail__pct {
    margin-top: auto;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: .1em;
    color: rgba(159, 176, 199, .55);
  }
}

/* ---------- 8. 头部响应式 ---------- */
@media (max-width: 1180px) {
  .cmd-nav__idx { display: none; }
  .cmd-nav__link { padding: 9px 10px; font-size: 13px; }
  .cmd-tools { gap: 8px; }
}

@media (max-width: 1024px) {
  .version-tag { display: none; }
}

@media (max-width: 960px) {
  .cmd-bar__inner { gap: 12px; }

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

  .cmd-nav {
    position: fixed;
    top: var(--hdr-h);
    left: 0;
    right: 0;
    z-index: 110;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-height: calc(100vh - var(--hdr-h));
    max-height: calc(100dvh - var(--hdr-h));
    overflow-y: auto;
    padding: 14px var(--gutter) 26px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(14, 22, 36, .99), rgba(7, 11, 20, .99));
    box-shadow: 0 24px 48px -30px rgba(0, 0, 0, .95);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-14px);
    transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s linear;
  }

  .cmd-nav[data-open="true"] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .cmd-nav__list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }

  .cmd-nav__item + .cmd-nav__item { border-top: 1px solid rgba(38, 56, 80, .6); }

  .cmd-nav__link {
    display: flex;
    justify-content: space-between;
    padding: 15px 8px;
    border-radius: 0;
    font-size: 15px;
  }

  .cmd-nav__idx { display: inline; order: 2; font-size: 11px; }

  .cmd-nav__link[aria-current="page"] { background: rgba(33, 245, 227, .08); }

  .cmd-nav__link[aria-current="page"]::after {
    left: 0;
    right: auto;
    top: 12px;
    bottom: 12px;
    width: 3px;
    height: auto;
  }
}

@media (max-width: 560px) {
  .cmd-tools__cta { display: none; }
  .brand__line { letter-spacing: .18em; }
}

/* ---------- 9. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 96px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 22, 36, .92), rgba(7, 11, 20, .99));
  color: var(--mist);
  font-size: 14px;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(33, 245, 227, .65), rgba(255, 106, 42, .5), transparent);
  pointer-events: none;
}

.footer-grid {
  display: grid;
  gap: 36px;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(36px, 5vw, 64px) var(--gutter) 34px;
}

/* 品牌区 */
.brand--footer { margin-bottom: 16px; }
.brand--footer .brand__mark { width: 32px; height: 32px; font-size: 16px; }

.footer-statement {
  max-width: 32ch;
  margin-bottom: 16px;
  font-family: var(--font-serif);
  font-size: 15px;
  line-height: 1.9;
  color: rgba(242, 247, 255, .88);
}

.footer-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border: 1px solid rgba(74, 222, 128, .32);
  border-radius: 999px;
  background: rgba(74, 222, 128, .07);
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  white-space: nowrap;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: kit-pulse 2.6s ease-in-out infinite;
}

/* 导航栏组 */
.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.footer-col__title {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-list { display: grid; gap: 9px; list-style: none; margin: 0; padding: 0; }

.footer-link {
  display: inline-block;
  color: var(--mist);
  font-size: 13.5px;
  line-height: 1.6;
  text-decoration: none;
  transition: color .16s ease, transform .16s ease;
}

.footer-link:hover { color: var(--cyan); transform: translateX(2px); }

/* 客服通道 */
.contact-list {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 14px;
  margin: 0 0 16px;
}

.contact-list__term {
  padding-top: 2px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .14em;
  color: rgba(159, 176, 199, .68);
}

.contact-list__desc {
  margin: 0;
  color: var(--moon);
  font-size: 13.5px;
  line-height: 1.65;
  word-break: break-word;
}

.footer-note {
  margin: 0;
  padding-left: 12px;
  border-left: 2px solid rgba(245, 184, 75, .55);
  color: rgba(159, 176, 199, .74);
  font-size: 12px;
  line-height: 1.75;
}

/* 底栏 */
.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 18px var(--gutter) 28px;
  border-top: 1px solid rgba(38, 56, 80, .7);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: rgba(159, 176, 199, .72);
}

.footer-copy, .footer-legal { margin: 0; }

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 48px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.5fr) minmax(0, 1.1fr);
    gap: 44px 56px;
  }
  .footer-brand { grid-column: auto; }
}

@media (max-width: 599px) {
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 18px; }
  .footer-base { flex-direction: column; align-items: flex-start; }
}

/* ---------- 10. 动效 ---------- */
@keyframes kit-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .42; transform: scale(.8); }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity .62s var(--ease),
    transform .62s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- 11. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .scroll-progress__bar { transition: none !important; }
}

/* ---------- 12. 打印 / 深色兜底 ---------- */
@media print {
  .site-header, .data-rail, .scroll-progress, .skip-link { display: none !important; }
  body { background: #FFFFFF; color: #111111; }
  .site-footer { background: #FFFFFF; color: #333333; border-top: 1px solid #CCCCCC; }
}
