/* ============================================================
   百胜游戏中心 · 共享样式 /assets/site.css
   技术蓝图网格 + 点亮式界面
   ============================================================ */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--body);
  background-color: var(--ink);
  background-image:
    radial-gradient(circle at 88% -12%, rgba(56, 242, 208, 0.14), transparent 46%),
    radial-gradient(circle at 2% 110%, rgba(255, 122, 47, 0.10), transparent 44%),
    linear-gradient(rgba(30, 58, 95, 0.30) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 95, 0.30) 1px, transparent 1px);
  background-size: auto, auto, 72px 72px, 72px 72px;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0 0 0.55em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.012em;
  color: var(--title);
}

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

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

ul, ol { margin: 0; padding: 0; }

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

button { font: inherit; color: inherit; }

::selection {
  background: rgba(56, 242, 208, 0.32);
  color: #04121f;
}

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

.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;
}

/* ---------- 变量 ---------- */
:root {
  --ink: #071426;
  --ink-deep: #040d19;
  --panel: #0d1f36;
  --panel-hi: #102641;
  --line: #1e3a5f;
  --line-soft: rgba(30, 58, 95, 0.62);
  --body: #b9c7d9;
  --muted: #7c90a9;
  --title: #eaf3ff;
  --cyan: #38f2d0;
  --orange: #ff7a2f;
  --gold: #f2c46b;
  --ok: #2bd98a;
  --coral: #ff5c6c;

  --rail-w: 244px;
  --shell: 1240px;
  --gutter: clamp(18px, 4vw, 44px);
  --topbar-h: 62px;

  --radius: 3px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-soft: 0 18px 44px rgba(2, 8, 18, 0.55);

  --font-display: "Sora", "HarmonyOS Sans SC", "Noto Sans SC", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- 外壳布局：桌面端给固定轨道让位 ---------- */
@media (min-width: 981px) {
  body { padding-left: var(--rail-w); }
}

@media (max-width: 980px) {
  body { padding-top: var(--topbar-h); }
}

/* ---------- skip link ---------- */
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  transform: translateY(-180%);
  padding: 10px 18px;
  background: var(--cyan);
  color: #04121f;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-decoration: none;
  border-radius: 2px;
  box-shadow: 0 10px 26px rgba(56, 242, 208, 0.35);
  transition: transform 0.22s var(--ease);
}

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

/* ---------- header 根节点 ---------- */
.bs-header {
  position: relative;
  z-index: 90;
  display: contents;
}

.bs-header[data-open] {
  display: contents;
}

/* ---------- 侧边轨道 ---------- */
.rail {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: var(--rail-w);
  padding: 26px 20px 22px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #0a1b31 0%, #081627 46%, #050f1d 100%);
  border-right: 1px solid var(--line);
  box-shadow: inset 1px 0 0 rgba(234, 243, 255, 0.04);
}

.rail::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 5px;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(56, 242, 208, 0.30) 0 1px, transparent 1px 30px);
  opacity: 0.55;
}

.rail__progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: rgba(56, 242, 208, 0.10);
  pointer-events: none;
}

.rail__progressFill {
  display: block;
  width: 100%;
  height: 0;
  background: linear-gradient(180deg, var(--cyan), var(--orange));
  box-shadow: 0 0 14px rgba(56, 242, 208, 0.65);
  transition: height 0.12s linear;
}

/* 品牌 */
.rail__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--title);
  text-decoration: none;
}

.rail__mark {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #04121f;
  background: linear-gradient(140deg, var(--cyan), #16c9ae 62%, #2fa8e0 130%);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  box-shadow: 0 0 22px rgba(56, 242, 208, 0.35);
}

.rail__brandText {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.25;
}

.rail__brandName {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.rail__brandSub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

/* 导航 */
.rail__nav {
  min-height: 0;
}

.rail__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  list-style: none;
}

.rail__item { margin: 0; }

.rail__link {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 11px 12px 11px 16px;
  color: var(--body);
  text-decoration: none;
  border-left: 1px solid transparent;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}

.rail__link::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 50%;
  width: 2px;
  height: calc(100% - 10px);
  transform: translateY(-50%) scaleY(0);
  transform-origin: center;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(56, 242, 208, 0.85);
  transition: transform 0.26s var(--ease);
}

.rail__link:hover,
.rail__link:focus-visible {
  color: var(--title);
  background: rgba(56, 242, 208, 0.06);
}

.rail__link:hover::before,
.rail__link:focus-visible::before {
  transform: translateY(-50%) scaleY(1);
}

.rail__link[aria-current="page"] {
  color: var(--title);
  border-left-color: var(--cyan);
  background: linear-gradient(90deg, rgba(56, 242, 208, 0.15), rgba(56, 242, 208, 0) 82%);
}

.rail__link[aria-current="page"]::before {
  transform: translateY(-50%) scaleY(1);
}

.rail__idx {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.rail__link[aria-current="page"] .rail__idx,
.rail__link:hover .rail__idx {
  color: var(--cyan);
}

.rail__label {
  font-size: 14.5px;
  letter-spacing: 0.03em;
}

/* 轨道底部 */
.rail__foot {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.rail__status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.rail__statusDot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(43, 217, 138, 0.16), 0 0 10px rgba(43, 217, 138, 0.8);
  animation: railPulse 3.4s ease-in-out infinite;
}

@keyframes railPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.82); }
}

.rail__cta { width: 100%; }

/* ---------- 移动端顶栏 ---------- */
.topbar { display: none; }

.nav-toggle { display: none; }

.bs-scrim {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(4, 12, 24, 0.74);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}

@media (min-width: 981px) {
  .bs-scrim { display: none; }
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.24s var(--ease), background 0.24s var(--ease), color 0.24s var(--ease), filter 0.24s var(--ease);
}

.btn--primary {
  color: #04121f;
  background: linear-gradient(120deg, var(--cyan), #25d9bc 58%, #3ab8f2 135%);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%);
  box-shadow: 0 8px 24px rgba(56, 242, 208, 0.24);
}

.btn--primary:hover {
  filter: brightness(1.09);
  box-shadow: 0 12px 32px rgba(56, 242, 208, 0.4);
}

.btn--ghost {
  color: var(--title);
  background: rgba(56, 242, 208, 0.07);
  border-color: rgba(56, 242, 208, 0.38);
}

.btn--ghost:hover {
  background: rgba(56, 242, 208, 0.14);
  border-color: var(--cyan);
}

.btn--quiet {
  color: var(--body);
  background: rgba(13, 31, 54, 0.72);
  border-color: var(--line);
}

.btn--quiet:hover {
  color: var(--title);
  border-color: rgba(56, 242, 208, 0.5);
}

.btn:active { transform: translateY(1px); }

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

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

.span-3 { grid-column: span 3; }
.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: 980px) {
  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .span-3, .span-4 { grid-column: span 3; }
  .span-5, .span-6, .span-7, .span-8, .span-12 { grid-column: span 6; }
}

@media (max-width: 600px) {
  .grid-12 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
  .span-3, .span-4, .span-5, .span-6, .span-7, .span-8, .span-12 { grid-column: span 6; }
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
  margin: 0 0 clamp(18px, 2.4vw, 30px);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb__item[aria-current="page"] { color: var(--title); }

.breadcrumb__link {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.breadcrumb__link:hover,
.breadcrumb__link:focus-visible {
  color: var(--cyan);
  border-bottom-color: rgba(56, 242, 208, 0.55);
}

.breadcrumb__sep {
  color: rgba(30, 58, 95, 0.95);
  font-size: 10px;
}

/* ---------- 小标签与印章 ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--cyan);
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), rgba(56, 242, 208, 0.1));
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  line-height: 1.6;
  color: var(--body);
  background: rgba(13, 31, 54, 0.78);
  border: 1px solid var(--line);
  border-radius: 2px;
}

.tag--cyan {
  color: var(--cyan);
  border-color: rgba(56, 242, 208, 0.42);
  background: rgba(56, 242, 208, 0.09);
}

.tag--orange {
  color: var(--orange);
  border-color: rgba(255, 122, 47, 0.44);
  background: rgba(255, 122, 47, 0.1);
}

.tag--gold {
  color: var(--gold);
  border-color: rgba(242, 196, 107, 0.42);
  background: rgba(242, 196, 107, 0.09);
}

.tag--ok {
  color: var(--ok);
  border-color: rgba(43, 217, 138, 0.42);
  background: rgba(43, 217, 138, 0.09);
}

.tag--coral {
  color: var(--coral);
  border-color: rgba(255, 92, 108, 0.42);
  background: rgba(255, 92, 108, 0.09);
}

/* ---------- 面板 ---------- */
.panel {
  position: relative;
  padding: clamp(16px, 2vw, 26px);
  background: linear-gradient(180deg, rgba(16, 38, 65, 0.92), rgba(8, 20, 36, 0.94));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(234, 243, 255, 0.05), var(--shadow-soft);
}

.panel--cut {
  border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.panel__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--title);
}

/* ---------- 图片容器基础 ---------- */
.fig {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fig__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 30% 20%, rgba(56, 242, 208, 0.14), transparent 58%),
    linear-gradient(160deg, rgba(16, 38, 65, 0.96), rgba(6, 16, 30, 0.98));
  border: 1px solid var(--line);
  border-radius: 2px;
}

.fig__media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(30, 58, 95, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 58, 95, 0.35) 1px, transparent 1px);
  background-size: 28px 28px, 28px 28px;
  opacity: 0.6;
  mix-blend-mode: screen;
}

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

.fig__cap {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* ---------- 分隔线 ---------- */
.rule {
  height: 1px;
  margin: clamp(26px, 4vw, 52px) 0;
  border: 0;
  background: linear-gradient(90deg, rgba(56, 242, 208, 0.45), rgba(30, 58, 95, 0.55) 40%, transparent);
}

/* ---------- 可展开组 ---------- */
.fold {
  border: 1px solid var(--line);
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(13, 31, 54, 0.85), rgba(7, 19, 34, 0.9));
  margin-bottom: 10px;
  transition: border-color 0.24s var(--ease), background 0.24s var(--ease);
}

.fold:hover { border-color: rgba(56, 242, 208, 0.42); }

.fold.is-open {
  border-color: rgba(56, 242, 208, 0.58);
  box-shadow: 0 0 0 1px rgba(56, 242, 208, 0.14), 0 12px 30px rgba(2, 8, 18, 0.5);
}

.fold__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 14.5px;
  letter-spacing: 0.03em;
  color: var(--title);
  cursor: pointer;
}

.fold__trigger::after {
  content: "";
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--cyan);
  border-bottom: 1.5px solid var(--cyan);
  transform: rotate(45deg);
  transition: transform 0.26s var(--ease);
}

.fold.is-open .fold__trigger::after {
  transform: rotate(225deg);
}

.fold__panel {
  padding: 0 16px 16px;
  color: var(--body);
  font-size: 15.5px;
  animation: foldIn 0.28s var(--ease);
}

.fold__panel[hidden] { display: none; }

@keyframes foldIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 页脚 ---------- */
.bs-footer {
  position: relative;
  margin-top: clamp(56px, 8vw, 110px);
  padding: clamp(42px, 5vw, 76px) 0 26px;
  color: var(--body);
  background:
    linear-gradient(180deg, rgba(13, 31, 54, 0.96), rgba(4, 13, 25, 0.99)),
    repeating-linear-gradient(90deg, rgba(30, 58, 95, 0.38) 0 1px, transparent 1px 80px);
  border-top: 1px solid var(--line);
}

.bs-footer::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan) 0%, rgba(56, 242, 208, 0) 36%, rgba(255, 122, 47, 0) 64%, var(--orange) 100%);
  opacity: 0.9;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(26px, 3vw, 40px);
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

@media (min-width: 640px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .footer__grid { grid-template-columns: 1.45fr 0.85fr 0.9fr 1.2fr; }
}

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

.footer__brandName {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--title);
}

.footer__brandLine {
  margin: 0;
  max-width: 30ch;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--body);
}

.footer__tick {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  padding-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  line-height: 1.7;
  color: var(--muted);
}

.footer__tickDot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(242, 196, 107, 0.14);
}

.footer__col { min-width: 0; }

.footer__colTitle {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--cyan);
}

.footer__colTitle::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--cyan);
  transform: rotate(45deg);
  box-shadow: 0 0 9px rgba(56, 242, 208, 0.85);
}

.footer__links {
  display: grid;
  gap: 9px;
  list-style: none;
}

.footer__link {
  display: inline-block;
  padding-bottom: 1px;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  color: var(--body);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.footer__link:hover,
.footer__link:focus-visible {
  color: var(--cyan);
  border-bottom-color: rgba(56, 242, 208, 0.55);
  transform: translateX(3px);
}

.footer__info { min-width: 0; }

.footer__infoRow {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 13.5px;
  line-height: 1.65;
}

.footer__label {
  flex: 0 0 auto;
  min-width: 34px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.footer__value {
  min-width: 0;
  color: var(--body);
  overflow-wrap: anywhere;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  width: 100%;
  max-width: var(--shell);
  margin: clamp(30px, 4vw, 50px) auto 0;
  padding: 18px var(--gutter) 0;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.footer__copy,
.footer__icp { margin: 0; }

/* ---------- 移动端：抽屉与顶栏 ---------- */
@media (max-width: 980px) {
  .topbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 95;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: var(--topbar-h);
    padding: 0 16px;
    background: linear-gradient(180deg, rgba(10, 27, 49, 0.98), rgba(7, 20, 38, 0.94));
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(10px);
  }

  .topbar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: var(--title);
    text-decoration: none;
  }

  .topbar__mark {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: #04121f;
    background: linear-gradient(140deg, var(--cyan), #16c9ae 62%, #2fa8e0 130%);
    clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
  }

  .topbar__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
  }

  .topbar__name {
    font-family: var(--font-display);
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0.05em;
    white-space: nowrap;
  }

  .topbar__sub {
    font-family: var(--font-mono);
    font-size: 9.5px;
    letter-spacing: 0.12em;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-toggle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    color: var(--cyan);
    background: rgba(56, 242, 208, 0.08);
    border: 1px solid rgba(56, 242, 208, 0.34);
    border-radius: 2px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    cursor: pointer;
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
  }

  .nav-toggle:hover { background: rgba(56, 242, 208, 0.16); }

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

  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.26s var(--ease), opacity 0.2s var(--ease);
  }

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

  .bs-header[data-open] .nav-toggle__bars::before {
    transform: translateY(4.25px) rotate(45deg);
  }

  .bs-header[data-open] .nav-toggle__bars::after {
    transform: translateY(-4.25px) rotate(-45deg);
  }

  /* 抽屉 */
  .rail {
    width: min(84vw, 320px);
    z-index: 100;
    transform: translateX(-102%);
    transition: transform 0.34s var(--ease);
    box-shadow: 26px 0 60px rgba(0, 0, 0, 0.6);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .bs-header[data-open] .rail { transform: translateX(0); }

  .rail__progress { display: none; }

  .bs-header[data-open] .bs-scrim {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ---------- 低高度桌面端压缩轨道 ---------- */
@media (min-width: 981px) and (max-height: 720px) {
  .rail { gap: 16px; padding: 18px 16px 16px; }
  .rail__link { padding: 8px 12px 8px 16px; }
  .rail__label { font-size: 13.5px; }
  .rail__brand { padding-bottom: 12px; }
  .rail__foot { padding-top: 12px; }
}

/* ---------- 减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .rail__progressFill { transition: none; }
}
