/* windows110.net — Apple 设计语言：大留白 · 大标题 · 发丝线 · 胶囊按钮 · 毛玻璃
   无框架、无外部字体请求；深色模式一等公民 */

:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --hairline: rgba(0, 0, 0, .08);
  --fill: #f5f5f7;
  --fill-hover: #e8e8ed;
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --glow: rgba(0, 113, 227, .10);
    --glow-strong: rgba(0, 113, 227, .18);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, .10);
    --radius-card: 20px;
    /* logo 磁贴底色不随深浅模式变化：白底 JPG logo 融入浅色磁贴，彩色 logo 像 iOS 图标 */
    --logo-tile: #f5f5f7;
  --ease: cubic-bezier(.25, .1, .25, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1d1d1f;
    --text: #f5f5f7;
    --text-2: #86868b;
    --hairline: rgba(255, 255, 255, .12);
    --fill: #2c2c2e;
    --fill-hover: #3a3a3c;
    --accent: #2997ff;
    --accent-hover: #409cff;
    --glow: rgba(41, 151, 255, .16);
    --glow-strong: rgba(41, 151, 255, .30);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, .55);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* 顶部品牌色晕：给首屏一个 Apple 式的色彩氛围 */
body::before {
  content: "";
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, 100vw);
  height: 520px;
  background: radial-gradient(closest-side, var(--glow), transparent 75%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: none; }
/* 正文链接的 hover 不只靠颜色变化，色觉障碍 / 低对比屏也能辨认 */
.prose a:hover, .methods a:hover, .site-footer a:hover, .hero .caption a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* 键盘焦点：全站统一可见焦点环 */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
/* 吸顶导航 52px，锚点跳转避免标题被压在导航下 */
[id], section[id], .faq-item { scroll-margin-top: 72px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- 导航：毛玻璃 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}

.site-header .wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 22px;
  min-height: 52px; /* 原为固定 height，中等宽度导航换行时会被裁切 */
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
  letter-spacing: -.02em;
}
.brand span { color: var(--text-2); font-weight: 500; }

.site-nav { display: flex; gap: 22px; flex-wrap: nowrap; margin-left: auto; min-width: 0; }

.site-nav a {
  color: var(--text-2);
  font-size: 13.5px;
  white-space: nowrap;
  transition: color .25s var(--ease);
}
.site-nav a:hover { color: var(--text); }

/* 密码工具入口：全站淡底可识别；进入工具页切成实心激活胶囊。
   关键：绝不给这个 <a> 加 padding —— flex 导航里单项加上下 padding 会把它内部
   文字推低，破坏与兄弟链接的基线对齐（≥1001px 下实测偏移 5px）。
   背景改用绝对定位伪元素外扩绘制，完全不参与布局，盒模型与其余导航项一致。 */
.site-nav a.nav-tool {
  position: relative;
  z-index: 0; /* 建立层叠上下文，让 ::before 的 -1 落在文字之后 */
  color: var(--accent);
  transition: color .2s var(--ease);
}
.site-nav a.nav-tool::before {
  content: "";
  position: absolute;
  inset: -6px -10px;
  border-radius: 980px;
  background: var(--glow);
  z-index: -1;
  transition: background .2s var(--ease);
}
.site-nav a.nav-tool:hover { color: var(--accent); }
.site-nav a.nav-tool:hover::before { background: var(--glow-strong); }
.site-nav a.nav-tool.is-current { color: #fff; font-weight: 600; }
.site-nav a.nav-tool.is-current::before,
.site-nav a.nav-tool.is-current:hover::before { background: var(--accent); }
.site-nav a.nav-tool:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 980px; }

@media (prefers-reduced-motion: reduce) {
  .site-nav a.nav-tool,
  .site-nav a.nav-tool::before { transition: none; }
}

/* ---------- 主体 ---------- */
main { max-width: 1080px; margin: 0 auto; padding: 0 22px 96px; }

/* Hero：大标题、一句话、两个胶囊 */
.hero { position: relative; padding: 84px 0 64px; text-align: left; }
.hero .eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 5px 14px;
  border: 1px solid var(--hairline);
  border-radius: 980px;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 56px);
  font-weight: 700;
  letter-spacing: -.022em;
  line-height: 1.08;
  margin: 0 0 16px;
  text-wrap: balance; /* 窄屏避免标题末尾掉出孤字 */
}
.prose h1, .category-intro h1, .methods h2 { text-wrap: balance; }
.hero .sub {
  color: var(--text-2);
  font-size: clamp(17px, 2.2vw, 21px);
  margin: 0 0 30px;
  max-width: 640px;
}

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.cta {
  display: inline-block;
  border-radius: 980px;
  padding: 12px 26px;
  font-size: 16px;
  font-weight: 500;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.cta:active { transform: scale(.98); }
.cta-primary { background: var(--accent); color: #fff; }
.cta-primary:hover { background: var(--accent-hover); }
.cta-secondary { background: var(--fill); color: var(--text); }
.cta-secondary:hover { background: var(--fill-hover); }

.hero .caption {
  color: var(--text-2);
  font-size: 13px;
  margin: 22px 0 0;
}
.hero .caption a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.hero .caption a:hover { color: var(--accent); }

/* ---------- 分类 ---------- */
.category { margin-bottom: 76px; }

.category-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.category-head h2 {
  font-size: clamp(21px, 2.8vw, 26px);
  font-weight: 700;
  letter-spacing: -.018em;
  margin: 0;
}
.category-head .count { color: var(--text-2); font-size: 14px; }
.category-head .head-links { margin-left: auto; display: flex; gap: 18px; font-size: 14px; }
.category-head .head-links a { color: var(--accent); }

/* ---------- 面包屑 ---------- */
.crumb { color: var(--text-2); font-size: 13px; margin: 0; padding-top: 44px; }
.crumb a { color: var(--text-2); }
.crumb a:hover { color: var(--text); }
.crumb + .category-intro { padding-top: 14px; }
.crumb + .prose { padding-top: 14px; }

/* 分类页页头 */
.category-intro { padding: 72px 0 48px; }
.category-intro h1 {
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 12px;
}
.category-intro .lead { color: var(--text-2); font-size: 18px; margin: 0 0 18px; max-width: 680px; }
.category-intro .meta { color: var(--text-2); font-size: 13.5px; margin: 0; }
.category-intro .meta a { color: var(--accent); }

/* ---------- 卡片：发丝线 + 悬浮微升 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 16px;
}

.card {
  display: flex;
  align-items: stretch;
  /* 高度由内容决定：等高拉伸会让「只有官网下载」的矮卡片内部空出一大块 */
  height: auto;
  align-self: start;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  color: var(--text);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}

/* 无操作行的卡片：内容垂直居中，避免拉伸后底部留空 */
.card:not(.has-install) { align-items: center; }
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.card img, .card .avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex: none;
  object-fit: contain;
  background: var(--logo-tile);
  padding: 5px;
}

.card .avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 17px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}

.card-main {
  display: flex;
  gap: 13px;
  align-items: center;
  flex: 1;
  min-width: 0;
  padding: 16px;
  color: var(--text);
}
.card.has-install .card-main { padding: 0; }
/* 长描述（尤其含长英文）默认 min-width:auto 会把卡片撑出网格，造成整页横向溢出 */
.card-main > div { min-width: 0; flex: 1 1 auto; }
.card strong, .card p { overflow-wrap: anywhere; }

.card strong { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 3px; }
.card p {
  margin: 0;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 安装按钮：App Store 式（文字整行 + 底部胶囊行） ---------- */
.card.has-install { flex-direction: column; padding: 16px; gap: 14px; }
.card.has-install .card-main { flex: none; padding: 0; align-items: flex-start; min-height: 64px; }
/* 信息区统一最小高度 → 同一行卡片的主按钮「官网下载」保持横向对齐；
   操作区紧贴内容，不再用 margin-top:auto 把空白堆在按钮上方 */
.card.has-install .card-actions { margin-top: 0; }

/* 操作区固定为「主操作独占一行 + 次要操作两列」，卡片高度不再随按钮数量漂移 */
.card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  align-items: stretch;
}
.card-actions > * { min-width: 0; }
.card-actions .pill-primary { grid-column: 1 / -1; }
.card-actions > :only-child { grid-column: 1 / -1; }

/* 推广标注 */
.tag-promo {
  display: inline-block;
  vertical-align: 2px;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--fill);
  color: var(--text-2);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
}

/* 幽灵胶囊：详情 / 官网 / 打开工具 共用，与安装按钮同规格 */
.pill-ghost {
  border-radius: 980px;
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  transition: color .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.pill-ghost:hover { color: var(--text); background: var(--fill); border-color: transparent; }

/* 详情页 */
.prose.detail { padding-top: 14px; }
.prose .meta { color: var(--text-2); font-size: 13.5px; }
.hint { color: var(--text-2); font-size: 12.5px; margin-left: 10px; }

/* 复制成功后的下一步引导条 */
#copy-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 12px 20px;
  font-size: 14px;
  line-height: 1.5;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  z-index: 50;
  max-width: min(92vw, 480px);
  text-align: center;
}
#copy-toast.show { opacity: 1; transform: translate(-50%, 0); }
.prose h3 { font-size: 15.5px; font-weight: 600; margin: 18px 0 6px; }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.cmd {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 10px 14px;
  margin: 8px 0;
  overflow: auto;
}
.cmd-verb {
  flex: none;
  color: var(--text-2);
  font-size: 12px;
  width: 32px;
}
.cmd code { flex: 1; min-width: 0; word-break: break-all; }
.cmd .install-btn { flex: none; }

.install-btn {
  border: 1px solid transparent;
  border-radius: 980px;
  padding: 6px 14px;
  background: var(--fill);
  color: var(--text);
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.install-btn:hover { background: var(--fill-hover); }
.install-btn:active { transform: scale(.96); }
.install-btn.copied { background: var(--accent); color: #fff; }

/* 分类/清单页的下载按钮 */
.cta-mini {
  display: inline-block;
  border-radius: 980px;
  padding: 8px 18px;
  background: var(--fill);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  transition: background .25s var(--ease);
}
.cta-mini:hover { background: var(--fill-hover); text-decoration: none; }

/* ---------- 静态页（about / 密码生成器） ---------- */
.prose { max-width: 720px; padding-top: 72px; }
.prose h1 {
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 20px;
}
.prose h2 { font-size: 21px; font-weight: 600; letter-spacing: -.015em; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--text); }
.prose .muted { color: var(--text-2); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }

.pwd-box {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 28px;
  margin: 28px 0;
}

.pwd-output {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 21px;
  letter-spacing: 1px;
  text-align: center;
  padding: 18px;
  border: 1px solid var(--hairline);
  border-radius: 16px;
  margin: 0 0 18px;
  user-select: all;
  word-break: break-all;
}

.pwd-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.pwd-row label { color: var(--text-2); font-size: 14px; }
.pwd-row input[type="number"] {
  width: 76px;
  padding: 9px 12px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--fill);
  color: var(--text);
  font: inherit;
}

.btn {
  display: inline-block;
  padding: 10px 22px;
  border: 0;
  border-radius: 980px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  transition: background .25s var(--ease);
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn.ghost { background: var(--fill); color: var(--text); }
.btn.ghost:hover { background: var(--fill-hover); }

/* ---------- 页脚 ---------- */
.site-footer { border-top: 1px solid var(--hairline); }
.site-footer .wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 26px 22px 40px;
  color: var(--text-2);
  font-size: 12.5px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--text); }
.site-footer .sep { opacity: .5; }

/* ---------- 自定义一键装机 ---------- */
.builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}

.seg {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--fill);
  border-radius: 12px;
  margin-bottom: 12px;
}
.seg-btn {
  border: 0;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 9px;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.seg-btn.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, .08); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip {
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--text-2);
  font: inherit;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 980px;
  cursor: pointer;
  transition: color .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.chip:hover { color: var(--text); }
.chip.active { background: var(--accent); border-color: transparent; color: #fff; }

.pick-list {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  overflow: hidden;
  max-height: 560px;
  overflow-y: auto;
}
.pick {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--hairline);
  cursor: pointer;
  font-size: 14px;
  transition: background .2s var(--ease);
}
.pick:last-child { border-bottom: 0; }
.pick:hover { background: var(--fill); }
.pick input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.pick-nopkg { cursor: default; color: var(--text-2); }
.pick-nopkg:hover { background: transparent; }
.pick-dot { width: 17px; height: 17px; border-radius: 50%; border: 1px solid var(--hairline); flex: none; }
.pick-name { flex: none; font-weight: 500; }
.pick-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  color: var(--text-2);
  background: var(--fill);
  border-radius: 6px;
  padding: 2px 7px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pick-nopkg-tag { font-size: 11.5px; color: var(--text-2); }
.pick-official { margin-left: auto; }

.builder-panel {
  position: sticky;
  top: 68px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 20px;
}
.panel-count { margin: 0 0 6px; font-size: 14.5px; }
.panel-count strong { font-size: 20px; font-weight: 700; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.panel-actions .btn { padding: 9px 18px; font-size: 14px; }
.panel-actions .btn:disabled { opacity: .45; cursor: not-allowed; }
.gen-out {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
  background: var(--fill);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 12px;
  margin: 14px 0 0;
  max-height: 300px;
  overflow: auto;
  user-select: all;
}

/* ---------- 教程（故障解决中心） ---------- */
.guide .step { margin: 20px 0 26px; }
.guide .step h3 { font-size: 16.5px; font-weight: 600; margin: 0 0 8px; }
.guide .step ul, .guide .step ol { margin: 0 0 8px; }
.step-level {
  display: inline-block;
  margin-bottom: 8px;
  padding: 2px 10px;
  border-radius: 980px;
  font-size: 12px;
  font-weight: 500;
}
.lv-low { background: rgba(52, 199, 89, .14); color: #248a3d; }
.lv-mid { background: rgba(255, 159, 10, .16); color: #b25000; }
.lv-high { background: rgba(255, 59, 48, .12); color: #c0392b; }
@media (prefers-color-scheme: dark) {
  .lv-low { color: #4cd964; }
  .lv-mid { color: #ffb340; }
  .lv-high { color: #ff6961; }
}
.verify-status { color: var(--text-2); }
.src-list li { margin-bottom: 6px; }
.guide-fig { margin: 14px 0 6px; }
.guide-fig img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--hairline);
  border-radius: 14px;
}
.guide-fig figcaption { color: var(--text-2); font-size: 12.5px; margin-top: 8px; }
.related-wrap { margin-top: 8px; }
.related-title { font-size: 21px; font-weight: 600; letter-spacing: -.015em; margin: 0 0 16px; }

/* ---------- v2：三层安装路径 / 首页方式说明 / FAQ ---------- */

/* 主操作：官网下载。淡色底 + 品牌色，层级高于次要按钮但不喧宾夺主 */
.pill-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 36px;
  border-radius: 980px;
  padding: 7px 16px;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-align: center;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.pill-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.card-actions .pill-ghost {
  justify-content: center;
  min-height: 36px;
  padding-left: 8px;
  padding-right: 8px;
  text-align: center;
}

/* 命令行折叠区：默认收起，进阶用户按需展开 */
.cmd-details { border-top: 1px solid var(--hairline); margin-top: -2px; }
.cmd-details > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 500;
}
.cmd-details > summary::-webkit-details-marker { display: none; }
.cmd-details > summary::before {
  content: "›";
  display: inline-block;
  font-size: 17px;
  line-height: 1;
  transform: rotate(0deg);
  transition: transform .2s var(--ease);
}
.cmd-details[open] > summary::before { transform: rotate(90deg); }
.cmd-details > summary:hover { color: var(--text); }
.cmd-details-body { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 0 4px; }
.cmd-help {
  font-size: 12px;
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cmd-help:hover { color: var(--accent); }

/* 客户端筛选会写 hidden；.card 是 display:flex，需强制覆盖 UA 的 [hidden] 规则 */
[hidden] { display: none !important; }

/* 站内搜索 */
.site-search { max-width: 560px; margin: 4px 0 8px; }
.site-search > label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 8px 2px; }
.site-search-row { position: relative; display: flex; align-items: center; }
.site-search-icon {
  position: absolute; left: 15px; top: 50%; transform: translateY(-52%);
  font-size: 21px; line-height: 1; color: var(--text-2); pointer-events: none;
}
.site-search input {
  width: 100%; min-height: 46px;
  padding: 11px 16px 11px 43px;
  border: 1px solid var(--hairline);
  border-radius: 980px;
  background: var(--surface);
  color: var(--text);
  font: inherit; font-size: 15px;
  -webkit-appearance: none;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-search input::placeholder { color: var(--text-2); opacity: .85; }
.site-search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); outline: none; }
.site-search input::-webkit-search-cancel-button { cursor: pointer; }
.site-search-count { min-height: 20px; margin: 8px 0 0 2px; font-size: 13px; color: var(--text-2); }

/* ---------- 三步引导：柔和、带图示，取代原来的「三种安装方式」技术分类 ---------- */
.steps { margin-top: 4px; padding: 8px 0 56px; border-top: 1px solid var(--hairline); }
.steps h2, .quick-start h2 {
  font-size: clamp(21px, 2.8vw, 27px);
  font-weight: 700;
  letter-spacing: -.018em;
  margin: 36px 0 20px;
  text-wrap: balance;
}
.step-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.step {
  align-self: start;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 20px;
}
.step-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  border-radius: 15px;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  color: var(--accent);
  margin-bottom: 14px;
}
.step-no { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; color: var(--text-2); }
.step h3 { font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; margin: 6px 0 6px; }
.step p { color: var(--text-2); font-size: 13.5px; line-height: 1.6; margin: 0; }
.steps-note { color: var(--text-2); font-size: 13px; margin: 16px 0 0; }

/* 按用途快速开始 */
.quick-start { padding: 0 0 52px; }
.quick-start h2 { margin-top: 0; }
.quick-start .chips { gap: 10px; }
.chip-link {
  display: inline-flex; align-items: center; min-height: 40px;
  padding: 9px 18px; border-radius: 980px;
  background: var(--fill); color: var(--text);
  font-size: 14px; font-weight: 500;
  transition: background .25s var(--ease);
}
.chip-link:hover { background: var(--fill-hover); text-decoration: none; }

/* 进阶能力：放在页尾，默认折叠，视觉权重刻意压低 */
.pro-area { margin: 0 0 56px; border-top: 1px solid var(--hairline); padding-top: 16px; }
.pro-area > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 8px; min-height: 40px;
  color: var(--text-2); font-size: 13px; font-weight: 500;
}
.pro-area > summary::-webkit-details-marker { display: none; }
.pro-area > summary::before { content: "›"; font-size: 17px; line-height: 1; transition: transform .2s var(--ease); }
.pro-area[open] > summary::before { transform: rotate(90deg); }
.pro-area > summary:hover { color: var(--text); }
.pro-body { padding: 2px 0 8px 16px; }
.pro-body p { color: var(--text-2); font-size: 13px; line-height: 1.7; margin: 0 0 10px; max-width: 760px; }
.pro-links a { font-size: 13px; }
.pro-inline { margin: 0 0 14px; }
.pro-inline > summary { cursor: pointer; color: var(--text-2); font-size: 13px; padding: 6px 0; }
.pro-inline > summary:hover { color: var(--text); }
.pro-inline .hint { display: block; margin: 6px 0 0; }

/* 首页：三种安装方式说明 */
.methods { margin-top: 4px; padding: 8px 0 68px; border-top: 1px solid var(--hairline); }
.methods h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -.018em;
  margin: 40px 0 22px;
}
.method-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 16px; }
.method {
  display: flex;
  flex-direction: column;
  align-self: start; /* 不拉伸，正文长短不同时不在卡片里堆留白 */
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 22px;
}
.method-no {
  font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .08em;
  color: var(--accent);
}
.method h3 { font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; margin: 12px 0 8px; }
.method p { color: var(--text-2); font-size: 13.5px; line-height: 1.6; margin: 0 0 14px; }
.method a { font-size: 13.5px; font-weight: 500; align-self: flex-start; }
.methods-note { color: var(--text-2); font-size: 13px; margin: 18px 0 0; }

/* FAQ 页与教程内 FAQ：问答对，避免继承 .prose h2 的 40px 大间距 */
.faq { margin: 10px 0 16px; }
.faq-item { padding: 18px 0; border-bottom: 1px solid var(--hairline); }
.faq-item:first-child { border-top: 1px solid var(--hairline); }
.prose .faq-item h2, .prose .faq-item h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 0 0 8px;
}
.faq-item p { color: var(--text-2); font-size: 14.5px; line-height: 1.65; margin: 0; }
.prose .lead { color: var(--text-2); font-size: 17px; line-height: 1.6; margin: 0 0 16px; }
.foot-guides { white-space: nowrap; }

/* ---------- 教程卡片：纵向结构 ---------- */
.card.guide-card {
  flex-direction: column;
  align-items: stretch;
  padding: 18px;
  gap: 0;
}
.guide-card .guide-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.guide-card .avatar { width: 40px; height: 40px; font-size: 16px; }
.guide-card .guide-tag {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--fill);
  border-radius: 980px;
  padding: 3px 10px;
}
.guide-card strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.4;
  margin: 0 0 6px;
}
.guide-card p { margin-bottom: 0; }
.guide-card .guide-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  color: var(--text-2);
}
.guide-card .guide-go { color: var(--accent); font-weight: 500; white-space: nowrap; }

/* ---------- 中等宽度（641–1000px）：原版导航换行被固定 header 裁切 ----------
   保持全部导航项在 DOM 中（SEO 内链不丢），改为单行横向滚动 + 右缘渐隐提示 */
@media (min-width: 641px) and (max-width: 1000px) {
  .site-header .wrap { flex-wrap: nowrap; gap: 18px; }
  .brand { flex: none; }
  .site-nav {
    flex: 1 1 auto;
    gap: 14px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    padding: 8px 0;
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 97%, transparent 100%);
    mask-image: linear-gradient(to right, #000 0, #000 97%, transparent 100%);
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex: none; padding: 6px 0; font-size: 13px; }
}

/* ---------- 窄屏 ---------- */
@media (max-width: 640px) {
  .site-header .wrap { min-height: 0; padding: 10px 16px; flex-wrap: wrap; }
  .site-nav { margin-left: 0; width: 100%; gap: 14px 16px; flex-wrap: wrap; }
  .site-nav a { padding: 4px 0; }
  .hero { padding: 48px 0 44px; }
  .category-intro { padding: 40px 0 32px; }
  main { padding-bottom: 56px; }
  /* 触控目标加大：按钮高度 ≥ 44px */
  .install-btn, .pill-ghost { padding: 10px 18px; font-size: 13.5px; min-height: 44px; }
  .card-actions .pill-ghost { padding: 10px 6px; min-height: 44px; font-size: 12.5px; }
  .pill-primary { min-height: 44px; font-size: 14px; }
  .cmd-details > summary { min-height: 44px; }
  .cta { padding: 13px 24px; }
  .cta-mini { padding: 11px 20px; }
  .hint { display: block; margin: 8px 0 0; }
  #copy-toast { bottom: 18px; font-size: 13.5px; }
  .site-search input { font-size: 16px; }
  .steps { padding-bottom: 40px; }
  .steps h2, .quick-start h2 { margin-top: 28px; }
  .step-grid { grid-template-columns: 1fr; }
  .step { padding: 18px; }
  .quick-start { padding-bottom: 40px; }
  .pro-area { margin-bottom: 40px; }
  .foot-guides { white-space: normal; }
  /* 装机工具：单列，面板吸底 */
  .builder { grid-template-columns: 1fr; }
  .builder-panel { position: static; }
  .pick { padding: 12px 14px; }
  .pick input[type="checkbox"] { width: 20px; height: 20px; }
}

/* ---------- 下载之后：按屏幕上看到的提示逐条对照 ----------
   语气刻意做得柔和不告警：安抚句用蓝色渐变，停止条件才用暖色，
   避免整页像一张安全警告单，把第一次装软件的人吓退。 */
.after-page { max-width: 860px; padding-bottom: 24px; }
.after-page .lead { font-size: 17.5px; }
.reassure {
  margin: 24px 0 28px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
}
.reassure strong {
  display: block;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: .04em;
  margin-bottom: 6px;
}
.reassure p { margin: 0; font-size: 16px; line-height: 1.65; }

.scene-jump { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 32px; }
.scene-jump > span { font-size: 13px; color: var(--text-2); margin-right: 4px; }
.scene-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 14px;
  background: var(--fill);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text);
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.scene-jump a:hover { background: var(--fill-hover); transform: translateY(-1px); }

.scene-list { display: grid; gap: 16px; }
.scene {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 24px 26px;
  scroll-margin-top: 90px;
}
.scene-no {
  font-size: 26px;
  font-weight: 600;
  color: var(--accent);
  opacity: .38;
  line-height: 1.1;
  letter-spacing: -.04em;
}
.scene-body h3 { font-size: 18px; font-weight: 600; margin: 0 0 14px; letter-spacing: -.015em; }
.scene-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--hairline);
}
.scene-row:first-of-type { border-top: 0; padding-top: 0; }
.scene-key { font-size: 12.5px; font-weight: 600; color: var(--text-2); padding-top: 3px; }
.scene-row p { margin: 0; font-size: 14.5px; line-height: 1.7; }
.scene-row-calm {
  background: linear-gradient(90deg, var(--glow), transparent 72%);
  border-radius: 8px;
  border-top: 0;
  margin: 2px -12px;
  padding: 10px 12px;
}
.scene-row-do .scene-key { color: var(--accent); }
.scene-row-stop .scene-key { color: #a15c00; }
.scene-tech { margin: 12px 0 0; font-size: 12px; color: var(--text-2); line-height: 1.55; }

.red-flags {
  margin: 40px 0 8px;
  padding: 24px 26px;
  border: 1px solid rgba(190, 60, 50, .22);
  background: rgba(190, 60, 50, .05);
  border-radius: var(--radius-card);
}
.red-flags h2 { margin: 0 0 14px !important; font-size: 20px; color: #a93830; }
.red-flags ul { margin: 0; padding-left: 20px; }
.red-flags li { margin-bottom: 8px; font-size: 14.5px; line-height: 1.65; }
.red-flags-action {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  font-size: 14.5px;
  font-weight: 500;
}

.qa-list { margin: 12px 0 16px; }
.qa-item { border-bottom: 1px solid var(--hairline); }
.qa-item:first-child { border-top: 1px solid var(--hairline); }
.qa-item summary {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 14px 30px 14px 0;
  cursor: pointer;
  list-style: none;
  font-size: 15.5px;
  font-weight: 600;
}
.qa-item summary::-webkit-details-marker { display: none; }
.qa-item summary::after { content: "＋"; position: absolute; right: 4px; color: var(--accent); font-size: 18px; }
.qa-item[open] summary::after { content: "－"; }
.qa-item > div { padding: 0 28px 18px 0; color: var(--text-2); font-size: 14.5px; line-height: 1.75; }

.after-sources ul { padding-left: 20px; }
.after-sources li { font-size: 13.5px; margin-bottom: 8px; }
.verify-note { font-size: 12.5px; color: var(--text-2); line-height: 1.65; }
.after-next {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--text-2);
}

/* 首页三步下方的静态说明：默认收起，内容仍完整留在 HTML 中供搜索引擎与 AI 抓取 */
.after-inline { margin: 18px 0 0; border-top: 1px solid var(--hairline); padding-top: 14px; }
.after-inline > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  cursor: pointer;
  list-style: none;
  font-size: 13.5px;
  color: var(--accent);
}
.after-inline > summary::-webkit-details-marker { display: none; }
.after-inline > summary::before { content: "›"; font-size: 16px; transition: transform .2s var(--ease); }
.after-inline[open] > summary::before { transform: rotate(90deg); }
.after-inline-body { padding: 8px 0 4px 18px; }
.after-inline-body p, .after-inline-body li { font-size: 13.5px; line-height: 1.75; color: var(--text-2); }
.after-inline-body ul { padding-left: 20px; }

/* 点击「官网下载」后的陪伴卡：不影响文档流、不盖住内容、不改卡片高度 */
.go-hint {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: min(330px, calc(100vw - 32px));
  padding: 18px 20px 16px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .14);
  animation: goHintIn .28s var(--ease) both;
}
@keyframes goHintIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.go-hint p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.65; color: var(--text-2); }
.go-hint p.go-hint-title { font-size: 15px; font-weight: 600; color: var(--text); padding-right: 24px; }
.go-hint-close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--text-2);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
}
.go-hint-close:hover { background: var(--fill); }
.go-hint p.go-hint-links { display: flex; align-items: center; gap: 18px; margin: 12px 0 0; }
.go-hint-links a { font-size: 13.5px; font-weight: 600; }
.go-hint-never {
  border: 0;
  background: transparent;
  padding: 6px 0;
  color: var(--text-2);
  font-size: 12.5px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 32px;
}

.scene-jump a:focus-visible,
.qa-item summary:focus-visible,
.after-inline > summary:focus-visible,
.go-hint a:focus-visible,
.go-hint button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

@media (prefers-color-scheme: dark) {
  .go-hint { box-shadow: 0 12px 40px rgba(0, 0, 0, .6); }
  .scene-row-stop .scene-key { color: #ffb454; }
  .red-flags { background: rgba(255, 120, 105, .07); border-color: rgba(255, 140, 125, .24); }
  .red-flags h2 { color: #ff9b90; }
}

@media (max-width: 640px) {
  .after-page { padding-top: 40px; }
  .scene { grid-template-columns: 1fr; gap: 8px; padding: 20px 18px; }
  .scene-no { font-size: 18px; opacity: .55; }
  .scene-body h3 { font-size: 17px; }
  .scene-row { grid-template-columns: 1fr; gap: 4px; padding: 10px 0; }
  .scene-row-calm { margin: 2px -8px; padding: 10px 8px; }
  .scene-jump a { min-height: 40px; }
  .red-flags { padding: 20px 18px; }
  .after-inline > summary { min-height: 44px; }
  .go-hint { right: 12px; left: 12px; bottom: 12px; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .go-hint { animation: none; }
  .scene-jump a, .after-inline > summary::before, .pro-area > summary::before { transition: none; }
}

/* ---------- 密码生成器（按「注册账号顺手拿一串密码」重构） ----------
   刻意不用表单感：结果最大、复制最重、参数收进折叠区。
   卡片高度完全由内容撑开，不用 flex:1 / margin-top:auto，避免推底留白。 */
.pw-tool { max-width: 860px; }
.pw-tool .eyebrow {
  margin: 0 0 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--accent);
}
.pw-tool h1 { margin-bottom: 10px; }
.pw-tool .lead { margin-bottom: 0; }

.pw-privacy {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 24px 0 18px;
  padding: 15px 18px;
  background: linear-gradient(90deg, var(--glow), transparent 88%);
  border: 1px solid var(--hairline);
  border-radius: 14px;
}
.pw-privacy-icon { flex: 0 0 auto; color: var(--accent); margin-top: 2px; }
.pw-privacy strong { display: block; font-size: 14.5px; }
.pw-tool .pw-privacy p { margin: 3px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--text-2); }

.pw-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: 26px 28px 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .02);
}
.pw-display {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 12px 16px 20px;
  background: var(--fill);
  border: 1px solid var(--hairline);
  border-radius: 16px;
}
.pw-out {
  flex: 1 1 auto;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(20px, 3vw, 29px);
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.4;
  word-break: break-all;
  color: var(--text);
  cursor: pointer;
  user-select: text;
}
.pw-eye {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
}
.pw-eye:hover { background: var(--fill-hover); color: var(--text); }
.pw-eye.is-on { color: var(--accent); }
.pw-tool .pw-status {
  margin: 10px 0 0;
  min-height: 1.35em;
  font-size: 13px;
  color: var(--text-2);
}

.pw-actions { display: flex; gap: 12px; margin: 18px 0 0; }
.pw-primary, .pw-secondary {
  min-height: 48px;
  padding: 12px 26px;
  border: 0;
  border-radius: 980px;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.pw-primary { flex: 1 1 auto; background: var(--accent); color: #fff; }
.pw-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.pw-primary.copied { background: #1a9e5c; }
.pw-secondary { flex: 0 0 auto; background: var(--fill); color: var(--text); }
.pw-secondary:hover { background: var(--fill-hover); transform: translateY(-1px); }

.pw-strength {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--text-2);
}
.pw-bars { display: flex; gap: 4px; flex: 0 0 auto; }
.pw-bars i { width: 22px; height: 5px; border-radius: 3px; background: var(--fill-hover); }
.pw-bars i.on { background: var(--accent); }
.pw-bars[data-n="1"] i.on { background: #d97706; }
.pw-bars[data-n="2"] i.on { background: #d97706; }

.pw-presets { margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--hairline); }
.pw-tool .pw-label { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.pw-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.pw-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 9px 16px;
  background: var(--fill);
  border: 1px solid var(--hairline);
  border-radius: 980px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.pw-chip small { font-size: 11.5px; font-weight: 400; color: var(--text-2); }
.pw-chip:hover { background: var(--fill-hover); transform: translateY(-1px); }
.pw-chip.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.pw-chip.is-active small { color: rgba(255, 255, 255, .8); }
.pw-sym-quick {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}
.pw-sym-quick input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
  flex: none;
}
.pw-tool .pw-preset-note {
  margin: 12px 0 0;
  min-height: 1.35em;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
}

.pw-advanced { margin: 20px 0 0; border-top: 1px solid var(--hairline); padding-top: 14px; }
.pw-advanced > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  cursor: pointer;
  list-style: none;
  font-size: 13.5px;
  color: var(--accent);
}
.pw-advanced > summary::-webkit-details-marker { display: none; }
.pw-advanced > summary::before { content: "›"; font-size: 16px; transition: transform .2s var(--ease); }
.pw-advanced[open] > summary::before { transform: rotate(90deg); }
.pw-advanced-body { padding: 14px 0 0 18px; }
.pw-length-row { display: flex; align-items: center; gap: 14px; }
.pw-length-row label { flex: 0 0 auto; font-size: 14px; font-weight: 600; }
.pw-length-row input[type="range"] { flex: 1 1 auto; min-width: 120px; height: 30px; accent-color: var(--accent); }
.pw-length-row output {
  flex: 0 0 54px;
  text-align: right;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.pw-toggles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 8px 18px;
  margin: 18px 0 0;
}
.pw-toggles label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  font-size: 14px;
  cursor: pointer;
}
.pw-toggles input[type="checkbox"] { flex: 0 0 auto; width: 18px; height: 18px; accent-color: var(--accent); }
.pw-toggle-wide { grid-column: 1 / -1; }
.pw-tool .pw-note { margin: 14px 0 0; font-size: 12.5px; line-height: 1.65; color: var(--text-2); }
.pw-tool h2 { margin-top: 38px; }
.pw-tips li { margin-bottom: 10px; }

.pw-out:focus-visible,
.pw-eye:focus-visible,
.pw-primary:focus-visible,
.pw-secondary:focus-visible,
.pw-chip:focus-visible,
.pw-advanced > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

@media (prefers-color-scheme: dark) {
  .pw-card { box-shadow: none; }
  .pw-primary.copied { background: #30c07a; }
}

@media (max-width: 640px) {
  .pw-card { padding: 20px 16px; border-radius: 20px; }
  .pw-display { padding: 14px 8px 14px 14px; }
  .pw-out { font-size: clamp(18px, 5.8vw, 24px); }
  .pw-eye { width: 44px; height: 44px; }
  .pw-actions { flex-direction: column; }
  .pw-primary, .pw-secondary { width: 100%; min-height: 48px; }
  .pw-advanced-body { padding-left: 0; }
  .pw-length-row { flex-wrap: wrap; gap: 8px 12px; }
  .pw-length-row input[type="range"] { min-width: 140px; }
  .pw-toggles { grid-template-columns: 1fr 1fr; gap: 6px 10px; }
  .pw-toggles label { font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .pw-primary, .pw-secondary, .pw-chip, .pw-advanced > summary::before { transition: none; }
  .pw-primary:hover, .pw-secondary:hover, .pw-chip:hover { transform: none; }
}


/* ---------- 在线随机密码生成 · 产品化补充 ---------- */
.site-footer .foot-tools { white-space: nowrap; }

/* 99 位密钥不能把卡片撑爆，但屏幕上看到的仍等于复制到的 */
.pw-out.is-long { font-size: clamp(15px, 2vw, 20px); line-height: 1.55; letter-spacing: .01em; }

.pw-exclude-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.pw-exclude-row label { flex: 0 0 auto; font-size: 14px; font-weight: 600; }
.pw-exclude-row input[type="text"] {
  flex: 1 1 220px; min-width: 180px; max-width: 330px; min-height: 40px;
  padding: 8px 12px; border: 1px solid var(--hairline); border-radius: 10px;
  background: var(--bg); color: var(--text); font: inherit; font-size: 14px;
}
.pw-exclude-row input[type="text"]::placeholder { color: var(--text-2); opacity: .8; }

.pw-batch {
  margin: 18px 0 0; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 18px;
}
.pw-batch-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pw-batch-row label { font-size: 14px; font-weight: 600; }
.pw-batch-row select {
  min-height: 44px; padding: 8px 12px; border: 1px solid var(--hairline);
  border-radius: 10px; background: var(--bg); color: var(--text);
  font: inherit; font-size: 14px; cursor: pointer;
}
.pw-batch-row .pw-secondary { flex: 0 0 auto; min-height: 44px; padding: 9px 18px; font-size: 14px; }
.pw-batch-row .pw-secondary:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.pw-batch-list {
  margin: 16px 0 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.pw-batch-list:empty { display: none; }
.pw-line {
  display: block; width: 100%; min-height: 44px; padding: 10px 12px;
  border: 1px solid var(--hairline); border-radius: 10px;
  background: var(--bg); color: var(--text); text-align: left;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px; line-height: 1.5; word-break: break-all; cursor: pointer;
  transition: background .15s var(--ease), border-color .15s var(--ease);
}
.pw-line:hover { background: var(--fill); border-color: var(--accent); }
.pw-line.copied { border-color: #1a9e5c; background: rgba(26, 158, 92, .09); }
.pw-tool .pw-batch-note { margin: 14px 0 0; font-size: 12.5px; line-height: 1.65; color: var(--text-2); }
.pw-tool h3 { margin-top: 24px; font-size: 17px; }
.pw-glossary li { margin-bottom: 9px; }

.pw-exclude-row input[type="text"]:focus-visible,
.pw-batch-row select:focus-visible,
.pw-batch-row .pw-secondary:focus-visible,
.pw-line:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

@media (prefers-color-scheme: dark) {
  .pw-line.copied { background: rgba(48, 192, 122, .12); border-color: #30c07a; }
}

@media (max-width: 640px) {
  .site-footer .foot-tools { white-space: normal; }
  .pw-out.is-long { font-size: 15px; }
  .pw-exclude-row input[type="text"] { max-width: none; flex-basis: 100%; }
  .pw-batch { padding: 16px 14px; }
  .pw-batch-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .pw-batch-row label,
  .pw-batch-row select { grid-column: 1 / -1; width: 100%; }
  .pw-batch-row .pw-secondary { flex: initial; width: 100%; padding: 9px 10px; }
  .pw-batch-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .pw-line { transition: none; }
  .pw-batch-row .pw-secondary:hover { transform: none; }
}

/* ---------- 首页搜索引擎式入口：极简首屏（垂直居中，搜索后压缩让位结果） ---------- */
.hero-search {
  padding: 56px 0 32px;
  min-height: calc(100vh - 320px);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
}
/* 三色极光：首页专属氛围层（亮暗两态都成立；body 已有一层单色品牌晕，这里叠加品牌蓝+紫+青） */
.hero-search::before {
  content: ""; position: absolute; z-index: 0;
  left: 50%; top: -60px; transform: translateX(-50%);
  width: min(980px, 96vw); height: 480px;
  background:
    radial-gradient(560px 300px at 28% 30%, hsla(211, 95%, 58%, .18), transparent 70%),
    radial-gradient(480px 280px at 74% 18%, hsla(262, 85%, 62%, .12), transparent 70%),
    radial-gradient(420px 240px at 52% 70%, hsla(188, 90%, 52%, .11), transparent 72%);
  filter: blur(36px);
  pointer-events: none;
  animation: aurora-drift 18s ease-in-out infinite alternate;
}
.hero-search > * { position: relative; z-index: 1; }
@keyframes aurora-drift {
  from { transform: translateX(-50%) translate3d(-1.5%, -1%, 0) scale(1); }
  to   { transform: translateX(-50%) translate3d(1.5%, 1.5%, 0) scale(1.05); }
}
.hero-search h1 { font-size: clamp(34px, 5vw, 56px); letter-spacing: -0.02em; }
body.searched .hero-search {
  min-height: 0;
  padding: 32px 0 18px;
  justify-content: flex-start;
}

.searchbox {
  position: relative; z-index: 5; /* 高于同层的 caption/热门词（.hero-search > * 均为 z-1），下拉才不会被它们压住 */
  width: 100%; max-width: 660px; margin: 28px 0 0;
}
.searchbox-icon {
  position: absolute; left: 24px; top: 50%; transform: translateY(-52%);
  color: var(--text-2); pointer-events: none; display: flex;
}
.searchbox input {
  width: 100%; min-height: 64px;
  padding: 16px 64px 16px 58px;
  border: 1px solid var(--hairline);
  border-radius: 980px;
  background: var(--surface);
  color: var(--text);
  font: inherit; font-size: 17px;
  /* 三层投影：贴地阴影 + 悬浮阴影 + 品牌色环境投影，做出「浮在极光上」的层次 */
  box-shadow:
    0 1px 1px rgba(0, 0, 0, .03),
    0 10px 30px rgba(0, 0, 0, .09),
    0 34px 80px -24px hsla(211, 90%, 40%, .22);
  -webkit-appearance: none;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}
.searchbox input::placeholder { color: var(--text-2); opacity: .8; transition: opacity .2s var(--ease); }
.searchbox input.ph-fade::placeholder { opacity: 0; }
.searchbox input:focus {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow:
    0 0 0 4px var(--glow-strong),
    0 14px 38px rgba(0, 0, 0, .10),
    0 40px 90px -24px hsla(211, 90%, 40%, .30);
  outline: none;
}
.searchbox input::-webkit-search-cancel-button { cursor: pointer; }
.searchbox-kbd {
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 12px; line-height: 1; color: var(--text-2);
  background: var(--fill); border: 1px solid var(--hairline); border-radius: 7px;
  padding: 4px 8px; pointer-events: none; opacity: .75;
  transition: opacity .2s var(--ease);
}
.searchbox input:focus ~ .searchbox-kbd,
.searchbox input:not(:placeholder-shown) ~ .searchbox-kbd { opacity: 0; }

.searchbox-suggest {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 8px);
  margin: 0; padding: 6px; list-style: none;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid var(--hairline); border-radius: 20px;
  box-shadow: 0 20px 60px -12px rgba(0, 0, 0, .28);
  animation: sug-in .18s var(--ease);
}
@keyframes sug-in { from { opacity: 0; transform: translateY(-4px) scale(.985); } }
.searchbox-suggest li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 14px;
  cursor: pointer; font-size: 15px;
}
.searchbox-suggest li .sug-cat { margin-left: auto; font-size: 12px; color: var(--text-2); }
.sug-logo { display: flex; width: 22px; height: 22px; flex: none; }
.sug-logo img, .sug-logo .sug-letter {
  width: 20px; height: 20px; border-radius: 5px; display: block;
}
.sug-letter {
  color: #fff; font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.searchbox-suggest li:hover, .searchbox-suggest li.active { background: var(--fill); }

.result-card {
  max-width: 660px; margin: 10px 0 48px;
  padding: 24px 26px;
  background: var(--surface);
  border: 1px solid var(--hairline); border-radius: var(--radius-card);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .03), 0 16px 44px rgba(0, 0, 0, .10);
}
.result-card.enter { animation: card-in .34s var(--ease) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.result-head { display: flex; align-items: center; gap: 14px; }
.result-head img, .result-head .avatar { border-radius: 12px; flex-shrink: 0; }
.result-title strong { display: block; font-size: 19px; letter-spacing: -0.01em; }
.result-cat { font-size: 13px; color: var(--text-2); }
.result-head .pill-ghost { margin-left: auto; flex-shrink: 0; }

.os-ask {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 18px 0 4px; font-size: 14px; color: var(--text-2);
}
.os-btn {
  min-height: 36px; padding: 7px 16px;
  border: 1px solid var(--hairline); border-radius: 980px;
  background: var(--fill); color: var(--text);
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.os-btn:hover { background: var(--fill-hover); }
.os-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.os-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.cmd-box {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 14px 0 4px; padding: 10px 14px;
  background: var(--fill); border-radius: 12px;
}
.cmd-box code { font-size: 13.5px; word-break: break-all; color: var(--text); }
.cmd-box .install-btn { margin-left: auto; flex-shrink: 0; }

/* 结果卡信息层级：官网下载 = 主路径（大按钮 + 可见域名），命令 = 折叠可选项 */
.result-main { margin: 16px 0 0; }
.result-main .pill-primary { min-height: 46px; padding: 11px 24px; font-size: 15px; }
.result-site { color: var(--accent); text-decoration: none; font-weight: 500; }
.result-site:hover { text-decoration: underline; }

.cmd-optional { margin: 16px 0 0; border-top: 1px dashed var(--hairline); padding-top: 6px; }
.cmd-optional > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; gap: 8px; min-height: 38px;
  color: var(--text-2); font-size: 13px; font-weight: 500;
}
.cmd-optional > summary::-webkit-details-marker { display: none; }
.cmd-optional > summary::before { content: "▸"; transition: transform .2s var(--ease); }
.cmd-optional[open] > summary::before { transform: rotate(90deg); }
.cmd-optional > summary:hover { color: var(--text); }
.cmd-tag { font-size: 11px; padding: 2px 8px; border-radius: 980px; background: var(--fill); color: var(--text-2); }
.cmd-body { padding: 4px 0 8px; }
.cmd-body .os-ask { margin: 8px 0 4px; }

.result-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 0 0; }
.result-note { margin: 10px 0 0; font-size: 13px; color: var(--text-2); line-height: 1.6; }
.result-note a { color: var(--accent); }
.result-foot {
  margin: 18px 0 0; padding-top: 14px;
  border-top: 1px solid var(--hairline);
  font-size: 13px; color: var(--text-2);
}
.result-foot a { color: var(--accent); }

.cat-strip {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px;
}
.cat-strip-item {
  display: flex; flex-direction: column; gap: 6px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--hairline); border-radius: 16px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.cat-strip-item:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.cat-strip-head { display: flex; align-items: baseline; gap: 8px; }
.cat-strip-head strong { font-size: 16px; }
.cat-strip-desc { font-size: 13px; color: var(--text-2); line-height: 1.5; }
.cat-strip-go { font-size: 13px; font-weight: 500; color: var(--accent); }

@media (max-width: 640px) {
  .hero-search { padding: 36px 0 24px; min-height: 58vh; }
  body.searched .hero-search { min-height: 0; padding: 20px 0 12px; }
  .hero-search::before { height: 380px; filter: blur(30px); }
  .searchbox input { min-height: 56px; font-size: 16px; padding-left: 50px; }
  .searchbox-icon { left: 18px; }
  .searchbox-kbd { display: none; }
  .result-card { padding: 18px 16px; }
  .result-head { flex-wrap: wrap; }
  .result-head .pill-ghost { margin-left: 0; flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .cat-strip-item:hover { transform: none; }
  .hero-search::before { animation: none; }
  .searchbox-suggest, .result-card.enter { animation: none; }
  .searchbox input, .searchbox input:focus, .chips .chip-link { transition: none; transform: none; }
}
