/* ==========================================================================
   个人云盘 · 样式
   轻量、无第三方依赖，兼容宝塔常见部署环境
   ========================================================================== */

:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #6b7280;
  --line: #e6e9f0;
  --line-soft: #eff2f7;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-soft: #eef4ff;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --ok: #059669;
  --ok-soft: #ecfdf5;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .05);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .18);
  --topbar-h: 60px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { height: 100%; }
html, body { overflow-x: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  background: #f1f5f9;
  border-radius: 5px;
  padding: 1px 5px;
  color: #334155;
}

/* ---------------------------------------------------------------- 顶栏 */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--topbar-h);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  width: 100%;
  min-width: 0;
  max-width: 1180px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; }
.brand:hover { color: var(--text); }

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #2563eb 55%, #1d4ed8);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(37, 99, 235, .28);
}
.brand-mark.large { width: 46px; height: 46px; border-radius: 14px; }
.brand-text { font-size: 16px; letter-spacing: .2px; }

.nav { display: flex; gap: 4px; }
.nav-link {
  color: #45516b;
  padding: 7px 13px;
  border-radius: 9px;
  font-weight: 500;
}
.nav-link:hover { background: #f2f5fb; color: var(--text); }
.nav-link.active { background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.user-chip { display: flex; align-items: center; gap: 8px; color: #4b5563; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #c7d2fe, #a5b4fc);
  color: #312e81; font-weight: 700; font-size: 13px;
  display: inline-flex; align-items: center; justify-content: center;
}
.user-name { font-size: 13px; }

/* ---------------------------------------------------------------- 布局 */

.page { width: 100%; min-width: 0; max-width: 1180px; margin: 0 auto; padding: 28px 24px 56px; flex: 1 0 auto; }

.footer { flex-shrink: 0; border-top: 1px solid var(--line); background: transparent; }
.footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 18px 24px;
  display: flex; gap: 8px; align-items: center;
  color: #94a3b8; font-size: 12.5px;
}
.dot { color: #cbd5e1; }

/* ---------------------------------------------------------------- 顶部介绍 */

.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.hero h1 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.4px; }
.hero-sub { margin: 0; color: var(--muted); font-size: 13.5px; }

.hero-stats { display: flex; gap: 10px; }
.stat {
  min-width: 92px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  display: flex; flex-direction: column;
}
.stat-num { font-size: 20px; font-weight: 700; color: #1e293b; line-height: 1.2; }
.stat-label { font-size: 11.5px; color: #94a3b8; }

/* ---------------------------------------------------------------- 面板 */

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 22px; border-bottom: 1px solid var(--line-soft);
}
.panel-head h2 { margin: 0; font-size: 16px; font-weight: 650; }

.muted { color: var(--muted); }

/* ---------------------------------------------------------------- 工具栏 */

.toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 18px; border-bottom: 1px solid var(--line-soft);
  flex-wrap: wrap;
}

.breadcrumb { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; min-width: 0; font-size: 13.5px; }
.crumb { color: #475569; padding: 4px 7px; border-radius: 7px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumb:hover { background: #f3f6fb; color: var(--text); }
.crumb.current { color: var(--text); font-weight: 600; background: #f8fafc; }
.crumb-sep { color: #cbd5e1; }
.crumb-up {
  border: 1px solid var(--line); background: #fff; color: #475569;
  width: 28px; height: 28px; border-radius: 8px; display: inline-flex;
  align-items: center; justify-content: center; cursor: pointer; margin-right: 2px;
}
.crumb-up:hover { background: #f6f8fc; }

.toolbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.search {
  display: flex; align-items: center; gap: 7px;
  background: #f6f8fc; border: 1px solid transparent;
  border-radius: 10px; padding: 0 10px; height: 36px; color: #94a3b8;
  transition: border-color .15s, background .15s;
}
.search:focus-within { background: #fff; border-color: #bfd3f9; box-shadow: 0 0 0 3px rgba(37, 99, 235, .1); }
.search input { border: 0; outline: 0; background: transparent; width: 150px; font-size: 13px; color: var(--text); }
.search input::placeholder { color: #a8b3c7; }

/* ---------------------------------------------------------------- 按钮 */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px;
  border-radius: 10px; border: 1px solid transparent;
  font-size: 13px; font-weight: 550; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: linear-gradient(180deg, #3b82f6, #2563eb); color: #fff; box-shadow: 0 5px 14px rgba(37, 99, 235, .24); }
.btn-primary:hover { background: linear-gradient(180deg, #2563eb, #1d4ed8); color: #fff; }
.btn-ghost { background: #fff; border-color: var(--line); color: #374151; }
.btn-ghost:hover { background: #f8fafc; color: #111827; }
.btn-danger-ghost { background: #fff; border-color: #f3d2d2; color: var(--danger); }
.btn-danger-ghost:hover { background: var(--danger-soft); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn-block { width: 100%; height: 42px; }

.icon-btn {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: 9px;
  background: transparent; color: #64748b; cursor: pointer;
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: #f2f5fb; color: var(--accent-dark); }
.icon-btn.danger:hover { background: var(--danger-soft); color: var(--danger); }

/* ---------------------------------------------------------------- 批量操作条 */

.bulkbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 18px;
  background: var(--accent-soft);
  border-bottom: 1px solid #dbe7ff;
  color: var(--accent-dark); font-size: 13px;
}
.bulk-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- 表格 */

.table-wrap { max-width: 100%; overflow-x: auto; }

.file-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.file-table thead th {
  text-align: left; font-weight: 550; color: #8b95a7; font-size: 12px;
  letter-spacing: .3px; padding: 11px 16px; background: #fbfcfe;
  border-bottom: 1px solid var(--line-soft); white-space: nowrap;
}
.file-table tbody td { padding: 10px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.file-table tbody tr:last-child td { border-bottom: 0; }
.file-table tbody tr:hover { background: #f9fbff; }
.file-table .col-check { width: 42px; padding-right: 0; }
.file-table .col-size { width: 100px; color: #64748b; white-space: nowrap; }
.file-table .col-time { width: 150px; color: #7b879b; white-space: nowrap; }
.file-table .col-ops { width: 168px; }
.file-table .col-name { min-width: 260px; }

.file-row { cursor: default; }
.file-row .col-name { cursor: pointer; }

.name-cell { display: flex; align-items: center; gap: 11px; min-width: 0; }

.file-icon {
  flex: 0 0 auto;
  width: 34px; height: 34px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 700; letter-spacing: .2px;
  background: #f1f5f9; color: #64748b; overflow: hidden;
  text-transform: uppercase;
}
.file-icon.folder { background: #fff7e6; color: #f0a020; }
.file-icon.big-icon { width: 46px; height: 46px; border-radius: 12px; }
.file-icon.thumb { background: #f3f4f6; }
.file-icon.thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-icon.thumb-failed img { display: none; }
.file-icon.thumb-failed::after { content: "IMG"; font-size: 10px; font-weight: 700; color: #9aa5b8; }

.file-icon.ext-jpg, .file-icon.ext-jpeg, .file-icon.ext-png, .file-icon.ext-gif,
.file-icon.ext-webp, .file-icon.ext-bmp, .file-icon.ext-svg { background: #ecfdf5; color: #059669; }
.file-icon.ext-mp4, .file-icon.ext-mov, .file-icon.ext-mkv, .file-icon.ext-avi,
.file-icon.ext-rmvb, .file-icon.ext-flv { background: #eff6ff; color: #2563eb; }
.file-icon.ext-mp3, .file-icon.ext-wav, .file-icon.ext-flac,
.file-icon.ext-aac, .file-icon.ext-m4a { background: #f5f3ff; color: #7c3aed; }
.file-icon.ext-pdf { background: #fef2f2; color: #dc2626; }
.file-icon.ext-doc, .file-icon.ext-docx { background: #eff6ff; color: #1d4ed8; }
.file-icon.ext-xls, .file-icon.ext-xlsx, .file-icon.ext-csv { background: #ecfdf5; color: #047857; }
.file-icon.ext-ppt, .file-icon.ext-pptx { background: #fff7ed; color: #c2410c; }
.file-icon.ext-zip, .file-icon.ext-rar, .file-icon.ext-7z,
.file-icon.ext-gz, .file-icon.ext-tar { background: #fefce8; color: #a16207; }
.file-icon.ext-txt, .file-icon.ext-md { background: #f8fafc; color: #475569; }

.file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-name:hover { color: var(--accent-dark); }

.ops { display: flex; align-items: center; gap: 2px; opacity: .9; }
.file-row:hover .ops { opacity: 1; }

.empty-row td { padding: 46px 16px !important; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #7c8798; }
.empty p { margin: 0; font-size: 14px; }
.empty-icon { width: 64px; height: 64px; border-radius: 18px; background: #f4f7fc; color: #b3bfd2; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.empty-icon.big { width: 78px; height: 78px; border-radius: 22px; margin: 0 auto 14px; }

.table-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 18px; border-top: 1px solid var(--line-soft);
  color: #94a3b8; font-size: 12.5px; background: #fcfdfe;
}
.hint { color: #a8b3c7; }

/* ---------------------------------------------------------------- 提示 */

.alert {
  display: flex; flex-direction: column; gap: 4px;
  border-radius: 12px; padding: 13px 16px; margin-bottom: 16px;
  font-size: 13.5px; border: 1px solid transparent;
}
.alert-error { background: var(--danger-soft); border-color: #fbd5d5; color: #991b1b; }
.alert-ok { background: var(--ok-soft); border-color: #c7f0e0; color: #065f46; }
.alert.compact { padding: 9px 12px; font-size: 13px; margin-bottom: 14px; }
.alert-link { font-weight: 600; text-decoration: underline; }

.badge {
  display: inline-flex; align-items: center;
  padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  background: #f1f5f9; color: #64748b;
}
.badge.ok { background: var(--ok-soft); color: #047857; }
.badge.warn { background: var(--warn-soft); color: var(--warn); }

/* ---------------------------------------------------------------- 上传队列 */

.uploader {
  position: fixed; right: 22px; bottom: 22px; z-index: 30;
  width: 372px; max-width: calc(100vw - 32px);
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.uploader-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; border-bottom: 1px solid var(--line-soft); font-weight: 600; font-size: 13px;
}
.uploader-head em { font-style: normal; color: #94a3b8; font-weight: 500; margin-left: 6px; }
.uploader-list { max-height: 280px; overflow-y: auto; }
.uploader-list.collapsed { display: none; }

.up-item { padding: 10px 14px; border-bottom: 1px solid #f4f6fa; }
.up-item:last-child { border-bottom: 0; }
.up-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.8px; }
.up-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-status { color: #94a3b8; font-size: 11.5px; white-space: nowrap; }
.up-bar { height: 5px; border-radius: 999px; background: #edf1f7; margin-top: 7px; overflow: hidden; }
.up-bar span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #60a5fa, #2563eb); transition: width .25s; }
.up-item.error .up-bar span { background: #f87171; }
.up-item.done .up-bar span { background: #34d399; }
.up-actions { margin-top: 6px; display: flex; gap: 8px; font-size: 12px; color: #64748b; }
.up-actions button { border: 0; background: none; color: var(--accent); cursor: pointer; padding: 0; font-size: 12px; }

/* ---------------------------------------------------------------- 弹窗 */

.modal {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(15, 23, 42, .45);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-card {
  width: 440px; max-width: 100%;
  background: #fff; border-radius: 16px; padding: 22px;
  box-shadow: var(--shadow-lg);
  animation: pop .16s ease-out;
}
.modal-wide { width: 560px; }
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }

.modal h3 { margin: 0 0 4px; font-size: 17px; }
.modal-sub { margin: 0 0 14px; color: #6b7280; font-size: 13px; word-break: break-all; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 4px; }
.field > span { font-size: 12.5px; font-weight: 550; color: #475569; }
.field input[type=text], .field input[type=password], .field input[type=number], .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 12px; font-size: 13.5px; font-family: inherit; color: var(--text);
  background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 74px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.5; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: #a9c4f8; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.field-hint { font-size: 11.8px; color: #94a3b8; line-height: 1.55; }
.field-hint b { color: #64748b; }
.req { font-style: normal; color: var(--danger); font-size: 11px; font-weight: 600; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.share-result {
  display: flex; gap: 8px; align-items: center; margin-top: 14px;
  background: #f8fafc; border: 1px dashed #cbd5e1; border-radius: 10px; padding: 8px;
}
.share-result input { flex: 1; border: 0; background: transparent; font-size: 12.5px; color: #334155; outline: none; min-width: 0; }

/* 文件夹选择器 */
.picker-crumbs { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; font-size: 12.5px; margin: 10px 0; min-height: 24px; }
.picker-crumbs button {
  border: 0; background: #f3f6fb; color: #475569; padding: 3px 8px; border-radius: 7px; cursor: pointer; font-size: 12.5px;
}
.picker-crumbs button:hover { background: #e8effb; color: var(--accent-dark); }
.picker-crumbs .sep { color: #cbd5e1; }
.picker-list { max-height: 300px; overflow-y: auto; border: 1px solid var(--line-soft); border-radius: 10px; }
.picker-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; cursor: pointer; font-size: 13px;
  border-bottom: 1px solid #f4f6fa;
}
.picker-item:last-child { border-bottom: 0; }
.picker-item:hover { background: #f8fafd; }
.picker-item .file-icon { width: 28px; height: 28px; }
.picker-empty { padding: 26px; text-align: center; color: #94a3b8; font-size: 13px; }

/* 预览 */
.modal-dark { background: rgba(8, 12, 22, .82); }
.preview-card { width: min(92vw, 980px); max-height: 90vh; display: flex; flex-direction: column; gap: 10px; }
.preview-body { flex: 1; display: flex; align-items: center; justify-content: center; overflow: auto; }
.preview-body img, .preview-body video { max-width: 100%; max-height: 76vh; border-radius: 10px; background: #000; }
.preview-name { color: #e2e8f0; text-align: center; font-size: 13px; word-break: break-all; }
.preview-close {
  position: absolute; top: 18px; right: 22px; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 22px; cursor: pointer;
}

/* ---------------------------------------------------------------- 登录 / 安装 */

.login-page { min-height: calc(100vh - var(--topbar-h) - 90px); display: flex; align-items: center; justify-content: center; padding: 30px 0; }
.login-card {
  width: 400px; max-width: 100%; background: #fff; border: 1px solid var(--line);
  border-radius: 20px; padding: 32px 30px 26px; box-shadow: var(--shadow);
}
.login-brand { text-align: center; margin-bottom: 22px; }
.login-brand h1 { margin: 14px 0 4px; font-size: 22px; letter-spacing: -.3px; }
.login-brand p { margin: 0; color: #8b95a7; font-size: 13px; }
.login-form { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.login-foot { margin: 18px 0 0; text-align: center; color: #a3adbd; font-size: 12px; }

.install-body { background: #f5f7fb; }
.install-wrap { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 48px 20px; }
.install-card { width: 620px; max-width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); }
.install-card h2 { font-size: 14px; color: #334155; margin: 20px 0 10px; }
.install-card h2:first-of-type { margin-top: 6px; }
.install-form .field { margin-bottom: 12px; }
.install-actions { margin-top: 20px; }
.install-actions .btn { margin-right: 8px; }

.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin: 16px 0 8px; }
.check-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #475569; }
.check-item.bad { color: var(--danger); }
.check-dot { width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; background: var(--ok-soft); color: var(--ok); }
.check-item.bad .check-dot { background: var(--danger-soft); color: var(--danger); }

/* ---------------------------------------------------------------- 后台 */

.tabs { display: flex; gap: 4px; margin-bottom: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 5px; width: fit-content; }
.tab { padding: 7px 14px; border-radius: 9px; color: #64748b; font-size: 13px; }
.tab:hover { background: #f5f8fd; color: var(--text); }
.tab.active { background: var(--accent-soft); color: var(--accent-dark); font-weight: 600; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; padding: 20px 22px; }
.form-grid .field { margin-bottom: 0; }
.span-2 { grid-column: span 2; }
.form-actions { display: flex; align-items: center; gap: 10px; padding-top: 4px; }
.form-result { font-size: 12.5px; color: var(--ok); }
.form-result.bad { color: var(--danger); }

.readonly-field .readonly-value { padding: 9px 12px; background: #f8fafc; border: 1px dashed var(--line); border-radius: 10px; font-size: 13px; color: #475569; }

.inline-form {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px;
  padding: 18px 22px; border-bottom: 1px solid var(--line-soft); background: #fcfdff;
}
.inline-form .field { min-width: 150px; }
.check { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #475569; padding-bottom: 9px; }

/* 后台搜索、短信分行与验证码输入 */
.admin-search { border-top: 0; border-bottom: 1px solid var(--line-soft); }
.admin-search .grow { flex: 1; min-width: 240px; }
.form-divider { border-top: 1px solid var(--line-soft); padding-top: 16px; margin-top: 2px; }
.form-divider h3 { margin: 0 0 4px; font-size: 15px; color: var(--text); }
.form-divider p { margin: 0; font-size: 12px; color: #94a3b8; line-height: 1.6; }
.code-row { display: flex; align-items: stretch; gap: 8px; }
.code-row input { flex: 1; min-width: 0; }
.code-row .btn { white-space: nowrap; }
.field .code-row input { width: auto; }

/* 多文件拖拽上传 */
.drop-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(15, 23, 42, .38);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.drop-card {
  background: #fff; border: 2px dashed var(--accent);
  border-radius: 18px; padding: 34px 54px;
  text-align: center; color: var(--text);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 7px;
}
.drop-card strong { font-size: 18px; }
.drop-card span { font-size: 13px; color: #64748b; }

.tips { margin: 0; padding: 16px 22px 20px 40px; color: #475569; font-size: 13px; line-height: 1.9; }
.tips li { margin-bottom: 2px; }

.share-link-cell { max-width: 300px; }
.share-url { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #64748b; font-size: 12px; vertical-align: bottom; }

.share-page { display: flex; flex-direction: column; gap: 16px; }
.share-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px; flex-wrap: wrap; }
.share-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.share-title h2 { margin: 0 0 3px; font-size: 19px; word-break: break-all; }
.share-title p { margin: 0; font-size: 12.5px; }
.share-empty { padding: 56px 24px; text-align: center; }
.share-empty h2 { margin: 0 0 6px; font-size: 18px; }
.share-empty .btn { margin-top: 16px; }

/* ---------------------------------------------------------------- 响应式 */

@media (max-width: 900px) {
  .topbar-inner { gap: 10px; padding: 0 14px; }
  .brand-text { display: none; }
  .nav { flex-shrink: 1; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav-link { padding: 7px 9px; font-size: 12.5px; white-space: nowrap; }
  .user-name { display: none; }
  .page { padding: 20px 14px 44px; }
  .hero { flex-direction: column; align-items: flex-start; }
  .hero-stats { width: 100%; }
  .stat { flex: 1; min-width: 0; }
  .toolbar { padding: 12px; }
  .toolbar-actions { width: 100%; gap: 6px; }
  .search { flex: 1 1 100%; }
  .search input { width: 100%; }
  .col-time { display: none; }
  .col-size { display: none; }
  .file-table { table-layout: fixed; }
  .file-table .col-check { width: 36px; padding: 8px 4px 8px 12px; }
  .file-table .col-name { min-width: 0; padding-left: 6px; padding-right: 6px; }
  .file-table .col-ops { width: 108px; padding: 8px 8px 8px 2px; }
  .file-table .ops { gap: 0; }
  .file-table .ops .icon-btn { width: 32px; height: 32px; }
  .file-table .col-ops { width: 120px; }
  .ops .icon-btn:nth-child(2) { display: none; }
  .hint { color: #a8b3c7; }
  .uploader { right: 12px; left: 12px; bottom: 12px; width: auto; }
  .form-grid { grid-template-columns: 1fr; padding: 16px; }
  .span-2 { grid-column: span 1; }
  .field-row { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .modal-card { padding: 18px; }
  .footer-inner { flex-wrap: wrap; padding: 14px 16px; }
}

@media (prefers-color-scheme: dark) {
  /* 保持浅色，避免半套暗色导致对比度问题 */
}

/* 账号设置 */
.narrow-panel { max-width: 620px; }
.form-stack { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px 24px; }

@media (max-width: 560px) {
  .topbar-inner { gap: 6px; padding: 0 10px; }
  .nav-link { padding: 6px 7px; font-size: 12px; }
  .topbar-right { gap: 6px; }
  .topbar-right .btn { padding: 0 8px; font-size: 12px; height: 30px; }
  .icon-btn { width: 30px; height: 30px; }
  .hero h1 { font-size: 22px; }
  .stat { padding: 8px 10px; }
  .stat-num { font-size: 18px; }
  .page { padding: 18px 10px 40px; }
  .topbar { height: 54px; }
  :root { --topbar-h: 54px; }
  .ops .icon-btn { width: 30px; height: 30px; }
}

/* 注册页 / 配额 */
.login-foot a { color: var(--accent); text-decoration: none; font-weight: 600; }
.login-foot a:hover { text-decoration: underline; }
.quota-stat { min-width: 118px; }
.quota-stat .stat-label { white-space: nowrap; }
