/* =========================================================
   MANBET 主站 · 共享样式表 /assets/site.css
   深空蓝基底 + 奶油实色层 + 霓虹青／活力橙强调
   ========================================================= */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

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

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

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

button, input, select, textarea { font: inherit; color: inherit; }

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

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

/* ---------- 2. 设计令牌 ---------- */
:root {
  --void: #070B1C;
  --deep: #0F1733;
  --cream: #F4ECDD;
  --cream-warm: #FBF6EC;
  --brown: #241C18;
  --cyan: #21E6D2;
  --orange: #FF7A2F;
  --red: #D8422B;
  --violet: #7A5CFF;
  --mint: #6FE3A8;
  --steel: #3A4A6B;

  --ink: #FBF6EC;
  --ink-dim: rgba(244, 236, 221, 0.66);
  --ink-faint: rgba(244, 236, 221, 0.42);
  --line: rgba(58, 74, 107, 0.55);
  --line-soft: rgba(58, 74, 107, 0.32);
  --glass: rgba(15, 23, 51, 0.62);
  --glass-strong: rgba(7, 11, 28, 0.9);

  --font-display: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas,
    "Liberation Mono", "Courier New", monospace;

  --w-max: 1360px;
  --w-wide: 1600px;
  --measure: 40em;
  --pad-x: clamp(18px, 4vw, 48px);
  --header-h: 68px;
  --radius: 10px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-deep: 0 24px 60px -34px rgba(0, 0, 0, 0.9);
}

/* ---------- 3. 基础排版 ---------- */
body {
  min-height: 100vh;
  background-color: var(--void);
  background-image:
    radial-gradient(1120px 640px at 10% -10%, rgba(33, 230, 210, 0.10), transparent 62%),
    radial-gradient(940px 580px at 94% 2%, rgba(122, 92, 255, 0.13), transparent 60%),
    linear-gradient(180deg, #070B1C 0%, #0A1027 56%, #070B1C 100%);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.85;
  font-weight: 400;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 { font-size: clamp(32px, 5.2vw, 56px); font-weight: 900; }
h2 { font-size: clamp(26px, 3.6vw, 40px); }
h3 { font-size: clamp(20px, 2.4vw, 32px); }
h4 { font-size: clamp(18px, 2vw, 24px); }

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

::selection { background: var(--cyan); color: #06131A; }

/* ---------- 4. 布局工具 ---------- */
.container {
  width: 100%;
  max-width: var(--w-max);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.container-wide {
  width: 100%;
  max-width: var(--w-wide);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

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

.stack { display: flex; flex-direction: column; gap: clamp(14px, 2vw, 24px); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.index-num {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--orange);
}

/* ---------- 5. 跳至主内容 ---------- */
.skip-link {
  position: fixed;
  left: 14px;
  top: -90px;
  z-index: 300;
  padding: 11px 18px;
  background: var(--orange);
  color: #1A0E06;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-radius: 6px;
  box-shadow: 0 12px 26px -12px rgba(255, 122, 47, 0.8);
  transition: top 0.22s var(--ease);
}

.skip-link:focus { top: 14px; }

/* ---------- 6. 头部 · 紧凑命令栏 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(7, 11, 28, 0.88);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.28s var(--ease);
}

.site-header[data-stuck] { box-shadow: 0 18px 40px -30px rgba(0, 0, 0, 0.95); }

.cmd-bar {
  width: 100%;
  max-width: var(--w-wide);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 32px);
  transition: min-height 0.28s var(--ease);
}

.site-header[data-stuck] .cmd-bar { min-height: 56px; }

.cmd-rail {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--line-soft);
  overflow: hidden;
}

.cmd-rail-progress {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--violet) 55%, var(--orange) 100%);
  box-shadow: 0 0 14px rgba(33, 230, 210, 0.6);
  transition: width 0.12s linear;
}

/* 品牌 */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand-mark {
  position: relative;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(33, 230, 210, 0.7);
  border-radius: 7px;
  background: linear-gradient(140deg, rgba(33, 230, 210, 0.22), rgba(122, 92, 255, 0.2));
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(244, 236, 221, 0.28);
  border-radius: 3px;
  pointer-events: none;
}

.brand-mark-dot {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--orange);
  box-shadow: 0 0 12px rgba(255, 122, 47, 0.85);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--cream-warm);
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--cyan);
  white-space: nowrap;
  opacity: 0.85;
}

.brand--foot .brand-mark { width: 34px; height: 34px; }
.brand--foot .brand-name { font-size: 19px; }

/* 导航 */
.nav { flex: 1 1 auto; min-width: 0; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}

.nav-item { flex: 0 0 auto; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 6px;
  border-left: 2px solid transparent;
  color: var(--ink-dim);
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease),
    border-color 0.18s var(--ease);
}

.nav-idx {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--steel);
  transition: color 0.18s var(--ease);
}

.nav-label { display: inline-block; }

.nav-link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.26s var(--ease);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--cream-warm);
  background: rgba(33, 230, 210, 0.07);
}

.nav-link:hover .nav-idx,
.nav-link:focus-visible .nav-idx { color: var(--cyan); }

.nav-link:hover::after,
.nav-link:focus-visible::after { transform: scaleX(1); }

.nav-link[aria-current="page"] {
  color: var(--cream-warm);
  background: rgba(255, 122, 47, 0.12);
  border-left-color: var(--orange);
}

.nav-link[aria-current="page"] .nav-idx { color: var(--orange); }

.nav-link[aria-current="page"]::after {
  background: var(--orange);
  transform: scaleX(1);
}

/* 命令栏工具区 */
.cmd-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.cmd-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid rgba(111, 227, 168, 0.34);
  border-radius: 999px;
  background: rgba(111, 227, 168, 0.08);
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.cmd-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 9px var(--mint);
  animation: chip-breathe 2.8s ease-in-out infinite;
}

@keyframes chip-breathe {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

/* 移动导航按钮 */
.nav-toggle {
  display: none;
  width: 44px;
  height: 40px;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 51, 0.75);
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.nav-toggle:hover { border-color: rgba(33, 230, 210, 0.6); }

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--cyan);
  transition: transform 0.26s var(--ease), opacity 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before { content: ""; position: absolute; left: 0; top: -6px; }
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: translateY(6px) rotate(45deg);
  background: var(--orange);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  transform: translateY(-6px) rotate(-45deg);
  background: var(--orange);
}

/* ---------- 7. 页脚 ---------- */
.site-footer {
  position: relative;
  margin-top: clamp(72px, 10vw, 150px);
  background: linear-gradient(180deg, #0A1027 0%, #070B1C 100%);
  border-top: 1px solid var(--line);
  color: var(--ink-dim);
}

.foot-rule {
  max-width: var(--w-wide);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  height: 26px;
  display: flex;
  align-items: flex-end;
}

.foot-rule::before {
  content: "";
  flex: 1 1 auto;
  height: 11px;
  background-image: linear-gradient(90deg, var(--steel) 0 1px, transparent 1px 100%);
  background-size: 16px 100%;
  opacity: 0.6;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.foot-inner {
  max-width: var(--w-wide);
  margin-inline: auto;
  padding: clamp(26px, 3.6vw, 48px) var(--pad-x) 30px;
  display: grid;
  grid-template-columns: minmax(250px, 1.1fr) 2fr;
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
}

.foot-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.foot-line {
  max-width: 30ch;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--cream);
}

.foot-note {
  padding: 6px 11px;
  border: 1px dashed rgba(111, 227, 168, 0.34);
  border-radius: 5px;
  color: var(--mint);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 44px);
}

.foot-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.foot-title::after {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--red);
}

.foot-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foot-list a,
.foot-list span {
  display: inline-block;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-dim);
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}

.foot-list a:hover,
.foot-list a:focus-visible {
  color: var(--cyan);
  transform: translateX(5px);
}

.foot-list-plain span { color: var(--ink-faint); }

.foot-legal {
  max-width: var(--w-wide);
  margin-inline: auto;
  padding: 18px var(--pad-x) 34px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 26px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.foot-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.foot-legal-links a { color: var(--ink-dim); transition: color 0.18s var(--ease); }
.foot-legal-links a:hover { color: var(--cyan); }

.foot-meta { color: var(--ink-faint); }

/* ---------- 8. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease), border-color 0.18s var(--ease),
    color 0.18s var(--ease);
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange), #E85E17);
  color: #1A0E06;
  box-shadow: 0 8px 24px -10px rgba(255, 122, 47, 0.7);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -12px rgba(255, 122, 47, 0.85);
}

.btn-ghost {
  background: rgba(33, 230, 210, 0.06);
  border-color: rgba(33, 230, 210, 0.42);
  color: var(--cyan);
}

.btn-ghost:hover {
  background: rgba(33, 230, 210, 0.14);
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.btn-cream {
  background: var(--cream);
  border-color: rgba(36, 28, 24, 0.16);
  color: var(--brown);
}

.btn-cream:hover {
  background: var(--cream-warm);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -16px rgba(0, 0, 0, 0.9);
}

.btn-sm { padding: 8px 15px; font-size: 13px; }

/* ---------- 9. 面包屑 ---------- */
.breadcrumb {
  padding: 20px 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }

.breadcrumb li + li::before {
  content: "/";
  color: var(--steel);
}

.breadcrumb a { color: var(--ink-dim); transition: color 0.18s var(--ease); }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb [aria-current="page"] { color: var(--orange); }

/* ---------- 10. 正文容器 ---------- */
.prose { max-width: var(--measure); }

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

.prose h2 {
  margin: 1.9em 0 0.62em;
  font-size: clamp(24px, 3vw, 32px);
}

.prose h3 {
  margin: 1.6em 0 0.5em;
  font-size: clamp(19px, 2.2vw, 24px);
}

.prose p {
  margin-bottom: 1.2em;
  line-height: 1.85;
  color: rgba(244, 236, 221, 0.82);
}

.prose p:last-child { margin-bottom: 0; }

.prose a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(33, 230, 210, 0.4);
  transition: border-color 0.18s var(--ease);
}

.prose a:hover { border-bottom-color: var(--cyan); }

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.4em;
}

.prose ul { list-style: none; }

.prose ul li {
  position: relative;
  margin-bottom: 0.55em;
  line-height: 1.8;
  color: rgba(244, 236, 221, 0.82);
}

.prose ul li::before {
  content: "";
  position: absolute;
  left: -1.1em;
  top: 0.9em;
  width: 7px;
  height: 1px;
  background: var(--orange);
}

.prose ol { list-style: decimal; }

.prose ol li {
  margin-bottom: 0.55em;
  line-height: 1.8;
  color: rgba(244, 236, 221, 0.82);
}

.prose ol li::marker {
  color: var(--orange);
  font-family: var(--font-mono);
  font-weight: 500;
}

/* ---------- 11. 内容层：奶油实色 / 玻璃 / 框景 ---------- */
.panel-cream {
  padding: clamp(20px, 2.6vw, 36px);
  background: var(--cream);
  border: 1px solid rgba(36, 28, 24, 0.12);
  border-radius: var(--radius);
  color: var(--brown);
  box-shadow: var(--shadow-deep);
}

.panel-cream h2,
.panel-cream h3,
.panel-cream h4 { color: var(--brown); }

.panel-cream p,
.panel-cream li { color: rgba(36, 28, 24, 0.82); }

.panel-cream a { color: #9E321F; border-bottom: 1px solid rgba(158, 50, 31, 0.4); }

.panel-cream .eyebrow,
.panel-cream .index-num { color: #9E321F; }

.panel-cream--warm { background: var(--cream-warm); }

.glass {
  padding: clamp(18px, 2.4vw, 28px);
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.frame {
  position: relative;
  padding: clamp(20px, 3vw, 40px);
  background: rgba(10, 16, 39, 0.55);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.frame::before,
.frame::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  pointer-events: none;
}

.frame::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
  border-top-left-radius: 14px;
}

.frame::after {
  right: -1px;
  bottom: -1px;
  border-bottom: 2px solid var(--orange);
  border-right: 2px solid var(--orange);
  border-bottom-right-radius: 14px;
}

/* 状态标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  border: 1px solid var(--line);
  color: var(--ink-dim);
}

.tag--live { border-color: rgba(33, 230, 210, 0.4); color: var(--cyan); }
.tag--ready { border-color: rgba(111, 227, 168, 0.4); color: var(--mint); }
.tag--tool { border-color: rgba(122, 92, 255, 0.45); color: #A996FF; }
.tag--alert { border-color: rgba(216, 66, 43, 0.45); color: #F0836F; }

/* ---------- 12. 图片 / 视觉容器 ---------- */
.media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 92% at 18% 8%, rgba(33, 230, 210, 0.16), transparent 62%),
    radial-gradient(110% 90% at 88% 92%, rgba(122, 92, 255, 0.18), transparent 60%),
    linear-gradient(150deg, #0F1733 0%, #070B1C 72%);
}

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

.media-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(58, 74, 107, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 74, 107, 0.5) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(85% 85% at 50% 50%, #000, transparent);
  mask-image: radial-gradient(85% 85% at 50% 50%, #000, transparent);
}

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

/* ---------- 13. 动效协议 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.62s var(--ease), transform 0.62s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

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

/* ---------- 14. 返回顶部 ---------- */
.to-top {
  position: fixed;
  right: clamp(14px, 2.4vw, 32px);
  bottom: clamp(14px, 2.4vw, 32px);
  z-index: 110;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(33, 230, 210, 0.45);
  background: rgba(15, 23, 51, 0.92);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease),
    visibility 0.24s, background-color 0.2s var(--ease);
}

.to-top[data-visible] {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover { background: rgba(33, 230, 210, 0.18); }

/* ---------- 15. 焦点可见 ---------- */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

.panel-cream :focus-visible { outline-color: #9E321F; }

/* ---------- 16. 减少动态效果 ---------- */
@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;
  }

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

  .cmd-rail-progress { transition: none; }
}

/* ---------- 17. 响应式 ---------- */
@media (max-width: 1240px) {
  .cmd-chip { display: none; }
}

@media (max-width: 1080px) {
  :root { --header-h: 62px; }

  .brand-sub { display: none; }
  .nav-toggle { display: inline-flex; }

  .nav {
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    bottom: 0;
    padding: 22px var(--pad-x) 48px;
    background: rgba(7, 11, 28, 0.97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-top: 1px solid var(--line);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.24s var(--ease), transform 0.24s var(--ease),
      visibility 0.24s;
  }

  .nav[data-open] {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-link {
    justify-content: flex-start;
    gap: 12px;
    padding: 15px 14px;
    font-size: 17px;
    border-radius: 6px;
    border-left: 2px solid transparent;
  }

  .nav-link::after { display: none; }

  .nav-idx { font-size: 12px; }

  .nav-link[aria-current="page"] { border-left-color: var(--orange); }

  .to-top { width: 44px; height: 44px; }
}

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

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

@media (max-width: 560px) {
  :root {
    --pad-x: 18px;
    --header-h: 58px;
  }

  body { font-size: 15px; }

  .foot-grid { grid-template-columns: 1fr; }
  .foot-legal { flex-direction: column; align-items: flex-start; }
  .foot-legal-links { gap: 14px; }
  .cmd-bar { gap: 10px; }
  .brand-name { font-size: 15px; letter-spacing: 0.1em; }
  .brand-mark { width: 26px; height: 26px; }
  .btn-sm { padding: 7px 12px; font-size: 12.5px; }
}
