/* ===================================================================
   B体育主站 · 共享样式 /assets/site.css
   夜色赛场 + 电子记分牌 · 侧边品牌轨道 + 居中刊头导航
   =================================================================== */

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

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

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

ul, ol { list-style: none; }

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

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

/* ---------- 2. 设计令牌 ---------- */
:root {
  --ink: #0B1026;
  --panel: #111827;
  --indigo: #1E2A78;
  --neon: #19F7C8;
  --orange: #FF6B2C;
  --alert: #FF3D5E;
  --violet: #8B5CF6;
  --paper: #F4F7FF;
  --text: #C9D4EA;
  --line: #2A355C;
  --muted: #8C9AC4;
  --dim: #61719F;

  --font-title: 'Source Han Sans SC', 'Noto Sans SC', 'PingFang SC', sans-serif;
  --font-num: 'JetBrains Mono', 'Roboto Mono', 'SFMono-Regular', monospace;
  --font-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  --radius: 4px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shell: min(1200px, 100% - 2.4rem);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background:
    radial-gradient(1200px 620px at 84% -10%, rgba(139, 92, 246, .18), transparent 62%),
    radial-gradient(900px 520px at -12% 14%, rgba(25, 247, 200, .10), transparent 58%),
    var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-title);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -.012em;
  color: var(--paper);
}

h1 { font-size: clamp(34px, 5.4vw, 68px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: clamp(19px, 2.1vw, 24px); }
h4 { font-size: 17px; }

p { max-width: 74ch; }

a { color: var(--neon); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--paper); }

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

small { font-size: .82em; }

/* 数字与比分 */
.num {
  font-family: var(--font-num);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.012em;
}

/* ---------- 4. 辅助工具 ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.is-hidden { display: none !important; }

.skip-link {
  position: absolute;
  left: 14px;
  top: -70px;
  z-index: 220;
  padding: 11px 20px;
  background: var(--neon);
  color: #04121a;
  font-weight: 700;
  font-size: 14px;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 16px 34px -18px rgba(25, 247, 200, .95);
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 0; color: #04121a; }

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

/* ---------- 5. 布局容器与通用组件 ---------- */
.container {
  width: var(--shell);
  margin-inline: auto;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--neon);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--neon), transparent);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(18px, 2.4vw, 32px);
}

.section-title { font-size: clamp(26px, 3.4vw, 40px); }

.section-note {
  font-size: 14px;
  color: var(--muted);
  max-width: 52ch;
}

.divider {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--line), rgba(42, 53, 92, .1));
  margin-block: clamp(24px, 3vw, 44px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  padding-top: 18px;
  font-family: var(--font-num);
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--dim);
}
.breadcrumb a { color: var(--text); }
.breadcrumb a:hover { color: var(--neon); }
.breadcrumb li + li::before {
  content: "/";
  margin-right: 9px;
  color: var(--line);
}

.grid { display: grid; gap: clamp(14px, 2vw, 24px); grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* 卡片与面板 */
.card {
  position: relative;
  padding: clamp(16px, 2vw, 24px);
  background:
    linear-gradient(180deg, rgba(17, 24, 39, .96), rgba(11, 16, 38, .96));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon), var(--violet) 48%, transparent);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(42, 53, 92, .22) 0 1px, transparent 1px 48px);
  opacity: .5;
  pointer-events: none;
}
.card > * { position: relative; z-index: 1; }
.card:hover { transform: translateY(-3px); border-color: rgba(25, 247, 200, .45); }

.panel {
  position: relative;
  background: rgba(17, 24, 39, .84);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(16px, 2vw, 22px);
}

/* 标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: rgba(30, 42, 120, .7);
  color: var(--text);
  white-space: nowrap;
}
.tag--live {
  background: rgba(255, 61, 94, .16);
  border-color: rgba(255, 61, 94, .55);
  color: #FF8EA1;
}
.tag--hot {
  background: rgba(255, 107, 44, .18);
  border-color: rgba(255, 107, 44, .58);
  color: #FFB08A;
}
.tag--data {
  background: rgba(25, 247, 200, .12);
  border-color: rgba(25, 247, 200, .45);
  color: var(--neon);
}

/* 图片容器（页面阶段直接放 img） */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  background:
    linear-gradient(140deg, rgba(30, 42, 120, .75), rgba(17, 24, 39, .95)),
    repeating-linear-gradient(45deg, rgba(42, 53, 92, .55) 0 1px, transparent 1px 12px);
}
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.06) contrast(1.05);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(11, 16, 38, .88));
  pointer-events: none;
}
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .2s var(--ease),
              color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }

.btn-solid {
  background: var(--orange);
  border-color: var(--orange);
  color: #14060A;
  box-shadow: 0 12px 26px -16px rgba(255, 107, 44, .95);
}
.btn-solid:hover { background: #FF8049; color: #14060A; }

.btn-ghost {
  background: rgba(25, 247, 200, .07);
  border-color: rgba(25, 247, 200, .38);
  color: var(--neon);
}
.btn-ghost:hover { background: rgba(25, 247, 200, .16); color: var(--paper); }

.btn-line {
  background: transparent;
  border-color: var(--line);
  color: var(--paper);
}
.btn-line:hover { border-color: var(--neon); color: var(--neon); }

.btn--block { width: 100%; }

/* 筛选按钮组 */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-btn {
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(30, 42, 120, .42);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.filter-btn:hover { border-color: var(--neon); color: var(--neon); }
.filter-btn[aria-pressed="true"] {
  background: var(--neon);
  border-color: var(--neon);
  color: #04121A;
}

/* ---------- 6. 报头 ---------- */
.scroll-progress {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  z-index: 5;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--neon), var(--violet) 52%, var(--orange));
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: linear-gradient(120deg, #0B1026 0%, #111827 58%, #141D3A 100%);
  border-bottom: 1px solid var(--line);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon) 16%, var(--violet) 42%, var(--orange) 68%, transparent);
  opacity: .9;
  pointer-events: none;
}

.header-rail { display: none; }

.header-body {
  min-width: 0;
  padding: 0 clamp(14px, 2.6vw, 34px);
}

/* 状态条 */
.header-ticker {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 36px;
  border-bottom: 1px dashed var(--line);
  overflow: hidden;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 11px;
  border: 1px solid rgba(25, 247, 200, .35);
  border-radius: 999px;
  background: rgba(25, 247, 200, .08);
  color: var(--neon);
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  white-space: nowrap;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--alert);
  box-shadow: 0 0 10px rgba(255, 61, 94, .95);
  animation: pulse 1.9s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .42; transform: scale(.7); }
}
.ticker-track {
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ticker-meta {
  margin-left: auto;
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--dim);
  white-space: nowrap;
}

/* 刊头 */
.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 16px 0 14px;
}
.masthead-stamp {
  font-family: var(--font-num);
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: center;
  color: var(--paper);
}
.brand:hover { color: var(--paper); }
.brand-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 10px 2px 10px 2px;
  background: linear-gradient(135deg, var(--neon), var(--violet) 55%, var(--orange));
  color: #07101F;
  font-family: var(--font-num);
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 1px rgba(25, 247, 200, .45), 0 14px 30px -16px rgba(25, 247, 200, .85);
}
.brand-mark--lg { width: 58px; height: 58px; font-size: 29px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name {
  font-family: var(--font-title);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 900;
  letter-spacing: .02em;
  color: var(--paper);
}
.brand-tagline { font-size: 11.5px; letter-spacing: .06em; color: var(--muted); }

.masthead-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

/* 移动端栏目按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(30, 42, 120, .38);
  color: var(--paper);
  font-size: 13px;
  font-weight: 700;
}
.nav-toggle-bars {
  position: relative;
  flex: none;
  width: 18px;
  height: 12px;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s var(--ease);
}
.nav-toggle-bars::before { top: 1px; }
.nav-toggle-bars::after { bottom: 1px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-4px) rotate(-45deg); }

/* 主导航 */
.site-nav { position: relative; }
.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}
.nav-list a {
  display: block;
  padding: 10px 18px;
  border-bottom: 3px solid transparent;
  border-radius: 2px 2px 0 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  transition: color .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease);
}
.nav-list a:hover {
  color: var(--paper);
  background: rgba(30, 42, 120, .58);
}
.nav-list a[aria-current="page"] {
  color: #04121A;
  background: linear-gradient(180deg, var(--neon), #12D9B0);
  border-bottom-color: var(--orange);
}
.nav-list a[aria-current="page"]:hover { color: #04121A; }

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 110px);
  border-top: 1px solid var(--line);
  background: linear-gradient(168deg, #0B1026 0%, #111827 46%, #0E1734 100%);
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(115deg, transparent 60%, rgba(139, 92, 246, .16) 60%, rgba(139, 92, 246, .16) 71%, transparent 71%),
    repeating-linear-gradient(90deg, rgba(42, 53, 92, .3) 0 1px, transparent 1px 96px);
  pointer-events: none;
}
.footer-glow {
  position: absolute;
  top: -46%;
  right: -18%;
  width: min(680px, 82vw);
  height: min(680px, 82vw);
  background: radial-gradient(circle at 50% 50%, rgba(25, 247, 200, .18), transparent 62%);
  pointer-events: none;
}
.footer-inner {
  position: relative;
  z-index: 1;
  width: var(--shell);
  margin-inline: auto;
  padding: clamp(40px, 5vw, 72px) 0 clamp(28px, 3.4vw, 46px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.55fr) minmax(0, .95fr);
  gap: clamp(26px, 3.4vw, 54px);
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.footer-note { font-size: 14.5px; color: var(--text); max-width: 36ch; }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.footer-col-title {
  margin-bottom: 12px;
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .24em;
  color: var(--neon);
}
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a {
  font-size: 14.5px;
  color: var(--text);
}
.footer-links a:hover { color: var(--neon); }

.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.contact-line {
  font-family: var(--font-num);
  font-size: 13.5px;
  color: var(--paper);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: none;
}
.contact-label {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--dim);
}
.contact-note {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-base {
  position: relative;
  z-index: 1;
  width: var(--shell);
  margin-inline: auto;
  padding: 18px 0 30px;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  font-family: var(--font-num);
  font-size: 11.5px;
  letter-spacing: .14em;
  color: var(--dim);
}
.footer-copy { max-width: none; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 16px; max-width: none; }
.footer-legal a { color: var(--dim); }
.footer-legal a:hover { color: var(--neon); }
.footer-icp { margin-left: auto; max-width: none; }

/* ---------- 8. 响应式 ---------- */
@media (min-width: 1080px) {
  .site-header {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    align-items: stretch;
  }
  .header-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px 0 18px;
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(30, 42, 120, .6), rgba(11, 16, 38, .22));
  }
  .rail-name {
    writing-mode: vertical-rl;
    font-family: var(--font-num);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .42em;
    text-transform: uppercase;
    color: var(--neon);
  }
  .rail-ticks {
    flex: 1 1 auto;
    width: 9px;
    min-height: 42px;
    border-left: 1px solid rgba(42, 53, 92, .7);
    background-image: repeating-linear-gradient(180deg, var(--line) 0 1px, transparent 1px 13px);
    background-position: 1px 0;
  }
  .rail-code {
    writing-mode: vertical-rl;
    font-family: var(--font-num);
    font-size: 9px;
    letter-spacing: .26em;
    color: var(--dim);
  }
}

@media (max-width: 1023px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 899px) {
  .header-ticker { height: 32px; gap: 10px; }
  .ticker-track { display: none; }
  .ticker-meta { font-size: 10px; letter-spacing: .14em; }

  .masthead {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 12px;
    padding: 14px 0 12px;
  }
  .masthead-stamp { display: none; }
  .masthead-tools { justify-self: center; flex-wrap: wrap; justify-content: center; }
  .brand-mark { width: 40px; height: 40px; font-size: 20px; }
  .nav-toggle { display: inline-flex; }

  .site-nav { border-top: 1px solid var(--line); }
  .nav-list {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 10px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .nav-list::-webkit-scrollbar { display: none; }
  .nav-list li { flex: none; }
  .nav-list a {
    padding: 8px 15px;
    border-bottom: 0;
    border-radius: 999px;
    background: rgba(30, 42, 120, .45);
    font-size: 13.5px;
    white-space: nowrap;
  }
  .nav-list a[aria-current="page"] {
    background: linear-gradient(180deg, var(--neon), #12D9B0);
    color: #04121A;
  }
  .site-nav[data-open] .nav-list {
    flex-wrap: wrap;
    overflow: visible;
  }

  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-base { flex-direction: column; align-items: flex-start; }
  .footer-icp { margin-left: 0; }
}

@media (max-width: 639px) {
  .btn { padding: 9px 14px; font-size: 13px; }
  .footer-nav { grid-template-columns: 1fr; }
  .footer-legal { gap: 12px; }
}

/* ---------- 9. 无障碍动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .status-dot { animation: none; }
  .btn:hover,
  .card:hover { transform: none; }
}
