:root{--teal:#0f766e;--dark:#063d38;--ink:#14202b;--muted:#647383;--line:#dae3e8;--bg:#f5f8fa}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Arial,"Microsoft YaHei",sans-serif;font-size:14px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.42;cursor:not-allowed}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,select:focus-visible,textarea:focus-visible,input:focus-visible{outline:3px solid #32b6ab;outline-offset:3px}.top{height:56px;background:var(--dark);color:white;padding:0 2.5%;display:flex;align-items:center;justify-content:space-between}.top>a:first-child{font-size:24px;font-weight:700}.top .back{font-size:14px;font-weight:600}main{padding:20px;max-width:1800px;margin:auto}.heading{padding:0 14px 18px}.heading h1{font-size:30px;letter-spacing:-.7px;margin:0 0 5px}.heading p{font-size:16px;color:var(--muted);margin:0}.actionbar{display:flex;align-items:center;gap:14px;border:1px solid var(--line);background:white;border-radius:7px;padding:9px 14px;margin-bottom:12px}.button{background:#f7f9fa;color:var(--ink);border:1px solid var(--line);border-radius:6px;min-height:42px;padding:10px 15px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:10px;transition:background .15s}.button:not(:disabled):hover{background:#e7efef}.button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.button.primary{background:var(--teal);border-color:var(--teal);color:white}.button.primary:not(:disabled):hover{background:#095f58}.count{padding-left:20px;border-left:1px solid var(--line);color:var(--muted)}.export{margin-left:auto;min-width:185px}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:12px;align-items:stretch}.editor{display:grid;grid-template-columns:160px minmax(0,1fr);min-width:0;min-height:650px;background:white;border:1px solid var(--line);border-radius:7px;overflow:hidden}h2{font-size:17px;margin:0 0 14px}.pages{padding:18px 14px;display:flex;flex-direction:column;min-width:0}.page-list{display:grid;gap:12px;align-content:start;max-height:510px;overflow:auto}.page-tile{border:2px solid transparent;border-radius:5px;background:transparent;padding:4px;width:100%;color:var(--ink)}.page-tile.active{border-color:var(--teal);background:#edf8f6}.page-tile img{width:100%;height:135px;object-fit:contain;display:block;background:#edf1f3}.page-tile span{display:block;font-size:12px;padding-top:6px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.page-order{display:flex;gap:4px;margin:14px 0}.mini{border:1px solid var(--line);background:white;min-height:30px;border-radius:4px;font-size:12px;padding:4px 6px}.pages small{font-size:11px;line-height:1.7;color:var(--muted);margin-top:auto}.stage{background:#dfe6ea;min-width:0;display:flex;justify-content:center;align-items:center;padding:24px;position:relative}.stage.dragover{outline:3px dashed var(--teal);outline-offset:-8px}.empty{text-align:center;color:var(--muted);padding:25px 5px}.empty>svg{width:85px;height:100px;fill:#f5f9fa;stroke:#8b9da4;stroke-width:2;margin-bottom:12px}.empty h2{font-size:23px;color:#30414d;margin-bottom:10px}.empty p{line-height:1.8;margin:0 0 20px}.empty .privacy{font-size:12px;margin:18px 0 0}.preview{width:100%;text-align:center;align-self:flex-start}.image-wrap{position:relative;display:inline-block;max-width:100%;vertical-align:top;line-height:0;box-shadow:0 5px 25px #24374418}canvas{display:block;max-width:100%;max-height:590px;width:auto;height:auto}#corners{position:absolute;inset:0;width:100%;height:100%;overflow:visible;touch-action:pan-y}#outline{fill:#0f766e08;stroke:var(--teal);stroke-width:2;stroke-dasharray:6 5;vector-effect:non-scaling-stroke}.corner-hit{fill:transparent;stroke:none;cursor:grab;touch-action:none}.corner{fill:var(--teal);stroke:white;stroke-width:2;vector-effect:non-scaling-stroke;pointer-events:none}.handle-label{font-size:12px;fill:#083f39;font-weight:700;pointer-events:none}#crop-hint{font-size:12px;color:var(--muted);line-height:1.5;margin:15px 0 0}.adjust{background:white;border:1px solid var(--line);border-radius:7px;padding:18px 20px;min-width:0}.full{width:100%;margin-bottom:10px}.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}.two .button{padding:9px 6px;font-size:13px}.section{border-top:1px solid var(--line);margin-top:15px;padding-top:15px}label{font-size:12px;display:block;margin-bottom:7px;font-weight:600}.filters{display:flex;border:1px solid var(--line);border-radius:5px;overflow:hidden;margin-bottom:17px}.filters button{flex:1;padding:9px 4px;background:white;border:0;border-right:1px solid var(--line);font-size:12px;color:var(--muted)}.filters button:last-child{border:0}.filters button.active{color:white;background:var(--teal)}.slider-label{margin-top:12px;display:flex;align-items:center;justify-content:space-between}.slider-label output{font-weight:400;color:var(--muted);font-variant-numeric:tabular-nums}input[type=range]{width:100%;accent-color:var(--teal);margin:0 0 12px;height:18px}.subtle{font-size:12px!important;font-weight:500;min-height:34px}.ocr select{width:100%;padding:9px 10px;border:1px solid var(--line);border-radius:5px;background:white;margin-bottom:10px;color:var(--ink)}textarea{width:100%;resize:vertical;min-height:130px;max-height:350px;padding:10px;border:1px solid var(--line);border-radius:5px;font-size:12px;line-height:1.6;color:var(--ink);margin-bottom:8px}.statusbar{display:flex;justify-content:space-between;align-items:center;gap:16px;color:var(--muted);font-size:12px;min-height:42px}.statusbar p{margin:12px 0;color:#28514b}.statusbar p.error{color:#a42c38}.statusbar span{white-space:nowrap}.footnote{font-size:12px;color:var(--muted);line-height:1.7;margin:3px 0 0}[hidden]{display:none!important}@media(min-width:1500px){.editor{min-height:720px}canvas{max-height:650px}.page-list{max-height:580px}}@media(max-width:1100px){.workspace{grid-template-columns:minmax(0,1fr) 290px}.adjust{padding:17px 14px}.editor{grid-template-columns:120px minmax(0,1fr)}.stage{padding:20px 14px}.page-tile img{height:110px}.statusbar{align-items:flex-start}.statusbar span{white-space:normal;text-align:right}}@media(max-width:760px){main{padding:14px}.top{padding:0 20px}.top>a:first-child{font-size:20px}.heading{padding:0 2px 16px}.heading h1{font-size:27px}.heading p{font-size:14px}.actionbar{padding:10px;gap:8px;flex-wrap:wrap}.actionbar .button{font-size:12px;padding:9px 10px;min-height:40px}.actionbar .button svg{display:none}.export{min-width:120px}.count{padding-left:8px;font-size:12px}.workspace{grid-template-columns:1fr}.editor{grid-template-columns:1fr;min-height:400px}.pages{padding:12px;display:grid;grid-template-columns:50px minmax(0,1fr);gap:8px;align-items:start}.pages h2{font-size:14px;margin-top:8px}.page-list{display:flex;max-height:120px;overflow:auto}.page-tile{width:70px;flex-shrink:0}.page-tile img{height:60px}.page-tile span{font-size:10px;max-width:60px}.page-order{grid-column:2;margin:0}.pages small{display:none}.stage{padding:22px;min-height:360px}canvas{max-height:490px}.adjust{padding:20px}.adjust .edit-controls .section{margin-top:15px}.statusbar{display:block}.statusbar span{text-align:left}.empty h2{font-size:21px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}
