/* 证件水印工具 · 应用样式 */
:root { --acc:#455A64; --acc-d:#37474F; --acc-soft:rgba(69,90,100,.10); --acc-fg:#fff; }
:root[data-theme="light"] { --acc:#455A64; --acc-d:#37474F; --acc-soft:rgba(69,90,100,.10); }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) {
  --acc:#455A64; --acc-d:#37474F; --acc-soft:rgba(69,90,100,.10);
} }
* { box-sizing:border-box; }
html, body { margin:0; padding:0; }
body { background:var(--bg); color:var(--text); font-family:var(--font); font-size:14px; line-height:1.6; -webkit-tap-highlight-color:transparent; }
button { font-family:var(--font); cursor:pointer; }
.wrap { max-width:520px; margin:0 auto; min-height:100dvh; display:flex; flex-direction:column; }
@media(min-width:960px){ body{ background:linear-gradient(180deg,#ECEFF1,var(--bg)); } .wrap{ box-shadow:0 0 0 1px var(--line),0 10px 40px rgba(0,0,0,.06); } }
.appbar { background:linear-gradient(135deg,var(--acc),var(--acc-d)); color:var(--acc-fg); padding:18px 18px 16px; }
.appbar .row { display:flex; align-items:center; gap:10px; }
.appbar .bs { font-size:12px; opacity:.88; margin-top:3px; }
.iconbtn { background:rgba(255,255,255,.16); color:#fff; border:0; border-radius:10px; padding:7px 10px; font-size:13px; font-weight:700; }
.main { padding:14px; flex:1; }
.safe { background:rgba(20,127,71,.10); color:var(--ok,#147F47); font-size:13px; font-weight:700; border-radius:12px; padding:10px 12px; margin-bottom:12px; display:flex; align-items:center; gap:8px; }
.safe .dot { width:8px; height:8px; border-radius:50%; background:var(--ok,#147F47); display:inline-block; }
.drop { display:flex; flex-direction:column; align-items:center; gap:6px; background:var(--island); border:2px dashed var(--line-2); border-radius:16px; padding:34px 16px; cursor:pointer; text-align:center; }
.drop.over, .drop:hover { border-color:var(--acc); background:var(--acc-soft); }
.drop .ic { font-size:34px; }
.drop .nm { font-weight:800; font-size:16px; }
.drop .one { font-size:12px; color:var(--t3); }
.about { background:var(--island); border-radius:14px; padding:13px 14px; font-size:12.5px; color:var(--t2); line-height:1.9; margin-top:12px; }
.about b { color:var(--text); }
.foot { text-align:center; font-size:11px; color:var(--t3); padding:12px 0 4px; }
.lbl { font-size:12.5px; color:var(--t2); font-weight:700; margin:14px 0 6px; }
.lbl:first-child { margin-top:0; }
.canvasbox { background:repeating-conic-gradient(#EEE 0 25%, #FFF 0 50%) 0 0/16px 16px; border-radius:12px; overflow:hidden; text-align:center; }
.canvasbox canvas { max-width:100%; max-height:56vh; display:block; margin:0 auto; }
.chips { display:flex; flex-wrap:wrap; gap:8px; }
.chip { font-size:13px; border-radius:16px; padding:7px 14px; background:var(--island); border:1px solid var(--line-2); color:var(--t2); }
.chip.on { background:var(--acc); border-color:var(--acc); color:var(--acc-fg); font-weight:700; }
.input, .select { border:1px solid var(--line-2); border-radius:10px; padding:10px 12px; font-size:15px; background:var(--island); color:var(--text); outline:none; font-family:var(--font); width:100%; }
.input:focus, .select:focus { border-color:var(--acc); }
.input[disabled] { background:var(--island-2); color:var(--t3); }
.row2 { display:flex; gap:8px; align-items:center; margin-top:8px; flex-wrap:wrap; }
.btn2 { display:flex; gap:10px; }
.btn2 > button { flex:1; border-radius:14px; font-weight:800; font-size:15px; padding:13px; }
.btn2 .b1 { border:0; background:linear-gradient(135deg,var(--acc),var(--acc-d)); color:var(--acc-fg); }
.btn2 .b2 { border:1.5px solid var(--acc); background:var(--island); color:var(--acc-d); }
.bigbtn { display:block; width:100%; border:0; border-radius:14px; background:linear-gradient(135deg,var(--acc),var(--acc-d)); color:var(--acc-fg); font-size:16px; font-weight:800; padding:13px; margin-top:14px; box-shadow:0 8px 20px rgba(69,90,100,.3); }
.ghostbtn { display:block; width:100%; border:1.5px solid var(--acc); background:var(--island); color:var(--acc-d); border-radius:14px; font-size:14.5px; font-weight:700; padding:11px; margin-top:10px; }
.empty { text-align:center; padding:30px 10px; color:var(--t3); font-size:13px; }
input[type="range"] { accent-color:var(--acc); height:28px; }
.toast { position:fixed; left:50%; bottom:80px; transform:translateX(-50%); background:#16171B; color:#fff; font-size:13px; border-radius:22px; padding:9px 18px; z-index:99; max-width:86vw; text-align:center; }
.toast.bad { background:var(--bad,#C93A32); }
[hidden] { display:none !important; }
@media print { body * { visibility:hidden; } .canvasbox, .canvasbox * { visibility:visible; } .canvasbox { position:absolute; left:0; top:0; } }
.bt { font-size:19px; font-weight:800; letter-spacing:.5px; }
