:root {
  --primary: #1890ff;
  --primary-dark: #0f6fd8;
  --danger: #ff4d4f;
  --success: #52c41a;
  --text: #1a1a1a;
  --text-2: #666;
  --text-3: #999;
  --border: #e5e7eb;
  --bg: #f0f2f5;
  --card: #fff;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.05);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif; background: var(--bg); min-height: 100vh; color: var(--text); }
.container { max-width: 860px; margin: 0 auto; padding: 28px 16px 48px; }
header { text-align: center; margin-bottom: 24px; }
h1 { font-size: 26px; color: var(--text); letter-spacing: .5px; }
.subtitle { margin-top: 8px; font-size: 13px; color: var(--text-3); }
.card { background: var(--card); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; box-shadow: var(--shadow); }
.drop-zone { position: relative; border: 2px dashed #c9d2dc; border-radius: 10px; padding: 56px 24px 32px; text-align: center; cursor: pointer; transition: all .2s; color: var(--text-3); }
.drop-zone:hover, .drop-zone.drag-over { border-color: var(--primary); background: #eaf4ff; color: var(--primary-dark); }
.drop-zone .dz-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), #69c0ff);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(24, 144, 255, .32);
  transition: transform .2s;
}
.drop-zone .dz-icon svg { width: 24px; height: 24px; }
.drop-zone .dz-icon.public { background: linear-gradient(135deg, var(--danger), #ff7875); box-shadow: 0 6px 14px rgba(255, 77, 79, .32); }
.drop-zone:hover .dz-icon, .drop-zone.drag-over .dz-icon { transform: scale(1.08) translateY(-2px); }
.drop-zone p { font-size: 15px; margin-top: 10px; }
.drop-zone .hint { font-size: 12.5px; color: var(--text-3); margin-top: 6px; }
.drop-zone.drag-over .hint { color: var(--primary-dark); }
.drop-zone .dz-actions { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }
.privacy-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); cursor: pointer; user-select: none; }
.privacy-toggle input { width: 15px; height: 15px; accent-color: var(--primary); cursor: pointer; }
.drop-zone .privacy-ctrl { position: absolute; top: 10px; left: 12px; z-index: 2; display: flex; align-items: center; gap: 8px; }
.drop-zone .privacy-toggle { padding: 5px 10px; background: rgba(255,255,255,.72); border: 1px solid var(--border); border-radius: 999px; }
.privacy-hint { position: absolute; top: 15px; left: 50%; transform: translateX(-50%); z-index: 2; font-size: 11.5px; line-height: 1.4; color: var(--text-3); white-space: nowrap; }
.private-links { display: none; margin-top: 14px; border-top: 1px dashed var(--border); padding-top: 8px; }
.private-links .pl-tip { font-size: 12.5px; text-align: center; color: #ad6800; background: #fff7e6; border: 1px solid #ffd591; border-radius: 6px; padding: 8px 10px; margin-bottom: 4px; }
.private-link { padding: 8px 0; border-bottom: 1px dashed var(--border); }
.private-link:last-child { border-bottom: none; }
.private-link .pl-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.private-link .pl-name { font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.private-link .pl-btns { display: flex; gap: 6px; flex-shrink: 0; }
.private-link .pl-url { font-size: 12px; color: var(--primary); margin-top: 4px; word-break: break-all; user-select: all; }
#fileInput, #folderInput { display: none; }
.upload-list { display: none; margin-top: 16px; }
.upload-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.upload-item:last-child { border-bottom: none; }
.upload-item .u-name { flex: 1; min-width: 0; font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload-item .u-status { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.upload-item .u-status.ok { color: var(--success); }
.upload-item .u-status.err { color: var(--danger); }
.u-retry { margin-left: auto; flex-shrink: 0; white-space: nowrap; font-size: 12px; color: var(--primary); background: #eaf4ff; border: 1px solid #b7d9fb; border-radius: 6px; padding: 4px 10px; cursor: pointer; }
.u-retry:hover { background: #d5e9ff; }
.u-bar { width: 90px; height: 6px; background: #eef1f5; border-radius: 3px; overflow: hidden; flex-shrink: 0; }
.u-bar i { display: block; height: 100%; width: 0; background: var(--primary); border-radius: 3px; transition: width .25s; }
.u-bar.ind i { position: relative; width: 40%; background: linear-gradient(90deg, #a5d2ff, var(--primary), #a5d2ff); animation: packSlide 1s linear infinite; }
@keyframes packSlide { 0% { left: -40%; } 100% { left: 100%; } }
.u-status.working { color: var(--primary); }
.list-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.list-head .lh-info { font-size: 15px; font-weight: 600; color: var(--text); }
.list-head .lh-info small { font-weight: 400; font-size: 12px; color: var(--text-3); margin-left: 8px; white-space: normal; }
.list-head .stat-desktop { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; vertical-align: middle; }
.list-head .stat-min { display: none; }
.list-head .stat-pub,
.list-head .stat-priv { display: inline-flex; align-items: center; gap: 3px; padding: 1px 9px; border-radius: 999px; line-height: 1.6; white-space: nowrap; }
.list-head .stat-pub i,
.list-head .stat-priv i { font-style: normal; font-weight: 700; }
.list-head .stat-pub { color: #0f6fd8; background: #eaf4ff; border: 1px solid #b7d9fb; }
.list-head .stat-priv { color: #ad6800; background: #fff7e6; border: 1px solid #ffd591; }
.list-head .stat-total,
.list-head .stat-single { color: var(--text-3); white-space: nowrap; }
.file-list { margin-top: 4px; }
.file-item { display: flex; align-items: center; padding: 12px 8px; border-radius: 8px; gap: 12px; transition: background .15s; }
.file-item:hover { background: #f7f9fc; }
.file-item + .file-item { border-top: 1px solid var(--border); }
.file-icon { width: 40px; height: 40px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; background: #f0f4f9; }
.file-info { flex: 1; min-width: 0; }
.file-name { font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.file-actions { display: flex; gap: 6px; flex-shrink: 0; }
.btn { padding: 6px 13px; border-radius: 6px; border: none; cursor: pointer; font-size: 13px; transition: all .18s; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: #fff; color: var(--text-2); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.search-input { padding: 6px 12px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; width: 200px; outline: none; transition: border-color .18s; }
.search-input:focus { border-color: var(--primary); }
.pager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; }
.pager .pg-info { font-size: 12.5px; color: var(--text-3); }
.pager .btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: #eaf4ff; }
.btn-ghost:disabled { background: transparent; color: var(--text-3); opacity: .6; cursor: not-allowed; }
.empty { text-align: center; padding: 36px 0; color: var(--text-3); font-size: 13.5px; }
.empty .e-icon { font-size: 30px; margin-bottom: 8px; }
.limits { display: flex; justify-content: center; gap: 20px; margin-top: 12px; font-size: 12.5px; color: var(--text-3); flex-wrap: wrap; }
.limits span b { color: var(--text-2); font-weight: 600; }
.toast-container { position: fixed; top: 20px; right: 20px; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; z-index: 9999; pointer-events: none; max-width: min(420px, calc(100vw - 40px)); }
.toast { padding: 11px 18px; border-radius: 8px; color: #fff; font-size: 13.5px; animation: slideIn .25s; box-shadow: 0 6px 20px rgba(0,0,0,.18); display: flex; align-items: center; gap: 8px; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
.site-footer { max-width: 860px; margin: 0 auto; padding: 0 16px 36px; text-align: center; font-size: 12.5px; color: var(--text-3); }
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.info { background: var(--primary); }
@keyframes slideIn { from { transform: translateX(110%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@media (max-width: 560px) {
  .container { padding: 16px 12px 32px; }
  h1 { font-size: 21px; }
  .card { padding: 16px; border-radius: 10px; }
  .drop-zone { padding: 46px 14px 18px; }
  .drop-zone p { font-size: 14px; }
  .drop-zone .hint { font-size: 12px; }
  .drop-zone .dz-actions { gap: 8px; }
  .privacy-toggle { font-size: 12px; }
  .drop-zone .privacy-ctrl { top: 8px; left: 8px; }
  .drop-zone .privacy-toggle { padding: 4px 8px; }
  .drop-zone .privacy-hint { top: 12px; }
  .u-retry { padding: 4px 8px; font-size: 11px; }
  .drop-zone .dz-actions .btn { flex: 1; justify-content: center; padding: 10px 8px; font-size: 14px; }
  .file-item { gap: 10px; padding: 12px 4px; }
  .file-icon { width: 36px; height: 36px; font-size: 16px; }
  .file-actions { gap: 5px; }
  .list-head .stat-desktop { display: none; }
  .list-head .stat-min { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; vertical-align: middle; }
  .file-actions .btn { padding: 7px 9px; }
  .file-actions .btn { white-space: nowrap; }
  .search-input { flex: 1 1 100%; width: 100%; }
  .upload-item .u-bar { width: 64px; }
  .upload-item .u-status { font-size: 11px; }
  .toast-container { top: 12px; left: 12px; right: 12px; align-items: stretch; max-width: none; }
  .toast { justify-content: center; font-size: 13px; }
  .limits { gap: 10px 14px; font-size: 12px; }
}