/* 端美云播 · 管理端样式（无构建依赖） */
:root {
  --brand: #2f6bff;
  --brand-600: #1f56e0;
  --brand-soft: #eaf0ff;
  --cyan: #0fa9bd;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafd;
  --text: #0f172a;
  --text-2: #445069;
  --muted: #8a94a6;
  --border: #e7ebf3;
  --border-strong: #d8dfea;
  --danger: #e5484d;
  --danger-soft: #fdeded;
  --ok: #17936a;
  --warn: #d98200;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 2px 6px rgba(16, 24, 40, .05), 0 18px 40px -24px rgba(16, 24, 40, .25);
  --radius: 12px;
  --sidebar-w: 232px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.5;
}
a { color: var(--brand); text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: rgba(47, 107, 255, .18); }

/* ---------- 基础控件 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: 9px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font-size: 13.5px; font-weight: 500; white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .05s;
}
.btn:hover { border-color: #c3ccdb; background: #fbfcff; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn .ico { width: 16px; height: 16px; }
.btn-primary {
  background: linear-gradient(180deg, #3b78ff, var(--brand));
  color: #fff; border-color: transparent;
  box-shadow: 0 1px 2px rgba(31, 86, 224, .35), 0 8px 18px -10px rgba(31, 86, 224, .8);
}
.btn-primary:hover { background: linear-gradient(180deg, #4a83ff, var(--brand-600)); border-color: transparent; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: #eef2f9; border-color: transparent; }
.btn-danger { color: var(--danger); border-color: #f3c9ca; background: #fff; }
.btn-danger:hover { background: var(--danger-soft); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn-icon { width: 34px; height: 34px; padding: 0; border-radius: 9px; }
.btn-icon.btn-sm { width: 28px; height: 28px; }

.input, .textarea, .select {
  width: 100%; height: 38px; padding: 0 12px;
  border: 1px solid var(--border-strong); border-radius: 9px;
  background: var(--surface); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 88px; padding: 10px 12px; resize: vertical; line-height: 1.6; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 107, 255, .12); }
.input::placeholder, .textarea::placeholder { color: #aab3c2; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a94a6' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }

.switch {
  position: relative; width: 40px; height: 22px; border-radius: 999px;
  background: #d7dee9; border: none; padding: 0; transition: background .18s; flex: none;
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: transform .18s;
}
.switch.on { background: var(--brand); }
.switch.on::after { transform: translateX(18px); }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field-label { font-size: 12.5px; font-weight: 600; color: var(--text-2); letter-spacing: .01em; }
.field-hint { font-size: 12px; color: var(--muted); line-height: 1.6; }
.field-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.field-row + .field-row { border-top: 1px dashed var(--border); }
.field-row .field-label { font-weight: 500; color: var(--text); }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 8px; border-radius: 6px;
  font-size: 11.5px; font-weight: 600; background: #eef2f8; color: var(--text-2);
}
.badge-video { background: #eaf0ff; color: #2554d8; }
.badge-audio { background: #eafaf6; color: #0d8a63; }
.badge-image { background: #fdf0e7; color: #b25b13; }
.badge-ok { background: #e9f8f1; color: var(--ok); }
.badge-warn { background: #fdf4e5; color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }

/* ---------- 布局 ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); flex: none; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 4px;
  background: var(--surface); border-right: 1px solid var(--border);
  padding: 18px 14px; z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 6px 18px; }
.brand-logo { width: 34px; height: 34px; border-radius: 10px; flex: none; box-shadow: 0 6px 14px -8px rgba(47, 107, 255, .9); }
.brand-name { font-size: 16px; font-weight: 700; letter-spacing: .02em; }
.brand-sub { font-size: 10.5px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-group-title { font-size: 11px; color: #9aa4b6; font-weight: 600; letter-spacing: .08em; padding: 14px 10px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px;
  border-radius: 9px; color: var(--text-2); font-weight: 500; font-size: 13.5px;
  border: none; background: transparent; width: 100%; text-align: left;
  transition: background .15s, color .15s;
}
.nav-item:hover { background: #f2f5fa; color: var(--text); }
.nav-item.active { background: var(--brand-soft); color: var(--brand-600); font-weight: 600; }
.nav-item .ico { width: 18px; height: 18px; opacity: .85; }
.nav-item.active .ico { opacity: 1; }
.nav-badge { margin-left: auto; font-size: 11px; background: #eef2f8; color: var(--muted); border-radius: 999px; padding: 1px 7px; }
.nav-item.active .nav-badge { background: #fff; color: var(--brand); }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.storage-card {
  border: 1px solid var(--border); background: var(--surface-2); border-radius: 10px; padding: 10px 12px;
  font-size: 12px; color: var(--text-2);
}
.storage-card .storage-top { display: flex; justify-content: space-between; margin-bottom: 7px; }
.storage-card .storage-label { color: var(--muted); }
.meter { height: 6px; border-radius: 999px; background: #e6ebf3; overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #4b83ff, #14b8d4); }
.storage-foot { margin-top: 6px; color: var(--muted); font-size: 11px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 15; height: 62px; flex: none;
  display: flex; align-items: center; gap: 14px; padding: 0 24px;
  background: rgba(255, 255, 255, .86); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-left { display: flex; align-items: center; gap: 10px; flex: none; }
.search { position: relative; flex: 1; max-width: 420px; display: flex; align-items: center; height: 36px; background: var(--surface-2); border: 1px solid transparent; border-radius: 9px; transition: background .15s, border-color .15s, box-shadow .15s; }
.search:focus-within { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 107, 255, .1); }
.search .ico { position: absolute; left: 10px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.search input { height: 34px; width: 100%; padding: 0 10px 0 32px; background: transparent; border: none; outline: none; font-size: 13px; }
.search input::placeholder { color: #aab3c2; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border-radius: 999px; border: 1px solid transparent; background: transparent; }
.user-chip:hover { background: #f1f4f9; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #4b83ff, #14b8d4); color: #fff; font-size: 12.5px; font-weight: 700;
  object-fit: cover; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-name { font-size: 13px; font-weight: 500; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.content { padding: 22px 24px 80px; flex: 1; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.page-title { font-size: 21px; font-weight: 700; letter-spacing: .01em; margin: 0; }
.page-sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
.page-head-actions { display: flex; gap: 8px; align-items: center; }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs { display: inline-flex; gap: 2px; padding: 3px; background: #eef2f8; border-radius: 10px; }
.tab {
  border: none; background: transparent; height: 32px; padding: 0 14px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px;
}
.tab:hover { color: var(--text); }
.tab.active { background: #fff; color: var(--brand-600); font-weight: 600; box-shadow: var(--shadow-sm); }
.tab .count { font-size: 11px; color: var(--muted); }
.seg { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 9px; overflow: hidden; }
.seg button { border: none; background: #fff; padding: 0 10px; height: 32px; color: var(--text-2); }
.seg button.active { background: var(--brand-soft); color: var(--brand-600); }
.spacer { flex: 1; }

/* ---------- 内容卡片 ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow .18s, transform .18s, border-color .18s;
  position: relative; cursor: pointer;
}
.card:hover { box-shadow: var(--shadow); border-color: #dbe3ef; transform: translateY(-1px); }
.card.selected { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(47, 107, 255, .14); }
.card-thumb {
  position: relative; aspect-ratio: 16 / 9; background: #eff2f7;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-thumb .type-glyph { width: 46px; height: 46px; opacity: .55; }
.card-thumb.t-image img { object-fit: contain; background: #f2f4f8; }
.duration {
  position: absolute; right: 8px; bottom: 8px; padding: 1px 6px; border-radius: 5px;
  background: rgba(15, 23, 42, .72); color: #fff; font-size: 11.5px; font-variant-numeric: tabular-nums;
}
.overlay {
  position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 23, 42, .28), rgba(15, 23, 42, .04) 45%);
  opacity: 0; transition: opacity .18s; display: flex; align-items: flex-start; justify-content: flex-end; padding: 8px; gap: 6px;
}
.card:hover .overlay { opacity: 1; }
.overlay .btn-icon { background: rgba(255, 255, 255, .92); border-color: transparent; color: #33415c; }
.overlay .btn-icon:hover { background: #fff; }
.play-dot {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none;
}
.play-dot span {
  width: 44px; height: 44px; border-radius: 50%; background: rgba(15, 23, 42, .5);
  display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px);
  opacity: 0; transform: scale(.92); transition: opacity .18s, transform .18s;
}
.card:hover .play-dot span { opacity: 1; transform: scale(1); }
.play-dot .ico { width: 20px; height: 20px; color: #fff; margin-left: 2px; }
.card-check {
  position: absolute; left: 8px; top: 8px; width: 22px; height: 22px; border-radius: 6px;
  background: rgba(255, 255, 255, .9); border: 1.5px solid #cdd6e4; display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.card-check.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.card-check .ico { width: 14px; height: 14px; }
.card-body { padding: 10px 12px 12px; }
.card-title { font-size: 13.5px; font-weight: 600; margin: 0 0 6px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.card-meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; }
.card-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: #cbd3e0; }

/* 列表视图 */
.rows { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) 96px 104px 120px 88px; align-items: center; gap: 12px;
  padding: 10px 14px; border-bottom: 1px solid var(--border); cursor: pointer;
}
.row:last-child { border-bottom: none; }
.row:hover { background: #fafcff; }
.row.selected { background: var(--brand-soft); }
.row-thumb { width: 44px; height: 44px; border-radius: 8px; overflow: hidden; background: #eef2f8; display: flex; align-items: center; justify-content: center; }
.row-thumb img { width: 100%; height: 100%; object-fit: cover; }
.row-thumb .ico { width: 20px; height: 20px; color: #97a3b6; }
.row-main { min-width: 0; }
.row-title { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-sub { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.row-meta { color: var(--text-2); font-size: 12px; }
.row-actions { display: flex; gap: 2px; justify-content: flex-end; }
.row-head { background: var(--surface-2); color: var(--muted); font-size: 12px; cursor: default; }
.row-head:hover { background: var(--surface-2); }

/* 空状态 / 加载 */
.empty { text-align: center; padding: 64px 20px; color: var(--muted); }
.empty-art { width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 24px; background: linear-gradient(135deg, #eef3ff, #eafafb); display: flex; align-items: center; justify-content: center; }
.empty-art .ico { width: 38px; height: 38px; color: #9db3d9; }
.empty h3 { margin: 0 0 6px; font-size: 15px; color: var(--text); }
.empty p { margin: 0 0 16px; font-size: 13px; }
.skeleton { border-radius: var(--radius); background: linear-gradient(90deg, #eef1f6 25%, #f6f8fc 37%, #eef1f6 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.skeleton-card { height: 214px; }

/* 文件夹 */
.folders { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.folder-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px;
  border-radius: 8px; border: 1px solid var(--border-strong); background: #fff; color: var(--text-2); font-size: 12.5px;
}
.folder-chip.active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-600); font-weight: 600; }
.folder-chip .count { color: var(--muted); font-size: 11px; }
.folder-chip .ico { width: 14px; height: 14px; }
.folder-chip .chip-x { border: none; background: transparent; padding: 0; color: var(--muted); display: flex; }
.folder-chip .chip-x:hover { color: var(--danger); }

/* 抽屉 */
.drawer-mask {
  position: fixed; inset: 0; background: rgba(15, 23, 42, .35); backdrop-filter: blur(2px); z-index: 60;
  animation: fade .18s ease;
}
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(620px, 100vw); background: var(--surface); z-index: 61;
  display: flex; flex-direction: column; box-shadow: -20px 0 60px -30px rgba(15, 23, 42, .5);
  animation: slideIn .22s cubic-bezier(.22, .61, .36, 1);
}
@keyframes slideIn { from { transform: translateX(24px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.drawer-title { font-weight: 700; font-size: 15px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px; }
.drawer-foot { border-top: 1px solid var(--border); padding: 12px 18px; display: flex; gap: 8px; justify-content: flex-end; background: var(--surface-2); }
.drawer-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--border); padding: 0 18px; }
.drawer-tab { border: none; background: none; padding: 11px 2px; color: var(--muted); font-size: 13.5px; font-weight: 500; border-bottom: 2px solid transparent; }
.drawer-tab.active { color: var(--brand-600); border-bottom-color: var(--brand); font-weight: 600; }

/* 预览播放器（抽屉内） */
.preview-wrap { border-radius: 12px; overflow: hidden; background: #0b1220; position: relative; margin-bottom: 16px; }
.preview-wrap video, .preview-wrap img { width: 100%; display: block; max-height: 320px; object-fit: contain; background: #0b1220; }
.preview-audio { background: linear-gradient(135deg, #10192b, #1c3157); padding: 22px; display: flex; align-items: center; gap: 16px; color: #fff; }
.preview-audio .cover { width: 74px; height: 74px; border-radius: 12px; background: rgba(255, 255, 255, .1); display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; }
.preview-audio .cover img { width: 100%; height: 100%; object-fit: cover; }
.preview-audio .cover .ico { width: 30px; height: 30px; color: rgba(255, 255, 255, .7); }
.preview-audio .info { flex: 1; min-width: 0; }
.preview-audio .info h4 { margin: 0 0 4px; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-audio .info p { margin: 0 0 10px; font-size: 12px; color: rgba(255, 255, 255, .6); }
.preview-audio audio { width: 100%; height: 34px; filter: invert(1) hue-rotate(180deg) brightness(.9); }

/* 代码框 */
.code-box { position: relative; background: #0f172a; color: #dbe6ff; border-radius: 10px; padding: 12px 14px 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.7; word-break: break-all; white-space: pre-wrap; }
.code-box .code-actions { display: flex; gap: 8px; margin-top: 8px; }
.code-box .btn-sm { background: rgba(255, 255, 255, .1); border-color: transparent; color: #dbe6ff; }
.code-box .btn-sm:hover { background: rgba(255, 255, 255, .18); }
.copy-row { display: flex; gap: 8px; }
.copy-row .input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }

.kv { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px 12px; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--text); word-break: break-all; }

.tip { display: flex; gap: 8px; padding: 10px 12px; border-radius: 10px; background: #f3f6fb; color: var(--text-2); font-size: 12.5px; line-height: 1.65; }
.tip.warn { background: #fdf6e8; color: #8a5a08; }
.tip.ok { background: #eaf8f1; color: #0d7a52; }
.tip .ico { width: 16px; height: 16px; flex: none; margin-top: 2px; }

/* 弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(15, 23, 42, .42); z-index: 80; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .15s; }
.modal { width: min(440px, 100%); background: #fff; border-radius: 16px; box-shadow: 0 24px 80px -24px rgba(15, 23, 42, .5); overflow: hidden; animation: pop .18s cubic-bezier(.22, .61, .36, 1); }
.modal.wide { width: min(620px, 100%); }
@keyframes pop { from { transform: scale(.97) translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { padding: 18px 20px 6px; font-size: 16px; font-weight: 700; }
.modal-body { padding: 10px 20px 18px; color: var(--text-2); font-size: 13.5px; line-height: 1.7; }
.modal-foot { padding: 14px 20px; background: var(--surface-2); display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--border); }

/* 提示 */
.toasts { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 8px; background: #101828; color: #fff; padding: 9px 14px; border-radius: 10px;
  font-size: 13px; box-shadow: 0 12px 30px -12px rgba(15, 23, 42, .6); animation: toastIn .2s ease; max-width: 90vw;
}
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.toast .ico { width: 16px; height: 16px; flex: none; }
.toast.error { background: #b3282d; }
.toast.success .ico { color: #5be2a8; }

/* 下拉 */
.dropdown-anchor { position: relative; }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 180px; background: #fff; border: 1px solid var(--border);
  border-radius: 10px; box-shadow: var(--shadow); padding: 6px; z-index: 70; animation: pop .14s ease;
}
.dropdown-item { display: flex; align-items: center; gap: 8px; width: 100%; border: none; background: transparent; padding: 8px 10px; border-radius: 7px; font-size: 13px; color: var(--text); text-align: left; }
.dropdown-item:hover { background: #f3f6fb; }
.dropdown-item.danger { color: var(--danger); }
.dropdown-item .ico { width: 15px; height: 15px; opacity: .8; }
.dropdown-sep { height: 1px; background: var(--border); margin: 5px 4px; }

/* 上传面板 */
.uploader {
  position: fixed; right: 22px; bottom: 22px; width: 372px; max-width: calc(100vw - 24px); z-index: 75;
  background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 20px 60px -24px rgba(15, 23, 42, .45);
  overflow: hidden;
}
.uploader-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.uploader-head .title { font-weight: 700; font-size: 13.5px; flex: 1; }
.uploader-list { max-height: 320px; overflow-y: auto; }
.upload-item { padding: 10px 14px; border-bottom: 1px solid #f1f4f9; }
.upload-item:last-child { border-bottom: none; }
.upload-item .top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.upload-item .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.upload-item .pct { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 11.5px; }
.upload-item .sub { color: var(--muted); font-size: 11px; margin-top: 4px; display: flex; gap: 8px; }
.progress { height: 5px; border-radius: 999px; background: #eef1f6; margin-top: 8px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, #4b83ff, #14b8d4); transition: width .2s; border-radius: 999px; }
.progress.done > i { background: linear-gradient(90deg, #2fbf8b, #16a37a); }
.progress.error > i { background: var(--danger); }
.uploader-foot { padding: 8px 14px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); }

/* 拖拽遮罩 */
.dropzone-hint {
  position: fixed; inset: 0; z-index: 90; background: rgba(47, 107, 255, .08); border: 2px dashed var(--brand);
  display: flex; align-items: center; justify-content: center; pointer-events: none;
}
.dropzone-hint .inner { background: #fff; padding: 22px 30px; border-radius: 16px; box-shadow: var(--shadow); text-align: center; }
.dropzone-hint .ico { width: 34px; height: 34px; color: var(--brand); }
.dropzone-hint p { margin: 8px 0 0; font-weight: 600; }

/* 统计 */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.stat-card .label { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.stat-card .label .ico { width: 15px; height: 15px; }
.stat-card .value { font-size: 24px; font-weight: 700; margin-top: 8px; letter-spacing: -.01em; }
.stat-card .value small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.stat-card .hint { color: var(--muted); font-size: 11.5px; margin-top: 6px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; margin-bottom: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.panel-title { font-weight: 700; font-size: 14.5px; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding-top: 8px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.bar-col .bar { width: 100%; max-width: 34px; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #6f9bff, #2f6bff); min-height: 4px; transition: height .3s; }
.bar-col .bar-label { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.bar-col .bar-value { font-size: 11px; color: var(--text-2); font-weight: 600; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 500; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.table td { padding: 10px; border-bottom: 1px solid #f1f4f9; font-size: 13px; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: #fafcff; }

/* 登录页 */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; position: relative; overflow: hidden; background: radial-gradient(1200px 700px at 15% 10%, #e8f0ff 0%, transparent 55%), radial-gradient(1000px 700px at 90% 90%, #e4fbfd 0%, transparent 50%), #f5f7fb; }
.login-card { width: min(880px, 100%); display: grid; grid-template-columns: 1.05fr .95fr; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 40px 100px -50px rgba(23, 43, 99, .5); border: 1px solid #e9eef7; position: relative; z-index: 2; }
.login-hero { padding: 44px 40px; background: linear-gradient(150deg, #1b2b52, #173c78 55%, #0f6e86); color: #fff; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.login-hero::after { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(90, 200, 255, .35), transparent 65%); right: -120px; bottom: -120px; }
.login-hero .logo { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 22px; }
.login-hero h1 { font-size: 27px; margin: 0 0 10px; letter-spacing: .02em; }
.login-hero p { color: rgba(255, 255, 255, .72); font-size: 13.5px; line-height: 1.8; margin: 0; }
.login-hero .feature-list { margin-top: auto; display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: rgba(255, 255, 255, .85); }
.login-hero .feature-list div { display: flex; align-items: center; gap: 8px; }
.login-hero .feature-list .ico { width: 16px; height: 16px; color: #7fe3f1; }
.login-form { padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.login-form h2 { margin: 0 0 6px; font-size: 20px; }
.login-form .sub { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.wx-btn { height: 44px; border-radius: 10px; border: none; background: linear-gradient(180deg, #2aa86b, #1f9257); color: #fff; font-size: 14.5px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; box-shadow: 0 10px 24px -14px rgba(31, 146, 87, .9); }
.wx-btn:hover { filter: brightness(1.04); }
.wx-btn .ico { width: 19px; height: 19px; }
.wx-btn.disabled { background: #e9eef5; color: #8a94a6; box-shadow: none; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.local-login { margin-top: 4px; }
.login-foot { text-align: center; color: var(--muted); font-size: 11.5px; margin-top: 18px; }

/* 响应式 */
@media (max-width: 1080px) {
  .sidebar { display: none; }
  .content { padding: 16px 16px 90px; }
  .topbar { padding: 0 16px; }
  .row { grid-template-columns: 40px minmax(0, 1fr) 80px 76px; }
  .row-meta.hide-md, .row-actions.hide-md, .row-head .hide-md { display: none; }
  .login-card { grid-template-columns: 1fr; }
  .login-hero { display: none; }
  .login-form { padding: 34px 26px; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .card-title { font-size: 12.5px; min-height: 34px; }
  .page-title { font-size: 18px; }
  .drawer { width: 100%; }
  .user-name { display: none; }
  .toolbar .search { flex: 1 1 100%; max-width: none; }
  .meta-time { display: none; }
  .card-meta { gap: 4px; font-size: 11px; }
  .uploader { right: 10px; bottom: 10px; width: calc(100vw - 20px); }
}

/* 启动加载 */
.boot { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.boot-logo { width: 64px; height: 64px; border-radius: 18px; background: linear-gradient(135deg, #3b7bff, #12c2d8); display: flex; align-items: center; justify-content: center; color: #fff; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.06); opacity: 1; } }
.mobile-menu { display: none; }
@media (max-width: 1080px) {
  .mobile-menu { display: inline-flex; }
  .sidebar.mobile-open { display: flex; position: fixed; left: 0; top: 0; bottom: 0; z-index: 50; box-shadow: 0 0 60px rgba(15,23,42,.3); }
}
.ico { display: inline-flex; width: 1em; height: 1em; flex: none; }
.ico > .ico { width: 100%; height: 100%; display: block; }
