/* ==========================================================================
   AI 效率手册 — 主样式表
   设计系统来源：ui-ux-pro-max（FAQ/Documentation Landing + Minimalism & Swiss）
   零外部依赖：不加载任何 CDN 字体 / 框架，国内与离线双击均可正常渲染
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  /* 中性底层（Swiss 灰阶） */
  --color-background: #F8FAFC;
  --color-surface: #FFFFFF;
  --color-foreground: #1E293B;
  --color-muted: #EAEFF3;
  --color-muted-foreground: #475569;
  --color-border: #E2E8F0;
  --color-border-strong: #CBD5E1;

  /* 交互色 */
  --color-accent: #2563EB;
  --color-accent-hover: #1D4ED8;
  --color-accent-soft: #EFF5FF;
  --color-on-accent: #FFFFFF;
  --color-ring: #2563EB;

  /* 四大模块识别色（700 级，保证 4.5:1 文字对比度） */
  --hue-gongwen: #1D4ED8;
  --hue-ppt: #B45309;
  --hue-chart: #0F766E;
  --hue-tutorial: #6D28D9;

  /* 排版 */
  --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
    "Source Han Sans SC", "Noto Sans CJK SC", system-ui, -apple-system,
    "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Code",
    "JetBrains Mono", Consolas, monospace;

  /* 间距（8px 栅格，营销/文档站偏宽松 24-96px） */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, .08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, .12);

  --nav-height: 64px;
  --max-width: 1080px;
}

[data-theme="dark"] {
  --color-background: #0B1220;
  --color-surface: #121A2B;
  --color-foreground: #E8EEF7;
  --color-muted: #1A2438;
  --color-muted-foreground: #A9B6CC;
  --color-border: #22304A;
  --color-border-strong: #2E405E;

  --color-accent: #60A5FA;
  --color-accent-hover: #93C5FD;
  --color-accent-soft: #16233A;
  --color-on-accent: #0B1220;
  --color-ring: #60A5FA;

  --hue-gongwen: #93B4FF;
  --hue-ppt: #F5B95C;
  --hue-chart: #5EEAD4;
  --hue-tutorial: #C4B5FD;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, .45);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, .55);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 700; letter-spacing: .01em; }
p { margin: 0; }
ul, ol { margin: 0; }
a { color: var(--color-accent); text-decoration: none; cursor: pointer; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
:focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ---------- 3. Layout ---------- */
.container { width: min(var(--max-width), 92vw); margin-inline: auto; }
.section { padding-block: var(--sp-8); }
.section--tight { padding-block: var(--sp-7); }
.stack-2 > * + * { margin-top: var(--sp-2); }
.stack-3 > * + * { margin-top: var(--sp-3); }
.stack-5 > * + * { margin-top: var(--sp-5); }
.prose { max-width: 68ch; }
.muted { color: var(--color-muted-foreground); }
.small { font-size: 14px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--color-muted-foreground);
}
.eyebrow::before {
  content: ""; width: 24px; height: 2px; background: var(--color-accent); border-radius: 2px;
}

/* ---------- 4. Nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-height);
  background: color-mix(in srgb, var(--color-background) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.site-nav__inner {
  height: 100%; display: flex; align-items: center; gap: var(--sp-5);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; color: var(--color-foreground); font-size: 16px; letter-spacing: 0;
}
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  /* 固定深色渐变：两种主题下都保证白字对比度 ≥ 4.5:1 */
  background: linear-gradient(135deg, #2563EB, #6D28D9);
  color: #fff; font-size: 13px; font-weight: 800; letter-spacing: 0;
  display: grid; place-items: center;
}
.nav-links {
  display: flex; align-items: center; gap: 2px;
  list-style: none; padding: 0; margin: 0 0 0 auto;
}
.nav-links a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 12px; border-radius: var(--radius-sm);
  color: var(--color-muted-foreground); font-size: 15px; font-weight: 500;
  transition: background-color 200ms ease, color 200ms ease;
}
.nav-links a:hover { background: var(--color-muted); color: var(--color-foreground); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--color-foreground); font-weight: 600; }
.theme-toggle {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); color: var(--color-muted-foreground);
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.theme-toggle:hover { background: var(--color-muted); color: var(--color-foreground); }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.nav-toggle { display: none; }

/* ---------- 5. Hero ---------- */
.hero { padding-block: var(--sp-9) var(--sp-8); }
.hero h1 {
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.25rem);
  letter-spacing: -.01em;
  margin-top: var(--sp-4);
}
.hero .lead {
  margin-top: var(--sp-4); max-width: 60ch;
  font-size: clamp(1rem, .95rem + .3vw, 1.125rem);
  color: var(--color-muted-foreground);
}
.hero-actions { margin-top: var(--sp-6); display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: var(--radius-sm);
  border: 1px solid transparent; font-size: 15px; font-weight: 600;
  transition: background-color 200ms ease, border-color 200ms ease,
              color 200ms ease, transform 200ms ease, box-shadow 200ms ease;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--color-accent); color: var(--color-on-accent); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--color-accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--ghost { background: var(--color-surface); color: var(--color-foreground); border-color: var(--color-border-strong); }
.btn--ghost:hover { background: var(--color-muted); }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn[aria-disabled="true"], .btn.is-disabled {
  opacity: .55; pointer-events: none; box-shadow: none;
}

/* ---------- 7. 搜索框 ---------- */
.search {
  position: relative; margin-top: var(--sp-6); max-width: 560px; z-index: 20;
}
.search__field {
  display: flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.search__field:focus-within {
  border-color: var(--color-ring);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-ring) 22%, transparent);
}
.search__field svg { flex: none; color: var(--color-muted-foreground); }
.search__field input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: transparent;
  color: var(--color-foreground); font: inherit; font-size: 15px;
}
.search__field input:focus { outline: none; }
.search__field input::placeholder { color: var(--color-muted-foreground); }
.search__results {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px);
  max-height: 340px; overflow-y: auto; overscroll-behavior: contain;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  padding: var(--sp-2); display: none;
}
.search__results.is-open { display: block; }
.search__item {
  display: block; padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--color-foreground);
}
.search__item:hover, .search__item:focus-visible {
  background: var(--color-accent-soft); text-decoration: none;
}
.search__item strong { display: block; font-size: 15px; font-weight: 600; }
.search__item span { display: block; font-size: 13px; color: var(--color-muted-foreground); }
.search__empty { padding: 14px 12px; color: var(--color-muted-foreground); font-size: 14px; }
.search__hint { margin-top: 10px; font-size: 13px; color: var(--color-muted-foreground); }

/* ---------- 7b. 首屏右侧二维码卡 ---------- */
.hero__grid { display: grid; gap: var(--sp-6); align-items: center; }
@media (min-width: 981px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) auto; }
}
.hero__qr {
  justify-self: end; width: min(268px, 100%);
  display: grid; justify-items: center; gap: 10px; text-align: center;
  padding: var(--sp-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.hero__qr > * { margin: 0; }
.hero__qr-label { font-size: 15px; font-weight: 600; color: var(--color-foreground); }
.hero__qr-sub { font-size: 13px; line-height: 1.5; color: var(--color-muted-foreground); }
.hero__qr-id { font-family: var(--font-mono); font-size: 13px; color: var(--color-muted-foreground); }
.hero__qr .qr-frame--sm { width: 200px; }
.hero__qr .btn { margin-top: 2px; }
@media (max-width: 980px) {
  .hero__qr { justify-self: start; width: min(320px, 100%); text-align: left; justify-items: start; }
  .hero__qr .qr-frame--sm { justify-self: center; }
}

/* ---------- 8. 模块卡片 ---------- */
.cards {
  display: grid; gap: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin-top: var(--sp-6);
}
/* 首页四个模块：桌面端 2×2，避免第三张卡孤零零换行 */
@media (min-width: 721px) {
  .cards--grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards--grid2 .card { min-height: 232px; }
}
.card {
  position: relative; display: flex; flex-direction: column; gap: var(--sp-3);
  padding: var(--sp-5); background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  color: inherit; overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--card-hue, var(--color-accent));
  opacity: .9;
}
.card:hover {
  text-decoration: none; transform: translateY(-3px);
  box-shadow: var(--shadow-md); border-color: var(--color-border-strong);
}
.card__icon {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  display: grid; place-items: center; flex: none;
  background: color-mix(in srgb, var(--card-hue, var(--color-accent)) 12%, transparent);
  color: var(--card-hue, var(--color-accent));
}
.card__title { font-size: 19px; }
.card__desc { color: var(--color-muted-foreground); font-size: 15px; flex: 1; }
.card__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 13px; font-weight: 500; padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--color-muted); color: var(--color-muted-foreground);
}
.card__more {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600;
  color: var(--card-hue, var(--color-accent));
}
.card:hover .card__more svg { transform: translateX(3px); }
.card__more svg { transition: transform 200ms ease; }

/* 首页三大功能：桌面端三列并排 */
@media (min-width: 901px) {
  .cards--grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards--grid3 .card { min-height: 250px; }
}
/* 首页「使用教程」单卡：居中收窄，避免一张卡拉满整行 */
.cards--single { grid-template-columns: minmax(0, 680px); }
.cards--single .card { min-height: 0; }

/* ---------- 8a. 顶部提醒条（模型适配 + 购买入口） ---------- */
.tipbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--sp-4); margin-top: var(--sp-5); padding: var(--sp-4) var(--sp-5);
  background: var(--color-accent-soft);
  border: 1px solid color-mix(in srgb, var(--color-accent) 30%, transparent);
  border-radius: var(--radius-md);
}
.tipbar__text { display: grid; gap: 4px; min-width: 0; }
.tipbar__text strong { font-size: 15px; color: var(--color-foreground); }
.tipbar__text span { font-size: 14px; color: var(--color-muted-foreground); }
.tipbar .btn { flex: none; }

/* ---------- 8b. 套餐档位卡（Go / Plus / Pro） ---------- */
.plans {
  display: grid; gap: var(--sp-4); margin-top: var(--sp-6);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  align-items: stretch;
}
.plan {
  position: relative; display: flex; flex-direction: column; gap: var(--sp-3);
  padding: var(--sp-5); background: var(--color-surface);
  border: 1px solid var(--color-border); border-radius: var(--radius-lg);
}
.plan--featured {
  border-color: color-mix(in srgb, var(--tool-hue, var(--color-accent)) 45%, var(--color-border));
  box-shadow: var(--shadow-md);
}
.plan__badge {
  position: absolute; top: 12px; right: 12px;
  font-size: 12px; font-weight: 700; padding: 3px 9px;
  border-radius: var(--radius-full);
  background: var(--color-accent-soft); color: var(--color-accent);
}
.plan__name { font-size: 17px; letter-spacing: .01em; }
.plan__price { font-size: 15px; font-weight: 600; color: var(--color-foreground); }
.plan__price span:not([data-t]) { font-size: 13px; font-weight: 400; color: var(--color-muted-foreground); }
.plan__list {
  list-style: none; padding: 0; margin: 0; display: grid; gap: 7px;
  font-size: 14px; line-height: 1.55; color: var(--color-muted-foreground);
}
.plan__list li { position: relative; padding-left: 16px; }
.plan__list li::before {
  content: ""; position: absolute; left: 0; top: .6em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--tool-hue, var(--color-accent)); opacity: .65;
}

/* ---------- 8c. 网盘卡片（CCSwitch） ---------- */
.disk { display: flex; flex-direction: column; gap: var(--sp-3); }
.disk > * { margin: 0; }
.disk .card__desc { flex: 1 1 auto; }
.disk__code { font-size: 13px; color: var(--color-muted-foreground); }
.disk__code code {
  font-family: var(--font-mono); font-size: 13px;
  padding: 2px 6px; border-radius: 6px;
  background: var(--color-muted); color: var(--color-foreground);
}
.disk__url {
  font-family: var(--font-mono); font-size: 12px; line-height: 1.5;
  color: var(--color-muted-foreground);
  word-break: break-all;
  padding: 8px 10px; border-radius: var(--radius-sm);
  background: var(--color-muted);
}
.disk .jump { margin-top: auto; }

/* ---------- 9. 章节标题 ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--sp-3); }
.section-head h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem); }
.section-head p { color: var(--color-muted-foreground); font-size: 15px; }

/* ---------- 10. 三步说明 ---------- */
.steps {
  display: grid; gap: var(--sp-5); margin-top: var(--sp-6);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  list-style: none; padding: 0;
}
.steps li { display: flex; gap: var(--sp-3); }
.steps__num {
  flex: none; width: 28px; height: 28px; border-radius: var(--radius-full);
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
  background: var(--color-accent-soft); color: var(--color-accent);
}

/* ---------- 11. 提示词大全 ---------- */
.filter {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: var(--sp-5); padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--color-border);
}
.filter__field {
  display: flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 12px; min-width: 240px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm);
}
.filter__field:focus-within { border-color: var(--color-ring); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-ring) 20%, transparent); }
.filter__field svg { color: var(--color-muted-foreground); flex: none; }
.filter__field input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 15px; color: var(--color-foreground); }
.filter__field input:focus { outline: none; }
.filter__cats { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-btn {
  min-height: 36px; padding: 0 12px; border-radius: var(--radius-full);
  background: transparent; border: 1px solid var(--color-border-strong);
  color: var(--color-muted-foreground); font-size: 14px; font-weight: 500;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.cat-btn:hover { background: var(--color-muted); color: var(--color-foreground); }
.cat-btn[aria-pressed="true"] {
  background: var(--color-accent); border-color: var(--color-accent); color: var(--color-on-accent);
}
.filter__count { margin-left: auto; font-size: 14px; color: var(--color-muted-foreground); }

.prompt-list { display: grid; gap: var(--sp-3); margin-top: var(--sp-5); }
.prompt {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.prompt[open] { border-color: var(--color-border-strong); box-shadow: var(--shadow-sm); }
.prompt.is-hidden { display: none; }
.prompt.is-target { border-color: var(--color-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 18%, transparent); }
.prompt > summary {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 16px 18px; list-style: none; cursor: pointer;
  border-radius: var(--radius-md);
  transition: background-color 180ms ease;
}
.prompt > summary::-webkit-details-marker { display: none; }
.prompt > summary:hover { background: var(--color-muted); }
.prompt > summary:focus-visible { outline-offset: -2px; }
.prompt__title { font-weight: 600; font-size: 16px; flex: 1; min-width: 0; }
.prompt__cat {
  font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--tool-hue, var(--color-accent)) 12%, transparent);
  color: var(--tool-hue, var(--color-accent)); flex: none;
}
.prompt__chevron { flex: none; color: var(--color-muted-foreground); transition: transform 220ms ease; }
.prompt[open] .prompt__chevron { transform: rotate(180deg); }
.prompt__body { padding: 0 18px 18px; }
.prompt__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.prompt__tags .chip { font-size: 12px; }
.prompt__text {
  margin: 0; padding: 14px 16px;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--tool-hue, var(--color-accent));
  border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-size: 14.5px; line-height: 1.85;
  white-space: pre-wrap; word-break: break-word;
  color: var(--color-foreground);
}
.prompt__actions { display: flex; gap: var(--sp-2); margin-top: var(--sp-3); flex-wrap: wrap; }
.prompt__empty { padding: 40px 0; text-align: center; color: var(--color-muted-foreground); }

/* ---------- 11b. 技能包页备注行 ---------- */
.skill-tip {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 8px 0 var(--sp-4);
  font-size: 14px; font-weight: 500; color: var(--color-foreground);
}
.skill-tip__dot {
  width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--tool-hue, var(--color-accent));
}

/* ---------- 12. 网盘 / CTA 面板 ---------- */
.cta-panel {
  display: grid; gap: var(--sp-5);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-top: var(--sp-5); padding: var(--sp-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--tool-hue, var(--color-accent));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.cta-panel h3 { font-size: 20px; }
.cta-panel .muted { font-size: 15px; margin-top: var(--sp-2); }
.cta-panel__actions { display: flex; flex-direction: column; gap: var(--sp-2); align-items: stretch; min-width: 200px; }
.cta-panel__meta { font-size: 13px; color: var(--color-muted-foreground); text-align: center; }
.cta-panel__meta code {
  font-family: var(--font-mono); font-size: 12.5px;
  background: var(--color-muted); padding: 2px 6px; border-radius: 5px;
  color: var(--color-foreground);
}

/* ---------- 13. 教程页 ---------- */
.step-list { list-style: none; padding: 0; margin: var(--sp-4) 0 0; display: grid; gap: var(--sp-4); }
.step-list > li {
  display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--sp-4);
}
.step-list__num {
  width: 32px; height: 32px; border-radius: var(--radius-full);
  display: grid; place-items: center; flex: none;
  background: color-mix(in srgb, var(--tool-hue, var(--color-accent)) 14%, transparent);
  color: var(--tool-hue, var(--color-accent));
  font-size: 14px; font-weight: 700;
}
.step-list h4 { font-size: 16px; }
.step-list p, .step-list ul { margin-top: 6px; color: var(--color-muted-foreground); font-size: 15px; }
.step-list ul { padding-left: 1.1em; }
.step-list li { margin-top: 4px; }
.note {
  margin-top: var(--sp-4); padding: 14px 16px;
  background: var(--color-muted); border-radius: var(--radius-sm);
  font-size: 14px; color: var(--color-muted-foreground);
}
.note strong { color: var(--color-foreground); }

/* ---------- 14. 二维码 ---------- */
.qr-wrap { display: grid; place-items: center; padding-block: var(--sp-8); }
.qr-card {
  width: min(420px, 100%); padding: var(--sp-6); text-align: center;
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.qr-frame {
  width: 260px; max-width: 100%; aspect-ratio: 1; margin: var(--sp-5) auto 0;
  border-radius: var(--radius-md); overflow: hidden;
  background: #fff; border: 1px solid var(--color-border);
  display: grid; place-items: center; position: relative;
}
.qr-frame img { width: 100%; height: 100%; object-fit: contain; }
.qr-frame__placeholder {
  position: absolute; inset: 0; display: none;
  place-content: center; gap: 6px; padding: var(--sp-4);
  background: repeating-linear-gradient(45deg, #F1F5F9 0 12px, #E9EFF6 12px 24px);
  color: #64748B; font-size: 13px; line-height: 1.6;
}
.qr-frame.is-missing img { display: none; }
.qr-frame.is-missing .qr-frame__placeholder { display: grid; }
.qr-frame.is-missing { outline: 2px dashed var(--color-border-strong); outline-offset: 4px; }

/* ---------- 14b. 二维码卡片里的微信号行 ---------- */
.qr-id {
  display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap;
  margin-top: var(--sp-4);
  font-size: 14px; color: var(--color-muted-foreground);
}

/* ---------- 15. 面包屑 ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; color: var(--color-muted-foreground); }
.crumbs a { color: var(--color-muted-foreground); }
.crumbs a:hover { color: var(--color-accent); }
.crumbs span[aria-current] { color: var(--color-foreground); font-weight: 500; }

/* ---------- 16. 页头 ---------- */
.page-head { padding-block: var(--sp-7) var(--sp-5); border-bottom: 1px solid var(--color-border); }
.page-head h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem); margin-top: var(--sp-3); }
.page-head .lead { margin-top: var(--sp-3); font-size: 16px; color: var(--color-muted-foreground); max-width: 62ch; }
.jump { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-5); }

/* ---------- 17. Footer ---------- */
.site-footer {
  margin-top: var(--sp-8); padding-block: var(--sp-6);
  border-top: 1px solid var(--color-border);
  font-size: 14px; color: var(--color-muted-foreground);
}
.site-footer__inner { display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.site-footer a { color: var(--color-muted-foreground); }
.site-footer a:hover { color: var(--color-accent); }

/* ---------- 18. Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 12px);
  z-index: 100; padding: 10px 18px; border-radius: var(--radius-full);
  background: #1E293B; color: #F8FAFC; font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
}
[data-theme="dark"] .toast { background: #E8EEF7; color: #0B1220; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 19. 响应式 ---------- */
@media (max-width: 900px) {
  .cta-panel { grid-template-columns: minmax(0, 1fr); }
  .cta-panel__actions { min-width: 0; }
  .cta-panel__actions .btn { width: 100%; }
}
@media (max-width: 720px) {
  .nav-links {
    position: absolute; top: var(--nav-height); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: var(--sp-3); background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md); display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { min-height: 48px; }
  .site-nav__inner { position: relative; }
  .nav-toggle {
    display: grid; place-items: center; margin-left: auto;
    width: 44px; height: 44px; background: transparent;
    border: 1px solid var(--color-border); border-radius: var(--radius-sm);
    color: var(--color-muted-foreground);
  }
  .theme-toggle { margin-left: 8px; }
  .hero { padding-block: var(--sp-7) var(--sp-6); }
  .section { padding-block: var(--sp-7); }
  .filter__count { margin-left: 0; width: 100%; }
  .search { max-width: 100%; }
}
@media (max-width: 400px) {
  .brand span.brand__name { display: none; }
  .prompt__cat { display: none; }
}

/* ---------- 20. 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .card:hover { transform: none; }
  .btn--primary:hover { transform: none; }
}

/* 微信号未填写时隐藏该行 */
.no-wechat-id .wechat-id { display: none; }

/* ---------- 21. 打印 ---------- */
@media print {
  .site-nav, .site-footer, .search, .filter, .theme-toggle, .toast { display: none !important; }
  .prompt { break-inside: avoid; }
  .prompt__body { display: block !important; }
}
