:root{--bg:#f6f7f9;--paper:#fff;--ink:#25303c;--muted:#7b8490;--line:#e8ebef;--accent:#e87546;--accent-light:#fff1ea;--green:#46947a;--font:-apple-system,BlinkMacSystemFont,"PingFang TC","Microsoft JhengHei","Noto Sans CJK TC","Microsoft YaHei",sans-serif;font-family:var(--font);color:var(--ink);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed}button{color:inherit}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon-defs{display:none}[hidden]{display:none!important}.wrap{max-width:1376px;margin:auto;padding:0 48px}.header{height:102px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e6e9ed}.brand{display:flex;align-items:center;gap:12px;color:var(--ink);text-decoration:none;font-weight:720;font-size:23px;letter-spacing:2px}.brandmark{width:43px;height:43px;border:1.5px solid var(--accent);border-radius:13px;display:grid;place-items:center;color:var(--accent);font-size:23px;font-weight:500;transform:rotate(-3deg)}.brand-en{display:block;font-size:8px;letter-spacing:2.5px;color:#9a9290;font-weight:600;margin-top:2px}.header-right{display:flex;align-items:center;gap:27px}.local-status{font-size:12px;color:#5b6f66;display:flex;align-items:center;gap:7px}.status-dot{width:6px;height:6px;display:inline-block;border-radius:50%;background:var(--green);box-shadow:0 0 0 3px #46947a10}.text-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:0;background:transparent;padding:4px 0;color:var(--muted);font-size:12px;white-space:nowrap}.text-button:hover{color:var(--accent)}.text-button svg{width:15px;height:15px}.small{font-size:11px}.hero{padding:43px 0 36px;display:flex;align-items:flex-end;justify-content:space-between;gap:25px}.eyebrow{font-family:var(--font);font-size:9px;font-weight:650;letter-spacing:2px;color:var(--accent);margin:0 0 15px}h1{font-size:36px;font-weight:680;letter-spacing:-1.5px;line-height:1.4;margin:0}h1 span{color:#9399a3;font-weight:450}.hero-copy{font-size:13px;color:var(--muted);line-height:1.9;margin:13px 0 0;letter-spacing:.3px}.hero-note{display:flex;gap:12px;align-items:center;padding:12px 0 5px}.hero-note>svg{width:33px;height:33px;stroke:#a2aaa4;stroke-width:1.25}.hero-note strong{font-size:12px;display:block;font-weight:550;margin-bottom:6px}.hero-note span{font-size:10px;color:var(--muted)}.workspace{display:grid;grid-template-columns:374px minmax(0,1fr);gap:24px;align-items:start}.editor{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:0 6px 30px #25303c03}.mode-tabs{display:flex;background:#fafbfc;border-bottom:1px solid var(--line);padding:8px;gap:4px}.mode-tab{flex:1;border:0;background:transparent;display:flex;gap:7px;align-items:center;justify-content:center;font-size:11px;white-space:nowrap;padding:13px 5px;border-radius:8px;color:#858b94}.mode-tab svg{width:16px;height:16px}.mode-tab.active{color:var(--accent);background:white;box-shadow:0 2px 6px #25303c08;font-weight:600}.editor-body{padding:0 24px}.control-section{padding:24px 0;border-bottom:1px solid var(--line)}.control-section:last-child{border:0}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.section-heading h2{font-size:13px;font-weight:650;display:flex;align-items:center;gap:9px;margin:0}.step{font-size:10px;font-weight:600;letter-spacing:.7px;color:#a5acb4}.dropzone{width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px dashed #dadddf;border-radius:10px;background:linear-gradient(135deg,#fdfdfd,#fafbfc);padding:20px 10px;transition:.2s}.dropzone:hover,.dropzone.dragover{border-color:var(--accent);background:var(--accent-light)}.dropzone strong{font-weight:550;font-size:12px;margin:10px 0 7px}.dropzone>span:last-child{font-size:10px;color:#969da6}.import-icon{width:30px;height:30px;border:1px solid #dfe3e9;background:white;border-radius:8px;display:grid;place-items:center;color:#858d98;box-shadow:0 2px 3px #25303c03}.import-icon svg{width:17px;height:17px}.input-hint{font-size:10px;line-height:1.8;color:#949ca6;margin:9px 0 0}.file-list{display:flex;gap:6px;flex-wrap:wrap}.file-chip{display:flex;align-items:center;gap:6px;max-width:100%;font-size:10px;border:1px solid var(--line);padding:7px 8px;border-radius:6px;background:white;margin-top:8px}.file-chip.active{border-color:#edb49e;background:var(--accent-light);color:#bc633e}.file-chip span{max-width:190px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.file-chip .remove-file{border:0;background:none;padding:0 2px;font-size:14px;color:#858b94}.file-tools{display:flex;gap:6px;margin-top:12px}.file-tools button{font-size:10px;border:1px solid var(--line);background:white;padding:7px 9px;border-radius:6px;display:flex;align-items:center;gap:5px}.file-tools svg{width:13px;height:13px}.filters{display:flex;justify-content:space-between;align-items:center;margin-top:10px;font-size:11px;color:var(--muted)}.filters select{width:140px}.field-label{font-size:11px;color:#616b77;display:block;margin-bottom:8px}textarea,input[type=text],input[type=password]{width:100%;border:1px solid #e2e6ec;border-radius:8px;background:#fcfcfd;padding:11px 12px;color:var(--ink);font-size:12px;line-height:1.8;outline:none}textarea{resize:vertical;min-height:74px;max-height:180px}input:focus-visible,textarea:focus-visible,select:focus-visible,button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #e8754690;outline-offset:3px}textarea:focus{border-color:#e7a487}.presets{display:flex;gap:6px;margin-top:9px}.presets button{font-size:10px;background:#f7f8fa;border:1px solid #edf0f3;color:#78818d;padding:6px 10px;border-radius:5px}.presets button:hover{border-color:#e5ad95;color:var(--accent)}.checkbox{display:flex;align-items:center;gap:7px;font-size:10px;color:#7c8591;margin:15px 0 23px}.checkbox input{accent-color:var(--accent);width:13px;height:13px;margin:0}.date-label{margin-left:auto;font-size:10px;color:#b0b6bf;font-variant-numeric:tabular-nums}.field-row{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:18px}.field-row .field-label{margin:0}.segmented{padding:3px;display:flex;gap:3px;border-radius:6px;background:#f3f5f7}.segmented button{border:0;background:none;color:#8a929c;border-radius:4px;padding:6px 10px;font-size:10px}.segmented button.selected{background:white;box-shadow:0 1px 4px #0000000a;color:#4f5c6b}.slider-row{display:grid;grid-template-columns:1fr auto;gap:10px 5px;align-items:center;margin-bottom:17px}.slider-row label{font-size:11px;color:#616b77}.slider-row output{font-size:10px;color:#8a929e;font-variant-numeric:tabular-nums}.slider-row input{grid-column:1/-1;width:100%;height:3px;accent-color:var(--accent);cursor:pointer;margin:2px 0 3px;appearance:none;background:#edf0f3;border-radius:3px}.slider-row input::-webkit-slider-thumb{appearance:none;width:12px;height:12px;border:2px solid white;background:var(--accent);border-radius:50%;box-shadow:0 0 0 1px #e9b39b}.slider-row input::-moz-range-thumb{width:9px;height:9px;border:2px solid white;background:var(--accent);border-radius:50%;box-shadow:0 0 0 1px #e9b39b}.slider-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.color-row{margin-bottom:0}.colors{display:flex;align-items:center;gap:10px}.swatch{width:16px;height:16px;padding:0;border:3px solid white;background:var(--swatch);border-radius:50%;box-shadow:0 0 0 1px transparent}.swatch.selected{box-shadow:0 0 0 1px var(--swatch)}.custom-color{position:relative;width:19px;height:19px;border:1px solid #dfe3e8;border-radius:50%;cursor:pointer;overflow:hidden;display:grid;place-items:center;font-size:13px;color:#929ba7}.custom-color input{position:absolute;opacity:0;cursor:pointer;inset:0;width:100%;height:100%;padding:0}.advanced{margin-top:20px;border-top:1px solid var(--line);padding-top:14px}.advanced summary{font-size:10px;color:#7e8792;cursor:pointer;list-style:none;display:flex;justify-content:space-between}.advanced summary:after{content:'＋';margin-left:7px}.advanced[open] summary:after{content:'−'}.advanced summary span{margin-left:auto;color:#a9afb7;font-size:9px}.advanced[open] summary{margin-bottom:18px}.advanced .input-hint{margin-top:0}.local-tag{font-size:8px;letter-spacing:1px;color:#a8b0ba}.export-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.export-options label,.crop-actions label{font-size:10px;color:#7c8591}.export-options select{margin-top:8px}select{border:1px solid #e4e7ed;background:#fff;border-radius:7px;min-height:35px;padding:7px 9px;font-size:11px;color:#535f6d;width:100%;outline:none}select:disabled{color:#aab0b8;background:#f7f8fa}.export-note{font-size:10px;color:#969da7;line-height:1.8;margin:12px 0 16px}.primary-button{display:flex;justify-content:center;align-items:center;gap:9px;min-height:44px;padding:12px 16px;background:var(--accent);color:white;border:0;border-radius:9px;font-size:12px;font-weight:550;width:100%;transition:.2s}.primary-button:hover{background:#dc683a;box-shadow:0 3px 10px #e8754629}.primary-button:disabled{background:#f0c6b5;color:#fff9f5;box-shadow:none}.primary-button svg{width:16px;height:16px}.primary-button .end-arrow{margin-left:auto;width:15px}.primary-button>svg:first-child{margin-right:auto}.primary-button span{white-space:nowrap}.preview-panel{border-radius:16px;min-width:0}.preview-toolbar{display:flex;justify-content:space-between;align-items:center;padding:5px 3px 17px}.preview-title{display:flex;gap:9px;align-items:center}.preview-title strong{font-size:12px;font-weight:550}.preview-title>span:last-child{font-size:9px;color:#9aa3af;border:1px solid #e0e4e9;padding:3px 6px;border-radius:4px;margin-left:2px}.preview-stage{min-height:490px;height:560px;padding:48px 38px;display:flex;align-items:center;justify-content:center;position:relative;border:1px solid #e6e9ef;border-radius:12px;background-color:#edf0f4;background-image:radial-gradient(#cad1dc70 .75px,transparent .75px);background-size:12px 12px;overflow:hidden}.preview-canvas-wrap{position:relative;max-width:100%;max-height:100%;display:flex;align-items:center;justify-content:center;transition:transform .2s}#preview-canvas{max-width:100%;max-height:464px;width:auto;height:auto;display:block;border-radius:2px;box-shadow:0 14px 38px #35445e1a,0 2px 8px #35445e0a;background:white}.sample-badge{position:absolute;top:12px;left:12px;font-size:9px;color:#7c8a98;background:#ffffffdd;padding:5px 8px;border-radius:4px;border:1px solid #e7eaf0}.preview-bottom{display:flex;justify-content:space-between;align-items:center;min-height:49px;gap:10px;padding:9px 3px}.preview-bottom>span{color:#979fab;font-size:10px;line-height:1.7;overflow-wrap:anywhere}.page-nav{display:flex;gap:10px;align-items:center;flex-shrink:0;font-size:10px;color:#6d7885}.page-nav button{width:26px;height:26px;display:grid;place-items:center;padding:5px;border:1px solid #dfe4e9;background:white;border-radius:6px}.page-nav svg{width:13px;height:13px}.page-nav #prev-page svg{transform:rotate(180deg)}.page-nav button:disabled{opacity:.3}.privacy-strip{border:1px solid #e0e6e5;background:#f4f8f5;border-radius:10px;padding:20px;display:flex;gap:13px;align-items:center}.privacy-strip>svg{width:24px;height:28px;color:#6f9683;stroke-width:1.3}.privacy-strip p{margin:0;flex:1}.privacy-strip p strong{font-size:11px;font-weight:550;color:#596e63;display:block;margin-bottom:6px}.privacy-strip p span{font-size:10px;color:#8c9a91;line-height:1.8}.privacy-seal{color:#8ba798;font-size:19px;font-weight:400;letter-spacing:-.5px;padding-left:20px;border-left:1px solid #e0e6e0}.privacy-seal small{display:block;font-size:8px;letter-spacing:.5px;margin-top:5px}.tips-card{display:flex;gap:10px;margin:20px 2px}.tips-icon{flex-shrink:0;width:14px;height:14px;border:1px solid #b3bbc5;border-radius:50%;display:grid;place-items:center;color:#9ba5af;font-size:9px;margin-top:2px}.tips-card p{font-size:10px;line-height:1.9;color:#939ca7;margin:0}.tips-card strong{color:#788390;font-weight:500}footer{display:flex;justify-content:space-between;padding:35px 2px 30px;color:#a3aab4;font-size:10px;margin-top:2px}.footer-dot{margin:0 7px}footer .text-button{font-size:10px;gap:12px;padding:0}.mobile-only{display:none}.id-pickers{display:grid;grid-template-columns:1fr 1fr;gap:10px}.id-picker{position:relative;overflow:hidden;min-height:105px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:#fafbfd;border:1px dashed #d8dfe7;border-radius:9px;padding:12px}.id-picker strong{font-size:11px;font-weight:500}.id-picker span{font-size:9px;color:#9aa3af}.id-picker svg{color:#919dab}.id-picker img{max-width:100%;max-height:75px;object-fit:contain;border-radius:4px}.id-picker.has-image svg,.id-picker.has-image span{display:none}.id-picker.has-image{border-style:solid}.id-picker.selected{border-color:var(--accent);background:#fff8f3}.id-picker.has-image strong{font-size:9px;color:#8b94a0}.page-range{margin-top:15px}.page-range input{margin-top:5px;font-size:11px;line-height:1.5}.page-range .input-hint{display:block}.export-progress{margin-top:12px;display:grid;grid-template-columns:1fr auto;gap:8px;font-size:10px;color:#7b8693}.export-progress progress{grid-column:1/-1;width:100%;height:4px;accent-color:var(--accent)}.download-again{display:block;margin-top:12px;color:#688575;text-align:center;font-size:10px;text-decoration:underline;cursor:pointer}.toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);max-width:min(90vw,560px);border:1px solid #e7eaf0;padding:13px 20px;background:white;color:#53616f;border-radius:10px;box-shadow:0 8px 30px #25303c20;font-size:12px;z-index:100;line-height:1.6}.toast.error{color:#b84738;border-color:#ebc8c1}dialog{border:1px solid #e0e5ec;border-radius:18px;color:var(--ink);padding:30px;max-height:90dvh;overflow:auto;box-shadow:0 20px 80px #17243c30}dialog::backdrop{background:#1e293b66;backdrop-filter:blur(5px)}.info-dialog{width:min(510px,calc(100vw - 30px))}.dialog-top{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:15px}.dialog-top .eyebrow{margin:0}.close-dialog{background:#f4f6f8;border:0;border-radius:50%;width:28px;height:28px;font-size:20px;font-weight:300;display:grid;place-items:center;color:#8b95a2;padding:0}.privacy-dialog-icon{width:50px;height:50px;border-radius:16px;background:#f1f7f2;color:#71927a;display:grid;place-items:center;margin-top:12px}.privacy-dialog-icon svg{width:28px;height:28px}dialog h2{font-size:23px;font-weight:600;margin:18px 0 15px}.dialog-top h2{margin:0;font-size:17px}.info-dialog p,.info-dialog li{font-size:12px;line-height:1.95;color:#7c8794}.info-dialog ul{padding-left:18px}.info-dialog li{margin-bottom:8px}.info-dialog .input-hint{font-size:10px;margin:16px 0}.info-dialog .primary-button{margin-top:18px}.licenses{font-size:10px;color:#9aa2ad;margin-top:18px}.licenses summary{cursor:pointer}.licenses a{display:block;color:#839182;margin-top:9px}.crop-dialog{width:min(800px,calc(100vw - 24px));padding:25px}.crop-dialog>p{font-size:12px;color:#9098a4;line-height:1.8}.crop-stage{position:relative;max-width:100%;width:fit-content;margin:25px auto;background:#f0f2f5;touch-action:none}.crop-stage canvas{display:block;max-height:54dvh;max-width:100%;object-fit:contain;width:auto;height:auto}.crop-stage>svg{position:absolute;inset:0;width:100%;height:100%;stroke:none;pointer-events:none;overflow:visible}#crop-polygon{fill:none;stroke:var(--accent);stroke-width:.4}#crop-shade{fill:#0f172a88}.crop-handle{position:absolute;transform:translate(-50%,-50%);width:21px;height:21px;border:3px solid white;border-radius:50%;padding:0;background:var(--accent);touch-action:none;box-shadow:0 1px 6px #0004}.crop-handle:before{content:'';position:absolute;inset:-10px}.crop-actions{display:flex;gap:10px;align-items:flex-end}.crop-actions label{flex:1;min-width:100px}.crop-actions select{margin-top:7px}.crop-actions .primary-button{width:auto;min-height:35px;padding:9px 14px;font-size:11px}.secondary-button{padding:8px 12px;background:white;border:1px solid #e1e5ec;border-radius:7px;font-size:11px;min-height:35px}.error-text{font-size:11px;color:#b84738;min-height:16px;margin-bottom:0}.noscript{position:fixed;bottom:0;background:#fce5d8;padding:20px;width:100%;text-align:center}body.busy .editor button:not(#cancel-export),body.busy .editor input,body.busy .editor select,body.busy .editor textarea,body.busy #clear,body.busy .page-nav{pointer-events:none;opacity:.65}body.busy #export{opacity:1}
@media(min-width:1500px){.wrap{max-width:1470px}.workspace{grid-template-columns:390px 1fr;gap:30px}.preview-stage{height:635px}#preview-canvas{max-height:530px}}
@media(max-width:1100px){.wrap{padding:0 28px}.workspace{grid-template-columns:340px minmax(0,1fr);gap:18px}.editor-body{padding:0 20px}.hero-note{display:none}.hero{padding:32px 0}h1{font-size:32px}.preview-stage{padding:30px 24px;min-height:410px;height:480px}#preview-canvas{max-height:410px}.privacy-strip{padding:16px 13px;gap:10px}.privacy-seal{display:none}.privacy-strip p strong{font-size:10px}.privacy-strip p span{font-size:9px}}
@media(max-width:760px){.wrap{padding:0 19px}.header{height:80px}.brand{font-size:21px;gap:10px}.brandmark{width:37px;height:37px;font-size:21px}.header-right{gap:15px}.header-right .text-button{font-size:0;gap:0}.header-right .text-button svg{width:20px;height:20px}.local-status{font-size:10px}.hero{padding:29px 0 25px}.eyebrow{font-size:8px;letter-spacing:1.5px;margin-bottom:11px}h1{font-size:27px;letter-spacing:-.5px}h1 span{display:block;margin-top:2px}.hero-copy{font-size:11px;line-height:1.9;margin-top:12px}.workspace{display:flex;flex-direction:column;gap:19px}.editor{width:100%;border-radius:13px;overflow:visible}.editor .mode-tabs{border-radius:13px 13px 0 0;position:sticky;top:0;z-index:5;box-shadow:0 3px 5px #25303c03}.mode-tab{font-size:12px;padding:12px 5px}.editor-body{padding:0 21px}.control-section{padding:22px 0}.dropzone{padding:18px 10px}.preview-panel{width:100%}.preview-stage{min-height:300px;height:400px;padding:32px 23px}#preview-canvas{max-height:335px}.preview-toolbar{padding-bottom:13px}.privacy-strip{padding:18px;gap:13px}.privacy-strip p strong{font-size:11px}.privacy-strip p span{font-size:10px}.preview-bottom{min-height:44px}.tips-card{margin:17px 2px}.export-section .primary-button{min-height:48px}.section-heading h2{font-size:13px}.hero-note{display:none}.mobile-only{display:block}.export-options select{font-size:12px}.field-label,.slider-row label{font-size:12px}.slider-row{margin-bottom:20px}.slider-row input{height:4px}.slider-row input::-webkit-slider-thumb{width:17px;height:17px}textarea,input[type=text],input[type=password]{font-size:16px}.presets button{padding:7px 10px}.checkbox{font-size:11px}.segmented button{font-size:11px;padding:7px 12px}.swatch{width:20px;height:20px}.colors{gap:12px}.custom-color{width:22px;height:22px}footer{gap:20px;align-items:flex-start;line-height:1.8;padding:20px 0 28px;font-size:9px}footer>span{max-width:55%}footer .text-button{font-size:9px;gap:5px}.info-dialog{padding:25px}.crop-dialog{padding:22px}.crop-actions{flex-wrap:wrap}.crop-actions label{flex-basis:100%}.crop-actions .primary-button{flex:1}select{min-height:39px}.crop-stage canvas{max-height:48dvh}.mode-tabs{gap:2px}.page-range input{font-size:16px}.file-chip span{max-width:220px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;scroll-behavior:auto!important}}
.file-tools{flex-wrap:wrap}.file-tools button{min-height:31px}.paper-controls select{width:180px}.scope-controls{margin:0 0 21px}.scope-buttons{width:100%;padding:4px}.scope-buttons button{flex:1;padding:9px 7px}.scope-controls .input-hint{font-size:10px}.crop-dialog{width:min(1000px,calc(100vw - 24px))}.crop-panels{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(0,1fr);gap:22px;align-items:start;margin:20px 0}.crop-panel-label{font-size:10px;color:#83909d;display:block;margin-bottom:11px}.crop-stage{margin:12px auto 20px}.crop-result-wrap{background:#edf0f4;border:1px solid #e4e8ed;padding:16px;min-height:160px;display:flex;align-items:center;justify-content:center;border-radius:8px}.crop-result-wrap canvas{display:block;max-width:100%;max-height:350px;width:auto;height:auto;box-shadow:0 3px 12px #25303c10}.crop-detect-row{display:flex;gap:13px;align-items:center;margin:15px 0 22px}.crop-detect-row>span{font-size:10px;color:#8c98a5;line-height:1.7}.crop-actions .primary-button{white-space:nowrap}.crop-source-panel,.crop-result-panel{min-width:0}
@media(max-width:760px){.paper-controls select{width:185px}.scope-buttons button{font-size:12px}.crop-panels{grid-template-columns:1fr;gap:12px}.crop-result-wrap{min-height:100px;padding:10px}.crop-result-wrap canvas{max-height:190px}.crop-panel-label{font-size:11px}.crop-detect-row{align-items:flex-start}.crop-detect-row button{white-space:nowrap}.crop-stage canvas{max-height:38dvh}.crop-result-panel{border-top:1px solid var(--line);padding-top:14px}.crop-dialog{padding:20px}}
