/* ==========================================================================
   B体育登录 — 共享样式表 /assets/site.css
   深墨绿暗场 + 荧光青数据高亮 + 琥珀橙实时状态
   ========================================================================== */

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

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

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

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

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

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

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

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

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #05100D;
  --panel: #0B1F19;
  --panel-raise: #143028;
  --line: #2C4A42;
  --accent: #2BF0C4;
  --accent-soft: #9CFFE6;
  --amber: #FFA630;
  --text: #E9F5F0;
  --muted: #93ADA4;
  --zebra: #0F2620;
  --alert: #FF6E5B;

  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "IBM Plex Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --font-serif: "Noto Serif SC", "Songti SC", Georgia, serif;

  --shell: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 2px;
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 86% -8%, rgba(43, 240, 196, 0.10), transparent 46%),
    linear-gradient(to right, rgba(44, 74, 66, 0.22) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(44, 74, 66, 0.18) 1px, transparent 1px);
  background-size: auto, 96px 96px, 96px 96px;
  background-repeat: no-repeat, repeat, repeat;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.28;
  color: var(--text);
}

h1 { font-size: clamp(24px, 3.4vw, 36px); }
h2 { font-size: clamp(20px, 2.4vw, 24px); }
h3 { font-size: 18px; }
h4 { font-size: 16px; }

::selection { background: var(--accent); color: var(--ink); }

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

/* ---------- 4. Skip link ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-180%);
  padding: 10px 18px;
  background: var(--accent);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  transition: transform 0.16s ease;
}

.skip-link:focus { transform: translateY(0); }

/* ---------- 5. 头部浮岛 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 10px var(--gutter);
  background: rgba(5, 16, 13, 0.88);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid rgba(44, 74, 66, 0.6);
}

.reading-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(44, 74, 66, 0.45);
  pointer-events: none;
  z-index: 2;
}

.reading-meter-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(43, 240, 196, 0.5);
  transition: width 0.12s linear;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: var(--shell);
  margin: 0 auto;
  min-height: 62px;
  padding: 6px 8px 6px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 31, 25, 0.94);
  box-shadow: 0 14px 34px -26px rgba(0, 0, 0, 0.95);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 0 0 auto;
  min-width: 0;
}

.brand-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.brand-mark {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--text);
  white-space: nowrap;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border: 1px solid rgba(43, 240, 196, 0.42);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--accent);
  white-space: nowrap;
}

.brand-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.09em;
  color: var(--muted);
  white-space: nowrap;
}

.nav-island {
  display: flex;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
}

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

.nav-item { display: flex; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px 0 16px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.03em;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--accent-soft);
  background: rgba(43, 240, 196, 0.08);
}

.nav-link[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
  background: rgba(43, 240, 196, 0.1);
}

.nav-link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  width: 3px;
  height: 15px;
  transform: translateY(-50%);
  background: var(--accent);
  border-radius: 2px;
}

.header-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  margin-left: auto;
}

.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(255, 166, 48, 0.36);
  border-radius: 999px;
  background: rgba(255, 166, 48, 0.07);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--amber);
  white-space: nowrap;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  animation: live-pulse 2s ease-out infinite;
}

@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 166, 48, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(255, 166, 48, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 166, 48, 0); }
}

.live-text { color: var(--amber); }

.live-time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ---------- 6. 按钮 ---------- */
.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);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
}

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

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--accent);
  color: var(--accent-soft);
}

.btn--sm {
  min-height: 36px;
  padding: 0 16px;
  font-size: 13px;
}

/* ---------- 7. 移动导航开关 ---------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text);
  transition: border-color 0.18s ease, color 0.18s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  border-color: var(--accent);
  color: var(--accent-soft);
}

.nav-toggle-bars {
  display: grid;
  gap: 4px;
  width: 14px;
}

.nav-toggle-bars span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.18s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:first-child {
  transform: translateY(2.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:last-child {
  transform: translateY(-2.75px) rotate(-45deg);
}

.nav-toggle-label { line-height: 1; }

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 96px);
  background: var(--panel);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background-image: repeating-linear-gradient(to right, rgba(44, 74, 66, 0.9) 0 1px, transparent 1px 14px);
  pointer-events: none;
}

.footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
  padding: clamp(36px, 5vw, 60px) var(--gutter) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(4, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
  padding-top: 8px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.footer-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-mark {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--text);
}

.footer-tagline {
  max-width: 32ch;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.footer-contact-line {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-contact-key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.footer-contact-value {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text);
  overflow-wrap: anywhere;
}

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

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--accent);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

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

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 34px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.16s ease;
}

.footer-link::before {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  margin-right: 0;
  background: var(--accent);
  transition: width 0.18s ease, margin-right 0.18s ease;
}

.footer-link:hover,
.footer-link:focus-visible { color: var(--accent-soft); }

.footer-link:hover::before,
.footer-link:focus-visible::before {
  width: 12px;
  margin-right: 8px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: clamp(28px, 4vw, 44px);
  padding: 18px 0 30px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.footer-legal { max-width: 62ch; }
.footer-copy { color: var(--muted); }

/* ---------- 9. 布局 ---------- */
.container {
  width: 100%;
  max-width: var(--shell);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { position: relative; padding: clamp(36px, 5.5vw, 72px) 0; }
.section--tight { padding: clamp(22px, 3.5vw, 44px) 0; }

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap, 16px);
}

.grid {
  display: grid;
  gap: clamp(14px, 2vw, 24px);
  grid-template-columns: minmax(0, 1fr);
}

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

/* ---------- 10. 堆叠面板 ---------- */
.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.6vw, 32px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.panel[data-section] { scroll-margin-top: 112px; }

.panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 0;
  background: var(--accent);
  transition: height 0.35s ease;
}

.panel.is-active {
  border-color: rgba(43, 240, 196, 0.4);
  box-shadow: inset 0 0 0 1px rgba(43, 240, 196, 0.07);
}

.panel.is-active::before { height: 100%; }

.panel-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.panel-index {
  flex: 0 0 auto;
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.panel.is-active .panel-index {
  color: var(--accent);
  border-color: rgba(43, 240, 196, 0.5);
}

.panel-title {
  font-size: clamp(17px, 2vw, 21px);
  letter-spacing: 0.04em;
}

/* ---------- 11. 通用部件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
}

.muted { color: var(--muted); }

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

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.card {
  position: relative;
  padding: clamp(16px, 2vw, 24px);
  background: var(--panel-raise);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease;
}

.card:hover { border-color: rgba(43, 240, 196, 0.45); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.tag--live {
  color: var(--amber);
  border-color: rgba(255, 166, 48, 0.4);
}

.tag--accent {
  color: var(--accent);
  border-color: rgba(43, 240, 196, 0.4);
}

.data-rail {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-right: 16px;
  border-right: 1px solid var(--line);
}

/* ---------- 12. 图片容器 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-raise);
}

.media-frame > img,
.media-frame > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.82) contrast(1.04);
}

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

.media-frame-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: rgba(5, 16, 13, 0.82);
  border-top: 1px solid var(--line);
}

/* ---------- 13. 面包屑与正文 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.breadcrumbs li { display: inline-flex; align-items: center; }
.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line);
}

.breadcrumbs a { color: var(--muted); transition: color 0.16s ease; }
.breadcrumbs a:hover,
.breadcrumbs a:focus-visible { color: var(--accent-soft); }
.breadcrumbs [aria-current="page"] { color: var(--accent); }

.prose {
  max-width: 70ch;
  font-size: 17px;
  line-height: 1.78;
  color: var(--text);
}

.prose > * + * { margin-top: 1em; }
.prose h2,
.prose h3 { margin-top: 1.9em; margin-bottom: 0.5em; }
.prose ul,
.prose ol { padding-left: 1.25em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose a {
  color: var(--accent-soft);
  border-bottom: 1px solid rgba(43, 240, 196, 0.35);
}
.prose a:hover { border-bottom-color: var(--accent); }
.prose strong { color: var(--accent-soft); font-weight: 700; }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  color: var(--accent);
  background: var(--zebra);
  padding: 1px 6px;
  border-radius: var(--radius);
}

/* ---------- 14. 平板 ---------- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand { grid-column: 1 / -1; }

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

/* ---------- 15. 移动端头部 ---------- */
@media (max-width: 900px) {
  html { scroll-padding-top: 132px; }

  .site-header { padding: 8px 12px; }

  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "brand side toggle"
      "nav nav nav";
    align-items: center;
    gap: 6px 8px;
    min-height: 0;
    padding: 8px 10px 8px 14px;
    border-radius: 18px;
  }

  .brand { grid-area: brand; }
  .header-side { grid-area: side; margin-left: 0; }
  .nav-toggle { grid-area: toggle; display: inline-flex; }
  .header-cta { display: none; }

  .nav-island {
    grid-area: nav;
    display: block;
    flex: none;
    width: 100%;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    gap: 2px;
    padding-top: 6px;
    margin-top: 6px;
    border-top: 1px solid var(--line);
  }

  .nav-island[data-open="true"] .nav-list { display: flex; }

  .nav-item { width: 100%; }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    min-height: 46px;
    padding: 0 12px 0 18px;
    border-radius: 6px;
    font-size: 15px;
  }

  .nav-link[aria-current="page"] { background: rgba(43, 240, 196, 0.08); }

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

  .data-rail {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 16px;
  }
}

/* ---------- 16. 手机 ---------- */
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom { font-size: 11.5px; }
  .panel-head { flex-wrap: wrap; gap: 8px; }
}

@media (max-width: 560px) {
  .live-text { display: none; }
  .brand-meta { display: none; }
  .brand-mark { font-size: 15px; }
  .header-inner { padding: 8px 8px 8px 12px; }
  .live-chip { padding: 0 8px; gap: 6px; }
}

/* ---------- 17. 桌面数据轨吸附 ---------- */
@media (min-width: 1025px) {
  .data-rail {
    position: sticky;
    top: 96px;
    align-self: start;
    height: max-content;
  }
}

/* ---------- 18. 减弱动效 ---------- */
@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;
  }

  .live-dot {
    animation: none;
    box-shadow: 0 0 0 3px rgba(255, 166, 48, 0.22);
  }

  .reading-meter-fill { transition: none; }
  .panel::before { transition: none; }
}
