/* 云盘系统 · 界面样式 */
:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --border: #e6eaf2;
  --border-strong: #d5dbe8;
  --text: #172033;
  --muted: #6c7789;
  --accent: #2f6bff;
  --accent-dark: #1f52d8;
  --accent-soft: #edf2ff;
  --danger: #e5484d;
  --danger-soft: #fdeeee;
  --success: #1a9e63;
  --success-soft: #e8f8f0;
  --warn: #b7791f;
  --warn-soft: #fff6e5;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23, 32, 51, .04), 0 8px 24px rgba(23, 32, 51, .06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

.ic { width: 20px; height: 20px; flex: none; }

/* ---------- 侧边栏 ---------- */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 248px;
  background: var(--card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 22px 16px 16px;
  z-index: 30;
  transition: transform .22s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 8px 22px;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, #4c86ff, #2f6bff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(47, 107, 255, .28);
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav { display: flex; flex-direction: column; gap: 4px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #45526b;
  font-weight: 500;
  transition: background .15s ease, color .15s ease;
}

.nav-item:hover { background: #f2f5fb; color: var(--text); }

.nav-item.active {
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 600;
}

.nav-item.active .ic { color: var(--accent); }

.storage {
  margin-top: auto;
  padding: 14px 12px 6px;
  border-top: 1px solid var(--border);
}

.storage-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.storage-bar {
  height: 6px;
  border-radius: 6px;
  background: #eef1f7;
  overflow: hidden;
}

.storage-bar i {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: linear-gradient(90deg, #5b90ff, #2f6bff);
}

.storage-text { margin-top: 7px; font-size: 12px; color: var(--muted); }

.sidebar-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 4px 0;
  margin-top: 10px;
  border-top: 1px solid var(--border);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 0;
  color: var(--text);
  padding: 6px;
  border-radius: 10px;
}

.user-chip:hover { background: #f2f5fb; }

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.user-meta { display: flex; flex-direction: column; min-width: 0; }
.user-meta b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta small { color: var(--muted); font-size: 11.5px; }

.logout {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  flex: none;
}

.logout:hover { background: var(--danger-soft); color: var(--danger); }

/* ---------- 主区域 ---------- */
.main {
  margin-left: 248px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 30px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.page-title { font-size: 17px; margin: 0; font-weight: 650; white-space: nowrap; }

.topbar .menu-btn { display: none; }

.search {
  margin-left: auto;
  position: relative;
  width: min(360px, 46vw);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #98a2b7;
  display: flex;
}

.search input {
  width: 100%;
  height: 38px;
  padding: 0 34px 0 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #f7f9fd;
  font-size: 13.5px;
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}

.search input:focus {
  border-color: #b6cbff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 107, 255, .12);
}

.search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  display: flex;
  padding: 4px;
  border-radius: 50%;
}

.content { padding: 24px 30px 48px; }

/* ---------- 提示 ---------- */
.alert {
  padding: 11px 16px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 13.5px;
}
.alert-success { background: var(--success-soft); color: #116b43; }
.alert-error { background: var(--danger-soft); color: #a52126; }
.alert-info { background: var(--accent-soft); color: var(--accent-dark); }

/* ---------- 面包屑 / 工具栏 ---------- */
.crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 14px;
  font-size: 13.5px;
  color: var(--muted);
}

.crumbs a { color: var(--muted); padding: 3px 6px; border-radius: 6px; }
.crumbs a:hover { background: #eef2fa; color: var(--text); }
.crumbs .sep { color: #c2cad9; }
.crumbs .current { color: var(--text); font-weight: 600; padding: 3px 6px; }

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.toolbar .spacer { flex: 1; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 15px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: #3c4a63;
  font-size: 13.5px;
  font-weight: 550;
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
  font-family: inherit;
}

.btn:hover { border-color: #ccd7ea; background: #fafbff; color: var(--text); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 6px 14px rgba(47, 107, 255, .22);
}

.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

.btn-danger { color: var(--danger); border-color: #f5cdcf; background: #fff; }
.btn-danger:hover { background: var(--danger-soft); color: var(--danger); border-color: #f0b6b9; }

.btn-sm { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.btn-sm .ic { width: 16px; height: 16px; }

.btn .ic { width: 18px; height: 18px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
}

.icon-btn:hover { background: #f1f4fa; color: var(--text); }

/* ---------- 文件列表 ---------- */
.panel {
  max-width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.file-head {
  display: grid;
  grid-template-columns: 1fr 110px 150px 220px;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .3px;
  background: #fbfcfe;
}

.file-row {
  display: grid;
  grid-template-columns: 1fr 110px 150px 220px;
  gap: 12px;
  align-items: center;
  padding: 11px 20px;
  border-bottom: 1px solid #f0f2f7;
  transition: background .12s ease;
}

.file-row:last-child { border-bottom: 0; }
.file-row:hover { background: #fafbfe; }

.file-main { display: flex; align-items: center; gap: 12px; min-width: 0; }

.file-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  background: #f1f4fa;
  color: #7b8798;
}

.file-icon.folder { background: #eaf1ff; color: #2f6bff; }
.file-icon.image { background: #e9f8f1; color: #11a06a; }
.file-icon.video { background: #f3edff; color: #7c4dff; }
.file-icon.audio { background: #fff1e8; color: #e97316; }
.file-icon.pdf { background: #ffecec; color: #e5484d; }
.file-icon.archive { background: #fff7e1; color: #b7791f; }
.file-icon.doc { background: #e9f2ff; color: #2f6bff; }
.file-icon.code { background: #eef0f4; color: #45526b; }
.file-icon.text { background: #eef0f4; color: #6c7789; }

.file-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.file-name .name {
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-name .name a { color: var(--text); }
.file-name .name a:hover { color: var(--accent); }
.file-name .sub { font-size: 11.5px; color: var(--muted); }

.file-size, .file-time { font-size: 12.5px; color: var(--muted); white-space: nowrap; }

.row-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
  opacity: .55;
  transition: opacity .15s ease;
}
.file-row:hover .row-actions, .file-row:focus-within .row-actions { opacity: 1; }

.tip {
  text-align: center;
  color: var(--muted);
  padding: 56px 20px;
}
.tip strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 6px; }
.tip p { margin: 0; font-size: 13px; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #3c4a63; }

.input, select.input, textarea.input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

textarea.input { height: auto; padding: 10px 12px; }

.input:focus { border-color: #a9c2ff; box-shadow: 0 0 0 3px rgba(47, 107, 255, .12); }

.input-sm { height: 32px; font-size: 13px; padding: 0 9px; }

.help { font-size: 12px; color: var(--muted); margin-top: 5px; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(20, 28, 45, .42);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 60;
}

.modal-mask.open { display: flex; }

.modal {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(16, 24, 40, .24);
  padding: 22px;
  animation: pop .16s ease;
}

@keyframes pop {
  from { transform: translateY(8px) scale(.98); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-head h3 { margin: 0; font-size: 16px; font-weight: 650; }
.modal-head p { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); word-break: break-all; }

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

/* ---------- 表格（后台） ---------- */
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

table.data th {
  text-align: left;
  font-weight: 600;
  color: var(--muted);
  font-size: 12.5px;
  padding: 12px 16px;
  background: #fbfcfe;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

table.data td {
  padding: 11px 16px;
  border-bottom: 1px solid #f0f2f7;
  vertical-align: middle;
}

table.data tr:last-child td { border-bottom: 0; }

table.data .num { text-align: right; font-variant-numeric: tabular-nums; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  background: #f1f4fa;
  color: #5a6679;
}

.badge-ok { background: var(--success-soft); color: #116b43; }
.badge-off { background: #f4f5f7; color: #8a93a3; }
.badge-admin { background: var(--accent-soft); color: var(--accent-dark); }

/* ---------- 卡片 / 统计 ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.stat .label { font-size: 12.5px; color: var(--muted); }
.stat .value { font-size: 24px; font-weight: 700; margin-top: 4px; letter-spacing: -.5px; }
.stat .value small { font-size: 13px; font-weight: 500; color: var(--muted); margin-left: 4px; }

.card {
  max-width: 100%;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}

.card h2 { font-size: 15.5px; margin: 0 0 4px; }
.card .card-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }

.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.tab {
  padding: 9px 14px;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.tab.active { color: var(--accent-dark); border-bottom-color: var(--accent); }

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0 18px;
}

/* ---------- 分享页 ---------- */
.share-page {
  margin: auto;
  width: min(460px, calc(100% - 32px));
  padding: 24px 0;
}

.share-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
}

.share-page .share-box {
  max-width: none;
  margin: 0;
  width: 100%;
}

.share-box {
  max-width: 460px;
  margin: 8vh auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 20px 48px rgba(16, 24, 40, .1);
  padding: 30px;
  text-align: center;
}

.share-box .file-icon { width: 62px; height: 62px; border-radius: 16px; margin: 0 auto 16px; }
.share-box .file-icon .ic { width: 30px; height: 30px; }
.share-box h2 { font-size: 18px; margin: 0 0 6px; word-break: break-all; }
.share-box .meta { color: var(--muted); font-size: 13px; margin-bottom: 22px; }

/* ---------- 登录 ---------- */
.auth-body {
  background: radial-gradient(900px 500px at 15% 0%, #e8efff 0%, transparent 60%), radial-gradient(800px 600px at 100% 100%, #eaf6ff 0%, transparent 55%), #f6f8fc;
  min-height: 100vh;
  display: flex;
}

.auth-wrap {
  margin: auto;
  width: min(400px, calc(100% - 32px));
  padding: 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 22px 60px rgba(23, 32, 51, .1);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 26px;
}

.auth-brand .brand-logo { width: 40px; height: 40px; border-radius: 12px; }

.auth-title { font-size: 19px; font-weight: 700; margin: 0 0 4px; }
.auth-sub { font-size: 13px; color: var(--muted); margin: 0 0 22px; }

.auth-wrap .btn-primary { width: 100%; justify-content: center; height: 42px; margin-top: 6px; }

.auth-alt { text-align: center; font-size: 13px; color: var(--muted); margin-top: 18px; }

.auth-foot { text-align: center; font-size: 11.5px; color: #98a2b7; margin-top: 20px; }

/* ---------- 安装向导 ---------- */
.install-body { background: var(--bg); }
.install-wrap { max-width: 780px; margin: 0 auto; padding: 40px 20px 80px; }
.install-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.install-head h1 { font-size: 20px; margin: 0; }
.install-steps { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.install-steps span { padding: 4px 10px; border-radius: 20px; background: #fff; border: 1px solid var(--border); }
.install-steps span.on { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.check-list { display: flex; flex-direction: column; gap: 2px; }
.check-item { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #f2f4f8; font-size: 13px; }
.check-item:last-child { border-bottom: 0; }
.check-item .ok { color: var(--success); font-weight: 600; }
.check-item .bad { color: var(--danger); font-weight: 600; }
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-card { position: relative; border: 1px solid var(--border-strong); border-radius: 12px; padding: 14px 16px; cursor: pointer; transition: all .15s; background: #fff; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card.on, .radio-card:hover { border-color: var(--accent); background: var(--accent-soft); }
.radio-card b { display: block; font-size: 13.5px; margin-bottom: 3px; }
.radio-card small { color: var(--muted); font-size: 12px; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .sidebar { transform: translateX(-100%); box-shadow: 0 0 40px rgba(16,24,40,.16); }
  .sidebar.open { transform: none; }
  .main { margin-left: 0; }
  .topbar .menu-btn { display: inline-flex; }
  .topbar { padding: 12px 16px; }
  .content { padding: 18px 16px 40px; }
  .file-head { display: none; }
  .file-row { display: block; padding: 12px 14px; }
  .file-size, .file-time { display: none; }
  .row-actions { opacity: 1; margin-top: 10px; justify-content: flex-start; flex-wrap: wrap; }
  .toolbar .spacer { display: none; }
  .toolbar .help { flex-basis: 100%; }
  .search { width: auto; flex: 1; min-width: 0; }
  .page-title { display: none; }
  .share-box { margin: 4vh auto; padding: 24px 20px; }
  .auth-wrap { padding: 26px 22px; }
  .radio-cards { grid-template-columns: 1fr; }
  table.data { display: block; overflow-x: auto; white-space: nowrap; }
}

/* 文件夹分享页 */
.share-box.wide{max-width:640px}
.share-folder-head{text-align:left}
.share-folder-title{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.share-folder-title .file-icon{margin:0;flex:0 0 auto}
.share-folder-title h2{margin:0;font-size:17px;word-break:break-all}
.share-folder-title .meta{margin:2px 0 0;font-size:12.5px}
.share-folder-title .btn{margin-left:auto;flex:0 0 auto}
.share-crumbs{font-size:13px;color:var(--muted);margin:0 0 10px;word-break:break-all}
.share-crumbs a{color:var(--accent);text-decoration:none}
.share-crumbs .sep{margin:0 6px;color:#c2ccd6}
.share-list{border:1px solid var(--border);border-radius:10px;overflow:hidden;background:#fff}
.share-row{display:flex;align-items:center;gap:10px;padding:11px 14px;border-bottom:1px solid #eef2f7;text-decoration:none;color:var(--text)}
.share-row:last-child{border-bottom:0}
.share-row:hover{background:#f7fbff}
.share-row .file-icon{margin:0;flex:0 0 auto;width:30px;height:30px}
.share-name{flex:1;min-width:0;font-size:13.5px;word-break:break-all}
.share-size{font-size:12px;color:var(--muted);flex:0 0 auto}
.share-act{color:var(--muted);flex:0 0 auto;display:inline-flex}
.share-empty{padding:26px;text-align:center;color:var(--muted);font-size:13px}
@media (max-width:560px){
  .share-folder-title{flex-wrap:wrap}
  .share-folder-title .btn{margin-left:0;width:100%;justify-content:center}
}

/* 后台存储选择 */
.storage-picks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.storage-fields .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media (max-width:760px){.storage-fields .form-grid{grid-template-columns:1fr}}
.storage-pick{display:flex;gap:9px;align-items:flex-start;border:1px solid var(--border);border-radius:10px;padding:11px 12px;cursor:pointer;font-weight:500;background:#fff}
.storage-pick input{margin:3px 0 0}
.storage-pick b{display:block;font-size:13.5px}
.storage-pick em{display:block;font-style:normal;font-size:12px;color:var(--muted);margin-top:2px;line-height:1.45}
.storage-pick:has(input:checked){border-color:var(--accent);background:var(--accent-soft)}
.storage-pick.is-on{border-color:var(--accent);background:var(--accent-soft)}
@media (max-width:760px){.storage-picks{grid-template-columns:1fr}}


/* 列表选择 / 批量 / 分页 / 排序 */
.pick-wrap{display:flex;align-items:center;flex:0 0 auto;margin-right:2px}
.pick{width:16px;height:16px;accent-color:var(--accent);cursor:pointer}
.file-head.with-pick > div:first-child{padding-left:26px}
.batch-bar{display:flex;align-items:center;gap:10px;background:var(--accent-soft);border:1px solid #dbe7ff;border-radius:10px;padding:9px 12px;margin-bottom:12px}
.batch-bar[hidden]{display:none}
.bb-count{font-size:13px;color:var(--accent-dark);white-space:nowrap}
.batch-bar .spacer{flex:1}
.pager{display:flex;align-items:center;justify-content:center;gap:12px;padding:14px}
.pager-info{font-size:12.5px;color:var(--muted)}
.btn.disabled{opacity:.45;pointer-events:none}
.sort-form select{min-width:118px}

/* 拖拽遮罩 */
.drop-mask{position:fixed;inset:0;background:rgba(23,60,130,.38);z-index:90;display:flex;align-items:center;justify-content:center}
.drop-mask[hidden]{display:none}
.drop-inner{background:#fff;border-radius:16px;padding:32px 46px;text-align:center;box-shadow:0 18px 50px rgba(15,35,70,.28);display:flex;flex-direction:column;align-items:center;gap:8px;color:var(--text)}
.drop-inner .ic{width:42px;height:42px;color:var(--accent)}
.drop-inner b{font-size:15px}
.drop-inner span{color:var(--muted);font-size:12.5px}

/* 上传队列 */
.upload-panel{position:fixed;right:18px;bottom:18px;width:390px;max-width:calc(100vw - 24px);background:#fff;border:1px solid var(--border);border-radius:14px;box-shadow:0 14px 44px rgba(20,40,80,.18);z-index:80;overflow:hidden}
.upload-panel[hidden]{display:none}
.upload-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:10px 12px;border-bottom:1px solid var(--border);background:#f8fbff}
.uq-title{min-width:0;display:flex;flex-direction:column;gap:2px}
.uq-title b{font-size:13px}
.uq-title .help{font-size:11.5px;color:var(--muted);white-space:normal;line-height:1.4}
.upload-list{max-height:46vh;overflow:auto}
.uq-item{padding:9px 12px;border-bottom:1px solid #f1f4fa}
.uq-item:last-child{border-bottom:0}
.uq-line{display:flex;align-items:center;gap:6px;font-size:12.5px}
.uq-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}
.uq-ext{flex:0 0 auto;font-size:10.5px;padding:1px 5px;border-radius:4px;background:#f0f3f8;color:var(--muted);text-transform:uppercase}
.uq-status{flex:0 0 auto;font-size:11px;color:var(--muted)}
.uq-status.done{color:var(--success)}
.uq-status.fail{color:var(--danger)}
.uq-status.uploading{color:var(--accent)}
.uq-bar{height:5px;border-radius:3px;background:#edf0f6;margin:7px 0 4px;overflow:hidden}
.uq-bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,#6a9bff,var(--accent));border-radius:3px;transition:width .15s linear}
.uq-meta{font-size:11px;color:var(--muted);line-height:1.5;word-break:break-all}
@media (max-width:600px){
  .upload-panel{left:12px;right:12px;bottom:12px;width:auto}
  .batch-bar{flex-wrap:wrap}
  .batch-bar .spacer{display:none}
  .file-head.with-pick > div:first-child{padding-left:0}
}

/* 分享图片与直链 */
.share-img{display:block;max-width:100%;max-height:320px;margin:0 auto 14px;border-radius:10px;background:#f6f8fc;object-fit:contain}
.share-direct{text-align:left;margin:0 0 14px;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:#f9fbff}
.share-direct label{display:block;font-size:12.5px;font-weight:600;margin-bottom:6px}
.share-direct .direct-row{display:flex;gap:8px;align-items:center}
.share-direct .input{flex:1;min-width:0;font-size:12px}
.share-direct .help{margin-top:6px}
