/* ============================================================
 * YosHub Docs — 固定深色品牌主题
 * 设计：动态纯黑星域 / 黑白分层 / 深蓝点缀
 * ============================================================ */

@font-face {
  font-family: "InterLocal";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("assets/fonts/inter-latin.woff2") format("woff2");
}

:root {
  /* 品牌主色 */
  --sakura: #315AA8;
  --sakura-deep: #2857A7;
  --sky: #24477F;
  --sky-deep: #6F8FCC;
  --violet: #1A376B;
  --violet-deep: #132F63;
  --mint: #315AA8;

  --grad-brand: linear-gradient(135deg, #2C5AA8 0%, #17366D 100%);
  --grad-soft: linear-gradient(90deg, rgba(40,87,167,.2), rgba(255,255,255,.02));
  --grad-hero: linear-gradient(145deg, rgba(10,11,14,.88) 0%, rgba(4,5,7,.84) 100%);

  /* 深色中性色 */
  --bg: #000000;
  --bg-2: #050506;
  --surface: rgba(8, 10, 13, 0.8);
  --surface-2: rgba(12, 14, 18, 0.84);
  --surface-3: #101217;
  --ink: #F7F7F8;
  --ink-2: #C6C8CC;
  --muted: #858991;
  --line: rgba(255, 255, 255, 0.11);
  --line-2: rgba(49, 90, 168, 0.58);
  --link: #7892C5;

  /* 语义色 */
  --green: #315AA8;
  --amber: #B6B8BD;
  --danger: #D4D6DA;

  /* 阴影 */
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --shadow-glow: none;

  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --sidebar-w: 280px;
  --toc-w: 200px;

  color-scheme: dark;
}

/* ---------- 基础 ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  box-shadow: none !important;
  text-shadow: none !important;
}
html { scroll-behavior: smooth; }
.space-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #000;
}
.space-backdrop canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: "InterLocal", "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
body.nav-open { overflow: hidden; }
a { color: var(--link); text-decoration: none; transition: color .2s ease; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
code, pre, kbd { font-family: "SF Mono", "JetBrains Mono", ui-monospace, Consolas, monospace; }
::selection { background: rgba(40,87,167,.42); color: #fff; }

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(49,90,168,.72); }

/* ---------- 顶部栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  border-bottom: 1px solid var(--line);
  transition: all .3s ease;
}
.topbar.scrolled { background: rgba(0, 0, 0, 0.94); box-shadow: var(--shadow-sm); }
.topbar.compact { transform: translateY(-100%); transition: transform .3s ease; }
.topbar-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  padding: 12px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: none;
  overflow: hidden;
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.brand-text strong { display: block; color: var(--ink); font-size: 16px; font-weight: 800; line-height: 1; }
.brand-text em { display: block; color: var(--sakura-deep); font-style: normal; font-size: 12px; font-weight: 700; line-height: 1; margin-top: 2px; }
.brand-text small { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; }

.topnav { display: flex; align-items: center; gap: 2px; flex: 1 1 auto; justify-content: center; }
.topnav a {
  padding: 6px 12px; border-radius: 8px;
  color: var(--ink-2); font-size: 13px; font-weight: 600;
  transition: all .2s ease;
}
.topnav a:hover { background: rgba(255,255,255,.055); color: var(--ink); text-decoration: none; }

.top-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); cursor: pointer;
  display: grid; place-items: center;
  transition: all .2s ease;
  backdrop-filter: blur(10px);
}
.icon-btn:hover { background: rgba(40,87,167,.22); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.nav-toggle { display: none; }

/* ---------- 布局 ---------- */
.layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--toc-w);
  max-width: 1400px; margin: 0 auto;
  gap: 0;
  padding: 0 20px;
}
.page { padding: 8px 28px 60px; min-width: 0; }

/* ---------- 侧边栏 ---------- */
.sidebar {
  position: sticky; top: 80px;
  align-self: start;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  padding: 20px 12px 20px 0;
  scrollbar-width: thin;
}
.sidebar-inner { display: flex; flex-direction: column; gap: 14px; }

.mascot-card {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  padding: 12px;
  background: rgba(4,5,7,.7);
  border-radius: var(--radius);
  box-shadow: none;
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.sidebar-logo {
  width: 48px; height: 48px; flex: 0 0 auto;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: none;
  object-fit: cover;
}
.mascot-bubble { font-size: 12px; color: var(--ink-2); line-height: 1.5; }
.mascot-bubble p { margin: 0 0 3px; }
.mascot-bubble strong { color: var(--sakura-deep); }
.mascot-tag {
  display: inline-block; margin-top: 3px;
  padding: 2px 8px; border-radius: 99px;
  background: rgba(40,87,167,.22);
  color: var(--ink-2);
  font-size: 10px; font-weight: 700;
}

.toc { display: flex; flex-direction: column; gap: 2px; }
.toc-item {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 8px;
  color: var(--ink-2); font-size: 13px; font-weight: 600;
  transition: all .2s ease;
  position: relative;
}
.toc-item .num {
  font-size: 10px; font-weight: 800;
  color: var(--muted);
  background: rgba(255,255,255,.045);
  padding: 2px 6px; border-radius: 6px;
  flex: 0 0 auto;
}
.toc-item:hover { background: rgba(255,255,255,.045); color: var(--ink); text-decoration: none; transform: translateX(2px); }
.toc-item.active {
  background: rgba(35,72,142,.38);
  color: var(--ink);
  font-weight: 700;
}

.sidebar-foot {
  margin-top: auto; padding: 12px;
  background: rgba(4,5,7,.72);
  border-radius: var(--radius);
  font-size: 11px; color: var(--muted);
  border: 1px solid var(--line);
}
.sidebar-foot p { margin: 0 0 6px; }
.sidebar-foot .btn { width: 100%; justify-content: center; }
.sidebar-foot .side-cta { margin-bottom: 10px; }
.sidebar-foot .side-cta strong { display: block; font-size: 12px; color: var(--ink); margin-bottom: 2px; }
.sidebar-foot .side-cta a { font-size: 12px; font-weight: 600; }
.sidebar-foot .side-cta small { display: block; font-size: 10px; color: var(--muted); margin-top: 1px; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 28px; align-items: center;
  padding: 40px 32px;
  margin: 20px 0 28px;
  background: var(--grad-hero);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(12px);
}

.hero-badge {
  display: inline-block; padding: 4px 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  color: var(--ink-2);
  border-radius: 99px;
  font-size: 11px; font-weight: 700;
  margin-bottom: 14px;
  backdrop-filter: blur(8px);
}
.hero h1 {
  margin: 0 0 12px;
  font-size: 42px;
  line-height: 1.1; font-weight: 900;
  letter-spacing: 0;
  color: var(--ink);
}
.hero-title-line { display: block; }
.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}
.hero-sub { margin: 0 0 20px; font-size: 15px; color: var(--ink-2); max-width: 500px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; }
.hero-tags li {
  padding: 4px 10px; border-radius: 99px;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line);
  font-size: 11px; font-weight: 600; color: var(--ink-2);
  backdrop-filter: blur(8px);
}

.hero-art {
  position: relative;
  display: grid; place-items: center;
  min-height: 320px;
}
.hero-logo {
  position: relative;
  z-index: 2;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-glow);
  animation: none;
  transform: none;
  object-fit: cover;
  display: block;
}
.hero-float-card {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(48,86,158,.5);
  border-radius: 18px;
  background: rgba(7,10,15,.94);
  color: var(--ink);
  box-shadow: var(--shadow-md);
  font-size: 12px;
  animation: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-float-icon { font-size: 20px; line-height: 1; }
.hero-float-card strong { display: block; color: var(--ink); font-size: 12px; font-weight: 700; white-space: nowrap; }
.hero-float-card small { display: block; color: var(--muted); font-size: 10px; white-space: nowrap; }
.hero-float-card-cc { top: 8%; left: 0; }
.hero-float-card-models { top: 50%; right: 0; transform: translateY(-50%); }
.hero-float-card-vscode { bottom: 6%; left: 10%; }

@keyframes hero-logo-float {
  0%, 100% { transform: translate3d(0,0,0) rotate(-2deg); }
  50% { transform: translate3d(0,-12px,0) rotate(2deg); }
}
@keyframes hero-card-drift {
  0%, 100% { transform: translate3d(0,0,0) rotate(0); }
  50% { transform: translate3d(0,-8px,0) rotate(1.5deg); }
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 16px; border-radius: 10px;
  font-size: 13px; font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  text-decoration: none;
  font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,.34), 0 0 0 1px rgba(49,90,168,.3);
}
.btn-primary:hover { box-shadow: 0 12px 30px rgba(0,0,0,.42), 0 0 0 1px rgba(75,111,180,.46); color: #fff; }
.btn-ghost {
  background: rgba(255,255,255,.045);
  color: var(--ink);
  border-color: var(--line);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,.08); color: var(--ink); border-color: var(--line-2); }
.btn-mini { padding: 5px 10px; font-size: 11px; border-radius: 6px; }
.btn-sm { padding: 6px 12px; font-size: 11px; }
.inline-copy {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--link);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.inline-copy:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 文档区块 ---------- */
.doc-section {
  margin-top: 18px; padding: 28px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(12px);
  scroll-margin-top: 80px;
  box-shadow: var(--shadow-sm);
}
.section-head { margin-bottom: 18px; }
.section-head h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.2; letter-spacing: 0;
  font-weight: 800;
  display: flex; align-items: center; gap: 10px;
}
.sec-emoji { font-size: .85em; filter: none; }
.section-head p { margin: 10px 0 0; color: var(--muted); font-size: 14px; max-width: 700px; }

.doc-section h3 {
  margin: 24px 0 10px; font-size: 17px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
  color: var(--ink);
}
.doc-section h4 { margin: 20px 0 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.doc-section p { color: var(--ink-2); font-size: 14px; }
.doc-section code { background: rgba(40,87,167,.18); padding: 2px 5px; border-radius: 4px; font-size: .85em; color: var(--link); }
.doc-section ul, .doc-section ol { color: var(--ink-2); font-size: 14px; }

/* ---------- 购买后使用流程 ---------- */
.purchase-flow-section {
  padding: 26px;
  border-color: var(--line);
  background: rgba(3,4,6,.78);
  box-shadow: var(--shadow-md);
}

.support-banner {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
  box-shadow: none;
  overflow: hidden;
  backdrop-filter: blur(12px);
  scroll-margin-top: 80px;
}

.support-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(40,87,167,.28), rgba(20,46,96,.34));
  border: 1px solid var(--line);
  font-size: 22px;
  box-shadow: var(--shadow-sm);
}

.support-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 24px;
  padding: 3px 9px;
  margin-bottom: 6px;
  border-radius: 99px;
  background: rgba(255,255,255,.045);
  color: var(--ink-2);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .2px;
}

.support-copy strong {
  display: block;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.45;
  font-weight: 900;
}

.support-group-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  font-family: "SF Mono", "JetBrains Mono", ui-monospace, Consolas, monospace;
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--sakura-deep), var(--violet-deep));
  border-radius: 10px;
  padding: 0 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,.3);
  white-space: nowrap;
}

.support-copy p {
  margin: 6px 0 0;
  color: var(--ink-2);
  font-size: 13px;
}

.support-actions {
  display: grid;
  grid-template-columns: repeat(2, 142px);
  grid-auto-rows: 46px;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.join-group-btn {
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  justify-content: center;
  padding: 0 16px;
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

.purchase-panel {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.025);
  box-shadow: none;
}

.purchase-panel-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
  text-align: left;
}

.purchase-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 16px;
  background: var(--grad-brand);
  box-shadow: var(--shadow-glow);
  font-size: 23px;
}

.purchase-panel-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.15;
  font-weight: 900;
}

.purchase-panel-head p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.purchase-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  color: var(--ink-2);
}

.purchase-steps li {
  position: relative;
  min-height: 122px;
  padding: 16px 15px 15px 58px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  text-align: left;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.purchase-steps li:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  box-shadow: var(--shadow-md);
}

.purchase-step-action {
  position: absolute;
  inset: 0;
  display: block;
  padding: 16px 15px 15px 58px;
  color: inherit;
  text-decoration: none;
}

.purchase-step-action:hover {
  text-decoration: none;
}

.purchase-step-action:hover .purchase-step-link {
  background: rgba(40,87,167,.24);
  color: var(--ink);
}

.purchase-steps .step-no {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  position: absolute;
  left: 15px;
  top: 17px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: var(--shadow-glow);
}

.purchase-steps strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.purchase-step-link {
  display: inline-block;
  margin-top: 5px;
  padding: 2px 7px;
  border-radius: 7px;
  background: rgba(40,87,167,.18);
  border: 1px solid var(--line-2);
  color: var(--link);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.purchase-steps p {
  margin: 6px 0 0;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.45;
}

.purchase-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: linear-gradient(135deg, rgba(40,87,167,.18), rgba(255,255,255,.02));
}

.purchase-note strong {
  display: block;
  color: var(--green);
  font-size: 16px;
  font-weight: 900;
  white-space: nowrap;
}

.purchase-note p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

/* ---------- 内容始终可见：避免长章节达到交叉比例前保持透明 ---------- */
.reveal,
.reveal.revealed {
  opacity: 1;
  transform: none;
  transition: none;
}

/* ---------- 图片网格 ---------- */
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.image-grid.single {
  grid-template-columns: 1fr;
  max-width: 600px;
}

.image-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.image-grid img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform .3s ease;
  cursor: zoom-in;
}

.image-grid figure:hover img {
  transform: scale(1.02);
}

.image-grid figcaption {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  background: rgba(255,255,255,.025);
}

/* ---------- 元信息卡 ---------- */
.doc-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px; margin-top: 16px;
}
.doc-meta > div {
  padding: 12px 14px;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all .2s ease;
  backdrop-filter: blur(8px);
}
.doc-meta > div:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--sakura); }
.doc-meta dt { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; }
.doc-meta dd { margin: 6px 0 0; color: var(--ink); font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }

/* ---------- Callout ---------- */
.callout {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px 16px; border-radius: var(--radius);
  margin: 14px 0;
  border: 1px solid var(--line);
  background: rgba(5,6,8,.7);
  backdrop-filter: blur(8px);
}
.callout > div { min-width: 0; }
.callout-ico { font-size: 18px; flex: 0 0 auto; line-height: 1; }
.callout strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 13px; }
.callout p { margin: 0; color: var(--ink-2); font-size: 13px; }
.callout-info,
.callout-tip,
.callout-warn {
  border-color: var(--line);
  background: rgba(5,6,8,.7);
}

/* ---------- 步骤列表 ---------- */
.step-list {
  list-style: none; counter-reset: step;
  padding: 0; margin: 12px 0;
  display: grid; gap: 6px;
}
.step-list li {
  position: relative; padding: 10px 14px 10px 48px;
  background: rgba(255,255,255,.022);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-2);
  counter-increment: step;
  transition: all .2s ease;
  font-size: 13px;
}
.step-list li:hover { transform: translateX(3px); border-color: var(--sakura); }
.step-list li::before {
  content: counter(step);
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  width: 26px; height: 26px;
  display: grid; place-items: center;
  background: var(--grad-brand);
  color: #fff; font-weight: 800; font-size: 12px;
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}
.step-list li b { color: var(--ink); }
.step-list li kbd, .doc-section kbd {
  display: inline-block;
  padding: 2px 6px; border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 11px; font-family: inherit; font-weight: 600;
  color: var(--ink);
}

/* ---------- 下载面板 ---------- */
.download-panel {
  margin: 14px 0;
  background: #050608;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  isolation: isolate;
}
.os-tabs {
  display: flex; gap: 0;
  background: #030405;
}
.os-tab {
  flex: 1; padding: 10px 12px;
  border: 0; background: transparent;
  color: var(--muted); font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all .2s ease;
}
.os-tab:hover { color: var(--ink); background: rgba(255,255,255,.04); }
.os-tab.active {
  color: var(--ink);
  background: #102448;
}
.os-panel { display: none; padding: 16px; animation: fade-up .3s ease; }
.os-panel.active { display: block; }
.os-panel h3 { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 下载卡 ---------- */
.dl-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.dl-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: all .25s ease;
  text-decoration: none;
  color: var(--ink);
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
}
.dl-card:hover {
  transform: translateY(-4px);
  border-color: var(--sakura);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.dl-ic { font-size: 20px; }
.dl-card strong { font-size: 13px; font-weight: 700; color: var(--ink); }
.dl-card small { font-size: 11px; color: var(--muted); font-family: monospace; }
.dl-card em { font-size: 11px; color: var(--ink-2); font-style: normal; }

/* ---------- URL 卡片 ---------- */
.url-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px; margin: 14px 0;
}
.url-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all .25s ease;
  backdrop-filter: blur(10px);
}
.url-card:hover {
  transform: translateY(-3px);
  border-color: var(--sakura);
  box-shadow: var(--shadow-md);
}
.url-card.primary {
  border-color: var(--sakura);
  background: linear-gradient(135deg, rgba(40,87,167,.16), rgba(255,255,255,.02));
}
.flag { font-size: 24px; flex: 0 0 auto; }
.url-card-body { flex: 1; min-width: 0; }
.url-card-body strong { display: block; font-size: 13px; font-weight: 700; color: var(--ink); }
.url-card-body code {
  display: block; margin: 4px 0;
  font-size: 12px; color: var(--sakura-deep);
  background: rgba(40,87,167,.18);
  padding: 4px 8px; border-radius: 6px;
  word-break: break-all;
}
.url-card-body small { display: block; font-size: 11px; color: var(--muted); }

/* ---------- 插件卡 ---------- */
.plugin-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px; margin: 14px 0;
}
.plugin-card {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all .25s ease;
  backdrop-filter: blur(10px);
}
.plugin-card:hover {
  transform: translateY(-3px);
  border-color: var(--sakura);
  box-shadow: var(--shadow-md);
}
.pl-ic { font-size: 24px; display: block; margin-bottom: 8px; }
.plugin-card strong { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.plugin-card p { margin: 0 0 10px; font-size: 12px; color: var(--muted); }
.pl-btns { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- 代码块 ---------- */
.code-block {
  position: relative;
  margin: 10px 0;
  background: rgba(17, 23, 32, .95);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.code-block pre {
  margin: 0; padding: 14px 16px;
  max-width: 100%; min-width: 0;
  overflow-x: auto;
  font-size: 12px; line-height: 1.6;
  color: #DCE7F5;
}
.code-block pre code { white-space: pre; }
.code-block .copy-btn {
  position: absolute; top: 8px; right: 8px;
  padding: 4px 10px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 6px;
  color: #fff; font-size: 10px; font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  z-index: 1;
}
.code-block .copy-btn:hover { background: rgba(255,255,255,.2); }

/* ---------- Q&A ---------- */
.qa {
  margin: 8px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all .2s ease;
  background: var(--surface);
}
.qa:hover { border-color: var(--sakura); }
.qa summary {
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  font-size: 13px;
  transition: background .2s ease;
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before { content: "▸ "; color: var(--sakura); }
.qa[open] summary::before { content: "▾ "; }
.qa summary:hover { background: rgba(255,255,255,.035); }
.qa p { padding: 0 16px 12px; margin: 0; color: var(--ink-2); font-size: 13px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; margin: 14px 0; }
.doc-section table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.doc-section th {
  text-align: left;
  padding: 10px 12px;
  background: rgba(255,255,255,.035);
  border-bottom: 2px solid var(--line);
  font-weight: 700;
  color: var(--ink);
  font-size: 12px;
}
.doc-section td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}
.doc-section tr:hover td { background: rgba(255,255,255,.025); }

/* ---------- 列表 ---------- */
.doc-list {
  padding-left: 20px;
  margin: 8px 0;
}
.doc-list li { margin: 4px 0; }

/* ---------- Footer ---------- */
.page-foot {
  margin-top: 40px;
  padding: 24px 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.page-foot .heart { color: var(--sakura); }

/* ---------- 搜索浮层 ---------- */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(8px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 20vh;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.search-modal.active {
  display: flex !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.search-box {
  width: 90%; max-width: 520px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  backdrop-filter: blur(20px);
}
.search-box input {
  width: 100%; padding: 14px 16px;
  border: none; outline: none;
  background: transparent;
  font-size: 15px; color: var(--ink);
  font-family: inherit;
}
.search-box input::placeholder { color: var(--muted); }
.search-results {
  max-height: 320px; overflow-y: auto;
  border-top: 1px solid var(--line);
  transition: opacity 200ms ease, transform 200ms ease;
}
.search-results .hit {
  display: block; padding: 10px 16px;
  color: var(--ink-2); font-size: 13px;
  transition: background .15s ease;
  text-decoration: none;
}
.search-results .hit:hover { background: rgba(255,255,255,.04); }
.search-results .hit strong { display: block; color: var(--ink); font-size: 13px; margin-bottom: 2px; }
.search-results .hit span { font-size: 12px; color: var(--muted); }
.search-results mark { background: rgba(40,87,167,.42); color: #fff; border-radius: 2px; padding: 0 2px; }
.search-results .empty { padding: 20px; text-align: center; color: var(--muted); font-size: 13px; }

/* ---------- 图片灯箱 ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.8);
  display: none;
  align-items: center; justify-content: center;
  cursor: zoom-out;
  pointer-events: none;
}

.lightbox.active {
  display: flex !important;
  pointer-events: auto;
}

.lightbox img { max-width: 90%; max-height: 90%; border-radius: var(--radius); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  padding: 8px 16px;
  background: #F5F7FA;
  color: #050607;
  box-shadow: var(--shadow-md);
  border-radius: 99px;
  font-size: 12px; font-weight: 600;
  opacity: 0; transition: all .3s ease;
  z-index: 400;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 右侧 ToC ---------- */
.right-toc {
  position: sticky; top: 80px;
  align-self: start;
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  padding: 20px 0 20px 12px;
  font-size: 12px;
}
.right-toc h4 { margin: 0 0 10px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.right-toc ul { list-style: none; padding: 0; margin: 0; }
.right-toc li { margin: 2px 0; }
.right-toc a {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 8px; border-radius: 6px;
  color: var(--muted); font-size: 11px;
  transition: all .2s ease;
  text-decoration: none;
}
.right-toc a:hover { background: rgba(255,255,255,.04); color: var(--ink); text-decoration: none; }
.rtoc-emoji { font-size: 10px; }
.sidebar-backdrop { display: none; }

/* ---------- 移动端适配 ---------- */
@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed; left: -300px; top: 0; bottom: 0;
    width: 280px; z-index: 150;
    background: var(--surface);
    backdrop-filter: blur(20px);
    transition: left .3s ease;
    padding: 20px;
    border-right: 1px solid var(--line);
  }
  .sidebar.open { left: 0; }
  .sidebar-backdrop {
    display: block;
    position: fixed; inset: 0; z-index: 140;
    background: rgba(0,0,0,.3);
    opacity: 0; pointer-events: none;
    transition: opacity .3s ease;
  }
  .sidebar.open + .sidebar-backdrop { opacity: 1; pointer-events: auto; }
  .nav-toggle { display: grid; }
  .right-toc { display: none; }
  .topnav { display: none; }
  .hero { grid-template-columns: 1fr; padding: 28px 20px; }
  .hero-art { display: none; }
  .page { padding: 8px 16px 40px; }
  .doc-section { padding: 20px 18px; }
  .purchase-flow-section { padding: 18px; }
  .support-banner { grid-template-columns: 1fr; text-align: center; }
  .support-icon, .support-badge { margin-left: auto; margin-right: auto; }
  .support-actions { justify-content: center; }
  .purchase-panel { padding: 18px; }
  .purchase-panel-head { justify-content: flex-start; }
  .purchase-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .purchase-note { align-items: flex-start; flex-direction: column; }
  .purchase-note strong { white-space: normal; }
  .purchase-note p { text-align: left; }
  .url-cards { grid-template-columns: 1fr; }
  .dl-grid { grid-template-columns: 1fr; }
  .plugin-cards { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar-inner { padding: 10px 16px; }
  .brand-text small { display: none; }
  .hero h1 { font-size: 24px; }
  .section-head h2, .purchase-panel-head h2 { font-size: 24px; }
  .support-copy strong { font-size: 17px; }
  .support-actions {
    width: min(100%, 298px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .support-group-number, .join-group-btn { font-size: 16px; }
  .doc-meta { grid-template-columns: 1fr 1fr; }
  .purchase-panel-head { align-items: flex-start; }
  .purchase-mark { width: 42px; height: 42px; border-radius: 14px; }
  .purchase-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .purchase-steps li { min-height: 116px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 420px) {
  .purchase-steps { grid-template-columns: 1fr; }
}

/* ---------- 链接列表样式 ---------- */
.doc-list a {
  color: var(--link);
  transition: color .2s ease;
}
.doc-list a:hover {
  color: var(--sakura-deep);
}

/* ---------- 滚动到顶部按钮 ---------- */
.to-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grad-brand);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-glow);
  opacity: 0; transform: translateY(20px);
  transition: all .3s ease;
  z-index: 100;
}
.to-top.visible { opacity: 1; transform: translateY(0); }
.to-top:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(25,54,111,.62); }
.to-top svg { width: 18px; height: 18px; }
