/* ==========================================================================
   证件照助手 — PDF/图片加证件照工具
   浅色主题 / 纯 CSS / 无外部字体与外链资源
   ========================================================================== */

:root {
  --bg: #f5f8f6;
  --surface: #ffffff;
  --surface-2: #f0f5f3;
  --ink: #16241f;
  --ink-2: #33463f;
  --muted: #637771;
  --faint: #8b9d98;
  --line: #dce7e3;
  --line-strong: #c7d8d2;
  --brand: #12695f;
  --brand-dark: #0d544b;
  --brand-soft: #e4f1ed;
  --warm: #c96a45;
  --shadow-sm: 0 1px 2px rgba(22, 54, 46, .05), 0 4px 14px rgba(22, 54, 46, .04);
  --shadow-md: 0 10px 36px rgba(18, 62, 54, .10);
  --radius: 16px;
  --radius-sm: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol, figure { margin-top: 0; }
h1, h2, h3 { line-height: 1.3; letter-spacing: -.015em; color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.28em; }
.icon-lg { width: 30px; height: 30px; stroke-width: 1.4; }
.icon-xl { width: 46px; height: 46px; stroke-width: 1.2; }
.container { width: min(100% - 48px, 1200px); margin-inline: auto; }
.container-narrow { width: min(100% - 48px, 880px); }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 16px; color: #fff; }

/* ------------------------------ Buttons --------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 1px solid transparent; border-radius: 10px; padding: 11px 20px;
  font-weight: 600; font-size: 14px; line-height: 1.3; text-align: center;
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(18, 105, 95, .22); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-outline { background: var(--surface); color: var(--ink-2); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.btn-soft { background: var(--brand-soft); color: var(--brand-dark); border-color: #cfe5de; }
.btn-soft:hover { background: #d7ebe4; color: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { background: #eef7f4; color: var(--brand-dark); }
.btn-lg { padding: 14px 26px; font-size: 15px; border-radius: 11px; }
.btn-sm { padding: 8px 13px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.btn-row .btn { flex: 1 1 auto; }
.link-btn { background: none; border: 0; padding: 8px 0 0; color: var(--brand); font-size: 13px; font-weight: 600; }
.link-btn:hover { text-decoration: underline; }
.mini-btn, .icon-btn, .text-btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--muted);
  border-radius: 8px; transition: background-color .15s, color .15s, border-color .15s;
}
.mini-btn { width: 24px; height: 24px; padding: 0; border: 0; background: transparent; }
.mini-btn .icon { width: 14px; height: 14px; }
.icon-btn { width: 30px; height: 30px; padding: 0; font-size: 18px; line-height: 1; }
.text-btn { padding: 5px 10px; font-size: 12px; font-weight: 600; }
.mini-btn:hover, .icon-btn:hover, .text-btn:hover { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
.text-btn[aria-pressed="true"] { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-dark); }

/* ------------------------------ Header ---------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(1.5) blur(12px);
  -webkit-backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 17px; line-height: 1.15; letter-spacing: -.02em; flex: none; }
.brand:hover { color: var(--ink); }
.brand img { border-radius: 9px; }
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--faint); letter-spacing: .04em; margin-top: 2px; }
.main-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.main-nav a { color: var(--ink-2); font-size: 14px; font-weight: 500; }
.main-nav a:hover { color: var(--brand); }
.header-cta { flex: none; }

/* ------------------------------- Hero ----------------------------------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #eef6f2 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; width: 620px; height: 620px; right: -180px; top: -320px; border-radius: 50%; background: radial-gradient(circle, rgba(18, 105, 95, .09), transparent 68%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-block: 74px 78px; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px; padding: 6px 14px; border-radius: 100px; background: #fff; border: 1px solid #cfe5de; color: var(--brand-dark); font-size: 13px; font-weight: 600; letter-spacing: .01em; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #35a887; box-shadow: 0 0 0 4px rgba(53, 168, 135, .15); }
.hero h1 { font-size: clamp(34px, 4vw, 52px); letter-spacing: -.035em; line-height: 1.22; margin-bottom: 20px; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--brand); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 9px; background: rgba(18, 105, 95, .13); border-radius: 5px; z-index: -1; }
.hero-lede { font-size: 16px; color: var(--muted); max-width: 54ch; line-height: 1.9; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-trust { list-style: none; padding: 0; margin: 0; display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.hero-trust li { display: flex; align-items: center; gap: 6px; }
.hero-trust .icon { color: var(--brand); width: 16px; height: 16px; stroke-width: 2.2; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual > img { width: 100%; max-width: 560px; filter: drop-shadow(0 18px 34px rgba(18, 62, 54, .11)); }
.hero-badge { position: absolute; right: 2%; bottom: 8%; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow-md); font-size: 12px; line-height: 1.5; font-weight: 600; color: var(--ink-2); }
.hero-badge .icon { color: var(--brand); width: 22px; height: 22px; }

/* ------------------------------ Sections -------------------------------- */
.section { padding-block: 78px; }
.section-alt { background: #fff; border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head-left { text-align: left; margin-left: 0; }
.kicker { color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: .14em; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 750; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 15px; margin-bottom: 0; }

/* ------------------------------ Workbench -------------------------------- */
.tool-section { padding-block: 68px 76px; }
.workbench { display: grid; grid-template-columns: 336px minmax(0, 1fr); gap: 20px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.panel-block { padding: 18px 20px 20px; border-bottom: 1px solid var(--line); }
.panel-block:last-child { border-bottom: 0; }
.panel-block-accent { background: #fbfdfc; }
.panel-block h3 { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 7px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; flex: none; }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 116px; padding: 16px; border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm); background: #fbfdfc; color: var(--muted); text-align: center; transition: border-color .16s, background-color .16s, transform .16s; }
.dropzone:hover, .dropzone:focus-visible, .dropzone.is-dragover { border-color: var(--brand); background: var(--brand-soft); }
.dropzone.is-dragover { transform: scale(1.01); }
.dropzone .icon-lg { color: var(--brand); margin-bottom: 4px; }
.dropzone strong { color: var(--ink-2); font-size: 14px; font-weight: 650; }
.dropzone span { font-size: 12px; color: var(--faint); }
.dropzone-sm { min-height: 92px; }
.file-info { display: flex; align-items: center; gap: 7px; margin-top: 10px; padding: 8px 10px; background: var(--brand-soft); border-radius: 8px; font-size: 12.5px; color: var(--brand-dark); font-weight: 600; }
.file-info .icon { width: 15px; height: 15px; stroke-width: 2.4; }
.file-info span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.file-info .mini-btn { margin-left: auto; color: var(--brand-dark); }
.page-strip { display: flex; gap: 8px; overflow-x: auto; padding: 12px 2px 2px; margin-top: 4px; }
.page-thumb { flex: none; width: 54px; padding: 4px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.page-thumb.is-active { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(18, 105, 95, .13); }
.page-thumb canvas { display: block; width: 100%; height: auto; background: #fff; border-radius: 3px; }
.page-thumb span { display: block; text-align: center; font-size: 11px; color: var(--muted); margin-top: 3px; }
.page-thumb.is-active span { color: var(--brand); font-weight: 700; }
.selection-info { font-size: 12px; color: var(--muted); background: var(--surface-2); border-radius: 7px; padding: 6px 10px; margin-bottom: 12px; }
.selection-info.is-active { color: var(--brand-dark); background: var(--brand-soft); font-weight: 600; }

.field { display: block; margin-bottom: 12px; font-size: 13px; }
.field > span:first-child { display: flex; justify-content: space-between; align-items: center; color: var(--ink-2); font-weight: 600; margin-bottom: 6px; }
.field b { color: var(--brand); font-variant-numeric: tabular-nums; font-weight: 700; }
.field input[type="number"], .field select, .mini-input {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 8px;
  background: #fff; font-size: 13px; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field input[type="number"]:focus, .field select:focus, .mini-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(18, 105, 95, .1); outline: none; }
.field input[type="color"] { width: 100%; height: 38px; padding: 3px; border: 1px solid var(--line-strong); border-radius: 8px; background: #fff; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.range-field input[type="range"] { width: 100%; height: 20px; margin: 0; accent-color: var(--brand); background: transparent; cursor: pointer; }
.option-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 2px 0 12px; font-size: 12.5px; }
.check { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.check input { accent-color: var(--brand); width: 15px; height: 15px; margin: 0; }
.mini-input { width: 52px; padding: 4px 6px; text-align: center; }
.unit-label { font-size: 11px; color: var(--faint); margin-left: -4px; }
.field-caption { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.pos-block { margin-bottom: 12px; }
.pos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; width: 108px; }
.pos-grid button { height: 28px; border: 1px solid var(--line-strong); background: #fff; border-radius: 5px; transition: background-color .14s, border-color .14s; }
.pos-grid button::after { content: ""; display: block; width: 5px; height: 5px; margin: auto; border-radius: 50%; background: var(--line-strong); }
.pos-grid button:hover { border-color: var(--brand); background: var(--brand-soft); }
.pos-grid button:hover::after { background: var(--brand); }
.hint { font-size: 12px; line-height: 1.65; color: var(--faint); margin: 9px 0 0; }
#exportHint { margin-top: 10px; }

.stage-col { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.stage-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fcfdfd; }
.stage-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #b9c9c4; }
.status-dot.is-ready { background: #35a887; box-shadow: 0 0 0 3px rgba(53, 168, 135, .15); }
.stage-tools { display: flex; align-items: center; gap: 6px; }
.zoom-label { font-size: 12px; color: var(--muted); min-width: 60px; text-align: center; font-variant-numeric: tabular-nums; }
.stage-scroller {
  position: relative; min-height: 570px; max-height: 78vh; overflow: auto;
  display: flex; align-items: flex-start; justify-content: center; padding: 26px;
  background-color: #eef3f1;
  background-image: linear-gradient(45deg, rgba(255,255,255,.5) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.5) 75%),
                    linear-gradient(45deg, rgba(255,255,255,.5) 25%, transparent 25%, transparent 75%, rgba(255,255,255,.5) 75%);
  background-size: 22px 22px; background-position: 0 0, 11px 11px;
}
#stage { display: block; background: #fff; box-shadow: 0 6px 26px rgba(18, 62, 54, .16); border-radius: 2px; touch-action: none; }
.stage-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; color: var(--faint); padding: 24px; }
.stage-empty .icon-xl { color: var(--line-strong); }
.stage-empty strong { color: var(--ink-2); font-size: 16px; }
.stage-empty p { font-size: 13px; margin: 0; max-width: 34ch; }
.stage-tip { margin: 0; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--faint); background: #fcfdfd; line-height: 1.6; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px); background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 10px; font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-md); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 90; max-width: min(90vw, 520px); text-align: center; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { background: #a63d2f; }
.stage-busy { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; background: rgba(245, 249, 247, .82); backdrop-filter: blur(2px); z-index: 5; font-size: 13px; font-weight: 600; color: var(--brand-dark); }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(18, 105, 95, .2); border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------ Feature grid ----------------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 26px 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: transform .18s, box-shadow .18s, border-color .18s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #c9dfd8; }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); margin-bottom: 16px; }
.feature-icon .icon { width: 22px; height: 22px; }
.feature h3 { font-size: 16.5px; margin-bottom: 9px; font-weight: 700; }
.feature p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.8; }
.usecase-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.usecase-grid article { padding: 22px 24px; border-left: 3px solid var(--brand); background: #fff; border-radius: 0 12px 12px 0; box-shadow: var(--shadow-sm); }
.usecase-grid h3 { font-size: 16px; margin-bottom: 8px; }
.usecase-grid p { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ------------------------------- Table ----------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 620px; }
th, td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--line); }
thead th { background: var(--surface-2); color: var(--ink-2); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
tbody th { font-weight: 650; color: var(--ink); white-space: nowrap; }
tbody td { color: var(--muted); font-variant-numeric: tabular-nums; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafdfc; }
.table-note { font-size: 12.5px; color: var(--faint); margin: 14px 0 0; line-height: 1.8; }

/* ------------------------------- Steps ----------------------------------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { position: relative; padding: 24px 20px; background: #fff; border: 1px solid var(--line); border-radius: 13px; }
.step-badge { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--brand); background: var(--brand-soft); padding: 4px 9px; border-radius: 6px; margin-bottom: 14px; }
.steps h3 { font-size: 16px; margin-bottom: 8px; }
.steps p { font-size: 13px; color: var(--muted); margin: 0; }
.center-cta { text-align: center; margin: 34px 0 0; }

/* -------------------------------- FAQ ------------------------------------ */
.faq-list { display: grid; gap: 10px; }
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.faq-list details[open] { border-color: #c9dfd8; box-shadow: var(--shadow-sm); }
.faq-list summary { cursor: pointer; padding: 16px 20px; font-weight: 650; font-size: 14.5px; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--brand); font-weight: 400; flex: none; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list summary:hover { color: var(--brand); }
.faq-list p { padding: 0 20px 18px; margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.85; }

/* ------------------------------ Privacy ---------------------------------- */
.privacy-box { display: flex; gap: 22px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 30px 34px; }
.privacy-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); flex: none; }
.privacy-icon .icon { width: 27px; height: 27px; }
.privacy-box h2 { font-size: 21px; margin-bottom: 8px; }
.privacy-box p { font-size: 13.5px; color: var(--muted); margin: 0; max-width: 88ch; }

.bottom-cta { background: var(--brand); color: #fff; padding-block: 44px; }
.bottom-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.bottom-cta h2 { color: #fff; font-size: 25px; margin-bottom: 5px; }
.bottom-cta p { color: rgba(255,255,255,.78); margin: 0; font-size: 14px; }

/* ------------------------------- Footer ---------------------------------- */
.site-footer { background: #f0f5f3; border-top: 1px solid var(--line); padding-block: 40px 30px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr; gap: 30px; align-items: start; }
.footer-brand { display: grid; grid-template-columns: 28px 1fr; gap: 4px 10px; align-items: center; }
.footer-brand img { border-radius: 7px; }
.footer-brand strong { font-size: 15px; }
.footer-brand p { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); margin: 4px 0 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; align-content: start; }
.site-footer nav a { font-size: 13px; color: var(--ink-2); }
.site-footer nav a:hover { color: var(--brand); }
.copyright { font-size: 12px; color: var(--faint); line-height: 1.8; margin: 0; }

/* ------------------------------- Dialog ---------------------------------- */
.modal { width: min(94vw, 760px); max-height: 92vh; padding: 0; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 80px rgba(12, 46, 39, .28); background: #fff; color: var(--ink); }
.modal::backdrop { background: rgba(13, 38, 33, .48); backdrop-filter: blur(2px); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 17px; margin: 0; }
.modal-body { display: grid; grid-template-columns: 300px 1fr; gap: 26px; padding: 22px; max-height: calc(92vh - 64px); overflow: auto; }
.crop-preview { display: flex; flex-direction: column; align-items: center; gap: 10px; }
#cropCanvas { width: 236px; height: auto; background: #eef3f1; border: 1px solid var(--line); border-radius: 6px; cursor: grab; touch-action: none; box-shadow: var(--shadow-sm); }
#cropCanvas:active { cursor: grabbing; }
.crop-preview .hint { text-align: center; margin: 0; }
.crop-controls { min-width: 0; }
.crop-controls .btn-row { margin-top: 20px; }

/* 桌面端让预览画布吸顶，滚动参数时始终能看到效果 */
@media (min-width: 901px) and (min-height: 800px) {
  .stage-col { position: sticky; top: 84px; }
}
.noscript-tip { margin: 0 0 18px; padding: 14px 18px; border: 1px solid #e6d3b8; background: #fff8ec; color: #7a5a30; border-radius: 10px; font-size: 13.5px; }

/* ------------------------------ Responsive -------------------------------- */
@media (max-width: 1080px) {
  .workbench { grid-template-columns: 300px minmax(0, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .main-nav { gap: 16px; }
}
@media (max-width: 900px) {
  .header-inner { gap: 14px; }
  .main-nav { display: none; }
  .header-cta { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; padding-block: 52px 56px; }
  .hero-visual { max-width: 460px; margin-inline: auto; }
  .hero-badge { right: 0; }
  .workbench { grid-template-columns: 1fr; }
  .stage-scroller { min-height: 460px; max-height: 66vh; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .copyright { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .container, .container-narrow { width: min(100% - 32px, 1200px); }
  body { font-size: 14px; }
  .section, .tool-section { padding-block: 52px; }
  .hero h1 { font-size: 32px; }
  .hero-lede { font-size: 14.5px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-trust { gap: 10px 18px; font-size: 12px; }
  .feature-grid, .usecase-grid, .steps, .footer-inner { grid-template-columns: 1fr; }
  .panel-block { padding: 16px; }
  .stage-scroller { padding: 14px; min-height: 380px; }
  .stage-toolbar { flex-wrap: wrap; }
  .stage-tools { flex-wrap: wrap; }
  .privacy-box { flex-direction: column; padding: 22px; }
  .modal-body { grid-template-columns: 1fr; }
  #cropCanvas { width: 190px; }
  .bottom-cta-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
