/* ============================================================
   博马体育 · 共享站点样式 /assets/site.css
   夜间球场指挥台：深墨绿场域 + 荧光青定位 + 数据亮橙强调
   ============================================================ */

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

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

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

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

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

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

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

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

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

hr { border: 0; }

/* ---------- 2. 变量 ---------- */
:root {
  --ink: #06120F;
  --ink-2: #0B211B;
  --line: #123A2E;
  --cy: #35F0C8;
  --cy-soft: #7CF7DE;
  --orange: #FF8A2B;
  --violet: #8E7CFF;
  --paper: #F2F7F4;
  --mist: #9DB4AC;
  --hairline: #D7E4DE;

  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1280px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC",
    "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular,
    Menlo, Consolas, "Liberation Mono", monospace;

  --z-header: 100;
  --z-top: 90;
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(-58deg,
      rgba(53, 240, 200, 0.032) 0 1px,
      transparent 1px 30px),
    radial-gradient(120% 62% at 84% -12%, rgba(142, 124, 255, 0.12), transparent 62%),
    radial-gradient(90% 52% at -8% 4%, rgba(53, 240, 200, 0.09), transparent 58%);
  background-repeat: no-repeat, no-repeat, no-repeat;
}

h1, h2, h3, h4 {
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.22;
  font-stretch: 90%;
  color: var(--paper);
  text-wrap: balance;
}

p { max-width: 38em; }

::selection {
  background: var(--cy);
  color: #04120E;
}

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

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

/* ---------- 4. 布局容器 ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

/* ---------- 5. 通用文本元素 ---------- */
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cy);
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.85;
  flex: none;
}

.rule-slant {
  height: 1px;
  margin: clamp(36px, 6vw, 72px) 0;
  background: linear-gradient(90deg,
    var(--cy) 0%,
    rgba(53, 240, 200, 0.28) 30%,
    transparent 74%);
  transform-origin: left center;
  transform: rotate(-1.1deg);
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.18s var(--ease),
    color 0.18s var(--ease),
    border-color 0.18s var(--ease),
    transform 0.18s var(--ease);
}

.btn--accent {
  background: var(--orange);
  border-color: var(--orange);
  color: #1A0A00;
}

.btn--accent:hover {
  background: #FFA45C;
  border-color: #FFA45C;
}

.btn--accent:active { transform: translateY(1px); }

.btn--ghost {
  background: transparent;
  border-color: rgba(53, 240, 200, 0.55);
  color: var(--cy);
}

.btn--ghost:hover {
  background: rgba(53, 240, 200, 0.12);
  border-color: var(--cy);
}

/* ---------- 7. 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -80px;
  left: var(--gutter);
  z-index: 200;
  padding: 10px 18px;
  border-radius: 0 0 10px 10px;
  background: var(--cy);
  color: #04120E;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: top 0.18s var(--ease);
}

.skip-link:focus {
  top: 0;
  outline-offset: -3px;
}

/* ============================================================
   8. 页头 —— 顶置指挥条
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.22s var(--ease),
    border-color 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}

.site-header[data-scrolled] {
  background-color: rgba(11, 33, 27, 0.97);
  border-bottom-color: var(--line);
  box-shadow: 0 24px 48px -40px #000;
}

.site-header[data-nav-open] {
  background-color: var(--ink-2);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  padding-block: 22px;
  transition: padding 0.22s var(--ease);
}

.site-header[data-scrolled] .header-inner { padding-block: 12px; }

/* --- 品牌 --- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: none;
  color: var(--paper);
}

.brand__mark {
  position: relative;
  width: 36px;
  height: 36px;
  flex: none;
  border: 1.5px solid var(--cy);
  border-radius: 50%;
}

.brand__mark::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1.5px solid var(--cy);
  border-radius: 50%;
  opacity: 0.5;
}

.brand__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  bottom: -5px;
  width: 1.5px;
  transform: translateX(-50%);
  background: linear-gradient(transparent, var(--cy), transparent);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.brand__tag {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mist);
}

/* --- 主导航 --- */
.primary-nav {
  margin-inline: auto;
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 26px);
}

.nav-list__item { display: block; }

.nav-link {
  position: relative;
  display: inline-block;
  padding: 6px 2px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--mist);
  transition: color 0.18s var(--ease);
}

.nav-link:hover { color: var(--cy-soft); }

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

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--cy);
}

/* --- 移动抽屉内的快捷入口 --- */
.nav-aside { display: none; }

.nav-aside__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 10px;
}

.nav-aside__list {
  display: grid;
  gap: 10px;
}

.nav-aside__link {
  font-size: 14px;
  color: var(--cy-soft);
  letter-spacing: 0.04em;
}

.nav-aside__link:hover { color: var(--paper); }

/* --- 右侧工具区 --- */
.header-tools {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 18px);
  flex: none;
}

.header-chapter {
  max-width: 16ch;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--cy);
}

.header-chapter:empty { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(11, 33, 27, 0.7);
}

.nav-toggle__bar {
  display: block;
  width: 20px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--cy);
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}

.site-header[data-nav-open] .nav-toggle__bar:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.site-header[data-nav-open] .nav-toggle__bar:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* --- 阅读进度线 --- */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--cy), var(--violet));
  opacity: 0.9;
}

/* ============================================================
   9. 页脚 —— 赛后面板
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: clamp(72px, 12vw, 160px);
  border-top: 1px solid var(--line);
  background-color: var(--ink-2);
  background-image: linear-gradient(172deg, rgba(53, 240, 200, 0.075), transparent 46%);
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--cy), var(--violet) 46%, transparent 88%);
  opacity: 0.85;
}

.site-footer::after {
  content: "";
  position: absolute;
  top: 8%;
  right: -10%;
  width: 48%;
  height: 130%;
  pointer-events: none;
  background: repeating-linear-gradient(-64deg,
    rgba(53, 240, 200, 0.06) 0 1px,
    transparent 1px 34px);
  transform: rotate(-6deg);
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 1.9fr);
  gap: clamp(32px, 5vw, 80px);
  padding-block: clamp(44px, 6vw, 80px) clamp(32px, 4vw, 56px);
}

.footer-brand__mark {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-stretch: 88%;
  color: var(--paper);
  max-width: none;
}

.footer-brand__tag {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cy);
  max-width: none;
}

.footer-brand__meta {
  margin-top: 12px;
  max-width: 30ch;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--mist);
}

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

.footer-col__title {
  max-width: none;
  padding-bottom: 10px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cy);
}

.footer-col__list {
  display: grid;
  gap: 9px;
}

.footer-link {
  display: inline-block;
  font-size: 14px;
  color: var(--mist);
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}

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

.footer-base {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 26px;
  padding-block: 20px clamp(26px, 4vw, 42px);
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

.footer-base__item { max-width: none; }

.footer-base__note {
  max-width: 46ch;
  color: rgba(157, 180, 172, 0.72);
}

/* ---- 回到顶部 ---- */
.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 28px);
  bottom: clamp(14px, 3vw, 28px);
  z-index: var(--z-top);
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ink-2);
  color: var(--cy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.22s var(--ease),
    transform 0.22s var(--ease),
    visibility 0.22s var(--ease),
    border-color 0.22s var(--ease);
}

.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover { border-color: var(--cy); }

.to-top__icon {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1;
}

.to-top__text { line-height: 1; }

/* ============================================================
   10. 面包屑
   ============================================================ */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 10px;
  margin-bottom: 26px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mist);
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: "/";
  color: var(--line);
}

.breadcrumb__link {
  color: var(--mist);
  transition: color 0.18s var(--ease);
}

.breadcrumb__link:hover { color: var(--cy); }

/* ============================================================
   11. 图片容器基础规则
   ============================================================ */
.media-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  background-color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 2px;
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(158deg, rgba(53, 240, 200, 0.16), transparent 52%),
    linear-gradient(0deg, rgba(6, 18, 15, 0.55), transparent 62%),
    repeating-linear-gradient(-45deg,
      rgba(53, 240, 200, 0.055) 0 1px,
      transparent 1px 11px);
}

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

.media-frame__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 12px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--mist);
  background: linear-gradient(transparent, rgba(6, 18, 15, 0.92));
}

/* ============================================================
   12. 响应式
   ============================================================ */
@media (max-width: 1100px) {
  .header-chapter { display: none; }
}

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

@media (max-width: 900px) {
  /* --- 移动导航抽屉 --- */
  .nav-toggle { display: flex; }

  .header-cta { display: none; }

  .header-inner {
    padding-block: 16px;
    gap: 12px;
    justify-content: space-between;
  }

  .site-header[data-scrolled] .header-inner { padding-block: 10px; }

  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    margin-inline: 0;
    display: block;
    width: min(340px, 88vw);
    height: 100dvh;
    padding: 92px 26px 40px;
    overflow-y: auto;
    background-color: var(--ink-2);
    border-left: 1px solid var(--line);
    box-shadow: -48px 0 90px -70px #000;
    clip-path: polygon(26px 0, 100% 0, 100% 100%, 0 100%, 0 26px);
    transform: translateX(104%);
    opacity: 0;
    visibility: hidden;
    transition:
      transform 0.34s var(--ease),
      opacity 0.28s var(--ease),
      visibility 0.28s var(--ease);
  }

  .primary-nav::before {
    content: "";
    position: absolute;
    top: 68px;
    left: 26px;
    right: 26px;
    height: 1px;
    opacity: 0.6;
    background: repeating-linear-gradient(90deg,
      var(--cy) 0 8px,
      transparent 8px 18px);
  }

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

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

  .nav-list__item { border-bottom: 1px solid var(--line); }

  .nav-link {
    display: block;
    padding: 15px 0;
    font-size: 16.5px;
    color: var(--paper);
  }

  .nav-link[aria-current="page"]::after { display: none; }

  .nav-aside {
    display: block;
    margin-top: 30px;
    padding-top: 22px;
    border-top: 1px dashed var(--line);
  }

  /* --- 页脚堆叠 --- */
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }
}

@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
}

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

  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 18px;
  }

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

  .to-top {
    padding: 9px 13px;
    font-size: 11px;
  }
}

@media (max-width: 460px) {
  .brand__mark { width: 30px; height: 30px; }
  .brand__mark::before { inset: 7px; }
  .brand__name { font-size: 17px; }
  .brand__tag { letter-spacing: 0.16em; }

  .primary-nav {
    width: 100%;
    clip-path: none;
    border-left: 0;
  }

  .primary-nav::before { 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;
  }

  .footer-link:hover { transform: none; }
  .btn--accent:active { transform: none; }
  .to-top { transform: none; }
  .rule-slant { transform: none; }
  .primary-nav { transform: none; }
}
