:root {
  --bg: #f6f7f9; --panel: #ffffff; --ink: #1d2330; --muted: #6b7385; --line: #e3e6ec;
  --accent: #2f5bea; --ok: #1a7f37; --ok-bg: #e6f4ea; --bad: #b42318; --bad-bg: #fdecea;
  --warn-bg: #fff6db; --chip: #eef1f6;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #14171d; --panel: #1c2028; --ink: #e6e8ee; --muted: #9aa1b2; --line: #2c3240;
    --accent: #7b9bff; --ok: #5fd07f; --ok-bg: #16301f; --bad: #ff8a7a; --bad-bg: #3a1d1a;
    --warn-bg: #3a3218; --chip: #262b36; }
}
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--bg); color: var(--ink); }
header { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 14px 20px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
header h1 { font-size: 16px; margin: 0 12px 0 0; }
[hidden] { display: none !important; }
a { color: var(--accent); }
.brand { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand span { color: var(--ok); }
.links { display: flex; gap: 18px; }
.links a { color: var(--muted); text-decoration: none; }
.links a:hover { color: var(--ink); }
.btn { border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; text-decoration: none; color: var(--ink); background: var(--panel); }
.fname { max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip { background: var(--chip); border-radius: 999px; padding: 3px 10px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.chip.empty { background: var(--bad-bg); color: var(--bad); }

/* 首页 */
#landing { max-width: 1100px; margin: 0 auto; padding: 48px 20px 24px; }
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 24px; } #landing { padding-top: 28px; } }
.hero h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--ok); }
.lead { font-size: 17px; color: var(--muted); margin: 0 0 18px; max-width: 56ch; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ticks li::before { content: "✓"; color: var(--ok); font-weight: 700; margin-right: 8px; }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 260px;
  border: 2px dashed var(--line); border-radius: 14px; background: var(--panel); cursor: pointer; text-align: center; padding: 24px;
  transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.over { border-color: var(--accent); }
.dropzone.over { background: var(--chip); }
.dz-icon { font-size: 34px; color: var(--accent); line-height: 1; }
.dz-main { font-size: 19px; font-weight: 600; }
.dz-or { color: var(--muted); }
.dz-or u { color: var(--accent); }
.dz-hint { color: var(--muted); font-size: 12px; margin-top: 8px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 56px 0 8px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.feature h2 { font-size: 16px; margin: 0 0 8px; }
.feature p { margin: 0; color: var(--muted); }
.faq { margin: 48px 0 0; max-width: 820px; }
.faq h2 { font-size: 20px; margin: 0 0 12px; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin: 8px 0 0; }
footer.site { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; padding: 28px 20px 36px; color: var(--muted); font-size: 13px;
  border-top: 1px solid var(--line); margin-top: 32px; }
footer.site a { color: var(--muted); }
/* 隐私政策、使用条款 */
.doc { max-width: 760px; margin: 0 auto; padding: 32px 20px 24px; }
.doc h1 { font-size: 28px; margin: 0 0 4px; }
.doc h2 { font-size: 17px; margin: 28px 0 8px; }
.doc p, .doc li { max-width: 70ch; }
.doc .updated { color: var(--muted); margin: 0 0 20px; }
.doc.wide { max-width: 1100px; }
.doc .lead { max-width: 70ch; }
/* 价格页 */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 24px 0 8px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 6px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; padding: 20px; }
.plan.featured { border: 2px solid var(--accent); }
.plan-badge { position: absolute; top: -11px; left: 18px; background: var(--accent); color: #fff; font-size: 12px;
  font-weight: 600; border-radius: 999px; padding: 2px 10px; }
.plan-name { font-weight: 600; }
.plan-price { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }
.plan-pages { color: var(--muted); margin-bottom: 6px; }
.plan .ticks { margin-bottom: 14px; flex: 1; }
.plan button, .plan .btn { width: 100%; text-align: center; padding: 9px 12px; }
.keybox { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin: 28px 0 8px; }
.keybox h2 { margin-top: 0; }
.keyform { display: flex; gap: 8px; flex-wrap: wrap; }
.keyform input { flex: 1; min-width: 220px; font-family: ui-monospace, Consolas, monospace; }
.keyline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 6px 0 12px; }
.keyline code { font-size: 20px; font-weight: 600; background: var(--chip); border-radius: 8px; padding: 8px 14px; letter-spacing: 0.04em; }
a.primary-link { background: var(--accent); border-color: var(--accent); color: #fff; display: inline-block; }
.failmsg a { color: inherit; font-weight: 600; }
select, input, button { font: inherit; color: inherit; }
select { max-width: 100%; min-width: 0; text-overflow: ellipsis; }
@media (max-width: 600px) { header, main { padding-left: 16px; padding-right: 16px; } .export select { width: 100%; } }
select, input[type=text] { background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; }
button { border: 1px solid var(--line); background: var(--panel); border-radius: 6px; padding: 6px 12px; cursor: pointer; }
button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button:hover { filter: brightness(0.97); }
.drop { border: 1px dashed var(--line); border-radius: 6px; padding: 6px 12px; color: var(--muted); cursor: pointer; }
main { padding: 16px 20px 40px; max-width: 1500px; margin: 0 auto; }
.status { color: var(--muted); padding: 40px 0; text-align: center; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.card .k { color: var(--muted); font-size: 12px; }
.card .v { font-size: 17px; font-variant-numeric: tabular-nums; margin-top: 2px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-weight: 600; font-size: 13px; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.checks { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; }
.checks div { padding: 2px 0; }
.checks .p::before { content: "✕ "; color: var(--bad); }
.checks .n::before { content: "✓ "; color: var(--ok); }
.checks .i::before { content: "ℹ "; color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 14px; align-items: start; }
@media (max-width: 1000px) { .split { grid-template-columns: 1fr; } }
.tablewrap { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: auto; max-height: 72vh; }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { position: sticky; top: 0; background: var(--panel); font-weight: 600; font-size: 12px; color: var(--muted); z-index: 1; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td.desc { white-space: normal; min-width: 220px; max-width: 420px; }
tr { cursor: pointer; }
tr.flag td { background: var(--bad-bg); }
tr.acc td { background: var(--warn-bg); }
tr.cp td { color: var(--muted); font-style: italic; }
tr.sel td { outline: 2px solid var(--accent); outline-offset: -2px; }
td.chk { font-size: 12px; white-space: normal; min-width: 160px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.side { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px; position: sticky; top: 74px; }
.side img { width: 100%; border: 1px solid var(--line); border-radius: 4px; display: block; margin: 8px 0; background: #fff; }
.side .why { background: var(--bad-bg); color: var(--bad); border-radius: 6px; padding: 6px 8px; margin: 6px 0; }
.side label { display: block; font-size: 12px; color: var(--muted); margin-top: 8px; }
.side input { width: 100%; }
.fixes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.muted { color: var(--muted); }
.side img { cursor: zoom-in; }
.warnline { color: var(--bad); font-size: 12px; margin: 2px 0 4px; }
.card .v.amb { font-size: 15px; }
.card button { font-size: 12px; padding: 3px 8px; }
.help { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; }
.help summary { cursor: pointer; font-weight: 600; }
.help p { margin: 8px 0; max-width: 900px; }
.privacy { margin-top: 14px; font-size: 12px; }
.privacy button { font-size: 12px; padding: 3px 8px; margin-left: 6px; }
#zoom { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; z-index: 20; cursor: zoom-out; padding: 16px; }
#zoom[hidden] { display: none; }
#zoom img { max-width: 100%; max-height: 100%; background: #fff; border-radius: 4px; }
.export { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-top: 12px; }
.stage-list { margin-top: 6px; }
.failmsg { display: inline-block; background: var(--bad-bg); color: var(--bad); border-radius: 6px; padding: 8px 12px; }
