:root{color-scheme:light;--ink:#191e29;--muted:#66707e;--blue:#3354e9;--border:#dfe3e9;--paper:#fff;font-family:"DM Sans","Segoe UI","Microsoft YaHei UI","PingFang SC",sans-serif;color:var(--ink);background:#f6f7f9;font-synthesis:none}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;background:radial-gradient(ellipse at 90% 7%,#edf1fc70,transparent 38%),#f7f8fa}
button,textarea,input{font:inherit}
button,a,input[type=range]{-webkit-tap-highlight-color:transparent}
button{cursor:pointer;color:inherit}
button:disabled{cursor:wait;opacity:.65}
button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #97aaff;outline-offset:3px}
a{color:inherit;text-decoration:none}
[hidden]{display:none!important}
.symbols{display:none}
.ic{display:inline-block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;vertical-align:middle}
.shell{max-width:1280px;width:calc(100% - clamp(44px,10.8vw,176px));margin-inline:auto}
.topbar{background:#fff;border-bottom:1px solid var(--border)}
.header-inner{height:72px;display:flex;align-items:center;gap:27px}
.brand{display:inline-flex;align-items:center;gap:10px;white-space:nowrap}
.brand strong{font-size:23px;font-weight:750;letter-spacing:-1.5px}
.brand span{font-size:14px;font-weight:600;color:#5c6574;letter-spacing:-.5px;margin-left:-3px}
.header-divider{height:22px;width:1px;background:#dce0e7}
.current-nav{height:100%;display:flex;align-items:center;font-size:14px;font-weight:650;position:relative;color:#2e4fcd}
.current-nav:after{content:"";position:absolute;height:3px;border-radius:2px;background:var(--blue);bottom:0;left:0;right:0}
.guide-button,.sample-button,.field-label button,.text-button,.dialog-close{border:0;background:none;display:inline-flex;align-items:center;justify-content:center;gap:6px}
.guide-button{margin-left:auto;font-size:13px;color:#485361;padding:8px 0 8px 12px}
.guide-button .ic{width:17px;height:17px}
.guide-button:hover,.sample-button:hover,.field-label button:hover,.text-button:hover{color:var(--blue)}
.intro{padding:clamp(38px,4.4vw,68px) 0 31px}
h1,h2,h3,p{margin:0}
h1{font-size:clamp(36px,3.2vw,53px);font-weight:750;line-height:1.22;letter-spacing:-2.4px}
.title-dot{display:inline-block;width:.16em;height:.16em;background:var(--blue);margin-left:.12em;border-radius:1px}
.intro p{font-size:15px;color:var(--muted);margin-top:13px;line-height:1.65}
.workgrid{display:grid;grid-template-columns:1fr 1.12fr;gap:22px;align-items:stretch}
.input-card,.import-body,#links,#resolve-form{display:flex;flex-direction:column}
.input-card .import-body,#links,#resolve-form{flex:1}
#share{flex:1}
.card{border:1px solid var(--border);border-radius:16px;background:#fff;box-shadow:0 4px 16px #20304a06;overflow:hidden}
.card-head{min-height:70px;display:flex;align-items:center;justify-content:space-between;padding:16px 23px;border-bottom:1px solid #e9ebef}
.card-heading{display:flex;align-items:center;gap:10px}
.card-heading h2{font-size:19px;font-weight:680;letter-spacing:-.7px}
.head-icon{display:grid;place-items:center;width:32px;height:32px;background:#edf1ff;border-radius:9px;color:var(--blue)}
.head-icon .ic{width:19px;height:19px;stroke-width:1.85}
.import-body{padding:22px 23px 23px}
.tabs{display:flex;gap:4px;background:#f0f2f5;border:1px solid #eceef2;border-radius:9px;padding:4px}
.tabs button{flex:1;border:1px solid transparent;border-radius:6px;font-size:14px;color:#626d7d;font-weight:580;display:flex;gap:7px;align-items:center;justify-content:center;background:transparent;min-height:35px;padding:4px 8px}
.tabs button .ic{width:16px;height:16px}
.tabs button[aria-selected=true]{background:white;border-color:#e3e6ee;color:#2e4fd9;box-shadow:0 1px 4px #26394c12}
.field-label{display:flex;align-items:center;justify-content:space-between;margin:20px 0 9px;font-size:13px;font-weight:630}
.field-label button{font-size:12px;color:#5264a3;font-weight:500;padding:0 1px 0 6px}
.field-label .ic{width:14px;height:14px}
.import-body textarea{resize:vertical;width:100%;min-height:92px;max-height:240px;border:1px solid #d7dce5;border-radius:9px;background:#fbfcfe;color:var(--ink);padding:12px 14px;font-size:14px;line-height:1.65;display:block}
.import-body textarea::placeholder{color:#87909f}
.import-body textarea:focus{outline:3px solid #e3e9ff;border-color:#7188ef}
.platforms{display:flex;align-items:center;flex-wrap:wrap;gap:5px 7px;margin:12px 0 20px;font-size:12px;color:#6a7382}
.platform{white-space:nowrap;border-radius:4px;padding:2px 6px;background:#f2f4f8;color:#4d5765}
.primary,.secondary{border-radius:8px;display:inline-flex;align-items:center;justify-content:center;gap:12px;padding:11px 18px;min-height:44px;font-size:14px;line-height:1.4;font-weight:620}
.primary{width:100%;border:1px solid #2e4bdf;background:var(--blue);color:#fff;box-shadow:0 2px 3px #254ae318;transition:background .15s,transform .15s}
.primary:hover{background:#2846d4}.primary:active{transform:translateY(1px)}
.primary .ic{width:17px;height:17px}
.secondary{border:1px solid var(--border);background:white}
.sample-button{font-size:12px;color:#596577;padding:6px 0 6px 8px}
.sample-button .ic{width:15px;height:15px}
.comparison{position:relative;--split:52%;margin:17px 17px 0;background:#b6c3d5;border-radius:10px;overflow:hidden;height:clamp(250px,21.3vw,309px);isolation:isolate}
.comparison .photo{width:100%;height:100%;object-fit:cover;object-position:50% 16%;display:block}
.preview-stage{margin:17px 17px 0;border-radius:10px;overflow:hidden;background:#151923}
.preview-card{min-width:0}
.album-thumbnails{display:flex;gap:6px;overflow-x:auto;overscroll-behavior-x:contain;margin:10px 17px 0;padding:4px 3px 7px;scrollbar-width:thin;scrollbar-color:#afb9cb transparent}
.album-thumb{position:relative;flex:0 0 64px;height:64px;overflow:hidden;border:2px solid transparent;border-radius:8px;padding:0;background:#e6eaf0;background-clip:padding-box;color:white;cursor:pointer}
.album-thumb img,.album-thumb video{display:block;width:100%;height:100%;object-fit:cover;pointer-events:none}
.album-thumb[aria-current=true]{border-color:white;outline:2px solid var(--blue);outline-offset:0}
.album-thumb:focus-visible{outline:2px dashed #243ca9;outline-offset:1px}
.album-thumb span{position:absolute;right:3px;bottom:3px;min-width:17px;padding:1px 4px;border-radius:4px;background:#192030b8;font:600 11px/15px "Segoe UI",sans-serif;font-variant-numeric:tabular-nums;text-align:center;pointer-events:none}
.album-thumb[aria-current=true] span{background:#284bcc}
@media(max-width:760px){.album-thumbnails{margin-inline:13px}.album-thumb{flex-basis:54px;height:54px}}
#video-preview,#image-preview{width:100%;height:clamp(250px,24vw,365px);display:block;object-fit:contain}
.album-controls{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:14px 17px 0}
.album-pages,.album-modes{display:inline-flex;align-items:center;gap:5px;font-size:13px}
.album-pages button,.album-modes button{background:#fff;border:1px solid var(--border);border-radius:6px;min-height:32px;color:#49576a}
.album-pages button{width:32px;font-size:20px;line-height:1}.album-pages button:disabled{cursor:default;opacity:.4}
#album-position{min-width:60px;text-align:center;font-variant-numeric:tabular-nums}
.album-modes button{padding:4px 9px;font-size:12px}.album-modes button[aria-pressed=true]{background:#edf1ff;border-color:#becafb;color:#2848c6}
.preview-card .photo-foot{min-height:43px;gap:10px}
#preview-retry{white-space:nowrap;margin:0}
@media(max-width:760px){.preview-stage{margin:13px 13px 0}.album-controls{margin-inline:13px}#video-preview,#image-preview{height:clamp(210px,65vw,340px)}}
.before-layer,.splitter,.comparison>input,.photo-tag{position:absolute}
.before-layer{inset:0;clip-path:inset(0 calc(100% - var(--split)) 0 0)}
.photo-tag{top:12px;display:flex;align-items:center;gap:6px;font-size:11px;font-weight:600;letter-spacing:.04em;background:#1c242cac;color:white;border:1px solid #ffffff40;padding:4px 9px;border-radius:5px;backdrop-filter:blur(6px);pointer-events:none}
.photo-tag i{width:5px;height:5px;background:#d0d3d6;border-radius:50%}
.left-tag{left:12px}.right-tag{right:12px}.right-tag i{background:#aef2ba}
.splitter{pointer-events:none;left:var(--split);top:0;bottom:0;background:white;width:2px;transform:translateX(-50%);box-shadow:0 0 4px #15202c33}
.handle{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:white;color:#384456;box-shadow:0 2px 9px #15202c40}
.handle .ic{width:23px;height:23px;stroke-width:2}
.comparison>input{inset:0;margin:0;appearance:none;-webkit-appearance:none;width:100%;height:100%;cursor:ew-resize;background:transparent;touch-action:pan-y;opacity:0}
.comparison:focus-within{outline:3px solid #91a5ff;outline-offset:2px}
.comparison>input::-webkit-slider-thumb{appearance:none;width:1px;height:100%;background:transparent}
.comparison>input::-moz-range-thumb{width:1px;border:0;background:transparent}
.photo-foot{display:flex;align-items:center;justify-content:space-between;padding:13px 20px 16px;color:#6b7481;font-size:12px}
.slide-hint{display:flex;align-items:center;gap:6px}
.slide-hint .ic{width:16px;height:16px;background:#f2f3f6;border:1px solid #d6dce4;border-radius:4px}
.photo-index{font:11px "Courier New",monospace;color:#7d8693}
.dropzone{margin-top:20px;width:100%;min-height:194px;border:1px dashed #b6c2df;background:#f8faff;border-radius:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:16px;color:#38445a}
.dropzone.dragging,.dropzone:hover{background:#edf1ff;border-color:var(--blue)}
.file-glyph{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;color:var(--blue);background:#e8edff}
.dropzone strong{font-size:15px}.dropzone small{color:var(--muted);font-size:12px;line-height:1.6}
.feedback{font-size:13px;margin-top:12px;line-height:1.6;color:#526076}.feedback.error{color:#ad3734}
.text-button{font-size:13px;color:var(--blue);padding:6px 0;margin-top:4px}
.result-label{margin:21px 0 6px;font-size:13px;color:#317758}
#result-title{font-size:18px;overflow-wrap:anywhere;line-height:1.5}
.source-note{color:var(--muted);font-size:13px;line-height:1.65;margin-top:9px}
.result-actions{display:flex;gap:8px;margin:20px 0 4px}.result-actions>*{flex:1;white-space:nowrap}
.workflow{margin:37px 0 45px}
.flow-title{display:flex;align-items:center;gap:16px;margin:0 0 16px}
.flow-title h2{font-size:18px;font-weight:680;letter-spacing:-.5px}
.flow-title>span{height:1px;flex:1;background:#dfe3ea}
.steps{list-style:none;display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:0;padding:0}
.steps li{border:1px solid #dfe3ea;border-radius:11px;display:flex;gap:14px;align-items:center;padding:19px 18px;background:#ffffffa8}
.step-icon{background:#eef1fb;color:#4b64c2;display:grid;place-items:center;border:1px solid #e3e8f8;width:39px;height:39px;border-radius:11px;flex-shrink:0}
.step-icon .ic{width:21px;height:21px}
.steps h3{font-size:15px;font-weight:650}
.steps h3 span{font-size:11px;font-family:"Courier New",monospace;color:#647cce;margin-right:8px}
.steps p{font-size:12px;line-height:1.6;color:var(--muted);margin-top:4px}
.footer{display:flex;justify-content:space-between;align-items:center;border-top:1px solid #dfe3e9;padding:20px 0 30px;color:#798290;font-size:12px;gap:12px}
.footer>span{display:flex;align-items:center;gap:6px}
.footer img{filter:grayscale(1);opacity:.5}.footer b{font-weight:500}
.footer .ic{width:15px;height:15px;color:#728377}
#guide{width:min(480px,calc(100% - 30px));border:1px solid var(--border);border-radius:15px;padding:30px;color:var(--ink);box-shadow:0 20px 60px #141b3430}
#guide::backdrop{background:#1721416b}#guide h2{font-size:24px}#guide h3{font-size:15px;margin:22px 0 5px}#guide p{font-size:14px;line-height:1.75;color:#626c79}#guide .primary{margin-top:25px}
.dialog-close{position:absolute;top:15px;right:15px;width:30px;height:30px;border-radius:6px}.dialog-close:hover{background:#f1f3f7}
@media(min-width:1500px){.comparison{height:285px}}
@media(max-width:1050px){.shell{width:calc(100% - 56px)}.workgrid{gap:16px;grid-template-columns:1fr 1.04fr}.card-head{padding-inline:18px}.import-body{padding-inline:17px}.steps li{gap:10px;padding:15px 12px}.step-icon{width:34px;height:34px}.comparison{height:262px;margin-inline:13px}.steps p{font-size:11.5px}}
@media(max-width:760px){.shell{width:calc(100% - 36px)}.header-inner{height:60px;gap:17px}.brand{gap:7px}.brand img{width:30px;height:30px}.brand strong{font-size:20px}.brand span{font-size:12px}.intro{padding:32px 0 21px}.intro h1{font-size:34px}.intro p{font-size:13px;margin-top:8px}.workgrid{grid-template-columns:1fr}.card-head{min-height:57px;padding:12px 16px}.card-heading h2{font-size:17px}.import-body{padding:16px}.comparison{height:clamp(208px,56vw,325px)}.workflow{margin:27px 0}.steps{grid-template-columns:1fr;gap:8px}.steps li{padding:13px 15px}.steps p{font-size:12px}.footer{font-size:11px}.guide-button{font-size:12px}.comparison>input{touch-action:pan-y}}
@media(max-width:420px){.header-divider,.current-nav{display:none}.shell{width:calc(100% - 28px)}.header-inner{gap:8px}.photo-foot{padding-inline:15px}}
