/* ==========================================================================
   宝威体育站 · 共享外框样式 /assets/site.css
   框架式 L 形导航 + 玻璃层与实色层并置 + 等宽数字锚点
   ========================================================================== */

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

:root {
  --ink: #0A1428;
  --ink-2: #101F3C;
  --glass: #1C3A6B;
  --paper: #F4F7FF;
  --mute: #93A9CC;
  --signal: #00E5D0;
  --rush: #FF7A1A;
  --pass: #2BE08A;
  --hold: #FFC24B;
  --line: #26406E;
  --line-soft: rgba(38, 64, 110, .62);

  --rail-w: 224px;
  --top-h: 66px;
  --wrap-w: 1180px;

  --ff-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
             "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --ff-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas,
             "Liberation Mono", monospace;

  --ease: cubic-bezier(.4, .1, .2, 1);
}

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

body {
  margin: 0;
  padding-top: var(--top-h);
  padding-left: var(--rail-w);
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    repeating-linear-gradient(115deg, rgba(147, 169, 204, .045) 0 1px, transparent 1px 44px),
    radial-gradient(1100px 600px at 88% -10%, rgba(0, 229, 208, .10), transparent 62%),
    radial-gradient(820px 480px at 106% 86%, rgba(255, 122, 26, .085), transparent 60%);
  background-attachment: fixed;
  color: var(--paper);
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

img, svg, video { max-width: 100%; }
img { height: auto; }

a { color: var(--signal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--paper); }

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

::selection { background: rgba(0, 229, 208, .3); color: var(--paper); }

/* ---------- 基础排版层级 12 / 14 / 18 / 24 / 32 / 48 / 72 ---------- */
h1, h2, h3, h4 {
  margin: 0;
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.12;
  color: var(--paper);
}
h1 { font-size: clamp(32px, 5vw, 72px); }
h2 { font-size: clamp(24px, 3.4vw, 48px); }
h3 { font-size: clamp(18px, 2.1vw, 32px); }
h4 { font-size: 18px; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.label {
  display: inline-block;
  margin: 0 0 10px;
  font-family: var(--ff-mono);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
}

.mono {
  font-family: var(--ff-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: .01em;
}

/* ---------- 容器与网格 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap-w);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

.section { padding-block: clamp(40px, 6vw, 88px); }

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

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  top: -70px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--signal);
  color: #04141F;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: top .18s var(--ease);
}
.skip-link:focus,
.skip-link:focus-visible { top: 12px; color: #04141F; }

/* ---------- 外框 ---------- */
.site-header { display: block; }

/* 顶栏 */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--top-h);
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 clamp(12px, 2vw, 20px);
  background: rgba(10, 20, 40, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.topbar::before {
  content: "";
  position: absolute;
  left: var(--rail-w);
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
  pointer-events: none;
}
.topbar::after {
  content: "";
  position: absolute;
  left: calc(var(--rail-w) - 1px);
  top: 0;
  width: 3px;
  height: 16px;
  background: var(--signal);
  box-shadow: 0 0 14px rgba(0, 229, 208, .65);
  pointer-events: none;
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  text-decoration: none;
  color: var(--paper);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.01em;
}
.topbar__brand:hover { color: var(--paper); }

.brand__glyph {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border-radius: 4px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--signal), var(--rush));
  box-shadow: 0 0 16px rgba(0, 229, 208, .45);
}

.brand__text { white-space: nowrap; }

.topbar__tools {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.verchip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(28, 58, 107, .4);
  font-family: var(--ff-mono);
  font-size: 12px;
  line-height: 1.6;
  white-space: nowrap;
}
.verchip__k {
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #7C93B8;
}
.verchip__v { color: var(--signal); font-weight: 600; }

.panel-btn {
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  padding: 8px 13px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(28, 58, 107, .45);
  color: var(--paper);
  cursor: pointer;
  white-space: nowrap;
  transition: background .16s var(--ease), border-color .16s var(--ease);
}
.panel-btn:hover { background: rgba(0, 229, 208, .14); border-color: rgba(0, 229, 208, .5); }
.panel-btn[aria-expanded="true"] { background: rgba(0, 229, 208, .18); border-color: rgba(0, 229, 208, .6); color: var(--signal); }

.topbar__cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  border-radius: 9px;
  background: linear-gradient(120deg, var(--signal), #55F2E2);
  color: #04141F;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease);
}
.topbar__cta:hover {
  color: #04141F;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -10px rgba(0, 229, 208, .8);
}

/* 移动菜单按钮 */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(28, 58, 107, .5);
  color: var(--paper);
  cursor: pointer;
}
.nav-toggle__bars {
  position: relative;
  display: block;
  width: 15px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 15px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }
.nav-toggle__txt { letter-spacing: .04em; }

/* 快捷入口浮层 */
.quick-panel {
  position: fixed;
  top: calc(var(--top-h) + 8px);
  right: clamp(12px, 2vw, 20px);
  z-index: 90;
  width: min(340px, calc(100vw - 28px));
  padding: 15px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: rgba(16, 31, 60, .95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 28px 64px -22px rgba(0, 0, 0, .8);
  animation: panelIn .18s var(--ease);
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}
.quick-panel__head {
  margin: 0 0 10px;
  font-family: var(--ff-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8FA6C9;
}
.quick-panel__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.quick-panel__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 11px;
  border-radius: 9px;
  text-decoration: none;
  color: var(--paper);
  font-size: 14px;
  font-weight: 700;
  transition: background .16s var(--ease);
}
.quick-panel__item:hover,
.quick-panel__item:focus-visible { background: rgba(0, 229, 208, .12); color: var(--paper); }
.quick-panel__k { min-width: 0; }
.quick-panel__v {
  flex: 0 0 auto;
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--mute);
}

/* 左侧框架导航 */
.rail {
  position: fixed;
  top: var(--top-h);
  left: 0;
  bottom: 0;
  z-index: 60;
  width: var(--rail-w);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 12px 18px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 31, 60, .94), rgba(9, 18, 36, .97));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.rail__label {
  margin: 0 0 2px;
  padding-left: 12px;
  font-family: var(--ff-mono);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #6D86AD;
}
.rail__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rail__item { margin: 0; }
.rail__link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 10px 10px 14px;
  border-radius: 9px;
  color: #C9D8F0;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.rail__link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  border-radius: 2px;
  background: var(--signal);
  transition: height .18s var(--ease);
}
.rail__link:hover { background: rgba(0, 229, 208, .09); color: var(--paper); }
.rail__link:hover::before { height: 58%; }
.rail__link[aria-current="page"] {
  background: rgba(0, 229, 208, .13);
  color: var(--paper);
}
.rail__link[aria-current="page"]::before { height: 72%; }
.rail__num {
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .04em;
  color: #5D769E;
}
.rail__link[aria-current="page"] .rail__num { color: var(--signal); }

.rail__foot {
  margin-top: auto;
  padding: 14px 12px 4px;
  display: grid;
  gap: 9px;
  border-top: 1px solid var(--line-soft);
}
.rail__meter {
  height: 4px;
  border-radius: 4px;
  background: rgba(147, 169, 204, .18);
  overflow: hidden;
}
.rail__meter-fill {
  display: block;
  height: 100%;
  width: 62%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--signal), var(--rush));
  animation: meterSweep 2.8s var(--ease) infinite alternate;
}
@keyframes meterSweep {
  from { width: 34%; }
  to   { width: 88%; }
}
.rail__note {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--mute);
}
.rail__note b { color: var(--paper); font-weight: 600; }

/* 抽屉遮罩 */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 55;
  padding: 0;
  border: 0;
  background: rgba(6, 12, 26, .64);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

/* 状态点 */
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--mute);
}
.dot--signal { background: var(--signal); box-shadow: 0 0 0 3px rgba(0, 229, 208, .18); }
.dot--pass { background: var(--pass); box-shadow: 0 0 0 3px rgba(43, 224, 138, .18); }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s var(--ease), box-shadow .16s var(--ease),
              background .16s var(--ease), border-color .16s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn--rush {
  background: linear-gradient(120deg, var(--rush), #FFA353);
  color: #1A0B00;
}
.btn--rush:hover { color: #1A0B00; box-shadow: 0 12px 28px -14px rgba(255, 122, 26, .9); }
.btn--signal {
  background: linear-gradient(120deg, var(--signal), #63F3E4);
  color: #04141F;
}
.btn--signal:hover { color: #04141F; box-shadow: 0 12px 28px -14px rgba(0, 229, 208, .9); }
.btn--ghost {
  border-color: var(--line);
  background: rgba(28, 58, 107, .35);
  color: var(--paper);
}
.btn--ghost:hover { border-color: rgba(0, 229, 208, .55); background: rgba(0, 229, 208, .1); }
.btn--sm { padding: 7px 13px; font-size: 13px; }

/* ---------- 卡片层 ---------- */
.card {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--ink-2);
}
.card--glass {
  background: rgba(28, 58, 107, .38);
  border-color: rgba(93, 118, 158, .38);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ---------- 标签与状态 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--ff-mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--mute);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.7;
  white-space: nowrap;
}
.status--pass { background: rgba(43, 224, 138, .14); color: var(--pass); }
.status--hold { background: rgba(255, 194, 75, .14); color: var(--hold); }
.status--signal { background: rgba(0, 229, 208, .14); color: var(--signal); }

/* ---------- 面包屑 ---------- */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .05em;
  color: var(--mute);
}
.crumbs a { color: var(--mute); text-decoration: none; }
.crumbs a:hover { color: var(--signal); }
.crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  color: #3D557D;
}

/* ---------- 正文 ---------- */
.prose {
  max-width: 68ch;
  font-size: 17px;
  line-height: 1.78;
  color: #D6E1F5;
}
.prose h2, .prose h3 { margin: 1.6em 0 .6em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.25em; }
.prose li { margin-bottom: .4em; }
.prose strong { color: var(--paper); }
.prose a { color: var(--signal); }

/* ---------- 图像容器基础规则 ---------- */
.figure-frame {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 16px;
  background-image:
    repeating-linear-gradient(115deg, rgba(147, 169, 204, .07) 0 1px, transparent 1px 28px),
    linear-gradient(135deg, rgba(0, 229, 208, .16), rgba(28, 58, 107, .5) 45%, rgba(255, 122, 26, .16));
}
.figure-frame::after {
  content: "";
  position: absolute;
  inset: auto -10% -55% -10%;
  height: 78%;
  background: linear-gradient(90deg, transparent, rgba(0, 229, 208, .22), transparent);
  transform: rotate(-9deg);
  pointer-events: none;
}
.figure-frame img,
.figure-frame svg,
.figure-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.figure-frame--wide { aspect-ratio: 21 / 9; }
.figure-frame--tall { aspect-ratio: 4 / 5; }
.figure-frame--square { aspect-ratio: 1 / 1; }

/* ---------- 滚动显现 ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- 阅读进度条（JS 注入） ---------- */
.scroll-meter {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 210;
  pointer-events: none;
}
.scroll-meter__fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--signal), var(--rush));
  box-shadow: 0 0 12px rgba(0, 229, 208, .55);
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 110px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(16, 31, 60, .74), rgba(8, 16, 32, .97));
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1.25fr;
  gap: clamp(20px, 3vw, 44px);
  padding-block: clamp(32px, 5vw, 64px);
}
.footer__col { min-width: 0; }
.footer__brand {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.01em;
  color: var(--paper);
}
.footer__title {
  margin: 0 0 12px;
  font-family: var(--ff-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #7C93B8;
}
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__link {
  color: #C9D8F0;
  text-decoration: none;
  font-size: 14px;
  transition: color .16s var(--ease);
}
.footer__link:hover { color: var(--signal); }
.footer__text {
  margin: 0 0 10px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--mute);
  overflow-wrap: break-word;
}
.footer__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  padding: 6px 13px;
  border: 1px solid rgba(43, 224, 138, .3);
  border-radius: 999px;
  background: rgba(43, 224, 138, .09);
  font-size: 12px;
  font-weight: 700;
  color: var(--pass);
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  padding-block: 20px;
  border-top: 1px solid var(--line-soft);
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 0; padding: 0; }
.footer__icp,
.footer__sign {
  margin: 0;
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: #6D86AD;
}
.footer__sign { margin-left: auto; }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1180px) {
  .footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1.1fr; }
}

@media (max-width: 1023px) {
  body { padding-left: 0; }
  body.is-nav-open { overflow: hidden; }

  .topbar::before,
  .topbar::after { display: none; }

  .rail {
    width: min(302px, 84vw);
    transform: translateX(-104%);
    transition: transform .22s var(--ease);
    box-shadow: 26px 0 64px -26px rgba(0, 0, 0, .9);
    will-change: transform;
  }
  .rail[data-open] { transform: none; }

  .nav-toggle { display: inline-flex; }

  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__sign { margin-left: 0; }
}

@media (min-width: 1024px) {
  .nav-scrim { display: none !important; }
}

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

@media (max-width: 680px) {
  :root { --top-h: 60px; }
  .panel-btn,
  .topbar__cta { display: none; }
  .topbar__brand { font-size: 16px; gap: 9px; }
  .verchip { padding: 3px 8px; font-size: 11px; }
  .verchip__k { display: none; }
  .figure-frame { aspect-ratio: 4 / 3; }
  .figure-frame--wide { aspect-ratio: 16 / 9; }
  .figure-frame--tall { aspect-ratio: 1 / 1; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ==========================================================================
   动效降级
   ========================================================================== */
@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 .reveal { opacity: 1; transform: none; }
  .rail__meter-fill { width: 62%; }
  .btn:hover,
  .topbar__cta:hover { transform: none; }
}
