/* ══════════════════════════════════════════════════════════════════
   design-v2.css · filesq toolkit 共享设计系统
   参考 tinypng.com 的设计语言（宽度 / 字体 / 布局 / LOGO / 菜单 / 文字排布）
   加载顺序：必须排在站点 site.css 之后（覆盖式），站点差异保留在 site.css
   ══════════════════════════════════════════════════════════════════ */

:root {
  /* 色板（取自 tinypng.com 计算样式：#40444F 正文 / #12141D 深墨 / #EDEDF1 分割线） */
  --ink: #12141d;
  --sub: #40444f;
  --sub-2: #6b7280;
  --line: #ededf1;
  --panel: #f8f9fb;
  --panel-2: #f1f3f6;
  --bg: #ffffff;
  /* 圆角与宽度：TinyPNG 内容容器 88.3rem(≈1413px)+5rem 内边距 → 本站取 1200/1440 双档 */
  --radius: 12px;
  --radius-lg: 16px;
  --maxw: 1200px;
  --maxw-wide: 1440px;
  --header-h: 72px;
  --shadow-sm: 0 1px 2px rgba(18, 20, 29, .04);
  --shadow: 0 2px 10px rgba(18, 20, 29, .07);
  --shadow-lg: 0 12px 32px rgba(18, 20, 29, .10);
  /* 字体：TinyPNG 使用 'Noto Sans','Noto Sans Fallback',Arial,sans-serif */
  --font: 'Noto Sans', 'Noto Sans Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Monaco, 'Cascadia Code', Consolas, monospace;
  /* 满屏首屏底图：默认 filesq；各站在 base.html 的内联 <style> 里按自身静态路径覆盖
    （内联样式在 design-v2 之后加载，同名变量后者胜出） */
  --hero-bg: url("/static/img/hero-bg.jpg");
}

/* ── 基础排版：15px 级正文字号、深灰正文色、紧字距大标题 ────────── */
body {
  font-family: var(--font);
  color: var(--sub);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.62;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5 { color: var(--ink); }
a { color: var(--accent); }
a:hover { color: var(--accent); }

/* ⚠️ 组件自带底色的链接必须显式压回自身文字色。
   原因：`a:hover { color: var(--accent) }` 的优先级是 (0,1,1)，而 `.btn` / `.card`
   只有 (0,1,0) 且它们只声明了 color、未声明 color:hover —— 结果实心品牌色按钮
   在 hover 时文字被染成品牌色，与同色底完全重合（正文「点一下就消失」）。
   凡新增「有底色 + 白/深字」的链接类组件，都要在此处补一条同等或更高优先级的 hover。 */
a.btn:hover, a.btn:focus-visible { color: #fff; }
a.btn.secondary:hover, a.btn.ghost:hover,
a.btn.secondary:focus-visible, a.btn.ghost:focus-visible { color: var(--ink); }
a.hdr-btn.solid:hover { color: #fff; }
a.hdr-btn.ghost:hover { color: var(--ink); }
a.card:hover { color: var(--ink); }

h1 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.12; font-weight: 700; letter-spacing: -1px; }
h2 { font-size: 26px; line-height: 1.25; font-weight: 700; letter-spacing: -.6px; margin: 44px 0 14px; }
h3 { font-size: 18px; font-weight: 700; letter-spacing: -.2px; margin: 26px 0 8px; }
.answer { color: var(--sub); margin: 12px 0 26px; max-width: 680px; font-size: 17px; }
.muted { color: var(--sub-2); font-size: 14px; }
.meta { color: var(--sub-2); font-size: 14px; margin-bottom: 24px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }

/* ── 内容容器：1200px 主列（正文段落自动限制阅读宽度）──────────── */
/* 结构约定：main 是最外层（含满屏 hero 通栏），.wrap 是其中的 1200px 内容列 */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 40px 40px 72px; }
.wrap > p, .wrap > ul, .wrap > ol { max-width: 860px; }

/* ── 头部：全宽白底毛玻璃 + 左 LOGO 胶囊 + 居中菜单 + 右按钮（72px）── */
.site-header {
  display: block;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  max-width: var(--maxw-wide);
  margin: 0 auto;
  padding: 0 40px;
  height: var(--header-h);
}
.site-header .logo { justify-self: start; display: inline-flex; align-items: center; gap: 0; text-decoration: none; }
.site-header .logo:hover { text-decoration: none; }
/* LOGO 胶囊：黑色圆角底 + 白色字标（tinify 同款处理方式） */
.logo-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #12141d; color: #fff;
  border-radius: 10px;
  padding: 7px 14px 7px 11px;
  font-size: 17px; font-weight: 700; letter-spacing: -.03em; line-height: 1;
  transition: background .15s ease;
}
.site-header .logo:hover .logo-pill { background: #262936; }
.logo-pill .logo-mark { width: 20px; height: 20px; color: #fff; flex-shrink: 0; }
.logo-pill .brand-name { color: #fff; }
.site-header .top-nav { justify-self: center; display: flex; gap: 34px; font-size: 15px; font-weight: 600; }
.site-header .top-nav a { color: var(--sub); text-decoration: none; padding: 6px 0; }
.site-header .top-nav a:hover { color: var(--accent); text-decoration: none; }
.site-header .top-nav .signin-link { border: 0; padding: 6px 0; font-weight: 600; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.hdr-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 18px; border-radius: 999px;
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease, filter .15s ease;
}
.hdr-btn:hover { text-decoration: none; }
.hdr-btn.ghost { color: var(--ink); background: #fff; border: 1px solid #12141d; }
.hdr-btn.ghost:hover { background: var(--panel-2); }
.hdr-btn.solid { color: #fff; background: var(--accent); border: 1px solid var(--accent); }
.hdr-btn.solid:hover { filter: brightness(.9); }

/* ── 首屏：居中大字标题 + 居中副标题 + 居中标签（TinyPNG 文字布局）── */
.hero { text-align: center; margin: 60px 0 40px; }
.hero h1 { margin: 0 auto 14px; max-width: 940px; }
.hero .answer { margin: 0 auto; max-width: 680px; font-size: 18px; line-height: 1.62; }
.hero .trust-row { justify-content: center; margin: 24px 0 0; }
.hero .cta-row { justify-content: center; margin-top: 26px; }
.hero > *:last-child { margin-bottom: 0; }

.trust-row { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 18px 0 8px; }
.trust-row .pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-soft); color: var(--accent);
  padding: 6px 14px; border-radius: 999px;
  font-weight: 600; font-size: 13px;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── 区块标题：带首屏 hero 的营销页居中，长文/文档页保持左对齐 ───── */
.wrap > h2 { margin: 56px 0 18px; }
main.has-hero > .wrap > h2,
main.has-hero > .wrap > section > h2,
main:has(.hero) > .wrap > h2,
main:has(.hero) > .wrap > section > h2 { text-align: center; }
.wrap > h1 + h2, .wrap > section + h2 { margin-top: 56px; }
.wrap > p { max-width: 860px; }
/* 首屏已是满屏通栏时，紧接的第一个区块标题不再叠加 56px 上边距 */
main.has-hero > .wrap > h2:first-child { margin-top: 6px; }

/* ══ 满屏背景首屏（首页上传投放区）═════════════════════════════════
   做法：hero 区块脱离 .wrap 通栏铺满视口高度，底图为 1536×907 的高调
   柔和光晕图；用「中心白色径向 + 底部收白线性」两层遮罩保证文字对比度，
   同时让网格/玻璃胶囊在四角仍可见，形成纵深。投放卡片浮在底图之上。 */
.upload-hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));   /* svh 兜底 */
  min-height: calc(100svh - var(--header-h));  /* 移动端地址栏收起时更准确 */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0 56px;
  overflow: hidden;
  background-color: #e9eff8;                    /* 底图未加载时的同色兜底，避免闪白 */
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center 44%;
  background-repeat: no-repeat;
}
/* 遮罩只做两件事：顶部与白色头部接缝、底部收白接入正文。
   中部仅极淡雾化——底图本身极亮（中位 215），深墨文字对比度 >8:1，无需重遮。 */
.upload-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(118% 78% at 50% 42%,
      rgba(255,255,255,.54) 0%, rgba(255,255,255,.26) 46%,
      rgba(255,255,255,.02) 100%),
    linear-gradient(180deg,
      rgba(255,255,255,.34) 0%, rgba(255,255,255,0) 13%,
      rgba(255,255,255,0) 60%, #fff 100%);
}
.upload-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 40px;
}
.upload-hero .hero { margin: 0 0 36px; }
.upload-hero .dropzone .drop-hint { padding: 52px 16px; }
/* 标签行压在底图上：改磨砂白底，避免半透明底色被底图透出导致边界发虚 */
.upload-hero .trust-row .pill {
  background: rgba(255, 255, 255, .84);
  border: 1px solid rgba(18, 20, 29, .09);
  box-shadow: 0 1px 3px rgba(18, 20, 29, .06);
  -webkit-backdrop-filter: blur(6px) saturate(140%);
  backdrop-filter: blur(6px) saturate(140%);
}
/* 浮在底图上的投放卡片：加强投影形成「悬浮」层次 */
.upload-hero .panel.dropzone {
  background: #fff;
  border-color: #c9d3e2;
  box-shadow: 0 26px 60px -22px rgba(18, 20, 29, .26), 0 2px 6px rgba(18, 20, 29, .05);
}
.upload-hero .panel.dropzone:hover {
  border-color: var(--accent);
  box-shadow: 0 30px 66px -22px rgba(37, 99, 235, .30), 0 2px 6px rgba(18, 20, 29, .05);
}

/* ── 投放区（等价 TinyPNG 的 drop 面板）：居中卡片 + 虚线内框 ───── */
/* 注意：选择器需带 .panel 提高优先级，否则被上方 .panel 的底/边框覆盖 */
.panel.dropzone, .dropzone {
  max-width: 900px; margin: 0 auto;
  border: 2px dashed #d5d9e0; border-radius: var(--radius-lg);
  background: #fff; padding: 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.panel.dropzone:hover, .dropzone:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.panel.dropzone.dragover, .dropzone.dragover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone .drop-hint { text-align: center; padding: 40px 16px; }
.dropzone .drop-hint strong { font-size: 22px; color: var(--ink); letter-spacing: -.3px; }

/* ── 面板与卡片：白底 / 16px 圆角 / 极细描边 ──────────────────── */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.panel.tight { padding: 20px; }
.card {
  display: block; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px 26px; margin-top: 14px; background: #fff;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  box-shadow: var(--shadow-sm);
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.card .muted { margin-top: 6px; }

/* 卡片网格：桌面 3 列（≥1200 内容区），TinyPNG 式的整齐栅格 */
.section-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin: 22px 0; }
.section-grid a {
  display: block; padding: 24px 26px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  text-decoration: none; color: var(--ink);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.section-grid a:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow); }
.section-grid strong { display: block; font-size: 17px; letter-spacing: -.2px; }
.section-grid .muted { display: block; margin-top: 6px; font-size: 14px; line-height: 1.55; }

/* ── 首页营销区居中（main:has(.hero) 只命中带首屏的页面，长尾/文档页不受影响）──
   标题此前已由上方规则居中，但标题下面的说明行、按钮行、卡片文字仍贴左，
   视觉上「标题居中、内容偏左」互相打架 —— 统一收拢到同一中轴线。 */
main:has(.hero) > .wrap > .center,
main:has(.hero) > .wrap > p.muted { text-align: center; margin-left: auto; margin-right: auto; }
main:has(.hero) > .wrap > .preset-row { justify-content: center; }
main:has(.hero) .section-grid a { text-align: center; }
main:has(.hero) .section-grid a .muted { margin-left: auto; margin-right: auto; max-width: 34ch; }

/* 隐私条：压缩器/上传器下面的「Files never leave your browser」一行 */
.privacy-strip {
  display: flex; flex-wrap: wrap; gap: 4px 10px;
  align-items: baseline; justify-content: center;
  text-align: center; margin: 14px auto 0;
}

/* 压缩器控制行：Target/Format 两组控件 */
.compress-ctl {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px;
}
/* label 与它的控件绑成一组。Target 组允许内部换行（5 个预设 + 输入框
   在 390px 下放不下一行，强nowrap会横向溢出 203px）；Format 组保持
   nowrap —— 之前 "Format:" 留在第一行、下拉框被挤到第二行，看起来像坏了 */
.compress-ctl .ctl { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.compress-ctl .ctl-format { flex-wrap: nowrap; white-space: nowrap; }
.compress-ctl .muted { white-space: nowrap; }

/* ── 按钮：TinyPNG 圆角药丸（h40 / 999px / 600 字重）──────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; border: 1px solid var(--accent);
  border-radius: 999px; padding: 12px 24px; min-height: 44px;
  font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none;
  font-family: inherit; line-height: 1;
  transition: filter .15s ease, transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; filter: brightness(.92); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.99); }
.btn.secondary, .btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn.secondary:hover, .btn.ghost:hover { background: var(--panel-2); filter: none; border-color: #d9dde4; }
.btn.pill { padding: 8px 16px; min-height: 36px; border-radius: 999px; font-size: 14px; }
.btn.pill.active { outline: 2px solid var(--accent); outline-offset: 1px; }

/* ── 表单控件：44px 高、12px 圆角、聚焦走品牌色 ─────────────────── */
input, button, select, textarea { font: inherit; color: inherit; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], textarea, select {
  border: 1px solid #dfe3e9; border-radius: var(--radius); padding: 11px 14px;
  background: #fff; width: 100%; min-height: 44px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:hover, textarea:hover, select:hover { border-color: #cfd4dc; }
input:focus, textarea:focus, select:focus, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

/* ── 表格 / 折叠面板 / 面包屑 / 标签 ───────────────────────────── */
table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 16px 0; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { color: var(--sub-2); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
tbody tr:nth-child(even) { background: var(--panel); }
tbody tr:hover { background: var(--accent-soft); }

/* 通用折叠面板（保底样式；FAQ 区块走下方 .faq 的专用设计） */
details { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 20px; margin-top: 10px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
details[open] { border-color: #dfe3e9; box-shadow: var(--shadow-sm); }
summary { font-weight: 600; color: var(--ink); cursor: pointer; }
summary::marker { color: var(--accent); }

/* ══ FAQ 手风琴 ══════════════════════════════════════════════════
   结构约定：<section class="faq"><h2 id="faq">…</h2><details>×N</section>
   三个必须显式解决的问题（改版前实测值）：
   ① 标题→首条仅 18px，标题与列表「粘」在一起 → 拉到 28px；
   ② summary 与答案 <p> 之间为 0px（无全局 p 边距），问答糊成一团
      → 答案自带 border-top 分隔线 + 上下留白；
   ③ 浏览器默认 summary::marker 是实心三角，各平台形状/基线不一，
      是「很不美观」的主因 → 隐藏 marker，改用自绘 chevron 旋转。 */
.faq { max-width: 880px; margin: 56px 0 0; }
/* 有首屏 hero 的营销页：整块居中，与居中的 FAQ 标题轴线对齐；
   文档/定价页保持左对齐贴着内容列左边缘，避免出现「莫名缩进 120px」 */
main.has-hero > .wrap > .faq,
main:has(.hero) > .wrap > .faq { margin-left: auto; margin-right: auto; }
.faq > h2 { margin: 0 0 28px; }
.faq details {
  margin-top: 12px;
  padding: 0;                 /* 内边距下沉到 summary / 答案，让 hover 底色满铺 */
  border-radius: 14px;
  overflow: hidden;           /* 裁住 summary 底色圆角，同时挡住答案边距外溢 */
}
.faq details:hover { border-color: #d7dbe2; }
.faq details[open] { border-color: #dfe3e9; box-shadow: var(--shadow-sm); }
.faq summary {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 22px;
  font-size: 16.5px; font-weight: 650; letter-spacing: -.2px; color: var(--ink);
  list-style: none;           /* Firefox 的默认三角 */
  transition: background .16s ease, color .16s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--panel); color: var(--accent); }
/* 自绘 chevron：SVG mask + currentColor，颜色跟随标题（hover→品牌色），
   展开时旋转 180°。不用「边框拼三角 + 旋转」，那套角度几何在不同状态
   容易指错方向，且各浏览器基线不一。 */
.faq summary::after {
  content: "";
  flex: 0 0 auto; margin-left: auto;
  width: 16px; height: 16px;
  background-color: currentColor;
  opacity: .45;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3.5 6.2L8 10.7l4.5-4.5' fill='none' stroke='%23000' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 16px 16px no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3.5 6.2L8 10.7l4.5-4.5' fill='none' stroke='%23000' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 16px 16px no-repeat;
  transition: transform .22s ease, opacity .16s ease;
}
.faq summary:hover::after { opacity: 1; }
.faq details[open] summary::after { transform: rotate(180deg); opacity: 1; }
/* 答案：与问题之间留出 14px + 分隔线，阅读行宽限制在 800px 内 */
.faq details > p,
.faq details > ul,
.faq details > ol {
  margin: 0 22px 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  max-width: 800px;
  font-size: 15.5px; line-height: 1.7; color: var(--sub);
}
.faq details > ul, .faq details > ol { padding-left: 22px; }

.related-box + .faq, .faq + .related-box { margin-top: 44px; }

.crumbs { font-size: 14px; color: var(--sub-2); margin-bottom: 18px; }
.crumbs ol { list-style: none; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs li { display: flex; gap: 6px; align-items: center; }
.crumbs li::after { content: "/"; color: var(--sub-2); font-weight: 500; }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--sub-2); }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

.tag { display: inline-block; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--sub-2); text-decoration: none; margin-right: 6px; }
.tag:hover { color: var(--accent); border-color: var(--accent); }
.related-box { margin-top: 40px; padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); }
.related-box h2 { margin-top: 0; }
.related-box ul { list-style: none; padding: 0; }
.related-box li { padding: 7px 0; }
.related-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.related-chips a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px; font-size: 14px; color: var(--ink); text-decoration: none; transition: border-color .15s, color .15s; }
.related-chips a:hover { border-color: var(--accent); color: var(--accent); }

/* ══ 知识库（KB）内容页 ══════════════════════════════════════════
   09 文档的四件套在版式上要一眼可辨，所以每件都有自己的容器：
   answer 直答段 → 左侧品牌色竖条的引用块；benchmark → 带 caption 的表格；
   工具内嵌 → 独立面板；FAQ → 复用上面的 .faq 手风琴。 */
.kb { max-width: 860px; }
.kb-meta { font-size: 13.5px; color: var(--sub-2); margin: 6px 0 22px; }
.kb-topic-chip {
  display: inline-block; background: var(--accent-soft); color: var(--accent);
  border-radius: 999px; padding: 1px 10px; font-weight: 600; font-size: 12.5px;
}
/* 直答段：AI Overviews 要能整段摘走，因此不能有「如上所述」这类前指依赖 */
.kb-answer {
  border-left: 3px solid var(--accent);
  background: var(--panel);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin: 0 0 30px;
}
.kb-answer p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--ink); max-width: 720px; }

.kb-bench { margin: 18px 0 26px; }
.kb-bench table { margin: 0; }
.kb-bench caption {
  caption-side: top; text-align: left; font-weight: 700; color: var(--ink);
  padding: 0 0 10px; font-size: 15px;
}
.kb-bench figcaption { font-size: 13.5px; color: var(--sub-2); margin-top: 10px; line-height: 1.6; }

.kb-tools {
  margin: 34px 0; padding: 22px 24px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.kb-tools p { margin: 0; }

.kb-card-foot { display: block; margin-top: 8px; font-size: 13px; }

/* ── 页脚：全宽浅底 + 1200px 内衬 ────────────────────────────── */
.site-footer {
  display: block; margin-top: 80px; padding: 30px 0;
  background: var(--panel); border-top: 1px solid var(--line);
  font-size: 14px; color: var(--sub-2);
}
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 40px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand .logo-mark { width: 20px; height: 20px; color: var(--accent); }
.footer-brand a, .footer-links a { color: var(--sub-2); text-decoration: none; }
.footer-brand a:hover, .footer-links a:hover { color: var(--ink); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-sep { color: #d5d9e0; }

/* ── 移动端：LOGO 居中、顶栏菜单隐藏（导航交给底部 TAB）────────── */
@media (max-width: 900px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (max-width: 768px) {
  .header-inner { display: flex; justify-content: center; padding: 0 16px; height: 60px; }
  .site-header .top-nav { display: none; }
  .site-header .header-actions { display: none; }
  .logo-pill { font-size: 16px; padding: 6px 12px 6px 10px; }
  .logo-pill .logo-mark { width: 18px; height: 18px; }
  .wrap { padding: 24px 16px 96px; }
  h1 { font-size: 27px; letter-spacing: -.6px; }
  h2 { font-size: 21px; }
  .hero { margin: 6px 0 26px; text-align: center; }
  .hero .answer { font-size: 16px; max-width: none; }
  .hero .trust-row, .hero .cta-row { justify-content: center; }
  /* 满屏首屏在移动端同样铺满，底部预留 96px 给固定 TAB 栏 */
  .upload-hero {
    min-height: calc(100vh - 60px);
    min-height: calc(100svh - 60px);
    padding: 20px 0 96px;
    background-position: center 30%;
  }
  .upload-hero__inner { padding: 0 16px; }
  .upload-hero .hero { margin: 0 0 20px; }
  .upload-hero .dropzone .drop-hint { padding: 38px 12px; }
  .dropzone { padding: 10px; }
  .dropzone .drop-hint { padding: 36px 12px; }
  .dropzone .drop-hint strong { font-size: 18px; }
  .panel { padding: 18px; }
  .section-grid { grid-template-columns: 1fr; }
  .footer-inner { padding: 0 16px; flex-direction: column; align-items: flex-start; }
  body { padding-bottom: env(safe-area-inset-bottom); }
}
@media (max-width: 480px) {
  .hero .trust-row .pill { font-size: 12px; padding: 5px 11px; }
  /* 文案页（如 About）的标签行同理收紧：13px 时每个标签独占一行，
     12px + 更小内衬后可两两成行，5 行压到 3 行 */
  .trust-row .pill { font-size: 12px; padding: 5px 11px; }
}

/* FAQ：移动端收紧内衬，保留 20px 的标题→首条间距 */
@media (max-width: 768px) {
  .faq { margin-top: 40px; }
  .faq > h2 { margin-bottom: 20px; }
  .faq details { margin-top: 10px; border-radius: 12px; }
  .faq summary { padding: 15px 16px; font-size: 15.5px; gap: 10px; }
  .faq details > p,
  .faq details > ul,
  .faq details > ol { margin: 0 16px 16px; padding-top: 13px; font-size: 15px; }
  /* 表格：小屏压字号与内衬，避免首列标签被挤成多行 */
  table { font-size: 14px; }
  th, td { padding: 10px 9px; }
  th { font-size: 11.5px; }
}
