:root { --navy:#183153; --ink:#15202b; --muted:#687684; --line:#e6ebef; --paper:#fff; --soft:#f6f8fa; --page:#fbfcfd; --gold:#c98a2b; }
* { box-sizing:border-box; margin:0; padding:0; }
body { background:var(--page); color:var(--ink); font-family:"Microsoft YaHei UI","PingFang SC",system-ui,sans-serif; line-height:1.7; min-height:100vh; display:flex; flex-direction:column; }
a { color:inherit; text-decoration:none; }
.top { height:62px; display:flex; align-items:center; justify-content:space-between; padding:0 max(22px, calc((100vw - 1120px)/2)); background:rgba(255,255,255,.95); border-bottom:1px solid var(--line); position:sticky; top:0; backdrop-filter:blur(10px); z-index:20; }
.brand { display:flex; align-items:center; gap:9px; font-size:18px; font-weight:800; letter-spacing:-.02em; }
.brand-mark { display:grid; place-items:center; width:32px; height:32px; border-radius:8px; background:var(--navy); color:#fff; font-size:16px; }
.back-link { font-size:14px; color:#45566a; font-weight:600; }
.back-link:hover { color:var(--navy); }
main { flex:1; width:100%; max-width:900px; margin:0 auto; padding:40px 22px 70px; }
h1 { font-size:28px; color:var(--navy); letter-spacing:-.01em; }
p.sub { margin-top:8px; color:var(--muted); font-size:15px; }
.privacy-pill { display:inline-flex; align-items:center; gap:7px; margin-top:14px; padding:6px 13px; border-radius:99px; background:#e8f4ee; color:#1e7a4d; font-size:12.5px; font-weight:700; }
.panel { margin-top:26px; padding:24px; border:1.5px solid var(--line); border-radius:16px; background:var(--paper); }
.dropzone { border:2px dashed #c3d2dd; border-radius:14px; padding:44px 20px; text-align:center; cursor:pointer; transition:border-color .15s ease, background .15s ease; }
.dropzone:hover, .dropzone.drag { border-color:#5b87ad; background:#f2f8fd; }
.dropzone b { display:block; font-size:17px; color:var(--navy); }
.dropzone small { display:block; margin-top:6px; color:var(--muted); font-size:13px; }
.controls { margin-top:20px; display:flex; flex-wrap:wrap; gap:14px 22px; align-items:flex-end; }
.field { display:grid; gap:6px; font-size:13px; font-weight:700; color:#3b4b5c; }
.field select, .field input[type="number"] { height:42px; min-width:150px; padding:0 12px; border:1.5px solid var(--line); border-radius:10px; background:#fff; color:var(--ink); font-size:14px; outline:none; }
.field select:focus, .field input:focus { border-color:var(--navy); }
.field input[type="range"] { accent-color:var(--navy); }
.btn { height:46px; padding:0 26px; border:none; border-radius:11px; background:var(--navy); color:#fff; font-size:15px; font-weight:700; cursor:pointer; transition:opacity .15s ease; }
.btn:hover { opacity:.92; }
.btn:disabled { opacity:.45; cursor:not-allowed; }
.btn.secondary { background:#edf2f6; color:#29405a; }
.file-list { margin-top:18px; display:grid; gap:8px; }
.file-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:11px 14px; border:1px solid var(--line); border-radius:11px; background:var(--soft); font-size:13.5px; }
.file-row .name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:46%; font-weight:600; }
.file-row .meta { color:var(--muted); font-size:12.5px; white-space:nowrap; }
.file-row .save { height:34px; padding:0 14px; border-radius:8px; border:1px solid #bfd0de; background:#fff; color:#27537d; font-weight:700; font-size:12.5px; cursor:pointer; }
.file-row .save:hover { border-color:#7fa3bf; }
.actions { margin-top:20px; display:flex; gap:12px; flex-wrap:wrap; }
.status { margin-top:16px; font-size:13.5px; color:var(--muted); min-height:20px; }
.status.err { color:var(--red,#c73a3f); }
canvas.stage { max-width:100%; border-radius:12px; background:repeating-conic-gradient(#eef1f4 0% 25%, #fff 0% 50%) 0 0/22px 22px; touch-action:none; }
.crop-wrap { position:relative; display:inline-block; max-width:100%; }
.crop-box { position:absolute; border:2px solid #3b82c4; box-shadow:0 0 0 9999px rgba(13,25,38,.45); cursor:move; }
.crop-box .handle { position:absolute; width:14px; height:14px; right:-8px; bottom:-8px; border-radius:3px; background:#3b82c4; cursor:nwse-resize; }
footer { padding:26px; border-top:1px solid var(--line); background:#fff; text-align:center; color:var(--muted); font-size:13px; }
