:root{--brand: #6a5bd2;--brand-soft: #efeaff;--bg: #f6f5fb;--panel: #ffffff;--text: #2c2740;--muted: #8d86a0;--line: #ece9f4;--danger: #d3556a;--ok: #2f9e6f;--warn: #cf9027}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Microsoft YaHei,sans-serif;font-size:14px}button{font-family:inherit;cursor:pointer}a{color:inherit;text-decoration:none}.layout{display:flex;min-height:100vh}.sidebar{width:216px;flex-shrink:0;background:linear-gradient(180deg,#2f2a4a,#241f3b);color:#cfc9e4;display:flex;flex-direction:column;padding:22px 16px;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:10px;padding:0 6px 20px;border-bottom:1px solid #ffffff14;margin-bottom:16px}.brand-mark{width:34px;height:34px;border-radius:11px;background:linear-gradient(135deg,#9588ef,#6a5bd2);color:#fff3a2;display:flex;align-items:center;justify-content:center;font-size:20px}.brand-title{font-size:15px;font-weight:700;color:#fff;line-height:1.2}.brand-sub{font-size:11px;color:#8e88a8}.nav{display:flex;flex-direction:column;gap:4px;flex:1}.nav-item{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;color:#b9b2d1;font-size:13.5px;border:0;background:transparent;text-align:left;width:100%}.nav-item:hover{background:#ffffff0f;color:#fff}.nav-item.active{background:var(--brand);color:#fff;font-weight:600}.nav-icon{width:18px;text-align:center}.sidebar-foot{border-top:1px solid #ffffff14;padding-top:14px;font-size:12px;color:#8e88a8;display:flex;flex-direction:column;gap:8px}.logout-btn{border:1px solid #ffffff26;background:transparent;color:#d8d2ea;border-radius:8px;padding:7px 10px;font-size:12.5px}.logout-btn:hover{background:#ffffff12}.main{flex:1;min-width:0;padding:26px 30px 40px}.page-head{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:18px;gap:16px;flex-wrap:wrap}.page-title{font-size:21px;font-weight:800;margin:0}.page-desc{color:var(--muted);font-size:12.5px;margin-top:6px}.card{background:var(--panel);border-radius:14px;box-shadow:0 6px 20px #43345f0d;padding:18px}.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.stat-card{background:var(--panel);border-radius:14px;padding:16px 18px;box-shadow:0 6px 20px #43345f0d}.stat-label{font-size:12.5px;color:var(--muted)}.stat-value{font-size:26px;font-weight:800;margin-top:8px;color:#3a3155}.stat-hint{font-size:11.5px;color:#b2abc2;margin-top:4px}.toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:14px}.input,.select{height:34px;border:1px solid var(--line);border-radius:9px;padding:0 11px;font-size:13px;background:#fff;color:var(--text);outline:none;min-width:150px}.input:focus,.select:focus{border-color:#b7a9f0;box-shadow:0 0 0 3px #efeaff}.btn{height:34px;border-radius:9px;border:1px solid var(--line);background:#fff;color:#514768;font-size:13px;padding:0 14px}.btn:hover{border-color:#cfc3f5;color:var(--brand)}.btn.primary{background:var(--brand);border-color:var(--brand);color:#fff;font-weight:600}.btn.primary:hover{background:#5c4dc2;color:#fff}.btn.small{height:28px;font-size:12px;padding:0 10px;border-radius:8px}.btn.danger{color:var(--danger);border-color:#f3d7dc}.btn.danger:hover{background:#fff5f6;border-color:#eab5bf}.btn.ghost{background:var(--brand-soft);border-color:transparent;color:var(--brand)}.btn:disabled{opacity:.55;cursor:not-allowed}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:13px}th{text-align:left;font-weight:600;color:var(--muted);font-size:12px;padding:10px 12px;border-bottom:1px solid var(--line);white-space:nowrap;background:#fbfaff}td{padding:11px 12px;border-bottom:1px solid #f5f2fb;vertical-align:middle}tr:last-child td{border-bottom:0}tbody tr:hover{background:#fcfbff}.thumb{width:46px;height:46px;border-radius:9px;object-fit:cover;background:#f2eefc;display:block}.cell-title{font-weight:600;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cell-sub{font-size:11.5px;color:var(--muted);margin-top:3px}.ellipsis{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tag{display:inline-block;padding:2px 8px;border-radius:20px;font-size:11.5px;line-height:1.6;white-space:nowrap}.tag.online{background:#e9f8f0;color:var(--ok)}.tag.pending{background:#fff5e2;color:var(--warn)}.tag.offline{background:#f3f2f7;color:#8d86a0}.tag.pick{background:#fff3cd;color:#8a6208}.tag.danger{background:#ffeef0;color:var(--danger)}.tag.plain{background:var(--brand-soft);color:var(--brand)}.pager{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding-top:14px;font-size:12.5px;color:var(--muted)}.empty{padding:50px 0;text-align:center;color:#a29bb3;font-size:13px}.toast{position:fixed;right:24px;bottom:24px;background:#2f2a4a;color:#fff;padding:10px 16px;border-radius:10px;font-size:13px;box-shadow:0 10px 24px #2f2a4a33;z-index:60}.toast.error{background:#b03a4d}.mask{position:fixed;top:0;right:0;bottom:0;left:0;background:#221c3a66;display:flex;align-items:center;justify-content:center;padding:20px;z-index:50}.modal{background:#fff;border-radius:16px;width:460px;max-width:100%;padding:22px;max-height:88vh;overflow-y:auto}.modal h3{margin:0 0 16px;font-size:17px}.form-row{margin-bottom:14px}.form-row label{display:block;font-size:12.5px;color:var(--muted);margin-bottom:6px}.form-row .input,.form-row .select{width:100%}.modal-foot{display:flex;justify-content:flex-end;gap:10px;margin-top:6px}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 20% 20%,#eae4ff,#f7f5fc 60%);padding:20px}.login-card{width:360px;background:#fff;border-radius:18px;padding:30px 28px;box-shadow:0 20px 50px #4b3a7a1f}.login-card h1{font-size:20px;margin:14px 0 6px}.login-card p{color:var(--muted);font-size:12.5px;margin:0 0 20px}.login-card .form-row .input{height:40px}.login-card .btn{width:100%;height:42px;font-size:14px}.login-error{color:var(--danger);font-size:12.5px;min-height:18px;margin-top:4px}.bars{display:flex;align-items:flex-end;gap:14px;height:150px;padding-top:10px}.bar-item{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;height:100%;justify-content:flex-end}.bar{width:100%;max-width:46px;border-radius:8px 8px 4px 4px;background:linear-gradient(180deg,#9c8ff0,#6a5bd2);min-height:4px;transition:height .3s}.bar-label{font-size:11px;color:var(--muted);white-space:nowrap}.bar-value{font-size:11.5px;color:#514768;font-weight:600}.cat-list{display:flex;flex-direction:column;gap:12px}.cat-row{display:flex;align-items:center;gap:12px;font-size:13px}.cat-name{width:64px;color:#514768}.cat-bar{flex:1;height:8px;border-radius:6px;background:#f1eef9;overflow:hidden}.cat-bar>span{display:block;height:100%;border-radius:6px;background:linear-gradient(90deg,#a89bf2,#6a5bd2)}.cat-count{width:40px;text-align:right;color:var(--muted);font-size:12px}.grid-2{display:grid;grid-template-columns:1.35fr 1fr;gap:16px}.trend-svg{width:100%;height:190px;display:block}.trend-value{font-size:12px;font-weight:600;fill:#514768}.trend-label{font-size:11px;fill:#8d86a0}.thumb{cursor:zoom-in}.img-preview-mask{position:fixed;top:0;right:0;bottom:0;left:0;background:#17122bcc;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px;z-index:70;animation:imgFade .16s ease-out}@keyframes imgFade{0%{opacity:0}to{opacity:1}}.img-preview-img{max-width:min(86vw,860px);max-height:82vh;border-radius:12px;box-shadow:0 24px 60px #00000059;background:#fff;object-fit:contain;cursor:zoom-out}.img-preview-title{margin-top:14px;color:#e8e4f5;font-size:13px;max-width:86vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.img-preview-close{position:absolute;top:18px;right:22px;width:36px;height:36px;border-radius:50%;border:0;background:#ffffff1f;color:#fff;font-size:20px;line-height:1}.img-preview-close:hover{background:#fff3}@media (max-width: 980px){.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-2{grid-template-columns:1fr}}@media (max-width: 720px){.sidebar{width:64px;padding:16px 8px}.brand-title,.brand-sub,.nav-item span:not(.nav-icon),.sidebar-foot{display:none}.main{padding:18px 14px 30px}}
