:root{color:#49352c;background:#faf4e9;font-family:"PingFang SC","Microsoft YaHei","Noto Sans CJK SC",sans-serif;color-scheme:light}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 45% 1%,#fffdf6,#f7ede0 83%);min-height:100vh}header{text-align:center;padding:55px 20px 29px}header p{margin:10px auto;color:#775c4e}.eyebrow{font-size:.78rem;letter-spacing:.24em;font-weight:700}h1,h2{font-family:"Songti SC","Noto Serif CJK SC","SimSun",serif}h1{font-size:clamp(2.25rem,6vw,3.9rem);font-weight:700;letter-spacing:.06em;margin:5px 0 9px}h2{font-size:1.1rem;margin:0 0 12px}main{width:min(1020px,calc(100% - 40px));margin:auto}.desk{display:grid;grid-template-columns:minmax(0,1.57fr) minmax(275px,1fr);gap:24px;align-items:start}.preview,.edit,.export{border:1px solid #e6d3ba;background:#fffaf1;border-radius:19px;box-shadow:0 10px 30px #8248180b}.preview{padding:17px}.edit{padding:21px}.preview canvas{display:block;width:100%;height:auto;border-radius:10px;background:#eee4d5}.preview-actions{display:flex;align-items:center;justify-content:space-between;margin-top:12px}.preview-actions span{font-size:.8rem;color:#786052;margin-right:6px}button,.file-label,#download{border:1px solid #dbbb9e;color:#533627;border-radius:9px;background:#fff8ed;padding:9px 14px;font:inherit;font-weight:650;cursor:pointer;min-height:44px;display:inline-flex;align-items:center;justify-content:center}button:disabled{opacity:.5;cursor:wait}button:hover,.file-label:hover{background:#f7e4d6}:focus-visible{outline:3px solid #a85443;outline-offset:2px}.themes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:0 0 23px}.theme{display:block;overflow:hidden;min-height:44px;padding:3px;background:#fff8ee;font-size:.83rem}.theme img{width:100%;aspect-ratio:1.5;object-fit:cover;border-radius:6px;display:block}.theme span{display:block;margin:5px}.theme[aria-pressed=true]{border:2px solid #ad6246;background:#fce8d8}.file-line{display:flex;gap:9px;margin-bottom:10px}.file-label{cursor:pointer}#photo{position:absolute;width:1px;height:1px;clip-path:inset(50%)}#photo:focus-visible+.file-label,.file-line:focus-within .file-label{outline:2px solid #a85443;outline-offset:2px}textarea{display:block;padding:11px;width:100%;color:inherit;font:inherit;resize:vertical;border:1px solid #ddc6ae;background:#fffdf7;border-radius:9px;min-height:84px}small{display:block;text-align:right;margin:5px 0 4px;color:#795f50}.stamps{display:flex;gap:12px;flex-wrap:wrap}.stamps label{cursor:pointer;font-size:.91rem;display:flex;align-items:center;min-height:44px}input[type=checkbox]{accent-color:#9d553c;width:17px;height:17px}.export{margin-top:22px;padding:17px 22px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}.export h2{margin-bottom:3px}.export p{margin:0;color:#775c4e;font-size:.86rem}.export-buttons{display:flex;gap:9px}.primary{background:#a85443;border-color:#a85443;color:white}.primary:hover{background:#914738}#status{flex-basis:100%}#status:empty{display:none}[hidden]{display:none!important}.assistive{position:absolute;width:1px;height:1px;margin:-1px;clip:rect(0,0,0,0);overflow:hidden}footer{text-align:center;color:#816657;font-size:.77rem;padding:28px 12px 24px}
@media(max-width:700px){header{padding:31px 13px 20px}.desk{grid-template-columns:1fr;gap:13px}main{width:calc(100% - 26px)}.preview{padding:10px}.edit{padding:15px}.export{padding:14px;margin-top:13px}.theme img{aspect-ratio:2}.themes{margin-bottom:18px}}
@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
