:root{--paper:#f6f4ef;--ink:#282a26;--muted:#777b70;--line:#dedfd6;--orange:#d45c3d;--soft:#eee9de;--green:#556652;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI','PingFang SC',sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,a{-webkit-tap-highlight-color:transparent}button,input,select{font:inherit}button,a,label{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.4}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #d87652;outline-offset:4px}a{color:inherit;text-decoration:none}[hidden]{display:none!important}.topbar{max-width:1180px;margin:auto;padding:28px 36px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:11px}.brand strong{font-size:22px;letter-spacing:3px}.brand-icon{display:grid;place-content:center;width:35px;height:35px;border:1.5px solid var(--ink);border-radius:9px;background:#f1e2c8;font-size:30px;line-height:1;transform:rotate(-7deg)}.brand-en{font-size:10px;letter-spacing:1.5px;margin-left:10px}.local-badge{font-size:12px;color:var(--green);display:flex;align-items:center;gap:8px}.local-badge i{width:6px;height:6px;background:#71826a;border-radius:50%}main{max-width:1180px;margin:auto;padding:0 36px 130px}.intro{display:flex;align-items:center;justify-content:space-between;padding:54px 30px 55px 0;gap:30px}.eyebrow{font-size:11px;font-weight:600;letter-spacing:2px;color:var(--green);margin:0 0 18px}h1{font-size:clamp(32px,4.6vw,54px);font-weight:650;line-height:1.3;letter-spacing:-1.7px;margin:0 0 20px}h1 span{color:var(--orange)}.intro-text{font-size:14px;line-height:1.9;color:var(--muted);margin:0}.paper-art{width:290px;height:245px;position:relative;margin-right:40px;flex-shrink:0}.art-sheet{width:175px;height:214px;border:1px solid #d6d4c8;background:#fdfcf8;position:absolute;box-shadow:3px 8px 16px #302b1c0c;padding:23px}.art-sheet span{font-size:9px;letter-spacing:2px;color:#8b8e80}.art-sheet i{display:block;width:100%;height:1px;background:#bec1b6;margin-top:21px}.art-sheet i.short{width:65%}.back{top:0;left:10px;transform:rotate(-13deg)}.front{top:24px;right:0;transform:rotate(9deg);background:#efebdc}.art-spark{font-size:53px;color:var(--orange);position:absolute;bottom:16px;right:15px}.art-label{position:absolute;bottom:-23px;left:15px;font-family:Georgia,serif;font-size:14px;color:#7d806f;font-style:italic;transform:rotate(-5deg)}.workspace{display:grid;grid-template-columns:1.25fr 1fr;gap:28px;align-items:start}.input-panel,.settings-panel{background:#fffefa;border:1px solid var(--line);border-radius:18px;padding:24px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:22px}.section-title h2{font-size:16px;font-weight:600;margin:0;display:flex;align-items:center;gap:10px}.step{font:12px Georgia,serif;color:var(--muted);border:1px solid var(--line);width:27px;height:27px;border-radius:50%;display:inline-grid;place-content:center}.muted{color:var(--muted);font-size:12px}.dropzone{min-height:216px;border:1.5px dashed #b8bca9;border-radius:12px;background:#f3f5ed;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;cursor:pointer;position:relative;overflow:hidden}.dropzone:hover,.dropzone.dragover{background:#e9eddf;border-color:#6c7b5d}.dropzone input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}.upload-icon{border:1px solid #c7ccbc;background:#fffefa;border-radius:12px;width:43px;height:43px;font-size:29px;display:grid;place-content:center;margin-bottom:3px}.dropzone strong{font-size:15px}.dropzone span:not(.upload-icon){font-size:12px;color:#717865}.dropzone small{font-size:10px;color:#8a8d81}.small-note{font-size:11px;color:var(--muted);line-height:1.75;margin:15px 0 0}fieldset{border:0;padding:0;margin:0 0 24px}legend{font-size:12px;margin-bottom:10px}.segmented{display:flex;background:#f0f0e9;padding:4px;border-radius:10px;gap:4px}.segmented label{flex:1;position:relative}.segmented input{position:absolute;opacity:0}.segmented span{display:block;text-align:center;padding:12px 6px;font-size:13px;border-radius:7px;cursor:pointer}.segmented input:checked+span{background:#fffefa;box-shadow:0 2px 5px #0000000a;color:var(--green);font-weight:600}.segmented input:focus-visible+span{outline:2px solid var(--orange)}.setting-grid,.editor-settings{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-bottom:24px}.setting-grid label,.editor-settings label{font-size:12px;line-height:1.7}select{display:block;width:100%;background:#fffefa;border:1px solid var(--line);border-radius:8px;padding:12px 9px;margin-top:8px;color:var(--ink);font-size:14px;min-height:46px}.range-label{font-size:12px;display:flex;justify-content:space-between;align-items:center}.range-label span{font-size:11px;color:var(--muted)}input[type=range]{width:100%;height:34px;margin:5px 0 14px;accent-color:var(--green)}.tip-card{display:flex;gap:12px;background:#f5efe3;border-radius:10px;padding:16px}.tip-card>span{font-size:24px;color:#a38456}.tip-card p{margin:0;font-size:12px;line-height:1.9;color:#867d69}.tip-card strong{display:block;color:#645f4e}.actionbar{position:fixed;bottom:0;left:0;right:0;background:#fffefaee;backdrop-filter:blur(20px);border-top:1px solid var(--line);padding:16px max(30px,calc((100vw - 1108px)/2)) calc(16px + env(safe-area-inset-bottom));display:flex;justify-content:space-between;gap:18px;align-items:center;z-index:10}.actionbar strong{display:block;font-size:14px;font-weight:500}.actionbar>div>span{display:block;font-size:11px;color:var(--muted);margin-top:5px}.primary,.secondary{border:0;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;gap:24px;min-height:48px;padding:14px 24px;font-size:14px;font-weight:550}.primary{background:var(--orange);color:#fff}.primary:hover:not(:disabled){background:#bf5034}.secondary{background:#fffefa;color:var(--ink);border:1px solid var(--line)}.actionbar .primary{min-width:210px}.photo-list{display:grid;gap:12px}.photo-card{display:flex;align-items:center;padding:12px;background:#f6f5f0;border:1px solid var(--line);border-radius:11px;gap:12px}.thumb{width:65px;height:82px;object-fit:contain;background:#e4e4db;border-radius:5px}.photo-info{min-width:0;flex:1}.photo-name{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:220px}.photo-meta{display:block;font-size:10px;color:var(--muted);margin:5px 0}.photo-buttons{display:flex;gap:4px;flex-wrap:wrap}.photo-buttons button{min-width:44px;min-height:44px;padding:6px;border:0;background:transparent;font-size:14px;border-radius:5px}.photo-buttons .edit{color:var(--orange);font-size:12px;padding-left:0}.photo-buttons button:hover{background:#e8e7df}.list-actions{display:flex;align-items:center;justify-content:space-between;margin-top:14px}.text-button{border:0;background:transparent;color:var(--green);font-size:12px;min-height:44px;display:inline-flex;align-items:center;padding:4px 0;cursor:pointer}.result-section{margin-top:38px;border-top:1px solid var(--line);padding-top:32px}.result-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:28px}.result-preview{background:repeating-conic-gradient(#dedfd7 0% 25%,#e9e9e1 0% 50%) 50%/20px 20px;border:1px solid var(--line);padding:20px;border-radius:14px;max-height:620px;overflow:auto;text-align:center}.result-preview img{max-width:100%;height:auto;display:block;margin:auto;box-shadow:0 2px 8px #0001}.save-panel{padding:30px 16px;align-self:start}.done-mark{display:grid;place-content:center;color:var(--green);background:#e8eddd;width:42px;height:42px;border-radius:50%;font-size:22px}.save-panel h3{font-size:25px;font-weight:550}.save-panel p{font-size:12px;color:var(--muted);line-height:1.9}.save-panel .primary,.save-panel .secondary{width:100%;margin:5px 0}.status{position:fixed;bottom:112px;left:50%;transform:translateX(-50%);max-width:min(90vw,560px);background:#303a2f;color:#fff;padding:13px 20px;border-radius:11px;font-size:13px;z-index:40;box-shadow:0 5px 30px #0002}footer{display:flex;justify-content:space-between;color:#969b8c;font-size:10px;letter-spacing:1px;padding:35px 0 0}.busy{position:fixed;inset:0;background:#f6f4efdd;backdrop-filter:blur(6px);z-index:100;display:grid;place-content:center;text-align:center}.busy>div{width:280px}.spinner{display:block;margin:0 auto 25px;width:34px;height:34px;border:2px solid var(--line);border-top-color:var(--orange);border-radius:50%;animation:spin .8s linear infinite}.busy p{font-size:12px;color:var(--muted)}progress{width:100%;height:6px;accent-color:var(--orange)}@keyframes spin{to{transform:rotate(360deg)}}dialog{width:min(660px,96vw);max-height:94dvh;border:1px solid var(--line);border-radius:18px;background:var(--paper);padding:22px;color:var(--ink);overflow:auto;overscroll-behavior:contain}dialog::backdrop{background:#181e19bb;backdrop-filter:blur(4px)}.editor-head{display:flex;justify-content:space-between;align-items:center}.editor-head .eyebrow{margin-bottom:7px}.editor-head h2{margin:0;font-size:22px}.icon-button{width:44px;height:44px;border:1px solid var(--line);border-radius:50%;background:none}.editor-help{font-size:12px;color:var(--muted);line-height:1.7}.stage-wrap{padding:20px;background:#e6e7df;border-radius:12px;display:flex;justify-content:center;overflow:hidden}.stage{position:relative;max-width:100%;line-height:0;touch-action:none;user-select:none}.stage>img{display:block;max-width:100%;max-height:45dvh;width:auto;height:auto;pointer-events:none}.stage>svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}#shade{fill:#151c2580}#outline{fill:none;stroke:#ed855e;stroke-width:3;vector-effect:non-scaling-stroke}.handle{position:absolute;width:44px;height:44px;padding:0;border:0;background:none;transform:translate(-50%,-50%);cursor:move;touch-action:none}.handle:before{content:'';position:absolute;inset:12px;background:#fff;border:3px solid var(--orange);border-radius:50%;box-shadow:0 1px 5px #0004}.handle.mid:before{inset:15px;border-width:2px;background:#ffe0cd}.handle.active:before{background:var(--orange);border-color:white}#loupe{position:absolute;right:8px;top:8px;width:88px;height:88px;border:3px solid white;border-radius:50%;box-shadow:0 3px 20px #0005;pointer-events:none}.editor-tools{display:flex;gap:8px;margin-top:14px}.compact{font-size:12px;min-height:44px;padding:8px 12px;flex:1}.editor-settings{margin-top:18px;margin-bottom:16px;align-items:center}.toggle{display:flex;align-items:center;gap:9px}.toggle input{width:20px;height:20px;accent-color:var(--orange)}.toggle small{color:var(--muted);font-size:10px}.editor-bottom{position:sticky;bottom:-22px;background:var(--paper);padding:14px 0 calc(4px + env(safe-area-inset-bottom));margin-top:6px}.editor-bottom .primary{width:100%}
@media(max-width:760px){.topbar{padding:20px 22px;padding-top:max(20px,env(safe-area-inset-top));margin:0 0}.brand-en{display:none}.local-badge{font-size:10px}.brand strong{font-size:20px}main{padding:0 20px 125px}.intro{padding:35px 0 30px;gap:0}.intro h1{font-size:35px;letter-spacing:-1.3px}.intro-text{font-size:12px}.intro .eyebrow{font-size:10px;margin-bottom:14px}.paper-art{width:105px;height:170px;margin-right:0;margin-top:25px}.art-sheet{width:86px;height:120px;padding:12px}.art-sheet span{font-size:5px;letter-spacing:1px}.art-sheet i{margin-top:13px}.back{left:-15px;top:10px}.front{right:0;top:40px}.art-spark{font-size:28px;bottom:6px;right:8px}.art-label{display:none}.workspace,.result-grid{grid-template-columns:1fr;gap:18px}.input-panel,.settings-panel{padding:19px;border-radius:15px}.section-title h2{font-size:15px}.section-title{margin-bottom:17px}.dropzone{min-height:194px}.settings-panel .small-note{font-size:10px}.actionbar{padding:12px 20px calc(12px + env(safe-area-inset-bottom));gap:10px}.actionbar .primary{min-width:142px;padding:13px 17px;font-size:13px;gap:16px}.actionbar strong{font-size:12px}.actionbar>div>span{font-size:10px}.save-panel{padding:10px 0}.result-preview{max-height:450px;padding:12px}.result-section .section-title{flex-wrap:wrap}.photo-name{max-width:195px}select{font-size:16px;padding:10px 7px}.result-section{scroll-margin-top:20px}dialog{padding:16px;width:100vw;max-width:100vw;max-height:100dvh;height:100dvh;margin:0;border:0;border-radius:0;padding-top:max(16px,env(safe-area-inset-top))}.editor-bottom{bottom:-16px}.stage>img{max-height:39dvh}.stage-wrap{padding:22px}.editor-tools{gap:6px}.compact{padding:8px 6px}.status{bottom:100px;font-size:12px;width:max-content}footer{font-size:8px;letter-spacing:.5px}}
@media(max-width:365px){.paper-art{display:none}.intro h1{font-size:34px}.photo-name{max-width:155px}.setting-grid{gap:8px}.section-title h2{font-size:14px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.spinner{animation:none}}
@media(max-width:760px){.intro{display:block}.paper-art{display:none}.intro h1{font-size:32px;letter-spacing:-1px}}

/* Keep the automatic workflow and preview controls in the original visual theme. */
.svg-library{position:absolute;width:0;height:0;overflow:hidden}
.icon{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.workspace>*,.setting-grid>*,.editor-settings>*,fieldset{min-width:0}
.photo-list{min-width:0;grid-template-columns:minmax(0,1fr)}.photo-card{min-width:0}.thumb{flex-shrink:0}.photo-name{max-width:none}
.dropzone:focus-within{outline:3px solid var(--orange);outline-offset:4px}
.privacy-note{display:flex;gap:6px;align-items:center;font-size:11px;color:var(--muted);margin:17px 0 0;line-height:1.6}.privacy-note .icon{width:12px;height:12px}
.export-details{font-size:11px;color:var(--muted);line-height:1.75;margin-top:15px}.export-details summary{cursor:pointer;min-height:44px;display:flex;align-items:center}.export-details summary:before{content:'＋';margin-right:7px}.export-details[open] summary:before{content:'−'}
.tip-card .icon{width:23px;height:23px}.actionbar .icon{width:18px;height:18px}.action-copy{min-width:0}
.primary:disabled{background:#d45c3d;opacity:.4}.secondary:disabled{opacity:.4}
input[type=range],.segmented span,.toggle{min-height:44px}
.auto-process { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -5px 0 18px; padding: 12px 13px; border: 1px solid var(--line); background: #f6f2eb; border-radius: 10px; cursor: pointer; }
.auto-process strong { display: block; font-size: 12px; font-weight: 550; }
.auto-process small { display: block; color: var(--muted); font-size: 10px; line-height: 1.6; margin-top: 5px; }
.auto-process input { position: absolute; right: 10px; width: 44px; height: 44px; margin: 0; opacity: 0; }
.switch-track { width: 38px; height: 23px; border-radius: 20px; background: #d6d5ce; position: relative; flex-shrink: 0; pointer-events: none; }
.switch-track:after { content: ''; position: absolute; width: 17px; height: 17px; background: #fffef8; border-radius: 50%; left: 3px; top: 3px; box-shadow: 0 1px 4px #263d2520; transition: transform .18s; }
.auto-process input:checked+.switch-track { background: var(--orange); }
.auto-process input:checked+.switch-track:after { transform: translateX(15px); }
.auto-process input:focus-visible+.switch-track { outline: 3px solid #c98556; outline-offset: 4px; }
.thumb-button { position: relative; background: transparent; border: 0; padding: 0; flex-shrink: 0; border-radius: 5px; }
.thumb-button .thumb { display: block; }
.thumb-button:after { content: '查看'; position: absolute; bottom: 5px; left: 5px; right: 5px; background: #282a26dc; color: #fffef3; border-radius: 2px; font-size: 9px; padding: 3px 0; }
.photo-meta { line-height: 1.6; }
.photo-meta.needs-review { color: #96743f; }
.preview-switch { display: flex; gap: 5px; border: 1px solid var(--line); background: #efede7; border-radius: 10px; padding: 4px; margin-bottom: 14px; }
.preview-switch button { flex: 1; min-height: 44px; font-size: 12px; border: 0; border-radius: 7px; color: var(--muted); background: transparent; }
.preview-switch button[aria-pressed=true] { background: #fffffa; color: var(--orange); box-shadow: 0 2px 5px #243c2510; }
.preview-switch button:disabled { opacity: .4; }
.photo-preview-stage { display: grid; place-items: center; background: #e8e7e0; border: 1px solid var(--line); border-radius: 12px; padding: 14px; min-height: 180px; }
.photo-preview-stage img { display: block; max-width: 100%; max-height: 58dvh; object-fit: contain; box-shadow: 0 5px 16px #243c2520; }
.preview-actions { display: flex; gap: 10px; margin-top: 15px; }
.preview-actions .secondary { flex: 1; padding: 10px; min-height: 44px; }

@media(max-width:760px){
 .workspace,.result-grid{grid-template-columns:minmax(0,1fr)}
 .auto-process{padding:10px;gap:8px;margin-bottom:14px}.auto-process strong{font-size:11px}.auto-process small{font-size:9px}
 .photo-preview-stage img{max-height:50dvh}.privacy-note{font-size:10px}.photo-name{max-width:none}.photo-buttons button{min-width:44px;min-height:44px}
 .intro{padding-top:29px;padding-bottom:27px}.dropzone{min-height:184px}.photo-meta{font-size:10px}
}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
