/* =========================================================
   BSPORT 看台 · /assets/site.css
   共享外壳样式：reset / 变量 / 中文排版 / 页头 / 页脚 / 基础组件
   ========================================================= */

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

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

body { margin: 0; }

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

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

a { color: inherit; }

button {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4, h5, h6, p, figure { margin: 0; }

/* ---------- 2. 设计变量 ---------- */
:root {
  --ink: #0A1A17;
  --ink-2: #101413;
  --ink-3: #14302A;
  --neon: #35E6A8;
  --neon-soft: #7FF0CE;
  --ember: #FF5C33;
  --amber: #FFB020;
  --paper: #F2F7F5;
  --muted: #9BB0A9;
  --body-text: #D6E3DF;
  --glass: rgba(242, 247, 245, 0.08);
  --line: rgba(242, 247, 245, 0.12);
  --line-strong: rgba(242, 247, 245, 0.24);

  --font-display: "Barlow Condensed", "Oswald", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 3px;
  --wrap-max: 1240px;
  --gutter: clamp(16px, 4.2vw, 40px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-lift: 0 10px 28px rgba(0, 0, 0, 0.42);
}

/* ---------- 3. 基础版式 ---------- */
body {
  background-color: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* 看台灯光叠加：固定在最底层，不影响内容可读性 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(58% 42% at 10% 0%, rgba(53, 230, 168, 0.11), transparent 62%),
    radial-gradient(46% 38% at 94% 6%, rgba(255, 92, 51, 0.08), transparent 60%),
    radial-gradient(70% 50% at 50% 108%, rgba(20, 48, 42, 0.85), transparent 70%);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.015em;
  color: var(--paper);
}

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

::selection {
  background: var(--neon);
  color: #04160F;
}

/* ---------- 4. 焦点与跳转 ---------- */
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 2px;
  box-shadow: inset 0 0 0 2px rgba(53, 230, 168, 0.28);
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 14px;
  top: -72px;
  z-index: 200;
  padding: 11px 18px;
  background: var(--neon);
  color: #04160F;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top 0.18s var(--ease);
}

.skip-link:focus {
  top: 12px;
}

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

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

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

.section__head {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(22px, 3vw, 40px);
}

.section__title {
  font-size: clamp(28px, 4.2vw, 46px);
  letter-spacing: 0.01em;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--neon);
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--neon);
  flex: none;
}

.lede {
  max-width: 62ch;
  font-size: clamp(16px, 1.5vw, 18.5px);
  line-height: 1.8;
  color: var(--body-text);
}

.prose {
  max-width: 44rem;
  font-size: 17px;
  line-height: 1.8;
  color: var(--body-text);
}

.prose p { margin-bottom: 1.1em; }
.prose p:last-child { margin-bottom: 0; }

.prose h3 {
  font-size: clamp(20px, 2.4vw, 26px);
  margin: 1.9em 0 0.65em;
}

.prose ul,
.prose ol {
  padding-left: 1.35em;
  margin-bottom: 1.1em;
  list-style: disc;
}

.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.45em; }
.prose a { color: var(--neon); text-underline-offset: 3px; }

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

.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }

@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 640px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.aside {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 40px);
}

@media (min-width: 900px) {
  .aside {
    grid-template-columns: minmax(200px, 3fr) minmax(0, 7fr);
  }
}

.aside__rail { min-width: 0; }
.aside__body { min-width: 0; }

/* ---------- 6. 按钮 ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--paper);
  --btn-bd: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 19px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s var(--ease), background-color 0.18s var(--ease),
              border-color 0.18s var(--ease), color 0.18s var(--ease),
              box-shadow 0.18s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  --btn-bg: var(--neon);
  --btn-fg: #04160F;
  --btn-bd: var(--neon);
  font-weight: 700;
}

.btn--primary:hover {
  --btn-bg: var(--neon-soft);
  --btn-bd: var(--neon-soft);
  box-shadow: 0 10px 26px rgba(53, 230, 168, 0.24);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--neon-soft);
  --btn-bd: rgba(53, 230, 168, 0.45);
}

.btn--ghost:hover {
  --btn-fg: var(--neon);
  --btn-bd: var(--neon);
  background-color: rgba(53, 230, 168, 0.09);
}

.btn--ember {
  --btn-bg: var(--ember);
  --btn-fg: #2A0B03;
  --btn-bd: var(--ember);
  font-weight: 700;
}

.btn--ember:hover {
  box-shadow: 0 10px 26px rgba(255, 92, 51, 0.26);
}

.btn--sm {
  padding: 8px 15px;
  font-size: 15.5px;
  letter-spacing: 0.06em;
}

/* ---------- 7. 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 26, 23, 0.88);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--line);
}

.header-top {
  background: rgba(16, 20, 19, 0.78);
  border-bottom: 1px solid rgba(242, 247, 245, 0.07);
}

.header-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 20px;
  min-height: 50px;
  padding-block: 7px;
}

.header-top__tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand__mark {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--neon);
  color: #04160F;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(53, 230, 168, 0.5), 0 0 22px rgba(53, 230, 168, 0.26);
}

.brand__text {
  display: block;
  min-width: 0;
}

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.18;
  color: var(--paper);
  white-space: nowrap;
}

.brand__tagline {
  display: block;
  font-size: 12.5px;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: var(--muted);
}

/* 端侧切换 */
.device-switch {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: rgba(20, 48, 42, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.device-switch__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.05em;
  padding: 5px 13px;
  border-radius: 2px;
  cursor: pointer;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}

.device-switch__btn:hover { color: var(--paper); }

.device-switch__btn[aria-pressed="true"] {
  background: var(--neon);
  color: #04160F;
  font-weight: 700;
}

/* 语言入口 */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  appearance: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.05em;
  padding: 7px 13px;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}

.lang-switch::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 9px var(--neon);
  flex: none;
}

.lang-switch:hover {
  border-color: rgba(53, 230, 168, 0.5);
  color: var(--neon-soft);
}

/* 下层栏目条 */
.header-main__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 9px;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 11px;
  padding: 9px 15px;
  background: rgba(20, 48, 42, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--paper);
  transition: border-color 0.18s var(--ease);
}

.nav-toggle:hover { border-color: rgba(53, 230, 168, 0.5); }

.nav-toggle__bars {
  display: block;
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--neon);
  flex: none;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--neon);
}

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

.site-nav { display: block; }

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
}

.site-nav__link {
  display: block;
  position: relative;
  padding: 12px 16px;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.07em;
  border-bottom: 2px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.site-nav__link:hover { color: var(--paper); }

.site-nav__link[aria-current="page"] {
  color: var(--neon);
  border-bottom-color: var(--neon);
}

/* 滚动进度线 */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--neon), var(--neon-soft));
  box-shadow: 0 0 12px rgba(53, 230, 168, 0.75);
  pointer-events: none;
  will-change: width;
}

@media (max-width: 1080px) {
  .header-cta .btn--ghost { display: none; }
}

@media (max-width: 960px) {
  .header-main__inner { flex-wrap: wrap; }

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

  .site-nav {
    display: none;
    order: 3;
    flex-basis: 100%;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .site-nav[data-open] {
    display: block;
    max-height: calc(100vh - 190px);
    overflow-y: auto;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav__link {
    padding: 14px 10px;
    font-size: 19px;
    border-bottom: 1px solid rgba(242, 247, 245, 0.07);
    border-left: 3px solid transparent;
  }

  .site-nav__link[aria-current="page"] {
    border-bottom-color: rgba(242, 247, 245, 0.07);
    border-left-color: var(--neon);
    background: rgba(53, 230, 168, 0.07);
  }
}

@media (max-width: 720px) {
  .brand__tagline { display: none; }
  .brand__mark { width: 32px; height: 32px; font-size: 18px; }
  .brand__name { font-size: 19px; }
  .device-switch { display: none; }
}

/* ---------- 8. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 110px);
  background: var(--ink-2);
  border-top: 1px solid var(--line);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--neon) 0%,
    var(--neon) 20%,
    rgba(53, 230, 168, 0) 48%,
    rgba(255, 92, 51, 0.55) 78%,
    var(--ember) 100%
  );
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 4vw, 42px);
  padding-block: clamp(38px, 5.5vw, 68px) clamp(26px, 3.5vw, 42px);
}

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1060px) {
  .footer-grid {
    grid-template-columns: 1.6fr 0.8fr 0.8fr 0.8fr 1.4fr;
  }
}

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

.footer-brand__summary {
  margin-top: 16px;
  max-width: 38ch;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
}

.footer-brand__meta {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  line-height: 1.7;
  color: rgba(155, 176, 169, 0.72);
}

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

.footer-col__title {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--neon);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.footer-col__list {
  display: grid;
  gap: 11px;
}

.footer-col__list a {
  display: inline-block;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}

.footer-col__list a:hover {
  color: var(--neon);
  transform: translateX(3px);
}

.footer-contact {
  display: grid;
  gap: 14px;
}

.footer-contact__key {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 3px;
}

.footer-contact__val {
  display: block;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--paper);
  word-break: break-word;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 22px;
  padding-block: 18px 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.footer-copy { margin: 0; }

.footer-icp {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- 9. 基础组件 ---------- */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

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

.breadcrumb li + li::before {
  content: "/";
  margin-right: 7px;
  color: rgba(155, 176, 169, 0.55);
}

.panel {
  position: relative;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 28px);
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease),
              box-shadow 0.18s var(--ease);
}

.panel:hover {
  transform: translateY(-2px);
  border-color: rgba(53, 230, 168, 0.45);
  box-shadow: var(--shadow-lift);
}

.panel--glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-color: var(--line-strong);
}

.panel--flat {
  background: var(--ink-3);
}

.panel--flat:hover {
  transform: none;
  border-color: var(--line-strong);
  box-shadow: none;
}

.stat {
  display: grid;
  gap: 4px;
}

.stat__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--ember);
}

.stat__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
}

.tag--neon {
  color: var(--neon);
  border-color: rgba(53, 230, 168, 0.42);
}

.tag--amber {
  color: var(--amber);
  border-color: rgba(255, 176, 32, 0.42);
}

.tag--ember {
  color: var(--ember);
  border-color: rgba(255, 92, 51, 0.45);
}

/* 图片容器基础规则（页面阶段放入 <img> 即可） */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(140deg, var(--ink-3), var(--ink-2));
}

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

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--3x2 { aspect-ratio: 3 / 2; }
.media--wide { aspect-ratio: 21 / 9; }

.media--ph::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 38%, rgba(53, 230, 168, 0.16) 50%, transparent 62%),
    repeating-linear-gradient(90deg, rgba(242, 247, 245, 0.05) 0 1px, transparent 1px 76px);
}

.media__cap {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 5px 12px;
  border-radius: 2px;
  background: rgba(10, 26, 23, 0.8);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--paper);
}

/* 联赛轨道 */
.rail {
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--line);
}

.rail__link {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: -1px;
  padding: 10px 14px;
  border-left: 2px solid transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.45;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease),
              background-color 0.18s var(--ease);
}

.rail__link:hover {
  color: var(--paper);
  background: rgba(53, 230, 168, 0.06);
}

.rail__link[aria-current="true"],
.rail__link[aria-selected="true"] {
  color: var(--neon);
  border-left-color: var(--neon);
  background: rgba(53, 230, 168, 0.09);
}

.rail__num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--amber);
  flex: none;
}

/* ---------- 10. 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

  .btn:hover,
  .panel:hover { transform: none; }

  .footer-col__list a:hover { transform: none; }
}
