/* ============================================================
   22BET体育 · 战术数据终端
   共享样式表 /assets/site.css
   ============================================================ */

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

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

body, h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote, dl { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-size: inherit; font-weight: inherit; }

/* ---------- 设计令牌 ---------- */
:root {
  --ink: #0B0E11;
  --panel: #12171C;
  --raise: #1C242B;
  --snow: #E6F5F8;
  --mist: #8FA3AD;
  --cyan: #00E5D0;
  --pulse: #FF4B1F;
  --amber: #FFB020;
  --indigo: #3A2A6B;
  --teal: #0E3B3A;
  --wine: #5C1A31;

  --hair: rgba(143, 163, 173, .22);
  --cyan-edge: rgba(0, 229, 208, .34);
  --pulse-edge: rgba(255, 75, 31, .42);

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

  --r-l: 28px;
  --r-m: 18px;
  --r-s: 12px;
  --pill: 999px;

  --w: 1220px;
  --pad: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.32, .72, 0, 1);
}

/* ---------- 基础排版 ---------- */
html, body { min-height: 100%; }

body {
  background:
    radial-gradient(1100px 560px at 84% -8%, rgba(0, 229, 208, .075), transparent 62%),
    radial-gradient(880px 520px at 4% 2%, rgba(58, 42, 107, .30), transparent 66%),
    var(--ink);
  color: var(--snow);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.75;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-underline-offset: 3px;
  overflow-x: hidden;
}

p { max-width: 38em; }

::selection { background: var(--cyan); color: var(--ink); }

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

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

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  padding: 12px 22px;
  border-radius: 0 0 16px 16px;
  background: var(--cyan);
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- 头部 ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 90;
  padding: 14px var(--pad) 0;
  transition: padding .2s var(--ease);
}

.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  z-index: 120;
  pointer-events: none;
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--cyan) 42%, var(--pulse) 100%);
  transition: transform .1s linear;
}

.head-shell { max-width: var(--w); margin: 0 auto; }

.head-rail {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px 9px 14px;
  border: 1px solid var(--raise);
  border-radius: var(--pill);
  background: rgba(18, 23, 28, .84);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 20px 48px -26px rgba(0, 0, 0, .95);
  transition: padding .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}

.site-head[data-stuck] { padding-top: 8px; }
.site-head[data-stuck] .head-rail {
  padding: 5px 10px 5px 12px;
  background: rgba(11, 14, 17, .95);
  border-color: var(--cyan-edge);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  border-radius: var(--pill);
  transition: opacity .16s var(--ease);
}
.brand:hover { opacity: .86; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), #00a99b 78%);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .02em;
  box-shadow: 0 0 0 1px rgba(0, 229, 208, .28);
}

.brand-type {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.05;
}

.brand-line {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--snow);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mist);
  transition: opacity .2s var(--ease);
}
.site-head[data-stuck] .brand-sub { opacity: .55; }

/* 主导航 */
.nav-dock { margin-left: auto; }

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

.nav-link {
  display: block;
  padding: 8px 13px;
  border-radius: var(--pill);
  font-size: 14px;
  font-weight: 500;
  color: var(--mist);
  white-space: nowrap;
  transition: color .16s var(--ease), background-color .16s var(--ease);
}
.nav-link:hover { color: var(--snow); background: var(--raise); }
.nav-link[aria-current="page"] {
  color: var(--ink);
  background: var(--cyan);
  font-weight: 700;
}
.nav-link[aria-current="page"]:hover { background: var(--cyan); color: var(--ink); }

/* 右侧工具区 */
.head-utils {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  padding-left: 12px;
  border-left: 1px solid var(--raise);
  flex: 0 0 auto;
}

.util-link {
  padding: 6px 9px;
  border-radius: var(--pill);
  font-size: 12.5px;
  color: var(--mist);
  white-space: nowrap;
  transition: color .16s var(--ease), background-color .16s var(--ease);
}
.util-link:hover { color: var(--cyan); background: rgba(0, 229, 208, .08); }

.head-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  padding: 9px 17px;
  border-radius: var(--pill);
  background: var(--pulse);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: .03em;
  white-space: nowrap;
  box-shadow: 0 8px 22px -12px var(--pulse-edge);
  transition: transform .16s var(--ease), filter .16s var(--ease);
}
.head-cta:hover { filter: brightness(1.12); transform: translateY(-1px); }
.head-cta:active { transform: translateY(0); }

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border: 1px solid var(--raise);
  border-radius: var(--pill);
  background: var(--raise);
  color: var(--snow);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .16s var(--ease), color .16s var(--ease);
}
.nav-toggle:hover { border-color: var(--cyan-edge); color: var(--cyan); }

.nav-toggle-bars { display: grid; gap: 3px; }
.nav-toggle-bar {
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .18s var(--ease), opacity .18s var(--ease);
}

.site-head[data-open] .nav-toggle-bar:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-head[data-open] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.site-head[data-open] .nav-toggle-bar:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.nav-extra { display: none; }
.nav-extra-cta { width: 100%; justify-content: center; }

/* ---------- 页脚 ---------- */
.site-foot {
  position: relative;
  margin-top: clamp(56px, 8vw, 112px);
  background: linear-gradient(180deg, var(--panel), #0F171C 62%, var(--teal) 100%);
  border-top: 1px solid var(--raise);
  overflow: hidden;
}
.site-foot::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan) 28%, var(--pulse) 70%, transparent);
  opacity: .8;
}

.foot-mark {
  position: absolute;
  right: -1.5%;
  bottom: -3%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(80px, 17vw, 210px);
  line-height: .78;
  letter-spacing: .06em;
  color: rgba(0, 229, 208, .055);
  pointer-events: none;
  user-select: none;
}

.foot-shell {
  position: relative;
  z-index: 1;
  max-width: var(--w);
  margin: 0 auto;
  padding: clamp(38px, 5vw, 68px) var(--pad) clamp(24px, 3vw, 36px);
}

.foot-top {
  display: grid;
  gap: clamp(28px, 4vw, 52px);
  grid-template-columns: 1fr;
}

.foot-ident { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }

.brand--foot .brand-mark { width: 38px; height: 38px; border-radius: 13px; }

.foot-intro {
  max-width: 24em;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--mist);
}

.foot-tags { display: flex; flex-wrap: wrap; gap: 8px; max-width: none; }

.foot-cols {
  display: grid;
  gap: clamp(24px, 3vw, 34px);
  grid-template-columns: 1fr;
}

.foot-col-title {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--cyan);
}

.foot-list { display: flex; flex-direction: column; gap: 2px; }

.foot-link {
  display: inline-block;
  padding: 5px 0;
  font-size: 14px;
  color: var(--mist);
  transition: color .16s var(--ease), transform .16s var(--ease);
}
.foot-link:hover { color: var(--snow); transform: translateX(3px); }

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 26px;
  margin-top: clamp(28px, 4vw, 46px);
  padding-top: 20px;
  border-top: 1px dashed var(--hair);
}

.foot-contact {
  max-width: none;
  font-size: 13px;
  color: var(--mist);
}

.foot-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  max-width: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  color: var(--mist);
}

.foot-copy { color: rgba(143, 163, 173, .78); }

/* ---------- 通用容器与章节 ---------- */
.wrap {
  width: 100%;
  max-width: var(--w);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.section { padding: clamp(52px, 7.5vw, 100px) 0; }
.section--tight { padding: clamp(26px, 4vw, 46px) 0; }

/* ---------- 文字组件 ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--pulse);
  flex: 0 0 auto;
}

.display-xl {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 9.2vw, 96px);
  line-height: .9;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--snow);
}

.display-l {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.02;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--snow);
}

.lede {
  max-width: 38em;
  font-size: clamp(15.5px, 1.5vw, 17.5px);
  line-height: 1.8;
  color: var(--mist);
}

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

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .03em;
  cursor: pointer;
  transition: transform .16s var(--ease), background-color .16s var(--ease),
              border-color .16s var(--ease), color .16s var(--ease), filter .16s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--pulse {
  background: var(--pulse);
  color: var(--ink);
  box-shadow: 0 12px 28px -16px var(--pulse-edge);
}
.btn--pulse:hover { filter: brightness(1.1); }

.btn--cyan { background: var(--cyan); color: var(--ink); }
.btn--cyan:hover { filter: brightness(1.08); }

.btn--ghost {
  background: transparent;
  border-color: var(--raise);
  color: var(--snow);
}
.btn--ghost:hover { border-color: var(--cyan-edge); color: var(--cyan); background: rgba(0, 229, 208, .06); }

/* ---------- 胶囊标签 ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border: 1px solid var(--raise);
  border-radius: var(--pill);
  background: rgba(28, 36, 43, .55);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mist);
}

.chip--live {
  border-color: var(--pulse-edge);
  color: var(--pulse);
  background: rgba(255, 75, 31, .08);
}
.chip--live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: chip-pulse 1.6s ease-in-out infinite;
}

@keyframes chip-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.7); }
}

/* ---------- 面板 ---------- */
.panel {
  position: relative;
  padding: clamp(18px, 2.6vw, 28px);
  border: 1px solid var(--raise);
  border-radius: var(--r-m);
  background: var(--panel);
}

.panel--teal { background: var(--teal); border-color: var(--cyan-edge); }
.panel--indigo { background: var(--indigo); border-color: rgba(143, 163, 173, .3); }
.panel--wine { background: var(--wine); border-color: rgba(255, 176, 32, .28); }

/* ---------- 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.grid > * { grid-column: span 12; min-width: 0; }

@media (min-width: 820px) {
  .grid > .span-4 { grid-column: span 4; }
  .grid > .span-5 { grid-column: span 5; }
  .grid > .span-6 { grid-column: span 6; }
  .grid > .span-7 { grid-column: span 7; }
  .grid > .span-8 { grid-column: span 8; }
  .grid > .span-12 { grid-column: span 12; }
}

/* ---------- 图片容器（页面阶段放占位图） ---------- */
.media-frame {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--raise);
  border-radius: var(--r-m);
  background:
    linear-gradient(155deg, rgba(0, 229, 208, .10), rgba(18, 23, 28, .7) 55%, rgba(255, 75, 31, .09));
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92) contrast(1.06) brightness(.92);
}

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

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

.media-cap {
  max-width: none;
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mist);
}

/* ---------- 面包屑 ---------- */
.breadcrumbs { margin-bottom: clamp(18px, 3vw, 30px); }

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mist);
}

.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li:not(:first-child)::before { content: "›"; color: rgba(143, 163, 173, .5); }
.breadcrumbs a { transition: color .16s var(--ease); }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs [aria-current="page"] { color: var(--snow); }

/* ---------- 标签页协议 ---------- */
.tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--raise);
  border-radius: var(--pill);
  background: rgba(18, 23, 28, .8);
  width: fit-content;
  max-width: 100%;
}

.tab {
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: var(--pill);
  background: transparent;
  color: var(--mist);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  cursor: pointer;
  transition: color .16s var(--ease), background-color .16s var(--ease);
}
.tab:hover { color: var(--snow); background: var(--raise); }
.tab[aria-selected="true"] { background: var(--cyan); color: var(--ink); }

.tab-panel { margin-top: clamp(16px, 2.4vw, 26px); }
.tab-panel[hidden] { display: none; }

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .foot-top { grid-template-columns: 1.1fr 1.9fr; align-items: start; }
}

@media (max-width: 1080px) {
  .util-link { padding: 6px 6px; }
  .head-cta { padding: 9px 14px; font-size: 13px; }
}

@media (max-width: 960px) {
  .brand-sub { display: none; }
  .head-utils { display: none; }

  .head-rail { padding: 8px 10px; gap: 8px; }

  .nav-toggle { display: inline-flex; margin-left: auto; }

  .nav-dock {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--raise);
    border-radius: 24px;
    background: rgba(12, 17, 21, .97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    box-shadow: 0 32px 64px -32px #000;
  }

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

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

  .nav-link {
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 15px;
  }

  .nav-extra {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--raise);
  }

  .nav-extra .util-link { padding: 8px 14px; font-size: 13.5px; }

  .foot-mark { opacity: .7; bottom: -1%; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .brand-mark { width: 30px; height: 30px; border-radius: 10px; font-size: 13px; }
  .brand-line { font-size: 13.5px; letter-spacing: .1em; }
  .nav-toggle-text { display: none; }
  .nav-toggle { padding: 10px 12px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  .foot-legal { font-size: 11px; }
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .btn:hover,
  .head-cta:hover,
  .foot-link:hover { transform: none; }
  .scroll-progress { transition: none; }
}
