*{box-sizing:border-box}
:root{font-family:"Microsoft YaHei",system-ui,sans-serif;color:#187348;background:#f1f6df;color-scheme:light}
body{margin:0}
header{max-width:1200px;margin:auto;padding:24px clamp(20px,5vw,64px);font-weight:800;display:flex;align-items:center;gap:11px}
.mark{display:grid;place-items:center;background:#17613b;color:#e8ff89;border-radius:50%;width:35px;height:35px}
main{max-width:1200px;margin:auto;padding:16px clamp(20px,5vw,64px) 48px}
.intro{display:flex;align-items:end;justify-content:space-between;gap:28px;margin:12px 0 32px;border-bottom:1px solid #ccd8b7;padding-bottom:28px}
h1{font-size:clamp(46px,8vw,94px);line-height:1.06;letter-spacing:-.06em;margin:0;color:#103925}
h1 span{color:#318650}
.intro p{max-width:20em;line-height:1.75;color:#36563e;margin:0}
.workspace{display:grid;grid-template-columns:1fr 1.1fr;gap:18px}
.card{display:flex;flex-direction:column;background:#fcfdf5;border:1px solid #d7e0c4;border-radius:24px;padding:clamp(15px,3vw,26px);min-width:0}
h2{font-size:1.12rem;margin:0 0 16px;color:#163924}
.upload,.stage{position:relative;display:grid;place-items:center;min-height:180px;aspect-ratio:1.42;border-radius:14px;overflow:hidden;text-align:center}
.upload{cursor:pointer;border:2px dashed #8aac81;background:#eaf2dc}
.upload:focus-within,.upload.drag{outline:3px solid #388c57;outline-offset:3px}
.upload input{position:absolute;opacity:0;width:100%;height:100%;cursor:pointer}
.upload img,.stage canvas{max-width:100%;max-height:100%;object-fit:contain}
.upload img{width:100%;height:100%;position:absolute;pointer-events:none}
.upload strong,.upload small{display:block}
.upload small{margin-top:9px;color:#4a644c;font-size:.875rem}
.stage{background:repeating-linear-gradient(135deg,#e4eed3,#e4eed3 12px,#eaf2dd 12px,#eaf2dd 24px);color:#375c42}
.stage:has(canvas:not([hidden])){aspect-ratio:1}
.stage canvas{width:100%;display:block}
.hint{font-size:.875rem;color:#49634d;line-height:1.55;min-height:2.7em;margin:12px 0}
button{margin-top:auto;background:#175f39;color:#fff;font:inherit;font-weight:700;border:0;border-radius:12px;padding:13px 20px;cursor:pointer}
button:disabled{background:#e6ebdc;color:#50604c;cursor:default}
button:focus-visible{outline:3px solid #388c57;outline-offset:3px}
[hidden]{display:none!important}
@media(max-width:650px){.intro{display:block}.intro p{margin-top:14px}.workspace{grid-template-columns:1fr}}
