:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #182230;
  background: #f5f7fb;
  --primary: #5b5ce2;
  --primary-hover: #4849c7;
  --surface: #fff;
  --muted: #748096;
  --border: #e6eaf1;
  --success: #16845b;
  --danger: #d64545;
  --warning: #b7791f;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 8px 30px rgba(28, 43, 74, .055);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 960px; min-height: 100vh; background: #f5f7fb; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: 30px; letter-spacing: -.03em; }
h2 { margin-bottom: 5px; font-size: 18px; letter-spacing: -.015em; }
h3 { margin-bottom: 8px; }
.muted { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.eyebrow { margin-bottom: 10px; color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.brand-mark { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #7778f1, #4d4ed1); box-shadow: 0 8px 20px rgba(91, 92, 226, .25); font-size: 16px; font-weight: 800; }
.brand-mark.small { width: 38px; height: 38px; border-radius: 11px; font-size: 13px; }
.primary-button, .secondary-button, .text-button, .icon-button, .inline-button { border: 0; }
.primary-button { min-height: 42px; padding: 0 18px; border-radius: 9px; color: #fff; background: var(--primary); font-weight: 700; transition: background .2s, transform .2s; }
.primary-button:hover { background: var(--primary-hover); transform: translateY(-1px); }
.primary-button.full-width { width: 100%; }
.secondary-button { min-height: 38px; padding: 0 13px; border: 1px solid var(--border); border-radius: 9px; color: #4d5b70; background: #fff; font-size: 13px; font-weight: 600; }
.secondary-button:hover { border-color: #c4c9ef; color: var(--primary); background: #fafaff; }
.text-button { padding: 8px 0; color: #68758a; background: transparent; font-size: 13px; }
.text-button:hover { color: var(--danger); }
.icon-button { display: inline-grid; width: 34px; height: 34px; place-items: center; border-radius: 8px; color: #8792a5; background: transparent; }
.icon-button:hover { color: var(--primary); background: #f0f1ff; }
.inline-button { padding: 0; color: var(--primary); background: transparent; font-weight: 700; text-decoration: underline; }

/* 登录页 */
.auth-page { display: grid; min-width: 960px; place-items: center; padding: 32px; background: radial-gradient(circle at 20% 20%, #eef0ff 0, transparent 38%), #f5f7fb; }
.auth-shell { display: grid; width: min(900px, calc(100vw - 64px)); min-height: 540px; grid-template-columns: 1fr 1fr; overflow: hidden; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); box-shadow: 0 24px 70px rgba(46, 54, 110, .12); }
.auth-intro { position: relative; overflow: hidden; padding: 64px 52px; color: #fff; background: linear-gradient(145deg, #5e60dd, #3e409f); }
.auth-intro::after { position: absolute; right: -110px; bottom: -150px; width: 350px; height: 350px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 34px rgba(255,255,255,.06), 0 0 0 70px rgba(255,255,255,.04); content: ""; }
.auth-intro .eyebrow { margin-top: 55px; color: #cfd0ff; }
.auth-intro h1 { font-size: 38px; line-height: 1.22; }
.auth-intro h1 span { color: #cfd0ff; }
.intro-copy { width: 330px; color: #e1e2ff; font-size: 15px; line-height: 1.8; }
.intro-line { display: flex; gap: 7px; margin-top: 60px; }
.intro-line span { width: 25px; height: 4px; border-radius: 99px; background: rgba(255,255,255,.35); }
.intro-line span:first-child { width: 55px; background: #fff; }
.auth-card { display: flex; flex-direction: column; justify-content: center; padding: 58px 54px; }
.auth-card-heading { margin-bottom: 28px; }
.auth-card-heading h2 { margin-bottom: 6px; font-size: 26px; }
.auth-card label { display: grid; gap: 8px; margin-bottom: 18px; color: #4c586b; font-size: 13px; font-weight: 700; }
.auth-card input { width: 100%; height: 44px; padding: 0 13px; border: 1px solid #d9deea; border-radius: 9px; outline: none; color: #182230; background: #fbfcfe; }
.auth-card input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(91, 92, 226, .12); }
.password-field { position: relative; }
.password-field input { padding-right: 44px; }
.password-field .icon-button { position: absolute; top: 5px; right: 5px; color: #9aa4b5; }
.auth-footer { margin: 25px 0 0; color: #a2aabb; font-size: 12px; text-align: center; }
.error { min-height: 20px; margin: 10px 0 0; color: var(--danger); font-size: 13px; }
.button-spinner { display: inline-block; width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; }

/* 控制台 */
.topbar { height: 72px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.92); }
.topbar-inner { display: flex; width: min(1200px, calc(100vw - 48px)); height: 100%; align-items: center; justify-content: space-between; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 11px; color: #182230; text-decoration: none; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; }
.brand small { margin-top: 2px; color: #98a2b3; font-size: 11px; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.domain-chip, .user-chip { display: inline-flex; align-items: center; gap: 8px; border-radius: 99px; font-size: 12px; }
.domain-chip { padding: 8px 11px; border: 1px solid #dfe2ff; color: #5658c9; background: #f4f4ff; }
.domain-chip:hover { border-color: #bfc1fa; background: #edeeff; }
.online-dot { width: 6px; height: 6px; border-radius: 50%; background: #21ad75; box-shadow: 0 0 0 3px rgba(33,173,117,.13); }
.copy-glyph { color: #8d90df; font-size: 14px; }
.user-chip { color: #59667a; }
.avatar { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; color: #fff; background: #7a7beb; font-size: 12px; font-weight: 700; }
.container { width: min(1200px, calc(100vw - 48px)); margin: 0 auto; padding: 38px 0 70px; }
.hero-row { display: flex; align-items: end; justify-content: space-between; margin-bottom: 27px; }
.hero-row h1 { margin-bottom: 5px; }
.hero-decoration { display: flex; align-items: end; gap: 7px; height: 52px; padding-right: 8px; }
.hero-decoration span { display: block; width: 8px; border-radius: 99px; background: #dfe1ff; }
.hero-decoration span:nth-child(1) { height: 25px; }.hero-decoration span:nth-child(2) { height: 42px; background: #bfc1fb; }.hero-decoration span:nth-child(3) { height: 33px; background: #7779e8; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.stat-card, .upload-card, .list-card { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-card); }
.stat-card { display: flex; align-items: center; gap: 15px; padding: 20px 22px; }
.stat-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; font-size: 19px; }
.stat-icon.purple { color: #6466dd; background: #f0f0ff; }.stat-icon.blue { color: #3482d7; background: #edf6ff; }.stat-icon.orange { color: #d99136; background: #fff5e8; }
.stat-card p { margin-bottom: 5px; color: #758197; font-size: 12px; }.stat-card strong { font-size: 24px; letter-spacing: -.02em; }.stat-card small { margin-left: 4px; color: #a1aaba; font-size: 11px; font-weight: 500; }
.upload-card, .list-card { padding: 24px; }
.upload-card { margin-bottom: 18px; }
.card-heading { display: flex; align-items: start; justify-content: space-between; margin-bottom: 18px; }.card-heading h2 { margin-bottom: 3px; }.format-badge { padding: 5px 8px; border-radius: 6px; color: #7072d7; background: #f2f2ff; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.drop-zone { display: grid; min-height: 164px; place-content: center; justify-items: center; border: 1px dashed #c9cdf2; border-radius: 13px; color: #657189; background: #fbfbff; transition: .2s; }.drop-zone:hover, .drop-zone.dragging { border-color: var(--primary); background: #f3f3ff; }.drop-zone h3 { margin: 12px 0 4px; color: #3b465a; font-size: 15px; }.drop-zone p { margin-bottom: 5px; font-size: 13px; }.drop-zone small { color: #a0a9ba; font-size: 11px; }.upload-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; color: var(--primary); background: #e9eaff; font-size: 23px; font-weight: 500; }
.selected-file { display: flex; align-items: center; gap: 12px; min-height: 65px; padding: 11px 14px; border: 1px solid #dfe1ff; border-radius: 10px; background: #fafaff; }.selected-file > div { flex: 1; }.selected-file strong, .selected-file small { display: block; }.selected-file strong { max-width: 85%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }.selected-file small { margin-top: 4px; color: var(--muted); font-size: 11px; }.file-icon { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 9px; color: #6264da; background: #e9eaff; font-size: 10px; font-weight: 800; }
.progress-wrap { margin-top: 13px; }.progress-meta { display: flex; justify-content: space-between; margin-bottom: 7px; color: #67738a; font-size: 12px; }.progress-meta strong { color: var(--primary); }.progress-track { height: 6px; overflow: hidden; border-radius: 99px; background: #e8eaf3; }.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--primary); transition: width .15s; }
.upload-actions { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; }.status { flex: 1; min-height: 20px; margin: 0; color: var(--success); font-size: 13px; }.status.error { color: var(--danger); }
.list-heading { align-items: center; margin-bottom: 20px; }.list-heading h2 { display: flex; align-items: center; gap: 8px; }.count-badge { display: inline-grid; min-width: 23px; height: 22px; place-items: center; padding: 0 6px; border-radius: 99px; color: #6669d9; background: #f0f0ff; font-size: 11px; }.list-tools { display: flex; align-items: center; gap: 8px; }.search-box { display: flex; width: 210px; height: 38px; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid var(--border); border-radius: 9px; color: #99a3b4; background: #fbfcfe; }.search-box:focus-within { border-color: #b5b7f1; box-shadow: 0 0 0 3px rgba(91,92,226,.08); }.search-box input { width: 100%; border: 0; outline: 0; color: #2c3648; background: transparent; font-size: 12px; }.list-tools select { height: 38px; padding: 0 9px; border: 1px solid var(--border); border-radius: 9px; outline: 0; color: #5d6a7e; background: #fff; font-size: 12px; }
.table-wrap { overflow: hidden; border: 1px solid #edf0f5; border-radius: 11px; } table { width: 100%; border-collapse: collapse; } th, td { padding: 14px 15px; border-bottom: 1px solid #edf0f5; text-align: left; white-space: nowrap; } tr:last-child td { border-bottom: 0; } th { color: #8792a5; background: #fbfcfe; font-size: 11px; font-weight: 700; } td { color: #526076; font-size: 13px; } td:first-child { width: 45%; } .file-cell { display: flex; align-items: center; gap: 11px; }.file-cell > div { min-width: 0; }.file-cell strong, .file-cell a { display: block; max-width: 360px; overflow: hidden; text-overflow: ellipsis; }.file-cell strong { color: #273348; font-size: 13px; }.file-cell a { margin-top: 4px; color: #98a2b3; font-size: 11px; text-decoration: none; }.file-cell a:hover { color: var(--primary); }.row-file-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: #6163d7; background: #f0f0ff; font-size: 9px; font-weight: 800; }.status-tag { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 99px; color: var(--success); background: #eaf8f2; font-size: 11px; font-weight: 700; }.status-tag::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }.row-actions { display: flex; justify-content: flex-end; gap: 5px; }.row-actions button { padding: 7px 9px; border: 1px solid transparent; border-radius: 7px; color: #66738a; background: transparent; font-size: 12px; }.row-actions button:hover { border-color: #e0e2ff; color: var(--primary); background: #f5f5ff; }.row-actions .delete-action:hover { border-color: #f7d8d8; color: var(--danger); background: #fff5f5; }.actions-header { text-align: right; }
.empty-state { padding: 48px 0 38px; color: var(--muted); text-align: center; }.empty-state.compact { padding: 35px; }.empty-icon { display: grid; width: 54px; height: 54px; margin: 0 auto 15px; place-items: center; border-radius: 16px; color: #797be5; background: #f0f0ff; font-size: 14px; font-weight: 800; }.empty-state h3 { margin-bottom: 6px; color: #4a566a; font-size: 15px; }.empty-state p { margin-bottom: 18px; font-size: 13px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; color: #8a95a7; font-size: 12px; }.pagination-controls, .page-numbers { display: flex; align-items: center; gap: 5px; }.page-button, .page-number { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid var(--border); border-radius: 7px; color: #647188; background: #fff; font-size: 12px; }.page-button:hover:not(:disabled), .page-number:hover { border-color: #c4c6f4; color: var(--primary); background: #f7f7ff; }.page-number.active { border-color: var(--primary); color: #fff; background: var(--primary); }.page-button:disabled { opacity: .4; }.page-ellipsis { display: grid; width: 20px; height: 31px; place-items: center; color: #aab2c0; }.page-size-label { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; }.page-size-label select { height: 31px; padding: 0 5px; border: 1px solid var(--border); border-radius: 7px; outline: 0; color: #647188; background: #fff; font-size: 12px; }
.confirm-dialog { width: 380px; padding: 28px; border: 0; border-radius: 16px; box-shadow: 0 20px 60px rgba(28, 43, 74, .2); text-align: center; }.confirm-dialog::backdrop { background: rgba(20, 27, 48, .35); backdrop-filter: blur(2px); }.dialog-icon { display: grid; width: 42px; height: 42px; margin: 0 auto 14px; place-items: center; border-radius: 13px; color: var(--warning); background: #fff3da; font-size: 20px; font-weight: 800; }.confirm-dialog h3 { margin-bottom: 8px; font-size: 17px; }.confirm-dialog p { margin-bottom: 24px; color: var(--muted); font-size: 13px; line-height: 1.7; }.dialog-actions { display: flex; justify-content: center; gap: 10px; }.toast-container { position: fixed; z-index: 10; top: 88px; right: 28px; display: grid; gap: 10px; }.toast { display: flex; min-width: 250px; align-items: center; gap: 9px; padding: 12px 15px; border: 1px solid var(--border); border-radius: 10px; color: #455267; background: #fff; box-shadow: 0 10px 30px rgba(28,43,74,.12); font-size: 13px; animation: toast-in .2s ease-out; }.toast.success::before { color: var(--success); content: "✓"; font-weight: 800; }.toast.error::before { color: var(--danger); content: "!"; font-weight: 800; }.toast.info::before { color: var(--primary); content: "i"; font-weight: 800; }
@keyframes spin { to { transform: rotate(360deg); } } @keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
