/* =========================================================
   宝威体育 · 共享样式 /assets/site.css
   夜场看台 × 数据屏：坐标网格、刻度导航、堆叠画板
   ========================================================= */

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

html {
  background: #0A0F0C;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

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

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

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

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

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

a { color: inherit; }

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

/* ---------------- 变量 ---------------- */
:root {
  --ink: #0A0F0C;
  --green-deep: #0F2A1D;
  --green-mid: #16452F;
  --turf: #1F6B45;
  --lime: #C6FF3D;
  --flare: #FF6B2C;
  --stand: #FFC24B;
  --paper: #EAF3EC;
  --mist: #9BB0A4;
  --grid: #2A3A31;

  --font-display: "Source Han Sans SC Heavy", "Alibaba PuHuiTi Bold",
    "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --font-body: "PingFang SC", "Source Han Sans SC", "Noto Sans SC",
    "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace,
    SFMono-Regular, Menlo, Consolas, monospace;

  --shell-w: 1240px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --r-lg: 26px;
  --r-md: 16px;
  --r-sm: 10px;
  --line: 1px solid var(--grid);
  --shadow-panel: 0 20px 44px rgba(0, 0, 0, .42);
}

/* ---------------- 排版基线 ---------------- */
body {
  position: relative;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.75;
  color: var(--paper);
  background: transparent;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .42;
  background-image:
    linear-gradient(to right, rgba(42, 58, 49, .9) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42, 58, 49, .6) 1px, transparent 1px);
  background-size: 96px 96px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

strong { color: var(--lime); font-weight: 700; }

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

::selection { background: var(--lime); color: var(--ink); }

/* ---------------- 容器 ---------------- */
.shell {
  width: 100%;
  max-width: var(--shell-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(2.5rem, 6vw, 5rem); }

.stack > * + * { margin-top: clamp(1rem, 2.4vw, 1.6rem); }

/* ---------------- 跳转链接 ---------------- */
.skip-link {
  position: absolute;
  left: var(--gutter);
  top: .5rem;
  z-index: 200;
  padding: .55rem 1rem;
  border-radius: var(--r-sm);
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
  font-size: .85rem;
  text-decoration: none;
  transform: translateY(-240%);
  transition: transform .2s ease;
}

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

/* ---------------- 头部 ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(180deg, rgba(10, 15, 12, .98) 0%, rgba(15, 42, 29, .96) 100%);
  border-bottom: 1px solid var(--grid);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.read-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 3px;
  width: 0;
  background: var(--lime);
  z-index: 5;
  pointer-events: none;
}

.header-top__inner {
  display: flex;
  align-items: center;
  gap: clamp(.8rem, 2vw, 1.6rem);
  padding-block: clamp(.7rem, 1.6vw, 1rem);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: .18rem;
  margin-right: auto;
  min-width: 0;
}

.brand__link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--paper);
}

.brand__dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime);
  animation: beacon 1.6s ease-in-out infinite;
}

@keyframes beacon {
  0%, 100% { box-shadow: 0 0 0 3px rgba(198, 255, 61, .18); }
  50% { box-shadow: 0 0 0 8px rgba(198, 255, 61, .03); }
}

.brand__note {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .07em;
  color: var(--mist);
  line-height: 1.5;
}

.header-tagline {
  font-size: .82rem;
  color: var(--mist);
  letter-spacing: .02em;
  white-space: nowrap;
  border-left: 1px solid var(--grid);
  padding-left: clamp(.8rem, 2vw, 1.4rem);
}

.header-acts {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex: none;
}

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .58rem 1.05rem;
  border: 1px solid var(--grid);
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease, background-color .2s ease,
    border-color .2s ease, transform .2s ease;
}

.btn:hover {
  color: var(--lime);
  border-color: var(--turf);
  background: rgba(31, 107, 69, .22);
  transform: translateY(-1px);
}

.btn--solid {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

.btn--solid:hover {
  background: var(--flare);
  border-color: var(--flare);
  color: var(--ink);
}

/* ---------------- 移动端按钮 ---------------- */
.nav-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  flex: none;
  padding: .5rem .7rem;
  border: 1px solid var(--grid);
  border-radius: var(--r-sm);
  background: rgba(22, 69, 47, .6);
  color: var(--paper);
}

.nav-toggle__bars {
  display: grid;
  gap: 4px;
  width: 18px;
}

.nav-toggle__bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--lime);
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle__text {
  font-size: .74rem;
  letter-spacing: .1em;
  color: var(--mist);
}

.site-header[data-open] .nav-toggle__bars i:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.site-header[data-open] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle__bars i:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------------- 坐标刻尺 ---------------- */
.ruler {
  position: relative;
  height: 11px;
  border-top: 1px solid var(--grid);
  background-image: repeating-linear-gradient(
    90deg, var(--grid) 0 1px, transparent 1px 28px
  );
  background-size: 28px 5px;
  background-repeat: repeat-x;
  background-position: 0 0;
}

.ruler::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg, var(--turf) 0 1px, transparent 1px 140px
  );
  background-size: 140px 11px;
  background-repeat: repeat-x;
}

/* ---------------- 下层导航 ---------------- */
.header-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: clamp(.4rem, 1.6vw, 1.5rem);
  counter-reset: navidx;
}

.site-nav__list a {
  position: relative;
  display: block;
  padding: .8rem .15rem .72rem;
  color: var(--mist);
  font-size: .92rem;
  letter-spacing: .02em;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.site-nav__list a::before {
  counter-increment: navidx;
  content: counter(navidx, decimal-leading-zero);
  margin-right: .45rem;
  vertical-align: .34em;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: 0;
  color: var(--turf);
  transition: color .18s ease;
}

.site-nav__list a:hover { color: var(--paper); }
.site-nav__list a:hover::before { color: var(--flare); }

.site-nav__list a[aria-current="page"] {
  color: var(--lime);
  border-bottom-color: var(--lime);
}

.site-nav__list a[aria-current="page"]::before { color: var(--flare); }

.nav-coord {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  color: var(--turf);
  white-space: nowrap;
}

/* ---------------- 通用文字组件 ---------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .2em;
  color: var(--lime);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--flare);
}

.section-title {
  font-size: clamp(1.7rem, 4.4vw, 3rem);
  color: var(--paper);
}

.lede {
  max-width: 62ch;
  color: var(--mist);
  font-size: clamp(.95rem, 1.7vw, 1.08rem);
}

/* ---------------- 画板与卡片 ---------------- */
.panel {
  position: relative;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid var(--grid);
  border-radius: var(--r-lg);
  background: var(--green-deep);
}

.panel--sunken { background: var(--green-mid); }

.panel--offset { margin-left: clamp(0px, 3vw, 28px); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  padding: clamp(1rem, 2.2vw, 1.5rem);
  border: 1px solid var(--grid);
  border-radius: var(--r-md);
  background: linear-gradient(160deg, var(--green-mid) 0%, var(--green-deep) 100%);
  transition: border-color .2s ease, transform .2s ease;
}

.card:hover {
  border-color: var(--turf);
  transform: translateY(-2px);
}

/* ---------------- 数据组件 ---------------- */
.stat {
  display: grid;
  gap: .3rem;
  align-content: start;
}

.stat__value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(1.5rem, 3.6vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--lime);
}

.stat__label {
  font-size: .76rem;
  letter-spacing: .09em;
  color: var(--mist);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: .38rem;
  padding: .22rem .62rem;
  border: 1px solid var(--grid);
  border-radius: 999px;
  background: rgba(22, 69, 47, .5);
  color: var(--mist);
  font-size: .72rem;
  letter-spacing: .05em;
  white-space: nowrap;
}

.tag--live {
  color: var(--flare);
  border-color: rgba(255, 107, 44, .45);
}

.tag--live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--flare);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.7); }
}

/* ---------------- 网格 ---------------- */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.6rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); }

/* ---------------- 面包屑 ---------------- */
.crumbs {
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .05em;
  color: var(--mist);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .1rem;
}

.crumbs li {
  display: inline-flex;
  align-items: center;
}

.crumbs li::after {
  content: "/";
  margin-inline: .5rem;
  color: var(--grid);
}

.crumbs li:last-child::after { content: ""; margin: 0; }

.crumbs a {
  color: var(--mist);
  text-decoration: none;
}

.crumbs a:hover { color: var(--lime); }

/* ---------------- 正文 ---------------- */
.prose { max-width: 72ch; }

.prose h2 {
  margin-top: 2em;
  font-size: clamp(1.3rem, 2.6vw, 1.8rem);
  color: var(--paper);
}

.prose h3 {
  margin-top: 1.6em;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--lime);
}

.prose p + p { margin-top: 1.2em; }
.prose p { color: var(--paper); }

.prose ul { list-style: disc; padding-left: 1.35em; }
.prose ol { list-style: decimal; padding-left: 1.35em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--turf); }

.prose a {
  color: var(--lime);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.prose blockquote {
  margin-top: 1.6em;
  padding: .2rem 0 .2rem 1.2rem;
  border-left: 2px solid var(--flare);
  color: var(--mist);
}

/* ---------------- 图片容器（页面阶段使用） ---------------- */
.media-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--grid);
  border-radius: var(--r-lg);
  aspect-ratio: 16 / 10;
  background: linear-gradient(155deg, var(--green-mid) 0%, var(--ink) 100%);
}

.media-frame img,
.media-frame video {
  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(to right, rgba(198, 255, 61, .12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(198, 255, 61, .12) 1px, transparent 1px);
  background-size: 48px 48px;
  mix-blend-mode: screen;
}

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

.media-frame__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: .55rem .85rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .06em;
  color: var(--paper);
  background: linear-gradient(90deg, rgba(10, 15, 12, .92), rgba(10, 15, 12, 0) 92%);
}

/* ---------------- 进入视口动画 ---------------- */
html.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
}

html.js-reveal [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity .28s ease, transform .28s ease;
}

/* ---------------- 页脚 ---------------- */
.site-footer {
  position: relative;
  margin-top: clamp(3rem, 8vw, 6rem);
  background: linear-gradient(180deg, var(--ink) 0%, var(--green-deep) 42%, #0C2418 100%);
  border-top: 1px solid var(--grid);
  overflow: hidden;
}

.footer-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 3rem);
  padding-top: clamp(2.4rem, 6vw, 4.2rem);
  padding-bottom: clamp(1.8rem, 4vw, 3rem);
}

.footer-brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  line-height: 1.15;
  color: var(--paper);
}

.footer-brand__line {
  margin-top: .7rem;
  font-size: .94rem;
  color: var(--lime);
  max-width: 24ch;
}

.footer-brand__meta {
  margin-top: .8rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .08em;
  color: var(--mist);
}

.footer-col__title {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .95rem;
  font-family: var(--font-body);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--paper);
}

.footer-col__title::before {
  content: "";
  width: 14px;
  height: 1px;
  background: var(--flare);
}

.footer-col__list li + li { margin-top: .5rem; }

.footer-col__list a {
  display: inline-block;
  color: var(--mist);
  font-size: .88rem;
  text-decoration: none;
  transition: color .18s ease, padding-left .18s ease;
}

.footer-col__list a:hover {
  color: var(--paper);
  padding-left: .35rem;
}

.footer-base {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
  padding-block: 1.4rem 1.8rem;
  border-top: 1px solid var(--grid);
  font-size: .8rem;
  color: var(--mist);
}

.footer-base__contact p {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .02em;
}

.footer-base__contact p + p { margin-top: .35rem; }

.footer-base__key {
  flex: none;
  min-width: 2.6em;
  color: var(--turf);
  font-size: .7rem;
  letter-spacing: .16em;
}

.footer-base__meta {
  max-width: 52ch;
  text-align: right;
}

.footer-base__note {
  font-size: .78rem;
  line-height: 1.7;
}

.footer-base__legal {
  margin-top: .6rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .05em;
  color: var(--turf);
}

.footer-base__chips {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  justify-content: flex-end;
  margin-top: .7rem;
}

.copy-chip {
  padding: .2rem .62rem;
  border: 1px solid var(--grid);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .06em;
  color: var(--mist);
  transition: color .18s ease, border-color .18s ease,
    background-color .18s ease;
}

.copy-chip:hover {
  color: var(--lime);
  border-color: var(--turf);
}

.copy-chip[data-copy-done] {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

.skyline {
  position: relative;
  z-index: 0;
  height: clamp(70px, 10vw, 120px);
  background: var(--ink);
  clip-path: polygon(
    0% 100%, 0% 64%, 3% 64%, 3% 44%, 6% 44%, 6% 72%,
    11% 72%, 11% 34%, 14% 34%, 14% 20%, 16.5% 20%, 16.5% 52%,
    22% 52%, 22% 70%, 26% 70%, 26% 28%, 30% 28%, 30% 42%,
    35% 42%, 35% 62%, 40% 62%, 40% 14%, 42.5% 14%, 42.5% 4%,
    46% 4%, 46% 30%, 50% 30%, 50% 58%, 55% 58%, 55% 26%,
    59% 26%, 59% 46%, 64% 46%, 64% 18%, 67% 18%, 67% 38%,
    72% 38%, 72% 60%, 77% 60%, 77% 30%, 81% 30%, 81% 52%,
    86% 52%, 86% 66%, 91% 66%, 91% 40%, 95% 40%, 95% 58%,
    100% 58%, 100% 100%
  );
}

.skyline::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 44% 8%, rgba(255, 194, 75, .55), transparent 18%),
    radial-gradient(circle at 63% 20%, rgba(255, 107, 44, .38), transparent 15%),
    radial-gradient(circle at 89% 42%, rgba(198, 255, 61, .26), transparent 14%);
  mix-blend-mode: screen;
}

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

@media (max-width: 960px) {
  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-base__meta { text-align: left; }
  .footer-base__chips { justify-content: flex-start; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }

  .header-nav__inner { min-height: 0; }
  .nav-coord { display: none; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    padding: .6rem var(--gutter) 1.1rem;
    background: linear-gradient(180deg, var(--green-deep) 0%, #0C2418 100%);
    border-bottom: 2px solid var(--lime);
    box-shadow: 0 26px 48px rgba(0, 0, 0, .58);
  }

  .site-header[data-open] .site-nav { display: block; }

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

  .site-nav__list a {
    padding: .9rem .2rem;
    border-bottom: 1px solid var(--grid);
    border-left: 3px solid transparent;
    padding-left: .8rem;
    font-size: .98rem;
  }

  .site-nav__list a:hover { background: rgba(31, 107, 69, .18); }

  .site-nav__list a[aria-current="page"] {
    border-bottom-color: var(--grid);
    border-left-color: var(--lime);
    background: rgba(198, 255, 61, .06);
  }
}

@media (max-width: 720px) {
  .header-top__inner {
    flex-wrap: wrap;
    row-gap: .55rem;
  }

  .header-acts {
    order: 3;
    flex: 1 1 100%;
  }

  .header-acts .btn {
    flex: 1 1 0;
    padding-block: .5rem;
    font-size: .8rem;
  }

  .brand__note { font-size: .64rem; letter-spacing: .04em; }

  .ruler { height: 8px; }
  .ruler::after { background-size: 96px 8px; }

  .grid--2, .grid--3, .grid--4 {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 560px) {
  .footer-main { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; }
  .footer-base__meta { max-width: none; }
  .panel { border-radius: var(--r-md); }
}

/* ---------------- 可访问性偏好 ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

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

  .btn:hover, .card:hover { transform: none; }
}
