/* ==========================================================================
   GoPick 站点样式 —— 单文件，零依赖

   设计取向：**清爽现代**。骨子还是原来的「素」——不堆卡片、不加阴影堆叠、
   不摆分类树。升级的是质感：克制的圆角、细腻的分割线、品牌渐变只在 logo
   和关键 CTA 上出现、焦点/悬停有一致的微交互。蓝色系 → 蓝青渐变，更活但
   不失工具站的冷静。

   详情页（长文）仍按阅读优化：正文 16.5px / 行高 1.85 / 段落间距充足。
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #fafbfc;         /* 页脚、区块的极浅灰底 */
  --text: #1a1a1a;
  --text-2: #555;
  --text-3: #999;
  --line: #e8e8e8;
  --line-2: #f2f2f2;
  --accent: #1a6fd4;
  --accent-2: #2d9cdb;
  --accent-soft: #f2f7fd;
  --accent-border: #d8e6f8;
  --radius: 8px;
  --radius-sm: 6px;
  --maxw: 860px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei",
    "PingFang SC", "Hiragino Sans GB", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, .10);
  --grad: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }

/* 列表页的 h1：给搜索引擎和屏幕阅读器，不给眼睛。 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------- 头部
   站名（带 logo 图标）+ 三个导航 + 搜索框。 */
.site-header {
  border-bottom: 1px solid var(--line);
  padding: 18px 0 16px;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.brand .logo {
  width: 28px;
  height: 28px;
  display: block;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.brand a { font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: -.4px; }
.brand a:hover { text-decoration: none; }
.brand-name b { color: var(--accent); font-weight: 800; }

.site-nav { display: flex; gap: 6px; margin-left: 6px; font-size: 14px; }
.site-nav a {
  color: var(--text-2);
  white-space: nowrap;
  padding: 5px 11px;
  border-radius: 999px;
  transition: background .14s, color .14s;
}
.site-nav a:hover { text-decoration: none; background: var(--line-2); color: var(--text); }
.site-nav a.on { color: var(--accent); background: var(--accent-soft); font-weight: 600; }

.search-box { margin-left: auto; position: relative; flex-shrink: 0; }
.search-box input {
  width: 180px;
  padding: 7px 11px 7px 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fafafa;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color .14s, background .14s, box-shadow .14s, width .14s;
}
.search-box input:focus {
  border-color: var(--accent);
  width: 210px;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26, 111, 212, .12);
}
.search-box::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 11px;
  height: 11px;
  transform: translateY(-50%);
  border: 1.6px solid var(--text-3);
  border-radius: 50%;
  pointer-events: none;
}
.search-box::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 50%;
  width: 5px;
  height: 1.6px;
  background: var(--text-3);
  transform: translateY(-50%) rotate(45deg);
  transform-origin: left center;
  pointer-events: none;
}

/* ---------------------------------------------------------------- 流水账
   一行一条：「标题 .......... 分类 日期」。没有卡片、没有摘要段落。 */
.streambox { padding: 4px 0 44px; }

.stream { list-style: none; margin: 0; padding: 0; }
.stream > li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-2);
}
.stream > li:last-child { border-bottom: none; }
.stream > li { flex-wrap: wrap; }        /* 简介行换行显示 */
/* 一句话简介：标题下面那行小字，灰、小、不抢视线 */
.stream .d {
  flex-basis: 100%;
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.55;
  margin-top: -3px;
}
.stream .t {
  flex: 1;
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.6;
  min-width: 0;
  transition: color .14s;
}
.stream .t:hover { color: var(--accent); text-decoration: none; }
/* 行尾附属信息：分类 · 日期。压小、压灰，绝不跟标题抢视线 */
.stream .m {
  flex-shrink: 0;
  font-size: 12.5px;
  color: var(--text-3);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.stream .m a {
  color: var(--text-3);
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--line-2);
  transition: color .14s, background .14s;
}
.stream .m a:hover { color: var(--accent); background: var(--accent-soft); text-decoration: none; }

/* 分类页 / 搜索页顶部那条极简横条 */
.bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0 12px;
  font-size: 13px;
  color: var(--text-3);
  border-bottom: 1px solid var(--line);
}
.bar a { color: var(--text-2); }
.bar a:hover { color: var(--accent); }

.srchint { font-size: 12.5px; color: var(--text-3); padding: 12px 0 44px; }

/* ---------------------------------------------------------------- 文章页 */
.artpage { padding: 20px 0 56px; }
.crumbs { font-size: 13px; color: var(--text-3); margin-bottom: 20px; }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--accent); }

.article-layout {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 34px;
  align-items: start;
}

.article { min-width: 0; }

.article h1 {
  margin: 0 0 22px;
  font-size: 25px;
  line-height: 1.45;
  letter-spacing: -.4px;
}

.article .lead {
  margin: 0 0 26px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.8;
}
.article .lead p { margin: 0; }

.article h2 {
  margin: 34px 0 12px;
  font-size: 18px;
  letter-spacing: -.2px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
}
.article h3 { margin: 24px 0 10px; font-size: 16px; }
.article h4 { margin: 20px 0 8px; font-size: 15px; color: var(--text-2); }

/* mdconv 会在每个标题后挂一个 # 锚点链接。目录已用不着它，
   这里直接不显示，保持正文干净（锚点 id 本身保留）。 */
.article .anchor { display: none; }

.article p { margin: 0 0 15px; line-height: 1.85; }
.article strong { font-weight: 600; }
.article em { font-style: normal; background: #fffbe6; padding: 0 3px; border-radius: 3px; }

.article ul, .article ol { margin: 0 0 15px; padding-left: 24px; }
.article li { margin-bottom: 6px; line-height: 1.8; }

/* 原文的编号项之间常夹空行，转换后可能并列成多段；统一由 CSS 生成序号，
   保证 1/2/3 连续，不受源文档编号写法影响。 */
.article .num-list { list-style: none; padding-left: 0; counter-reset: nl; }
.article .num-list > li { position: relative; padding-left: 26px; counter-increment: nl; }
.article .num-list > li::before {
  content: counter(nl) ".";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--text-3);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.article code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: #f4f5f7;
  padding: 2px 5px;
  border-radius: 4px;
  color: #b02a5b;
}
.article pre {
  background: #f7f8fa;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 13px 15px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 0 0 16px;
  line-height: 1.65;
}
.article pre code { background: none; color: inherit; padding: 0; font-size: 13px; }

.article blockquote {
  margin: 0 0 16px;
  padding: 2px 0 2px 14px;
  border-left: 3px solid var(--line);
  color: var(--text-2);
}
.article blockquote p { margin: 0; }

.article hr { border: none; border-top: 1px solid var(--line-2); margin: 28px 0; }

/* 正文插图：图片 + 图注。图片圆角、加浅描边，图注压灰居左。 */
.md-img { margin: 0 0 20px; }
.md-img img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.md-img figcaption {
  margin-top: 7px;
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.6;
}

.table-wrap { overflow-x: auto; margin: 0 0 18px; border-radius: var(--radius-sm); }
.article table { border-collapse: collapse; width: 100%; font-size: 14px; }
.article th, .article td {
  border: 1px solid var(--line);
  padding: 8px 11px;
  text-align: left;
  line-height: 1.65;
}
.article th { background: #fafafa; font-weight: 600; font-size: 13px; }

/* 下载区块（全页唯一的网盘链接，视觉上必须抓眼） */
.download-box {
  margin: 26px 0;
  padding: 22px 20px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  text-align: center;
}
.download-box .dl-label { font-size: 13px; color: var(--text-2); margin-bottom: 13px; }
.download-box .dl-btn {
  display: inline-block;
  background: var(--grad);
  color: #fff;
  padding: 11px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(26, 111, 212, .28);
  transition: box-shadow .16s, transform .16s, opacity .16s;
}
.download-box .dl-btn:hover { text-decoration: none; opacity: 1; box-shadow: 0 6px 20px rgba(26, 111, 212, .36); transform: translateY(-1px); }
.download-box .dl-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
.download-box .dl-btn-repo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--accent-border);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(16, 24, 40, .07);
  transition: background .16s, color .16s, border-color .16s, box-shadow .16s, transform .16s;
}
.download-box .dl-btn-repo svg { width: 21px; height: 21px; fill: currentColor; display: block; }
.download-box .dl-btn-repo:hover {
  background: #161b22;
  border-color: #161b22;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 24, 40, .22);
}
.download-box .dl-hint { margin-top: 12px; font-size: 12px; color: var(--text-3); }

/* 文章目录（右侧 sticky，极简） */
.toc { position: sticky; top: 24px; font-size: 13px; }
.toc-title {
  font-size: 12px;
  color: var(--text-3);
  margin: 0 0 8px;
}
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc a {
  display: block;
  padding: 3px 0 3px 12px;
  color: var(--text-3);
  line-height: 1.55;
  border-left: 2px solid var(--line-2);
  transition: color .14s, border-color .14s;
}
.toc a:hover { color: var(--accent); text-decoration: none; }
.toc a.active { color: var(--accent); border-left-color: var(--accent); }

/* 相关软件 */
.related { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.related h3 { margin: 0 0 10px; font-size: 14px; color: var(--text-3); font-weight: 600; }
.related-list { display: grid; gap: 2px; }
.related-list a {
  display: block;
  padding: 5px 0;
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.6;
  transition: color .14s;
}
.related-list a:hover { color: var(--accent); text-decoration: none; }

/* 文章页顶部的第二个入口 */
.crumbs-shop { margin-left: 14px; color: var(--text-3); font-size: 12.5px; }
.crumbs-shop:hover { color: var(--accent); }

/* ---------------------------------------------------------------- 排行榜页
   一屏一个软件的判断依据：图标认得出、版本对得上、一句话知道干什么。 */
.shophead {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0 12px;
  font-size: 12.5px;
  color: var(--text-3);
  border-bottom: 1px solid var(--line);
}

.shopgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 0 48px;
}

.scard {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .14s, box-shadow .14s, transform .14s;
  min-width: 0;
}
.scard:hover {
  text-decoration: none;
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* 名次。窄、右对齐、等宽数字。前三名只换颜色，不加图标。 */
.sc-rank {
  flex-shrink: 0;
  width: 20px;
  padding-top: 14px;
  text-align: right;
  font-size: 13px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--text-3);
}
.sc-rank.top { color: var(--accent); font-weight: 700; }

.sc-icon { flex-shrink: 0; width: 48px; height: 48px; display: block; }
.sc-icon img {
  width: 48px;
  height: 48px;
  display: block;
  border-radius: 11px;
  object-fit: contain;
  background: var(--line-2);
}

/* 抓不到图标的软件：按名字哈希出一个固定颜色，画首字母 */
.sc-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 11px;
  font-size: 21px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, hsl(var(--h, 210) 55% 54%), hsl(calc(var(--h, 210) + 24) 55% 48%));
}

.sc-body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sc-name {
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}
.sc-ver {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  background: #f4f5f7;
  border-radius: 4px;
  padding: 1px 6px;
}
.sc-desc {
  display: block;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-2);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ---------------------------------------------------------------- 首页单列列表
   一条一款软件：左侧 48px 小缩略图，右侧「标题+简介+分类日期」。
   不用大图封面，小图标体积小，几十款也不卡。与排行榜 shopgrid 共用 scard。 */
.homelist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 0 48px;
}
.homelist .scard {
  align-items: center;
  padding: 12px 14px;
}.homelist .sc-icon { width: 48px; height: 48px; }
.homelist .sc-icon img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}
.homelist .sc-letter {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  font-size: 21px;
}
/* 编号：图标和软件名之间，等宽数字，一眼可读、可按编号搜 */
.sc-num {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  min-width: 34px;
  text-align: center;
}
.homelist .sc-name { font-size: 16px; }
.homelist .sc-desc {
  margin-top: 2px;
  -webkit-line-clamp: 2;
  font-size: 13px;
  color: var(--text-2);
}
/* 首页卡片右侧：只有一个日期，靠在最右边 */
.sc-date {
  flex-shrink: 0;
  align-self: flex-start;
  font-size: 12px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1.4;
}


/* ---------------------------------------------------------------- 弹窗
   遮罩 + 居中白卡。宽度压到 480，保证手机上不出横向滚动。 */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
}
.modal[hidden] { display: none; }
.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(20, 22, 26, .5);
  backdrop-filter: blur(3px);
}
.modal-box {
  position: relative;
  width: min(480px, 100%);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  padding: 26px 24px 22px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .22);
  animation: modal-in .18s ease-out;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.modal-x {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: none;
  background: none;
  font-size: 22px;
  line-height: 1;
  color: var(--text-3);
  cursor: pointer;
  border-radius: 50%;
}
.modal-x:hover { background: #f2f2f2; color: var(--text); }

.modal-head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 14px;
  padding-right: 26px;
}
.modal-icon { flex-shrink: 0; width: 56px; height: 56px; }
.modal-icon img { width: 56px; height: 56px; border-radius: 13px; object-fit: contain; display: block; background: var(--line-2); }
.modal-icon .sc-letter { width: 56px; height: 56px; border-radius: 13px; font-size: 24px; }

.modal-name {
  margin: 0 0 4px;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -.2px;
}
.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 9px;
  font-size: 12px;
  color: var(--text-3);
}
.modal-meta span:empty { display: none; }
#m-tag { line-height: 1.5; }

.modal-desc {
  margin: 0 0 18px;
  font-size: 13.5px;
  line-height: 1.78;
  color: var(--text-2);
}

.modal-dl { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.modal-dl .dl-btn {
  flex: 1 1 0;
  min-width: 120px;
  text-align: center;
  background: var(--grad);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(26, 111, 212, .26);
  transition: box-shadow .16s, transform .16s;
}
.modal-dl .dl-btn:hover { text-decoration: none; box-shadow: 0 6px 20px rgba(26, 111, 212, .34); transform: translateY(-1px); }
.modal-dl .dl-hint { font-size: 12.5px; color: var(--text-3); }

.modal-vote { border-top: 1px solid var(--line-2); padding-top: 14px; }
.vote-title {
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
  margin-bottom: 10px;
}
.vote-opts { display: flex; gap: 8px; justify-content: center; }
.vote-opts button {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-family: inherit;
  color: var(--text-2);
  cursor: pointer;
  transition: all .14s;
}
.vote-opts button:hover { border-color: var(--accent-border); color: var(--accent); }
/* 你投的那一项：填色，好一眼看出自己选了什么 */
.vote-opts button.on {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 500;
}
/* 数字位：没拿到就空着，靠 :empty 整块收起 */
.vote-opts button .n {
  font-size: 12px;
  margin-left: 5px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  font-weight: 400;
}
.vote-opts button .n:empty { display: none; }
.vote-opts button.on .n { color: var(--accent); }
/* 投过之后三个一起锁住。没选的两个压暗但不消失。 */
.vote-opts.locked button { cursor: default; }
.vote-opts.locked button:not(.on) { opacity: .42; }
.vote-opts.locked button:hover { border-color: var(--line); color: var(--text-2); }
.vote-opts.locked button.on:hover { border-color: var(--accent); color: var(--accent); }

.modal-more {
  display: block;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
  text-align: center;
  font-size: 13.5px;
  color: var(--accent);
}

/* ---------------------------------------------------------------- AI 免费额度页 */
.aipage { padding: 20px 0 56px; }
.ai-h1 { margin: 0 0 12px; font-size: 25px; letter-spacing: -.4px; }
.ai-intro {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-2);
}
.ai-meta {
  font-size: 12px;
  color: var(--text-3);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.ai-sec { margin-top: 30px; }
.ai-sec h2 {
  margin: 0 0 4px;
  font-size: 16px;
  letter-spacing: -.2px;
  padding-left: 12px;
  border-left: 3px solid var(--accent);
}
.ai-note { margin: 0 0 14px; font-size: 12.5px; color: var(--text-3); }

.ai-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.ai-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: border-color .14s, box-shadow .14s;
}
.ai-item:hover { border-color: var(--accent-border); box-shadow: var(--shadow-sm); }
.ai-item-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
}
.ai-item-head b { font-size: 14.5px; font-weight: 600; }
.ai-tag {
  font-size: 11px;
  color: #b45309;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 4px;
  padding: 0 5px;
  line-height: 1.6;
  white-space: nowrap;
}
.ai-free {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 5px;
}
.ai-how {
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--text-3);
  margin-bottom: 12px;
  flex: 1;
}
.ai-go {
  align-self: flex-start;
  font-size: 12.5px;
  color: var(--accent);
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 4px 13px;
  transition: background .14s, color .14s;
}
.ai-go:hover { text-decoration: none; background: var(--grad); color: #fff; border-color: transparent; }

.ai-traps {
  margin: 14px 0 0;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--text-2);
}
.ai-traps li { margin-bottom: 8px; }
.ai-traps strong { color: var(--text); }

.ai-steps {
  margin: 14px 0 0;
  padding-left: 22px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--text-2);
}
.ai-steps li { margin-bottom: 7px; }

/* ---------------------------------------------------------------- 页脚 */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  font-size: 13px;
  color: var(--text-3);
  background: var(--bg-soft);
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--text-2); }

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 780px) {
  .article-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
  .article h1 { font-size: 22px; }
  .search-box input { width: 120px; }
  .search-box input:focus { width: 150px; }
  .site-nav { gap: 2px; font-size: 13px; }
  .modal-box { padding: 22px 18px 18px; }
}

@media (max-width: 520px) {
  .brand { gap: 8px; }
  .brand a { font-size: 18px; }
  .search-box input { width: 110px; }
  .stream > li { flex-wrap: wrap; gap: 2px 10px; }
  .stream .t { flex-basis: 100%; }
  .stream .m { font-size: 12px; }
  /* 窄屏一行一个卡片，不然名字全被截断 */
  .shopgrid { grid-template-columns: 1fr; }
  .ai-grid { grid-template-columns: 1fr; }
  /* 导航不能藏：手机上「清单 / 排行榜 / AI」就是全部入口 */
  .site-nav { gap: 2px; font-size: 12.5px; }
  .site-nav a { padding: 5px 9px; }
  .modal-dl .dl-btn { flex-basis: 100%; }
}

/* 三个导航项 + 搜索框在 430px 以下挤不进一行。导航落到第二行。 */
@media (max-width: 430px) {
  .site-header .wrap { flex-wrap: wrap; row-gap: 4px; }
  .brand { margin-right: auto; }
  .site-nav {
    order: 3;
    flex-basis: 100%;
    margin-left: 0;
    gap: 4px;
    font-size: 13.5px;
  }
  .search-box { margin-left: 0; }
  .search-box input { width: 152px; }   /* 132 会把「搜索软件 / 用途」截成「搜索软件 / 用」 */
}

/* ==========================================================================
   微信拦截层
   --------------------------------------------------------------------------
   微信内置浏览器对没备案的域名不客气。判断在 <head> 里同步做完（加 .is-wx）。
   ========================================================================== */
#wx-guard { display: none; }

html.is-wx #wx-guard {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 9999;
  padding: 40px 28px;
  background: var(--bg);
  text-align: center;
}

/* 用盖的，不用 display:none 藏正文 —— 藏了会让微信返回时滚动位置错乱 */
html.is-wx,
html.is-wx body { overflow: hidden; }

.wxg-brand {
  margin-bottom: 24px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
}

.wxg-h { margin: 0 0 7px; font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }

.wxg-sub { margin: 0 0 28px; font-size: 14px; color: var(--text-2); }

.wxg-steps {
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  font-size: 15px;
  line-height: 2.1;
  color: var(--text);
  text-align: left;
}

.wxg-steps b {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  vertical-align: 1px;
}

.wxg-copyrow { display: flex; gap: 8px; width: 100%; max-width: 340px; }

#wxg-url {
  flex: 1;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line-2);
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 12.5px;
}

#wxg-copy {
  flex-shrink: 0;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
}

.wxg-note { margin: 20px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--text-3); }

