:root {
  --bg: #eef2f6; --surface: #ffffff; --surface-muted: #f6f8fb; --border: #d7dee8;
  --border-strong: #c4cedb; --text: #172033; --muted: #667085; --soft: #8a95a6;
  --accent: #0f766e; --accent-strong: #0b5f59; --accent-soft: #dff5f1;
  --blue: #2357a4; --blue-soft: #e8f0fb; --danger-bg: #fff5eb; --danger: #9a3412;
  --shadow: 0 18px 48px rgb(23 32 51 / 10%);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: linear-gradient(180deg, #f8fafc, var(--bg)); font: 16px/1.65 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button, .picker-button { cursor: pointer; min-height: 44px; padding: 10px 20px; border: 1px solid transparent; border-radius: 9px; background: var(--accent); color: #fff; font-weight: 650; }
button:hover { background: var(--accent-strong); }
.download-action { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 20px; border-radius: 9px; color: #fff; background: var(--accent); font-weight: 650; }
.download-action:hover { background: var(--accent-strong); text-decoration: none; }
button:disabled { opacity: .5; cursor: not-allowed; }
.secondary { color: var(--text); background: var(--surface); border-color: var(--border); }
.secondary:hover { background: var(--surface-muted); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.3; letter-spacing: -.03em; }
h2 { font-size: 22px; line-height: 1.4; }
p { color: var(--muted); }
.container { width: min(1080px, calc(100% - 48px)); margin: 0 auto; }
.site-header { background: rgb(255 255 255 / 90%); border-bottom: 1px solid var(--border); }
.header-inner { width: min(1180px, calc(100% - 48px)); min-height: 72px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { color: var(--text); display: flex; gap: 10px; align-items: center; font-size: 20px; font-weight: 750; white-space: nowrap; }
.brand svg { color: var(--accent); }
.site-header nav { display: flex; gap: 24px; align-items: center; font-size: 14px; }
.tools-menu { position: relative; }
summary { cursor: pointer; }
.tools-menu summary { color: var(--text); }
.tools-menu > div { position: absolute; z-index: 5; top: 36px; right: 0; width: 240px; border: 1px solid var(--border); background: #fff; border-radius: 12px; padding: 10px; box-shadow: var(--shadow); }
.tools-menu a { display: block; padding: 8px; }
.hero { padding: 56px 0 32px; max-width: 830px; }
.eyebrow { font-size: 13px; font-weight: 650; color: var(--accent); margin-bottom: 12px; letter-spacing: .05em; }
.lead { font-size: 18px; line-height: 1.8; margin: 18px 0; }
.privacy-badge { display: inline-flex; gap: 7px; color: var(--accent-strong); background: var(--accent-soft); border: 1px solid #c7e9e2; padding: 6px 12px; border-radius: 8px; font-size: 14px; }
.section { margin: 28px 0 40px; }
.section > h2 { margin-bottom: 18px; }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tool-card { display: flex; gap: 16px; align-items: flex-start; padding: 24px; border-radius: 13px; border: 1px solid var(--border); background: var(--surface); color: var(--text); transition: border-color .15s, box-shadow .15s; }
.tool-card:hover { border-color: var(--accent); box-shadow: 0 6px 18px rgb(15 118 110 / 7%); text-decoration: none; }
.tool-card > span:nth-child(2) { flex: 1; min-width: 0; }
.card-icon { display: grid; place-items: center; width: 40px; min-width: 40px; height: 40px; background: var(--accent-soft); color: var(--accent); border-radius: 10px; }
.card-description { display: block; font-size: 14px; color: var(--muted); margin-top: 8px; }
.card-status { font-size: 12px; color: var(--accent); white-space: nowrap; }
.info-card, .suite-card { margin: 24px 0; background: var(--surface); border: 1px solid var(--border); border-radius: 13px; padding: 28px; }
.info-card p, .suite-card p { margin-top: 12px; }
.suite-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #e5f3ef; }
.suite-card > a { white-space: nowrap; font-weight: 650; }
.workspace { padding: 28px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.coming-soon { text-align: center; padding: 48px 12px; }
.coming-soon p { margin-top: 12px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; list-style: none; padding: 0; }
.steps li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; }
.steps span { width: 28px; min-width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--accent); background: var(--accent-soft); font-weight: 700; }
.faq details { background: var(--surface); padding: 18px 22px; border: 1px solid var(--border); border-bottom: 0; }
.faq details:first-of-type { border-radius: 12px 12px 0 0; }
.faq details:last-child { border-bottom: 1px solid var(--border); border-radius: 0 0 12px 12px; }
.faq details p { margin-top: 12px; font-size: 15px; }
.site-footer { margin-top: 56px; padding: 32px 0; border-top: 1px solid var(--border); background: var(--surface); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 18px 0; font-size: 14px; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: 13px; color: var(--muted); }
.skip-link { position: absolute; left: 12px; top: -80px; padding: 12px; background: white; z-index: 99; }
.skip-link:focus { top: 8px; }
.wechat-notice { position: fixed; top: 0; width: 100%; padding: 10px 20px; background: #fff1c7; color: #714c05; text-align: center; font-size: 14px; z-index: 20; }
.in-wechat { padding-top: 65px; }
.dropzone { text-align: center; padding: 28px 20px; border: 2px dashed var(--border-strong); border-radius: 12px; background: var(--surface-muted); }
.dropzone.dragover { border-color: var(--accent); background: var(--accent-soft); }
.upload-symbol { display: block; color: var(--accent); font-size: 30px; margin-bottom: 10px; }
.dropzone p { margin-top: 12px; font-size: 14px; }
.dropzone small { color: var(--soft); font-size: 12px; }
.file-input { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }
.file-list { padding: 0; list-style: none; margin: 18px 0; }
.file-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.file-number { font-size: 13px; color: var(--muted); }
.file-copy { flex: 1; min-width: 0; }
.file-copy strong { display: block; overflow-wrap: anywhere; font-size: 14px; }
.file-copy small { color: var(--muted); }
.file-controls { display: flex; gap: 6px; }
.file-controls button { padding: 6px 12px; font-size: 14px; }
.file-error { color: #b42318; font-size: 13px; }
.file-warning { color: var(--danger); font-size: 13px; }
.invalid { background: #fff4f4; }
.message { border-radius: 8px; padding: 12px 16px; margin: 16px 0; font-size: 14px; overflow-wrap: anywhere; }
.error { background: #fff1f0; color: #b42318; }
.warning { background: #fff6db; color: #855809; }
.options { margin: 22px 0; display: flex; flex-wrap: wrap; gap: 18px; }
.options > label { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 150px; font-size: 14px; }
.options .checkbox { flex-direction: row; align-items: center; flex-basis: 100%; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
select, input[type="text"], input[type="number"] { border: 1px solid var(--border-strong); border-radius: 8px; padding: 10px; background: white; width: 100%; color: var(--text); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.progress { padding: 18px 0; }
progress { width: 100%; height: 10px; accent-color: var(--accent); }
.result-card { margin-top: 24px; border: 1px solid #bce3d9; background: #f1faf7; border-radius: 12px; padding: 24px; }
.result-card h2 { font-size: 18px; overflow-wrap: anywhere; }
.result-actions, .chips, .toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.chips a { font-size: 13px; border: 1px solid #bce3d9; border-radius: 20px; padding: 5px 12px; }
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 14px; margin: 20px 0; }
.thumbnail { position: relative; border: 1px solid var(--border); border-radius: 9px; background: var(--surface-muted); padding: 10px; text-align: center; min-width: 0; }
.thumbnail.selected { border: 2px solid var(--accent); background: var(--accent-soft); padding: 9px; }
.thumb-preview { height: 205px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.thumb-preview img { max-width: 100%; max-height: 190px; transition: transform .15s; object-fit: contain; }
.thumb-select { color: var(--text); background: transparent; width: 100%; padding: 0; font-weight: 400; }
.thumb-select:hover { background: transparent; }
.thumb-controls { display: flex; justify-content: center; gap: 6px; margin-top: 6px; }
.thumb-controls button { font-size: 13px; padding: 6px 12px; }
.thumb-label { display: block; font-size: 13px; margin: 6px 0; }
.hint { font-size: 13px; margin-top: 8px; }
.id-upload { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.id-slot { min-width: 0; }
.id-slot h2 { font-size: 17px; }
.id-photo { margin: 12px 0; overflow-wrap: anywhere; }
.id-photo img { display: block; width: 100%; max-width: 360px; height: auto; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; }
.id-photo small { color: var(--muted); }
.watermark-preview { margin: 18px 0; }
.watermark-preview h2 { font-size: 17px; }
.watermark-preview img { display: block; max-width: 100%; width: 280px; border: 1px solid var(--border); }
.wide-option { flex-basis: 100% !important; }
.word-preview { margin-top: 24px; }
.word-preview h2 { font-size: 18px; }
.word-blocks { list-style: none; padding: 0; margin: 16px 0; max-height: 460px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; }
.word-blocks li { display: flex; gap: 10px; align-items: baseline; padding: 12px; border-bottom: 1px solid var(--border); }
.word-blocks li:last-child { border-bottom: 0; }
.word-blocks p { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.block-type { flex: 0 0 44px; font-size: 12px; color: var(--muted); }
.word-blocks [data-align="right"] p { margin-left: auto; text-align: right; }
.word-blocks [data-align="center"] p { text-align: center; flex-grow: 1; }
.manual-copy textarea { display: block; width: 100%; margin-top: 8px; border: 1px solid var(--border-strong); border-radius: 8px; padding: 12px; resize: vertical; }
input[type="color"] { width: 100%; height: 42px; background: white; border: 1px solid var(--border-strong); border-radius: 8px; }
@media (max-width: 650px) {
  .container, .header-inner { width: calc(100% - 32px); }
  .header-inner { min-height: 64px; gap: 10px; }
  .brand { font-size: 17px; gap: 6px; }
  .brand svg { width: 20px; }
  .site-header nav { gap: 12px; font-size: 12px; }
  .site-header nav > a { max-width: 70px; line-height: 1.4; }
  .hero { padding: 36px 0 24px; }
  .lead { font-size: 16px; }
  .privacy-badge { font-size: 12px; padding: 6px 9px; }
  .tool-grid, .steps { grid-template-columns: 1fr; }
  .tool-card { padding: 20px 16px; gap: 12px; }
  .workspace { padding: 16px; }
  .suite-card { display: block; padding: 22px; }
  .suite-card > a { display: inline-block; margin-top: 18px; }
  .file-row { flex-wrap: wrap; gap: 8px; }
  .file-controls { flex-basis: 100%; justify-content: flex-end; }
  .options { flex-direction: column; }
  .id-upload { grid-template-columns: 1fr; }
  .thumb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .thumb-preview { height: 168px; }
  .thumb-preview img { max-height: 158px; }
  .thumb-controls button { padding: 6px 8px; }
  .result-card { padding: 18px; }
}
