@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
.modal-overlay[data-v-f1a209f0] {
  position:fixed; inset:0; background:rgba(0,0,0,.5); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px);
  display:flex; align-items:center; justify-content:center; z-index:99999;
  animation: overlay-in-f1a209f0 .2s ease;
}
@keyframes overlay-in-f1a209f0 {
from { opacity:0;
}
to { opacity:1;
}
}
.modal-box[data-v-f1a209f0] {
  background:var(--bg-surface); border:1px solid var(--glass-border); border-radius:var(--radius-lg);
  padding:28px; width:380px; max-width:90vw; box-shadow:var(--shadow-lg);
  animation: modal-pop-f1a209f0 .25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes modal-pop-f1a209f0 {
from { opacity:0; transform:scale(0.95) translateY(8px);
}
to { opacity:1; transform:scale(1) translateY(0);
}
}
.modal-title[data-v-f1a209f0] { font-size:16px; font-weight:600; color:var(--text-h1); margin:0 0 18px;
}
.modal-text[data-v-f1a209f0] { font-size:14px; color:var(--text-secondary); margin:0 0 18px; line-height:1.5;
}
.modal-actions[data-v-f1a209f0] { display:flex; justify-content:flex-end; gap:8px; margin-top:22px;
}
.btn-cancel[data-v-f1a209f0] { padding:7px 16px; background:var(--bg-surface-hover); border:1px solid var(--border); border-radius:var(--radius-sm); color:var(--text-secondary); cursor:pointer; font-size:13px; transition:all .15s;
}
.btn-cancel[data-v-f1a209f0]:hover { background:var(--border);
}
.btn-confirm[data-v-f1a209f0] { padding:7px 16px; background:var(--accent); border:none; border-radius:var(--radius-sm); color:#fff; cursor:pointer; font-size:13px; transition:all .15s;
}
.btn-confirm[data-v-f1a209f0]:hover { background:var(--accent-hover);
}

/* 整个 App 骨架 */
#app-root {
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-sans);
}

/* ========== 现代工具栏 ========== */
.app-header {
  height: 48px;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 0 16px;
  flex-shrink: 0;
  -webkit-app-region: drag;
  z-index: 100;
  user-select: none;
  position: relative;
}

/* 亮色模式下关闭毛玻璃，使用实心背景 + 清晰边框 */
[data-theme="light"] .app-header {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: #ffffff;
  border-bottom: 1px solid #d8dbe2;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* 即使没有边框，给顶部一个极细的高光可以增加高级感 */
.app-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-light);
  pointer-events: none;
}
.header-left,
.header-right {
  display: flex;
  align-items: center;
  -webkit-app-region: no-drag;
}

/* 左侧品牌 Logo */
.app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 4px 8px 4px 0;
  border-radius: var(--radius-sm);
  transition: opacity 0.2s;
}
.app-brand:hover {
  opacity: 0.8;
}
.brand-logo {
  width: 24px;
  height: 24px;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-icon {
  width: 100%;
  height: 100%;
}
.brand-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-h1);
  letter-spacing: -0.01em;
}

/* 分隔器 */
.header-divider {
  width: 1px;
  height: 16px;
  background: var(--border);
  margin: 0 12px;
}
.header-divider-win {
  width: 1px;
  height: 16px;
  background: var(--border);
  margin: 0 8px 0 12px;
}


/* 中间拖拽区域 */
.header-center {
  flex: 1;
  height: 100%;
}

/* 右侧控制功能 */
.header-right {
  gap: 6px;
}
.icon-btn {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}
.icon-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}

/* 窗口控制按钮（极简 Windows 风格适配） */
.win-control-btn {
  width: 44px;
  height: 48px; /* 撑满 header 高度 */
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  border-radius: 0;
}
.win-control-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-primary);
}
.win-close:hover {
  background: var(--danger);
  color: #fff;
}

/* ========== 主内容区 ========== */
.app-main {
  flex: 1;
  overflow: hidden;
  background: var(--bg-base);
  position: relative;
}

/* 路由切换动画 */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.2s ease;
}
.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}


/**
 * 全局基础样式
 */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}
/* 禁止 Electron 中的默认拖拽 */
img, a {
  -webkit-user-drag: none;
}
/**
 * CSS 变量 — 现代桌面应用设计系统
 * 色调参考：网易UU远程（蓝色主调 + 橙色点缀 + 干净白底）
 */

/* ========== 暗色主题（默认） ========== */
:root, [data-theme="dark"] {
  /* 背景层次 */
  --bg-app: #0e0f11;
  --bg-sidebar: #0b0c0e;
  --bg-base: #141518;
  --bg-surface: #1c1d21;
  --bg-surface-hover: #25262b;
  --bg-header: rgba(8, 9, 11, 0.92);

  /* 文字 */
  --text-h1: #ffffff;
  --text-primary: #ededed;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;

  /* 主题色：清澈蓝（参考网易UU远程） */
  --accent: #2b7de9;
  --accent-hover: #1a6dd8;
  --accent-light: rgba(43, 125, 233, 0.12);

  /* 辅助强调色：暖橙 */
  --accent-warm: #f0913a;
  --accent-warm-light: rgba(240, 145, 58, 0.12);

  /* 状态色 */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  /* 边框 */
  --border: #27272a;
  --border-hover: #3f3f46;
  --border-light: rgba(255, 255, 255, 0.05);

  /* 圆角 */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  --shadow-header: 0 1px 0 rgba(255, 255, 255, 0.05);

  /* 字体 */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  /* ===== 分类主题色（首页卡片分类标识） ===== */
  --cat-memory: #3b82f6;
  --cat-memory-glow: rgba(59, 130, 246, 0.15);
  --cat-anxiety: #a855f7;
  --cat-anxiety-glow: rgba(168, 85, 247, 0.15);
  --cat-social: #06b6d4;
  --cat-social-glow: rgba(6, 182, 212, 0.15);
  --cat-motor: #22c55e;
  --cat-motor-glow: rgba(34, 197, 94, 0.15);
  --cat-addiction: #f59e0b;
  --cat-addiction-glow: rgba(245, 158, 11, 0.15);

  /* ===== 装饰效果 ===== */
  --glass-bg: rgba(28, 29, 33, 0.65);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ========== 亮色主题 ========== */
[data-theme="light"] {
  --bg-app: #f2f3f5;
  --bg-sidebar: #fafafa;
  --bg-base: #f2f3f5;              /* 中性浅灰，不偏蓝 */
  --bg-surface: #ffffff;
  --bg-surface-hover: #f5f5f5;
  --bg-header: #ffffff;             /* 纯白实心 */

  /* 文字：高对比度 */
  --text-h1: #0d0d0d;
  --text-primary: #1a1a1a;
  --text-secondary: #444444;
  --text-muted: #777777;

  /* 主题色 */
  --accent: #2b7de9;
  --accent-hover: #1a6dd8;
  --accent-light: rgba(43, 125, 233, 0.08);

  /* 辅助强调色 */
  --accent-warm: #ee8c33;
  --accent-warm-light: rgba(238, 140, 51, 0.08);

  /* 状态色 */
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --info: #2563eb;

  /* 边框：加深让结构更清晰 */
  --border: #d8dbe2;
  --border-hover: #c0c4cc;
  --border-light: rgba(0, 0, 0, 0.06);

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.02);
  --shadow-header: 0 1px 0 rgba(0, 0, 0, 0.06);

  /* ===== 分类主题色（亮色优化） ===== */
  --cat-memory: #2563eb;
  --cat-memory-glow: rgba(37, 99, 235, 0.08);
  --cat-anxiety: #9333ea;
  --cat-anxiety-glow: rgba(147, 51, 234, 0.08);
  --cat-social: #0891b2;
  --cat-social-glow: rgba(8, 145, 178, 0.08);
  --cat-motor: #16a34a;
  --cat-motor-glow: rgba(22, 163, 74, 0.08);
  --cat-addiction: #d97706;
  --cat-addiction-glow: rgba(217, 119, 6, 0.08);

  /* ===== 装饰效果 ===== */
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(0, 0, 0, 0.06);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

/* 全局基础重置 */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
