/* ============================================================
   宝威体育 · 共享站点样式 (reset / tokens / shell / components)
   文件路径约定：/assets/site.css
   ============================================================ */

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

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

body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:root {
  --ink: #06121F;
  --forest: #0B2B33;
  --indigo: #1B1B3A;
  --wine: #3A1226;
  --cyan: #2FE3E0;
  --orange: #FF7A2F;
  --lime: #B6FF3C;
  --paper: #F2F5F0;
  --mist: #9FB3C8;
  --steel: #24404F;
  --text: #dbe7ea;
  --rail-w: 240px;
  --gap: 24px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font-sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ------------------------------------------------------------
   跳过链接
   ------------------------------------------------------------ */
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 400;
  transform: translateY(-180%);
  padding: 10px 16px;
  background: var(--cyan);
  color: #04181c;
  font-size: 13px;
  letter-spacing: .08em;
  text-decoration: none;
  border-radius: 2px;
  transition: transform .18s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

/* ------------------------------------------------------------
   头部外壳
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(6, 18, 31, .95);
  border-bottom: 1px solid var(--steel);
  backdrop-filter: blur(8px);
}

.site-header__bar {
  position: relative;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
  padding: 0 20px;
  background: rgba(6, 18, 31, .97);
}

.bar__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--paper);
  font-size: 17px;
  letter-spacing: .1em;
}

.bar__brand-mark {
  width: 9px;
  height: 9px;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(47, 227, 224, .16);
}

.bar__brand-text { font-weight: 500; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid var(--steel);
  border-radius: 2px;
  color: var(--paper);
  font-size: 12px;
  letter-spacing: .18em;
  cursor: pointer;
  transition: border-color .18s, color .18s;
}
.nav-toggle:hover { border-color: var(--cyan); color: var(--cyan); }

.nav-toggle__label { line-height: 1; }

.nav-toggle__icon {
  position: relative;
  display: block;
  width: 16px;
  height: 10px;
}
.nav-toggle__icon span,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle__icon::before { top: 0; }
.nav-toggle__icon span { top: 50%; transform: translateY(-50%); }
.nav-toggle__icon::after { bottom: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle__icon span { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { transform: translateY(4.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { transform: translateY(-4.25px) rotate(-45deg); }

/* ------------------------------------------------------------
   侧轨导航
   ------------------------------------------------------------ */
.rail {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.rail__head { display: grid; gap: 16px; }

.rail__brand {
  display: grid;
  gap: 8px;
  text-decoration: none;
}

.rail__brand-cn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--paper);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: .12em;
}
.rail__brand-cn::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(47, 227, 224, .16);
}

.rail__brand-note {
  color: var(--mist);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: .12em;
}

.rail__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px dashed rgba(159, 179, 200, .28);
}

.rail__meta-label {
  color: #6d8798;
  font-size: 10px;
  letter-spacing: .22em;
}

.rail__index {
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .06em;
}

.rail__meter {
  position: relative;
  height: 2px;
  background: rgba(159, 179, 200, .18);
  overflow: hidden;
}

.rail__meter-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  transform: scaleX(var(--rail-p, 0));
  transform-origin: left center;
  transition: transform .12s linear;
}

.rail__list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(159, 179, 200, .18);
}

.rail__item { border-bottom: 1px solid rgba(36, 64, 79, .7); }

.rail__link {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 12px 4px;
  color: #cfe1e6;
  font-size: 15px;
  text-decoration: none;
  transition: transform .18s var(--ease), color .18s var(--ease);
}
.rail__link:hover { transform: translateX(4px); color: var(--paper); }
.rail__link:hover .rail__num { color: var(--cyan); }

.rail__num {
  color: #5f7f92;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  transition: color .18s var(--ease);
}

.rail__text { display: block; }

.rail__link[aria-current="page"] { color: var(--cyan); }
.rail__link[aria-current="page"] .rail__num { color: var(--cyan); }
.rail__link[aria-current="page"] .rail__text::after {
  content: "";
  display: block;
  height: 1px;
  margin-top: 5px;
  background: var(--cyan);
}

.rail__foot {
  display: grid;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(159, 179, 200, .18);
}

.rail__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: var(--cyan);
  color: #04181c;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
  box-shadow: 4px 4px 0 rgba(255, 122, 47, .55);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.rail__cta::after {
  content: "↗";
  font-family: var(--font-mono);
  font-size: 14px;
}
.rail__cta:hover {
  transform: translate(-2px, -2px);
  background: var(--lime);
  box-shadow: 7px 7px 0 rgba(255, 122, 47, .7);
}

.rail__feedback {
  justify-self: start;
  padding-bottom: 3px;
  border-bottom: 1px dashed rgba(159, 179, 200, .35);
  color: var(--mist);
  font-size: 11px;
  letter-spacing: .2em;
  text-decoration: none;
  transition: color .18s, border-color .18s;
}
.rail__feedback:hover { color: var(--orange); border-color: var(--orange); }

.rail-scrim {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(3, 10, 16, .66);
  backdrop-filter: blur(2px);
}
.rail-scrim[hidden] { display: none; }

/* 移动端：抽屉 */
@media (max-width: 1023px) {
  .rail {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(84vw, 320px);
    padding: 78px 20px 28px;
    background: linear-gradient(180deg, #08222c 0%, #06121F 100%);
    border-right: 1px solid var(--steel);
    box-shadow: 24px 0 60px rgba(0, 0, 0, .45);
    overflow-y: auto;
    z-index: 100;
    transform: translateX(-101%);
    visibility: hidden;
    transition: transform .28s var(--ease), visibility .28s var(--ease);
  }
  .rail[data-open="true"] {
    transform: translateX(0);
    visibility: visible;
  }
  html.nav-open { overflow: hidden; }
}

/* 桌面端：固定侧轨 */
@media (min-width: 1024px) {
  .site-header {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--rail-w);
    height: 100vh;
    display: flex;
    flex-direction: column;
    border-bottom: 0;
    border-right: 1px solid var(--steel);
    background: linear-gradient(180deg, #08222c 0%, #06121F 46%, #07171f 100%);
    backdrop-filter: none;
  }
  .site-header__bar { display: none; }
  .rail {
    height: 100%;
    padding: 30px 22px 22px;
    overflow-y: auto;
    gap: 30px;
  }
  body { padding-left: var(--rail-w); }
}

/* ------------------------------------------------------------
   页脚
   ------------------------------------------------------------ */
.site-footer {
  position: relative;
  padding: clamp(48px, 8vw, 96px) 0 28px;
  background:
    radial-gradient(120% 80% at 12% 0%, rgba(47, 227, 224, .10), transparent 60%),
    linear-gradient(180deg, #0B2B33 0%, #071a22 56%, #06121F 100%);
  border-top: 1px solid var(--steel);
  color: #d5e4e8;
}
.site-footer::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: min(220px, 40%);
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
}

.footer__inner {
  position: relative;
  width: min(1160px, calc(100% - clamp(40px, 8vw, 120px)));
  margin-inline: auto;
}

.footer__top {
  display: grid;
  gap: 14px 32px;
  align-items: end;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(159, 179, 200, .2);
}

.footer__brandline {
  color: var(--paper);
  font-size: clamp(26px, 4vw, 44px);
  font-weight: 200;
  line-height: 1.15;
  letter-spacing: .01em;
}

.footer__summary {
  max-width: 44ch;
  color: var(--mist);
  font-size: 15px;
  line-height: 1.8;
}

.footer__cta {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-size: 13px;
  letter-spacing: .1em;
  text-decoration: none;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.footer__cta::after {
  content: "→";
  font-family: var(--font-mono);
}
.footer__cta:hover { background: var(--cyan); color: #04181c; }

@media (min-width: 900px) {
  .footer__top {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand cta"
      "summary cta";
  }
  .footer__brandline { grid-area: brand; }
  .footer__summary { grid-area: summary; }
  .footer__cta { grid-area: cta; align-self: center; }
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 24px;
  padding: 36px 0;
}
@media (min-width: 640px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.4fr); }
}

.footer__col { min-width: 0; }
.footer__col--contact { min-width: 0; }

.footer__title {
  margin-bottom: 14px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .22em;
}

.footer__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__link {
  color: #cfe1e6;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.footer__link:hover { color: var(--lime); border-bottom-color: currentColor; }

.footer__contact-row {
  display: grid;
  gap: 2px;
}

.footer__contact-key {
  color: var(--mist);
  font-size: 10px;
  letter-spacing: .2em;
}

.footer__value {
  color: var(--paper);
  font-size: 14px;
  line-height: 1.7;
}

.footer__value--mono {
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: .02em;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(159, 179, 200, .2);
  color: var(--mist);
  font-size: 12px;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__legal-link {
  color: var(--mist);
  text-decoration: none;
  border-bottom: 1px dashed rgba(159, 179, 200, .4);
  transition: color .18s, border-color .18s;
}
.footer__legal-link:hover { color: var(--cyan); border-color: var(--cyan); }

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.footer__icp { letter-spacing: .04em; }
.footer__copy { color: #6d8798; }

/* ------------------------------------------------------------
   返回顶部
   ------------------------------------------------------------ */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--steel);
  border-radius: 50%;
  background: rgba(6, 18, 31, .94);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s, border-color .2s, color .2s;
}
.to-top[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.to-top:hover { border-color: var(--cyan); color: var(--lime); }

@media (min-width: 1024px) {
  .to-top { right: 28px; bottom: 28px; }
}

/* ------------------------------------------------------------
   内容容器与分区色带
   ------------------------------------------------------------ */
.canvas {
  width: min(1180px, calc(100% - clamp(40px, 8vw, 120px)));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(56px, 9vh, 128px) 0;
}

.section--forest { background: var(--forest); }
.section--indigo { background: var(--indigo); }
.section--wine { background: var(--wine); }
.section--paper { background: var(--paper); color: #0a1e26; }
.section--paper .lede,
.section--paper .body-text { color: #21454f; }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

@media (max-width: 900px) {
  .grid { gap: 16px; }
  .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 12; }
}

/* ------------------------------------------------------------
   排版原子
   ------------------------------------------------------------ */
.eyebrow {
  display: inline-block;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .22em;
  line-height: 1.6;
}

.display {
  color: var(--paper);
  font-size: clamp(56px, 9vw, 132px);
  font-weight: 200;
  line-height: .95;
  letter-spacing: -.02em;
}
@media (max-width: 640px) {
  .display { font-size: clamp(40px, 12vw, 64px); }
}

.h2 {
  color: var(--paper);
  font-size: clamp(30px, 4.2vw, 60px);
  font-weight: 200;
  line-height: 1.12;
  letter-spacing: -.01em;
}

.h3 {
  color: var(--paper);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 300;
  line-height: 1.35;
}

.section--paper .display,
.section--paper .h2,
.section--paper .h3 { color: #06121F; }

.lede {
  max-width: 62ch;
  color: #b9cdd6;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.85;
}

.body-text {
  max-width: 68ch;
  color: #c6d8df;
  font-size: 16px;
  line-height: 1.85;
}

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

.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, var(--cyan), rgba(47, 227, 224, 0) 72%);
}

/* ------------------------------------------------------------
   数据组件
   ------------------------------------------------------------ */
.stat { display: grid; gap: 6px; }

.stat__value {
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: clamp(28px, 4.4vw, 64px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  color: var(--mist);
  font-size: 11px;
  letter-spacing: .2em;
}

.tile {
  display: grid;
  gap: 10px;
  padding: 22px;
  background: linear-gradient(165deg, rgba(11, 43, 51, .92), rgba(6, 18, 31, .94));
  border: 1px solid var(--steel);
  color: inherit;
  text-decoration: none;
  transition: border-color .2s var(--ease), transform .2s var(--ease), background .2s var(--ease);
}
.tile:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
  background: linear-gradient(165deg, rgba(14, 54, 64, .95), rgba(7, 23, 33, .96));
}

.tile__label {
  color: var(--mist);
  font-size: 11px;
  letter-spacing: .2em;
}

.tile__value {
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.tile__note {
  color: var(--mist);
  font-size: 13px;
  line-height: 1.7;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: .16em;
  line-height: 1.5;
}
.tag--live { color: var(--orange); }
.tag--done { color: var(--lime); }
.tag--next { color: var(--cyan); }

/* ------------------------------------------------------------
   材质组件
   ------------------------------------------------------------ */
.paper {
  position: relative;
  padding: clamp(24px, 4vw, 46px);
  background: var(--paper);
  color: #0a1e26;
  box-shadow:
    10px 10px 0 rgba(47, 227, 224, .16),
    20px 20px 0 rgba(255, 122, 47, .10);
}
.paper a { color: #0b4a54; }
.paper .h3 { color: #06121F; }

.media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--steel);
  background:
    repeating-linear-gradient(115deg, rgba(47, 227, 224, .07) 0 12px, transparent 12px 34px),
    linear-gradient(160deg, #0d2f3a, #06121F 72%);
}
.media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media--wide { aspect-ratio: 16 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }

.media__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 9px;
  background: rgba(6, 18, 31, .84);
  border: 1px solid rgba(47, 227, 224, .5);
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: .2em;
}

.media__caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 12px 14px;
  background: linear-gradient(0deg, rgba(6, 18, 31, .92), rgba(6, 18, 31, 0));
  color: var(--paper);
  font-size: 12px;
  letter-spacing: .06em;
}

/* ------------------------------------------------------------
   面包屑
   ------------------------------------------------------------ */
.breadcrumb {
  color: var(--mist);
  font-size: 12px;
  letter-spacing: .08em;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.breadcrumb__list li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb__list li + li::before {
  content: "/";
  color: var(--steel);
}

.breadcrumb__link {
  color: var(--mist);
  text-decoration: none;
  transition: color .18s;
}
.breadcrumb__link:hover { color: var(--cyan); }

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

/* ------------------------------------------------------------
   按钮
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .06em;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}

.btn--primary {
  background: var(--cyan);
  color: #04181c;
  box-shadow: 4px 4px 0 rgba(255, 122, 47, .5);
}
.btn--primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 rgba(255, 122, 47, .65);
}

.btn--ghost {
  border-color: var(--steel);
  color: var(--paper);
}
.btn--ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ------------------------------------------------------------
   显现
   ------------------------------------------------------------ */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------------------------------------
   动效降级
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .rail { transition: none; }
  .to-top { transition: none; }
  .rail__meter-fill { transition: none; }
}
