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

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  background-color: var(--bg-deep);
  background-image:
    linear-gradient(rgba(56, 242, 224, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 242, 224, 0.05) 1px, transparent 1px);
  background-size: 68px 68px, 68px 68px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button,
input,
select,
textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

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

dl,
dd { margin: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.015em;
  color: var(--paper);
}

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

a {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: #7bf8ec; }

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

::selection {
  background: rgba(56, 242, 224, 0.28);
  color: var(--paper);
}

/* ---------- 02. 设计变量 ---------- */
:root {
  --ink-900: #030B12;
  --bg-deep: #071A2B;
  --bg-panel: #0C253C;
  --bg-panel-2: #0F2E49;
  --cyan: #38F2E0;
  --cyan-2: #2AA8C9;
  --orange: #FF5A36;
  --amber: #FFB547;
  --green: #48D597;
  --paper: #EAF4FF;
  --mute: #8DA6B8;

  --line: rgba(56, 242, 224, 0.16);
  --line-soft: rgba(56, 242, 224, 0.09);
  --line-strong: rgba(56, 242, 224, 0.36);
  --hair: rgba(3, 11, 18, 0.9);

  --shadow-1: 0 1px 0 rgba(234, 244, 255, 0.05), 0 22px 44px -30px rgba(3, 11, 18, 0.95);

  --radius: 2px;
  --shell: 1240px;
  --nav-break: 900px;

  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

/* ---------- 03. 布局外壳 ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
}

.page-main { display: block; }

.section { padding-block: clamp(32px, 5vw, 64px); }

.section-title {
  margin: 0 0 12px;
  font-size: clamp(21px, 2.8vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--cyan-2);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--cyan);
}

.lede {
  max-width: 62ch;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.78;
  color: #C4D7E6;
}

.stack > * + * { margin-top: 16px; }

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}
.grid--split { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.4vw, 28px);
  box-shadow: var(--shadow-1);
}

.rule-box {
  padding: 15px 18px;
  background: rgba(234, 244, 255, 0.04);
  border: 1px solid rgba(234, 244, 255, 0.12);
  border-left: 2px solid var(--cyan-2);
  border-radius: var(--radius);
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.78;
  color: #B4C8D8;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--cyan);
  white-space: nowrap;
}
.tag--amber { color: var(--amber); border-color: rgba(255, 181, 71, 0.42); }
.tag--orange { color: var(--orange); border-color: rgba(255, 90, 54, 0.45); }

/* ---------- 04. 跳过链接 ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -120px;
  z-index: 300;
  padding: 10px 18px;
  background: var(--orange);
  color: #0A1622;
  font-weight: 700;
  font-size: 14px;
  border-radius: var(--radius);
  transition: top 0.18s ease;
}
.skip-link:focus {
  top: 12px;
  color: #0A1622;
}

/* ---------- 05. 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(9, 29, 48, 0.95);
  border-bottom-color: var(--line);
  box-shadow: 0 16px 34px -28px rgba(3, 11, 18, 0.98);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

/* 状态轨 */
.status-rail {
  overflow: hidden;
  max-height: 64px;
  background: rgba(12, 37, 60, 0.72);
  border-bottom: 1px solid var(--line);
  transition: max-height 0.3s ease, opacity 0.24s ease, border-color 0.3s ease;
}
.site-header.is-scrolled .status-rail {
  max-height: 0;
  opacity: 0;
  border-bottom-color: transparent;
}
.status-rail__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  min-height: 38px;
  padding-block: 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--mute);
}
.status-rail__dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(72, 213, 151, 0.18);
}
.status-rail__text {
  margin: 0;
  color: var(--paper);
  font-weight: 500;
}
.status-rail__meta {
  margin-left: auto;
  color: var(--mute);
}

/* 导航带 */
.nav-bar { position: relative; }
.nav-bar__inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 38px);
  min-height: 76px;
}

/* 品牌锁定 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--paper);
}
.brand:hover { color: var(--paper); }
.brand__mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--cyan);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(56, 242, 224, 0.18), rgba(56, 242, 224, 0) 68%);
  box-shadow: inset 0 0 18px rgba(56, 242, 224, 0.16);
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
  color: var(--cyan);
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.01em;
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--mute);
}

/* 主导航 */
.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  margin-left: auto;
}
.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.3vw, 20px);
}
.site-nav__item { display: block; }
.site-nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 8px 2px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--mute);
  white-space: nowrap;
  transition: color 0.2s ease;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s ease;
}
.site-nav__link:hover { color: var(--paper); }
.site-nav__link:hover::after,
.site-nav__link[aria-current="page"]::after { transform: scaleX(1); }
.site-nav__link[aria-current="page"] {
  color: var(--cyan);
  font-weight: 600;
}
.site-nav__index {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--cyan-2);
  opacity: 0.9;
}
.site-nav__link[aria-current="page"] .site-nav__index { color: var(--cyan); }
.site-nav__cta {
  flex: 0 0 auto;
  padding: 9px 16px;
  font-size: 13.5px;
}

/* 移动端菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  padding: 9px 12px;
  background: rgba(12, 37, 60, 0.78);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
}
.nav-toggle:hover { border-color: var(--cyan); }
.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 18px;
}
.nav-toggle__bar {
  display: block;
  height: 1.5px;
  background: var(--cyan);
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-toggle__label { line-height: 1; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* 阅读进度线 */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan-2), var(--cyan) 62%, var(--amber));
  box-shadow: 0 0 10px rgba(56, 242, 224, 0.55);
  pointer-events: none;
  transition: width 0.12s linear;
}

/* ---------- 06. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.btn:hover {
  background: rgba(56, 242, 224, 0.1);
  border-color: var(--cyan);
  color: var(--paper);
}
.btn--cta {
  background: var(--orange);
  border-color: var(--orange);
  color: #0A1622;
  font-weight: 700;
}
.btn--cta:hover {
  background: #FF7457;
  border-color: #FF7457;
  color: #0A1622;
  transform: translateY(-1px);
}
.btn--ghost { color: var(--cyan); }

/* ---------- 07. 面包屑与正文 ---------- */
.breadcrumbs {
  padding-block: 18px 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--mute);
}
.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.breadcrumbs__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.breadcrumbs__item + .breadcrumbs__item::before {
  content: "/";
  color: rgba(141, 166, 184, 0.55);
}
.breadcrumbs__link { color: var(--mute); }
.breadcrumbs__link:hover { color: var(--cyan); }
.breadcrumbs__item[aria-current="page"] { color: var(--paper); }

.prose {
  max-width: 68ch;
  font-size: 16.5px;
  line-height: 1.85;
  color: #D4E3F0;
  font-weight: 400;
}
.prose h2 {
  margin: 2em 0 0.6em;
  font-size: clamp(19px, 2.2vw, 25px);
  letter-spacing: -0.02em;
}
.prose h3 {
  margin: 1.6em 0 0.5em;
  font-size: clamp(16px, 1.6vw, 19px);
  color: #F2F9FF;
}
.prose p { margin: 0 0 1.15em; }
.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.25em;
  list-style: disc;
}
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--cyan-2); }
.prose strong { color: var(--paper); font-weight: 700; }
.prose blockquote {
  margin: 1.6em 0;
  padding: 14px 20px;
  border-left: 2px solid var(--cyan-2);
  background: rgba(56, 242, 224, 0.05);
  color: #C4D7E6;
}
.prose a { border-bottom: 1px solid var(--line-strong); }

/* ---------- 08. 响应式媒体容器（页面阶段放图） ---------- */
.media { margin: 0; }
.media__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(42, 168, 201, 0.28), transparent 60%),
    linear-gradient(140deg, #0C253C 0%, #071A2B 72%);
}
.media__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 242, 224, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 242, 224, 0.14) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px;
  opacity: 0.55;
  pointer-events: none;
}
.media__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.06) brightness(0.94);
}
.media__caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--mute);
}
.media--wide .media__frame { aspect-ratio: 21 / 9; }

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

/* ---------- 10. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 108px);
  background: linear-gradient(180deg, #061626 0%, #040F1B 62%, #030B12 100%);
  border-top: 1px solid var(--line);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(320px, 62%);
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), rgba(56, 242, 224, 0));
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(26px, 4vw, 56px);
  padding-block: clamp(36px, 5vw, 64px) clamp(28px, 4vw, 48px);
}

.footer-brand__line {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--paper);
}
.footer-brand__note {
  max-width: 36ch;
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--mute);
}

.footer-heading {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--cyan-2);
}

.footer-nav__list {
  display: grid;
  gap: 9px;
}
.footer-nav__link {
  display: inline-block;
  font-size: 14px;
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-nav__link:hover {
  color: var(--cyan);
  border-bottom-color: var(--line-strong);
}

.footer-contact__list {
  display: grid;
  gap: 10px;
}
.footer-contact__row {
  display: grid;
  grid-template-columns: 3.4em minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(56, 242, 224, 0.08);
}
.footer-contact__row:last-child { border-bottom: 0; padding-bottom: 0; }
.footer-contact__key {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--mute);
  white-space: nowrap;
}
.footer-contact__val {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--paper);
  word-break: break-word;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 26px;
  padding-block: 20px 28px;
  border-top: 1px solid rgba(56, 242, 224, 0.12);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  color: var(--mute);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.footer-legal__link {
  color: var(--paper);
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-legal__link:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}
.footer-icp { margin: 0; color: var(--mute); }
.footer-copy { margin: 0 0 0 auto; color: var(--mute); }

/* ---------- 11. 断点 ---------- */
@media (max-width: 1080px) {
  .grid--split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 82px; }

  .status-rail__meta { display: none; }
  .nav-bar__inner { min-height: 66px; }

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

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 6px clamp(18px, 4vw, 40px) 22px;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    background: rgba(9, 29, 48, 0.985);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 28px 48px -30px #000;
  }
  .site-header[data-open="true"] .site-nav { display: flex; }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .site-nav__item { border-bottom: 1px solid rgba(56, 242, 224, 0.1); }
  .site-nav__link {
    width: 100%;
    padding: 14px 0;
    font-size: 16px;
    color: var(--paper);
  }
  .site-nav__link::after { display: none; }
  .site-nav__link[aria-current="page"] { color: var(--cyan); }
  .site-nav__link[aria-current="page"]::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 50%;
    width: 3px;
    height: 16px;
    margin-top: -8px;
    background: var(--cyan);
  }
  .site-nav__cta {
    width: 100%;
    margin-top: 18px;
    padding: 14px 18px;
    font-size: 14.5px;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 30px 32px;
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand__note { max-width: 52ch; }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; background-size: 52px 52px, 52px 52px; }
  .brand__mark { width: 34px; height: 34px; font-size: 17px; }
  .brand__name { font-size: 15.5px; }
  .brand__sub { font-size: 9.5px; letter-spacing: 0.18em; }
  .status-rail__inner { font-size: 10.5px; min-height: 34px; }

  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-copy { margin-left: 0; }
  .footer-contact__row { grid-template-columns: 3em minmax(0, 1fr); }
  .prose { font-size: 16px; }
}

/* ---------- 12. 动效可及性 ---------- */
@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;
  }
  .scroll-progress { transition: none; }
  .reveal-ready [data-reveal]:not(.is-visible) {
    opacity: 1;
    transform: none;
  }
}
