/* ============================================================================
   Verba — 顶级极客暗黑风现代样式系统
   设计参考：Linear / Raycast / Craft / Dynamic Island
   ============================================================================ */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* 暗色调色板 (深邃太空曜石黑) */
  --bg-app: #090a0f;
  --bg-card: rgba(18, 20, 29, 0.75);
  --bg-card-hover: rgba(25, 28, 40, 0.9);
  --bg-input: rgba(13, 15, 22, 0.6);
  --bg-pill: rgba(255, 255, 255, 0.05);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(45, 212, 191, 0.5);
  --border-card: rgba(255, 255, 255, 0.07);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-teal: #2dd4bf;
  --accent-teal-glow: rgba(45, 212, 191, 0.25);
  --accent-blue: #38bdf8;
  --accent-amber: #fbbf24;
  --accent-rose: #f43f5e;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--border-card);
  --shadow-float: 0 20px 40px -15px rgba(0, 0, 0, 0.7);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg-app: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --bg-input: #ffffff;
  --bg-pill: #f1f5f9;

  --border-subtle: #e2e8f0;
  --border-focus: #0d9488;
  --border-card: #e2e8f0;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;

  --accent-teal: #0d9488;
  --accent-teal-glow: rgba(13, 148, 136, 0.15);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.03), 0 0 0 1px #e2e8f0;
  --shadow-float: 0 12px 32px -4px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.06);
}* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
  letter-spacing: -0.01em;
}

/* 柔和背景流光 */
.bg-glow {
  position: fixed;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.07) 0%, rgba(56, 189, 248, 0.04) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* 顶部导航栏 */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: rgba(9, 10, 15, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}[data-theme="light"] .navbar { background: rgba(248, 250, 252, 0.8); }.nav-brand { display: flex; align-items: center; gap: 10px; }

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-teal), #0ea5e9);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--accent-teal-glow);
}.brand-title { font-weight: 700; font-size: 17px; letter-spacing: -0.03em; }

.brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: var(--bg-pill);
  color: var(--accent-teal);
  border: 1px solid var(--border-subtle);
}

/* 动态状态胶囊 (Dynamic Pill) */
.status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s var(--ease-spring);
}.status-indicator { width: 7px; height: 7px; border-radius: 50%; position: relative; background-color: var(--accent-amber); }.status-indicator.live { background-color: var(--accent-teal); box-shadow: 0 0 10px var(--accent-teal); }

.status-indicator.live::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid var(--accent-teal);
  animation: ripple 2s infinite ease-out;
}.status-indicator.syncing { background-color: var(--accent-blue); box-shadow: 0 0 10px var(--accent-blue); animation: pulse-dot 0.8s infinite alternate; }.status-indicator.offline { background-color: var(--accent-rose); }

@keyframes ripple {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.6); opacity: 0; }
}

@keyframes pulse-dot {
  0% { transform: scale(0.85); }
  100% { transform: scale(1.25); }
}.nav-controls { display: flex; align-items: center; gap: 8px; }

.ghost-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}.ghost-btn:hover { background: var(--bg-card); color: var(--text-primary); border-color: rgba(255, 255, 255, 0.15); }

/* 主内容布局 */
.app-layout {
  position: relative;
  z-index: 1;
  max-width: 820px;
  width: 100%;
  margin: 24px auto;
  padding: 0 20px 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* 核心输入流画布 (Live Card) */
.live-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}.live-card:focus-within { border-color: var(--border-focus); box-shadow: var(--shadow-card), 0 0 20px var(--accent-teal-glow); }.live-header { padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-subtle); }

.live-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-teal); }.live-meta { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }.live-editor-wrap { padding: 18px 20px; }

.live-editor {
  width: 100%;
  min-height: 180px;
  max-height: 520px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  resize: vertical;
  white-space: pre-wrap;
  word-break: break-word;
}.live-editor::placeholder { color: var(--text-muted); opacity: 0.6; }

.live-action-bar {
  padding: 12px 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}.live-metrics { display: flex; align-items: center; gap: 8px; }

.metric-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-pill);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}.live-btn-group { display: flex; align-items: center; gap: 8px; }/* 按钮规范 */
button { font-family: var(--font-sans); }

.btn-subtle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.15s ease;
}.btn-subtle:hover { background: rgba(255, 255, 255, 0.1); color: var(--text-primary); }

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: #022c22;
  background: var(--accent-teal);
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px var(--accent-teal-glow);
  transition: all 0.15s var(--ease-spring);
}.btn-copy:hover { background: #5eead4; transform: translateY(-1px); }.btn-copy:active { transform: translateY(0); }

.btn-archive {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  background: #2563eb;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
  transition: all 0.15s var(--ease-spring);
}.btn-archive:hover { background: #3b82f6; transform: translateY(-1px); }

.shortcut-kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  background: rgba(0, 0, 0, 0.25);
  padding: 2px 5px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}/* 历史记录时间流 */
.timeline-section { display: flex; flex-direction: column; gap: 16px; }.timeline-header { display: flex; justify-content: space-between; align-items: center; gap: 14px; }.timeline-heading { display: flex; align-items: center; gap: 8px; color: var(--text-primary); }.timeline-heading h2 { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }.timeline-count-badge { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }.search-box { position: relative; display: flex; align-items: center; }.search-box svg { position: absolute; left: 10px; color: var(--text-muted); pointer-events: none; }

.search-box input {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 6px 12px 6px 30px;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  width: 190px;
  transition: width 0.2s ease, border-color 0.2s ease;
}.search-box input:focus { width: 240px; border-color: var(--accent-teal); }/* 卡片流瀑布 */
.cards-stream { display: flex; flex-direction: column; gap: 12px; }

.card-capsule {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s var(--ease-spring);
}.card-capsule:hover { background: var(--bg-card-hover); border-color: rgba(255, 255, 255, 0.15); transform: translateY(-2px); box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3); }.card-capsule.pinned { border-left: 3px solid var(--accent-amber); }.card-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }.card-meta-time { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-family: var(--font-mono); }.card-tool-group { display: flex; align-items: center; gap: 4px; opacity: 0.7; transition: opacity 0.15s ease; }.card-capsule:hover .card-tool-group { opacity: 1; }

.card-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}.card-btn:hover { background: var(--bg-pill); color: var(--text-primary); }.card-btn.delete:hover { color: var(--accent-rose); background: rgba(244, 63, 94, 0.1); }

.card-body-text {
  font-size: 14px;
  line-height: 1.68;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 220px;
  overflow-y: auto;
}

.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-muted);
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}.load-more-wrap { text-align: center; margin-top: 8px; }

/* 吐司通知 (Toast) */
.toast-hub {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast-msg {
  background: rgba(20, 24, 36, 0.95);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-float);
  backdrop-filter: blur(12px);
  animation: slideIn 0.2s var(--ease-spring);
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* 用户账号胶囊按钮 */
.user-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--radius-full);
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s var(--ease-spring);
}.user-btn:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--border-focus); color: var(--accent-teal); }

.user-name {
  font-family: var(--font-mono);
  font-size: 11px;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 模态框遮罩层 (支持 .modal-overlay 与 .modal-backdrop) */
.modal-overlay,
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn 0.2s var(--ease-spring);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  overflow: hidden;
  animation: scaleUp 0.2s var(--ease-spring);
}

@keyframes scaleUp {
  from { transform: scale(0.95) translateY(10px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--border-subtle); }.modal-title-wrap { display: flex; align-items: center; gap: 10px; }

.modal-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-pill);
  color: var(--accent-teal);
  display: flex;
  align-items: center;
  justify-content: center;
}.modal-header h3 { font-size: 15px; font-weight: 600; }

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}.modal-close-btn:hover { background: var(--bg-pill); color: var(--text-primary); }.modal-body { padding: 20px; }.modal-tip { font-size: 13px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 16px; }

.auth-current-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 18px;
  font-size: 13px;
}.info-label { color: var(--text-muted); }.info-user { font-family: var(--font-mono); font-weight: 600; color: var(--accent-teal); }.auth-form { display: flex; flex-direction: column; gap: 14px; }.form-group { display: flex; flex-direction: column; gap: 6px; }.form-group label { font-size: 12px; font-weight: 500; color: var(--text-secondary); }

.form-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}.form-input:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px var(--accent-teal-glow); }.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }

.btn-primary {
  background: var(--accent-teal);
  color: #090a0f;
  font-weight: 600;
  border: none;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}.btn-primary:hover { filter: brightness(1.1); box-shadow: 0 4px 12px var(--accent-teal-glow); }

/* 移动端专属调优 */
@media (max-width: 640px) {.navbar { padding: 10px 16px; }.app-layout { margin: 12px auto; padding: 0 12px 60px; gap: 20px; }.live-editor { min-height: 140px; font-size: 17px; }.live-action-bar { flex-direction: column; align-items: stretch; }.live-btn-group { width: 100%; justify-content: flex-end; }.timeline-header { flex-direction: column; align-items: stretch; }.search-box input { width: 100%; }.search-box input:focus { width: 100%; }
}

/* ==========================================================================
   迭代修改模式与卡片版本历史 (Revision History & Iteration Mode)
   ========================================================================== */
.iteration-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
  margin: 0 16px 12px;
}.iteration-info { display: flex; align-items: center; gap: 8px; color: var(--accent-teal); font-size: 12px; }.iteration-info strong { font-family: var(--font-mono); color: var(--text-primary); }
.btn-cancel-iteration {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 4px;
  transition: all 0.15s ease;
}.btn-cancel-iteration:hover { color: var(--accent-rose); background: rgba(244, 63, 94, 0.1); }
.btn-save-revision {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #fff;
  font-weight: 500;
  border: none;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
  transition: all 0.2s ease;
}.btn-save-revision:hover { filter: brightness(1.1); box-shadow: 0 4px 14px rgba(2, 132, 199, 0.45); }
.version-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-family: var(--font-mono);
  background: var(--bg-pill);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.15s ease;
}.version-badge:hover, .version-badge.has-revisions { background: rgba(56, 189, 248, 0.12); color: var(--accent-teal); border-color: rgba(56, 189, 248, 0.3); }.card-btn.history-action:hover,
.card-btn.edit-action:hover { color: var(--accent-teal); background: rgba(56, 189, 248, 0.1); }.modal-card.modal-history { max-width: 580px; width: 92%; }
.history-card-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 7px;
  background: var(--bg-pill);
  color: var(--accent-teal);
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}
.history-timeline {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
  margin-top: 10px;
}
.history-entry {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  position: relative;
  transition: border-color 0.15s ease;
}.history-entry.latest { border-color: rgba(56, 189, 248, 0.35); background: rgba(56, 189, 248, 0.03); }.history-entry-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 12px; }
.history-ver-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-primary);
}.history-ver-tag .tag-latest { font-size: 10px; padding: 1px 5px; border-radius: 3px; background: rgba(56, 189, 248, 0.2); color: var(--accent-teal); }.history-meta-time { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }
.history-text-preview {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 120px;
  overflow-y: auto;
  padding: 8px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.03);
}.history-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }

/* ==========================================================================
   灵感卡片回收站 (7天可恢复) (Trash & Soft-delete)
   ========================================================================== */
.btn-trash-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}.btn-trash-toggle:hover { color: var(--accent-rose); background: rgba(244, 63, 94, 0.08); }
.trash-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 10px;
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
}.modal-card.modal-trash { max-width: 580px; width: 92%; }.text-rose { color: var(--accent-rose) !important; }.text-danger { color: var(--accent-rose) !important; }.trash-header-tip { font-size: 11px; color: var(--text-muted); background: var(--bg-pill); padding: 2px 6px; border-radius: 4px; }.modal-header-actions { display: flex; align-items: center; gap: 8px; }.btn-empty-trash { font-size: 12px; color: var(--accent-rose); padding: 4px 8px; border-radius: var(--radius-sm); transition: all 0.15s ease; }.btn-empty-trash:hover { background: rgba(244, 63, 94, 0.1); }
.trash-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
  margin-top: 10px;
}
.trash-item {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.15s ease;
}.trash-item:hover { border-color: rgba(244, 63, 94, 0.3); }.trash-item-header { display: flex; justify-content: space-between; align-items: center; font-size: 11px; }.trash-item-id { font-family: var(--font-mono); color: var(--text-muted); }
.trash-countdown { font-family: var(--font-mono); font-size: 10px; padding: 2px 6px; border-radius: 4px; background: rgba(244, 63, 94, 0.12); color: var(--accent-rose); display: inline-flex; align-items: center; gap: 4px; }
.trash-countdown.warning { background: rgba(251, 191, 36, 0.15); color: var(--accent-amber); }
.trash-type-badge { font-size: 10px; padding: 1px 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.06); color: var(--text-muted); }
.trash-content-preview { font-size: 13px; line-height: 1.6; color: var(--text-primary); white-space: pre-wrap; word-break: break-word; max-height: 90px; overflow-y: auto; padding: 8px; background: var(--bg-card); border-radius: var(--radius-sm); border: 1px solid rgba(255, 255, 255, 0.03); }
.trash-file-preview { display: flex; align-items: center; gap: 10px; padding: 6px 8px; background: var(--bg-card); border-radius: var(--radius-sm); border: 1px solid rgba(255, 255, 255, 0.03); }
.trash-file-thumb { width: 44px; height: 44px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border-subtle); background: #000; flex-shrink: 0; }
.trash-file-icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 22px; background: var(--bg-card); border-radius: var(--radius-sm); border: 1px solid var(--border-subtle); flex-shrink: 0; }
.trash-file-info { flex: 1; min-width: 0; }
.trash-file-name { font-size: 13px; font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trash-file-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.trash-actions { display: flex; justify-content: flex-end; gap: 8px; }
.btn-purge { color: var(--text-muted); font-size: 12px; padding: 4px 8px; border-radius: var(--radius-sm); }
.btn-purge:hover { color: var(--accent-rose); background: rgba(244, 63, 94, 0.1); }
.btn-restore-trash { background: var(--accent-teal); color: #090a0f; font-weight: 600; font-size: 12px; padding: 4px 10px; border-radius: var(--radius-sm); border: none; cursor: pointer; transition: all 0.15s ease; }
.btn-restore-trash:hover { filter: brightness(1.1); box-shadow: 0 2px 8px var(--accent-teal-glow); }

/* ==========================================================================
   项目空间侧边栏与移动端轻量抽屉 (Projects Sidebar & Bottom Sheet)
   ========================================================================== */
.app-container {
  display: flex;
  max-width: 1380px;
  width: 100%;
  margin: 0 auto;
  min-height: calc(100vh - 65px);
  position: relative;
}
.projects-sidebar {
  width: 230px;
  flex-shrink: 0;
  border-right: 1px solid var(--border-subtle);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  background: rgba(9, 10, 15, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 60px;
  height: calc(100vh - 60px);
}
[data-theme="light"] .projects-sidebar { background: #ffffff; border-right: 1px solid #e2e8f0; }
[data-theme="light"] .sidebar-nav-item { color: #334155; }
[data-theme="light"] .sidebar-nav-item:hover { background: #f1f5f9; color: #0f172a; }
[data-theme="light"] .sidebar-nav-item.active { background: rgba(13, 148, 136, 0.12); color: #0f766e; border-color: rgba(13, 148, 136, 0.3); font-weight: 600; }
[data-theme="light"] .sidebar-nav-item .nav-item-count { background: #e2e8f0; color: #475569; }
[data-theme="light"] .sidebar-nav-item.active .nav-item-count { background: rgba(13, 148, 136, 0.2); color: #0f766e; }
.sidebar-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding: 0 6px; }
.sidebar-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}
.btn-new-project-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-secondary);
}
.btn-new-project-icon:hover { color: var(--accent-teal); background: rgba(45, 212, 191, 0.1); }.sidebar-project-list { display: flex; flex-direction: column; gap: 3px; flex: 1; overflow-y: auto; }.sidebar-section-title { font-size: 10px; color: var(--text-muted); padding: 12px 8px 4px; font-weight: 600; letter-spacing: 0.05em; }
.sidebar-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 9px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all 0.15s ease;
  border: 1px solid transparent;
}
.sidebar-nav-item:hover { background: rgba(255, 255, 255, 0.04); color: var(--text-primary); }.sidebar-nav-item.active { background: rgba(45, 212, 191, 0.1); color: var(--accent-teal); font-weight: 500; border-color: rgba(45, 212, 191, 0.2); }
.nav-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-item-icon { font-size: 14px; flex-shrink: 0; }
.nav-item-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-item-right { display: flex; align-items: center; gap: 4px; }
.nav-item-count {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 10px;
  background: var(--bg-pill);
  color: var(--text-muted);
}.sidebar-nav-item.active .nav-item-count { background: rgba(45, 212, 191, 0.2); color: var(--accent-teal); }
.btn-del-project {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  padding: 0 4px;
  display: none;
  line-height: 1;
}
.sidebar-nav-item:hover .btn-del-project { display: inline-block; }
.btn-del-project:hover { color: var(--accent-rose); }.sidebar-footer { border-top: 1px solid var(--border-subtle); padding-top: 8px; margin-top: 8px; }
.btn-trash-sidebar { width: 100%; border: none; background: transparent; }

/* 画布归档目标指示胶囊 */
.live-header-right { display: flex; align-items: center; gap: 10px; }
.live-target-project-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  padding: 2px 9px;
  border-radius: var(--radius-full);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}
.live-target-project-chip:hover { border-color: var(--accent-teal); color: var(--accent-teal); }
.live-target-project-chip strong { color: var(--text-primary); font-weight: 600; }

/* 移动端快速切换项目胶囊按钮 */
.mobile-project-pill {
  display: none;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--bg-pill);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  cursor: pointer;
}
.mobile-project-pill:hover { border-color: var(--accent-teal); }

/* 卡片项目徽章与移动按钮 */
.card-project-badge {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(56, 189, 248, 0.08);
  color: var(--accent-blue);
  border: 1px solid rgba(56, 189, 248, 0.2);
  margin-left: 6px;
}
.card-btn.move-action:hover { color: var(--accent-blue); background: rgba(56, 189, 248, 0.1); }

/* 表情选择器与移动分类列表 */
.emoji-picker { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px 0 2px; }
.emoji-option {
  font-size: 18px;
  padding: 4px 7px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}
.emoji-option:hover { background: rgba(255, 255, 255, 0.08); }
.emoji-option.selected { background: rgba(45, 212, 191, 0.15); border-color: var(--accent-teal); }
.move-project-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 260px;
  overflow-y: auto;
  margin-top: 10px;
}
.move-project-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.15s ease;
}.move-project-option:hover { border-color: var(--accent-teal); background: rgba(45, 212, 191, 0.06); color: var(--accent-teal); }

/* 移动端底部轻量抽屉 (Bottom Sheet) */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.bottom-sheet {
  width: 100%;
  max-width: 540px;
  background: var(--bg-card);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  border-bottom: none;
  padding: 10px 16px 28px;
  box-shadow: var(--shadow-float);
  animation: slide-up 0.22s var(--ease-spring);
}
@keyframes slide-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet-handle {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: var(--text-muted);
  opacity: 0.4;
  margin: 0 auto 10px;
}
.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 10px;
}
.sheet-title { font-weight: 600; font-size: 14px; }
.sheet-actions { display: flex; align-items: center; gap: 8px; }
.sheet-action-btn {
  font-size: 12px;
  color: var(--accent-teal);
  background: transparent;
  border: none;
  cursor: pointer;
  font-weight: 500;
}
.sheet-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 2px 6px;
}.sheet-body { display: flex; flex-direction: column; gap: 5px; max-height: 50vh; overflow-y: auto; }
.drawer-project-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  font-size: 13px;
}.drawer-project-item.active { border-color: var(--accent-teal); background: rgba(45, 212, 191, 0.1); color: var(--accent-teal); font-weight: 600; }
.drawer-item-left { display: flex; align-items: center; gap: 9px; }
.drawer-item-count { font-size: 11px; color: var(--text-muted); font-family: var(--font-mono); }

/* 认证模态框与账号中心 */
.modal-auth { max-width: 380px; }
.auth-tabs { display: flex; gap: 6px; background: var(--bg-input); padding: 4px; border-radius: var(--radius-sm); margin-bottom: 16px; border: 1px solid var(--border-subtle); }
.auth-tab-btn { flex: 1; padding: 7px 0; font-size: 13px; font-weight: 500; border: none; background: transparent; color: var(--text-muted); border-radius: 4px; cursor: pointer; transition: all var(--transition-fast); text-align: center; }
.auth-tab-btn.active { background: var(--bg-card); color: var(--text-main); font-weight: 600; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); }
.password-input-wrap { position: relative; display: flex; align-items: center; }
.password-input-wrap input { padding-right: 38px; width: 100%; }
.btn-toggle-pwd { position: absolute; right: 8px; background: none; border: none; cursor: pointer; opacity: 0.6; padding: 4px; font-size: 13px; }
.btn-toggle-pwd:hover { opacity: 1; }
.auth-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.auth-submit-btn { width: 100%; padding: 10px 0; font-size: 14px; font-weight: 600; }
.auth-guest-btn { font-size: 12px; color: var(--text-muted); text-align: center; background: none; border: none; cursor: pointer; padding: 6px; }
.user-center-info { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding: 12px; background: var(--bg-input); border-radius: var(--radius-sm); border: 1px solid var(--border-subtle); }
.user-avatar-circle { width: 42px; height: 42px; border-radius: 50%; background: rgba(45, 212, 191, 0.15); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.user-meta-wrap { display: flex; flex-direction: column; gap: 3px; }
.user-display-name { font-size: 15px; font-weight: 600; font-family: var(--font-mono); }
.user-status-tag { font-size: 11px; color: var(--text-muted); }

/* 响应式断点适配 */
@media (max-width: 900px) {
  .projects-sidebar { display: none !important; }
  .sidebar-toggle-btn { display: none !important; }
  .app-layout { max-width: 100%; margin: 10px auto; padding: 0 12px 60px; }
  .mobile-project-pill { display: inline-flex; }
  .btn-trash-toggle { display: inline-flex !important; }
}

/* 侧边栏平滑折叠交互 */
.sidebar-toggle-btn { display: inline-flex; align-items: center; justify-content: center; }
.sidebar-toggle-btn.active { color: var(--accent-teal); background: rgba(45, 212, 191, 0.12); }
.btn-collapse-sidebar { padding: 2px 5px; font-size: 11px; color: var(--text-muted); }
.btn-collapse-sidebar:hover { color: var(--text-primary); }
.projects-sidebar { transition: width 0.22s cubic-bezier(0.16, 1, 0.3, 1), padding 0.22s ease, opacity 0.18s ease; }
.app-container.sidebar-collapsed .projects-sidebar { width: 0 !important; min-width: 0 !important; max-width: 0 !important; padding: 0 !important; margin: 0 !important; opacity: 0; pointer-events: none; overflow: hidden; border-right: none !important; }
.app-container.sidebar-collapsed .app-layout { max-width: 100% !important; width: 100% !important; }

/* 卡片瀑布流折叠交互 */
.btn-timeline-toggle { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; padding: 3px 8px; border-radius: 4px; color: var(--text-secondary); border: 1px solid var(--border-subtle); background: var(--bg-pill); cursor: pointer; transition: all 0.15s ease; }
.btn-timeline-toggle:hover { color: var(--text-primary); border-color: var(--border-focus); }
.timeline-toggle-icon { display: inline-block; transition: transform 0.2s ease; font-size: 10px; }
.timeline-section.collapsed .cards-stream, .timeline-section.collapsed .load-more-wrap { display: none !important; }
.timeline-section.collapsed .timeline-toggle-icon { transform: rotate(-90deg); }

