/* ============ BSPORTS 全站共享样式 /assets/site.css ============ */

/* ---------- 设计变量 ---------- */
:root {
  --c-navy: #0A1F44;
  --c-neon: #39FF14;
  --c-orange: #FF6B35;
  --c-cream: #F5F2EB;
  --c-stone: #8A9BA8;
  --c-moss: #4B7F52;
  --c-terra: #C87533;
  --c-ink: #1E293B;
  --c-mist: #E2E8F0;
  --c-white: #FFFFFF;

  --font-display: "Archivo Black", Impact, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: Inter, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --max-width: 1200px;
  --gutter: 24px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --duration: 0.25s;
  --border-light: 1px solid rgba(138, 155, 168, 0.25);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-white);
  background-color: var(--c-navy);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

ul, ol {
  padding: 0;
}

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

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

button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

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

/* ---------- 基础布局容器 ---------- */
.container {
  width: min(100% - var(--gutter) * 2, var(--max-width));
  margin-inline: auto;
}

/* ---------- 标题排版 ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

/* ---------- 焦点可见状态 ---------- */
:focus-visible {
  outline: 2px solid var(--c-neon);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  transition:
    background-color var(--duration) ease,
    color var(--duration) ease,
    border-color var(--duration) ease,
    transform var(--duration) var(--ease);
}

.btn-primary {
  background-color: var(--c-neon);
  color: var(--c-navy);
  border-color: var(--c-neon);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}

.btn-primary:hover {
  background-color: var(--c-navy);
  color: var(--c-neon);
  border-color: var(--c-neon);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  color: var(--c-neon);
  border-color: rgba(57, 255, 20, 0.5);
}

.btn-outline:hover {
  background-color: rgba(57, 255, 20, 0.1);
  border-color: var(--c-neon);
  transform: translateY(-1px);
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-stone);
  letter-spacing: 0.04em;
  padding-block: 12px;
}

.breadcrumb a {
  color: var(--c-stone);
  text-decoration: none;
  transition: color var(--duration) ease;
}

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

.breadcrumb__sep {
  color: rgba(255, 255, 255, 0.3);
}

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

/* ---------- 通用页面分区 ---------- */
.page-section {
  padding-block: 56px;
}

.page-section--cream {
  background-color: var(--c-cream);
  color: var(--c-ink);
}

.page-section--navy {
  background-color: var(--c-navy);
  color: var(--c-white);
}

.page-hero {
  padding-block: 64px 56px;
  background-color: var(--c-navy);
  color: var(--c-white);
  border-bottom: 1px solid rgba(138, 155, 168, 0.2);
}

.page-hero__title {
  margin-top: 16px;
  font-size: clamp(34px, 6vw, 64px);
  letter-spacing: 0.02em;
  line-height: 1.08;
}

.page-hero__lead {
  max-width: 520px;
  margin-top: 16px;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.68);
}

/* ---------- 展览标签 ---------- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--c-stone);
  text-transform: uppercase;
}

.section-label::before {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background-color: var(--c-neon);
  transform: skewX(-30deg);
}

/* ---------- 正文容器 ---------- */
.article-body {
  color: var(--c-ink);
  font-size: 15px;
  line-height: 2;
}

.article-body h2 {
  margin-top: 2em;
  margin-bottom: 0.7em;
  font-size: 26px;
  color: var(--c-navy);
}

.article-body h3 {
  margin-top: 1.6em;
  margin-bottom: 0.5em;
  font-size: 20px;
  color: var(--c-navy);
}

.article-body p {
  margin-bottom: 1.2em;
}

.article-body ul,
.article-body ol {
  margin-bottom: 1.2em;
  padding-left: 1.4em;
}

.article-body li {
  margin-bottom: 0.4em;
}

.article-body a {
  color: var(--c-navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--duration) ease;
}

.article-body a:hover {
  color: var(--c-moss);
}

.article-body blockquote {
  margin: 1.6em 0;
  padding: 16px 20px;
  border-left: 4px solid var(--c-neon);
  background-color: var(--c-cream);
  color: var(--c-ink);
  font-family: var(--font-mono);
  font-size: 14px;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 1.6em;
}

.article-body th {
  background-color: var(--c-navy);
  color: var(--c-white);
  text-align: left;
  padding: 10px 14px;
  font-weight: 600;
}

.article-body td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--c-mist);
}

/* ---------- 基础卡片与网格 ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 24px;
}

.card {
  background-color: var(--c-white);
  border: 1px solid var(--c-mist);
  border-radius: 3px;
  padding: 28px;
  box-shadow: 0 4px 16px rgba(10, 31, 68, 0.06);
  transition:
    border-color var(--duration) ease,
    box-shadow var(--duration) ease,
    transform var(--duration) var(--ease);
}

.card:hover {
  border-color: var(--c-neon);
  box-shadow: 0 10px 30px rgba(10, 31, 68, 0.1);
}

.card__title {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--c-navy);
  margin-bottom: 12px;
}

.card__text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--c-ink);
}

/* ---------- 数据统计块 ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.stat-item {
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--c-white);
}

.stat-item__number {
  display: block;
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 600;
  color: var(--c-neon);
  line-height: 1.2;
}

.stat-item__label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.06em;
}

/* ---------- 说明面板 ---------- */
.note {
  padding: 18px 22px;
  background-color: var(--c-cream);
  border-left: 4px solid var(--c-orange);
  color: var(--c-ink);
  font-size: 14px;
  line-height: 1.8;
}

.note--green {
  border-left-color: var(--c-neon);
}

/* ---------- 页头 ---------- */
.site-header {
  position: relative;
  z-index: 100;
  background-color: var(--c-navy);
  border-top: 3px solid var(--c-neon);
  box-shadow: 0 2px 16px rgba(10, 31, 68, 0.08);
}

.skip-link {
  position: absolute;
  top: -120%;
  left: 0;
  z-index: 200;
  padding: 12px 24px;
  background-color: var(--c-neon);
  color: var(--c-navy);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: top var(--duration) ease;
}

.skip-link:focus {
  top: 0;
}

/* ---------- 顶部数据条 ---------- */
.header-live {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background-color: rgba(6, 16, 38, 0.5);
}

.header-live__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 8px;
}

.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-neon);
  letter-spacing: 0.06em;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--c-neon);
  box-shadow: 0 0 8px rgba(57, 255, 20, 0.8);
  animation: livePulse 2s ease-in-out infinite;
}

.live-index {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--c-stone);
}

@keyframes livePulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.75);
  }
}

/* ---------- 报头区 ---------- */
.header-mast {
  position: relative;
  overflow: hidden;
}

.header-mast::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 220px;
  height: 220px;
  background: linear-gradient(135deg, transparent 40%, rgba(57, 255, 20, 0.08) 100%);
  pointer-events: none;
}

.mast-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 24px 20px;
}

.brand-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
}

.brand-logo__mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 50px);
  letter-spacing: 0.06em;
  color: var(--c-white);
  line-height: 1;
}

.brand-logo__mark::before {
  content: "";
  width: 7px;
  height: 30px;
  background-color: var(--c-neon);
  transform: skewX(-24deg);
  border-radius: 1px;
  flex-shrink: 0;
}

.brand-logo__sub {
  display: block;
  margin-top: 6px;
  padding-left: 17px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--c-stone);
}

/* ---------- 报头操作区 ---------- */
.mast-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mast-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(57, 255, 20, 0.45);
  background-color: rgba(57, 255, 20, 0.07);
  color: var(--c-neon);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition:
    background-color var(--duration) ease,
    border-color var(--duration) ease;
}

.mast-status:hover {
  background-color: rgba(57, 255, 20, 0.16);
  border-color: var(--c-neon);
}

.mast-status__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--c-neon);
  box-shadow: 0 0 6px rgba(57, 255, 20, 0.8);
}

/* ---------- 移动导航按钮 ---------- */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background-color: transparent;
  transition: border-color var(--duration) ease;
}

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

.nav-toggle__line {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--c-white);
  transition: background-color var(--duration) ease, transform var(--duration) var(--ease);
}

.nav-toggle.is-active .nav-toggle__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background-color: var(--c-neon);
}

.nav-toggle.is-active .nav-toggle__line:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-active .nav-toggle__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background-color: var(--c-neon);
}

/* ---------- 主导航 ---------- */
.site-nav {
  background-color: var(--c-navy);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    max-height 0.4s var(--ease),
    opacity 0.3s ease,
    border-color 0.3s ease;
}

.site-nav[data-open="true"] {
  max-height: 560px;
  opacity: 1;
  border-bottom-color: rgba(57, 255, 20, 0.25);
}

.nav-inner {
  display: flex;
  flex-direction: column;
  padding-block: 0;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 15px 14px;
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition:
    color var(--duration) ease,
    background-color var(--duration) ease;
}

.nav-link:last-child {
  border-bottom: none;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -1px;
  height: 2px;
  background-color: var(--c-neon);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease);
}

.nav-link:hover {
  color: var(--c-white);
  background-color: rgba(255, 255, 255, 0.04);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-link[aria-current="page"] {
  color: var(--c-neon);
}

.nav-link__num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-stone);
  letter-spacing: 0.08em;
  transition: color var(--duration) ease;
}

.nav-link[aria-current="page"] .nav-link__num,
.nav-link:hover .nav-link__num {
  color: var(--c-neon);
}

/* ---------- 滚动进度条 ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--c-neon), var(--c-orange));
  z-index: 999;
  pointer-events: none;
  will-change: width;
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  background-color: var(--c-navy);
  color: rgba(255, 255, 255, 0.72);
  border-top: 4px solid var(--c-neon);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--c-neon) 0,
    var(--c-neon) 70%,
    var(--c-orange) 70%,
    var(--c-orange) 85%,
    var(--c-neon) 85%
  );
  opacity: 0.7;
}

.footer-top {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 44px 44px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-block: 52px 44px;
}

.footer-brand .brand-logo--footer .brand-logo__mark {
  font-size: clamp(26px, 4vw, 38px);
}

.footer-desc {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
}

.footer-trust {
  margin-top: 12px;
  padding-left: 14px;
  border-left: 2px solid var(--c-neon);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--c-stone);
}

.footer-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--c-white);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-title::before {
  content: "//";
  font-family: var(--font-mono);
  color: var(--c-neon);
  font-size: 12px;
}

.footer-menu {
  list-style: none;
  columns: 2;
  column-gap: 24px;
}

.footer-menu li {
  margin-bottom: 10px;
  break-inside: avoid;
  font-size: 14px;
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.62);
  transition: color var(--duration) ease, padding-left var(--duration) ease;
}

.footer-menu a:hover {
  color: var(--c-neon);
  padding-left: 4px;
}

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

.contact-row {
  display: flex;
  gap: 12px;
  padding-block: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.contact-row__label {
  flex: 0 0 36px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-neon);
  padding-top: 2px;
}

.contact-row__value {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  word-break: break-all;
}

.footer-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-neon);
  letter-spacing: 0.06em;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color var(--duration) ease;
}

.footer-link-arrow::after {
  content: "→";
  transition: transform var(--duration) ease;
}

.footer-link-arrow:hover {
  border-bottom-color: var(--c-neon);
}

.footer-link-arrow:hover::after {
  transform: translateX(4px);
}

.footer-note__text {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.6);
}

.footer-note__tags {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-orange);
  letter-spacing: 0.04em;
}

/* ---------- 页脚底部备案条 ---------- */
.footer-bottom {
  background-color: rgba(4, 12, 28, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding-block: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom__link {
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--duration) ease;
}

.footer-bottom__link:hover {
  color: var(--c-neon);
}

/* ---------- 站点各页面主区域 ---------- */
#main-content {
  min-height: 50vh;
  background-color: var(--c-cream);
  color: var(--c-ink);
}

/* ---------- 响应式 ---------- */
@media (min-width: 641px) {
  .stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    max-height: none;
    opacity: 1;
    overflow: visible;
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }

  .nav-inner {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav-link {
    padding: 14px 22px;
    border-bottom: none;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-link::after {
    bottom: 0;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 56px;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
    gap: 60px;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-section {
    padding-block: 80px;
  }
}

@media (max-width: 767px) {
  .live-index {
    display: none;
  }

  .mast-status__text {
    display: none;
  }

  .mast-status {
    padding: 10px 12px;
  }

  .brand-logo__sub {
    font-size: 10px;
  }

  .footer-menu {
    columns: 1;
  }

  .header-live__inner {
    justify-content: center;
  }

  .live-tag {
    font-size: 11px;
  }
}

/* ---------- 减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .live-dot {
    animation: none;
  }

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

  .scroll-progress {
    transition: none;
  }
}

/* ---------- 滚动显现协议 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s ease,
    transform 0.6s var(--ease);
}

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