:root { --bg:#f5f6f8; --surface:#fff; --ink:#18201f; --muted:#74807e; --line:#e4e8e7; --coral:#ff7255; --blue:#536ee8; font-family:"Noto Sans SC","PingFang SC","Microsoft YaHei",system-ui,sans-serif; color-scheme:light; }
* { box-sizing:border-box; } html { background:#e9ecef; } body { margin:0; background:#e9ecef; color:var(--ink); } button,input,textarea,select { font:inherit; } button { cursor:pointer; }
.tool-shell { width:100%; max-width:480px; min-height:100vh; margin:0 auto; background:var(--bg); box-shadow:0 0 60px rgba(37,46,44,.1); }
.tool-header { height:72px; padding:0 16px; display:grid; grid-template-columns:42px 1fr 20px; align-items:center; gap:10px; border-bottom:1px solid var(--line); background:rgba(245,246,248,.94); backdrop-filter:blur(16px); }
.back { width:38px; height:38px; display:grid; place-items:center; border-radius:12px; background:var(--surface); color:var(--ink); text-decoration:none; font-size:22px; box-shadow:0 3px 12px rgba(29,38,36,.06); }
.tool-header div { display:grid; gap:2px; }.tool-header strong { font-size:15px; }.tool-header small { color:var(--muted); font-size:9px; }.safe-dot { width:9px; height:9px; border-radius:50%; background:#35a875; box-shadow:0 0 0 5px #ddf3e9; }
main { padding:20px 16px 40px; }
.intro { margin:0 0 18px; }.intro h1 { margin:0 0 6px; font-size:25px; letter-spacing:-.04em; }.intro p { margin:0; color:var(--muted); font-size:12px; line-height:1.6; }
.panel { padding:16px; border:1px solid var(--line); border-radius:18px; background:var(--surface); box-shadow:0 7px 24px rgba(38,47,45,.045); }
.field { display:grid; gap:7px; margin-bottom:14px; }.field:last-child { margin-bottom:0; }.field label,.field>span { font-size:11px; font-weight:650; }.hint { color:var(--muted); font-size:9px; }
input[type="text"],input[type="number"],input[type="datetime-local"],textarea,select { width:100%; border:1px solid var(--line); border-radius:12px; outline:0; background:#fafbfb; color:var(--ink); padding:12px 13px; font-size:13px; }
textarea { min-height:126px; resize:vertical; line-height:1.55; } input:focus,textarea:focus,select:focus { border-color:#7c8b88; box-shadow:0 0 0 3px rgba(83,110,232,.08); }
.actions { display:flex; gap:9px; margin-top:14px; }.btn { min-height:43px; flex:1; border:0; border-radius:12px; padding:0 14px; background:var(--ink); color:#fff; font-size:12px; font-weight:700; }.btn.secondary { border:1px solid var(--line); background:var(--surface); color:var(--ink); }.btn.coral { background:var(--coral); }
.result { margin-top:14px; padding:14px; border-radius:14px; background:#f1f3f3; overflow-wrap:anywhere; font-size:13px; line-height:1.6; }.result:empty { display:none; }.result strong { display:block; margin-bottom:4px; font-size:11px; }.result code { font-family:ui-monospace,SFMono-Regular,monospace; }
.split { display:grid; grid-template-columns:1fr 1fr; gap:10px; }.stats { display:grid; grid-template-columns:repeat(2,1fr); gap:9px; margin-top:14px; }.stat { padding:14px; border-radius:13px; background:#f2f4f4; }.stat strong { display:block; font-size:20px; }.stat span { color:var(--muted); font-size:9px; }
.range-row { display:grid; grid-template-columns:1fr 42px; align-items:center; gap:10px; }.range-row input { width:100%; }.range-row output { text-align:right; font-size:11px; }
.qr-output { min-height:220px; display:grid; place-items:center; margin-top:14px; padding:16px; border-radius:16px; background:#fff; border:1px dashed #d7dcda; }.qr-output canvas { max-width:100%; height:auto!important; }
.preview { width:100%; max-height:280px; object-fit:contain; margin-top:14px; border-radius:14px; background:#eef1f0; }.preview[hidden] { display:none; }
.drop { display:grid; place-items:center; min-height:118px; padding:18px; border:1.5px dashed #cfd5d3; border-radius:14px; background:#fafbfb; color:var(--muted); text-align:center; font-size:11px; }.drop input { width:100%; margin-top:10px; font-size:10px; }
.color-preview { height:92px; border-radius:15px; margin-bottom:14px; background:#536ee8; box-shadow:inset 0 0 0 1px rgba(0,0,0,.06); }.password { display:flex; align-items:center; justify-content:space-between; gap:10px; font:700 16px ui-monospace,SFMono-Regular,monospace; letter-spacing:.04em; }.password button { flex:0 0 auto; border:0; border-radius:9px; padding:8px 10px; background:#fff; }
.check-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; }.check { display:flex; align-items:center; gap:7px; padding:10px; border:1px solid var(--line); border-radius:11px; font-size:10px; }
.list-output { margin-top:14px; display:grid; gap:8px; }.pick { padding:13px; border-radius:12px; background:#eef0ff; color:#344bbb; font-weight:700; text-align:center; }.toast { position:fixed; left:50%; bottom:24px; transform:translate(-50%,20px); opacity:0; pointer-events:none; padding:10px 15px; border-radius:999px; background:#18201f; color:#fff; font-size:11px; transition:.2s; }.toast.show { opacity:1; transform:translate(-50%,0); }
@media (min-width:481px) { body { padding:20px 0; }.tool-shell { min-height:calc(100vh - 40px); border-radius:28px; overflow:hidden; } }
