/* ============================================================
   BET体育中文站 · /assets/site.css
   共享外壳：reset / 变量 / 排版 / 头部 / 页脚 / 基础组件
   ============================================================ */

/* ---------- reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

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

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

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

button { font: inherit; color: inherit; }

/* ---------- 设计变量 ---------- */
:root {
  --ink: #07090C;
  --panel: #0E1218;
  --glass: rgba(26, 34, 44, 0.72);
  --glass-solid: #1A222C;
  --cyan: #22D3EE;
  --cyan-deep: #0891B2;
  --lime: #B6FF3B;
  --amber: #FF8A3D;
  --text: #E8EEF5;
  --muted: #94A3B8;
  --line: #2A3542;

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

  --shell: 1240px;
  --gutter: clamp(18px, 4vw, 48px);
  --radius: 2px;
  --ease: 180ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ---------- 基础排版 ---------- */
body {
  background-color: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

main { display: block; }

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

p a,
.prose a { color: var(--cyan); border-bottom: 1px solid rgba(34, 211, 238, 0.4); }
p a:hover,
.prose a:hover { color: var(--cyan); border-bottom-color: var(--cyan); }

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

::selection { background: var(--cyan); color: #04252B; }

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

/* ---------- 通用工具 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--cyan);
  opacity: 0.7;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 4.4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--text);
}

.lede {
  max-width: 62ch;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.8;
  color: var(--muted);
}

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

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

.prose h2,
.prose h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
}

.prose h2 { font-size: clamp(22px, 2.6vw, 30px); }
.prose h3 { font-size: clamp(18px, 2vw, 22px); }
.prose ul { list-style: none; }
.prose ul li {
  position: relative;
  padding-left: 20px;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  background: var(--cyan);
  transform: rotate(45deg);
}

.rule {
  height: 1px;
  border: 0;
  background: var(--line);
}

.stack > * + * { margin-top: clamp(16px, 2.2vw, 28px); }

/* ---------- 布局：分屏母题 ---------- */
.grid {
  display: grid;
  gap: clamp(16px, 2.4vw, 28px);
  grid-template-columns: minmax(0, 1fr);
}

.split {
  display: grid;
  gap: clamp(24px, 4vw, 56px);
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

@media (min-width: 900px) {
  .split--7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split--5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split--4-8 { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
  .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)); }
}

/* ---------- 表面材质 ---------- */
.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 30px);
}

.panel--flush { padding: 0; }

.glass {
  position: relative;
  background: var(--glass-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 30px);
}

@supports (backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px)) {
  .glass {
    background: var(--glass);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color var(--ease), background-color var(--ease), border-color var(--ease), transform var(--ease);
}

.btn:hover { border-color: var(--cyan); color: var(--cyan); }
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--cyan);
  border-color: var(--cyan);
  color: #04252B;
  font-weight: 700;
}

.btn--primary:hover {
  background: #5EE7F8;
  border-color: #5EE7F8;
  color: #04252B;
}

.btn--ghost { background: rgba(26, 34, 44, 0.55); }

.btn--sm {
  padding: 8px 13px;
  font-size: 11.5px;
}

/* ---------- 状态标签 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(26, 34, 44, 0.7);
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.6;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
}

.chip--cyan { color: var(--cyan); border-color: rgba(34, 211, 238, 0.45); background: rgba(34, 211, 238, 0.1); }
.chip--lime { color: var(--lime); border-color: rgba(182, 255, 59, 0.4); background: rgba(182, 255, 59, 0.09); }
.chip--amber { color: var(--amber); border-color: rgba(255, 138, 61, 0.45); background: rgba(255, 138, 61, 0.1); }
.chip--ghost { color: var(--muted); }

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.18);
  flex: none;
}

/* ---------- 面包屑 ---------- */
.breadcrumb { padding-block: clamp(18px, 2.4vw, 28px) 0; }

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: var(--line); }
.breadcrumb a { color: var(--muted); transition: color var(--ease); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--cyan); }

/* ---------- 图片容器基础规则 ---------- */
.media-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--glass-solid);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

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

.media-frame--16x9 { aspect-ratio: 16 / 9; }
.media-frame--4x3 { aspect-ratio: 4 / 3; }
.media-frame--1x1 { aspect-ratio: 1 / 1; }

.media-frame--dim::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 9, 12, 0.18) 0%, rgba(7, 9, 12, 0.72) 100%);
  pointer-events: none;
}

.media-frame__tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 3px 8px;
  background: rgba(7, 9, 12, 0.78);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

/* ============================================================
   头部
   ============================================================ */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--cyan);
  color: #04252B;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  transition: top var(--ease);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
}

/* 顶部状态条 */
.header-strip {
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.10) 0%, rgba(7, 9, 12, 0) 58%),
    var(--ink);
  border-bottom: 1px solid var(--line);
}

.header-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 36px;
  padding-block: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.header-strip__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}

.header-strip__tag { flex: 1 1 auto; text-align: center; color: var(--muted); }

.header-strip__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  color: var(--muted);
}

/* 命令栏 */
.command-bar {
  position: relative;
  background: rgba(7, 9, 12, 0.9);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

@supports (backdrop-filter: blur(4px)) or (-webkit-backdrop-filter: blur(4px)) {
  .command-bar {
    background: rgba(7, 9, 12, 0.78);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
  }
}

.command-bar__inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--cyan);
  color: #04252B;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
}

.brand__text { display: flex; flex-direction: column; line-height: 1.15; }

.brand__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: var(--text);
}

.brand__sub {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}

/* 导航 */
.nav { flex: 1 1 auto; }

.nav__list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  counter-reset: navidx;
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 11px 11px;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--muted);
  white-space: nowrap;
  transition: color var(--ease), background-color var(--ease);
}

.nav__link::before {
  counter-increment: navidx;
  content: counter(navidx, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--cyan-deep);
  transition: color var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 4px;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--ease);
}

.nav__link:hover { color: var(--text); }
.nav__link:hover::before { color: var(--cyan); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__link[aria-current="page"] { color: var(--text); }
.nav__link[aria-current="page"]::before { color: var(--cyan); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.command-bar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  margin-left: auto;
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  background: rgba(26, 34, 44, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: border-color var(--ease), color var(--ease);
}

.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }

.nav-toggle__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 16px;
  height: 14px;
}

.nav-toggle__bars span {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  transition: transform var(--ease);
}

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

/* 阅读进度 */
.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: rgba(42, 53, 66, 0.6);
  pointer-events: none;
}

.progress__bar {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan-deep) 0%, var(--cyan) 70%, var(--lime) 100%);
}

/* ---------- 头部响应式 ---------- */
@media (max-width: 1080px) {
  .header-strip__tag { display: none; }
  .header-strip__inner { justify-content: space-between; }
}

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex: none;
    background: rgba(14, 18, 24, 0.99);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 6px var(--gutter) 22px;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.6);
  }

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

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
  }

  .nav__item + .nav__item { border-top: 1px solid var(--line); }

  .nav__link {
    display: flex;
    align-items: baseline;
    justify-content: flex-start;
    padding: 14px 4px;
    font-size: 15px;
  }

  .nav__link::after { display: none; }

  .nav__link[aria-current="page"] {
    color: var(--cyan);
    background: rgba(34, 211, 238, 0.07);
    padding-inline: 10px;
  }
}

@media (max-width: 720px) {
  .command-bar__inner { min-height: 60px; gap: 10px; }
  .header-strip__status .mono { display: none; }
  .header-strip__inner { min-height: 32px; font-size: 10.5px; }
  .brand__sub { display: none; }
  .brand__name { font-size: 18px; }
  .command-bar__actions .btn { display: none; }
  .nav-toggle__label { display: none; }
  .nav-toggle { padding: 10px; }
}

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

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--cyan-deep) 26%, rgba(34, 211, 238, 0) 74%);
}

.footer-top {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  grid-template-columns: minmax(0, 1fr);
  padding-block: clamp(38px, 5vw, 68px) clamp(26px, 3vw, 40px);
}

@media (min-width: 760px) {
  .footer-top { grid-template-columns: 1.5fr 0.75fr 1.15fr; }
}

@media (min-width: 760px) and (max-width: 980px) {
  .footer-top { grid-template-columns: 1.2fr 1fr; }
  .footer-col:last-child { grid-column: 1 / -1; }
}

.footer-brand__word {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--text);
}

.footer-brand__word span {
  display: inline-block;
  margin-left: 8px;
  color: var(--cyan);
  font-size: 0.52em;
  font-weight: 700;
  letter-spacing: 0.16em;
  vertical-align: 0.32em;
}

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

.footer-brand .btn { margin-top: 20px; }

.footer-col__title {
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
}

.footer-list li + li { margin-top: 10px; }

.footer-list a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 14.5px;
  color: var(--text);
  transition: color var(--ease);
}

.footer-list a::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--line);
  transform: rotate(45deg);
  transition: background-color var(--ease);
}

.footer-list a:hover { color: var(--cyan); }
.footer-list a:hover::before { background: var(--cyan); }

.footer-contact li + li { margin-top: 14px; }

.footer-contact__item { display: block; }

.footer-contact__label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-contact__value {
  display: block;
  margin-top: 3px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
  word-break: break-word;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-size: clamp(48px, 13.5vw, 168px);
  font-weight: 900;
  line-height: 0.76;
  letter-spacing: -0.015em;
  color: #141A22;
  white-space: nowrap;
  user-select: none;
  padding-bottom: 6px;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-block: 18px 26px;
  border-top: 1px solid var(--line);
}

.footer-base__legal {
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.footer-base__note {
  font-size: 12px;
  color: #6E7D90;
}

/* ============================================================
   动效降级
   ============================================================ */
@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;
  }

  .nav__link::after { transition: none; }
  .progress__bar { transition: none; }
}
