/* Photo Summary — MoYu photography workspace */
:root{--sans:'MoYu Interface Grotesk','MoYu Interface Latin','MoYu Interface Han','Microsoft YaHei',sans-serif;--serif:'MoYu Literary Latin','MoYu Literary Han','Songti SC',serif;--bg:#f0f1f3;--paper:#fafbfc;--field:#f1f3f6;--ink:#283b53;--muted:#607087;--line:#dce1e8;--accent:#3e5674;--stage:#e8ebef;color-scheme:light}
html[data-theme=dark]{--bg:#141e2b;--paper:#1d2a3b;--field:#243348;--ink:#e1e7f2;--muted:#a5b3c5;--line:#37475c;--accent:#b7c9df;--stage:#172231;color-scheme:dark}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.6 var(--sans);height:100dvh;display:flex;flex-direction:column}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer;color:inherit}button:disabled{opacity:.4;cursor:default}a{color:inherit;text-decoration:none}button{border:0;background:none}h1,h2,p,figure{margin:0}button,input,select{border-radius:8px}::selection{background:#bacbdf;color:#1c2e45}:focus-visible{outline:2px solid var(--accent);outline-offset:4px}input{caret-color:var(--accent)}[hidden]{display:none!important}*{scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.topbar{height:82px;flex:0 0 82px;display:flex;align-items:center;gap:36px;padding:0 36px;background:var(--paper);border-bottom:1px solid var(--line)}.site-brand{display:flex;align-items:center;padding-right:32px;border-right:1px solid var(--line)}.site-brand img{width:123px;height:40px;object-fit:contain;filter:brightness(0) saturate(100%) invert(20%) sepia(14%) saturate(1500%) hue-rotate(174deg)}html[data-theme=dark] .site-brand img{filter:brightness(0) invert(1)}.app-title{display:flex;gap:16px;align-items:baseline}.app-title h1{font-size:22px;font-weight:400;letter-spacing:-.02em}.app-title>span{font-size:12px;color:var(--muted)}.header-actions{margin-left:auto;display:flex;align-items:center;gap:28px}.back-link{font-size:12px;color:var(--muted)}.back-link:hover{text-decoration:underline;text-underline-offset:5px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:16px;min-height:42px;padding:10px 16px;border:1px solid var(--line);background:var(--paper);white-space:nowrap;transition:background .18s,color .18s}.btn:hover:not(:disabled){background:var(--field)}.btn-primary{background:var(--accent);border-color:transparent;color:var(--paper)}.btn-primary:hover:not(:disabled){background:var(--ink);color:var(--paper)}.btn-sm{font-size:12px;min-height:36px;padding:8px 12px}.text-button{padding:8px 0;font-size:12px;color:var(--muted)}.text-button:hover:not(:disabled){color:var(--ink);text-decoration:underline;text-underline-offset:4px}.btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5}
.layout{display:grid;grid-template-columns:minmax(0,1fr) 364px;flex:1;min-height:0}.workspace{min-width:0;display:flex;flex-direction:column;padding:0 38px}.preview-bar{height:64px;flex:0 0 64px;display:flex;align-items:center;justify-content:space-between;font-size:12px}.preview-template{margin-left:18px;color:var(--muted)}.local-note{color:var(--muted);font-size:11px}.stage{min-height:0;flex:1;display:flex;justify-content:center;align-items:center;background:var(--stage);border-radius:4px;overflow:auto}.stage-inner{padding:32px;width:100%;height:100%;min-height:0;display:flex;align-items:center;justify-content:center}#preview{display:none;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;box-shadow:0 14px 32px #0a1d3420}#preview.on{display:block}.empty{display:grid;grid-template-columns:minmax(140px,280px) auto;align-items:center;gap:clamp(28px,5vw,80px);padding:20px}.empty.hide{display:none}.empty-photo{transform:rotate(-3deg);padding:12px 12px 0;background:#fff;box-shadow:0 14px 30px #10253e1a}.empty-photo img{display:block;width:100%;max-height:43vh;object-fit:cover;aspect-ratio:3/4}.empty-photo figcaption{font-size:10px;color:#607087;padding:10px 2px}.empty-copy h2{font:400 clamp(30px,3.5vw,52px)/1.35 var(--serif);letter-spacing:-.02em}.empty-copy p{font-size:13px;color:var(--muted);line-height:1.9;margin:20px 0 26px}.empty-copy .text-button{display:block;margin-top:8px}.empty-copy small{display:block;font-size:10px;line-height:1.8;color:var(--muted);margin-top:28px}.workspace-footer{height:90px;flex:0 0 90px;display:flex;align-items:center;justify-content:space-between;gap:16px}.filmstrip{display:flex;gap:12px;min-width:0;overflow:auto;padding:6px}.dropzone{width:50px;height:56px;flex:0 0 50px;display:grid;place-items:center;border:1px dashed var(--muted);border-radius:4px;color:var(--muted);cursor:pointer;font-size:22px}.dropzone:hover{background:var(--paper)}.thumbs{display:flex;gap:10px}.thumb{width:50px;height:56px;position:relative;padding:3px;border:1px solid transparent;border-radius:4px;cursor:pointer;flex:0 0 50px}.thumb.on{border-color:var(--accent)}.thumb img{width:100%;height:100%;object-fit:cover;border-radius:2px;display:block}.thumb .x{position:absolute;top:-6px;right:-5px;border-radius:50%;width:19px;height:19px;background:var(--ink);color:var(--paper);font-size:14px;line-height:1;padding:0;opacity:0}.thumb:hover .x,.thumb:focus-within .x{opacity:1}.status-line{display:flex;justify-content:space-between;gap:16px;font-size:10px;color:var(--muted);padding:0 0 18px;min-height:34px}.status-line>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.panel{background:var(--paper);border-left:1px solid var(--line);display:flex;flex-direction:column;min-height:0}.inspector-tabs{display:grid;grid-template-columns:repeat(3,1fr);height:64px;flex:0 0 64px;border-bottom:1px solid var(--line);padding:0 24px;gap:22px}.inspector-tabs button{border-radius:0;position:relative;font-size:13px;color:var(--muted)}.inspector-tabs button[aria-selected=true]{color:var(--ink)}.inspector-tabs button[aria-selected=true]:after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:2px;background:var(--accent)}.inspector-content{flex:1;min-height:0;overflow:auto;padding:26px 24px}.block h2,.export-panel h2{font-size:15px;font-weight:400}.section-note{font-size:11px;line-height:1.9;color:var(--muted);margin:7px 0 22px}.templates{display:grid;grid-template-columns:1fr 1fr;gap:18px 14px;margin-top:24px}.tpl{padding:0;text-align:left;position:relative;border-radius:3px}.tpl-mini{display:block;aspect-ratio:1.55;background:var(--field);padding:12px;border:1px solid var(--line);border-radius:4px;position:relative;transition:border-color .18s}.tpl-mini:before{content:'';display:block;width:100%;height:100%;background:url('./samples/preview.webp') center 45%/cover}.tpl-mini:after{content:'';position:absolute;height:5px;bottom:4px;left:12px;right:50%;background:#b4bbc4}.tpl[data-id=original] .tpl-mini{padding:12px 12px 24px;background:#243348}.tpl[data-id=original] .tpl-mini:after{bottom:9px}.tpl[data-id=classic] .tpl-mini{padding:9px 9px 23px;background:#fff}.tpl[data-id=dark] .tpl-mini{background:#25303c;padding:9px 9px 23px}.tpl[data-id=polaroid] .tpl-mini{padding:8px 16px 23px;background:#eee9df}.tpl[data-id=overlay] .tpl-mini{padding:0}.tpl[data-id=overlay] .tpl-mini:after{bottom:12px;background:#fff}.tpl[data-id=split] .tpl-mini{padding:9px 42px 9px 9px;background:#25303c}.tpl[data-id=split] .tpl-mini:after{left:auto;right:8px;width:24px;bottom:32px}.tpl[data-id=minimal] .tpl-mini{padding:14px 16px 20px;background:#fff}.tpl-name{display:flex;align-items:center;justify-content:space-between;font-size:12px;margin-top:7px}.tpl.on .tpl-mini{outline:2px solid var(--accent);outline-offset:2px}.tpl.on .tpl-name:after{content:'✓';font-size:13px}.tpl:hover .tpl-mini{border-color:var(--accent)}
.fields{display:grid;grid-template-columns:1fr 1fr;gap:16px 12px}.fld{display:flex;flex-direction:column;gap:7px;min-width:0}.fld>span{font-size:11px;color:var(--muted);display:flex;justify-content:space-between;gap:8px}.fld b{font-weight:400;font-variant-numeric:tabular-nums}.fld-wide{grid-column:1/-1}input[type=text],select{width:100%;min-height:40px;padding:9px 11px;border:1px solid var(--line);color:var(--ink);background:var(--paper);min-width:0;font-size:12px}input::placeholder{color:var(--muted);opacity:.8}input[type=color]{width:100%;height:40px;padding:5px;border:1px solid var(--line);background:var(--paper);cursor:pointer}input[type=range]{accent-color:var(--accent);width:100%;margin:5px 0 10px;cursor:pointer}#resetFields{margin-top:20px;width:100%}.hint{font-size:11px;font-weight:400;color:var(--muted)}.config{margin-top:24px;border-top:1px solid var(--line);padding-top:16px}.config summary{font-size:12px;cursor:pointer}.actions{display:flex;gap:16px}.export-panel{padding:23px 24px 24px;border-top:1px solid var(--line)}.export-panel h2{margin-bottom:16px}.export-panel .fields{gap:12px}.export-panel .fld:last-child{grid-column:1/-1}.export-actions{display:grid;grid-template-columns:1fr auto;gap:10px;margin-top:16px}.export-actions .btn{font-size:12px}.dragover{display:none;position:fixed;inset:12px;z-index:10;background:#eaf0f8ed;border:2px solid #3e5674;color:#283b53;place-items:center;pointer-events:none;font:28px var(--serif)}.dragover.on{display:grid}
@media(min-width:1600px){.layout{grid-template-columns:minmax(0,1fr) 400px}.inspector-content,.export-panel{padding-left:30px;padding-right:30px}.templates{gap:24px 18px}.tpl-mini{aspect-ratio:1.7}.workspace{padding-left:52px;padding-right:52px}}
@media(max-width:1100px){.topbar{padding:0 24px;gap:22px}.site-brand{padding-right:22px}.app-title>span{display:none}.layout{grid-template-columns:minmax(0,1fr) 320px}.workspace{padding:0 22px}.empty{grid-template-columns:1fr;gap:24px;text-align:center}.empty-photo{display:none}.empty-copy h2 br{display:none}.empty-copy .text-button{margin:8px auto}.empty-copy small{margin-top:16px}.empty-copy p{margin:14px 0 22px}.local-note{display:none}.inspector-content,.export-panel{padding:20px}.templates{gap:15px 12px}}
@media(max-width:700px){body{height:auto;min-height:100dvh}.topbar{height:68px;flex-basis:68px;padding:0 16px;gap:14px}.site-brand{padding:0;border:0}.site-brand img{width:86px;height:30px}.app-title h1{font-size:16px}.header-actions{gap:0}.back-link{font-size:11px}.header-actions>.btn{display:none}.layout{display:flex;flex-direction:column}.workspace{padding:0 16px}.preview-bar{height:48px;flex-basis:48px}.stage{height:340px;flex:none}.stage-inner{padding:22px}.empty{padding:0}.empty-copy h2{font-size:32px}.empty-copy p{margin:12px 0 18px}.empty-copy small{font-size:10px}.workspace-footer{height:76px;flex-basis:76px}.status-line{padding-bottom:14px}.status-line>span:last-child{display:none}.panel{border-left:0;border-top:1px solid var(--line);min-height:0}.inspector-tabs{height:54px;flex-basis:54px}.inspector-content{overflow:visible;padding:22px}.templates{grid-template-columns:repeat(3,1fr);gap:18px 12px;margin-top:18px}.tpl-mini{aspect-ratio:1.3}.tpl[data-id=split] .tpl-mini{padding-right:32px}.tpl[data-id=split] .tpl-mini:after{width:16px;right:8px}.export-panel{padding:22px}.export-panel .fields{grid-template-columns:1fr 1fr}.export-panel .fld:last-child{grid-column:1/-1}.thumb .x{opacity:1}.section-note{margin-bottom:18px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}
/* The workspace grid has a definite track so portrait canvases cannot grow the viewport. */
@media(min-width:701px){.layout{height:calc(100dvh - 82px);flex:none;grid-template-rows:minmax(0,1fr);overflow:hidden}.workspace{min-height:0}}
.theme-button{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;color:var(--muted)}.theme-button:hover{background:var(--field);color:var(--ink)}.theme-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.5}
@media(max-width:700px){.header-actions{gap:8px}.theme-button{width:28px;height:32px}.topbar{gap:10px}.app-title h1{font-size:15px}}

input[readonly]{color:var(--muted);background:var(--field);cursor:default}

/* A framed source photo and its finished Original card share the same composition. */
.empty{grid-template-columns:minmax(0,650px) minmax(175px,230px);gap:clamp(24px,3vw,52px);width:100%;max-width:1050px;padding:0}
.sample-comparison{position:relative;width:100%;aspect-ratio:1.34;isolation:isolate}
.sample-comparison figure{position:absolute;margin:0;width:54%;padding:5px 5px 0;background:#fff;border-radius:2px;box-shadow:0 12px 26px #10253e1a,0 1px 2px #10253e0f}
.sample-comparison img{display:block;width:100%;height:auto;aspect-ratio:3/2;object-fit:contain;border-radius:1px}
.sample-comparison figcaption{font-size:9px;line-height:1.6;letter-spacing:.1em;padding:12px 0 13px;color:#8b98a9;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sample-source{top:2%;left:2%;transform:rotate(-8deg)}
.sample-result{bottom:2%;right:1%;transform:rotate(6deg);z-index:1}
@media(min-width:701px) and (max-width:1100px){.empty{display:flex;flex-direction:column;gap:16px}.sample-comparison{max-width:460px;aspect-ratio:1.5}.sample-comparison figure{width:54%}.empty-copy h2{font-size:25px}.empty-copy p,.empty-copy small{display:none}.empty-copy>.btn{margin-top:16px}}
@media(max-width:700px){.stage:has(.empty:not(.hide)){height:auto;min-height:450px}.empty{display:flex;flex-direction:column;gap:18px;padding:10px 0}.sample-comparison{width:100%;max-width:420px;aspect-ratio:1.25}.sample-comparison figure{width:52%;padding:4px 4px 0}.sample-source{top:0;left:0;transform:rotate(-7deg)}.sample-result{bottom:0;right:0;transform:rotate(5deg)}.sample-comparison figcaption{font-size:8px;letter-spacing:.06em;padding:9px 0 10px}.empty-copy h2{font-size:21px}.empty-copy h2 br{display:none}.empty-copy p,.empty-copy small{display:none}.empty-copy>.btn{margin-top:14px}.empty-copy .text-button{margin-top:6px}}

/* 品牌水印版式：缩略图下方留一条白色信息栏 */
.tpl[data-id=brand] .tpl-mini{padding:0 0 22px;background:#fff}
.tpl[data-id=brand] .tpl-mini:after{left:auto;right:10px;width:32%;bottom:8px;background:#c3cad3}

/* 机型库 / 随机机型 / 品牌标识 */
.camera-row{display:flex;gap:8px}
.camera-row select{flex:1;min-width:0}
.camera-row .btn{flex:0 0 auto;min-height:40px;padding:8px 12px}
.camera-kit .hint{font-size:10px;line-height:1.6;color:var(--muted)}
.fld>span em.hint{font-style:normal;font-size:10px}

/* 拍摄信息上方的一句文案 */
.kit-slogan{margin:-4px 0 14px;font-family:var(--serif);font-size:13px;line-height:1.65;letter-spacing:.02em;color:var(--accent)}
