/* ==========================================================================
   安博体育官网 · 共享样式 /assets/site.css
   暗色沉浸式赛事数据舱 —— 框架式导航 + 奶油反白面板 + 等宽数据字
   ========================================================================== */

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

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

body {
  margin: 0;
  background-color: var(--ink);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.8;
  font-weight: 400;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; }

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.22;
  color: var(--cream);
}

h1 { font-size: clamp(30px, 4.6vw, 52px); }
h2 { font-size: clamp(24px, 3vw, 36px); }
h3 { font-size: clamp(19px, 2vw, 24px); }
h4 { font-size: 17px; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; }

/* ---------- 2. 变量 ---------- */
:root {
  /* 品牌色板 */
  --ink: #120F14;
  --panel: #1C1720;
  --track: #2A2331;
  --cream: #F3E9DA;
  --orange: #FF5A2B;
  --mint: #5EF2D6;
  --amber: #FFC53D;
  --violet: #8A2BE2;
  --rose: #E0245E;
  --mist: #9A93A6;

  /* 派生 */
  --text: rgba(243, 233, 218, 0.84);
  --text-strong: #F3E9DA;
  --line: rgba(243, 233, 218, 0.12);
  --line-soft: rgba(243, 233, 218, 0.07);
  --line-mint: rgba(94, 242, 214, 0.34);

  /* 形状 */
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  /* 结构 */
  --frame-w: 1440px;
  --gutter: clamp(16px, 3vw, 40px);
  --header-h: 76px;

  /* 字体 */
  --font-display: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "Roboto Mono", "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;
}

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

.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;
}

#main-content { display: block; outline: none; }

/* ---------- 4. 头部 · 仪表边框 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background-color: rgba(18, 15, 20, 0.97);
  border-bottom: 1px solid var(--line);
}

.site-header::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background-image: repeating-linear-gradient(90deg,
    rgba(94, 242, 214, 0.45) 0 2px,
    transparent 2px 18px);
  opacity: 0.55;
  pointer-events: none;
}

.header-frame {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 26px);
  width: 100%;
  max-width: var(--frame-w);
  margin: 0 auto;
  padding: 14px var(--gutter);
  min-height: var(--header-h);
}

.skip-link {
  position: absolute;
  left: 14px;
  top: 10px;
  z-index: 260;
  transform: translateY(-190%);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--cream);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: transform 0.22s ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline-color: var(--orange);
}

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

.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  background: linear-gradient(140deg, var(--mint) 0%, var(--violet) 62%, var(--rose) 100%);
  box-shadow: 0 0 0 1px rgba(94, 242, 214, 0.32), 0 8px 22px rgba(138, 43, 226, 0.34);
  flex: 0 0 auto;
}

.brand__mark-core {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  background: var(--ink);
  transform: rotate(45deg);
}

.brand__text { display: block; }

.brand__name {
  display: block;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.brand__sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--mist);
  line-height: 1.4;
}

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

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.site-nav__item { list-style: none; }

.site-nav__link {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--mist);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.site-nav__index {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(154, 147, 166, 0.62);
  transition: color 0.2s ease;
}

.site-nav__link:hover {
  color: var(--cream);
  background-color: rgba(243, 233, 218, 0.06);
}

.site-nav__link:hover .site-nav__index { color: var(--amber); }

.site-nav__link[aria-current="page"] {
  color: var(--cream);
  background-color: rgba(94, 242, 214, 0.10);
  border-color: var(--line-mint);
}

.site-nav__link[aria-current="page"] .site-nav__index { color: var(--mint); }

/* 头部动作区 */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mist);
  background-color: rgba(243, 233, 218, 0.03);
}

.live-chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--mint);
  box-shadow: 0 0 0 4px rgba(94, 242, 214, 0.16);
}

/* 移动导航按钮 */
.nav-toggle {
  position: relative;
  z-index: 9;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background-color: rgba(243, 233, 218, 0.04);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nav-toggle:hover {
  border-color: var(--line-mint);
  background-color: rgba(94, 242, 214, 0.08);
}

.nav-toggle__bars {
  display: block;
  width: 20px;
  height: 14px;
  position: relative;
}

.nav-toggle__bars i {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background-color: var(--cream);
  transition: transform 0.26s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.nav-toggle__bars i:nth-child(1) { top: 0; }
.nav-toggle__bars i:nth-child(2) { top: 6px; }
.nav-toggle__bars i:nth-child(3) { top: 12px; }

.nav-toggle[aria-expanded="true"] { border-color: var(--line-mint); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
  background-color: var(--mint);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  background-color: var(--mint);
}

/* 阅读进度轨 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background-color: rgba(42, 35, 49, 0.9);
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background-image: linear-gradient(90deg, var(--mint) 0%, var(--amber) 42%, var(--orange) 72%, var(--rose) 100%);
}

/* ---------- 5. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.26s ease, background-color 0.24s ease, color 0.24s ease, border-color 0.24s ease;
}

.btn--cta {
  background-image: linear-gradient(96deg, var(--violet) 0%, var(--rose) 100%);
  color: #FFF7F2;
  box-shadow: 0 8px 24px rgba(224, 36, 94, 0.28);
}

.btn--cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(224, 36, 94, 0.42);
}

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

.btn--ghost:hover {
  background-color: rgba(94, 242, 214, 0.1);
  color: var(--cream);
}

.btn--cream {
  background-color: var(--cream);
  color: #241C2C;
}

.btn--cream:hover { background-color: #FFF7EC; }

/* ---------- 6. 版式与内容容器 ---------- */
.wrap {
  width: 100%;
  max-width: var(--frame-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mint);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background-color: currentColor;
  opacity: 0.85;
}

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

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.75;
  color: var(--text-strong);
}

.muted { color: var(--mist); }

/* ---------- 7. 面板与标签 ---------- */
.panel {
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background-color: var(--panel);
}

.panel--cream {
  background-color: var(--cream);
  border-color: transparent;
  color: #2A2331;
}

.panel--cream h1,
.panel--cream h2,
.panel--cream h3 { color: #1C1720; }

.panel--cream .muted { color: #6A6272; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
  background-color: rgba(243, 233, 218, 0.04);
}

.chip--live {
  color: var(--orange);
  border-color: rgba(255, 90, 43, 0.42);
  background-color: rgba(255, 90, 43, 0.1);
}

.chip--ok {
  color: var(--mint);
  border-color: var(--line-mint);
  background-color: rgba(94, 242, 214, 0.1);
}

.chip--member {
  color: var(--amber);
  border-color: rgba(255, 197, 61, 0.4);
  background-color: rgba(255, 197, 61, 0.1);
}

/* ---------- 8. 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
  list-style: none;
}

.breadcrumb li { list-style: none; }

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

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

.breadcrumb__sep {
  color: rgba(154, 147, 166, 0.55);
}

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

/* ---------- 9. 图片容器（页面阶段放素材） ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background-image: linear-gradient(150deg, #241C2C 0%, #120F14 72%);
}

.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame--square { aspect-ratio: 1 / 1; }

.media-frame > img,
.media-frame > picture > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, rgba(18, 15, 20, 0) 38%, rgba(18, 15, 20, 0.78) 100%);
  pointer-events: none;
}

.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 18px 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--cream);
}

/* ---------- 10. 动效基元 ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.22, 0.8, 0.28, 1);
}

[data-section] > .eyebrow {
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

[data-section].is-active > .eyebrow { opacity: 1; }

/* ---------- 11. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(64px, 9vw, 128px);
  border-top: 1px solid var(--line);
  color: var(--mist);
  background-color: #0B090E;
  background-image:
    radial-gradient(110% 130% at 8% 0%, rgba(138, 43, 226, 0.22) 0%, rgba(11, 9, 14, 0) 58%),
    radial-gradient(85% 110% at 96% 110%, rgba(255, 90, 43, 0.16) 0%, rgba(11, 9, 14, 0) 62%);
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background-image: repeating-linear-gradient(90deg,
    rgba(94, 242, 214, 0.34) 0 2px,
    transparent 2px 18px);
  opacity: 0.6;
  pointer-events: none;
}

.footer-frame {
  width: 100%;
  max-width: var(--frame-w);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 76px) var(--gutter) 26px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(240px, 1.05fr) minmax(0, 2fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: start;
}

.footer-brand__line {
  margin: 0 0 8px;
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--cream);
}

.footer-brand__meta {
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.footer-brand__cta { margin-top: 4px; }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 40px);
}

.footer-col__title {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
}

.footer-col__list { list-style: none; }

.footer-col__list li { list-style: none; }

.footer-col__link {
  display: block;
  padding: 7px 0;
  font-size: 14px;
  color: var(--mist);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-col__link:hover {
  color: var(--cream);
  transform: translateX(3px);
}

.footer-contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.4vw, 34px);
  margin-top: clamp(34px, 4vw, 54px);
  padding-top: clamp(22px, 3vw, 32px);
  border-top: 1px solid var(--line-soft);
}

.footer-contact__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
}

.footer-contact__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(154, 147, 166, 0.75);
}

.footer-contact__value {
  font-size: 15px;
  font-weight: 500;
  color: var(--cream);
  word-break: break-word;
}

.copy-btn {
  margin-top: 6px;
  padding: 6px 14px;
  border: 1px solid var(--line-mint);
  border-radius: var(--radius-pill);
  background-color: transparent;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--mint);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.copy-btn:hover { background-color: rgba(94, 242, 214, 0.12); }

.copy-btn.is-copied {
  color: var(--amber);
  border-color: rgba(255, 197, 61, 0.55);
  background-color: rgba(255, 197, 61, 0.12);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(28px, 3.5vw, 44px);
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: rgba(154, 147, 166, 0.8);
}

.footer-bottom__copy,
.footer-bottom__icp { margin: 0; }

/* ---------- 12. 响应式 ---------- */
@media (max-width: 1080px) {
  .live-chip { display: none; }

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

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 4;
    width: min(86vw, 360px);
    margin: 0;
    padding: 92px 18px 28px;
    overflow-y: auto;
    background-color: #1B1620;
    background-image: linear-gradient(180deg, #1D1723 0%, #100D13 100%);
    border-left: 1px solid rgba(94, 242, 214, 0.18);
    box-shadow: -24px 0 70px rgba(0, 0, 0, 0.62);
    transform: translateX(103%);
    visibility: hidden;
    transition: transform 0.36s cubic-bezier(0.22, 0.8, 0.28, 1), visibility 0.36s linear;
  }

  .site-nav[data-open] {
    transform: translateX(0);
    visibility: visible;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .site-nav__link {
    display: flex;
    justify-content: flex-start;
    padding: 15px 16px;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-md);
    font-size: 16px;
    white-space: normal;
  }

  .site-nav__index { font-size: 11px; }

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

@media (max-width: 860px) {
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-contact { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  :root { --header-h: 68px; }

  .header-frame { gap: 10px; padding: 11px var(--gutter); }

  .brand__mark { width: 34px; height: 34px; border-radius: 11px; }
  .brand__name { font-size: 16px; }
  .brand__sub { font-size: 9px; letter-spacing: 0.16em; }

  .btn { padding: 10px 16px; font-size: 13px; }

  .header-actions .btn--cta { padding: 9px 14px; font-size: 13px; }

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

  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .header-actions .btn--cta { padding: 8px 12px; font-size: 12px; }
  .brand__sub { display: none; }
}

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

  html.js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  [data-section] > .eyebrow { opacity: 1; }
}
