/* styles.css —— 「AI 能跑吗」· 黑白灰极简极客风 (Black / White / Slate Grey)
   参考设计：Linear.app / Vercel / Raycast 黑白极简暗黑玻璃架构 */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

: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: #71717a;
  --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;
  --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);
  --aurora1: rgba(255, 255, 255, .12);
  --aurora2: rgba(148, 163, 184, .1);
  --aurora3: rgba(100, 116, 139, .08);
  --input-bg: rgba(18, 18, 22, .9);
  --label-text: #e4e4e7;
  --glass-bg: #ffffff;
  --glass-border: rgba(255, 255, 255, .4);
  --glass-border-hover: #ffffff;
  --glass-hover: #f4f4f5;
  --glass-shadow: 0 8px 28px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .8);
  --glass-shadow-hover: 0 14px 36px rgba(255, 255, 255, .18), inset 0 1px 0 #ffffff;
  --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);
}

: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: #71717a;
  --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);
  --aurora1: rgba(0, 0, 0, .04);
  --aurora2: rgba(0, 0, 0, .03);
  --aurora3: rgba(0, 0, 0, .02);
  --input-bg: #ffffff;
  --label-text: #18181b;
  --glass-bg: #09090b;
  --glass-border: rgba(0, 0, 0, .8);
  --glass-border-hover: #000000;
  --glass-hover: #18181b;
  --glass-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  --glass-shadow-hover: 0 12px 30px rgba(0, 0, 0, .2);
  --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);
}

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-toggle {
  position: fixed; top: 16px; right: 18px; z-index: 90;
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  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);
  cursor: pointer;
  transition: transform .2s cubic-bezier(.16, 1, .3, 1), border-color .2s ease, background .2s ease, color .2s ease;
}
.theme-toggle:hover {
  transform: scale(1.08);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 6px 20px rgba(212, 175, 55, .25);
}
.theme-toggle:active { transform: scale(.95); }

/* 暗黑模式下展示太阳图标（点击切白天），白天模式下展示月亮图标（点击切暗黑） */
[data-theme="dark"] .theme-toggle .icon-sun,
:root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon,
:root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }

[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

#hero {
  text-align: center; padding: 72px 0 44px;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  align-items: center;
}
#hero > :not(.aurora-gooey-wrap) { position: relative; z-index: 1; }

#hero h1 {
  font-size: clamp(38px, 6.4vw, 64px); line-height: 1.14;
  font-weight: 800; letter-spacing: -.015em; margin-bottom: 36px;
  background: var(--h1-grad);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 7s ease-in-out infinite alternate, h1-glow 5s ease-in-out infinite alternate;
}
@keyframes sheen { from { background-position: 0% 0; } to { background-position: 100% 0; } }
@keyframes h1-glow {
  from { filter: drop-shadow(0 4px 24px var(--h1-glow-from)); }
  to   { filter: drop-shadow(0 6px 44px var(--h1-glow-to)); }
}

/* ── 为什么装本地 AI（极简静默态 · 悬停平滑展开）── */
#why { padding: 32px 0 10px; }
#why h2 { text-align: center; font-size: 19px; font-weight: 700; letter-spacing: .02em; color: var(--muted); margin-bottom: 6px; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 18px; }
.why-card {
  background: var(--card-bg); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 20px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--card-shadow); cursor: pointer;
  transition: transform .22s cubic-bezier(.16, 1, .3, 1), border-color .22s ease, background .22s ease, box-shadow .22s ease;
}
.why-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, .3);
  background: var(--why-hover);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .4), 0 0 20px rgba(255, 255, 255, .04);
}
.why-card h3 {
  font-size: 14.5px; font-weight: 700; color: var(--text);
  display: flex; align-items: center; justify-content: space-between;
}
.why-card h3::before {
  content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-right: 10px; flex-shrink: 0;
  box-shadow: 0 0 8px rgba(255, 255, 255, .6);
}
.why-card h3::after {
  content: "+"; font-size: 14px; color: var(--muted); opacity: .7;
  transition: transform .25s ease, opacity .25s ease;
}
.why-card:hover h3::after {
  content: "−"; transform: rotate(90deg); opacity: 1; color: var(--text);
}
.why-card p {
  font-size: 12.5px; color: var(--muted); line-height: 1.7;
  max-height: 0; opacity: 0; margin-top: 0;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.16, 1, .3, 1), opacity .3s ease, margin-top .3s ease;
}
.why-card:hover p {
  max-height: 140px; opacity: 1; margin-top: 10px;
}

.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;
}
.btn-gooey-wrap {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  filter: url(#liquid-gooey);
  margin-top: 10px;
}
.gooey-blob {
  position: absolute; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .25); pointer-events: none;
  transition: transform .45s cubic-bezier(.16, 1, .3, 1), opacity .35s ease;
  opacity: .75; z-index: 0;
}
.gooey-blob.g1 { top: 50%; left: 20%; transform: translate(-50%, -50%) scale(0.6); }
.gooey-blob.g2 { top: 50%; right: 20%; transform: translate(50%, -50%) scale(0.6); }
.btn-gooey-wrap:hover .gooey-blob.g1 {
  transform: translate(-100%, -50%) scale(0.9); opacity: 1;
}
.btn-gooey-wrap:hover .gooey-blob.g2 {
  transform: translate(100%, -50%) scale(0.9); opacity: 1;
}

.btn-glass {
  position: relative; z-index: 1;
  cursor: pointer; font-size: 15.5px; font-weight: 600; letter-spacing: .3px;
  color: #ffffff;
  padding: 15px 54px; border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .18s cubic-bezier(.16, 1, .3, 1), background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn-glass:hover {
  transform: translateY(-2px) scale(1.02);
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .45);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.btn-glass:active { transform: translateY(0) scale(1); }
.btn-glass:disabled { opacity: .6; cursor: wait; }

.btn-primary {
  display: inline-block; border: none; cursor: pointer; font-size: 15.5px; font-weight: 700;
  color: #09090b; background: #ffffff;
  padding: 13px 32px; border-radius: 11px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
  transition: transform .12s, box-shadow .12s, filter .12s;
}
.btn-primary:hover { filter: brightness(0.92); transform: translateY(-1px); box-shadow: 0 12px 30px rgba(255, 255, 255, .15); }
.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; }

.cfg-grid { display: grid; gap: 14px; margin-bottom: 16px; }
.cfg-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.cfg-row.warn .cfg-label::after { content: " 请确认"; color: var(--ok); font-size: 12.5px; }
.cfg-label { width: 88px; font-weight: 600; flex-shrink: 0; font-size: 14.5px; color: var(--label-text); }
select {
  font-size: 15px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--input-bg); color: var(--text); min-width: 240px; max-width: 100%;
  transition: border-color .15s;
}
select:hover { border-color: var(--accent); }
.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; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; align-items: center; }
.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: 14px; 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);
}

.fit-toggle {
  display: block; width: 100%; margin-top: 22px; padding: 12px;
  background: transparent; border: none; cursor: pointer;
  color: var(--muted); font-size: 13.5px;
  border-top: 1px solid var(--line);
  transition: color .15s;
}
.fit-toggle:hover { color: var(--accent); }

.fit-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
.fit-table th, .fit-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.fit-table tbody tr { transition: background .12s; }
.fit-table tbody tr:hover { background: var(--row-hover); }
.fit-table th { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.fit-table td { font-variant-numeric: tabular-nums; }
.grade { display: inline-block; width: 26px; text-align: center; border-radius: 6px; font-weight: 700; color: #06131f; }
.g-S, .g-A { background: #34d399; } .g-B { background: #a3e635; }
.g-C { background: #fbbf24; } .g-D { background: #f87171; color: #fff; }
.g-F { background: var(--grade-f-bg); color: var(--grade-f-text); }
.legend { color: var(--faint); font-size: 12.5px; margin-top: 10px; }

/* ── 档位对比条 ── */
.cmp-title { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .5px; margin-top: 26px; }
.compare-row { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; padding-bottom: 6px; }
.cmp-card {
  flex: 1 0 128px; background: var(--cmp-bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; text-align: center;
}
.cmp-card.you { border-color: var(--you-border); background: var(--you-bg); box-shadow: var(--you-glow); }
.cmp-tier { font-size: 12.5px; color: var(--muted); }
.cmp-card.you .cmp-tier { color: var(--you-tier); font-weight: 700; }
.cmp-sub { font-size: 11.5px; color: var(--faint); margin-bottom: 6px; min-height: 16px; }
.cmp-model { font-size: 14.5px; font-weight: 700; margin-bottom: 2px; }
.cmp-speed { font-size: 12.5px; color: var(--speed-text); font-variant-numeric: tabular-nums; }

.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);
}

footer { text-align: center; color: var(--faint); font-size: 12.5px; padding: 30px 0 46px; }
.hidden { display: none !important; }

/* ── 毛玻璃检测按钮 ── */
.btn-glass {
  cursor: pointer; font-size: 16.5px; font-weight: 600; color: var(--text);
  padding: 15px 52px; border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--glass-shadow);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn-glass:hover {
  transform: translateY(-2px); background: var(--glass-hover);
  border-color: var(--glass-border-hover);
  box-shadow: var(--glass-shadow-hover);
}
.btn-glass:active { transform: translateY(0); }
.btn-glass:disabled { opacity: .6; cursor: wait; }

/* ── 推荐卡流光边框（纯 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; } }

@media (prefers-reduced-motion: reduce) {
  .top-block::before { animation: none; opacity: .5; }
  #hero h1, .aurora { animation: none; }
  #hero h1 { filter: drop-shadow(0 4px 28px var(--h1-glow-from)); }
  .why-card, .btn-glass, .btn-primary { transition: none; }
}

/* ── 商业化推荐卡片 ── */
.monetize-card {
  margin-top: 18px; padding: 18px 20px;
  border-radius: 14px; position: relative;
  background: var(--card-bg); border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  transition: transform .15s ease, border-color .15s ease;
}
.monetize-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.promo-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; flex-wrap: wrap; gap: 8px; }
.promo-title { font-size: 15px; font-weight: 700; color: var(--text); 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: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }
.promo-items { display: grid; gap: 8px; margin-bottom: 14px; }
.promo-item {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--input-bg); padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--line); font-size: 13px;
}
.promo-item-info { display: flex; flex-direction: column; gap: 2px; }
.promo-item-name { font-weight: 600; color: var(--text); }
.promo-item-desc { font-size: 12px; color: var(--faint); }
.promo-item-price { font-weight: 700; color: var(--text); font-size: 13.5px; margin-right: 12px; }
.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: 99999;
  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;
}



@media (max-width: 560px) {
  .cfg-label { width: 100%; }
  select { min-width: 100%; }
  #hero { padding-top: 56px; }
  .why-grid { grid-template-columns: 1fr; }
  .theme-select { top: 10px; right: 10px; }
}
