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

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

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

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, figcaption, blockquote, dl, dd, table, caption {
  margin: 0;
}

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

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

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

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

table { border-collapse: collapse; width: 100%; }

[hidden] { display: none !important; }

/* ---------- 2. 变量 ---------- */
:root {
  /* 色彩 */
  --bg: #0B1F1A;
  --bg-deep: #07130F;
  --surface: #12312A;
  --cyan: #38F2C8;
  --cyan-dim: #1FA88C;
  --orange: #FF8A3D;
  --ink: #EAF5F0;
  --muted: #8FB3A8;
  --line: #2A4A41;
  --warn: #FFD9C2;

  /* 尺寸 */
  --rail-w: 228px;
  --gutter: 28px;
  --maxw: 1280px;
  --grid-cell: 64px;

  /* 字体 */
  --font-display: "Source Han Sans SC", "Noto Sans SC", "Alibaba PuHuiTi", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, "Courier New", monospace;

  /* 动效 */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-fast: 180ms;
  --dur-slow: 240ms;
}

/* ---------- 3. 中文排版与页面底色 ---------- */
body {
  min-height: 100vh;
  padding-left: var(--rail-w);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  letter-spacing: 0.01em;
  background-color: var(--bg);
  background-image:
    linear-gradient(to right, rgba(42, 74, 65, 0.42) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42, 74, 65, 0.42) 1px, transparent 1px);
  background-size: var(--grid-cell) var(--grid-cell);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

h1, .h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.02em;
}

h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.32;
  letter-spacing: -0.01em;
}

p + p { margin-top: 1em; }

strong { font-weight: 700; }

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

#main-content { scroll-margin-top: 120px; }

/* ---------- 4. 通用文字与工具类 ---------- */
.mono,
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums slashed-zero;
  letter-spacing: 0.02em;
}

.num { color: var(--orange); }

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

.lead {
  font-size: 19px;
  line-height: 1.7;
  color: var(--ink);
  max-width: 62ch;
}

.divider {
  height: 0;
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

/* ---------- 5. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--surface);
  color: var(--ink);
  transition: background var(--dur-fast) linear, color var(--dur-fast) linear, border-color var(--dur-fast) linear;
}

.btn:hover {
  border-color: var(--cyan-dim);
  color: var(--cyan);
}

.btn-cta {
  background: var(--orange);
  border-color: var(--orange);
  color: #1A0D05;
  font-weight: 700;
  border-radius: 999px;
}

.btn-cta:hover {
  background: #FFA268;
  border-color: #FFA268;
  color: #1A0D05;
}

.btn-ghost {
  background: transparent;
  border-color: var(--cyan-dim);
  color: var(--cyan);
}

.btn-ghost:hover {
  background: rgba(56, 242, 200, 0.1);
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ---------- 6. 头部：品牌轨道 + 悬浮胶囊 ---------- */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-180%);
  padding: 10px 18px;
  border-radius: 2px;
  background: var(--cyan);
  color: var(--bg-deep);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  transition: transform var(--dur-fast) var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 60;
}

/* 品牌轨道 */
.brand-rail {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--rail-w);
  z-index: 55;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 22px 20px 26px;
  background: var(--bg-deep);
  border-right: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  border-radius: 2px;
  transition: background var(--dur-fast) linear, color var(--dur-fast) linear;
}

.brand:hover .brand-mark {
  background: var(--cyan);
  color: var(--bg-deep);
}

.brand-text {
  display: block;
  min-width: 0;
}

.brand-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand-sub {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.brand--footer .brand-mark {
  width: 34px;
  height: 34px;
  font-size: 16px;
}

.rail-status {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.rail-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.rail-rule {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--line);
}

.rail-note {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.9;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* 滚动进度光尺 */
.scroll-meter {
  --p: 0;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2px;
  background: rgba(42, 74, 65, 0.6);
}

.scroll-meter-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--cyan);
  transform: scaleY(var(--p));
  transform-origin: top center;
  transition: transform 120ms linear;
}

/* 悬浮胶囊导航 */
.nav-island {
  position: fixed;
  top: 16px;
  left: calc(var(--rail-w) + 24px);
  right: 24px;
  z-index: 58;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 8px 10px 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 19, 15, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.primary-nav { min-width: 0; }

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

.nav-link {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--muted);
  transition: color var(--dur-fast) linear, background var(--dur-fast) linear;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(56, 242, 200, 0.1);
}

.primary-nav .nav-link[aria-current="page"],
.nav-link[aria-current="page"] {
  color: var(--bg-deep);
  background: var(--cyan);
  font-weight: 700;
}

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.nav-toggle:hover { color: var(--ink); border-color: var(--cyan-dim); }

.nav-toggle-bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: background var(--dur-fast) linear;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  transition: transform var(--dur-fast) var(--ease);
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.nav-island[data-open] .nav-toggle-bars { background: transparent; }
.nav-island[data-open] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-island[data-open] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.fav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  transition: color var(--dur-fast) linear, border-color var(--dur-fast) linear;
}

.fav-btn:hover { color: var(--ink); border-color: var(--cyan-dim); }

.fav-dot {
  width: 8px;
  height: 8px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
  transition: background var(--dur-fast) linear;
}

.fav-btn[aria-pressed="true"] {
  color: var(--cyan);
  border-color: var(--cyan);
}

.fav-btn[aria-pressed="true"] .fav-dot { background: var(--cyan); }

/* ---------- 7. 页脚 ---------- */
.site-footer {
  margin-top: 88px;
  background: var(--bg-deep);
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px var(--gutter) 44px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
}

.footer-lead .btn { margin-top: 20px; }

.footer-path {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

.footer-path .mono {
  font-size: 11px;
  color: var(--cyan);
}

.footer-path-sep { color: var(--line); }

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.footer-list li + li { margin-top: 10px; }

.footer-list a {
  display: inline-block;
  font-size: 15px;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color var(--dur-fast) linear, border-color var(--dur-fast) linear;
}

.footer-list a:hover {
  color: var(--ink);
  border-bottom-color: var(--cyan);
}

.footer-base {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px var(--gutter) 52px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
}

.footer-contact {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 2;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.footer-key { color: var(--ink); }
.footer-sep { color: var(--line); }

.footer-note {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 76ch;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- 8. 正文容器 / 面包屑 / 章节头 ---------- */
.page-shell {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 104px var(--gutter) 0;
}

.breadcrumb {
  margin-bottom: 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.breadcrumb li + li::before {
  content: "/";
  margin: 0 8px;
  color: var(--line);
}

.breadcrumb a { transition: color var(--dur-fast) linear; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--ink); }

.section-head {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

.section-index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(22px, 2.6vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 66ch;
}

/* ---------- 9. 栅格 ---------- */
.grid {
  display: grid;
  gap: var(--gutter);
}

@media (min-width: 1024px) {
  .grid--3-6-3 { grid-template-columns: 3fr 6fr 3fr; }
  .grid--4-8 { grid-template-columns: 4fr 8fr; }
  .grid--5-7 { grid-template-columns: 5fr 7fr; }
  .grid--9-3 { grid-template-columns: 9fr 3fr; }
  .grid--3-9 { grid-template-columns: 3fr 9fr; }
}

.card-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* ---------- 10. 卡片 / 标签 / 表格 / 数据 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 24px;
}

.card--flush { padding: 0; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.tag--cyan { color: var(--cyan); border-color: var(--cyan-dim); }
.tag--orange { color: var(--orange); border-color: rgba(255, 138, 61, 0.55); }

.data-table {
  font-size: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.data-table caption {
  padding-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-align: left;
  color: var(--muted);
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(7, 19, 15, 0.55);
}

.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: rgba(56, 242, 200, 0.05); }

.stat-row {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  background: var(--line);
  border: 1px solid var(--line);
}

.stat {
  background: var(--surface);
  padding: 18px 20px;
}

.stat-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums slashed-zero;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--orange);
}

.stat-label {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- 11. 图片容器 ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(56, 242, 200, 0.12), rgba(255, 138, 61, 0.08) 70%),
    var(--surface);
}

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(42, 74, 65, 0.5) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42, 74, 65, 0.5) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.55;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.media-caption {
  padding-top: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ---------- 12. 分段切换 ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

[role="tab"] {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--bg-deep);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  transition: color var(--dur-fast) linear, background var(--dur-fast) linear, border-color var(--dur-fast) linear;
}

[role="tab"]:hover {
  color: var(--ink);
  border-color: var(--cyan-dim);
}

[role="tab"][aria-selected="true"] {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--bg-deep);
  font-weight: 700;
}

[role="tabpanel"] { padding-top: 4px; }

/* ---------- 13. 响应式：平板与手机 ---------- */
@media (max-width: 1023px) {
  :root { --gutter: 20px; --grid-cell: 44px; }

  body {
    padding-left: 0;
    padding-bottom: 96px;
  }

  /* 轨道转为顶部条 */
  .brand-rail {
    position: sticky;
    top: 0;
    bottom: auto;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 12px 18px 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 19, 15, 0.96);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .brand-sub { font-size: 9px; letter-spacing: 0.12em; }

  .rail-status { display: none; }

  .scroll-meter {
    top: auto;
    bottom: -1px;
    left: 0;
    right: 0;
    width: auto;
    height: 2px;
  }

  .scroll-meter-fill {
    width: 100%;
    height: 100%;
    transform: scaleX(var(--p));
    transform-origin: left center;
  }

  /* 胶囊下沉为底部浮岛 */
  .nav-island {
    top: auto;
    bottom: 12px;
    left: 12px;
    right: 12px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 20px;
  }

  .nav-toggle {
    display: inline-flex;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .nav-actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    margin-left: 0;
    gap: 8px;
  }

  .fav-btn { display: none; }

  .btn-cta { padding: 9px 16px; font-size: 12px; }

  .primary-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height var(--dur-slow) var(--ease), opacity var(--dur-fast) linear;
  }

  .nav-island[data-open] .primary-nav {
    max-height: min(64vh, 420px);
    overflow-y: auto;
    opacity: 1;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 0 6px;
    border-top: 1px solid var(--line);
    margin-top: 6px;
  }

  .nav-link {
    display: block;
    padding: 11px 14px;
    border-radius: 2px;
    font-size: 15px;
    color: var(--ink);
  }

  .page-shell { padding-top: 28px; }

  .site-footer { margin-top: 64px; }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding: 44px var(--gutter) 32px;
  }

  .footer-lead { grid-column: 1 / -1; }

  .footer-base { padding: 22px var(--gutter) 40px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }

  .footer-inner { grid-template-columns: 1fr; }

  .footer-contact { font-size: 12px; }

  .data-table { font-size: 14px; }
  .data-table th, .data-table td { padding: 10px 10px; }

  .btn { font-size: 12px; padding: 9px 14px; }
}

/* ---------- 14. 降低动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .scroll-meter-fill { transition: none; }
}
