/* styles.css —— 「AI 能跑吗」· 黑白灰极简极客风 (Black / White / Slate Grey)
   参考设计：Linear.app / Vercel / Raycast 黑白极简暗黑玻璃架构 */
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

:root {
  color-scheme: dark;
  --bg: #09090b;
  --bg-glow1: radial-gradient(1100px 700px at 70% -10%, rgba(255, 255, 255, .05), transparent 62%);
  --bg-glow2: radial-gradient(900px 620px at 12% 0%, rgba(148, 163, 184, .04), transparent 58%);
  --text: #f4f4f5; --muted: #a1a1aa; --faint: #8b8b93;
  --line: rgba(255, 255, 255, .1); --line-strong: rgba(255, 255, 255, .22);
  --accent: #ffffff;
  --grad: linear-gradient(135deg, #ffffff 0%, #d4d4d8 100%);
  --good: #34d399; --ok: #fbbf24; --bad: #f87171;
  --cta: #22c55e; --cta-text: #0f172a; --cta-glow: rgba(34, 197, 94, .35);
  --card-bg: rgba(18, 18, 20, .75);
  --card-shadow: 0 18px 50px rgba(0, 0, 0, .6);
  --h1-grad: linear-gradient(110deg, #ffffff 20%, #d4d4d8 50%, #a1a1aa 75%, #ffffff 95%);
  --h1-glow-from: rgba(255, 255, 255, .08);
  --h1-glow-to: rgba(255, 255, 255, .2);
  --input-bg: rgba(18, 18, 22, .9);
  --label-text: #e4e4e7;
  --glass-bg: rgba(255, 255, 255, .14); --glass-bg-soft: rgba(255, 255, 255, .05); --glass-text: #ffffff;
  --glass-border: rgba(255, 255, 255, .45);
  --glass-border-hover: rgba(255, 255, 255, .85);
  --glass-hover: rgba(255, 255, 255, .22);
  --glass-shadow: 0 12px 36px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .35);
  --glass-shadow-hover: 0 16px 48px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .55);
  --ghost-text: #e4e4e7; --ghost-border: rgba(255, 255, 255, .2);
  --ghost-border-hover: rgba(255, 255, 255, .5); --ghost-bg-hover: rgba(255, 255, 255, .06);
  --top-bg: rgba(255, 255, 255, .04); --top-border: rgba(255, 255, 255, .16);
  --origin-bg: rgba(255, 255, 255, .08); --origin-text: #ffffff;
  --speed-text: #f4f4f5; --note-text: #d4d4d8; --name-text: #ffffff;
  --cmd-bg: #000000; --cmd-text: #f4f4f5; --cmd-border: var(--line);
  --help-bg: rgba(255, 255, 255, .04); --help-border: rgba(255, 255, 255, .15);
  --help-text: #f4f4f5; --help-body: #d4d4d8;
  --kbd-bg: rgba(255, 255, 255, .08); --kbd-border: rgba(255, 255, 255, .2);
  --okbox-bg: rgba(52, 211, 153, .07); --okbox-border: rgba(52, 211, 153, .22);
  --okbox-title: #6ee7b7; --okbox-text: #d4d4d8;
  --code-bg: rgba(52, 211, 153, .12); --code-text: #6ee7b7;
  --cmp-bg: rgba(255, 255, 255, .03);
  --you-bg: rgba(255, 255, 255, .06); --you-border: rgba(255, 255, 255, .4);
  --you-tier: #ffffff; --you-glow: 0 0 24px rgba(255, 255, 255, .1);
  --row-hover: rgba(255, 255, 255, .04);
  --why-hover: rgba(26, 26, 30, .88); --why-hover-border: rgba(255, 255, 255, .3);
  --grade-f-bg: #27272a; --grade-f-text: #a1a1aa;
  --manual-link: #d4d4d8;
  --dot-ring: 0 0 0 4px rgba(255, 255, 255, .06);
  --seg-bg: rgba(18, 18, 22, .8); --seg-on: rgba(255, 255, 255, .15); --seg-on-text: #ffffff;
  --beam1: rgba(255, 255, 255, .9); --beam2: rgba(161, 161, 170, .7);
  --im-alert-bg: rgba(245, 158, 11, .1);
  --im-alert-border: rgba(245, 158, 11, .28);
  --im-alert-text: #fde68a;
  --im-alert-icon: #fbbf24;
  --im-item-bg: rgba(255, 255, 255, .03);
  --im-item-border: rgba(255, 255, 255, .1);
  --im-item-num-bg: rgba(255, 255, 255, .1);
  --im-item-num-text: #ffffff;
  --im-code-bg: rgba(34, 197, 94, .15);
  --im-code-border: rgba(34, 197, 94, .3);
  --im-code-text: #4ade80;
  --abliterated-bg: rgba(244, 63, 94, 0.12);
  --abliterated-border: rgba(244, 63, 94, 0.4);
  --abliterated-text: #fb7185;
  --abliterated-hover: rgba(244, 63, 94, 0.22);
  --abliterated-on-bg: #e11d48;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f4f5;
  --bg-glow1: radial-gradient(1100px 700px at 70% -10%, rgba(0, 0, 0, .03), transparent 62%);
  --bg-glow2: radial-gradient(900px 620px at 12% 0%, rgba(0, 0, 0, .02), transparent 58%);
  --text: #09090b; --muted: #52525b; --faint: #5f5f66;
  --line: rgba(0, 0, 0, .08); --line-strong: rgba(0, 0, 0, .18);
  --accent: #09090b;
  --grad: linear-gradient(135deg, #18181b 0%, #09090b 100%);
  --good: #059669; --ok: #b45309; --bad: #dc2626;
  --card-bg: rgba(255, 255, 255, .88);
  --card-shadow: 0 14px 40px rgba(0, 0, 0, .06);
  --h1-grad: linear-gradient(110deg, #09090b 20%, #3f3f46 55%, #09090b 90%);
  --h1-glow-from: rgba(0, 0, 0, .04);
  --h1-glow-to: rgba(0, 0, 0, .08);
  --input-bg: #ffffff;
  --label-text: #18181b;
  --glass-bg: rgba(9, 9, 11, .1); --glass-bg-soft: rgba(9, 9, 11, .03); --glass-text: #09090b;
  --glass-border: rgba(0, 0, 0, .38);
  --glass-border-hover: rgba(0, 0, 0, .7);
  --glass-hover: rgba(9, 9, 11, .16);
  --glass-shadow: 0 8px 24px rgba(0, 0, 0, .12), inset 0 1px 0 rgba(255, 255, 255, .5);
  --glass-shadow-hover: 0 12px 30px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .7);
  --ghost-text: #18181b; --ghost-border: rgba(0, 0, 0, .2);
  --ghost-border-hover: rgba(0, 0, 0, .5); --ghost-bg-hover: #e4e4e7;
  --top-bg: rgba(0, 0, 0, .03); --top-border: rgba(0, 0, 0, .12);
  --origin-bg: rgba(0, 0, 0, .06); --origin-text: #09090b;
  --speed-text: #09090b; --note-text: #3f3f46; --name-text: #09090b;
  --cmd-bg: #18181b; --cmd-text: #f4f4f5; --cmd-border: transparent;
  --help-bg: #f4f4f5; --help-border: #e4e4e7; --help-text: #18181b; --help-body: #3f3f46;
  --kbd-bg: rgba(0, 0, 0, .06); --kbd-border: rgba(0, 0, 0, .15);
  --okbox-bg: #f0fdf4; --okbox-border: #bbf7d0;
  --okbox-title: #15803d; --okbox-text: #27272a;
  --code-bg: #dcfce7; --code-text: #166534;
  --cmp-bg: rgba(255, 255, 255, .8);
  --you-bg: rgba(0, 0, 0, .04); --you-border: rgba(0, 0, 0, .3);
  --you-tier: #09090b; --you-glow: 0 6px 18px rgba(0, 0, 0, .08);
  --row-hover: rgba(0, 0, 0, .02);
  --why-hover: rgba(255, 255, 255, .98); --why-hover-border: rgba(0, 0, 0, .25);
  --grade-f-bg: #e4e4e7; --grade-f-text: #52525b;
  --manual-link: #18181b;
  --dot-ring: 0 0 0 4px rgba(0, 0, 0, .04);
  --seg-bg: rgba(255, 255, 255, .8); --seg-on: #ffffff; --seg-on-text: #09090b;
  --beam1: rgba(0, 0, 0, .85); --beam2: rgba(82, 82, 91, .6);
  --im-alert-bg: #fef3c7;
  --im-alert-border: #fde68a;
  --im-alert-text: #78350f;
  --im-alert-icon: #b45309;
  --im-item-bg: #f8fafc;
  --im-item-border: #e2e8f0;
  --im-item-num-bg: #e2e8f0;
  --im-item-num-text: #0f172a;
  --im-code-bg: #dcfce7;
  --im-code-border: #86efac;
  --im-code-text: #166534;
  --abliterated-bg: #fff1f2;
  --abliterated-border: rgba(244, 63, 94, 0.42);
  --abliterated-text: #be123c;
  --abliterated-hover: #ffe4e6;
  --abliterated-on-bg: #e11d48;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "HarmonyOS Sans SC", "MiSans",
    "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg-glow1), var(--bg-glow2), var(--bg);
  color: var(--text); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(255, 255, 255, .25); color: #ffffff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap {
  max-width: 860px; margin: 0 auto; padding: 0 20px;
  display: flex; flex-direction: column;
  min-height: 100vh; min-height: 100dvh;
}

/* ── 主题切换轮流按钮（右上角极简纯图标，无文字）── */
.theme-widget { position: fixed; top: 16px; right: 18px; z-index: 90; }
.theme-btn {
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; padding: 0;
  background: var(--card-bg); border: 1px solid var(--line); color: var(--text);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
  transition: border-color .2s ease, color .2s ease;
  position: relative;
}
.theme-btn:hover { border-color: var(--line-strong); }
.theme-btn .ticon { position: absolute; inset: 0; margin: auto; display: none; }
.theme-btn[data-mode="light"] .ticon-light,
.theme-btn[data-mode="dark"] .ticon-dark,
.theme-btn[data-mode="system"] .ticon-system { display: block; }
.theme-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  display: flex; flex-direction: column; gap: 4px; padding: 6px;
  background: var(--card-bg); border: 1px solid var(--line); border-radius: 12px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.theme-menu.hidden { display: none; }
.theme-menu button {
  width: 34px; height: 34px; border-radius: 9px; cursor: pointer; padding: 0;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid transparent; color: var(--muted);
  transition: background .15s, color .15s, border-color .15s;
}
.theme-menu button:hover { background: var(--row-hover); color: var(--text); }
.theme-menu button.on { background: var(--cta); border-color: var(--cta); color: var(--cta-text); }

#hero {
  text-align: center; padding: 96px 0 60px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  align-items: center;
}
#hero h1 {
  font-size: clamp(40px, 8.5vw, 80px); line-height: 1.1;
  font-weight: 800; letter-spacing: -.025em; margin-bottom: 34px;
  color: var(--text);
}

/* ── Hero 信任条 ── */
.hero-trust {
  margin-top: 16px; color: var(--faint);
  font-size: 12.5px; letter-spacing: .3px;
}

/* ── 为什么装本地 AI（适中协调黄金比例）── */
#why {
  width: 100%;
  max-width: 640px;
  margin: 20px auto 24px;
  padding: 0;
  box-sizing: border-box;
}
#why h2 {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--text);
  margin-bottom: 14px;
}
.why-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 0;
  box-sizing: border-box;
}
.why-card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 20px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--card-shadow);
  cursor: pointer;
  position: relative;
  text-align: center;
  transform: none !important;
  overflow: visible;
  box-sizing: border-box;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.why-card:hover {
  border-color: var(--line-strong);
  background: var(--why-hover);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  z-index: 50;
}
.why-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.35;
}

.why-card h3 { display: flex; justify-content: center; text-align: center; }
.why-card h3::before { display: none; }
.why-card p {
  font-size: 12.5px; color: var(--text); line-height: 1.7;
  position: absolute; left: 50%; transform: translateX(-50%);
  top: calc(100% + 8px); width: max-content; max-width: 320px;
  margin: 0; padding: 12px 16px;
  background: var(--card-bg); border: 1px solid var(--line-strong); border-radius: 12px;
  box-shadow: var(--card-shadow);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease;
  z-index: 30;
}
/* 手机窄屏：浮层退化为卡片内常显（没有 hover 也看得见） */
@media (hover: none) {
  .why-card p {
    position: static; transform: none; width: auto; max-width: none;
    opacity: 1; visibility: visible; margin-top: 8px;
  }
}
.why-card:hover p { opacity: 1; visibility: visible; }

/* ── 第二步（配置阶段）全局垂直与水平黄金居中 ── */
body.step-2 .wrap {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 60px;
  padding-bottom: 24px;
  box-sizing: border-box;
}
body.step-2 #why {
  margin-top: auto;
  margin-bottom: 16px;
}
body.step-2 #configCard,
body.step-2 #mobileCard {
  margin-top: 0;
  margin-bottom: auto;
}

/* 卡片限宽居中：配置/结果卡不再横向铺满，视觉重心收拢 */
.card {
  background: var(--card-bg); border: 1px solid var(--line); border-radius: 18px;
  padding: 28px; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--card-shadow); margin-bottom: 28px;
  width: 100%; max-width: 640px; margin-left: auto; margin-right: auto;
}
/* 毛玻璃主按钮：无包裹层，本体直接承载清晰对比 */
/* （gooey 光斑装饰已整体移除——对标 Linear 式零装饰） */

/* ── 毛玻璃主按钮：滤镜已隔离，本体保持清晰对比 ── */
.btn-glass {
  position: relative; z-index: 1;
  cursor: pointer; font-size: 16px; font-weight: 700; letter-spacing: .5px;
  color: var(--glass-text);
  padding: 16px 58px; border-radius: 999px;
  background: linear-gradient(135deg, var(--glass-bg) 0%, var(--glass-bg-soft) 100%);
  backdrop-filter: blur(28px) saturate(1.4); -webkit-backdrop-filter: blur(28px) saturate(1.4);
  border: 1px solid var(--cta-glow);
  box-shadow: var(--glass-shadow), 0 0 24px rgba(34, 197, 94, .12);
  transition: transform .2s cubic-bezier(.16, 1, .3, 1), box-shadow .2s ease, border-color .2s ease;
}
.btn-glass:hover {
  transform: translateY(-2px) scale(1.02);
  background: var(--glass-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-shadow-hover);
}
.btn-glass:active { transform: translateY(0) scale(0.98); }
.btn-glass:disabled { opacity: .6; cursor: wait; }

.btn-primary {
  display: inline-block; border: none; cursor: pointer; font-size: 15.5px; font-weight: 700;
  color: var(--cta-text); background: var(--cta);
  padding: 13px 32px; border-radius: 11px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4), 0 0 0 1px rgba(34, 197, 94, .25);
  transition: transform .12s, box-shadow .12s, filter .12s;
}
.btn-primary:hover { filter: brightness(0.92); }
.btn-block { width: 100%; font-size: 16px; padding: 14px; margin-top: 6px; }
.btn-ghost {
  cursor: pointer; font-size: 14px; color: var(--ghost-text); background: transparent;
  border: 1px solid var(--ghost-border); padding: 10px 18px; border-radius: 10px; text-decoration: none;
  transition: background .15s, border-color .15s;
}
.btn-ghost:hover { background: var(--ghost-bg-hover); border-color: var(--ghost-border-hover); }
.as-link { display: inline-block; }

/* 配置区排版：两列对齐网格，label 右对齐固定宽，视觉更规整 */
.cfg-grid {
  display: grid; grid-template-columns: max-content 1fr;
  gap: 14px 18px; align-items: center; margin-bottom: 16px;
}
.cfg-row { display: contents; }
.cfg-label {
  width: auto; text-align: right; color: var(--muted);
  font-weight: 600; font-size: 14px; white-space: nowrap;
}
.cfg-row select { width: 100%; max-width: 360px; }
.cfg-row .raw-note { grid-column: 2; }
.cfg-help { grid-column: 1 / -1; }
/* 父子级：显存是显卡的子项，缩进表达从属（无装饰线） */
.cfg-row.cfg-sub .cfg-label { padding-left: 22px; }
.cfg-row.warn .cfg-label::after { content: " * 需确认"; color: var(--ok); font-weight: 600; font-size: 12px; }

select {
  font-size: 15px; padding: 10px 34px 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--input-bg); color: var(--text); min-width: 240px; max-width: 100%;
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23999' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color .15s, box-shadow .15s;
}
select:hover { border-color: var(--accent); }
select:focus { outline: none; border-color: var(--cta); box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
select { cursor: pointer; }
/* 弹出列表配色（Chromium/Edge 生效；macOS 走系统原生面板） */
select option { background: var(--card-bg); color: var(--text); padding: 8px; }
select option:checked { background: var(--cta); color: var(--cta-text); }
.raw-note { color: var(--faint); font-size: 12.5px; word-break: break-all; }

.verdict { font-size: 21px; font-weight: 700; margin-bottom: 20px; display: flex; gap: 12px; align-items: center; }
.status-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; box-shadow: var(--dot-ring); }
.verdict.good .status-dot { background: var(--good); box-shadow: 0 0 0 4px rgba(52, 211, 153, .14), 0 0 14px rgba(52, 211, 153, .5); }
.verdict.ok   .status-dot { background: var(--ok);   box-shadow: 0 0 0 4px rgba(251, 191, 36, .14), 0 0 14px rgba(251, 191, 36, .5); }
.verdict.bad  .status-dot { background: var(--bad);  box-shadow: 0 0 0 4px rgba(248, 113, 113, .14), 0 0 14px rgba(248, 113, 113, .5); }
.verdict.good { color: var(--good); } .verdict.ok { color: var(--ok); } .verdict.bad { color: var(--bad); }

.top-block {
  background: var(--top-bg); border: 1px solid var(--top-border);
  border-radius: 16px; padding: 20px 22px; position: relative;
}
.top-label { color: var(--muted); font-size: 12.5px; letter-spacing: 1px; }
.top-name { font-size: 24px; font-weight: 800; margin: 2px 0; display: inline-block; color: var(--name-text); }
.top-origin {
  display: inline-block; margin-left: 10px; vertical-align: 4px;
  background: var(--origin-bg); color: var(--origin-text); border-radius: 999px;
  padding: 2px 10px; font-size: 12px; font-weight: 600;
}
.top-speed { font-size: 16px; color: var(--speed-text); font-weight: 600; margin-top: 6px; font-variant-numeric: tabular-nums; }
.top-note { color: var(--note-text); font-size: 13.5px; margin-top: 8px; line-height: 1.7; }
.others { margin-top: 14px; color: var(--muted); font-size: 13.5px; }
.db-updated-line { margin-top: 10px; color: var(--muted); font-size: 12px; opacity: .85; }
.db-updated-line::before { content: '✓ '; color: var(--good); font-weight: 700; }

/* ── 行动区：主 CTA 独占一行居中放大，次要操作降级为小链接行 ── */
.actions { display: flex; justify-content: center; margin-top: 30px; }
.btn-cta { font-size: 17px; padding: 16px 46px; border-radius: 13px; }
.actions-sub {
  display: flex; justify-content: center; align-items: center;
  gap: 10px; flex-wrap: wrap; margin-top: 14px;
}
.actions-sub .btn-ghost { font-size: 13px; padding: 8px 14px; color: var(--muted); }
.cmd {
  background: var(--cmd-bg); color: var(--cmd-text); border: 1px solid var(--cmd-border);
  border-radius: 10px; padding: 14px 16px;
  font-size: 13px; overflow-x: auto; margin-top: 14px; white-space: pre-wrap;
}
.after-install {
  margin-top: 18px; padding: 14px 18px;
  background: var(--okbox-bg); border: 1px solid var(--okbox-border); border-radius: 10px;
  font-size: 13.5px;
}
/* 安装指引与对比区之间拉开呼吸感 */
.ai-steps-title { color: var(--okbox-title); font-weight: 700; margin-bottom: 8px; }
.ai-steps { padding-left: 20px; display: grid; gap: 6px; color: var(--okbox-text); }
.ai-steps-extra { margin-top: 10px; color: var(--muted); font-size: 12.5px; }
.ai-steps-extra code {
  background: var(--code-bg); border-radius: 4px; padding: 1px 6px;
  font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--code-text);
}

/* ── 产品标签 + 面板（v5.80）：文字 / 生图 / 视频 ── */
.prod-tabs {
  display: flex; gap: 8px;
  margin: 16px 0 14px;
}
.prod-tab {
  flex: 1; cursor: pointer; text-align: center;
  display: flex; flex-direction: column; gap: 3px; align-items: center;
  padding: 12px 8px;
  background: transparent; border: 1px solid var(--line); border-radius: 12px;
  font-family: inherit;
  transition: border-color .2s, background .2s;
}
.prod-tab:hover { border-color: var(--line-strong); }
.prod-tab.on { border-color: #22c55e; background: rgba(34,197,94,.08); }
.pt-badge {
  font-size: 10.5px; font-weight: 700; letter-spacing: .5px;
  padding: 2px 8px; border-radius: 4px;
  background: rgba(34,197,94,.14); color: var(--good);
}
.pt-badge.gray { background: rgba(161,161,170,.12); color: var(--muted); }
.pt-name { font-size: 14.5px; font-weight: 800; color: var(--text); }
.pt-price { font-size: 11px; color: var(--muted); }
.prod-panel .tz-card { max-width: 640px; margin: 0 auto; }
@media (max-width: 760px) {
  .pt-price { display: none; }
}
.tz-card {
  display: flex; flex-direction: column; gap: 9px; align-items: flex-start;
  padding: 18px 16px;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.tz-card.disabled { opacity: .55; }
.tz-badge {
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
  padding: 3px 10px; border-radius: 5px;
  background: rgba(34,197,94,.14); color: var(--good);
}
.tz-badge.gray { background: rgba(161,161,170,.12); color: var(--muted); }
.tz-title { font-size: 16.5px; font-weight: 800; color: var(--text); }
.tz-verdict { font-size: 12.5px; font-weight: 700; color: var(--good); }
.tz-verdict.warn { color: var(--ok); }
.tz-altlist {
  width: 100%; display: flex; flex-direction: column; gap: 6px;
}
.tz-altlist.hidden { display: none; }
.prod-panel .btn-cta { width: 100%; }
.prod-panel a.btn-primary.btn-cta { display: block; text-align: center; text-decoration: none; }
.tz-msg {
  display: none;
  font-size: 12.5px; line-height: 1.6; color: var(--ok);
  padding: 9px 11px; border-radius: 8px;
  background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.2);
}
.m-ok { color: var(--good); }
.m-warn { color: var(--ok); }
.m-no { color: var(--faint); }
.tz-alt-tip { font-size: 12px; color: var(--ok); line-height: 1.6; margin-top: 8px; }
.prod-panel .model-chip { cursor: default; }

/* ── 离线会议速记面板样式（借鉴首页 why-card 悬停浮窗）── */
.memo-features {
  width: 100%; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0 16px;
}
@media (max-width: 640px) {
  .memo-features { grid-template-columns: 1fr; }
}
.memo-feat-card {
  background: var(--card-bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; min-height: 44px; display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--card-shadow); cursor: pointer; position: relative; text-align: center;
  box-sizing: border-box;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.memo-feat-card:hover {
  border-color: var(--line-strong); background: var(--why-hover);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08); z-index: 50;
}
.memo-feat-title {
  font-size: 13.5px; font-weight: 700; color: var(--text); margin: 0; line-height: 1.35;
  display: flex; align-items: center; justify-content: center;
}
.memo-feat-desc {
  font-size: 12px; color: var(--text); line-height: 1.6;
  position: absolute; left: 50%; transform: translateX(-50%);
  top: calc(100% + 8px); width: max-content; max-width: 290px;
  margin: 0; padding: 10px 14px;
  background: var(--card-bg); border: 1px solid var(--line-strong); border-radius: 10px;
  box-shadow: var(--card-shadow);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s ease;
  z-index: 30; text-align: left;
}
@media (hover: none) {
  .memo-feat-desc {
    position: static; transform: none; width: auto; max-width: none;
    opacity: 1; visibility: visible; margin-top: 6px; text-align: center;
  }
}
.memo-feat-card:hover .memo-feat-desc {
  opacity: 1; visibility: visible;
}
.memo-dl-wrap {
  width: 100%; display: flex; flex-direction: column; gap: 10px; margin-top: 12px;
}
.memo-dl-card {
  background: var(--code-bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 14px 16px;
}
.memo-dl-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px;
}
.memo-dl-title { font-size: 13.5px; font-weight: 700; color: var(--text); }
.memo-dl-badge {
  font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 4px;
  background: rgba(56, 189, 248, 0.15); color: #38bdf8;
}
.memo-dl-meta { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.memo-dl-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.memo-btn-action {
  font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--card-bg); color: var(--text);
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 4px;
}
.memo-btn-action:hover { border-color: var(--line-strong); text-decoration: none; }
.memo-btn-primary { background: #38bdf8; color: #04131f; border-color: #38bdf8; font-weight: 700; }
.memo-btn-primary:hover { opacity: .9; }
.memo-guide-box {
  background: rgba(255, 255, 255, 0.02); border: 1px dashed var(--line);
  border-radius: 8px; padding: 12px 14px; font-size: 12px; color: var(--muted); line-height: 1.7;
}
.memo-guide-box b { color: var(--text); }

.trends-entry {
  display: inline-block;
  background: #166534;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: .5px;
  transition: opacity .15s;
}
.trends-entry:hover { opacity: .85; }
.grade { display: inline-block; width: 26px; text-align: center; border-radius: 6px; font-weight: 700; color: #06131f; }

.cfg-help {
  background: var(--help-bg); border: 1px solid var(--help-border); border-radius: 10px;
  padding: 10px 14px; margin-bottom: 16px; font-size: 13.5px;
}
.cfg-help summary { cursor: pointer; color: var(--help-text); font-weight: 600; }
.cfg-help .help-body { margin-top: 8px; color: var(--help-body); display: grid; gap: 6px; }
.cfg-help kbd {
  background: var(--kbd-bg); border: 1px solid var(--kbd-border); border-bottom-width: 2px;
  border-radius: 4px; padding: 0 5px; font-size: 12px; font-family: inherit; color: var(--help-text);
}

/* ── 双安装器 + 标语 + 分步引导 ── */
.cta-slogan {
  width: 100%;
  text-align: center; margin: 26px 0 10px;
  font-size: 19px; font-weight: 800; letter-spacing: .04em; color: var(--text);
  line-height: 1.35;
}
.cta-slogan .slogan-sub {
  display: block; width: 100%; text-align: center;
  margin-top: 6px;
  font-size: 13px; font-weight: 500; color: var(--faint); letter-spacing: .02em;
  line-height: 1.5;
}
.actions-stack { flex-direction: column; align-items: stretch; gap: 48px; }
.actions-stack .btn-cta { width: 100%; }
.btn-video { background: var(--card-bg); color: var(--text); border: 1.5px solid var(--line-strong); }
.btn-video:hover { border-color: var(--cta); color: var(--text); filter: none; }

/* 分步引导卡（聊天/视频共用） */
.install-wizard, .video-guide {
  margin-top: 6px; padding: 14px 16px;
  background: var(--okbox-bg); border: 1px solid var(--okbox-border); border-radius: 12px;
}
.iw-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px;
  font-size: 11px; letter-spacing: 2px; color: var(--faint); }
.iw-dots { display: flex; gap: 5px; }
.iw-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.iw-dot.done { background: var(--good); }
.iw-dot.cur { background: var(--cta); box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }
.iw-stepnum { font-size: 12px; color: var(--faint); margin-bottom: 2px; }
.iw-title { font-size: 15.5px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.iw-desc { font-size: 13px; color: var(--muted); line-height: 1.7; }
.iw-desc b { color: var(--text); }
.iw-btns { display: flex; gap: 10px; margin-top: 12px; }
.iw-next {
  cursor: pointer; font-size: 13.5px; font-weight: 700; font-family: inherit;
  background: var(--cta); color: var(--cta-text); border: none; border-radius: 9px; padding: 9px 16px;
}
.iw-back {
  cursor: pointer; font-size: 13.5px; font-family: inherit;
  background: transparent; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 9px; padding: 9px 14px;
}
.iw-back:hover { color: var(--text); }
.iw-done { font-size: 14px; color: var(--good); line-height: 1.7; }
.iw-link { background: none; border: none; color: var(--muted); font-size: 12.5px; cursor: pointer;
  text-decoration: underline; font-family: inherit; padding: 0 4px; }
.iw-link:hover { color: var(--text); }

/* ── 全屏沉浸式安装向导弹窗 (Linear/Vercel 级设计规范) ── */
.install-modal {
  position: relative;
  max-width: 530px;
  text-align: left;
  padding: 28px 24px 22px;
  background: var(--card-bg);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  box-shadow: var(--card-shadow), 0 20px 50px rgba(0, 0, 0, .4);
}
.modal-close {
  position: absolute; top: 18px; right: 18px;
  background: var(--cmp-bg); border: 1px solid var(--line);
  color: var(--faint); font-size: 16px; line-height: 1;
  width: 32px; height: 32px; border-radius: 8px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .15s ease;
}
.modal-close:hover {
  color: var(--text); border-color: var(--line-strong); background: var(--glass-hover);
}

/* 顶部状态与下载指示 */
.im-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 18px; padding-right: 36px;
}
.im-pill-download {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--im-code-bg); border: 1px solid var(--im-code-border);
  color: var(--im-code-text); border-radius: 999px;
  padding: 4px 12px; font-size: 12px; font-weight: 600;
}
.im-pulse-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--good); box-shadow: 0 0 8px var(--good);
  animation: radar-blink 1.5s ease-in-out infinite;
}
.im-step-tag {
  font-size: 12px; font-weight: 700; color: var(--faint);
  letter-spacing: 0.5px;
}

/* 三步进度轨道 */
.im-track {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px; padding: 0 2px;
}
.im-track-step {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--faint);
  transition: all .25s ease;
}
.im-track-num {
  width: 20px; height: 20px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  background: var(--im-item-bg); border: 1px solid var(--im-item-border);
  color: var(--faint);
  transition: all .25s ease;
}
.im-track-step.done { color: var(--good); }
.im-track-step.done .im-track-num {
  background: var(--good); border-color: var(--good); color: #0f172a;
}
.im-track-step.cur { color: var(--text); }
.im-track-step.cur .im-track-num {
  background: var(--text); border-color: var(--text); color: var(--bg);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
  transform: scale(1.06);
}
.im-track-line {
  flex: 1; height: 2px; background: var(--line); margin: 0 8px; border-radius: 999px; position: relative; overflow: hidden;
  transition: background .25s ease;
}
.im-track-line.done { background: var(--good); }
.im-track-line.pulse {
  background: linear-gradient(90deg, var(--good) 0%, var(--cta) 50%, var(--line) 100%);
  background-size: 200% 100%;
  animation: im-line-pulse 1.8s linear infinite;
}
@keyframes im-line-pulse {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* 核心内容区 (平滑过渡转场) */
.im-content {
  display: flex; flex-direction: column; gap: 13px;
  animation: im-step-fade .28s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes im-step-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.im-hero {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 2px;
}
.im-hero-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--im-item-bg); border: 1px solid var(--line-strong);
  color: var(--text); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.im-hero-title {
  font-size: 17px; font-weight: 800; color: var(--text); line-height: 1.35; margin-bottom: 2px;
}
.im-hero-desc {
  font-size: 12.5px; color: var(--muted); line-height: 1.5;
}

/* 模拟黑窗口终端（用于第2步全自动运行状态感知） */
.im-console {
  background: #09090b; border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 12px; padding: 12px 14px; color: #f4f4f5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px; line-height: 1.6; display: flex; flex-direction: column; gap: 6px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, .5);
}
.im-console-head {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, .1); padding-bottom: 6px; margin-bottom: 4px;
  font-size: 11px; color: #a1a1aa;
}
.im-console-dots { display: flex; gap: 5px; }
.im-console-dot { width: 8px; height: 8px; border-radius: 50%; }
.im-console-dot.r { background: #ef4444; }
.im-console-dot.y { background: #eab308; }
.im-console-dot.g { background: #22c55e; }
.im-console-row { display: flex; align-items: center; gap: 8px; }
.im-console-tag { color: #34d399; font-weight: 700; flex-shrink: 0; }
.im-console-text { color: #e4e4e7; }
.im-console-cursor {
  display: inline-block; width: 6px; height: 13px; background: #34d399;
  animation: im-cursor-blink 1s steps(2, start) infinite; vertical-align: middle; margin-left: 2px;
}
@keyframes im-cursor-blink { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }

kbd.im-kbd {
  display: inline-block; padding: 1px 5px; font-size: 11.5px;
  font-family: inherit; font-weight: 600; line-height: 1.2;
  color: var(--text); background: var(--cmp-bg);
  border: 1px solid var(--line-strong); border-bottom-width: 2px;
  border-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.08);
}

/* 分步操作卡片列表 */
.im-steps-box {
  background: var(--im-item-bg); border: 1px solid var(--im-item-border);
  border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 9px;
}
.im-step-row {
  display: flex; align-items: flex-start; gap: 9px; font-size: 13px; line-height: 1.6; color: var(--muted);
}
.im-step-row b { color: var(--text); }
.im-row-badge {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--im-item-num-bg); color: var(--im-item-num-text);
  font-size: 10.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.im-file-code {
  display: inline-block;
  background: var(--im-code-bg); color: var(--im-code-text);
  border: 1px solid var(--im-code-border); border-radius: 5px;
  padding: 0 6px; font-size: 12px; font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: nowrap; vertical-align: baseline;
}

/* 警示与系统拦截提示（高对比度，双主题无障碍适配） */
.im-alert-card {
  background: var(--im-alert-bg); border: 1px solid var(--im-alert-border);
  border-radius: 10px; padding: 10px 12px;
  display: flex; align-items: flex-start; gap: 9px;
  color: var(--im-alert-text); font-size: 12.5px; line-height: 1.55;
}
.im-alert-icon {
  color: var(--im-alert-icon); flex-shrink: 0; margin-top: 1px;
}
.im-alert-text { flex: 1; }
.im-alert-text b { color: inherit; font-weight: 700; }

/* 底部操作与重新下载 */
.im-meta-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--faint); padding: 0 2px;
}
.im-disk-tag { display: inline-flex; align-items: center; gap: 5px; }
.im-redownload-btn {
  background: none; border: none; color: var(--muted);
  font-size: 12px; cursor: pointer; text-decoration: underline; font-family: inherit;
  transition: color .15s;
}
.im-redownload-btn:hover { color: var(--text); }

.im-footer-btns {
  display: flex; gap: 10px; margin-top: 4px;
}
.im-btn-cta {
  flex: 1; cursor: pointer; font-size: 14px; font-weight: 700; font-family: inherit;
  background: var(--cta); color: var(--cta-text); border: none; border-radius: 10px;
  padding: 11px 18px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  box-shadow: 0 4px 14px var(--cta-glow);
  transition: transform .12s, filter .12s;
}
.im-btn-cta:hover { filter: brightness(1.06); transform: translateY(-1px); }
.im-btn-prev {
  cursor: pointer; font-size: 13px; font-family: inherit; font-weight: 600;
  background: transparent; color: var(--muted); border: 1px solid var(--line-strong);
  border-radius: 10px; padding: 11px 16px;
  transition: all .15s;
}
.im-btn-prev:hover { color: var(--text); border-color: var(--text); background: var(--cmp-bg); }

.im-reopen-banner {
  margin-top: 10px; padding: 12px 16px;
  background: var(--okbox-bg); border: 1px dashed var(--okbox-border);
  border-radius: 12px; font-size: 13px; color: var(--muted);
  display: flex; justify-content: space-between; align-items: center;
}
.im-reopen-btn {
  background: none; border: none; color: var(--good); font-weight: 700;
  font-size: 13px; cursor: pointer; text-decoration: underline; font-family: inherit;
}

footer { position: relative; text-align: center; color: var(--faint); font-size: 12.5px; padding: 30px 0 46px; }

/* doforai 反向链接徽章：桌面端右侧居中，窄屏落回居中下方 */
.doforai-badge { position: absolute; right: 28px; top: 50%; transform: translateY(-50%); }
.doforai-badge img { height: 26px; display: block; opacity: .8; }
@media (max-width: 720px) {
  .doforai-badge { position: static; transform: none; display: flex; justify-content: center; margin-top: 12px; }
}

/* ── 三步进度指示 ── */
.steps-bar {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  z-index: 90; display: flex; align-items: center; gap: 8px;
  background: var(--card-bg); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 16px; font-size: 12.5px; color: var(--faint);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.steps-bar .step { display: flex; align-items: center; gap: 5px; transition: color .2s; }
.steps-bar .step i {
  font-style: normal; width: 17px; height: 17px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; background: var(--cmp-bg); border: 1px solid var(--line);
}
.steps-bar .step.active { color: var(--text); font-weight: 700; }
.steps-bar .step.active i { background: var(--cta); border-color: var(--cta); color: var(--cta-text); }
.steps-bar .step.done { color: var(--good); }
.steps-bar .step.done i { background: var(--good); border-color: var(--good); color: #0f172a; }
.steps-bar .step-sep { width: 14px; height: 1px; background: var(--line-strong); }

/* ── 卡头 + 重新检测 ── */
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.card-head h2 { margin-bottom: 0; }
.re-detect {
  background: transparent; border: none; cursor: pointer;
  color: var(--muted); font-size: 13px; padding: 4px 6px;
  transition: color .15s; font-family: inherit;
}
.re-detect:hover { color: var(--accent); }
.hidden { display: none !important; }

/* ── 可选档位按钮（推荐之外的备选）── */
.alt-toggle {
  display: block; width: 100%; padding: 12px; background: transparent;
  border: 1px dashed var(--line-strong); border-radius: 10px; cursor: pointer;
  color: var(--muted); font-size: 13.5px; transition: color .15s, border-color .15s;
  font-family: inherit;
}
.alt-toggle:hover { color: var(--accent); border-color: var(--accent); }
.alt-wrap { margin-top: 12px; }
.alt-title { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.alt-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.model-chip {
  cursor: pointer; font-size: 13px; font-weight: 600;
  color: var(--text); background: var(--cmp-bg);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 7px 14px; transition: border-color .15s, background .15s;
  font-family: inherit;
}
.model-chip:hover { border-color: var(--accent); }
.model-chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.model-chip.chip-abliterated {
  background: var(--abliterated-bg);
  border-color: var(--abliterated-border);
  color: var(--abliterated-text);
}
.model-chip.chip-abliterated:hover {
  border-color: #f43f5e;
  background: var(--abliterated-hover);
}
.model-chip.chip-abliterated.on {
  background: var(--abliterated-on-bg);
  border-color: var(--abliterated-on-bg);
  color: #ffffff;
}
.alt-warn {
  margin-top: 10px; font-size: 12.5px; color: var(--ok);
  background: var(--okbox-bg); border: 1px solid var(--okbox-border);
  border-radius: 8px; padding: 8px 12px; line-height: 1.6;
}

/* ── 首屏拉开布置（检测前 pristine 态）──
   标题在顶部、按钮落在屏幕中腰、footer 钉在首屏最底部；检测后解除 */
body.pristine #hero {
  min-height: 100vh;
  padding-top: 15vh;
}
body.pristine #btnStart { margin-top: 16vh; }
body.pristine footer {
  position: fixed; left: 0; right: 0; bottom: 0;
  padding: 14px 24px 20px;
}

/* ── 毛玻璃检测按钮：统一定义见文件前部 .btn-glass，此处不再重复 ── */

/* ── 推荐卡流光边框（纯 CSS 实现）─────
   改编自 Jakub Antalik 的 border-beam（MIT License）——许可要求随软件保留作者声明，故注于此 */
@property --beam-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.top-block::before {
  content: ""; position: absolute; inset: -1.5px; border-radius: 17px;
  padding: 1.5px;
  background: conic-gradient(from var(--beam-angle),
    transparent 0%, var(--beam1) 14%, var(--beam2) 22%, transparent 32%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask-composite: exclude;
  animation: beam-spin 3.4s linear infinite;
  pointer-events: none;
}
@keyframes beam-spin { to { --beam-angle: 360deg; } }

/* 出结果按钮：跑马流光边框（与推荐方案同款光效） */
.btn-judge-wrap {
  position: relative; border-radius: 13px; padding: 1.5px;
  background: conic-gradient(from var(--beam-angle),
    transparent 0%, var(--beam1) 12%, var(--beam2) 20%, transparent 30%);
  animation: beam-spin 3.4s linear infinite;
  margin-top: 6px;
}
.btn-judge-wrap .btn-primary {
  width: 100%; border-radius: 12px; margin: 0;
}
.btn-judge-wrap .btn-block { margin-top: 0; }

@media (prefers-reduced-motion: reduce) {
  .top-block::before { animation: none; opacity: .5; }
  .why-card, .btn-glass, .btn-primary { transition: none; }
  .btn-judge-wrap { animation: none; background: var(--line); }
  .scan-progress-fill { transition: none; }
}

/* ── 商业化推荐区：广告语触发条 + 点击展开 ── */
.monetize-card {
  margin-top: 14px; position: relative;
  background: transparent; border: none; padding: 0;
  transition: none;
}
.monetize-card.cloud-promo {
  margin-top: 56px;
}
.monetize-card.cloud-promo::before {
  content: ""; position: absolute; top: -28px; left: 0; right: 0;
  border-top: 1px solid var(--line);
}

.promo-slogan-toggle {
  width: 100%; text-align: left; background: var(--cmp-bg);
  border: 1px dashed var(--line-strong); border-radius: 12px;
  padding: 13px 16px; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transition: all .18s ease;
}
.promo-slogan-toggle:hover {
  border-color: var(--cta); background: var(--glass-hover);
}
.promo-slogan-left { display: flex; flex-direction: column; gap: 3px; }
.promo-slogan-title {
  font-size: 13.5px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 6px; line-height: 1.4;
}
.promo-slogan-hint {
  font-size: 12px; color: var(--muted); line-height: 1.4;
}
.promo-slogan-arrow {
  color: var(--muted); font-size: 14px; transition: transform .25s ease; flex-shrink: 0;
}
.promo-slogan-toggle.open {
  border-style: solid; border-color: var(--line-strong); border-bottom-left-radius: 4px; border-bottom-right-radius: 4px;
}
.promo-slogan-toggle.open .promo-slogan-arrow {
  transform: rotate(180deg); color: var(--text);
}

.promo-collapse-body {
  background: var(--card-bg); border: 1px solid var(--line-strong); border-top: none;
  border-bottom-left-radius: 12px; border-bottom-right-radius: 12px;
  padding: 14px 16px 16px;
  animation: im-step-fade .25s cubic-bezier(0.16, 1, 0.3, 1);
}

.promo-tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: 2px;
  color: var(--faint); border: 1px solid var(--line);
  padding: 2px 7px; border-radius: 5px; margin-right: 8px;
  vertical-align: 1px;
}
.promo-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; flex-wrap: wrap; gap: 8px; }
.promo-title { font-size: 14px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.promo-badge {
  font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 6px;
  background: rgba(255, 255, 255, .08); color: #ffffff; border: 1px solid rgba(255, 255, 255, .16);
}
.promo-badge.deal { background: rgba(52, 211, 153, .12); color: #34d399; border-color: rgba(52, 211, 153, .28); }
.promo-desc { font-size: 12.5px; color: var(--faint); line-height: 1.6; margin-bottom: 12px; }
.promo-items { display: grid; gap: 8px; margin-bottom: 12px; }
.promo-item {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--cmp-bg); padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--line); font-size: 13px; gap: 10px;
}
.promo-item-info { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.promo-item-name { font-weight: 600; color: var(--text); font-size: 13.5px; }
.promo-item-desc { font-size: 12px; color: var(--faint); }
.promo-item-price { font-weight: 700; color: var(--muted); font-size: 12.5px; margin-right: 10px; white-space: nowrap; }
.promo-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-affiliate {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 13px; font-weight: 700; text-decoration: none;
  background: #ffffff; color: #09090b; padding: 8px 16px; border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  transition: transform .12s, filter .12s;
}
.btn-affiliate:hover { filter: brightness(0.92); transform: translateY(-1px); }
.btn-affiliate-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 13px; font-weight: 600; text-decoration: none;
  background: transparent; color: var(--ghost-text); padding: 8px 14px; border-radius: 8px;
  border: 1px solid var(--ghost-border);
  transition: background .12s, border-color .12s;
}
.btn-affiliate-ghost:hover { background: var(--ghost-bg-hover); border-color: var(--ghost-border-hover); }

/* ── 全屏沉浸式硬件体检扫描雷达 ── */
.scan-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(9, 9, 11, .92);
  backdrop-filter: blur(28px); -webkit-backdrop-filter: blur(28px);
  padding: 24px;
  animation: overlay-fadein .3s ease-out;
}
@keyframes overlay-fadein { from { opacity: 0; } to { opacity: 1; } }

.scan-modal {
  width: 100%; max-width: 480px; text-align: center;
  background: var(--card-bg); border: 1px solid var(--line-strong);
  border-radius: 24px; padding: 40px 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .8), 0 0 32px rgba(255, 255, 255, .04);
  animation: modal-pop .35s cubic-bezier(.16, 1, .3, 1);
}
@keyframes modal-pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.scan-radar-wrap {
  position: relative; width: 140px; height: 140px; margin: 0 auto 24px;
  display: flex; align-items: center; justify-content: center;
}
.scan-radar {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .2);
  background: radial-gradient(circle, rgba(255, 255, 255, .04) 0%, transparent 70%);
  overflow: hidden;
}
.radar-rings {
  position: absolute; inset: 18px; border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, .25);
}
.radar-rings::before {
  content: ""; position: absolute; inset: 22px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .15);
}
.radar-beam {
  position: absolute; top: 50%; left: 50%; width: 50%; height: 50%;
  transform-origin: 0 0;
  background: conic-gradient(from 0deg, rgba(255, 255, 255, .6) 0deg, transparent 65deg);
  animation: radar-sweep 2s linear infinite;
}
@keyframes radar-sweep { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.radar-dot {
  position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #34d399;
  box-shadow: 0 0 10px #34d399; animation: radar-blink 1.8s ease-in-out infinite;
}
.radar-dot.d1 { top: 32%; left: 68%; }
.radar-dot.d2 { bottom: 28%; left: 35%; animation-delay: .7s; background: #94a3b8; box-shadow: 0 0 10px #94a3b8; }
@keyframes radar-blink { 0%, 100% { opacity: .2; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.3); } }

.scan-pct {
  position: relative; z-index: 2; font-size: 24px; font-weight: 800;
  color: var(--text); font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 14px rgba(255, 255, 255, .3);
}
.scan-status { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 14px; min-height: 24px; }

.scan-progress-bar {
  width: 100%; max-width: 420px; height: 7px; margin: 0 auto 16px;
  background: var(--input-bg); border-radius: 999px; overflow: hidden;
  border: 1px solid var(--line);
}
.scan-progress-fill {
  height: 100%; width: 0%; border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 0 14px rgba(255, 255, 255, .4);
  transition: width .25s ease-out;
}
.scan-log {
  font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--faint);
  min-height: 20px; letter-spacing: .3px;
}

/* ── 卡密激活弹窗 ── */
.license-overlay {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: rgba(9, 9, 11, .88);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  padding: 20px;
  animation: overlay-fadein .25s ease-out;
}
.license-modal {
  position: relative; width: 100%; max-width: 440px; text-align: left;
  background: var(--card-bg); border: 1px solid var(--line-strong);
  border-radius: 20px; padding: 28px 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .8), 0 0 32px rgba(255, 255, 255, .05);
  animation: modal-pop .3s cubic-bezier(.16, 1, .3, 1);
}
.license-close {
  position: absolute; top: 18px; right: 18px; width: 28px; height: 28px;
  border-radius: 50%; background: var(--cmp-bg); border: 1px solid var(--line);
  color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; transition: all .15s;
}
.license-close:hover { color: var(--text); border-color: var(--text); }
.license-badge {
  display: inline-block; font-size: 11.5px; font-weight: 700; color: var(--cta);
  background: rgba(34, 197, 94, .12); border: 1px solid rgba(34, 197, 94, .25);
  padding: 3px 10px; border-radius: 6px; margin-bottom: 12px;
}
.license-title {
  font-size: 19px; font-weight: 800; color: var(--text); margin-bottom: 8px;
}
.license-desc {
  font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 20px;
}
.license-input-wrap {
  display: flex; gap: 8px; margin-bottom: 12px;
}
.license-input {
  flex: 1; background: var(--input-bg); border: 1.5px solid var(--line-strong);
  border-radius: 10px; padding: 12px 14px; font-size: 14px; font-weight: 700;
  color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase; letter-spacing: 1px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.license-input:focus {
  border-color: var(--cta); box-shadow: 0 0 0 3px var(--cta-glow);
}
.license-btn {
  cursor: pointer; font-size: 14px; font-weight: 700; font-family: inherit;
  background: var(--cta); color: var(--cta-text); border: none; border-radius: 10px;
  padding: 0 18px; white-space: nowrap; transition: filter .12s, transform .12s;
}
.license-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.license-msg {
  font-size: 12.5px; padding: 8px 12px; border-radius: 8px; margin-bottom: 16px;
}
.license-msg.err {
  background: rgba(239, 68, 68, .12); color: #f87171; border: 1px solid rgba(239, 68, 68, .25);
}
.license-msg.ok {
  background: rgba(34, 197, 94, .12); color: #4ade80; border: 1px solid rgba(34, 197, 94, .25);
}
.license-footer-tip {
  background: var(--cmp-bg); border: 1px dashed var(--line);
  border-radius: 10px; padding: 12px; font-size: 12px; color: var(--muted); line-height: 1.6;
}
.license-footer-tip b { color: var(--text); }
.license-tip-sub { display: block; margin-top: 3px; color: var(--faint); }

/* ── Pro 购买卡片与聚合收款（嵌套在结果卡最底部） ── */
.pro-purchase-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.pro-purchase-card {
  display: block;
  background: var(--cmp-bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 32px;
  text-align: left;
}
.pro-purchase-left {
  flex: 1;
  min-width: 0;
}
.pro-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  padding: 2px 8px;
  border-radius: 5px;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.pro-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: 0.2px;
}
.pro-subtitle {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 16px;
}
.pro-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}
.pro-benefits li {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text);
  margin-bottom: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.pro-benefits li span { flex-shrink: 0; margin-top: 1px; }
.pro-benefits li span {
  color: #22c55e;
  font-weight: 700;
}
.pro-channels {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
}
.pro-channel-tip {
  font-weight: 600;
}
.pro-channel-badge {
  background: var(--card-bg);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 7px;
  color: var(--text);
  font-weight: 600;
}
.pro-channel-badge.online-badge {
  background: rgba(34, 197, 94, .14);
  border-color: rgba(34, 197, 94, .45);
  color: var(--good);
}

@media (max-width: 560px) {
  .pro-purchase-card {
    padding: 20px 18px;
  }
  .pro-benefits {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  select { font-size: 16px; } /* iOS 聚焦 <16px 会强制缩放页面 */
  .cfg-label { width: 100%; }
  select { min-width: 100%; }
  #hero { padding-top: 56px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .why-card { padding: 10px 8px; min-height: 42px; border-radius: 9px; }
  .why-card h3 { font-size: 12px; }
  .theme-select { top: 10px; right: 10px; }
}

/* ── C1 手机适配单：App 内搜索词 + 一键复制 ── */
.mobile-fit-card {
  margin-top: 12px; padding: 12px 14px;
  background: var(--top-bg); border: 1px solid var(--top-border); border-radius: 10px;
}
.fit-title { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.fit-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fit-name {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 16px; font-weight: 700; color: var(--name-text);
  background: var(--origin-bg); border: 1px solid var(--line-strong);
  border-radius: 8px; padding: 7px 12px; letter-spacing: .2px;
}
.fit-copy {
  cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--cta-text); background: var(--cta); border: none; border-radius: 999px;
  padding: 7px 16px; transition: opacity .15s;
}
.fit-copy:hover { opacity: .85; }
.fit-copy.copied { background: var(--good); }
.fit-note { margin-top: 8px; font-size: 12.5px; color: var(--faint); line-height: 1.6; }

/* ── v5.82 UX 修补 ── */
/* 小关闭钮触控热区扩至 ~44px（视觉尺寸不变） */
.modal-close::before, .license-close::before {
  content: ''; position: absolute; inset: -8px; border-radius: 50%;
}
/* 移动端正文可读性：12.5px 档提到 13.5-14px */
@media (max-width: 760px) {
  .why-card p { font-size: 14px; }
  .promo-desc { font-size: 13.5px; color: var(--muted); }
  .tz-verdict { font-size: 13.5px; }
  .iw-desc { font-size: 14px; }
}
