/* ============================================================
   起点云平台 · 公共样式（浅色科技风设计系统）
   所有应用页共用。各应用自己的样式放 css/<app>.css
   ============================================================ */

:root {
  --bg: #eef3fb;
  --bg-2: #ffffff;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-2: rgba(255, 255, 255, 0.66);
  --surface-3: rgba(241, 245, 252, 0.72);
  --line: rgba(100, 116, 139, 0.16);
  --line-strong: rgba(100, 116, 139, 0.28);
  --line-neon: rgba(8, 145, 178, 0.42);
  --text: #1e293b;
  --muted: #64748b;
  --faint: #94a3b8;
  --primary: #0891b2;
  --primary-2: #0284c7;
  --primary-deep: #0e7490;
  --accent: #7c3aed;
  --accent-2: #8b5cf6;
  --primary-soft: rgba(8, 145, 178, 0.08);
  --danger: #e11d48;
  --danger-soft: rgba(225, 29, 72, 0.08);
  --ok: #059669;
  --radius: 14px;
  --shadow-sm: 0 2px 10px rgba(100, 116, 139, 0.1);
  --shadow-md: 0 12px 36px rgba(100, 116, 139, 0.16);
  --shadow-lg: 0 24px 70px rgba(100, 116, 139, 0.22);
  --glow-primary: 0 0 18px rgba(8, 145, 178, 0.22);
  --font-num: "Consolas", "JetBrains Mono", "Microsoft YaHei", monospace;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* 全局科技背景：网格 + 浅色极光，通过 body 伪元素叠加 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(56, 189, 248, 0.2) 0%, transparent 60%),
    radial-gradient(900px 620px at -12% 8%, rgba(139, 92, 246, 0.13) 0%, transparent 55%),
    radial-gradient(760px 520px at 55% 115%, rgba(34, 211, 238, 0.12) 0%, transparent 60%),
    linear-gradient(180deg, #f5f9ff 0%, #eef3fb 52%, #eaf0f9 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(100, 130, 180, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 130, 180, 0.08) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 78%);
}

button, input, select, textarea { font: inherit; color: inherit; }

[hidden] { display: none !important; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.muted { color: var(--muted); font-size: 13px; }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.3);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover { background-color: rgba(8, 145, 178, 0.45); }

::selection { background: rgba(56, 189, 248, 0.32); color: #0f172a; }

/* ---------- 登录卡片（门户弹窗 / 独立登录页共用） ---------- */

.auth-view {
  position: relative;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  overflow: hidden;
}

.auth-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.94), rgba(246, 250, 255, 0.96));
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 34px 32px 28px;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(56, 189, 248, 0.12);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.auth-card::before {
  content: "";
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(8, 145, 178, 0.55), transparent);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(139, 92, 246, 0.16));
  border: 1px solid rgba(8, 145, 178, 0.35);
  color: var(--primary);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.22), inset 0 0 12px rgba(34, 211, 238, 0.08);
}

.logo-mark .icon { width: 21px; height: 21px; stroke-width: 2; }

.auth-sub { margin: 10px 0 24px; color: var(--muted); font-size: 13px; line-height: 1.7; }

.auth-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 11px;
  background: rgba(241, 245, 249, 0.85);
  border: 1px solid var(--line);
  margin-bottom: 20px;
}

.auth-tab {
  flex: 1;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 8px 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  transition: all 0.18s ease;
}

.auth-tab.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(139, 92, 246, 0.14));
  color: var(--primary-deep);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(8, 145, 178, 0.3), 0 0 12px rgba(56, 189, 248, 0.16);
}

.auth-tip { margin: 18px 0 0; text-align: center; color: var(--faint); font-size: 12px; }

.auth-close { position: absolute; top: 14px; right: 14px; }

/* ---------- 表单与按钮 ---------- */

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }

.field > span { font-size: 13px; color: var(--muted); }

.field input,
.field select,
.field textarea {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--text);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.field textarea { height: auto; padding: 10px 12px; resize: vertical; }

.field input::placeholder, .field textarea::placeholder { color: var(--faint); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(8, 145, 178, 0.55);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16), 0 0 14px rgba(56, 189, 248, 0.14);
  background: #fff;
}

.field select option { background: #fff; color: var(--text); }

.form-error { margin: -4px 0 14px; color: var(--danger); font-size: 13px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  transition: all 0.18s ease;
}

.btn:hover {
  border-color: rgba(8, 145, 178, 0.45);
  color: var(--primary);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.18);
  transform: translateY(-1px);
}

.btn:active { transform: translateY(0); }

.btn .icon { width: 17px; height: 17px; }

.btn-primary {
  background: linear-gradient(135deg, #06b6d4, #3b82f6 68%, #6366f1);
  border-color: rgba(8, 145, 178, 0.4);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 18px rgba(6, 182, 212, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.btn-primary:hover {
  color: #fff;
  border-color: rgba(8, 145, 178, 0.7);
  box-shadow: 0 6px 26px rgba(56, 189, 248, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }

.btn-ghost:hover {
  background: rgba(56, 189, 248, 0.1);
  border-color: transparent;
  color: var(--primary);
  box-shadow: none;
}

.btn-danger {
  background: linear-gradient(135deg, #e11d48, #be123c);
  border-color: rgba(225, 29, 72, 0.45);
  color: #fff;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  border-color: rgba(225, 29, 72, 0.75);
  color: #fff;
  box-shadow: 0 0 18px rgba(225, 29, 72, 0.26);
}

.btn-block { width: 100%; height: 42px; }

.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.16s ease;
}

.icon-btn:hover {
  background: rgba(56, 189, 248, 0.12);
  color: var(--primary);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.18);
}

/* ---------- 应用页框架（顶栏 + 内容区） ---------- */

.app-main { display: flex; flex-direction: column; min-height: 100vh; position: relative; z-index: 1; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.topbar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent 4%, rgba(8, 145, 178, 0.4) 30%, rgba(139, 92, 246, 0.38) 70%, transparent 96%);
  opacity: 0.65;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--text);
  text-decoration: none;
}

.brand-home { cursor: pointer; user-select: none; }

.brand-sub {
  padding-left: 12px;
  margin-left: 2px;
  border-left: 1px solid var(--line-strong);
  color: var(--primary);
  font-size: 14px;
  font-weight: 500;
}

.topbar-right { display: flex; align-items: center; gap: 20px; }

.quota-mini { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); font-family: var(--font-num); }

.quota-track {
  width: 110px;
  height: 6px;
  border-radius: 99px;
  background: rgba(100, 116, 139, 0.16);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(100, 116, 139, 0.18);
}

.quota-track > div {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #06b6d4, #3b82f6);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.5);
  transition: width 0.35s ease;
}

.quota-track.warn > div { background: linear-gradient(90deg, #f59e0b, #f97316); box-shadow: 0 0 8px rgba(245, 158, 11, 0.5); }

.quota-track.danger > div { background: linear-gradient(90deg, #f43f5e, #e11d48); box-shadow: 0 0 8px rgba(225, 29, 72, 0.5); }

.user-chip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding-left: 14px;
  border-left: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 13px;
}

.app-content {
  flex: 1;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 26px 44px;
  position: relative;
}

/* ---------- 通用表格 / 面板 ---------- */

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.table-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.file-table { width: 100%; border-collapse: collapse; table-layout: fixed; }

.file-table th {
  height: 42px;
  padding: 0 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.6px;
  color: var(--muted);
  background: rgba(241, 245, 249, 0.85);
  border-bottom: 1px solid var(--line);
}

.file-table td {
  height: 56px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(100, 116, 139, 0.09);
  vertical-align: middle;
  color: var(--text);
}

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

.file-table tbody tr { transition: background 0.14s ease; }

.file-table tbody tr:hover { background: rgba(56, 189, 248, 0.07); }

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

.file-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(8, 145, 178, 0.22);
  color: var(--primary);
}

.file-thumb.dir {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(124, 58, 237, 0.24);
  color: var(--accent);
}

.file-thumb .icon { width: 19px; height: 19px; }

.file-name {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-name.link { cursor: pointer; }

.file-name.link:hover { color: var(--primary); }

.row-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 2px; }

.row-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  opacity: 0.75;
  text-decoration: none;
  transition: all 0.15s ease;
}

.row-action:hover {
  background: rgba(56, 189, 248, 0.14);
  color: var(--primary);
  opacity: 1;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.18);
}

.row-action.danger:hover {
  background: var(--danger-soft);
  color: var(--danger);
  box-shadow: 0 0 10px rgba(225, 29, 72, 0.14);
}

.row-action .icon { width: 17px; height: 17px; }

.link-btn {
  border: 0;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  padding: 0;
  font-size: 12px;
}

.link-btn:hover { text-decoration: underline; }

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 72px 20px;
  color: var(--muted);
  font-size: 13px;
}

.empty p { margin: 0; }

.empty-icon { width: 42px; height: 42px; color: var(--faint); stroke-width: 1.4; }

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

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(226, 235, 247, 0.62);
  backdrop-filter: blur(6px);
  animation: fade-in 0.16s ease;
}

.modal {
  width: 100%;
  max-width: 430px;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.97), rgba(246, 250, 255, 0.98));
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(56, 189, 248, 0.1);
  backdrop-filter: blur(18px);
  animation: pop-in 0.18s ease;
  overflow: hidden;
  position: relative;
}

.modal::before {
  content: "";
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(8, 145, 178, 0.5), transparent);
}

.modal-wide { max-width: 480px; }

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 12px;
}

.modal-head h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: 0.4px; }

.modal-body { padding: 4px 20px 8px; overflow: auto; }

.modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px 18px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}

.confirm-text { margin: 6px 0 12px; color: var(--muted); line-height: 1.8; }

.copy-row { display: flex; gap: 8px; }

.copy-row input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: rgba(241, 245, 249, 0.8);
  color: var(--primary);
  font-family: var(--font-num);
  font-size: 12.5px;
  outline: none;
}

.copy-row .btn { flex: none; }

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

.toast-host {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 9px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(8, 145, 178, 0.35);
  color: var(--text);
  font-size: 13px;
  box-shadow: var(--shadow-md), 0 0 18px rgba(56, 189, 248, 0.16);
  backdrop-filter: blur(12px);
  animation: toast-in 0.2s ease;
  max-width: 80vw;
}

.toast.error { border-color: rgba(225, 29, 72, 0.45); box-shadow: var(--shadow-md), 0 0 18px rgba(225, 29, 72, 0.16); }

.toast.success { border-color: rgba(5, 150, 105, 0.4); box-shadow: var(--shadow-md), 0 0 18px rgba(5, 150, 105, 0.15); }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@keyframes pop-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 粒子背景画布 ---------- */

.fx-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* ============================================================
   深色科技主题（个人设置中切换，[data-theme="dark"] 生效）
   ============================================================ */

[data-theme="dark"] {
  --bg: #04060e;
  --bg-2: #0a0f1e;
  --surface: rgba(13, 21, 40, 0.72);
  --surface-2: rgba(13, 21, 40, 0.55);
  --surface-3: rgba(10, 16, 32, 0.6);
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.24);
  --line-neon: rgba(56, 224, 255, 0.45);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --faint: #64748b;
  --primary: #22d3ee;
  --primary-2: #38bdf8;
  --primary-deep: #67e8f9;
  --accent: #a78bfa;
  --accent-2: #818cf8;
  --primary-soft: rgba(34, 211, 238, 0.1);
  --danger: #fb7185;
  --danger-soft: rgba(251, 113, 133, 0.12);
  --ok: #34d399;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 36px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.55);
  --glow-primary: 0 0 18px rgba(34, 211, 238, 0.35);
}

[data-theme="dark"] body::before {
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(34, 211, 238, 0.14) 0%, transparent 60%),
    radial-gradient(900px 620px at -12% 8%, rgba(124, 58, 237, 0.18) 0%, transparent 55%),
    radial-gradient(760px 520px at 55% 115%, rgba(34, 211, 238, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, #04060e 0%, #070b18 52%, #05070f 100%);
}

[data-theme="dark"] body::after {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
}

[data-theme="dark"] ::selection { background: rgba(34, 211, 238, 0.32); color: #f0f9ff; }

[data-theme="dark"] ::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.28); background-clip: content-box; }

[data-theme="dark"] .topbar { background: rgba(5, 8, 17, 0.82); }

[data-theme="dark"] .auth-card,
[data-theme="dark"] .modal {
  background: linear-gradient(165deg, rgba(17, 27, 52, 0.96), rgba(9, 14, 29, 0.97));
}

[data-theme="dark"] .auth-tabs,
[data-theme="dark"] .app-tabs { background: rgba(7, 12, 24, 0.66); }

[data-theme="dark"] .field input,
[data-theme="dark"] .field select,
[data-theme="dark"] .field textarea,
[data-theme="dark"] .stat-create-row input,
[data-theme="dark"] .note-search { background: rgba(7, 12, 24, 0.66); }

[data-theme="dark"] .field input:focus,
[data-theme="dark"] .field select:focus,
[data-theme="dark"] .field textarea:focus { background: rgba(7, 12, 24, 0.85); }

[data-theme="dark"] .field select option { background: #0d1528; color: var(--text); }

[data-theme="dark"] .file-table th { background: rgba(10, 16, 32, 0.85); }

[data-theme="dark"] .file-table td { border-bottom-color: rgba(148, 163, 184, 0.08); }

[data-theme="dark"] .quota-track { background: rgba(148, 163, 184, 0.15); }

[data-theme="dark"] .toast { background: rgba(13, 21, 40, 0.95); }

[data-theme="dark"] .copy-row input { background: rgba(7, 12, 24, 0.7); }

[data-theme="dark"] .modal-mask { background: rgba(2, 4, 10, 0.62); }

[data-theme="dark"] .upload-tray {
  background: linear-gradient(165deg, rgba(17, 27, 52, 0.96), rgba(9, 14, 29, 0.97));
}

[data-theme="dark"] .drop-hint { background: rgba(8, 14, 28, 0.82); }

[data-theme="dark"] .upload-item { border-bottom-color: rgba(148, 163, 184, 0.08); }

[data-theme="dark"] .bar { background: rgba(148, 163, 184, 0.13); }

[data-theme="dark"] .pc-cover::after {
  background: linear-gradient(180deg, transparent 45%, rgba(11, 17, 33, 0.92) 100%);
}

[data-theme="dark"] .hero-eyebrow { background: rgba(13, 21, 40, 0.6); }

[data-theme="dark"] .share-file { background: rgba(34, 211, 238, 0.06); }

[data-theme="dark"] .album-cover {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(139, 92, 246, 0.12));
}

[data-theme="dark"] .album-count,
[data-theme="dark"] .album-actions .icon-btn,
[data-theme="dark"] .photo-actions .icon-btn,
[data-theme="dark"] .lb-bar {
  background: rgba(13, 21, 40, 0.85);
  border-color: var(--line-strong);
  color: var(--text);
}

[data-theme="dark"] .photo-info {
  background: linear-gradient(180deg, transparent, rgba(8, 12, 24, 0.9));
}

[data-theme="dark"] .photo-name { color: #f1f5f9; }

[data-theme="dark"] .lb-nav { background: rgba(13, 21, 40, 0.85); color: #cbd5e1; }

[data-theme="dark"] .statview-head { background: rgba(5, 8, 17, 0.82); }

[data-theme="dark"] .note-item:hover { background: rgba(34, 211, 238, 0.08); }

[data-theme="dark"] .crumb:hover { background: rgba(34, 211, 238, 0.1); }

[data-theme="dark"] .opt-preview { border-color: var(--line-strong); }

[data-theme="dark"] .avatar-preview { background: rgba(34, 211, 238, 0.1); }

[data-theme="dark"] .switch::after { background: #cbd5e1; }

[data-theme="dark"] .share-dl-sub { color: var(--faint); }

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

@media (max-width: 720px) {
  .topbar { padding: 0 14px; }
  .quota-mini { display: none; }
  .app-content { padding: 14px 14px 32px; }
  .file-table td, .file-table th { padding: 0 10px; }
  .row-action { width: 28px; }
}
