/* =========================================================
   AB娱乐会馆 · /assets/site.css
   蓝图网格 × 霓虹夜场 —— 共享外壳与基础组件
   ========================================================= */

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

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

body,
h1, h2, h3, h4, h5, h6,
p, ul, ol, li, figure, blockquote, dl, dd, figure { margin: 0; }

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

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

button { font: inherit; color: inherit; background: none; border: 0; }

a { color: inherit; text-decoration: none; }

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

hr { border: 0; }

/* ---------- 变量 ---------- */
:root {
  --ink: #0D1030;          /* 深靛蓝底 */
  --ink-2: #171B4A;        /* 靛蓝浮层 */
  --gem-teal: #0B3A3F;     /* 深蓝绿宝石 */
  --gem-wine: #3D1030;     /* 酒红宝石 */
  --cyan: #2CE8D8;         /* 霓虹青 */
  --orange: #FF6B2C;       /* 活力橙 */
  --amber: #FFC24B;        /* 琥珀金 */
  --paper: #F3F6FF;        /* 珍珠白 */
  --mist: #9AA3CC;         /* 雾霭蓝灰 */
  --black: #050718;        /* 硬边墨黑 */

  --line: rgba(154, 163, 204, 0.28);
  --line-soft: rgba(154, 163, 204, 0.14);
  --grid: rgba(44, 232, 216, 0.075);
  --grid-strong: rgba(44, 232, 216, 0.16);

  --shadow-hard: 6px 6px 0 var(--black);
  --shadow-soft: 4px 4px 0 rgba(5, 7, 24, 0.9);
  --radius: 2px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1240px;

  --font-display: "Archivo Black", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Sarasa Mono SC", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--ink);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

@media (min-width: 900px) {
  body { background-attachment: fixed; }
}

h1, .h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h2, .h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.16;
}

h3, .h3 {
  font-size: clamp(19px, 2.2vw, 26px);
  font-weight: 700;
  line-height: 1.3;
}

h4, .h4 {
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 700;
  line-height: 1.4;
}

p { max-width: 72ch; }

strong { color: var(--paper); font-weight: 700; }

.mono, .text-mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.muted { color: var(--mist); }

.accent-cyan { color: var(--cyan); }
.accent-orange { color: var(--orange); }
.accent-amber { color: var(--amber); }

.slant {
  display: inline-block;
  transform: skewX(-3deg);
  transform-origin: left bottom;
}

/* ---------- 焦点 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px rgba(5, 7, 24, 0.9);
}

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--cyan);
  color: var(--black);
  border: 2px solid var(--black);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  transition: top 0.2s var(--ease);
}

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

/* =========================================================
   命令栏页头
   ========================================================= */
.cmd-bar {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(13, 16, 48, 0.97);
  border-bottom: 2px solid var(--black);
  box-shadow: 0 4px 0 rgba(5, 7, 24, 0.65);
}

.cmd-bar__inner {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(10px, 1.4vw, 16px) clamp(16px, 4vw, 40px) clamp(6px, 1vw, 10px);
}

.cmd-bar__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

.cmd-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.cmd-brand__mark {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--cyan);
  color: var(--black);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.02em;
  border: 2px solid var(--black);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 var(--black);
  transform: skewX(-6deg);
}

.cmd-brand__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cmd-brand__name {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.cmd-brand__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--mist);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cmd-status {
  order: 3;
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: rgba(23, 27, 74, 0.75);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.07em;
  color: var(--mist);
  max-width: none;
}

.cmd-status::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 44, 0.22);
  animation: cmd-pulse 2.4s ease-in-out infinite;
}

@keyframes cmd-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.cmd-status__key { color: var(--cyan); }

.cmd-status__val { color: var(--mist); }

.cmd-actions {
  order: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.cmd-actions__cta { white-space: nowrap; }

.cmd-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  background: var(--ink-2);
  color: var(--paper);
  border: 2px solid var(--black);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}

.cmd-toggle:hover {
  border-color: var(--cyan);
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--black);
}

.cmd-toggle__bars {
  display: grid;
  gap: 4px;
  width: 18px;
}

.cmd-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cyan);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.cmd-toggle[aria-expanded="true"] .cmd-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.cmd-toggle[aria-expanded="true"] .cmd-toggle__bar:nth-child(2) { opacity: 0; }
.cmd-toggle[aria-expanded="true"] .cmd-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 导航 */
.cmd-nav {
  display: none;
  margin-top: 10px;
  padding: 6px 0 2px;
  border-top: 1px solid var(--line-soft);
}

.cmd-nav[data-open] { display: block; }

.cmd-nav__list {
  display: grid;
  gap: 2px;
}

.cmd-nav__item { min-width: 0; }

.cmd-nav__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  color: var(--mist);
  font-size: 15px;
  border-left: 2px solid transparent;
  border-radius: var(--radius);
  transition: color 0.28s var(--ease), background-color 0.28s var(--ease), border-color 0.28s var(--ease);
}

.cmd-nav__idx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.cmd-nav__link:hover {
  color: var(--paper);
  background: rgba(44, 232, 216, 0.08);
  border-left-color: var(--cyan);
}

.cmd-nav__link[aria-current="page"] {
  color: var(--paper);
  background: rgba(44, 232, 216, 0.12);
  border-left-color: var(--cyan);
}

.cmd-nav__link[aria-current="page"] .cmd-nav__idx { color: var(--cyan); }

.cmd-nav__link[aria-current="page"]::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: auto;
  background: var(--cyan);
}

/* 滚动进度轨 */
.cmd-bar__rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(154, 163, 204, 0.16);
  overflow: hidden;
}

.cmd-bar__rail-fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--amber) 55%, var(--orange));
  transition: width 0.12s linear;
}

/* 平板及以上：导航变为可横向滑动的索引条 */
@media (min-width: 640px) {
  .cmd-toggle { display: none; }

  .cmd-nav {
    display: block;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
  }

  .cmd-nav__list {
    display: flex;
    flex-wrap: nowrap;
    gap: 2px;
    min-width: max-content;
  }

  .cmd-nav__link {
    padding: 10px 14px 12px;
    white-space: nowrap;
    border-left: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
  }

  .cmd-nav__link:hover {
    background: transparent;
    border-left-color: transparent;
    border-bottom-color: var(--cyan);
  }

  .cmd-nav__link[aria-current="page"] {
    background: transparent;
    border-left-color: transparent;
    border-bottom-color: var(--cyan);
  }

  .cmd-nav__link[aria-current="page"]::after { margin-left: 4px; }
}

/* 桌面：状态条回到主行 */
@media (min-width: 900px) {
  .cmd-status {
    order: 2;
    flex: 0 1 auto;
    margin-left: auto;
    max-width: 420px;
  }

  .cmd-actions {
    order: 3;
    margin-left: 0;
  }
}

/* =========================================================
   蓝图栅格与布局
   ========================================================= */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: clamp(16px, 4vw, 40px);
  padding-right: clamp(16px, 4vw, 40px);
}

.sec { padding-block: clamp(34px, 5vw, 72px); }

.bp-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 24px);
}

.bp-grid > * { grid-column: 1 / -1; }

@media (min-width: 900px) {
  .bp-grid--main > .bp-rail { grid-column: 1 / 3; }
  .bp-grid--main > .bp-main { grid-column: 3 / 10; }
  .bp-grid--main > .bp-aside { grid-column: 10 / -1; }
}

.bp-rail {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

/* =========================================================
   章节头
   ========================================================= */
.sec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 16px;
  padding-bottom: 12px;
  margin-bottom: clamp(16px, 2.2vw, 28px);
  border-bottom: 2px solid var(--line);
}

.sec-head__idx {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.sec-head__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.2;
}

.sec-head__title::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 10px;
  background: var(--cyan);
}

.sec-head__note {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--mist);
}

/* =========================================================
   面板卡片
   ========================================================= */
.panel {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--ink-2);
  border: 2px solid var(--black);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
}

.panel--teal { background: var(--gem-teal); }
.panel--wine { background: var(--gem-wine); }
.panel--cyan-edge { border-color: var(--cyan); }
.panel--flat { box-shadow: none; }

.panel--link {
  display: block;
  transition: transform 0.32s var(--ease), box-shadow 0.32s var(--ease), border-color 0.32s var(--ease);
}

.panel--link:hover,
.panel--link:focus-visible {
  border-color: var(--cyan);
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--black);
}

.panel--link:hover .panel__idx { color: var(--cyan); }

.panel__idx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--mist);
}

.lift { transform: translateY(-6px); }

/* =========================================================
   按钮
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  background: var(--ink-2);
  color: var(--paper);
  border: 2px solid var(--black);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease),
              background-color 0.28s var(--ease), border-color 0.28s var(--ease),
              color 0.28s var(--ease);
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--black);
  border-color: var(--cyan);
}

.btn--primary {
  background: var(--orange);
  color: var(--black);
  font-weight: 700;
}

.btn--primary:hover {
  background: var(--amber);
  border-color: var(--black);
}

.btn--cyan {
  background: var(--cyan);
  color: var(--black);
  font-weight: 700;
}

.btn--ghost {
  background: transparent;
  border-color: var(--mist);
}

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

/* =========================================================
   标签 / 状态
   ========================================================= */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  letter-spacing: 0.08em;
}

.tag--cyan { color: var(--cyan); }
.tag--orange { color: var(--orange); }
.tag--amber { color: var(--amber); }
.tag--mist { color: var(--mist); }

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

.crumbs a { color: var(--mist); transition: color 0.24s var(--ease); }
.crumbs a:hover { color: var(--cyan); }
.crumbs__sep { color: var(--line); }
.crumbs [aria-current="page"] { color: var(--paper); }

/* =========================================================
   正文容器
   ========================================================= */
.prose {
  max-width: 68ch;
  font-size: clamp(16px, 1.1vw, 17.5px);
  line-height: 1.78;
  color: var(--paper);
}

.prose > * + * { margin-top: 1.05em; }

.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }

.prose a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(44, 232, 216, 0.5);
  transition: background-color 0.24s var(--ease), border-color 0.24s var(--ease);
}

.prose a:hover {
  background: rgba(44, 232, 216, 0.12);
  border-bottom-color: var(--cyan);
}

.prose ul,
.prose ol { display: grid; gap: 8px; }

.prose ul > li,
.prose ol > li {
  position: relative;
  padding-left: 24px;
}

.prose ul > li::before {
  content: "▸";
  position: absolute;
  left: 2px;
  top: 0;
  color: var(--cyan);
}

.prose ol { counter-reset: prose-ol; }

.prose ol > li { counter-increment: prose-ol; }

.prose ol > li::before {
  content: counter(prose-ol, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--orange);
}

.prose blockquote {
  padding: 14px 18px;
  background: rgba(23, 27, 74, 0.7);
  border-left: 3px solid var(--cyan);
  color: var(--mist);
}

/* =========================================================
   图片容器（供页面阶段放置素材）
   ========================================================= */
.media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 2px solid var(--black);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hard);
  background:
    linear-gradient(140deg, var(--ink-2), var(--gem-teal) 55%, var(--gem-wine));
}

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

.media--wide { aspect-ratio: 21 / 9; }
.media--tall { aspect-ratio: 3 / 4; }
.media--square { aspect-ratio: 1 / 1; }

.media--neon::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(44, 232, 216, 0.24), transparent 42%, rgba(255, 107, 44, 0.22));
}

.media--blur::before {
  content: "";
  position: absolute;
  inset: -10%;
  pointer-events: none;
  background:
    radial-gradient(60% 80% at 20% 30%, rgba(44, 232, 216, 0.22), transparent 70%),
    radial-gradient(50% 70% at 82% 70%, rgba(255, 107, 44, 0.2), transparent 72%);
  filter: blur(14px);
}

.media__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 12px;
  background: rgba(5, 7, 24, 0.84);
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--mist);
}

/* =========================================================
   延伸入口列表 / 步骤
   ========================================================= */
.linklist { display: grid; }

.linklist li { border-bottom: 1px solid var(--line-soft); }

.linklist a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  color: var(--paper);
  transition: color 0.26s var(--ease), padding-left 0.26s var(--ease), background-color 0.26s var(--ease);
}

.linklist a:hover {
  color: var(--cyan);
  padding-left: 12px;
  background: rgba(44, 232, 216, 0.06);
}

.linklist__idx {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--mist);
}

.steps { display: grid; gap: 14px; }

.steps > li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
}

.steps__num {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--ink-2);
  border: 2px solid var(--black);
  border-radius: var(--radius);
  box-shadow: 3px 3px 0 var(--black);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--mist);
}

.steps > li.is-current .steps__num { background: var(--cyan); color: var(--black); }
.steps > li.is-done .steps__num { background: var(--orange); color: var(--black); }

/* =========================================================
   斜向装饰
   ========================================================= */
.rule-slant {
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), rgba(44, 232, 216, 0));
  transform: rotate(-1.2deg);
}

.diag-cut {
  position: relative;
  clip-path: polygon(0 0, 100% 2.4%, 100% 100%, 0 97.6%);
  border-top: 2px solid var(--cyan);
}

/* =========================================================
   显现动效协议
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.36s var(--ease), transform 0.44s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal-group .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-group .reveal:nth-child(2) { transition-delay: 60ms; }
.reveal-group .reveal:nth-child(3) { transition-delay: 120ms; }
.reveal-group .reveal:nth-child(4) { transition-delay: 180ms; }
.reveal-group .reveal:nth-child(5) { transition-delay: 240ms; }
.reveal-group .reveal:nth-child(6) { transition-delay: 300ms; }
.reveal-group .reveal:nth-child(7) { transition-delay: 360ms; }
.reveal-group .reveal:nth-child(8) { transition-delay: 420ms; }

/* =========================================================
   页脚
   ========================================================= */
.bp-footer {
  position: relative;
  margin-top: clamp(48px, 7vw, 96px);
  background: var(--gem-teal);
  border-top: 2px solid var(--black);
  box-shadow: inset 0 3px 0 rgba(44, 232, 216, 0.4);
  color: var(--paper);
  overflow: hidden;
}

.bp-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
}

.bp-footer__inner {
  position: relative;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 52px) clamp(16px, 4vw, 40px) clamp(22px, 3vw, 34px);
}

.bp-footer__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  padding-bottom: 18px;
  margin-bottom: clamp(20px, 3vw, 34px);
  border-bottom: 1px solid rgba(44, 232, 216, 0.32);
}

.bp-footer__mark {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--cyan);
  max-width: none;
}

.bp-footer__brand {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 900;
  line-height: 1.2;
  max-width: none;
}

.bp-footer__code {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--mist);
  max-width: none;
}

.bp-footer__code strong {
  color: var(--amber);
  letter-spacing: 0.12em;
}

.bp-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(20px, 3vw, 32px);
}

.foot-group { min-width: 0; }

.foot-group__title {
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(154, 163, 204, 0.2);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.foot-group__list { display: grid; gap: 8px; }

.foot-group__list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
  color: var(--mist);
  font-size: 15px;
  border-bottom: 1px solid transparent;
  transition: color 0.26s var(--ease), border-color 0.26s var(--ease);
}

.foot-group__list a::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--orange);
  flex: 0 0 auto;
  transition: background-color 0.26s var(--ease);
}

.foot-group__list a:hover {
  color: var(--cyan);
  border-bottom-color: rgba(44, 232, 216, 0.6);
}

.foot-group__list a:hover::before { background: var(--cyan); }

.foot-contact__line {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.95;
  letter-spacing: 0.04em;
  color: var(--mist);
  max-width: 42ch;
}

.foot-group--contact .foot-contact__line:first-of-type { margin-top: 10px; }

.bp-footer__base {
  display: grid;
  gap: 10px;
  margin-top: clamp(24px, 3.5vw, 40px);
  padding-top: 18px;
  border-top: 1px solid rgba(154, 163, 204, 0.2);
}

.foot-note,
.foot-tip {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--mist);
  max-width: 78ch;
}

.foot-tip {
  color: var(--amber);
  padding-left: 12px;
  border-left: 2px solid var(--orange);
}

.foot-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--mist);
  max-width: none;
}

.foot-meta__sep { color: var(--orange); }

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

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

/* =========================================================
   响应式微调
   ========================================================= */
@media (max-width: 639px) {
  body { font-size: 16px; }
  .cmd-brand__tag { display: none; }
  .cmd-brand__mark { width: 38px; height: 38px; font-size: 15px; }
  .cmd-status { font-size: 11.5px; }
  .cmd-actions__cta { padding: 10px 14px; font-size: 13px; }
  .sec-head__note { margin-left: 0; }
}

@media (min-width: 640px) and (max-width: 899px) {
  .cmd-brand__tag { max-width: 46vw; }
}

/* =========================================================
   reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .btn,
  .panel--link,
  .cmd-nav__link,
  .cmd-toggle,
  .cmd-toggle__bar,
  .foot-group__list a,
  .linklist a,
  .panel,
  .cmd-bar__rail-fill,
  .skip-link {
    transition: none !important;
  }

  .btn:hover,
  .panel--link:hover,
  .cmd-toggle:hover {
    transform: none !important;
  }

  .cmd-status::before { animation: none !important; }
}
