*{box-sizing:border-box;margin:0;padding:0}body{font-family:-apple-system,BlinkMacSystemFont,PingFang SC,Microsoft YaHei,sans-serif;background:#f5f6fa;color:#1f2937;font-size:14px}button{font-family:inherit;cursor:pointer}.layout{display:flex;min-height:100vh}.side{width:220px;background:#fff;border-right:1px solid #eef1f6;display:flex;flex-direction:column;padding:24px 16px;position:sticky;top:0;height:100vh}.side-logo{display:flex;align-items:center;gap:12px;padding:0 8px 24px;border-bottom:1px solid #eef1f6}.mini-logo{width:40px;height:40px;background:linear-gradient(135deg,#60a5fa,#3b82f6);color:#fff;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:20px;font-weight:700}.side-title{font-size:15px;font-weight:700}.side-sub{font-size:12px;color:#9ca3af;margin-top:2px}.side nav{flex:1;margin-top:16px}.side-item{display:block;padding:11px 14px;border-radius:10px;color:#4b5563;text-decoration:none;font-size:14px;margin-bottom:6px}.side-item:hover{background:#f0f5ff;color:#3b82f6}.side-footer{border-top:1px solid #eef1f6;padding-top:12px}.side-footer .btn{width:100%}.main{flex:1;padding:28px 32px;min-width:0}.page-loading{padding:80px;text-align:center;color:#9ca3af}.page-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:24px;gap:16px}.page-head h2{font-size:22px;font-weight:700;display:flex;align-items:center;gap:10px}.page-head .sub{color:#9ca3af;font-size:13px;margin-top:6px}.back{cursor:pointer;color:#6b7280;font-size:26px;line-height:1;margin-right:4px}.head-btns{display:flex;gap:10px}.btn{border:none;border-radius:10px;padding:9px 18px;font-size:14px;font-weight:600;transition:opacity .15s}.btn:disabled{opacity:.5}.btn.primary{background:#3b82f6;color:#fff}.btn.primary:hover{background:#2f74e8}.btn.ghost{background:#fff;color:#4b5563;border:1px solid #e5e9f2}.btn.ghost:hover{border-color:#3b82f6;color:#3b82f6}.mini{border:1px solid #e5e9f2;background:#fff;color:#4b5563;border-radius:8px;padding:4px 12px;font-size:12px;margin-right:6px}.mini:hover{border-color:#3b82f6;color:#3b82f6}.input{width:100%;border:1px solid #e5e9f2;border-radius:10px;padding:10px 14px;font-size:14px;outline:none;background:#fff}.input:focus{border-color:#3b82f6}.select{border:1px solid #e5e9f2;border-radius:10px;padding:10px 12px;font-size:14px;background:#fff}.metrics{display:grid;grid-template-columns:repeat(5,1fr);gap:16px;margin-bottom:24px}.metric{background:#fff;border-radius:14px;padding:20px;box-shadow:0 1px 8px #1f29370a}.m-v{font-size:26px;font-weight:800;color:#3b82f6}.metric.warn .m-v{color:#f59e0b}.m-l{font-size:13px;color:#9ca3af;margin-top:6px}.m-s{margin-left:6px;font-size:12px}.panel{background:#fff;border-radius:14px;padding:22px;box-shadow:0 1px 8px #1f29370a}.panel-title{font-size:15px;font-weight:700;margin-bottom:18px}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}.empty{text-align:center;color:#b6bcc8;padding:30px 0;font-size:13px}.chart{display:flex;align-items:flex-end;gap:14px;height:220px;padding-top:8px}.chart-col{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;height:100%}.chart-area{flex:1;width:100%;display:flex;align-items:flex-end;justify-content:center}.chart-bar{width:32px;background:linear-gradient(180deg,#60a5fa,#3b82f6);border-radius:8px 8px 0 0;min-height:4px}.chart-label{font-size:11px;color:#9ca3af}.chart-val{font-size:11px;color:#6b7280}.rank-row{display:flex;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #f4f6fa}.rank-row:last-child{border-bottom:none}.rank-no{width:22px;height:22px;border-radius:50%;background:#f3f4f6;color:#6b7280;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0}.rank-no.top{background:#eff6ff;color:#3b82f6}.rank-name{flex:1;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rank-orders{font-size:12px;color:#9ca3af}.rank-amount{font-weight:700;color:#ef4444}.toolbar{display:flex;gap:12px;margin-bottom:16px}.toolbar .input{max-width:280px}.table-wrap{overflow-x:auto}.table{width:100%;border-collapse:collapse}.table th{text-align:left;font-size:12px;color:#9ca3af;font-weight:600;padding:10px 12px;border-bottom:1px solid #eef1f6;white-space:nowrap}.table td{padding:14px 12px;border-bottom:1px solid #f4f6fa;font-size:13px;vertical-align:top}.table tbody tr{cursor:pointer}.table tbody tr:hover{background:#fafbfe}.t-main{font-weight:600}.t-sub{font-size:12px;color:#9ca3af;margin-top:3px}.money{color:#ef4444;font-weight:700}.mono{font-family:Consolas,Courier New,monospace;font-size:12px}.ops{white-space:nowrap}.badge{display:inline-block;padding:3px 12px;border-radius:999px;font-size:12px;font-weight:600;margin-left:8px}.badge.green{background:#ecfdf5;color:#10b981}.badge.gray{background:#f3f4f6;color:#6b7280}.badge.orange{background:#fff7ed;color:#f59e0b}.badge.blue{background:#eff6ff;color:#3b82f6}.badge.red{background:#fef2f2;color:#ef4444}.tabs{display:flex;gap:6px;margin-bottom:20px;border-bottom:1px solid #eef1f6}.tab{padding:10px 22px;font-size:14px;color:#6b7280;cursor:pointer;border-bottom:2px solid transparent;font-weight:600}.tab.on{color:#3b82f6;border-bottom-color:#3b82f6}.device-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #f4f6fa}.device-row:last-child{border-bottom:none}.d-name{font-weight:600}.d-sub{font-size:12px;color:#9ca3af;flex:1}.src-dist{display:flex;gap:16px;flex-wrap:wrap}.src-item{background:#f8fafc;border-radius:12px;padding:16px 22px;text-align:center;min-width:110px}.src-name{font-size:13px;color:#6b7280}.src-count{font-size:22px;font-weight:800;color:#3b82f6;margin-top:6px}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#eef4ff,#fff 60%)}.login-card{background:#fff;border-radius:20px;padding:44px 40px;width:380px;text-align:center;box-shadow:0 8px 40px #1f293714}.login-card .logo{width:64px;height:64px;margin:0 auto 16px;background:linear-gradient(135deg,#60a5fa,#3b82f6);color:#fff;border-radius:18px;display:flex;align-items:center;justify-content:center;font-size:32px;font-weight:700}.login-card h1{font-size:20px;font-weight:700}.login-sub{color:#9ca3af;font-size:13px;margin:6px 0 28px}.login-input{margin-bottom:12px;text-align:left}.login-err{color:#ef4444;font-size:13px;margin-bottom:10px;text-align:left}.login-btn{width:100%;padding:12px;margin-top:6px}.modal-mask{position:fixed;top:0;right:0;bottom:0;left:0;background:#11182773;display:flex;align-items:center;justify-content:center;z-index:100}.modal{background:#fff;border-radius:16px;padding:28px;width:560px;max-width:92vw;max-height:86vh;overflow-y:auto}.modal-title{font-size:16px;font-weight:700;margin-bottom:18px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-grid label{font-size:13px;color:#4b5563;display:flex;flex-direction:column;gap:6px}.form-grid .full{grid-column:1 / -1}.modal-btns{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}.pwd-hint{margin-top:12px;background:#fffbeb;border-radius:10px;padding:12px;color:#b45309}.mod-label{font-size:13px;color:#4b5563;margin:18px 0 10px;font-weight:600}.mod-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.mod-item{display:flex;align-items:center;gap:8px;background:#f8fafc;border:1px solid #eef1f6;border-radius:10px;padding:9px 12px;font-size:13px;color:#4b5563;cursor:pointer}.mod-item:hover{border-color:#3b82f6}.mod-item input{accent-color:#3b82f6;cursor:pointer}.mod-item .mod-name{flex:1}.mod-free{color:#10b981;font-size:12px;font-weight:600}.p-state{text-align:center;padding:56px 24px;border:1px dashed #e5e9f2;border-radius:14px;background:#fafbfe;color:#9ca3af}.p-state-icon{font-size:38px;margin-bottom:10px;line-height:1}.p-state-title{font-size:15px;font-weight:700;color:#4b5563}.p-state-desc{margin-top:6px;font-size:13px;color:#9ca3af;max-width:520px;margin-left:auto;margin-right:auto;line-height:1.6}.p-state-action{margin-top:16px}.p-state-error{border-color:#fecaca;background:#fef2f2}.p-state-locked{border-color:#fde68a;background:#fffbeb}.p-state-coming{border-color:#bfdbfe;background:#eff6ff}
