/* ============================================================
   博喜体育站 · 共享样式表 /assets/site.css
   外壳级：重置、变量、中文排版、头部、页脚、通用组件
   ============================================================ */

/* ---------- 01 变量 ---------- */
:root {
  --c-ink: #062A2E;
  --c-night: #0C3B3F;
  --c-steel: #1C4F52;
  --c-silver: #C9D4D2;
  --c-mist: #8FA3A1;
  --c-signal: #FF6A1A;
  --c-gold: #F2B33D;
  --c-white: #F4F7F6;
  --c-moss: #0A2325;

  --line: rgba(201, 212, 210, .18);
  --line-strong: rgba(201, 212, 210, .34);
  --tint-signal: rgba(255, 106, 26, .12);

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --header-h: 76px;
  --shell: min(1400px, 94vw);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow: 0 26px 60px -34px rgba(0, 0, 0, .9);

  --cut: 18px;
  --clip-cut: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  --clip-cut-alt: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}

/* ---------- 02 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--c-ink);
  background-image:
    linear-gradient(rgba(201, 212, 210, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 212, 210, .028) 1px, transparent 1px);
  background-size: 74px 74px;
  color: var(--c-silver);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.75;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video, canvas { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 2px solid var(--c-signal);
  outline-offset: 2px;
}

#main-content {
  display: block;
  padding-top: var(--header-h);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 12px;
  z-index: 200;
  padding: 12px 22px;
  background: var(--c-signal);
  color: #06222A;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .04em;
  clip-path: var(--clip-cut);
  transition: top .16s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- 03 中文排版层级 ---------- */
h1, h2, h3, h4 {
  color: var(--c-white);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.015em;
}

.h-display {
  font-size: clamp(52px, 8.4vw, 118px);
  font-weight: 900;
  line-height: .94;
  letter-spacing: -.03em;
  color: var(--c-white);
}
.h1 { font-size: clamp(36px, 5.2vw, 72px); font-weight: 900; line-height: 1.02; }
.h2 { font-size: clamp(28px, 3.6vw, 52px); font-weight: 900; line-height: 1.06; }
.h3 { font-size: clamp(20px, 2vw, 27px); font-weight: 800; line-height: 1.24; }

.lede {
  max-width: 42ch;
  font-size: clamp(16px, 1.15vw, 18px);
  line-height: 1.78;
  color: var(--c-silver);
}
.lede--mist { color: var(--c-mist); }

p { max-width: 42ch; }

.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

/* ---------- 04 容器与段落节奏 ---------- */
.container {
  width: var(--shell);
  margin-inline: auto;
}
.container--narrow { width: min(880px, 92vw); margin-inline: auto; }

.section { position: relative; padding: clamp(56px, 8vw, 124px) 0; }
.section--tight { padding: clamp(38px, 4.4vw, 70px) 0; }

.stack { display: flex; flex-direction: column; gap: var(--stack-gap, 22px); }

.bg-ink { background: var(--c-ink); }
.bg-night { background: var(--c-night); }
.bg-steel { background: var(--c-steel); }
.bg-white { background: var(--c-white); color: var(--c-moss); }
.bg-white h1, .bg-white h2, .bg-white h3 { color: var(--c-moss); }
.bg-white .lede, .bg-white p { color: #245052; }

.band {
  position: relative;
  height: 8px;
  background: linear-gradient(90deg, var(--c-steel) 0 62%, rgba(28, 79, 82, 0) 62%);
  overflow: hidden;
}
.band::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 30%;
  background: var(--c-signal);
  transform: skewX(-32deg);
  transform-origin: left center;
}

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

/* ---------- 05 章节标记与标签 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-signal);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  transform: skewX(-28deg);
}

.chapter-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: clamp(16px, 2.6vw, 36px);
  margin-bottom: clamp(26px, 3.6vw, 52px);
}

.chapter-num {
  font-family: var(--font-mono);
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 700;
  line-height: .86;
  letter-spacing: -.04em;
  color: transparent;
  -webkit-text-stroke: 1px var(--line-strong);
}

/* ---------- 06 切角面板 ---------- */
.panel {
  position: relative;
  padding: clamp(20px, 2.4vw, 32px);
  background: var(--c-steel);
  border: 1px solid var(--line);
  clip-path: var(--clip-cut);
  transition: border-color .16s var(--ease), background-color .16s var(--ease);
}
.panel--alt { clip-path: var(--clip-cut-alt); }
.panel--flat { clip-path: none; }
.panel--signal { border-color: rgba(255, 106, 26, .42); }
.panel--deep { background: var(--c-night); }
.panel:hover { border-color: rgba(255, 106, 26, .5); }

/* ---------- 07 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1.2;
  color: var(--c-white);
  background: var(--c-steel);
  border: 1px solid transparent;
  clip-path: var(--clip-cut);
  cursor: pointer;
  transition: background-color .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}
.btn:hover { background: var(--c-signal); color: #06222A; }
.btn:active { transform: translateY(1px); }

.btn--signal { background: var(--c-signal); color: #06222A; }
.btn--signal:hover { background: var(--c-gold); color: #06222A; }

.btn--ghost { background: transparent; border-color: var(--line); color: var(--c-silver); }
.btn--ghost:hover { background: var(--tint-signal); border-color: var(--c-signal); color: var(--c-white); }

/* ---------- 08 数据组件 ---------- */
.metric {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  background: rgba(28, 79, 82, .42);
  border-left: 3px solid var(--c-signal);
}
.metric__value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 700;
  line-height: 1;
  color: var(--c-white);
}
.metric__label {
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--c-mist);
}
.metric--gold { border-left-color: var(--c-gold); }
.metric--gold .metric__value { color: var(--c-gold); }

/* ---------- 09 图片容器（可复用，页面阶段放占位） ---------- */
.frame {
  position: relative;
  overflow: hidden;
  min-height: 200px;
  background:
    radial-gradient(120% 92% at 78% 10%, rgba(255, 106, 26, .18), transparent 58%),
    linear-gradient(152deg, var(--c-steel), var(--c-ink));
  border: 1px solid var(--line);
  clip-path: var(--clip-cut);
}
.frame__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.frame__tag {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 7px 15px;
  background: var(--c-signal);
  color: #06222A;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
}
.frame__label {
  position: absolute;
  top: 14px;
  right: 14px;
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--c-mist);
  text-transform: uppercase;
}
.frame--diag { clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%); }
.frame--wide { aspect-ratio: 16 / 9; }
.frame--tall { aspect-ratio: 3 / 4; }
.frame--square { aspect-ratio: 1 / 1; }

/* ---------- 10 面包屑 ---------- */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: var(--shell);
  margin-inline: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--c-mist);
}
.breadcrumbs a {
  color: var(--c-mist);
  border-bottom: 1px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.breadcrumbs a:hover { color: var(--c-signal); border-bottom-color: var(--c-signal); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: rgba(201, 212, 210, .34); }

/* ---------- 11 头部 ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
}
.site-header[data-scrolled] {
  background: rgba(6, 42, 46, .97);
  border-bottom-color: rgba(255, 106, 26, .34);
  box-shadow: 0 20px 44px -32px rgba(0, 0, 0, .95);
}
.site-header[data-open] { background: var(--c-ink); }

.site-header__inner {
  width: var(--shell);
  margin-inline: auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 40px);
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  color: var(--c-white);
}
.brand__mark {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  width: 34px;
  height: 26px;
  transform: skewX(-14deg);
}
.brand__mark i { display: block; background: var(--c-signal); }
.brand__mark i:nth-child(2) { background: var(--c-silver); }
.brand__mark i:nth-child(3) { background: var(--c-steel); }

.brand__text { display: flex; flex-direction: column; line-height: 1.16; }
.brand__name {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: .02em;
  color: var(--c-white);
}
.brand__line {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--c-mist);
}

/* 导航 */
.nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}
.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.8vw, 30px);
}
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 2px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--c-silver);
  transition: color .16s var(--ease);
}
.nav__num {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--c-mist);
  transition: color .16s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 1px;
  height: 2px;
  background: var(--c-signal);
  transform: skewX(-26deg);
  transition: right .16s var(--ease);
}
.nav__link:hover { color: var(--c-white); }
.nav__link:hover .nav__num { color: var(--c-signal); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { right: 0; }
.nav__link[aria-current="page"] { color: var(--c-white); }
.nav__link[aria-current="page"] .nav__num { color: var(--c-gold); }

/* 头部工具 */
.header-tools {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--c-silver);
  background: rgba(28, 79, 82, .5);
  border: 1px solid var(--line);
  clip-path: var(--clip-cut);
  cursor: pointer;
  transition: background-color .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}
.tool-btn:hover { color: var(--c-white); border-color: var(--c-signal); background: var(--tint-signal); }
.tool-btn--sub { background: var(--c-signal); color: #06222A; border-color: transparent; }
.tool-btn--sub:hover { background: var(--c-gold); color: #06222A; }

/* 汉堡 */
.nav-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 40px;
  padding: 0;
  background: rgba(28, 79, 82, .5);
  border: 1px solid var(--line);
  clip-path: var(--clip-cut);
  cursor: pointer;
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--c-silver);
  transition: transform .18s var(--ease), opacity .18s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.site-header[data-open] .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(38deg); }
.site-header[data-open] .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header[data-open] .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-38deg); }

/* 检索面板 */
.search-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--c-night);
  border-top: 1px solid rgba(255, 106, 26, .3);
  border-bottom: 1px solid var(--line);
}
.search-panel[hidden] { display: none; }
.search-panel__inner {
  width: var(--shell);
  margin-inline: auto;
  padding: 22px 0 26px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px 20px;
}
.search-panel__input {
  width: 100%;
  padding: 13px 16px;
  background: rgba(6, 42, 46, .86);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  color: var(--c-white);
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: .02em;
}
.search-panel__input::placeholder { color: var(--c-mist); }
.search-panel__input:focus { border-color: var(--c-signal); outline: none; }
.search-panel__go { grid-column: 2; }
.search-panel__hint {
  grid-column: 1 / -1;
  max-width: none;
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--c-mist);
}

/* 常驻下载入口 */
.dock-download {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  background: var(--c-signal);
  color: #06222A;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: .04em;
  clip-path: var(--clip-cut);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .95);
  transition: background-color .16s var(--ease), transform .16s var(--ease);
}
.dock-download:hover { background: var(--c-gold); transform: translateY(-2px); }
.dock-download__dot {
  width: 8px;
  height: 8px;
  background: #06222A;
  transform: skewX(-20deg);
}
.dock-download__text { white-space: nowrap; }

/* ---------- 12 页脚 ---------- */
.site-footer {
  position: relative;
  padding: clamp(46px, 5.6vw, 72px) 0 26px;
  background: var(--c-moss);
  border-top: 1px solid rgba(255, 106, 26, .3);
  color: var(--c-mist);
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: min(420px, 46%);
  height: 3px;
  background: linear-gradient(90deg, var(--c-signal), rgba(255, 106, 26, 0));
}

.site-footer__inner {
  width: var(--shell);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: clamp(26px, 4vw, 72px);
}

.site-footer__brand { display: flex; flex-direction: column; gap: 14px; }
.brand--footer .brand__name { font-size: 17px; }
.site-footer__line {
  max-width: 34ch;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--c-mist);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 40px);
}
.footer-col__title {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--c-white);
}
.footer-col__list { display: flex; flex-direction: column; gap: 9px; }
.footer-col__list a {
  font-size: 14.5px;
  color: var(--c-silver);
  border-bottom: 1px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease);
}
.footer-col__list a:hover { color: var(--c-signal); border-bottom-color: var(--c-signal); }

.site-footer__meta {
  width: var(--shell);
  margin: clamp(30px, 4vw, 52px) auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.legal-links { display: flex; flex-wrap: wrap; gap: 18px; }
.legal-links a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--c-mist);
  transition: color .16s var(--ease);
}
.legal-links a:hover { color: var(--c-signal); }

.site-footer__contact {
  max-width: none;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.9;
  letter-spacing: .02em;
  color: var(--c-mist);
  word-break: break-word;
}

.site-footer__tail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  font-size: 12.5px;
  color: var(--c-mist);
}
.site-footer__icp { font-family: var(--font-mono); letter-spacing: .06em; }
.site-footer__copy { font-family: var(--font-mono); letter-spacing: .06em; }
.site-footer__client {
  margin-left: auto;
  padding: 8px 16px;
  border: 1px solid var(--line);
  color: var(--c-silver);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  clip-path: var(--clip-cut);
  transition: border-color .16s var(--ease), color .16s var(--ease), background-color .16s var(--ease);
}
.site-footer__client:hover { border-color: var(--c-signal); color: var(--c-white); background: var(--tint-signal); }

/* ---------- 13 滚动进度轨（由 JS 注入） ---------- */
.scroll-rail {
  position: fixed;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: min(46vh, 340px);
  background: rgba(201, 212, 210, .16);
  z-index: 50;
  pointer-events: none;
}
.scroll-rail__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--c-signal), var(--c-gold));
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform .12s linear;
}

/* ---------- 14 响应式 ---------- */
@media (max-width: 1024px) {
  :root { --header-h: 66px; }

  .nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    bottom: 0;
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    padding: 26px 7vw 150px;
    background: var(--c-ink);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    z-index: 58;
  }
  .site-header[data-open] .nav { display: flex; }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__link {
    justify-content: flex-start;
    gap: 16px;
    padding: 18px 2px;
    font-size: 22px;
    font-weight: 800;
  }
  .nav__num { font-size: 12px; }
  .nav__link::after { display: none; }

  .nav-toggle { display: inline-flex; }
  .tool-btn--search { display: none; }

  .site-footer__inner { grid-template-columns: minmax(0, 1fr); }
  .scroll-rail { display: none; }
}

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

@media (max-width: 560px) {
  body { font-size: 16px; }
  .tool-btn--sub { display: none; }
  .search-panel__inner { grid-template-columns: minmax(0, 1fr); }
  .search-panel__go { grid-column: 1; justify-content: center; }
  .footer-cols { grid-template-columns: minmax(0, 1fr); }
  .dock-download { right: 12px; bottom: 12px; padding: 11px 16px; font-size: 12.5px; }
  .site-footer__client { margin-left: 0; }
}

/* ---------- 15 降级动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .scroll-rail__bar { transition: none; }
  .dock-download:hover { transform: none; }
}
