/* 求知AI · 标签页 / 场景页 · 设计精修版
   规范：Apple 扁平（纯白卡片 + 1px 细描边 + 极淡阴影 + 单色蓝强调）
   全部走 --qz-* tokens → 自动继承主站配色与暗色模式
   网格：8pt 间距体系；字号阶梯 32/19/15/13/12/11 */

/* ── 页面容器 ───────────────────────────── */
.ainav-page {
  padding: 40px 0 72px;
  /* 数字等宽，避免统计数字跳动 */
  font-variant-numeric: tabular-nums;
}
.ainav-page .qz-container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ── 标题区 ─────────────────────────────── */
.pg-head { margin-bottom: 32px; }

/* eyebrow：目录层级标识 */
.pg-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--qz-accent);
  margin-bottom: 10px;
}
.pg-eyebrow::before {
  content: ""; width: 14px; height: 1.5px;
  background: var(--qz-accent); border-radius: 1px;
}

.pg-title {
  font-size: 32px; line-height: 1.2; letter-spacing: -.6px;
  font-weight: 700; color: var(--qz-ink);
  margin: 0 0 8px; text-wrap: balance;
}
.pg-sub {
  font-size: 16px; line-height: 1.5; color: var(--qz-ink-secondary);
  margin: 0 0 20px; max-width: 60ch;
}

/* 元信息栏 */
.pg-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--qz-ink-tertiary);
  padding-bottom: 20px; border-bottom: 1px solid var(--qz-line);
}
.pg-meta b { font-weight: 600; color: var(--qz-ink); }
.pg-meta .dot { color: var(--qz-line-strong); }

.pg-intro {
  font-size: 15.5px; line-height: 1.78; color: var(--qz-ink);
  margin: 24px 0 0; max-width: 70ch;
}

/* ── 提示块 ─────────────────────────────── */
.pg-note {
  display: flex; gap: 10px;
  background: var(--qz-surface-muted);
  border: 1px solid var(--qz-line);
  border-left: 2px solid var(--qz-accent);
  padding: 12px 16px;
  font-size: 13px; line-height: 1.65; color: var(--qz-ink-secondary);
  margin: 20px 0 8px; border-radius: 8px;
  max-width: 74ch;
}
.pg-note::before {
  content: "i"; flex: 0 0 16px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--qz-accent-soft); color: var(--qz-accent);
  font-size: 11px; font-weight: 700; font-style: normal;
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 1px;
}

/* ── 步骤（时间轴式） ────────────────────── */
.pg-steps { margin-top: 36px; }

.pg-step {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 4px;
  padding-left: 0;
}

.pg-step .num {
  flex: 0 0 28px; width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--qz-accent); color: var(--qz-on-accent);
  font-size: 13px; font-weight: 600; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 4px var(--qz-surface);
  position: relative; z-index: 1;
}
.pg-step .txt {
  font-size: 19px; font-weight: 600; letter-spacing: -.2px;
  color: var(--qz-ink); line-height: 1.3;
}
.pg-stepdesc {
  font-size: 13.5px; line-height: 1.65; color: var(--qz-ink-secondary);
  margin: 6px 0 14px 40px; max-width: 64ch;
}

/* ── 工具列表 ───────────────────────────── */
.pg-list { list-style: none; display: grid; gap: 8px; margin: 0 0 32px 40px; padding: 0; }
.pg-list.no-step { margin-left: 0; margin-bottom: 0; }

.pg-card {
  border: 1px solid var(--qz-line);
  border-radius: 10px;
  background: var(--qz-surface);
  padding: 13px 16px;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.pg-card:hover {
  border-color: var(--qz-line-strong);
  box-shadow: var(--qz-shadow-float);
  transform: translateY(-1px);
}
.pg-card-h { display: flex; align-items: center; gap: 10px; }

.pg-logo {
  flex: 0 0 24px; width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  overflow: hidden; border-radius: 6px;
  background: var(--qz-surface-muted);
}
.pg-logo img { width: 24px; height: 24px; object-fit: contain; display: block; }

.pg-name {
  font-size: 15px; font-weight: 600; letter-spacing: -.1px;
  color: var(--qz-ink); text-decoration: none;
  transition: color .14s ease;
}
.pg-name:hover { color: var(--qz-accent); }
.pg-name:focus-visible {
  outline: 2px solid var(--qz-focus); outline-offset: 2px; border-radius: 3px;
}

/* 国内/海外 药丸标签 */
.pg-loc {
  font-size: 11px; font-weight: 500; line-height: 1;
  padding: 3px 7px; border-radius: 999px;
  background: var(--qz-surface-muted); color: var(--qz-ink-tertiary);
  white-space: nowrap;
}
.pg-d {
  font-size: 13.5px; line-height: 1.65; color: var(--qz-ink-secondary);
  margin: 6px 0 0; max-width: 76ch;
}

/* ── 标签云 ─────────────────────────────── */
.pg-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-chip {
  display: inline-flex; align-items: baseline; gap: 6px;
  border: 1px solid var(--qz-line); border-radius: 999px;
  padding: 8px 15px; background: var(--qz-surface);
  font-size: 14px; color: var(--qz-ink); text-decoration: none;
  transition: border-color .14s ease, color .14s ease, background .14s ease;
}
.pg-chip span {
  font-size: 11.5px; font-weight: 500; color: var(--qz-ink-tertiary);
  transition: color .14s ease;
}
.pg-chip:hover {
  border-color: var(--qz-accent); color: var(--qz-accent);
  background: var(--qz-accent-soft);
}
.pg-chip:hover span { color: var(--qz-accent); }

/* ── 场景索引卡 ─────────────────────────── */
.pg-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.pg-bigcard {
  position: relative;
  display: block;
  border: 1px solid var(--qz-line); border-radius: 12px;
  background: var(--qz-surface);
  padding: 20px 22px;
  text-decoration: none; color: var(--qz-ink);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.pg-bigcard:hover {
  border-color: var(--qz-line-strong);
  box-shadow: var(--qz-shadow-float);
  transform: translateY(-1px);
}
.pg-bigcard .idx {
  font-size: 12px; font-weight: 600; letter-spacing: .06em;
  color: var(--qz-accent); display: block; margin-bottom: 8px;
}
.pg-bigcard h2 {
  font-size: 18px; font-weight: 600; letter-spacing: -.2px;
  margin: 0 0 4px; color: var(--qz-ink);
}
.pg-bigcard p { font-size: 13.5px; line-height: 1.6; color: var(--qz-ink-secondary); margin: 0; }
.pg-bigcard .cnt {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--qz-ink-tertiary); margin-top: 14px;
}
.pg-bigcard .arrow {
  position: absolute; right: 20px; bottom: 20px;
  color: var(--qz-ink-tertiary); font-size: 15px; line-height: 1;
  transition: transform .16s ease, color .16s ease;
}
.pg-bigcard:hover .arrow { transform: translateX(3px); color: var(--qz-accent); }

/* ── 其他场景（底部） ────────────────────── */
.pg-others { margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--qz-line); }
.pg-others h3 {
  font-size: 13px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--qz-ink-tertiary);
  margin: 0 0 14px;
}
.pg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-schip {
  border: 1px solid var(--qz-line); border-radius: 999px;
  padding: 6px 14px; background: var(--qz-surface);
  font-size: 13px; color: var(--qz-ink); text-decoration: none;
  transition: border-color .14s ease, color .14s ease;
}
.pg-schip:hover { border-color: var(--qz-accent); color: var(--qz-accent); }


/* ── 文内链接 / 更多入口 ─────────────────── */
.pg-link {
  color: var(--qz-accent); text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .14s ease;
}
.pg-link:hover { border-bottom-color: var(--qz-accent); }
.pg-more { margin: 26px 0 0; font-size: 15px; }

/* ── 细节：选区 / 滚动锚点 ───────────────── */
.ainav-page ::selection { background: var(--qz-accent-soft); color: var(--qz-ink); }

/* ── 移动端 ─────────────────────────────── */
@media (max-width: 640px) {
  .ainav-page { padding: 28px 0 52px; }
  .ainav-page .qz-container { padding: 0 16px; }
  .pg-title { font-size: 26px; letter-spacing: -.4px; }
  .pg-sub { font-size: 15px; }
  .pg-step .txt { font-size: 17px; }
  .pg-stepdesc { margin-left: 0; }
  .pg-list { margin-left: 0; }
  .pg-step::after { display: none; }
  .pg-bigcard { padding: 16px 18px; }
  .pg-intro { font-size: 15px; }
}

/* ── 站内 footer（补齐 category-page.css 中的定义） ── */
.site-footer {
  display: flex; flex-direction: column; align-items: flex-start;
  justify-content: space-between; gap: 12px;
  max-width: 1080px; margin: 0 auto; padding: 28px 24px 40px;
  border-top: 1px solid var(--qz-line);
  color: var(--qz-ink-tertiary); font-size: 14px;
}
.site-footer b { color: var(--qz-ink); font-weight: 600; }
.site-footer p { margin: 0 0 4px; font-size: 13px; line-height: 1.65; }
.site-footer a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--qz-ink-secondary); font-weight: 600; text-decoration: none;
}
.site-footer a:hover { color: var(--qz-accent); }

/* ── 整卡点击 ── */
.pg-card { cursor: pointer; }
.pg-card a { cursor: pointer; }
