/* =========================================================
   万搏体育 · 共享样式 /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, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }

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

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

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

a { color: inherit; }

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

/* ---------- 2. TOKENS ---------- */
:root {
  --arena: #081C17;
  --stand: #0F2C24;
  --line: #1C4438;
  --paper: #E7DFCE;
  --paper-white: #F6F2E8;
  --cyan: #00E3BC;
  --mist: #9BF7DE;
  --orange: #FF7A29;
  --ink: #101614;
  --neutral: #8FA79F;

  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --head-h: 84px;
  --head-h-sm: 64px;
  --shell: 1440px;
  --gutter: 32px;
  --ease: cubic-bezier(.2, .7, .3, 1);
  --shadow-hard: 8px 8px 0 0 rgba(0, 0, 0, .55);
  --shadow-cyan: 6px 6px 0 0 rgba(0, 227, 188, .22);
}

/* ---------- 3. BASE ---------- */
body {
  min-height: 100vh;
  background: var(--arena);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: .01em;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(40px, 6vw, 92px); }
h2 { font-size: clamp(28px, 3.4vw, 48px); }
h3 { font-size: clamp(21px, 2.2vw, 30px); }

p + p { margin-top: 14px; }

strong, b { font-weight: 900; }

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

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

.num,
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ---------- 4. 容器与网格 ---------- */
.shell {
  width: min(var(--shell), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 68fr) minmax(0, 32fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}

.split--58 {
  grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
}

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

.cutline { height: 3px; background: var(--cyan); border: 0; }
.cutline--amber { background: var(--orange); }

.dots {
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 8px 8px;
}

/* ---------- 5. 排版组件 ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.chapter { margin-block: clamp(52px, 7vw, 104px); }

.chapter__head {
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 2vw, 32px);
  padding-bottom: 18px;
  margin-bottom: clamp(22px, 3vw, 40px);
  border-bottom: 3px solid var(--line);
}

.chapter__num {
  flex: 0 0 auto;
  font-family: var(--serif);
  font-weight: 900;
  font-size: clamp(56px, 9vw, 140px);
  line-height: .78;
  color: var(--cyan);
  letter-spacing: -.03em;
}

.chapter__title {
  font-size: clamp(26px, 3vw, 44px);
  padding-top: 6px;
}

.chapter__body { max-width: 72ch; }

.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.75;
}

.prose h2 { margin-top: 40px; margin-bottom: 14px; }
.prose h3 { margin-top: 30px; margin-bottom: 10px; }
.prose p + p { margin-top: 16px; }

.paper-zone {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(32px, 5vw, 76px) 0;
}

.paper-zone h1,
.paper-zone h2,
.paper-zone h3 { color: var(--arena); }

.paper-zone .chapter__head { border-bottom-color: rgba(16, 22, 20, .28); }
.paper-zone .eyebrow { color: #0A6E5C; }
.paper-zone .prose { color: var(--ink); }

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--sans);
  font-weight: 900;
  font-size: 16px;
  letter-spacing: .03em;
  text-decoration: none;
  border: 2px solid var(--cyan);
  background: transparent;
  color: var(--cyan);
  cursor: pointer;
  transition: background-color .12s linear, color .12s linear, box-shadow .12s linear, border-color .12s linear;
}

.btn--solid {
  background: var(--cyan);
  color: var(--ink);
  box-shadow: var(--shadow-cyan);
}

.btn--solid:hover,
.btn--solid:focus-visible { box-shadow: 6px 6px 0 0 var(--orange); }

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--cyan);
  color: var(--ink);
}

.btn--amber {
  border-color: var(--orange);
  color: var(--orange);
}

.btn--amber:hover,
.btn--amber:focus-visible {
  background: var(--orange);
  color: var(--ink);
}

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

/* ---------- 7. 面板 / 标签 / 数据条 ---------- */
.panel {
  border: 2px solid var(--line);
  background: var(--stand);
  padding: clamp(18px, 2vw, 26px);
  box-shadow: var(--shadow-hard);
}

.panel--paper {
  background: var(--paper-white);
  border-color: var(--ink);
  color: var(--ink);
  box-shadow: 8px 8px 0 0 var(--ink);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: rgba(0, 227, 188, .08);
  color: var(--mist);
  transition: background-color .12s linear, color .12s linear, border-color .12s linear;
}

.tag--active {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
}

.data-bar {
  position: relative;
  height: 10px;
  background: var(--line);
  overflow: hidden;
}

.data-bar__fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--cyan);
  transition: width .32s var(--ease);
}

.data-bar__fill--amber { background: var(--orange); }

/* ---------- 8. 图像容器 ---------- */
.media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--stand);
  border: 2px solid var(--line);
}

.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3  { aspect-ratio: 4 / 3; }
.media--3x4  { aspect-ratio: 3 / 4; }
.media--1x1  { aspect-ratio: 1 / 1; }

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

.media__ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--neutral);
  background:
    repeating-linear-gradient(135deg, rgba(0, 227, 188, .07) 0 12px, transparent 12px 24px),
    var(--stand);
}

.media__cap {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--neutral);
}

/* ---------- 9. 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--neutral);
}

.crumbs a {
  text-decoration: none;
  color: var(--mist);
  border-bottom: 1px solid var(--line);
}

.crumbs a:hover,
.crumbs a:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.crumbs__sep { color: var(--line); }

.crumbs__now { color: var(--paper); }

/* ---------- 10. 可展开内容组 ---------- */
.expand {
  border: 2px solid var(--line);
  background: var(--stand);
  box-shadow: 6px 6px 0 0 rgba(0, 0, 0, .5);
}

.expand + .expand { margin-top: 14px; }

.expand__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  padding: 18px 20px;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  transition: background-color .12s linear;
}

.expand__head:hover { background: rgba(0, 227, 188, .07); }

.expand__label {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 17px;
  color: var(--paper);
}

.expand__icon {
  position: relative;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 2px solid var(--cyan);
}

.expand__icon::before,
.expand__icon::after {
  content: "";
  position: absolute;
  background: var(--cyan);
  transition: transform .28s var(--ease), opacity .28s var(--ease);
}

.expand__icon::before {
  left: 3px; right: 3px; top: 50%;
  height: 2px;
  transform: translateY(-50%);
}

.expand__icon::after {
  top: 3px; bottom: 3px; left: 50%;
  width: 2px;
  transform: translateX(-50%);
}

.expand.is-open .expand__icon::after {
  transform: translateX(-50%) scaleY(0);
  opacity: 0;
}

.expand__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .28s var(--ease);
}

.expand.is-open .expand__panel { grid-template-rows: 1fr; }

.expand__inner { overflow: hidden; min-height: 0; }

.expand__body {
  padding: 0 20px 20px;
  color: var(--neutral);
  font-size: 16px;
}

/* ---------- 11. 显现 ---------- */
.js-on [data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}

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

/* ---------- 12. 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--cyan);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: top .18s var(--ease);
}

.skip-link:focus { top: 12px; }

/* ---------- 13. 页头 ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: transparent;
  border-bottom: 3px solid transparent;
  transition: background-color .24s var(--ease), border-color .24s var(--ease);
}

.site-head[data-scrolled="true"] {
  background: var(--arena);
  border-bottom-color: var(--cyan);
}

.head-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 36px);
  width: min(var(--shell), 100% - (var(--gutter) * 2));
  margin-inline: auto;
  height: var(--head-h);
  transition: height .24s var(--ease);
}

.site-head[data-scrolled="true"] .head-wrap { height: var(--head-h-sm); }

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

.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--cyan);
  background: rgba(0, 227, 188, .08);
  color: var(--cyan);
}

.brand__mark svg { width: 24px; height: 24px; }

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

.brand__name {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: .06em;
}

.brand__sub {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--neutral);
}

/* 导航 */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 auto;
  min-width: 0;
}

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

.nav-link {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--paper);
  text-decoration: none;
  white-space: nowrap;
}

.nav-link::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 3px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .12s linear;
}

.nav-link:hover::before,
.nav-link:focus-visible::before { transform: scaleX(1); }

.nav-link[aria-current="page"] {
  color: var(--cyan);
  font-weight: 900;
}

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

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  background: var(--cyan);
  border-radius: 50%;
}

/* 右侧工具区 */
.head-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--sans);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: .04em;
  text-decoration: none;
  color: var(--cyan);
  background: transparent;
  border: 2px solid var(--cyan);
  box-shadow: 4px 4px 0 0 rgba(0, 227, 188, .25);
  transition: background-color .12s linear, color .12s linear, box-shadow .12s linear;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--cyan);
  color: var(--ink);
  box-shadow: 4px 4px 0 0 var(--orange);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  background: var(--stand);
  border: 2px solid var(--cyan);
  color: var(--cyan);
  font-family: var(--sans);
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
  transition: background-color .12s linear, color .12s linear;
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
}

.nav-toggle__bars::before { top: 0; }
.nav-toggle__bars::after { bottom: 0; }

.nav-toggle__label { letter-spacing: .06em; }

.site-head[data-open="true"] .nav-toggle {
  background: var(--cyan);
  color: var(--ink);
}

/* 滚动进度 */
.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--orange);
}

/* ---------- 14. 页脚 ---------- */
.site-foot {
  background: var(--ink);
  border-top: 3px solid var(--cyan);
  color: var(--paper);
  margin-top: clamp(56px, 8vw, 120px);
}

.foot-wrap {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr;
  gap: clamp(24px, 3vw, 44px);
  padding-block: clamp(44px, 6vw, 80px) clamp(32px, 4vw, 56px);
}

.foot-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.foot-brand__name {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 26px;
  letter-spacing: .06em;
  color: var(--paper);
}

.foot-brand__coord {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--neutral);
}

.foot-note {
  font-size: 14px;
  line-height: 1.7;
  color: var(--neutral);
  max-width: 34ch;
}

.foot-col { display: flex; flex-direction: column; gap: 14px; }

.foot-col__title {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
}

.foot-list { display: flex; flex-direction: column; gap: 10px; }

.foot-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }

.foot-link {
  position: relative;
  font-size: 15px;
  color: var(--paper);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .12s linear, border-color .12s linear;
}

.foot-link:hover,
.foot-link:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.foot-contact__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--neutral);
  min-width: 42px;
}

.foot-contact__value {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--paper);
  word-break: break-all;
}

.copy-btn {
  padding: 3px 9px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--mist);
  cursor: pointer;
  transition: background-color .12s linear, color .12s linear, border-color .12s linear;
}

.copy-btn:hover,
.copy-btn:focus-visible {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
}

.copy-btn.is-done {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}

.foot-legal { border-top: 2px solid var(--line); }

.foot-legal__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 18px 22px;
}

.foot-legal__text,
.foot-year {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--neutral);
}

.to-top {
  padding: 8px 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  background: transparent;
  border: 2px solid var(--line);
  color: var(--mist);
  cursor: pointer;
  transition: background-color .12s linear, color .12s linear, border-color .12s linear;
}

.to-top:hover,
.to-top:focus-visible {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--ink);
}

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1180px) {
  :root { --gutter: 24px; }
  .nav-link { padding: 10px 10px; font-size: 15px; }
  .nav-link::before { left: 10px; right: 10px; }
  .nav-link[aria-current="page"]::after { left: 0; }
  .foot-wrap { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .foot-wrap > .foot-col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  body { font-size: 16px; }
  .split,
  .split--58 { grid-template-columns: minmax(0, 1fr); }
  .grid--3,
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .head-wrap { height: var(--head-h-sm); gap: 12px; }
  .brand__sub { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { padding: 9px 14px; font-size: 14px; }

  .site-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    display: block;
    z-index: 70;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--stand);
    border-top: 3px solid var(--cyan);
    overflow-x: auto;
    transform: translateY(115%);
    transition: transform .28s var(--ease);
  }

  .site-head[data-open="true"] .site-nav { transform: translateY(0); }

  .nav-list {
    width: max-content;
    min-width: 100%;
    gap: 8px;
  }

  .nav-link {
    padding: 9px 14px;
    font-size: 15px;
    border: 2px solid var(--line);
    background: var(--arena);
  }

  .nav-link::before { display: none; }

  .nav-link[aria-current="page"] {
    border-color: var(--cyan);
    background: var(--cyan);
    color: var(--ink);
  }

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

  .foot-wrap { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .site-foot { padding-bottom: 0; }
}

@media (max-width: 680px) {
  :root { --gutter: 18px; }
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .chapter__head { flex-direction: column; gap: 6px; }
  .chapter__num { font-size: clamp(64px, 22vw, 110px); }
  .foot-wrap { grid-template-columns: 1fr; }
  .foot-legal__row { justify-content: flex-start; }
}

/* ---------- 16. 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

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

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