/* pdf-tools-v2 · design tokens in OKLCH · green theme */
:root {
  --accent:        oklch(0.72 0.155 165);
  --accent-strong: oklch(0.62 0.16 165);
  --accent-deep:   oklch(0.52 0.14 165);
  --accent-soft:   oklch(0.96 0.03 165);
  --accent-line:   oklch(0.88 0.07 165);
  --text:          oklch(0.25 0.01 250);
  --muted:         oklch(0.51 0.01 250);
  --faint:         oklch(0.65 0.008 250);
  --border:        oklch(0.91 0.005 250);
  --bg:            oklch(0.985 0 0);
  --card:          oklch(1 0 0);
  --wash:          oklch(0.975 0.003 250);
  --err:           oklch(0.62 0.19 25);
  --warn:          oklch(0.75 0.14 80);
  --footer-bg:     oklch(0.23 0.015 260);
  --footer-line:   oklch(0.33 0.015 260);
  --footer-text:   oklch(0.78 0.01 260);
  --footer-dim:    oklch(0.58 0.01 260);
  --radius: 12px;
  --radius-s: 8px;
  --shadow: 0 1px 2px oklch(0 0 0 / 0.05), 0 4px 16px oklch(0 0 0 / 0.06);
  --wrap: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, canvas { max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { line-height: 1.25; color: var(--text); }

/* ---------- Header (sticky, logo left · nav+lang right) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: oklch(1 0 0 / 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.hdr-in {
  max-width: var(--wrap); margin: 0 auto; padding: 0 20px;
  height: 56px; display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; color: var(--text); text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 26px; height: 26px; display: block; flex: none; border-radius: 7px;
}
.hdr-right { display: flex; align-items: center; gap: 20px; }
.nav-link { color: var(--text); font-size: 15px; font-weight: 500; background: none; border: none; padding: 6px 2px; }
.nav-link:hover { color: var(--accent-deep); }
.nav-dd { position: relative; }
.nav-dd .nav-link { display: inline-flex; align-items: center; gap: 5px; }
.nav-dd .chev { width: 15px; height: 15px; transition: transform 0.18s ease; }
.nav-dd:hover .chev, .nav-dd.open .chev, .nav-dd:focus-within .chev { transform: rotate(180deg); }
/* hover 桥：填补按钮与菜单之间 6px 空隙，防止移过去时 hover 断开 */
.nav-dd::after { content: ""; position: absolute; left: -6px; right: -6px; top: 100%; height: 10px; }
.nav-menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 200px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-s);
  box-shadow: var(--shadow); padding: 6px; display: none; z-index: 60;
}
.nav-dd:hover .nav-menu, .nav-dd.open .nav-menu, .nav-dd:focus-within .nav-menu { display: block; }
.nav-menu a, .nav-menu .all-tools {
  display: block; padding: 9px 12px; border-radius: 6px; font-size: 14px; color: var(--text);
}
.nav-menu a:hover, .nav-menu .all-tools:hover { background: var(--wash); text-decoration: none; }
.nav-menu a.current { color: var(--accent-deep); font-weight: 600; }
.nav-menu hr { border: none; border-top: 1px solid var(--border); margin: 6px 0; }
.nav-menu .all-tools { color: var(--accent-deep); font-weight: 600; cursor: pointer; }
.lang-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--wash); border: 1px solid var(--border); border-radius: 999px;
  padding: 5px 12px; font-size: 13px; color: var(--text); font-weight: 500;
  font-family: inherit; cursor: pointer;
}
.lang-dd .nav-menu { min-width: 168px; }
.lang-dd .chev { width: 14px; height: 14px; }
.drawer-lang {
  display: block; padding: 12px 4px 4px; font-size: 13px; color: var(--muted);
}
.lang-pick {
  display: block; width: 100%; margin-top: 8px; padding: 10px 12px;
  font: inherit; font-size: 15px; color: var(--text); background: var(--card);
  border: 1px solid var(--border); border-radius: 8px;
}
.hdr-burger { display: none; border: none; background: none; font-size: 22px; color: var(--text); padding: 8px; }
.hdr-drawer {
  display: none; border-top: 1px solid var(--border); background: var(--card); padding: 8px 20px 16px;
}
.hdr-drawer a, .hdr-drawer button.menu-row {
  display: block; width: 100%; text-align: left; padding: 12px 4px; font-size: 15px;
  border: none; background: none; color: var(--text); border-bottom: 1px solid var(--border);
}

/* ---------- Hero ---------- */
.hero { padding: 48px 0 28px; text-align: center; }
.hero h1 {
  font-size: clamp(30px, 5vw, 44px); font-weight: 800; margin: 0 0 14px; letter-spacing: -0.5px;
}
.hero h1 .hl { color: var(--accent-deep); }
.hero .sub { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0 auto 26px; }
.hero .sub p { margin: 4px 0; }
@media (min-width: 960px) {
  .hero .sub { max-width: 980px; }
  .hero .sub p:first-child { white-space: nowrap; }
}

/* ---------- Dropzone (white on tinted hero for contrast) ---------- */
.dropzone {
  width: 78%; max-width: 920px; margin: 0 auto;
  border: 2px dashed var(--accent-line); border-radius: 16px;
  background: var(--card); padding: 40px 28px 30px;
  box-shadow: var(--shadow);
  text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone:focus-visible, .dropzone.over { border-color: var(--accent); background: var(--accent-soft); outline: none; }
.dz-svg {
  width: 46px; height: 44px; display: block; margin: 0 auto 12px;
  color: var(--accent-strong);
}
.dz-main { font-size: 18px; font-weight: 700; margin: 0 0 6px; }
.dz-desc { font-size: 13.5px; color: var(--muted); margin: 0 0 18px; }
.dz-btn {
  display: inline-block; background: var(--accent); color: #fff; border: none;
  border-radius: 10px; padding: 11px 22px; font-size: 15px; font-weight: 700;
  box-shadow: 0 2px 8px oklch(0.72 0.155 165 / 0.35);
}
.dropzone:hover .dz-btn, .dropzone.over .dz-btn { background: var(--accent-strong); }
.dz-alt { font-size: 13px; color: var(--faint); margin: 12px 0 0; }
.secure-line {
  text-align: center; font-size: 14px; font-weight: 600; color: var(--text); margin: 16px 0 4px;
}
.secure-line .lock {
  display: inline-flex; vertical-align: -3px; margin-right: 1px; color: var(--accent-deep);
}
.secure-line .lock svg { width: 15px; height: 15px; }
.trust-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
  font-size: 13.5px; color: var(--muted); margin: 8px auto 0; max-width: 760px;
}
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.trust-row .tick { display: inline-flex; color: var(--accent); }
.trust-row .tick svg { width: 15px; height: 15px; display: block; }

/* ---------- Wizard (tool area) ---------- */
#tool {
  padding: 4px 0 36px;
  background: linear-gradient(180deg, oklch(0.965 0.02 165), oklch(0.985 0.008 165));
}
.wz { max-width: 950px; margin: 0 auto; }
/* 流程状态：内容装进白色圆角卡片（对齐参考稿） */
.wz.wz-on {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 30px 26px 18px;
}
.wz-head { display: flex; align-items: center; gap: 10px; margin: 10px 0 14px; }
/* ---------- loading（读取大 PDF 时的过渡状态） ---------- */
.loading-box { display: flex; align-items: center; gap: 16px; padding: 28px 8px 24px; }
.spinner {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  border: 3.5px solid var(--accent-soft); border-top-color: var(--accent);
  animation: wz-spin 0.9s linear infinite;
}
@keyframes wz-spin { to { transform: rotate(360deg); } }
.loading-tx { min-width: 0; }
.loading-main {
  font-weight: 700; font-size: 15.5px;
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.loading-sub { font-size: 13px; color: var(--faint); margin-top: 4px; }
@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2.4s; }
}
/* 步骤指示条（药丸式，醒目） */
.wz-steps { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.wz-steps .stp {
  font-size: 13px; font-weight: 600; color: var(--muted);
  background: var(--wash); border-radius: 999px; padding: 5px 13px;
}
.wz-steps .stp.done { color: var(--accent-deep); background: var(--accent-soft); }
.wz-steps .stp.on { background: var(--accent); color: #fff; box-shadow: 0 2px 8px oklch(0.72 0.155 165 / 0.35); }
.wz-steps .arr { color: var(--faint); font-size: 13px; }
.hint-large {
  background: var(--wash); border: 1px solid var(--border); color: var(--muted);
  border-radius: var(--radius-s); padding: 8px 14px; font-size: 13.5px; margin: 0 0 14px;
}

/* file list */
.file-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  background: oklch(0.975 0.006 165); border: 1px solid var(--border); border-radius: 10px;
  margin-bottom: 10px;
}
.file-ic {
  width: 34px; height: 34px; border-radius: 8px; background: oklch(0.94 0.03 25);
  color: var(--err); display: grid; place-items: center; font-weight: 800; font-size: 11px; flex: none;
}
.file-meta { flex: 1; min-width: 0; }
.file-name { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-sub { font-size: 12.5px; color: var(--faint); }
.file-x {
  border: none; background: none; color: var(--faint); font-size: 17px; padding: 6px 10px;
  border-radius: 6px; flex: none;
}
.file-x:hover { color: var(--err); background: var(--wash); }
.add-more {
  display: block; width: 100%; padding: 13px; margin-bottom: 18px;
  border: 1.5px dashed var(--accent-line); border-radius: 10px;
  background: var(--card); color: var(--accent-deep); font-weight: 600; font-size: 14.5px;
}
.add-more:hover { border-color: var(--accent); background: var(--accent-soft); }

/* option rows */
.opt-row { margin: 18px 0; }
.opt-label { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 8px; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1px solid transparent; background: var(--wash); border-radius: 8px;
  padding: 9px 20px; font-size: 14.5px; font-weight: 600; color: var(--text);
}
.chip:hover { border-color: var(--accent-line); }
.chip[aria-pressed="true"] {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 2px 10px oklch(0.72 0.155 165 / 0.4);
}
/* 工具页固定格式 chip（不可切换，样式同激活态） */
.chip--fixed {
  background: var(--accent); border-color: var(--accent); color: #fff;
  box-shadow: 0 2px 10px oklch(0.72 0.155 165 / 0.4);
  cursor: default; padding: 9px 20px; font-size: 14.5px; font-weight: 600;
  border-radius: 8px; display: inline-block;
}
/* quality slider（自绘轨道与滑块，避免系统默认的黑边/过亮绿） */
.opt-label b { color: var(--accent-deep); }
.opt-row input[type="range"] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; margin: 0; border-radius: 999px;
  background: linear-gradient(to right, var(--accent-strong) 0 var(--p, 90%), oklch(0.92 0.006 250) var(--p, 90%) 100%);
  outline: none; border: none; display: block;
}
/* 滑杆 + 两端端点标签视为一个整体：紧贴、浅色、带方向箭头，明确属于 Quality */
.q-block { margin-top: 14px; }
.q-block .q-ends { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--faint); margin-top: 7px; letter-spacing: .01em; }
.opt-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 3px solid var(--accent-strong);
  box-shadow: 0 1px 4px oklch(0 0 0 / 0.2); cursor: pointer;
  transition: border-color .15s, transform .12s;
}
.opt-row input[type="range"]::-webkit-slider-thumb:hover { border-color: var(--accent-deep); transform: scale(1.1); }
.opt-row input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: oklch(0.92 0.006 250); border: none; }
.opt-row input[type="range"]::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--accent-strong); }
.opt-row input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%; background: #fff;
  border: 3px solid var(--accent-strong); cursor: pointer;
}
.opt-row input[type="range"]:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 4px; }
/* DPI 三档（分离式按钮，对齐原型 v3） */
.seg { display: flex; flex-wrap: wrap; gap: 10px; }
.seg button {
  border: 1px solid transparent; background: var(--wash); border-radius: 8px;
  padding: 10px 18px; font-size: 14px; font-weight: 600; color: var(--text);
}
.seg button:hover { border-color: var(--accent-line); }
.seg button[aria-pressed="true"] { background: var(--accent); color: #fff; box-shadow: 0 2px 10px oklch(0.72 0.155 165 / 0.4); }

/* wizard buttons */
.wz-actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 22px; }
.wz-actions--end { justify-content: flex-end; gap: 10px; }
.btn-reset {
  border: none; background: none; border-radius: 10px;
  padding: 11px 14px; font-size: 14px; font-weight: 600; color: var(--faint);
  text-decoration: none;
}
.btn-reset:hover { color: var(--err); background: oklch(0.965 0.02 25); text-decoration: none; }
.btn-back {
  border: 1.5px solid var(--border); background: var(--card); border-radius: 10px;
  padding: 11px 20px; font-size: 14.5px; font-weight: 600; color: var(--muted);
  transition: transform .12s, border-color .15s, color .15s, background .15s;
}
.btn-back:hover { border-color: var(--accent-line); color: var(--accent-deep); }
/* 回退感：按下时轻微缩小并填充浅灰（触屏也有反馈） */
.btn-back:active { transform: scale(.97); background: var(--wash); border-color: var(--border); }
.btn-primary {
  border: none; background: var(--accent); color: #fff; border-radius: 10px;
  padding: 12px 26px; font-size: 15px; font-weight: 700;
  box-shadow: 0 2px 10px oklch(0.72 0.155 165 / 0.4);
}
.btn-primary:hover:not(:disabled) { background: var(--accent-strong); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.wz-actions .grow { flex: 1; text-align: center; font-size: 13px; color: var(--faint); }

/* select-pages step */
.fgroup { margin: 18px 0 26px; }
/* 不允许折行：文件名 flex:1 占满剩余宽度并以省略号截断，页数始终贴右 */
.fgroup-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
/* 小号 PDF 徽标（步骤 3 文件名前，与步骤 2 文件行的红色徽标同款） */
.fgroup-ic {
  width: 26px; height: 26px; border-radius: 6px; background: oklch(0.94 0.03 25);
  color: var(--err); display: grid; place-items: center; font-weight: 800; font-size: 9px; flex: none;
}
.fgroup-name {
  font-weight: 700; font-size: 15px;
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fgroup-sub { font-size: 12.5px; color: var(--faint); flex: none; }
.mini-btn {
  border: 1px solid var(--border); background: var(--card); border-radius: 7px;
  padding: 5px 11px; font-size: 12.5px; font-weight: 600; color: var(--muted);
}
.mini-btn:hover { border-color: var(--accent-line); color: var(--accent-deep); }
.range-box { display: flex; gap: 8px; align-items: center; margin: 10px 0 14px; }
.range-box input {
  flex: 1; border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px;
  font: inherit; font-size: 13.5px; color: var(--text); background: var(--card);
}
.range-box input:focus { outline: 2px solid var(--accent-line); border-color: var(--accent); }
/* PC 固定 5 列（950px 卡片内宽 ~898px，单格 ~171px）；窄屏逐级降列 */
.thumbs {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
}
/* ---------- 统一自绘勾选框（纯 CSS 绿勾，选页与结果页共用） ---------- */
.cbox {
  -webkit-appearance: none; appearance: none; margin: 0;
  width: 20px; height: 20px; border-radius: 6px;
  background: oklch(1 0 0 / 0.95); border: 1.5px solid oklch(0.72 0.006 250);
  display: grid; place-items: center; cursor: pointer; flex: none;
  box-shadow: 0 1px 3px oklch(0 0 0 / 0.15);
  transition: border-color .15s, background .15s;
}
.cbox:hover { border-color: var(--accent); }
.cbox:checked { border-color: var(--accent-strong); }
.cbox:checked::after {
  content: ""; width: 10px; height: 5px;
  border-left: 2.5px solid var(--accent-strong);
  border-bottom: 2.5px solid var(--accent-strong);
  transform: rotate(-45deg) translate(0.5px, -1px);
}
.cbox:focus-visible { outline: 2px solid var(--accent-line); outline-offset: 2px; }
/* 半选（部分选中）＝ 一条短横线，配色与选中态一致 */
.cbox:indeterminate { border-color: var(--accent-strong); background: oklch(0.97 0.02 165); }
.cbox:indeterminate::after {
  content: ""; width: 10px; height: 0;
  border-left: none; border-bottom: 2.5px solid var(--accent-strong);
  transform: none;
}
/* 组选框（文件名前的全选/全不选） */
.cbox--group { width: 21px; height: 21px; }
.cbox--group:checked, .cbox--group:indeterminate { box-shadow: 0 1px 4px oklch(0.72 0.155 165 / 0.45); }

.thumb {
  position: relative; border: 1.5px solid var(--border); border-radius: var(--radius-s);
  background: #fff; padding: 6px; cursor: pointer; contain: content;
  transition: border-color .15s, box-shadow .15s;
}
.thumb:hover { border-color: var(--accent-line); }
.thumb.on { border-color: var(--accent); box-shadow: 0 0 0 1.5px var(--accent); }
.thumb .cbox { position: absolute; top: 8px; left: 8px; z-index: 2; width: 18px; height: 18px; }
.thumb .pageno {
  position: absolute; bottom: 8px; right: 9px; background: oklch(0 0 0 / 0.55); color: #fff;
  font-size: 11px; padding: 1px 7px; border-radius: 999px;
}
.thumb canvas { display: block; width: 100%; }
.thumb .ph { min-height: 140px; display: grid; place-items: center; color: var(--faint); font-size: 12px; }

/* progress */
.progress-box { text-align: center; padding: 26px 0 10px; }
progress { width: 100%; height: 14px; accent-color: var(--accent); }
.status { text-align: center; font-size: 14px; color: var(--muted); margin: 10px 0; min-height: 22px; }
/* 无文案时不占位：步骤 2/3 不显示提示，否则会在卡片底部多出 ~42px。
   用 :empty 塌陷而不是 display:none —— aria-live 节点必须留在无障碍树里，否则读屏不会播报 */
.status:empty { min-height: 0; margin: 0; padding: 0; }
.status.ok { color: var(--accent-deep); font-weight: 600; }
.status.err { color: var(--err); }
.status.warn { color: var(--warn); }

/* done / results */
.done-head { text-align: center; margin: 6px 0 18px; }
.done-title { font-size: 24px; font-weight: 800; color: var(--accent-deep); margin: 0 0 4px; }
.done-sub { font-size: 14px; color: var(--muted); }
.done-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 0 0 20px; }
.results { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
/* 结果按源文件分组：首组不留大上边距，最后一组收口 */
.result-wrap > .fgroup { margin: 0 0 26px; }
.result-wrap > .fgroup:last-child { margin-bottom: 0; }
.result-wrap > .fgroup > .fgroup-head { margin-top: 4px; }
.result-wrap > .fgroup.grp-off .fgroup-ic,
.result-wrap > .fgroup.grp-off .fgroup-name,
.result-wrap > .fgroup.grp-off .fgroup-sub { opacity: .45; }
.rcard {
  position: relative; border: 1px solid var(--border); border-radius: var(--radius-s);
  background: var(--card); padding: 8px; cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.rcard:hover { border-color: var(--accent-line); box-shadow: 0 2px 10px oklch(0 0 0 / 0.06); }
/* 取消选中（不打包进 ZIP）时整体压暗，一眼看出哪些被排除 */
.rcard.off { border-color: oklch(0.9 0.004 250); }
.rcard.off img { opacity: .35; filter: grayscale(1); }
.rcard.off .rmeta { opacity: .5; }
.rcard img { display: block; width: 100%; aspect-ratio: 210/297; object-fit: contain; background: #fff; transition: opacity .15s, filter .15s; }
.rcard .rmeta { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--faint); }
.rcard .rpage { font-weight: 700; color: var(--text); }
/* 左上角勾选框：复用 .cbox 自绘绿勾 */
.rcard .rcheck { position: absolute; top: 8px; left: 8px; z-index: 2; display: flex; }
.rcard .rcheck .cbox { width: 21px; height: 21px; }
/* 右上角单图下载 */
.rcard .rdl {
  position: absolute; top: 6px; right: 6px; z-index: 2; margin: 0;
  border: none; background: var(--accent-soft); color: var(--accent-deep);
  border-radius: 8px; width: 28px; height: 28px; padding: 0;
  display: grid; place-items: center;
  box-shadow: 0 1px 3px oklch(0 0 0 / 0.12);
}
.rcard .rdl:hover { background: var(--accent); color: #fff; }

/* ---------- Content sections (backgrounds, no divider lines) ---------- */
.section { padding: 44px 0; }
.section--flush { padding-top: 40px; }
.section--wash { background: var(--wash); }
.section--tint { background: linear-gradient(180deg, oklch(0.965 0.02 165), oklch(0.985 0.008 165)); }
/* 与首屏 #tool 的渐变无缝衔接：从首屏结尾色渐变到纯白，两段视觉上合成一条渐变带 */
.section--fade { background: linear-gradient(180deg, oklch(0.985 0.008 165), oklch(1 0 0)); }
.section h2 { font-size: 25px; font-weight: 800; margin: 0 0 18px; text-align: center; }
.section .intro { color: var(--muted); max-width: 760px; margin: 0 auto 16px; text-align: center; }
.prose { width: 90%; max-width: 1050px; margin: 0 auto; }
.prose p { margin: 0 0 14px; color: oklch(0.35 0.01 250); }
.prose p:last-child { margin: 0; }

/* privacy notice callout */
.notice {
  background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--warn);
  border-radius: var(--radius-s, 10px); padding: 16px 20px 14px; margin: 0 0 26px;
  box-shadow: var(--shadow);
}
.notice h3 {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 10px; font-size: 14.5px; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: oklch(0.25 0.02 80);
}
.notice h3 svg { width: 18px; height: 18px; flex: none; color: var(--warn); }
.notice p { margin: 0 0 10px; font-size: 14.5px; }
.notice ul { margin: 0; padding-left: 20px; }
.notice li { margin: 0 0 7px; font-size: 14.5px; color: oklch(0.35 0.01 250); }
.notice li:last-child { margin-bottom: 0; }

/* why-choose cards */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
/* related tools 标题行（工具页）：左标题右 More tools */
.rel-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 18px; }
.rel-head h2 { margin: 0; text-align: left; }
.rel-head .more-link { font-size: 14px; font-weight: 600; color: var(--accent-deep); }
.rel-head .more-link:hover { text-decoration: underline; }

/* ---------- 信息页（tools/about/privacy/terms/contact） ---------- */
/* about / privacy / terms / contact：与首页 #tool 同一条薄荷绿渐变 */
.page-sheet {
  background: linear-gradient(180deg, oklch(0.965 0.02 165), oklch(0.985 0.008 165));
  padding-bottom: 48px;
}
.page-hero { padding: 52px 0 18px; text-align: center; }
.page-hero h1 { font-size: clamp(28px, 4.6vw, 40px); font-weight: 800; margin: 0 0 12px; letter-spacing: -0.5px; }
.page-hero .page-sub { color: var(--muted); font-size: 16.5px; max-width: 640px; margin: 0 auto; }
.page-prose { width: 90%; max-width: 900px; margin: 0 auto; padding-bottom: 30px; }
.page-prose h2 { font-size: 21px; font-weight: 800; text-align: left; margin: 30px 0 10px; letter-spacing: -0.2px; }
.page-prose h2:first-child { margin-top: 0; }
.page-prose p { margin: 0 0 14px; color: oklch(0.35 0.01 250); }
.page-prose p:last-child { margin: 0; }
.page-prose ul { margin: 0 0 14px; padding-left: 22px; color: oklch(0.35 0.01 250); }
.page-prose li { margin: 0 0 7px; }
.page-prose .updated { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
/* tools 页对比表 */
.fmt-table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 6px 0 26px; }
.fmt-table th, .fmt-table td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.fmt-table th { background: var(--wash); font-size: 13.5px; }
.fmt-table td b { color: var(--accent-deep); }
/* contact 邮箱卡 */
.contact-card {
  max-width: 520px; margin: 6px auto 0; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 24px; text-align: center;
}
.contact-card .mail { display: inline-block; margin: 10px 0 14px; font-size: 18px; font-weight: 700; color: var(--accent-deep); }
.contact-card p { color: var(--muted); font-size: 14.5px; margin: 0; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 18px; box-shadow: var(--shadow);
}
.card .ic {
  width: 36px; height: 36px; border-radius: 9px; background: var(--accent-soft);
  display: grid; place-items: center; flex: none; color: var(--accent-deep);
}
.card .ic svg { width: 20px; height: 20px; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.card-head h3 { margin: 0; font-size: 16px; }
.card h3 { font-size: 16.5px; margin: 0 0 6px; }
.card p { margin: 0; font-size: 14px; color: var(--muted); }

/* how-it-works flow cards (mockups are pure CSS; text stays readable for crawlers) */
.how-flow {
  list-style: none; padding: 0; margin: 26px auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  max-width: 1200px;
}
.how-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px 14px; position: relative;
}
.how-card + .how-card::before {
  content: "→"; position: absolute; left: -17px; top: 46%;
  color: var(--accent); font-size: 17px; font-weight: 800; line-height: 1;
}
.how-head { display: flex; align-items: center; gap: 9px; }
.how-head .n {
  width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff;
  font-size: 14px; font-weight: 800; display: grid; place-items: center; flex: none;
}
.how-head h3 { font-size: 15.5px; margin: 0; }
.how-card > p { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
/* mini mockups (inline SVG, theme-aware) */
.how-art {
  background: var(--wash); border: 1px solid var(--border); border-radius: var(--radius-s);
  margin: 12px 0 0; padding: 10px;
}
.how-art svg { display: block; width: 100%; height: auto; }

/* FAQ (details, collapsed by default) */
.faq { max-width: 860px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-s); background: var(--card); margin-bottom: 10px; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; font-weight: 600; font-size: 15.5px; min-height: 52px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 20px; color: var(--accent-deep); font-weight: 700; }
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:hover { background: var(--wash); }
.faq-item .faq-a { padding: 0 18px 16px; font-size: 14.5px; color: var(--muted); }
.faq-item .faq-a p { margin: 0; }

/* tools grid */
.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.toolcard {
  display: block; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 16px; color: var(--text); box-shadow: var(--shadow);
}
.toolcard:hover { border-color: var(--accent-line); text-decoration: none; transform: translateY(-2px); transition: .15s; }
.toolcard .fmt {
  width: 36px; height: 36px; border-radius: 9px; background: var(--accent-soft);
  color: var(--accent-deep); font-weight: 800; font-size: 11px;
  display: grid; place-items: center; flex: none;
}
.tc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tc-head h3 { margin: 0; }
.toolcard h3 { font-size: 15.5px; margin: 0 0 4px; }
.toolcard p { margin: 0; font-size: 13px; color: var(--muted); }

/* start now CTA */
.cta { text-align: center; padding: 40px 20px; }
.cta h2 { font-size: 25px; font-weight: 800; margin: 0 0 10px; }
.cta p { color: var(--muted); max-width: 640px; margin: 0 auto 22px; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff; border: none; border-radius: 12px;
  padding: 14px 32px; font-size: 16px; font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 16px oklch(0.72 0.155 165 / 0.45);
}
.cta-btn:hover, .cta-btn:focus, .cta-btn:active, .cta-btn:visited { text-decoration: none; color: #fff; }
.cta-btn:hover { background: var(--accent-strong); }

/* ---------- Footer (dark, 4 cols) ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-text); margin-top: 30px; }
.ft-in { max-width: var(--wrap); margin: 0 auto; padding: 40px 20px 18px; }
.ft-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; padding-bottom: 30px; }
.ft-brand { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 800; font-size: 17px; margin-bottom: 10px; }
.ft-col h3 { color: #fff; font-size: 13.5px; font-weight: 700; margin: 0 0 12px; }
.ft-col a { display: block; color: var(--footer-text); font-size: 13.5px; padding: 3.5px 0; }
.ft-col a:hover { color: var(--accent); text-decoration: none; }
.ft-tag { font-size: 13px; color: var(--footer-dim); margin: 0; }
.ft-badges { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 12.5px; color: var(--footer-text); }
.ft-badges span { display: inline-flex; align-items: center; gap: 5px; }
.ft-badges svg { width: 13px; height: 13px; flex: none; color: var(--accent); }
.ft-langs { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.ft-langs a, .ft-langs span { font-size: 13.5px; color: var(--footer-text); }
.ft-langs a.cur { color: var(--accent); font-weight: 700; }
.ft-bottom {
  border-top: 1px solid var(--footer-line); padding-top: 16px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  font-size: 12.5px; color: var(--footer-dim);
}

/* ---------- back to top ---------- */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 45;
  width: 46px; height: 46px; border-radius: 50%; border: none;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 4px 14px oklch(0.72 0.155 165 / 0.45);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s, background .15s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent-strong); }
.to-top:focus-visible { outline: 3px solid var(--accent-line); outline-offset: 2px; }
.to-top svg { width: 22px; height: 22px; display: block; }

/* ---------- toast ---------- */
.toast-stack {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none; width: max-content; max-width: calc(100vw - 32px);
}
.toast {
  display: flex; align-items: center; gap: 9px;
  background: oklch(0.26 0.015 260); color: #fff;
  padding: 11px 18px 11px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600; line-height: 1.35;
  box-shadow: 0 6px 24px oklch(0 0 0 / 0.28);
  opacity: 0; transform: translateY(10px) scale(.97);
  transition: opacity .2s ease, transform .2s ease;
}
.toast.in { opacity: 1; transform: none; }
.toast-ic {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
  background: var(--accent); color: #fff;
}
.toast--err .toast-ic { background: var(--err); }
.toast--warn .toast-ic { background: oklch(0.75 0.14 75); }
.toast-tx { min-width: 0; }

@media (max-width: 720px) {
  .toast-stack { bottom: 16px; }
  .toast { font-size: 13px; padding: 10px 15px 10px 12px; border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .toast { transition: opacity .1s linear; transform: none; }
  .toast.in { transform: none; }
}

/* ---------- inline SVG icons (统一尺寸与配色) ---------- */
.lang-pill svg { width: 15px; height: 15px; flex: none; color: var(--accent-deep); }
.hdr-burger { font-size: 0; }
.hdr-burger svg { width: 22px; height: 22px; display: block; }
.hdr-drawer .menu-row svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 5px; color: var(--accent-deep); }
.hint-large { display: flex; align-items: center; gap: 7px; }
.hint-large svg { width: 15px; height: 15px; flex: none; color: var(--warn); }
.hint-large[hidden] { display: none; }
.done-title { display: flex; align-items: center; justify-content: center; gap: 9px; }
.done-title svg { width: 23px; height: 23px; flex: none; color: var(--accent); }
.ft-bottom svg { display: inline-block; vertical-align: -2px; }
.ft-heart { width: 12px; height: 12px; color: oklch(0.68 0.17 20); }
.ft-lock { width: 12px; height: 12px; margin-right: 5px; color: var(--footer-dim); }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .cards3 { grid-template-columns: 1fr 1fr; }
  .cards4 { grid-template-columns: 1fr 1fr; }
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .how-flow { grid-template-columns: 1fr 1fr; max-width: 560px; }
  .how-card + .how-card::before { content: none; }
  .thumbs, .results { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 720px) {
  .hdr-right { display: none; }
  .hdr-burger { display: block; }
  .hdr-drawer.open { display: block; }
  .hero { padding: 34px 0 22px; }
  .hero h1 { font-size: 30px; }
  .hero .sub { font-size: 16px; }
  .trust-row { gap: 6px 18px; justify-content: flex-start; }
  /* 只作用于直接子级：此前 .trust-row span 会命中内层 .tick，把对勾拉成 50% 宽 */
  .trust-row > span { width: calc(50% - 9px); justify-content: flex-start; align-items: flex-start; }
  .secure-line { text-align: left; }
  .dropzone { width: 100%; padding: 30px 20px 26px; }
  .prose { width: 100%; }
  .ft-bottom { padding-right: 56px; }
  .to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
  .to-top svg { width: 20px; height: 20px; }
  .how-flow { grid-template-columns: 1fr; max-width: 420px; }
  .cards3, .cards4 { grid-template-columns: 1fr; }
  .wz-actions { flex-direction: column-reverse; }
  .wz-actions .btn-primary { width: 100%; }
  .wz-actions .btn-back { width: 100%; }
  /* 流程卡片：手机端收窄左右 padding，给内容留更多空间 */
  .wz.wz-on { padding: 22px 14px 14px; }
  /* 步骤条只显示当前步骤，避免折行 */
  .wz-steps .stp:not(.on), .wz-steps .arr { display: none; }
  .wz-steps { margin-bottom: 14px; }
  /* 分辨率 4 项两列排布 */
  .seg { display: grid; grid-template-columns: 1fr 1fr; }
  .seg button { text-align: center; }
  .ft-grid { grid-template-columns: 1fr; }
  /* 语言在 footer 始终平铺（不用 select），手机端三列排布 */
  .ft-langs { display: grid; grid-template-columns: repeat(3, auto); gap: 8px 18px; justify-content: start; }
  .thumbs, .results { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 480px) {
  .thumbs, .results { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
