/* /assets/site.css — BET365赛事 共享外壳 */

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink-900);
  color: var(--mist);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.75;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, svg, video { display: block; max-width: 100%; height: auto; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }
body.is-nav-open { overflow: hidden; }

/* ===== 变量 ===== */
:root {
  --ink-900: #070B22;
  --ink-800: #0E1533;
  --ink-700: #16205A;
  --ink-600: #23307A;
  --teal: #17C8A6;
  --azure: #2E9BFF;
  --flare: #FF6A1A;
  --mist: #F2F6FF;
  --steel: #94A3C4;
  --line: #3A4A8C;
  --line-40: rgba(58, 74, 140, .4);
  --line-28: rgba(58, 74, 140, .28);

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

  --shell: 1200px;
  --gutter: clamp(18px, 4vw, 48px);
  --header-h: 76px;

  --font-sans: "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", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ===== 排版 ===== */
.mono, .eyebrow, .pill, .meta-row, .crumbs, .footer-col-title, .contact-key, .legend, .media-caption, .nav-index, .brand-sub {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}
.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;
}
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

/* ===== 跳转链接 ===== */
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 200;
  padding: 10px 18px; border-radius: var(--r-pill);
  background: var(--teal); color: #04180F; font-size: 14px; font-weight: 700;
  transform: translateY(-180%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ===== 容器与分区 ===== */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
#main-content { padding-top: var(--header-h); }
#main-content.main--flush { padding-top: 0; }
.section { position: relative; padding-block: clamp(48px, 7vw, 96px); }
.section--deep { background: var(--ink-900); }
.section--base { background: var(--ink-800); }
.section--raised { background: var(--ink-700); }
.divider { height: 1px; background: var(--line-40); border: 0; margin: 0; }

.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(20px, 3vw, 36px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--teal);
}
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .7; }
.section-title { font-size: clamp(26px, 3.4vw, 40px); font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.section-lede { max-width: 68ch; color: var(--steel); font-size: 16.5px; }

/* ===== 网格 ===== */
.grid { display: grid; gap: clamp(16px, 2.4vw, 32px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split-5-7 { grid-template-columns: 5fr 7fr; }
.split-4-8 { grid-template-columns: 4fr 8fr; }

/* ===== 头部 ===== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 80;
  height: var(--header-h);
  display: flex; align-items: center;
  border-bottom: 1px solid transparent;
  background: linear-gradient(180deg, rgba(7, 11, 34, .82), rgba(7, 11, 34, 0));
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(14, 21, 51, .92);
  border-bottom-color: var(--line-40);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.site-header[data-open="true"] { background: rgba(14, 21, 51, .98); }
.header-inner {
  position: relative;
  display: flex; align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-mark {
  position: relative; width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), var(--azure));
  box-shadow: inset 0 0 0 1px rgba(7, 11, 34, .35);
}
.brand-mark::after {
  content: ""; position: absolute; left: 50%; top: 5px;
  width: 2px; height: 16px; background: var(--ink-900);
  transform: translateX(-50%) rotate(22deg);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.brand-sub {
  font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--steel);
}

.primary-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: clamp(10px, 1.6vw, 26px); }
.nav-item { display: flex; align-items: baseline; gap: 6px; }
.nav-index { display: none; }
.nav-link {
  position: relative; display: inline-block; padding: 6px 2px;
  font-size: 15px; font-weight: 500; color: rgba(242, 246, 255, .8);
  transition: color .2s var(--ease);
}
.nav-link::after {
  content: ""; position: absolute; left: 2px; right: 2px; bottom: 0; height: 1.5px;
  background: var(--teal);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .2s var(--ease);
}
.nav-link:hover { color: var(--mist); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--teal); }
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-contact { display: none; }
.nav-contact-label {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--steel);
}
.nav-contact-mail { font-family: var(--font-mono); font-size: 14px; color: var(--teal); word-break: break-all; }

.cta-pill {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--r-pill);
  border: 1px solid rgba(23, 200, 166, .45);
  background: rgba(23, 200, 166, .12);
  font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--mist);
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.cta-pill::after {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 0 4px rgba(23, 200, 166, .18);
}
.cta-pill:hover { background: rgba(23, 200, 166, .22); border-color: var(--teal); }

.nav-toggle {
  display: none; flex: 0 0 auto;
  width: 44px; height: 44px; border-radius: 14px;
  border: 1px solid var(--line-40);
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.nav-toggle:hover { border-color: var(--ink-600); background: rgba(35, 48, 122, .4); }
.nav-toggle .bar {
  display: block; width: 18px; height: 1.5px; background: var(--mist);
  transition: transform .24s var(--ease), opacity .24s var(--ease);
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(-3.25px) rotate(-45deg); }

.scroll-progress {
  position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--azure));
  transform: scaleX(0); transform-origin: left center;
}

/* ===== 页脚 ===== */
.site-footer {
  background: #04061A;
  border-top: 1px solid var(--line-40);
  padding-top: clamp(40px, 6vw, 72px);
  font-size: 14px;
  color: var(--steel);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: clamp(20px, 3vw, 40px);
  padding-bottom: clamp(28px, 4vw, 44px);
}
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-note { max-width: 40ch; color: var(--steel); line-height: 1.8; }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col-title {
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(148, 163, 196, .85); font-weight: 500;
}
.footer-list { display: flex; flex-direction: column; gap: 9px; }
.footer-list a { color: var(--mist); opacity: .82; transition: color .2s var(--ease), opacity .2s var(--ease); }
.footer-list a:hover { color: var(--teal); opacity: 1; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-contact li { display: flex; gap: 10px; align-items: baseline; }
.contact-key {
  flex: 0 0 auto; font-size: 11px; letter-spacing: .12em; color: rgba(148, 163, 196, .8);
}
.contact-val { color: rgba(242, 246, 255, .86); line-height: 1.65; }

.trust-band {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 18px 0; margin: 0;
  border-top: 1px solid var(--line-40);
  border-bottom: 1px solid var(--line-40);
  font-size: 13px; line-height: 1.75; color: var(--steel);
}
.trust-mark {
  flex: 0 0 auto; width: 8px; height: 8px; margin-top: 8px;
  border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 4px rgba(23, 200, 166, .16);
}
.footer-legal {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  padding: 20px 0 34px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em;
  color: rgba(148, 163, 196, .85);
}

.to-top {
  position: fixed; right: clamp(14px, 3vw, 32px); bottom: clamp(14px, 3vw, 32px); z-index: 70;
  width: 46px; height: 46px; border-radius: var(--r-pill);
  background: var(--ink-700); border: 1px solid var(--line-40);
  color: var(--mist); font-size: 17px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .24s var(--ease), visibility .24s, background .2s var(--ease), border-color .2s var(--ease);
}
.to-top[data-visible="true"] { opacity: 1; visibility: visible; pointer-events: auto; }
.to-top:hover { background: var(--ink-600); border-color: var(--teal); }

/* ===== 通用组件 ===== */
.panel {
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line-40);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(22, 32, 90, .85), rgba(14, 21, 51, .92));
}
.panel-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: baseline; margin-bottom: 16px; }
.panel-title { font-size: clamp(18px, 2vw, 22px); font-weight: 600; letter-spacing: -.01em; }
.panel-sub { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--steel); }
.panel-body { color: var(--steel); }
.panel-body p + p { margin-top: 12px; }

.stat-row { display: flex; flex-wrap: wrap; gap: clamp(16px, 3vw, 40px); }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-value {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  font-size: clamp(28px, 4vw, 44px); font-weight: 600; letter-spacing: -.02em;
  line-height: 1.1; color: var(--teal);
}
.stat-unit { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .08em; color: var(--steel); }
.stat-label { font-size: 14px; color: var(--steel); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--r-pill);
  border: 1px solid var(--line-40);
  font-size: 11.5px; letter-spacing: .08em; color: var(--steel);
}
.pill--teal { border-color: rgba(23, 200, 166, .5); color: var(--teal); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--r-pill);
  font-size: 15px; font-weight: 600; border: 1px solid transparent;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn-primary { background: var(--teal); border-color: var(--teal); color: #04180F; }
.btn-primary:hover { background: #22DCB8; }
.btn-ghost { background: rgba(22, 32, 90, .5); border-color: var(--line-40); color: var(--mist); }
.btn-ghost:hover { background: rgba(35, 48, 122, .7); border-color: var(--ink-600); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .06em; color: var(--steel);
}
.crumbs a:hover { color: var(--teal); }
.crumbs li { display: inline-flex; align-items: center; }
.crumbs li::after { content: "/"; margin-left: 8px; color: rgba(58, 74, 140, .9); }
.crumbs li:last-child::after { content: ""; margin: 0; }

.prose { max-width: 72ch; color: rgba(242, 246, 255, .88); }
.prose p + p { margin-top: 14px; }
.prose h2 { margin-top: 32px; font-size: clamp(22px, 2.6vw, 30px); }
.prose h3 { margin-top: 24px; font-size: 19px; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose li + li { margin-top: 8px; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-40);
  border-radius: var(--r-md);
  background: rgba(14, 21, 51, .6);
}
.table-wrap table { width: 100%; font-size: 14.5px; }
.table-wrap th, .table-wrap td {
  padding: 12px 16px; text-align: left; white-space: nowrap;
  border-bottom: 1px solid var(--line-28);
}
.table-wrap th {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: .08em; color: var(--steel); background: rgba(22, 32, 90, .62);
}
.table-wrap tbody tr:last-child td { border-bottom: 0; }
.table-wrap tbody tr:hover { background: rgba(35, 48, 122, .28); }
.table-wrap .num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.media {
  position: relative; display: block; overflow: hidden;
  border: 1px solid var(--line-40); border-radius: var(--r-lg);
  background:
    radial-gradient(120% 120% at 10% 0%, rgba(46, 155, 255, .20), transparent 60%),
    radial-gradient(90% 90% at 100% 100%, rgba(23, 200, 166, .16), transparent 65%),
    var(--ink-800);
}
.media > img, .media > svg, .media > video { width: 100%; height: 100%; object-fit: cover; }
.media-21x9 { aspect-ratio: 21 / 9; }
.media-16x9 { aspect-ratio: 16 / 9; }
.media-4x3 { aspect-ratio: 4 / 3; }
.media-1x1 { aspect-ratio: 1 / 1; }
.media-caption {
  display: block; margin-top: 10px;
  font-size: 12px; letter-spacing: .06em; color: var(--steel);
}

.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12px; color: var(--steel); }
.legend-item { display: inline-flex; align-items: center; gap: 8px; }
.legend-key { width: 14px; height: 3px; border-radius: 2px; background: var(--teal); }
.legend-key--azure { background: var(--azure); }
.legend-key--flare { background: var(--flare); }

.callout {
  display: flex; gap: 12px;
  padding: 14px 18px; border-radius: var(--r-md);
  background: rgba(22, 32, 90, .55);
  border-left: 3px solid var(--teal);
  color: var(--steel); font-size: 14.5px;
}
.callout--warn { border-left-color: var(--flare); }

.disclosure {
  border: 1px solid var(--line-40); border-radius: var(--r-md);
  background: rgba(14, 21, 51, .6); overflow: hidden;
}
.disclosure + .disclosure { margin-top: 10px; }
.disclosure summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; cursor: pointer; list-style: none;
  font-size: 15px; font-weight: 600;
}
.disclosure summary::-webkit-details-marker { display: none; }
.disclosure summary:hover { background: rgba(35, 48, 122, .35); }
.disclosure-arrow { font-family: var(--font-mono); color: var(--teal); transition: transform .24s var(--ease); }
.disclosure[open] .disclosure-arrow { transform: rotate(180deg); }
.disclosure-body { padding: 0 18px 18px; color: var(--steel); font-size: 15px; }

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--line-40);
  background: rgba(14, 21, 51, .6);
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .06em;
  color: var(--steel); cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.chip:hover { border-color: var(--ink-600); color: var(--mist); }
.chip-input:checked + .chip {
  background: rgba(23, 200, 166, .14);
  border-color: rgba(23, 200, 166, .6);
  color: var(--mist);
}
.chip-input:focus-visible + .chip { outline: 2px solid var(--teal); outline-offset: 3px; }
.filter-empty {
  padding: 22px 0; font-family: var(--font-mono); font-size: 13px;
  letter-spacing: .06em; color: var(--steel);
}

.anchor-rail { display: flex; gap: 8px; overflow-x: auto; padding: 6px 0; }
.anchor-rail a {
  flex: 0 0 auto; padding: 6px 13px; border-radius: var(--r-pill);
  border: 1px solid var(--line-40);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em;
  color: var(--steel); white-space: nowrap;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.anchor-rail a:hover { color: var(--mist); border-color: var(--ink-600); }

.meta-row {
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  font-size: 12.5px; letter-spacing: .06em; color: var(--steel);
}

/* ===== 平板 ===== */
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-5-7, .split-4-8 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .nav-toggle { display: inline-flex; }
  .nav-index { display: inline-block; flex: 0 0 auto; font-size: 12px; letter-spacing: .12em; color: rgba(58, 74, 140, 1); }
  .primary-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    display: flex; flex-direction: column;
    padding: 20px var(--gutter) 32px;
    overflow-y: auto;
    background: linear-gradient(180deg, #0B1130 0%, var(--ink-900) 100%);
    border-top: 1px solid var(--line-40);
    margin-left: 0;
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .24s var(--ease), transform .24s var(--ease), visibility .24s;
  }
  .site-header[data-open="true"] .primary-nav {
    opacity: 1; visibility: visible; pointer-events: auto; transform: none;
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-item {
    align-items: baseline; gap: 14px;
    padding: 16px 0; border-bottom: 1px solid var(--line-28);
  }
  .nav-link { font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: var(--mist); padding: 0; }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] { color: var(--teal); }
  .nav-contact {
    display: flex; flex-direction: column; gap: 6px;
    margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line-40);
  }
}

/* ===== 手机 ===== */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .brand-sub { display: none; }
  .cta-pill { padding: 9px 15px; font-size: 13px; gap: 6px; }
  .cta-pill::after { width: 5px; height: 5px; box-shadow: 0 0 0 3px rgba(23, 200, 166, .18); }
  .nav-toggle { width: 40px; height: 40px; }
  .header-inner { gap: 10px; }
  .anchor-rail { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
}

/* ===== 动效偏好 ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }
}
