/* ============================================================
   BSPORT体育 · 共享站点样式 /assets/site.css
   暗场数据复盘室：墨绿底 + 荧光青读数 + 粗描边硬阴影
   ============================================================ */

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

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

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

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

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

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

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

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

/* ---------- 2. 变量 ---------- */
:root {
  /* 色彩 */
  --ink-900: #07130F;
  --ink-800: #0C1F19;
  --ink-700: #14302A;
  --moss-600: #1E4A3C;
  --cyan-400: #38F2D0;
  --cyan-200: #A7FBE9;
  --ember-500: #FF5A3C;
  --amber-400: #FFB020;
  --bone-100: #E8F1EC;
  --bone-300: #9DB3AA;
  --line: #2A4A40;

  /* 字体 */
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Roboto Mono",
    Menlo, Consolas, monospace;

  /* 字号 */
  --fs-display: clamp(48px, 8.2vw, 96px);
  --fs-h1: clamp(32px, 4.4vw, 44px);
  --fs-h2: 28px;
  --fs-h3: 20px;
  --fs-body: 17px;
  --fs-sm: 14px;
  --fs-label: 11px;

  /* 结构 */
  --container: 1280px;
  --gutter: 24px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-pill: 999px;
  --shadow-hard: 6px 6px 0 rgba(3, 10, 8, 0.55);
  --shadow-lift: 0 20px 44px -24px rgba(0, 0, 0, 0.95);
  --ease: cubic-bezier(0.22, 0.8, 0.28, 1);
  --header-h: 76px;
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--ink-900);
  background-image:
    radial-gradient(880px 480px at 82% -10%, rgba(56, 242, 208, 0.10), transparent 70%),
    radial-gradient(760px 440px at 2% 6%, rgba(30, 74, 60, 0.42), transparent 72%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--bone-100);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.8;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--bone-100);
}

p {
  max-width: 42em;
}

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

::selection {
  background: var(--cyan-400);
  color: #04120E;
}

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

/* ---------- 4. 通用工具类 ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding-top: 64px;
  padding-bottom: 64px;
}

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

.display {
  font-size: var(--fs-display);
  font-weight: 200;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--bone-100);
}

.label,
.eyebrow-index {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  line-height: 1.6;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-300);
}

.eyebrow-index {
  color: var(--cyan-400);
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.02em;
  color: var(--cyan-400);
}

.prose {
  max-width: 680px;
  color: var(--bone-100);
}

.prose p + p {
  margin-top: 20px;
}

.text-muted {
  color: var(--bone-300);
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.24s var(--ease), color 0.24s var(--ease),
    border-color 0.24s var(--ease), box-shadow 0.24s var(--ease),
    transform 0.24s var(--ease);
}

.btn-primary {
  background: var(--cyan-400);
  border-color: var(--cyan-400);
  color: #04120E;
  box-shadow: 0 0 0 0 rgba(56, 242, 208, 0);
}

.btn-primary:hover {
  background: var(--cyan-200);
  border-color: var(--cyan-200);
  box-shadow: 0 0 26px -6px rgba(56, 242, 208, 0.7);
  transform: translateY(-1px);
}

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

.btn-ghost:hover {
  border-color: var(--cyan-400);
  color: var(--cyan-200);
  background: rgba(56, 242, 208, 0.07);
}

/* ---------- 6. 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.8;
  color: var(--bone-300);
  white-space: nowrap;
}

.tag-cyan {
  color: var(--cyan-400);
  border-color: rgba(56, 242, 208, 0.42);
  background: rgba(56, 242, 208, 0.08);
}

.tag-ember {
  color: var(--ember-500);
  border-color: rgba(255, 90, 60, 0.45);
  background: rgba(255, 90, 60, 0.11);
}

.tag-amber {
  color: var(--amber-400);
  border-color: rgba(255, 176, 32, 0.45);
  background: rgba(255, 176, 32, 0.11);
}

/* ---------- 7. 卡片 / 面板 ---------- */
.card {
  position: relative;
  padding: 22px;
  background: var(--ink-800);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-hard);
  transition: border-color 0.26s var(--ease), box-shadow 0.26s var(--ease),
    transform 0.26s var(--ease);
}

.card:hover {
  border-color: rgba(56, 242, 208, 0.55);
  box-shadow: 8px 8px 0 rgba(3, 10, 8, 0.62);
  transform: translateY(-2px);
}

.card-hard {
  border-width: 1px;
  background: linear-gradient(168deg, var(--ink-700), var(--ink-800) 62%);
}

.panel-inner {
  padding: 18px 20px;
  background: var(--ink-700);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

/* ---------- 8. 图片容器（供页面阶段放置图片） ---------- */
.media-frame {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background-color: var(--ink-700);
  background-image:
    radial-gradient(120% 90% at 18% 8%, rgba(56, 242, 208, 0.20), transparent 62%),
    linear-gradient(148deg, #16342C, var(--ink-800) 58%, #0A1A16);
}

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

.media-frame--wide {
  aspect-ratio: 21 / 9;
}

.media-frame--tall {
  aspect-ratio: 3 / 4;
}

.media-frame--square {
  aspect-ratio: 1 / 1;
}

/* ---------- 9. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-300);
}

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

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

.breadcrumb a {
  color: var(--bone-300);
  transition: color 0.2s var(--ease);
}

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

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

/* ---------- 10. 数据通道分隔线 ---------- */
.rule-dots {
  position: relative;
  height: 9px;
  margin: 56px 0;
}

.rule-dots::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, rgba(56, 242, 208, 0.48), rgba(56, 242, 208, 0.08));
}

.rule-dots::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, var(--cyan-400) 2px, transparent 2.5px);
  background-size: 24px 9px;
  background-position: 0 center;
  background-repeat: repeat-x;
  opacity: 0.72;
}

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

/* ---------- 11. 栅格 ---------- */
.grid {
  display: grid;
  gap: var(--gutter);
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gutter);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gutter);
}

/* ---------- 12. 滚动显现 ---------- */
.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

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

/* ---------- 13. 滚动进度条 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan-400), var(--cyan-200));
  box-shadow: 0 0 12px rgba(56, 242, 208, 0.55);
  z-index: 140;
  pointer-events: none;
}

/* ---------- 14. 跳过链接 ---------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--cyan-400);
  color: #04120E;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transform: translateY(-220%);
  transition: transform 0.22s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
  outline-offset: 4px;
}

/* ---------- 15. 头部：悬浮胶囊浮岛 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  padding: 16px var(--gutter) 0;
  transition: padding 0.32s var(--ease);
}

.site-header[data-scrolled="true"] {
  padding-top: 10px;
}

.header-inner {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
}

.nav-pod {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 9px 12px 9px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(12, 31, 25, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 14px 34px -22px rgba(0, 0, 0, 1),
    inset 0 1px 0 rgba(167, 251, 233, 0.08);
  transition: max-width 0.38s var(--ease), background-color 0.32s var(--ease),
    box-shadow 0.32s var(--ease), border-color 0.32s var(--ease),
    padding 0.32s var(--ease);
}

.site-header[data-scrolled="true"] .nav-pod {
  max-width: 1060px;
  padding: 7px 10px 7px 16px;
  background: rgba(8, 22, 18, 0.97);
  border-color: rgba(56, 242, 208, 0.28);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 1);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
  padding: 4px 2px;
}

.brand-mark {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 7px;
  border: 1px solid var(--cyan-400);
  background:
    radial-gradient(circle at 50% 50%, var(--cyan-400) 0 3px, transparent 3.6px),
    linear-gradient(140deg, rgba(56, 242, 208, 0.42), var(--moss-600) 68%, #0A1B16);
  box-shadow: 0 0 14px rgba(56, 242, 208, 0.38), inset 0 0 8px rgba(56, 242, 208, 0.25);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.16;
}

.brand-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--bone-100);
  white-space: nowrap;
}

.brand-tagline {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-300);
  white-space: nowrap;
}

/* 导航 */
.nav-panel {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

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

.nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--bone-300);
  white-space: nowrap;
  transition: color 0.22s var(--ease), background-color 0.22s var(--ease);
}

.nav-link:hover {
  color: var(--bone-100);
  background: rgba(56, 242, 208, 0.08);
}

.nav-link[aria-current="page"] {
  color: var(--cyan-200);
  background: rgba(56, 242, 208, 0.10);
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: var(--cyan-400);
  box-shadow: 0 0 10px var(--cyan-400);
}

/* 头部动作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  margin-left: auto;
}

.header-cta {
  padding: 8px 18px;
  font-size: 13px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--ink-700);
  transition: border-color 0.22s var(--ease), background-color 0.22s var(--ease);
}

.nav-toggle:hover {
  border-color: var(--cyan-400);
  background: var(--moss-600);
}

.nav-toggle-bar {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan-400);
  transition: transform 0.26s var(--ease), opacity 0.2s var(--ease);
}

.site-header[data-open="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}

.site-header[data-open="true"] .nav-toggle-bar:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* ---------- 16. 页脚 ---------- */
.site-footer {
  margin-top: 96px;
  padding-top: 64px;
  padding-bottom: 32px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(760px 340px at 12% 0%, rgba(30, 74, 60, 0.55), transparent 72%),
    linear-gradient(180deg, var(--ink-900) 0%, #050D0A 100%);
}

.footer-inner {
  display: block;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 2fr);
  gap: 56px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.footer-brand-name {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--bone-100);
}

.footer-brand-desc {
  max-width: 30ch;
  font-size: 14px;
  line-height: 1.85;
  color: var(--bone-300);
}

.footer-channel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.footer-channel span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan-400);
  opacity: 0.32;
}

.footer-channel span:first-child,
.footer-channel span:nth-child(2) {
  opacity: 1;
  box-shadow: 0 0 10px rgba(56, 242, 208, 0.6);
}

.footer-channel span:nth-child(3) {
  opacity: 0.7;
}

.footer-note {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bone-300);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

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

.footer-col-title {
  position: relative;
  margin-bottom: 18px;
  padding-left: 14px;
  font-size: var(--fs-label);
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.6;
  color: var(--cyan-400);
}

.footer-col-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 1px;
  background: var(--cyan-400);
  transform: translateY(-50%);
}

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

.footer-link {
  display: inline-block;
  font-size: 14px;
  color: var(--bone-300);
  transition: color 0.22s var(--ease), transform 0.22s var(--ease);
}

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

.footer-meta {
  gap: 8px;
}

.footer-meta-item {
  font-size: 13px;
  line-height: 1.7;
  color: var(--bone-300);
  word-break: break-word;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.footer-legal,
.footer-copy {
  max-width: none;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--bone-300);
}

.footer-copy {
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

/* ---------- 17. 响应式：平板 ---------- */
@media (max-width: 1080px) {
  .nav-link {
    padding: 8px 9px;
    font-size: 13px;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

/* ---------- 18. 响应式：移动导航 ---------- */
@media (max-width: 900px) {
  :root {
    --gutter: 18px;
  }

  body {
    font-size: 16px;
  }

  .site-header {
    padding: 10px var(--gutter) 0;
  }

  .nav-pod {
    position: relative;
    flex-wrap: nowrap;
    padding: 8px 10px 8px 14px;
    gap: 10px;
  }

  .site-header[data-scrolled="true"] .nav-pod {
    max-width: 100%;
    padding: 8px 10px 8px 14px;
  }

  .brand-tagline {
    display: none;
  }

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

  .nav-panel {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    flex: none;
    display: block;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(8, 22, 18, 0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 24px 48px -22px rgba(0, 0, 0, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.26s var(--ease), transform 0.26s var(--ease),
      visibility 0.26s var(--ease);
  }

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

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

  .nav-link {
    display: block;
    padding: 12px 14px 12px 26px;
    border-radius: var(--radius-md);
    font-size: 15px;
  }

  .nav-link[aria-current="page"]::after {
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
  }

  .header-cta {
    padding: 8px 14px;
    font-size: 12px;
  }

  .footer-top {
    gap: 36px;
  }

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

  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-12 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .section {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

/* ---------- 19. 响应式：小屏 ---------- */
@media (max-width: 620px) {
  .grid-2,
  .grid-3,
  .grid-4,
  .footer-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-12 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-name {
    font-size: 14px;
  }

  .header-cta {
    padding: 7px 12px;
    font-size: 12px;
  }

  .nav-pod {
    padding: 8px 8px 8px 12px;
  }

  .card {
    padding: 18px;
  }

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

  .rule-dots {
    margin: 40px 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.12s !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }

  .has-js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: opacity 0.12s linear;
  }

  .card:hover,
  .footer-link:hover {
    transform: none;
  }
}
