*{margin:0;padding:0;box-sizing:border-box}html,body,#root{height:100%}body{font-family:PingFang SC,Microsoft YaHei,-apple-system,Segoe UI,sans-serif;background:#f8fafc;color:#0f172a;font-size:14px}button{font-family:inherit;cursor:pointer}input,select,textarea{font-family:inherit;font-size:14px;outline:none}::-webkit-scrollbar{width:8px;height:8px}::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:4px}::-webkit-scrollbar-track{background:transparent}.login-page{min-height:100vh;background:#fff;position:relative;display:flex;align-items:center;justify-content:center}.login-brand{position:absolute;top:28px;left:36px;display:flex;align-items:center;gap:10px;font-size:16px;font-weight:600;color:#0f172a}.brand-dot{width:22px;height:22px;border-radius:6px;background:#4f46e5;display:inline-block;flex-shrink:0}.login-card{width:400px;max-width:92vw;background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:40px 36px 26px;box-shadow:0 6px 30px #0f172a0f}.login-title{font-size:18px;font-weight:700;text-align:center;color:#0f172a}.login-sub{text-align:center;color:#94a3b8;font-size:12.5px;margin:8px 0 26px}.login-err{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca;border-radius:8px;padding:8px 12px;font-size:13px;margin-bottom:14px}.login-demo{margin-top:18px;background:#eef2ff;color:#4338ca;border-radius:8px;padding:9px 12px;font-size:12.5px;text-align:center}.login-footer{margin-top:16px;text-align:center;color:#94a3b8;font-size:12px}.form-field{margin-bottom:15px}.form-field label{display:block;font-size:13px;color:#475569;margin-bottom:6px}.form-field input,.form-field select,.form-field textarea{width:100%;border:1px solid #e2e8f0;border-radius:8px;padding:9px 12px;color:#0f172a;background:#fff;transition:border-color .15s,box-shadow .15s}.form-field input:focus,.form-field select:focus,.form-field textarea:focus{border-color:#4f46e5;box-shadow:0 0 0 3px #4f46e51f}.form-field input:disabled,.form-field select:disabled{background:#f8fafc;color:#94a3b8}.form-row{display:flex;gap:12px}.form-row .form-field{flex:1}.form-err{color:#b91c1c;font-size:12.5px;margin:-6px 0 10px}.form-tip{font-size:12px;color:#94a3b8;line-height:1.6}.form-tip-edit{font-size:12.5px;color:#64748b;background:#f8fafc;border-radius:8px;padding:8px 12px;margin-bottom:14px}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.app{display:flex;flex-direction:column;height:100vh;background:#f8fafc}.topbar{height:60px;background:#fff;border-bottom:1px solid #e2e8f0;display:flex;align-items:center;gap:20px;padding:0 20px;flex-shrink:0}.brand{display:flex;align-items:center;gap:10px;flex-shrink:0}.brand-logo{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,#4f46e5,#7c3aed);color:#fff;display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:700}.brand-text{line-height:1.25}.brand-name{font-size:15px;font-weight:600;color:#0f172a}.brand-ver{font-size:11px;color:#94a3b8}.search-wrap{flex:1;max-width:520px;margin:0 auto;position:relative}.search-wrap input{width:100%;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:9px 14px 9px 36px;color:#0f172a;transition:border-color .15s,background .15s}.search-wrap input:focus{border-color:#4f46e5;background:#fff}.search-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#94a3b8;display:flex}.topbar-right{display:flex;align-items:center;gap:10px;margin-left:auto;flex-shrink:0}.avatar{width:34px;height:34px;border-radius:50%;background:#e0e7ff;color:#4338ca;display:flex;align-items:center;justify-content:center;font-weight:600}.username{color:#475569;font-size:13.5px}.app-body{flex:1;display:flex;min-height:0}.sidebar{width:200px;background:#f1f5f9;border-right:1px solid #e2e8f0;padding:14px 10px;flex-shrink:0;overflow-y:auto}.side-title{font-size:12px;color:#94a3b8;margin:4px 8px 8px}.side-sep{height:1px;background:#e2e8f0;margin:12px 8px}.side-item{width:100%;display:flex;align-items:center;gap:8px;padding:8px 10px;border:none;background:transparent;border-radius:8px;color:#475569;font-size:13.5px;margin-bottom:2px;text-align:left;transition:background .15s,color .15s}.side-item:hover{background:#e2e8f0}.side-item.active{background:#e0e7ff;color:#4338ca;font-weight:600}.side-item .count{margin-left:auto;font-size:12px;color:#94a3b8;font-weight:400}.side-item.active .count{color:#4338ca}.main{flex:1;min-width:0;display:flex;flex-direction:column;overflow-y:auto;padding:20px 22px 0}.footer{text-align:center;color:#94a3b8;font-size:12px;padding:26px 0 18px}.card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 1px 3px #0f172a0a;overflow:hidden}.page-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:12px;flex-wrap:wrap}.page-title{font-size:18px;font-weight:600}.page-desc{color:#94a3b8;font-size:12.5px;margin-top:4px}.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.seg{display:flex;gap:6px}.select{border:1px solid #e2e8f0;border-radius:8px;padding:8px 10px;background:#fff;color:#475569;font-size:13.5px}.select:focus{border-color:#4f46e5}.section-head{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-bottom:1px solid #e2e8f0}.section-title{font-size:15px;font-weight:600}.table{width:100%;border-collapse:collapse}.table th{text-align:left;font-size:12.5px;color:#94a3b8;font-weight:500;padding:10px 12px;border-bottom:1px solid #e2e8f0;background:#f8fafc;white-space:nowrap}.table td{padding:11px 12px;border-bottom:1px solid #f1f5f9;color:#334155;font-size:13px;vertical-align:middle}.table tbody tr:last-child td{border-bottom:none}.table tbody tr:hover td{background:#f8fafc}.cell-asset{display:flex;align-items:center;gap:10px;min-width:0}.cell-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:320px;color:#0f172a}.td-actions{text-align:right;white-space:nowrap}.td-actions .btn{margin-left:8px}.empty{text-align:center;color:#94a3b8;padding:56px 0;font-size:13.5px;grid-column:1 / -1}.btn{display:inline-flex;align-items:center;gap:6px;border:1px solid #e2e8f0;background:#fff;color:#475569;border-radius:8px;padding:8px 14px;font-size:13.5px;transition:all .15s;white-space:nowrap}.btn:hover{border-color:#4f46e5;color:#4f46e5}.btn:disabled{opacity:.55;cursor:not-allowed}.btn-primary{background:#4f46e5;border-color:#4f46e5;color:#fff}.btn-primary:hover{background:#4338ca;border-color:#4338ca;color:#fff}.btn-danger{background:#dc2626;border-color:#dc2626;color:#fff}.btn-danger:hover{background:#b91c1c;border-color:#b91c1c;color:#fff}.btn-success{background:#16a34a;border-color:#16a34a;color:#fff}.btn-success:hover{background:#15803d;border-color:#15803d;color:#fff}.btn-danger-ghost{border-color:#fecaca;color:#b91c1c;background:#fff}.btn-danger-ghost:hover{background:#fef2f2;border-color:#f87171;color:#b91c1c}.btn-sm{padding:5px 10px;font-size:12.5px;border-radius:7px}.btn-block{width:100%;justify-content:center;padding:10px}.icon-btn{border:1px solid #e2e8f0;background:#fff;border-radius:8px;width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;color:#64748b;transition:all .15s}.icon-btn:hover{border-color:#4f46e5;color:#4f46e5}.icon-btn.active{background:#e0e7ff;border-color:#c7d2fe;color:#4338ca}.badge{display:inline-flex;align-items:center;padding:2px 9px;border-radius:999px;font-size:12px;font-weight:500;white-space:nowrap}.badge-amber{background:#fef3c7;color:#b45309}.badge-green{background:#dcfce7;color:#15803d}.badge-red{background:#fee2e2;color:#b91c1c}.badge-gray{background:#f1f5f9;color:#64748b}.badge-indigo{background:#e0e7ff;color:#4338ca}.badge-blue{background:#dbeafe;color:#1d4ed8}.tag{background:#f1f5f9;color:#64748b;border-radius:6px;padding:2px 8px;font-size:12px}.asset-tags{display:flex;gap:6px;margin-top:8px;flex-wrap:wrap}.thumb{display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;gap:6px;flex-shrink:0}.thumb-lg{width:100%;height:130px}.thumb-md{width:74px;height:56px;border-radius:8px}.thumb-sm{width:34px;height:34px;border-radius:7px;gap:0}.thumb-ext{font-size:11.5px;font-weight:600;letter-spacing:1px;background:#ffffff3d;padding:1px 9px;border-radius:999px}.thumb-sm .thumb-ext{display:none}.asset-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(214px,1fr));gap:16px}.asset-card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden;transition:box-shadow .2s,transform .2s}.asset-card:hover{box-shadow:0 10px 26px #0f172a1a;transform:translateY(-2px)}.asset-thumb-wrap{position:relative}.asset-actions{position:absolute;right:8px;bottom:8px;display:flex;gap:6px;opacity:0;transition:opacity .18s}.asset-card:hover .asset-actions{opacity:1}.asset-actions button{width:28px;height:28px;border:none;border-radius:7px;background:#0f172a8c;color:#fff;display:flex;align-items:center;justify-content:center}.asset-actions button:hover{background:#4f46e5}.asset-status{position:absolute;left:8px;top:8px}.asset-info{padding:11px 12px 12px}.asset-name{font-size:13.5px;font-weight:500;color:#0f172a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.asset-meta{font-size:12px;color:#94a3b8;margin-top:4px}.modal-mask{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73;display:flex;align-items:center;justify-content:center;z-index:100}.modal{background:#fff;border-radius:12px;max-width:94vw;max-height:86vh;display:flex;flex-direction:column;box-shadow:0 20px 60px #0f172a38}.modal-head{display:flex;align-items:center;justify-content:space-between;padding:15px 20px;border-bottom:1px solid #f1f5f9;font-size:15px;font-weight:600;flex-shrink:0}.modal-body{padding:20px;overflow-y:auto}.confirm-text{font-size:13.5px;color:#334155;line-height:1.7}.confirm-text.danger{color:#b91c1c;font-weight:600}.progress{height:8px;background:#e2e8f0;border-radius:999px;overflow:hidden;margin:6px 0}.progress-bar{height:100%;background:linear-gradient(90deg,#4f46e5,#7c3aed);border-radius:999px;transition:width .12s}.progress-text{font-size:12.5px;color:#4f46e5;text-align:center}.upload-progress{margin:8px 0 2px}.channel-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px;margin-bottom:18px}.channel-card{padding:18px;display:flex;gap:14px;align-items:flex-start}.channel-icon{width:44px;height:44px;border-radius:10px;background:#eef2ff;color:#4f46e5;display:flex;align-items:center;justify-content:center;flex-shrink:0}.channel-name{font-size:14.5px;font-weight:600}.channel-desc{font-size:12px;color:#94a3b8;margin-top:3px;line-height:1.5}.channel-count{margin-top:8px;font-size:12.5px;color:#64748b}.channel-count b{font-size:18px;color:#4f46e5;font-weight:700;margin-right:4px}.radio-row{display:flex;gap:8px;flex-wrap:wrap}.radio-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid #e2e8f0;border-radius:999px;padding:7px 14px;font-size:13px;color:#475569;cursor:pointer;transition:all .15s}.radio-chip input{display:none}.radio-chip:hover{border-color:#4f46e5;color:#4f46e5}.radio-chip.active{background:#e0e7ff;border-color:#4f46e5;color:#4338ca;font-weight:600}.check-list{border:1px solid #e2e8f0;border-radius:8px;max-height:260px;overflow-y:auto;margin-top:8px}.check-item{display:flex;align-items:center;gap:10px;padding:8px 12px;border-bottom:1px solid #f1f5f9;cursor:pointer}.check-item:last-child{border-bottom:none}.check-item:hover{background:#f8fafc}.check-item input{accent-color:#4f46e5;width:15px;height:15px;flex-shrink:0}.check-name{font-size:13px;color:#0f172a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.check-meta{margin-left:auto;font-size:12px;color:#94a3b8;flex-shrink:0}.remind-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px;margin-bottom:18px}.remind-card{padding:14px 16px}.remind-card.danger{border-left:3px solid #dc2626}.remind-card.muted{background:#f8fafc}.remind-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.remind-top .cell-name{font-weight:600;font-size:13.5px}.remind-meta{font-size:12.5px;color:#64748b;margin-top:8px}.toast{position:fixed;top:72px;left:50%;transform:translate(-50%);background:#0f172a;color:#fff;padding:10px 18px;border-radius:10px;font-size:13.5px;z-index:200;box-shadow:0 8px 24px #0f172a40;animation:toast-in .2s ease;max-width:80vw}.toast.err{background:#b91c1c}@keyframes toast-in{0%{opacity:0;transform:translate(-50%,-8px)}to{opacity:1;transform:translate(-50%)}}
