/* ============================================================
   多宝体育官网 · 共享样式表  /assets/site.css
   夜间转播间 × 技术蓝图网格：深绿墨黑打底，青柠与暖橙作比分光点
   ============================================================ */

/* ---------- 1. reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}
body, h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd, pre { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { width: 100%; border-collapse: collapse; }
hr { border: 0; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #0A0F0D;
  --pitch: #0D2B1A;
  --pitch-2: #123B24;
  --line: #1F3C2A;
  --lime: #C8FF3D;
  --orange: #FF7A1A;
  --violet: #7B4DFF;
  --muted: #9AA8A2;
  --text: #D7E3DC;
  --white: #FFFFFF;

  --lime-a08: rgba(200, 255, 61, .08);
  --lime-a16: rgba(200, 255, 61, .16);
  --lime-a38: rgba(200, 255, 61, .38);
  --orange-a24: rgba(255, 122, 26, .24);
  --violet-a30: rgba(123, 77, 255, .30);
  --glass: rgba(10, 15, 13, .90);

  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-pill: 999px;

  --shell: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --sec-y: clamp(48px, 7vw, 104px);

  --font-sans: "Inter", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-data: "DIN Condensed", "Bebas Neue", "Oswald", "Arial Narrow", var(--font-sans);
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: .2s ease;
}

/* ---------- 3. 基座 ---------- */
body {
  min-height: 100%;
  overflow-x: hidden;
  background-color: var(--ink);
  background-image:
    linear-gradient(to right, rgba(31, 60, 42, .55) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(31, 60, 42, .55) 1px, transparent 1px),
    radial-gradient(1200px 620px at 10% -12%, rgba(13, 43, 26, .95), transparent 68%),
    radial-gradient(900px 520px at 92% 4%, rgba(123, 77, 255, .10), transparent 70%);
  background-size: 84px 84px, 84px 84px, 100% 100%, 100% 100%;
  background-position: -1px -1px, -1px -1px, 0 0, 0 0;
  background-repeat: repeat, repeat, no-repeat, no-repeat;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

#main-content { padding-top: var(--header-h); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--white);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.35rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.05rem; letter-spacing: 0; }

p { max-width: 72ch; }
strong { color: var(--white); font-weight: 700; }

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

/* ---------- 4. 布局 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--sec-y); }
.section--tight { padding-block: clamp(28px, 4vw, 56px); }
.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 28px;
  padding-bottom: 16px;
  margin-bottom: clamp(20px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
}
.grid { display: grid; gap: clamp(16px, 2.2vw, 28px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.stack > * + * { margin-top: 16px; }
.hairline { height: 1px; background: var(--line); }

/* ---------- 5. 文字与数据元件 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--lime);
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 1px;
  background: var(--lime);
}
.section-title { max-width: 26ch; }
.lede { font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--text); max-width: 62ch; }
.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted);
  text-transform: uppercase;
}
.num {
  font-family: var(--font-data);
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--white);
  line-height: .9;
}
.num--xl { font-size: clamp(2.6rem, 7vw, 4.6rem); }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(10, 15, 13, .55);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.tag--lime { color: var(--lime); border-color: var(--lime-a38); background: var(--lime-a08); }
.tag--orange { color: var(--orange); border-color: var(--orange-a24); background: rgba(255, 122, 26, .08); }
.tag--violet { color: var(--violet); border-color: var(--violet-a30); background: rgba(123, 77, 255, .10); }
.index-chip {
  display: inline-block;
  padding: 2px 8px;
  border: 1px dashed var(--lime-a38);
  border-radius: var(--r-xs);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--lime);
}
.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
}
.accent-lime { color: var(--lime); }
.accent-orange { color: var(--orange); }
.accent-violet { color: var(--violet); }
.dot-live {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  animation: db-pulse 2.6s ease-in-out infinite;
}
@keyframes db-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 var(--lime-a38); }
  50% { opacity: .6; box-shadow: 0 0 0 7px rgba(200, 255, 61, 0); }
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: transform var(--ease), background var(--ease), color var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.btn--lime {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 12px 30px -18px rgba(200, 255, 61, .9);
}
.btn--lime:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -16px rgba(200, 255, 61, .75); }
.btn--orange { background: var(--orange); color: var(--ink); }
.btn--ghost {
  border-color: var(--line);
  background: rgba(18, 59, 36, .35);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--lime-a38); color: var(--white); background: var(--lime-a08); }
.btn--block { width: 100%; }

/* ---------- 7. 卡片 / 面板 ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(170deg, rgba(18, 59, 36, .88), rgba(10, 15, 13, .86));
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.panel--flat { background: rgba(18, 59, 36, .34); }
.panel.is-interactive:hover {
  transform: translateY(-4px);
  border-color: var(--lime-a38);
  box-shadow: 0 26px 46px -30px rgba(200, 255, 61, .55);
}

/* ---------- 8. 图片容器基础规则 ---------- */
.figure { margin: 0; }
.figure__frame {
  position: relative;
  aspect-ratio: var(--figure-ratio, 16 / 9);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--pitch) 0%, var(--pitch-2) 55%, var(--ink) 100%);
}
.figure__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(31, 60, 42, .42) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(31, 60, 42, .42) 1px, transparent 1px);
  background-size: 42px 42px;
  mix-blend-mode: screen;
}
.figure__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure__cap {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.figure--wide { --figure-ratio: 21 / 9; }
.figure--tall { --figure-ratio: 3 / 4; }
.figure--square { --figure-ratio: 1 / 1; }

/* ---------- 9. 面包屑 / 锚点索引 / 长文 ---------- */
.breadcrumbs { padding-block: 18px; }
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
}
.breadcrumbs__item { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs__item + .breadcrumbs__item::before { content: "/"; color: var(--line); }
.breadcrumbs__link { color: var(--muted); transition: color var(--ease); }
.breadcrumbs__link:hover { color: var(--lime); }
.breadcrumbs__link[aria-current="page"] { color: var(--white); }

.anchor-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.anchor-nav__link {
  display: inline-block;
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--muted);
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}
.anchor-nav__link:hover { color: var(--white); border-color: var(--lime-a38); }
.anchor-nav__link.is-current { color: var(--lime); border-color: var(--lime-a38); background: var(--lime-a08); }

.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 1.9em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .5em; }
.prose a { color: var(--lime); border-bottom: 1px solid var(--lime-a38); }
.prose blockquote {
  padding-left: 18px;
  border-left: 2px solid var(--lime);
  color: var(--muted);
}

/* ---------- 10. 头部 ---------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform var(--ease);
}
.skip-link:focus { transform: none; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 90;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--ease), border-color var(--ease), backdrop-filter var(--ease);
}
.site-header.is-stuck {
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
body.is-nav-open .site-header {
  background: rgba(10, 15, 13, .96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.site-header__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--lime), var(--orange));
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  opacity: 0;
  transition: opacity var(--ease);
}
.site-header.is-stuck .site-header__progress { opacity: 1; }
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--lime-a38);
  border-radius: var(--r-sm);
  background: linear-gradient(150deg, var(--lime-a16), rgba(123, 77, 255, .14));
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--lime);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--white);
}
.brand__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { display: flex; flex: 1 1 auto; justify-content: center; }
.nav__list { display: flex; align-items: center; gap: 2px; }
.nav__item { display: flex; }
.nav__link {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  transition: color var(--ease), background var(--ease), border-color var(--ease);
}
.nav__link:hover { color: var(--white); background: rgba(215, 227, 220, .07); border-color: var(--line); }
.nav__link[aria-current="page"] {
  color: var(--lime);
  background: var(--lime-a08);
  border-color: var(--lime-a38);
}
.nav__foot { display: none; }

.site-header__actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(10, 15, 13, .6);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}
.nav-toggle:hover { color: var(--white); border-color: var(--lime-a38); }
.nav-toggle__bars { display: grid; gap: 3px; width: 16px; }
.nav-toggle__bars span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--ease), opacity var(--ease);
}
.nav-toggle[aria-expanded="true"] { color: var(--lime); border-color: var(--lime-a38); background: var(--lime-a08); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- 11. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 112px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--pitch) 0%, var(--ink) 62%);
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(31, 60, 42, .45) 0 1px, transparent 1px 84px);
}
.site-footer .shell { position: relative; z-index: 1; padding-block: clamp(40px, 6vw, 76px) 26px; }
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(0, 1.7fr);
  gap: clamp(28px, 5vw, 64px);
  padding-bottom: clamp(28px, 4vw, 46px);
  border-bottom: 1px solid var(--line);
}
.site-footer__brand { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.site-footer__intro { font-size: 15px; color: var(--text); max-width: 34ch; }
.site-footer__nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 38px); }
.footer-col__title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--lime);
}
.footer-col__title::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 1px;
  margin-right: 8px;
  vertical-align: middle;
  background: var(--lime);
}
.footer-col__list li + li { margin-top: 4px; }
.footer-col__text { font-size: 14px; color: var(--muted); max-width: 30ch; }
.footer-col__text--mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
}
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 15px;
  color: var(--text);
  transition: color var(--ease);
}
.footer-link::before {
  content: "";
  width: 0;
  height: 1px;
  background: var(--lime);
  transition: width var(--ease);
}
.footer-link:hover { color: var(--lime); }
.footer-link:hover::before { width: 14px; }

.footer-contact { display: grid; gap: 10px; margin-bottom: 14px; }
.footer-contact__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.footer-contact__key {
  min-width: 44px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer-contact__val { color: var(--text); word-break: break-word; }
.copy-btn {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(10, 15, 13, .5);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--muted);
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}
.copy-btn:hover { color: var(--lime); border-color: var(--lime-a38); background: var(--lime-a08); }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--muted);
}
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.legal-links a { color: var(--muted); transition: color var(--ease); }
.legal-links a:hover { color: var(--lime); }

/* ---------- 12. 滚动显现 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- 13. 响应式 ---------- */
@media (max-width: 1080px) {
  .site-footer__top { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    top: calc(var(--header-h) + 10px);
    left: 14px;
    right: 14px;
    flex-direction: column;
    justify-content: flex-start;
    gap: 14px;
    max-height: calc(100vh - var(--header-h) - 34px);
    overflow-y: auto;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: rgba(10, 15, 13, .97);
    box-shadow: 0 34px 70px -34px rgba(0, 0, 0, .95);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity var(--ease), transform var(--ease), visibility var(--ease);
  }
  .nav[data-open] {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: 4px; width: 100%; }
  .nav__item { width: 100%; }
  .nav__link {
    display: block;
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--r-sm);
    border-color: transparent;
    background: rgba(215, 227, 220, .035);
    font-size: 16px;
  }
  .nav__foot { display: block; width: 100%; padding-top: 4px; border-top: 1px solid var(--line); }
  body.is-nav-open { overflow: hidden; }
  .figure--wide { --figure-ratio: 16 / 9; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .site-footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .site-header__cta { display: none; }
}
@media (max-width: 520px) {
  .site-footer__nav { grid-template-columns: 1fr; }
  .brand__tag { display: none; }
}

/* ---------- 14. 无障碍 / 降低动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
