/* ==========================================================================
   AB娱乐 · /assets/site.css
   共享外壳：变量、重置、中文排版、页头、页脚、基础组件
   ========================================================================== */

:root {
  --ink-900: #070B16;
  --ink-800: #10182B;
  --ink-700: #161F36;
  --line-600: #23314D;
  --paper: #F3EBDD;
  --paper-line: #D8CBB4;
  --cyan: #25E6D3;
  --magenta: #FF3D9A;
  --orange: #FF5A3C;
  --gold: #F5C451;
  --green: #3DD68C;
  --text: #EDF1F8;
  --text-dim: #A8B0C2;
  --ink-text: #0B0E14;

  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --r-pill: 999px;

  --shell: 1440px;
  --gutter: clamp(16px, 4vw, 48px);
  --gap: 24px;

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

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }

/* ---------- 基础排版与蓝图底 ---------- */
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--ink-900);
  background-image:
    radial-gradient(900px 620px at 10% -6%, rgba(37, 230, 211, 0.12), transparent 62%),
    radial-gradient(760px 520px at 94% 2%, rgba(255, 61, 154, 0.11), transparent 64%),
    linear-gradient(to right, rgba(35, 49, 77, 0.34) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(35, 49, 77, 0.34) 1px, transparent 1px);
  background-size: auto, auto, 96px 96px, 96px 96px;
  background-attachment: fixed, fixed, scroll, scroll;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; line-height: 1.12; letter-spacing: -0.01em; }
strong { font-weight: 800; }
::selection { background: var(--cyan); color: #04140F; }

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

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

/* ---------- 跳转链接 ---------- */
.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 200;
  transform: translateY(-220%);
  background: var(--cyan);
  color: #04140F;
  font-weight: 800;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  transition: transform 0.18s ease;
}
.skip-link:focus { transform: translateY(0); }

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

.section { position: relative; padding-block: clamp(48px, 7vw, 96px); }
.section--tight { padding-block: clamp(32px, 4vw, 60px); }

.section__head { max-width: 860px; margin-bottom: clamp(24px, 3.5vw, 44px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--cyan);
  opacity: 0.8;
}

.section__title {
  font-size: clamp(30px, 4.6vw, 56px);
  font-weight: 900;
  line-height: 1.06;
}

.section__lede {
  margin-top: 16px;
  max-width: 760px;
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.75;
}

/* ---------- 12 列网格 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}
.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-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: linear-gradient(120deg, var(--magenta), var(--orange));
  color: #FFFFFF;
  box-shadow: 0 14px 30px -18px rgba(255, 61, 154, 0.95);
}
.btn--primary:hover { box-shadow: 0 18px 36px -16px rgba(255, 61, 154, 0.95); }
.btn--ghost {
  background: rgba(37, 230, 211, 0.08);
  border-color: rgba(37, 230, 211, 0.45);
  color: var(--cyan);
}
.btn--ghost:hover { background: rgba(37, 230, 211, 0.16); border-color: var(--cyan); }
.btn--paper {
  background: var(--paper);
  border-color: var(--paper-line);
  color: var(--ink-text);
}
.btn--paper:hover { background: #FFF7EA; }
.btn--sm { padding: 9px 16px; font-size: 13.5px; }

/* ---------- 徽章与胶囊 ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-600);
  background: rgba(35, 49, 77, 0.4);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.badge--cyan { border-color: rgba(37, 230, 211, 0.5); background: rgba(37, 230, 211, 0.1); color: var(--cyan); }
.badge--magenta { border-color: rgba(255, 61, 154, 0.5); background: rgba(255, 61, 154, 0.12); color: #FF88BE; }
.badge--orange { border-color: rgba(255, 90, 60, 0.5); background: rgba(255, 90, 60, 0.12); color: #FF8E74; }
.badge--gold { border-color: rgba(245, 196, 81, 0.55); background: rgba(245, 196, 81, 0.12); color: var(--gold); }
.badge--line { border-color: var(--line-600); background: rgba(35, 49, 77, 0.28); color: var(--text-dim); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-600);
  background: rgba(16, 24, 43, 0.72);
  color: var(--text-dim);
  font-size: 13.5px;
  font-weight: 600;
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.pill:hover { color: var(--cyan); border-color: rgba(37, 230, 211, 0.5); background: rgba(37, 230, 211, 0.1); }
.pill--active { background: var(--cyan); border-color: var(--cyan); color: #04140F; font-weight: 800; }

.tag-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 卡片 ---------- */
.card {
  position: relative;
  overflow: hidden;
  padding: clamp(20px, 2.4vw, 32px);
  border: 1px solid var(--line-600);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(16, 24, 43, 0.96), rgba(9, 13, 24, 0.9));
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 230, 211, 0.45);
  box-shadow: 0 20px 44px -30px rgba(37, 230, 211, 0.9);
}
.card--data::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, transparent 50%, rgba(37, 230, 211, 0.16) 50%);
  pointer-events: none;
}
.card--paper {
  background: var(--paper);
  border-color: var(--paper-line);
  color: var(--ink-text);
}
.card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.card__title {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 800;
  line-height: 1.22;
}
.card__meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}
.card--paper .card__meta { color: #5A513F; }
.card__body { color: var(--text-dim); font-size: 16px; line-height: 1.78; }
.card--paper .card__body { color: #2E2A22; }
.card__foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-600);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-dim);
}
.card--paper .card__foot { border-top-color: rgba(11, 14, 20, 0.16); }

/* ---------- 指标数字 ---------- */
.metric { display: flex; flex-direction: column; gap: 8px; }
.metric__value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cyan);
}
.metric__label { font-size: 13.5px; color: var(--text-dim); }

/* ---------- 长文与提示 ---------- */
.prose { max-width: 760px; font-size: 17px; line-height: 1.85; color: #E4E9F2; }
.prose p + p { margin-top: 1em; }
.prose h3 { font-size: 22px; font-weight: 800; margin: 1.6em 0 0.5em; line-height: 1.3; }
.prose ul { display: grid; gap: 10px; margin: 1em 0; }
.prose li { position: relative; padding-left: 20px; }
.prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 2px;
  background: var(--cyan);
}
.card--paper .prose, .card--paper .prose h3 { color: var(--ink-text); }
.card--paper .prose li::before { background: var(--magenta); }

.callout {
  border: 1px solid var(--line-600);
  border-left: 3px solid var(--cyan);
  border-radius: var(--r-md);
  background: rgba(37, 230, 211, 0.06);
  padding: 16px 20px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text);
}
.callout--gold { border-left-color: var(--gold); background: rgba(245, 196, 81, 0.08); }
.callout--warn { border-left-color: var(--orange); background: rgba(255, 90, 60, 0.08); }

/* ---------- 可展开内容组 ---------- */
.accordion { display: grid; gap: 12px; max-width: 900px; }
.accordion__item {
  border: 1px solid var(--line-600);
  border-radius: var(--r-md);
  background: rgba(16, 24, 43, 0.72);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.accordion__item[data-open] { border-color: rgba(37, 230, 211, 0.45); }
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  text-align: left;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.accordion__icon {
  position: relative;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(37, 230, 211, 0.5);
  background: rgba(37, 230, 211, 0.12);
}
.accordion__icon::before, .accordion__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--cyan);
  transform: translate(-50%, -50%);
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.accordion__icon::before { width: 10px; height: 1.5px; }
.accordion__icon::after { width: 1.5px; height: 10px; }
.accordion__item[data-open] .accordion__icon::after { transform: translate(-50%, -50%) scaleY(0); opacity: 0; }
.accordion__panel { height: 0; overflow: hidden; transition: height 0.22s ease; }
.accordion__inner { padding: 0 20px 20px; color: var(--text-dim); font-size: 15.5px; line-height: 1.8; }

/* ---------- 面包屑 ---------- */
.breadcrumbs { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--text-dim); }
.breadcrumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.breadcrumbs__list li { display: flex; align-items: center; gap: 8px; }
.breadcrumbs__list li + li::before { content: "/"; color: rgba(168, 176, 194, 0.55); }
.breadcrumbs a:hover { color: var(--cyan); }
.breadcrumbs__current { color: var(--cyan); }

/* ---------- 图片容器基础（页面阶段放入真实图片） ---------- */
.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-600);
  border-radius: var(--r-lg);
  aspect-ratio: 16 / 9;
  min-height: 180px;
  background:
    radial-gradient(120% 90% at 18% 8%, rgba(37, 230, 211, 0.22), transparent 58%),
    radial-gradient(90% 80% at 88% 88%, rgba(255, 61, 154, 0.2), transparent 62%),
    linear-gradient(150deg, #10182B, #070B16);
}
.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(35, 49, 77, 0.5) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(35, 49, 77, 0.5) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
  pointer-events: none;
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--wide { aspect-ratio: 21 / 9; }
.media-frame--tall { aspect-ratio: 4 / 5; }
.media-frame__cap {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.media-frame__tag { position: absolute; top: 14px; left: 14px; z-index: 2; }

/* ==========================================================================
   页头
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.deck-strip {
  background: rgba(7, 11, 22, 0.94);
  border-bottom: 1px solid rgba(35, 49, 77, 0.9);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
}
.deck-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
  padding-block: 8px;
}
.deck-status { display: flex; align-items: center; gap: 9px; color: var(--cyan); }
.deck-status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  animation: ab-pulse 2.4s ease-out infinite;
}
@keyframes ab-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 230, 211, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(37, 230, 211, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 230, 211, 0); }
}
.deck-meta { display: flex; align-items: center; gap: 12px; color: var(--text-dim); text-transform: uppercase; }
.deck-meta__sep { width: 1px; height: 12px; background: var(--line-600); }

.command-bar {
  position: relative;
  background: linear-gradient(180deg, rgba(16, 24, 43, 0.97), rgba(11, 16, 28, 0.94));
  border-bottom: 1px solid var(--line-600);
}
.command-bar__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-height: 72px;
  padding-block: 10px;
}

.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand__glyph {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--cyan);
  background: linear-gradient(140deg, rgba(37, 230, 211, 0.18), rgba(255, 61, 154, 0.22));
  border: 1px solid rgba(37, 230, 211, 0.45);
  box-shadow: inset 0 0 18px rgba(37, 230, 211, 0.18);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-head); font-weight: 900; font-size: 20px; letter-spacing: 0.02em; color: var(--text); }
.brand__tag { font-size: 10px; letter-spacing: 0.18em; color: var(--text-dim); margin-top: 4px; }

.cmd-nav { flex: 1 1 auto; display: flex; justify-content: center; }
.cmd-nav__list { display: flex; align-items: center; gap: 2px; }
.cmd-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  color: var(--text-dim);
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.cmd-nav__link:hover {
  color: var(--text);
  background: rgba(35, 49, 77, 0.6);
  border-color: rgba(37, 230, 211, 0.4);
}
.cmd-nav__link[aria-current="page"] {
  color: #04140F;
  background: var(--cyan);
  border-color: var(--cyan);
  font-weight: 800;
  box-shadow: 0 12px 26px -16px rgba(37, 230, 211, 0.95);
}
.cmd-nav__idx { font-size: 10px; letter-spacing: 0.08em; color: var(--cyan); opacity: 0.9; }
.cmd-nav__link[aria-current="page"] .cmd-nav__idx { color: #04140F; opacity: 0.62; }

.cmd-nav__quick { display: none; }
.cmd-nav__quick-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.cmd-nav__quick-list { display: flex; flex-wrap: wrap; gap: 10px; }

.cmd-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-600);
  background: rgba(16, 24, 43, 0.85);
  color: var(--text);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.nav-toggle:hover { border-color: rgba(37, 230, 211, 0.5); color: var(--cyan); }
.nav-toggle__bars { display: grid; gap: 4px; width: 16px; }
.nav-toggle__bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle__label { display: inline; }

/* ==========================================================================
   页脚
   ========================================================================== */
.site-footer {
  position: relative;
  margin-top: clamp(48px, 8vw, 120px);
  border-top: 1px solid var(--line-600);
  background: linear-gradient(180deg, rgba(16, 24, 43, 0.86), rgba(7, 11, 22, 0.99));
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(35, 49, 77, 0.45) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(35, 49, 77, 0.45) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.55;
  pointer-events: none;
}

.foot-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(28px, 4vw, 64px);
  padding-block: clamp(40px, 5vw, 72px);
}
.foot-brand__desc {
  margin-top: 18px;
  max-width: 46ch;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.78;
}
.foot-badges { margin-top: 20px; }

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 40px);
}
.foot-col { min-width: 0; }
.foot-col__title {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line-600);
}
.foot-links { display: grid; gap: 11px; }
.foot-link {
  display: inline-block;
  color: var(--text-dim);
  font-size: 15px;
  transition: color 0.18s ease, transform 0.18s ease;
}
.foot-link:hover { color: var(--cyan); transform: translateX(3px); }

.foot-contact {
  position: relative;
  border-top: 1px solid var(--line-600);
  border-bottom: 1px solid var(--line-600);
  background: rgba(11, 16, 28, 0.6);
}
.foot-contact__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding-block: 22px;
}
.foot-contact__item { display: flex; flex-direction: column; gap: 6px; }
.foot-contact__label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.foot-contact__value { font-size: 14px; color: var(--text); word-break: break-word; }
.foot-contact__note { grid-column: 1 / -1; color: var(--text-dim); font-size: 13px; }

.foot-bottom { position: relative; padding-block: 20px 28px; }
.foot-bottom__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
}
.foot-legal { color: var(--text-dim); font-size: 13px; }
.foot-coord { font-size: 11px; letter-spacing: 0.14em; color: rgba(168, 176, 194, 0.65); }

/* ==========================================================================
   动效基元
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 120;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--gold), var(--magenta));
  pointer-events: none;
}

.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 32px);
  bottom: clamp(14px, 3vw, 32px);
  z-index: 110;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(37, 230, 211, 0.5);
  background: rgba(9, 13, 24, 0.92);
  color: var(--cyan);
  font-size: 17px;
  line-height: 1;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease, background 0.22s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: rgba(37, 230, 211, 0.16); }

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 1180px) {
  .cmd-nav__link { font-size: 13.5px; padding: 9px 10px; }
  .cmd-nav__idx { display: none; }
}

@media (max-width: 1079px) {
  .deck-meta { display: none; }

  .cmd-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: block;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    background: rgba(9, 13, 24, 0.98);
    border-bottom: 1px solid var(--line-600);
    box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.95);
    transition: max-height 0.28s cubic-bezier(0.22, 0.7, 0.3, 1), visibility 0.28s ease;
  }
  .cmd-nav[data-open] {
    max-height: min(78vh, 620px);
    overflow-y: auto;
    visibility: visible;
  }
  .cmd-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
    padding: 16px var(--gutter) 6px;
  }
  .cmd-nav__link {
    justify-content: flex-start;
    padding: 13px 16px;
    border-radius: 16px;
    border-color: rgba(35, 49, 77, 0.85);
    background: rgba(16, 24, 43, 0.65);
    font-size: 16px;
  }
  .cmd-nav__idx { display: inline; font-size: 11px; }
  .cmd-nav__quick {
    display: block;
    margin-top: 12px;
    padding: 16px var(--gutter) 22px;
    border-top: 1px solid var(--line-600);
  }
  .cmd-actions__desk { display: none; }
  .nav-toggle { display: inline-flex; }

  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .span-3, .span-4, .span-5 { grid-column: span 6; }
  .span-8 { grid-column: span 12; }
}

@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-bottom__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 680px) {
  .grid { gap: 16px; }
  .span-3, .span-4, .span-5, .span-6 { grid-column: span 12; }
  .foot-cols { grid-template-columns: minmax(0, 1fr); }
  .command-bar__inner { gap: 10px; }
  .brand__tag { display: none; }
  .btn { padding: 11px 18px; }
  .section__title { font-size: clamp(26px, 8vw, 38px); }
}

@media (max-width: 420px) {
  .brand__glyph { width: 38px; height: 38px; border-radius: 13px; font-size: 13px; }
  .brand__name { font-size: 18px; }
  .nav-toggle__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .card:hover { transform: none; }
  .btn:hover { transform: none; }
}
