/* ============================================================
   BEPLAY体育 · 全站共享样式
   夜间赛场控制台 / 墨绿场地 + 荧光数据 + 暖纸收束
   ============================================================ */

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

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

body {
  margin: 0;
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 12% -8%, rgba(92, 242, 214, 0.10), transparent 46%),
    radial-gradient(circle at 92% -4%, rgba(56, 189, 248, 0.07), transparent 42%);
  background-repeat: no-repeat;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

a {
  color: var(--cyan);
}

button {
  font: inherit;
}

/* ---------- 2. Tokens ---------- */
:root {
  --ink: #071A16;
  --ink-deep: #0E2A22;
  --glass: #1A3C32;
  --cyan: #5CF2D6;
  --flare: #FF5A36;
  --blue: #38BDF8;
  --paper: #F3EBDD;
  --paper-ink: #16201C;
  --white: #F5FFFB;
  --mist: #9DB8AE;
  --char: #0A0E0D;

  --line: rgba(92, 242, 214, 0.22);
  --line-soft: rgba(92, 242, 214, 0.12);
  --glass-bg: rgba(26, 60, 50, 0.42);

  --font-sans: "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", "Microsoft YaHei",
    system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Roboto Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, "Times New Roman", serif;

  --maxw: 1240px;
  --gutter: 24px;
  --radius: 3px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 3. 焦点与可访问性 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 300;
  padding: 10px 20px;
  background: var(--cyan);
  color: #04120F;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 2px;
  transform: translateY(-220%);
  transition: transform 0.22s var(--ease);
}

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

/* ---------- 4. 阅读进度线 ---------- */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 140;
  background: rgba(10, 14, 13, 0.65);
  pointer-events: none;
}

.read-progress > span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--blue) 52%, var(--flare) 100%);
  transition: transform 0.09s linear;
}

/* ---------- 5. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  color: var(--white);
  background: rgba(7, 26, 22, 0.94);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
}

.header-top {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: var(--maxw);
  min-height: 72px;
  margin: 0 auto;
  padding: 12px var(--gutter);
}

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  background: var(--cyan);
  color: #04120F;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.06em;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(92, 242, 214, 0.55), 0 0 22px rgba(92, 242, 214, 0.26);
}

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

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--white);
}

.brand-desc {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--mist);
}

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

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

.nav-list a {
  position: relative;
  display: inline-block;
  padding: 9px 11px;
  color: rgba(245, 255, 251, 0.76);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 2px;
  transition: color 0.18s var(--ease);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 3px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s var(--ease);
}

.nav-list a:hover {
  color: var(--white);
}

.nav-list a:hover::after,
.nav-list a:focus-visible::after {
  transform: scaleX(1);
}

.nav-list a[aria-current="page"] {
  color: var(--cyan);
  font-weight: 700;
}

.nav-list a[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--flare);
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  min-height: 44px;
  padding: 8px 14px;
  background: rgba(26, 60, 50, 0.72);
  color: var(--white);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  background: var(--cyan);
  border-radius: 1px;
  transition: background-color 0.18s var(--ease);
}

.nav-toggle[aria-expanded="true"] {
  background: var(--cyan);
  color: #04120F;
  border-color: var(--cyan);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span {
  background: #04120F;
}

/* 比分细条 */
.scoreline {
  background: rgba(10, 14, 13, 0.72);
  border-top: 1px solid var(--line-soft);
}

.scoreline-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 7px var(--gutter);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mist);
}

.scoreline-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--flare);
  box-shadow: 0 0 0 3px rgba(255, 90, 54, 0.2);
}

.scoreline-live {
  color: var(--flare);
  font-weight: 500;
  letter-spacing: 0.12em;
}

.scoreline-sep {
  color: rgba(157, 184, 174, 0.45);
}

.scoreline-mono {
  color: var(--cyan);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  background: var(--flare);
  color: #170502;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease),
    background-color 0.16s var(--ease), color 0.16s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -14px rgba(255, 90, 54, 0.95);
}

.btn:active {
  transform: translateY(0);
}

.btn--flare {
  background: var(--flare);
  color: #170502;
}

.btn--cyan {
  background: var(--cyan);
  color: #04120F;
}

.btn--cyan:hover {
  box-shadow: 0 12px 26px -14px rgba(92, 242, 214, 0.9);
}

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

.btn--ghost:hover {
  background: rgba(92, 242, 214, 0.1);
  box-shadow: none;
}

.nav-cta {
  flex: 0 0 auto;
  padding: 9px 18px;
  font-size: 14px;
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  margin-top: 0;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(14, 42, 34, 0.94) 0%, rgba(7, 26, 22, 1) 58%),
    var(--ink);
  border-top: 1px solid var(--line);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(240px, 1.15fr) 2fr;
  gap: 48px;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px var(--gutter) 44px;
}

.footer-brand {
  max-width: 330px;
}

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

.footer-statement {
  margin-top: 20px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--mist);
}

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

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

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

.footer-col a {
  display: inline-block;
  min-height: 30px;
  padding: 3px 0;
  color: rgba(245, 255, 251, 0.78);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.16s var(--ease);
}

.footer-col a:hover {
  color: var(--cyan);
}

.footer-contact-band {
  background: rgba(10, 14, 13, 0.5);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid rgba(10, 14, 13, 0.6);
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px var(--gutter);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--mist);
}

.footer-contact-item {
  color: var(--mist);
}

.footer-contact-item:first-child {
  color: var(--cyan);
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  margin-left: auto;
  padding: 8px 16px;
  background: rgba(26, 60, 50, 0.6);
  color: var(--cyan);
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease),
    color 0.16s var(--ease);
}

.copy-btn:hover {
  background: rgba(92, 242, 214, 0.14);
}

.copy-btn.is-copied {
  border-color: var(--flare);
  color: var(--flare);
}

.footer-base {
  background: var(--paper);
  color: var(--paper-ink);
}

.footer-base-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--gutter);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.footer-legal {
  color: var(--paper-ink);
}

.footer-hours {
  color: rgba(22, 32, 28, 0.72);
}

.to-top {
  margin-left: auto;
  min-height: 40px;
  padding: 8px 16px;
  background: transparent;
  color: var(--paper-ink);
  border: 1px solid rgba(22, 32, 28, 0.35);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease);
}

.to-top:hover {
  background: var(--paper-ink);
  color: var(--paper);
}

/* ---------- 8. 内容容器与基础组件 ---------- */
.page-shell {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.page-shell--narrow {
  max-width: 880px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

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

.breadcrumb li + li::before {
  content: "/";
  color: rgba(157, 184, 174, 0.45);
}

.breadcrumb a {
  color: var(--mist);
  text-decoration: none;
  transition: color 0.16s var(--ease);
}

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

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

.prose {
  max-width: 720px;
  font-size: 17px;
  line-height: 1.78;
  color: rgba(245, 255, 251, 0.86);
}

.prose > * + * {
  margin-top: 1.15em;
}

.prose h2,
.prose h3,
.prose h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: var(--white);
}

.prose h2 {
  margin-top: 2em;
  font-size: clamp(24px, 3vw, 34px);
}

.prose h3 {
  margin-top: 1.8em;
  font-size: clamp(19px, 2.2vw, 24px);
}

.prose p {
  margin: 0;
}

.prose a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose ul,
.prose ol {
  padding-left: 1.25em;
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li + li {
  margin-top: 0.5em;
}

.prose blockquote {
  margin: 1.7em 0;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--cyan);
  font-family: var(--font-serif);
  color: var(--mist);
}

.prose code,
.prose .mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.prose hr {
  height: 1px;
  margin: 2.4em 0;
  border: 0;
  background: var(--line);
}

.prose--paper {
  max-width: none;
  padding: 48px clamp(20px, 5vw, 64px);
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: var(--radius);
}

.prose--paper h2,
.prose--paper h3,
.prose--paper h4 {
  color: var(--paper-ink);
}

.prose--paper a {
  color: #0B5F4F;
}

.prose--paper blockquote {
  border-left-color: #0B5F4F;
  color: rgba(22, 32, 28, 0.72);
}

.prose--paper hr {
  background: rgba(22, 32, 28, 0.18);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

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

.tag--flare {
  background: rgba(255, 90, 54, 0.09);
  color: var(--flare);
  border-color: rgba(255, 90, 54, 0.4);
}

.tag--blue {
  background: rgba(56, 189, 248, 0.09);
  color: var(--blue);
  border-color: rgba(56, 189, 248, 0.38);
}

.rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--cyan) 0%, rgba(92, 242, 214, 0) 100%);
}

.panel {
  padding: 24px;
  background: linear-gradient(160deg, rgba(26, 60, 50, 0.55) 0%, rgba(14, 42, 34, 0.85) 100%);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.panel--solid {
  background: var(--ink-deep);
  border-color: rgba(92, 242, 214, 0.16);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.panel--paper {
  background: var(--paper);
  color: var(--paper-ink);
  border-color: rgba(22, 32, 28, 0.12);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.grid {
  display: grid;
  gap: 24px;
}

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

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

.grid--split {
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
}

/* 图片容器基础规则（页面阶段投放赛事图 / 设备示意图） */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(150deg, var(--glass) 0%, var(--ink-deep) 100%);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

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

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

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

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(92, 242, 214, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(92, 242, 214, 0.10) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.36;
  mix-blend-mode: screen;
  pointer-events: none;
}

.media-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--mist);
}

/* 滚动显现（类由 JS 添加，无 JS 时内容完整可见） */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- 9. 响应式 ---------- */
@media (max-width: 1080px) {
  .site-nav {
    gap: 16px;
  }

  .nav-list a {
    padding: 9px 8px;
    font-size: 14px;
  }

  .nav-list a::after {
    left: 8px;
    right: 8px;
  }

  .nav-cta {
    padding: 9px 14px;
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 96px;
  }

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

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 95;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 10px var(--gutter) 22px;
    background: rgba(7, 26, 22, 0.99);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 26px 48px -26px rgba(0, 0, 0, 0.95);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
  }

  .site-nav[data-open] {
    display: flex;
  }

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

  .nav-list a {
    display: block;
    padding: 15px 6px;
    font-size: 16px;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
  }

  .nav-list a::after {
    display: none;
  }

  .nav-list a[aria-current="page"] {
    color: var(--flare);
  }

  .nav-cta {
    width: 100%;
    margin-top: 16px;
  }

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

  .footer-brand {
    max-width: none;
  }

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

@media (max-width: 640px) {
  :root {
    --gutter: 18px;
  }

  .header-top {
    gap: 12px;
    min-height: 64px;
    padding: 10px var(--gutter);
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

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

  .brand-desc {
    display: none;
  }

  .scoreline-inner {
    font-size: 11px;
    gap: 8px;
  }

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

  .copy-btn {
    margin-left: 0;
  }

  .footer-base-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .to-top {
    margin-left: 0;
  }

  .prose {
    font-size: 16px;
  }

  .prose--paper {
    padding: 32px 20px;
  }
}

/* ---------- 10. 降低动效偏好 ---------- */
@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .read-progress > span {
    transition: none;
  }
}
