/* ============================================================
   B体育主站 · 共享站点样式 /assets/site.css
   夜间赛场指挥台 × 技术蓝图网格
   ============================================================ */

:root {
  --void: #070B14;
  --cabin: #0E1626;
  --slate: #1B2A3A;
  --paper: #F2EBDD;
  --moss: #8FA39B;
  --cyan: #20E3FF;
  --orange: #FF6A2A;
  --lime: #B8FF3C;
  --clay: #C2684F;
  --stamp: #E8C97A;

  --line: rgba(143, 163, 155, 0.26);
  --line-strong: rgba(143, 163, 155, 0.46);
  --paper-70: rgba(242, 235, 221, 0.70);
  --paper-55: rgba(242, 235, 221, 0.55);

  --font-display: "Barlow Condensed", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "Cascadia Mono", "Roboto Mono", Consolas, monospace;

  --wrap: 1280px;
  --wrap-wide: 1440px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--void);
  background-image:
    linear-gradient(rgba(143, 163, 155, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 163, 155, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  background-position: center top;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--paper); }

::selection { background: rgba(32, 227, 255, 0.28); color: var(--paper); }

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

/* ---------- 中文排版 ---------- */
h1, h2, h3, h4, h5 {
  margin: 0 0 0.55em;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--paper);
}
h1 { font-size: clamp(44px, 7vw, 92px); }
h2 { font-size: clamp(28px, 3.6vw, 46px); }
h3 { font-size: clamp(19px, 2vw, 26px); letter-spacing: -0.01em; }
h4 { font-size: clamp(16px, 1.4vw, 19px); letter-spacing: 0; }
p { margin: 0 0 24px; }
p:last-child { margin-bottom: 0; }

.prose { max-width: 68ch; }
.prose p { margin-bottom: 24px; color: var(--paper-70); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--paper); font-weight: 700; }

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: 0;
  left: 16px;
  z-index: 999;
  transform: translateY(-160%);
  padding: 12px 20px;
  background: var(--cyan);
  color: var(--void);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus {
  transform: translateY(16px);
  color: var(--void);
}

/* ============================================================
   头部
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.98), rgba(7, 11, 20, 0.88));
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

/* 顶部刻度尺 */
.site-header::before {
  content: "";
  display: block;
  height: 8px;
  background-color: var(--void);
  background-image: repeating-linear-gradient(
    90deg,
    rgba(32, 227, 255, 0.38) 0 1px,
    transparent 1px 16px
  );
  border-bottom: 1px solid rgba(143, 163, 155, 0.16);
}

.site-header.is-compact {
  border-bottom-color: rgba(32, 227, 255, 0.4);
  box-shadow: 0 18px 40px -30px rgba(32, 227, 255, 0.9);
}

.header-inner {
  position: relative;
  width: 100%;
  max-width: var(--wrap-wide);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: padding 0.25s var(--ease);
}

.site-header.is-compact .header-inner { padding-top: 8px; padding-bottom: 8px; }

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  flex: 0 0 auto;
}
.brand:hover { color: var(--paper); }

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
  color: var(--void);
  background: linear-gradient(140deg, var(--cyan), #0E9FBC);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 5px;
  height: 5px;
  background: var(--void);
  opacity: 0.55;
}

.brand-text { display: block; }

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--paper);
}

.brand-tag {
  display: block;
  max-height: 22px;
  overflow: hidden;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.6;
  color: var(--moss);
  transition: opacity 0.2s var(--ease), max-height 0.2s var(--ease);
}

.site-header.is-compact .brand-tag {
  opacity: 0;
  max-height: 0;
}

/* 导航 */
.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.6vw, 22px);
}

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

.nav-list a {
  position: relative;
  display: block;
  padding: 9px 13px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.07em;
  color: rgba(242, 235, 221, 0.78);
  border: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav-list a:hover {
  color: var(--paper);
  border-color: rgba(32, 227, 255, 0.42);
  background: rgba(32, 227, 255, 0.07);
}

.nav-list a[aria-current="page"] {
  color: var(--cyan);
  border-color: rgba(32, 227, 255, 0.55);
  background: rgba(32, 227, 255, 0.1);
}

.nav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 3px;
  height: 2px;
  background: var(--cyan);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(27, 42, 58, 0.6);
  color: var(--paper);
  border: 1px solid var(--line-strong);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav-toggle:hover { border-color: var(--cyan); background: rgba(32, 227, 255, 0.1); }

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: var(--cyan);
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--cyan);
  transition: transform 0.2s var(--ease);
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.site-header[data-open] .nav-toggle-bars { background: transparent; }
.site-header[data-open] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.site-header[data-open] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
.site-header[data-open] .nav-toggle { border-color: var(--orange); }

/* 滚动进度刻度 */
.header-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

/* ============================================================
   按钮
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn--accent {
  background: var(--orange);
  color: #180B04;
  border-color: var(--orange);
  clip-path: polygon(0 0, 100% 0, 100% 68%, 92% 100%, 0 100%);
}
.btn--accent:hover {
  background: #FF8347;
  border-color: #FF8347;
  color: #180B04;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--cyan);
  border-color: rgba(32, 227, 255, 0.55);
}
.btn--ghost:hover {
  background: rgba(32, 227, 255, 0.1);
  border-color: var(--cyan);
  color: var(--cyan);
}

.header-cta {
  padding: 10px 16px;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  white-space: nowrap;
  flex: 0 0 auto;
}

/* ============================================================
   通用布局
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: var(--wrap-wide); }

.section { padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(32px, 4vw, 56px); }

.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
}

.rule {
  height: 1px;
  border: 0;
  margin: clamp(24px, 4vw, 48px) 0;
  background: linear-gradient(90deg, rgba(143, 163, 155, 0.55), rgba(143, 163, 155, 0));
}

/* ---------- 档案面板 ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 30px);
  background: linear-gradient(180deg, rgba(14, 22, 38, 0.92), rgba(11, 17, 28, 0.92));
  border: 1px solid var(--line);
  border-radius: 2px;
}

.panel--slate {
  background: linear-gradient(155deg, rgba(27, 42, 58, 0.9), rgba(14, 22, 38, 0.94));
  border-color: var(--line-strong);
}

.panel--accent { border-left: 3px solid var(--orange); }
.panel--cyan { border-left: 3px solid var(--cyan); }

.corner-frame { position: relative; }

.corner-frame::before,
.corner-frame::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  pointer-events: none;
  border-style: solid;
  border-width: 0;
  border-color: var(--cyan);
}

.corner-frame::before {
  top: -1px;
  left: -1px;
  border-top-width: 2px;
  border-left-width: 2px;
}

.corner-frame::after {
  right: -1px;
  bottom: -1px;
  border-right-width: 2px;
  border-bottom-width: 2px;
}

/* ---------- 标签与状态 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--cyan);
  flex: 0 0 auto;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.7;
  color: var(--moss);
  background: rgba(27, 42, 58, 0.65);
  border: 1px solid var(--line-strong);
  border-radius: 1px;
  white-space: nowrap;
}
.label--cyan { color: var(--cyan); border-color: rgba(32, 227, 255, 0.5); background: rgba(32, 227, 255, 0.08); }
.label--orange { color: #FFB48E; border-color: rgba(255, 106, 42, 0.55); background: rgba(255, 106, 42, 0.1); }
.label--lime { color: var(--lime); border-color: rgba(184, 255, 60, 0.45); background: rgba(184, 255, 60, 0.08); }
.label--paper { color: #241A0C; background: var(--stamp); border-color: var(--stamp); }

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(184, 255, 60, 0.18);
  animation: bs-pulse 2.4s ease-in-out infinite;
  flex: 0 0 auto;
}

@keyframes bs-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.42; }
}

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

/* ---------- 面包屑 ---------- */
.breadcrumb { font-size: 12px; letter-spacing: 0.1em; color: var(--moss); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: rgba(143, 163, 155, 0.5); }
.breadcrumb a { color: rgba(242, 235, 221, 0.75); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--paper); }

/* ---------- 图片容器（页面阶段置图） ---------- */
.figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(32, 227, 255, 0.14), transparent 60%),
    linear-gradient(150deg, var(--slate), var(--void) 72%);
}
.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure--21x9 { aspect-ratio: 21 / 9; }
.figure--16x9 { aspect-ratio: 16 / 9; }
.figure--4x3 { aspect-ratio: 4 / 3; }
.figure--1x1 { aspect-ratio: 1 / 1; }

.figure__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 10px 14px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--paper-70);
  background: linear-gradient(180deg, rgba(7, 11, 20, 0), rgba(7, 11, 20, 0.9));
}

/* ---------- 滚动显现 ---------- */
.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.has-reveal [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 112px);
  background: linear-gradient(180deg, rgba(14, 22, 38, 0.95), var(--void) 65%);
  border-top: 1px solid var(--line);
  color: var(--paper);
}

.site-footer::before {
  content: "";
  display: block;
  height: 14px;
  background-color: rgba(7, 11, 20, 0.9);
  background-image: repeating-linear-gradient(
    90deg,
    rgba(232, 201, 122, 0.45) 0 1px,
    transparent 1px 24px
  );
  border-bottom: 1px solid rgba(143, 163, 155, 0.16);
}

.footer-inner {
  width: 100%;
  max-width: var(--wrap-wide);
  margin-inline: auto;
  padding: clamp(36px, 5vw, 64px) var(--gutter) clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: clamp(28px, 4vw, 64px);
}

.brand--footer { margin-bottom: 18px; }

.footer-line {
  max-width: 34ch;
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--paper-70);
}

.footer-contact {
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(143, 163, 155, 0.18);
  padding-top: 18px;
}

.footer-contact li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.meta-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--moss);
  padding-top: 3px;
}

.meta-value {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--paper-70);
  word-break: break-word;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.footer-col-title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--stamp);
  border-bottom: 1px solid rgba(232, 201, 122, 0.3);
}

.footer-col ul { display: grid; gap: 2px; }

.footer-col a {
  display: inline-block;
  padding: 5px 0;
  font-size: 14px;
  color: rgba(242, 235, 221, 0.78);
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}
.footer-col a:hover {
  color: var(--cyan);
  padding-left: 4px;
}

.footer-base {
  width: 100%;
  max-width: var(--wrap-wide);
  margin-inline: auto;
  padding: 16px var(--gutter) 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(143, 163, 155, 0.18);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--moss);
}

.footer-legal { margin: 0; }

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.footer-legal-links a { color: var(--moss); }
.footer-legal-links a:hover { color: var(--cyan); }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }

  .primary-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px var(--gutter) 24px;
    background: var(--cabin);
    border-bottom: 1px solid rgba(32, 227, 255, 0.3);
    box-shadow: 0 34px 60px -34px #000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s var(--ease);
    max-height: calc(100vh - 100%);
    overflow-y: auto;
  }

  .site-header[data-open] .primary-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid rgba(143, 163, 155, 0.16);
  }

  .nav-list li + li { border-top: 1px solid rgba(143, 163, 155, 0.16); }

  .nav-list a {
    padding: 15px 6px;
    font-size: 15px;
    letter-spacing: 0.12em;
    border: 0;
    background: none;
  }

  .nav-list a:hover { background: rgba(32, 227, 255, 0.06); border: 0; }

  .nav-list a[aria-current="page"] {
    color: var(--cyan);
    background: rgba(32, 227, 255, 0.07);
    border: 0;
  }

  .nav-list a[aria-current="page"]::after {
    left: auto;
    right: 6px;
    top: 50%;
    bottom: auto;
    width: 6px;
    height: 6px;
    margin-top: -3px;
  }

  .header-cta {
    margin-top: 18px;
    padding: 13px 20px;
    font-size: 13px;
    justify-content: center;
    clip-path: none;
  }

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

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .brand-mark { width: 36px; height: 36px; font-size: 21px; }
  .brand-name { font-size: 17px; }
  .brand-tag { font-size: 9.5px; letter-spacing: 0.1em; }
  .header-inner { gap: 14px; padding-top: 12px; padding-bottom: 12px; }
  .grid-12 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-nav { grid-template-columns: minmax(0, 1fr); }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .figure--21x9 { aspect-ratio: 16 / 9; }
  .header-cta { width: 100%; }
}

/* ============================================================
   动效偏好
   ============================================================ */
@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;
  }

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

  .status-dot { animation: none; }
  .header-progress { transition: none; }
}
