/* ============================================================
   随手记 · 终极完美定稿版 (视觉质感拉满 + 全端适配 + 无冗余代码)
   ============================================================ */

/* ---------- 1. 主题变量 ---------- */
:root {
  --bg-primary: #f2f4f7;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-hover: rgba(0, 0, 0, 0.04);
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-color: rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.04), 0 1px 4px rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  --accent: #f472b6;
  --accent-2: #86efac;
  --accent-hover: #ec4899;
  --accent-10: rgba(244, 114, 182, 0.10);
  --accent-15: rgba(244, 114, 182, 0.15);
  --accent-30: rgba(244, 114, 182, 0.30);
  --accent-35: rgba(244, 114, 182, 0.35);
  --gradient: linear-gradient(135deg, #f9a8d4 0%, #f472b6 50%, #86efac 100%);
  --danger: #f56565;
  --success: #48bb78;
  --radius: 14px;
  --radius-sm: 10px;
  --transition: .25s cubic-bezier(.2,.8,.2,1);
  --font: 'Inter', 'PingFang SC', 'HarmonyOS Sans SC', 'Microsoft YaHei', system-ui, -apple-system, sans-serif;
}

[data-theme="dark"] {
  --bg-primary: #0b0e14;
  --bg-secondary: #161b22;
  --bg-card: #181d28;
  --bg-hover: rgba(255, 255, 255, 0.06);
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  --border-color: rgba(255, 255, 255, 0.08);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 1px 4px rgba(0, 0, 0, 0.2);
  --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
  --accent: #a855f7;
  --accent-2: #6366f1;
  --accent-hover: #c084fc;
  --accent-10: rgba(168, 85, 247, 0.10);
  --accent-15: rgba(168, 85, 247, 0.15);
  --accent-30: rgba(168, 85, 247, 0.30);
  --accent-35: rgba(168, 85, 247, 0.35);
  --gradient: linear-gradient(135deg, #c084fc 0%, #a855f7 50%, #6366f1 100%);
}

[data-theme="blue"] {
  --bg-primary: #f0f4f8;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-hover: rgba(59, 130, 246, 0.06);
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border-color: rgba(59, 130, 246, 0.1);
  --shadow: 0 4px 16px rgba(59, 130, 246, 0.05);
  --shadow-hover: 0 8px 24px rgba(59, 130, 246, 0.1);
  --accent: #3b82f6;
  --accent-2: #06b6d4;
  --accent-hover: #2563eb;
  --accent-10: rgba(59, 130, 246, 0.10);
  --accent-15: rgba(59, 130, 246, 0.15);
  --accent-30: rgba(59, 130, 246, 0.30);
  --accent-35: rgba(59, 130, 246, 0.35);
  --gradient: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #06b6d4 100%);
}

/* ---------- 2. 全局背景与基础重置 ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; }

/* 全局现代感网格渐变背景 */
body {
  font-family: var(--font);
  color: var(--text-primary);
  transition: background var(--transition), color var(--transition);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-color: #f3f4f6 !important; 
  background-image: 
      radial-gradient(at 0% 0%, rgba(244, 114, 182, 0.12) 0px, transparent 50%),
      radial-gradient(at 100% 0%, rgba(59, 130, 246, 0.1) 0px, transparent 50%),
      radial-gradient(at 100% 100%, rgba(134, 239, 172, 0.1) 0px, transparent 50%) !important;
  background-attachment: fixed !important;
  background-size: cover !important;
}
[data-theme="dark"] body {
  background-color: #0b0e14 !important;
  background-image: 
      radial-gradient(at 0% 0%, rgba(168, 85, 247, 0.15) 0px, transparent 50%),
      radial-gradient(at 100% 0%, rgba(99, 102, 241, 0.1) 0px, transparent 50%),
      radial-gradient(at 100% 100%, rgba(56, 189, 248, 0.08) 0px, transparent 50%) !important;
}
[data-theme="blue"] body {
  background-color: #f0f4f8 !important;
  background-image: 
      radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.12) 0px, transparent 50%),
      radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.1) 0px, transparent 50%) !important;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: rgba(150, 150, 150, 0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }
::selection { background: var(--accent-30); color: inherit; }

/* ---------- 3. 侧边栏 ---------- */
.app-layout { 
    display: flex; 
    min-height: 100vh; 
    width: 100%; 
    position: relative;
}
.sidebar {
  width: 260px; border-right: 1px solid var(--border-color);
  display: flex; flex-direction: column; padding: 24px 20px 16px 20px;
  flex-shrink: 0; transition: transform .3s ease; z-index: 100;
  height: 100vh; position: sticky; top: 0; overflow-y: auto; scrollbar-width: none;
  background: rgba(255, 255, 255, 0.6) !important; 
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}
[data-theme="dark"] .sidebar {
  background: rgba(22, 27, 34, 0.6) !important; 
}
.sidebar::-webkit-scrollbar { width: 0 !important; }
.sidebar-header { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; font-size: 20px; font-weight: 700; }
.sidebar-logo { height: 28px; width: auto; }
.pro-badge { font-size: 10px; background: var(--accent); color: #fff; padding: 2px 6px; border-radius: 4px; vertical-align: middle; margin-left: 4px; }

.stats-row { display: flex !important; justify-content: space-between !important; margin-bottom: 24px !important; padding: 0 4px !important; gap: 8px !important; }
.stat-item { display: flex !important; flex-direction: column !important; align-items: center !important; justify-content: center !important; cursor: pointer !important; padding: 10px 8px !important; border-radius: 14px !important; transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important; position: relative !important; overflow: hidden !important; flex: 1 !important; border: 1px solid transparent !important; }
.stat-item::before { content: ''; position: absolute; inset: 0; background: var(--bg-hover); opacity: 0; transition: all 0.3s ease; z-index: 0; border-radius: 14px; }
.stat-item:hover::before { opacity: 1; }
.stat-num { font-size: 24px !important; font-weight: 800 !important; color: var(--text-primary) !important; line-height: 1.2 !important; position: relative !important; z-index: 1 !important; transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important; }
.stat-label { font-size: 12px !important; color: var(--text-muted) !important; margin-top: 4px !important; position: relative !important; z-index: 1 !important; transition: all 0.2s !important; }
.stat-item:hover { transform: translateY(-2px) !important; border-color: var(--border-color) !important; }
.stat-item:hover .stat-num { color: var(--accent) !important; transform: scale(1.1) !important; }
.stat-item:hover .stat-label { color: var(--accent) !important; }
.stat-item:active { transform: scale(0.92) !important; }
@keyframes ripplePop { 0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0.6; } 100% { transform: translate(-50%, -50%) scale(2.5); opacity: 0; } }
.stat-item.clicked::after { content: ''; position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; background: var(--accent); border-radius: 50%; transform: translate(-50%, -50%); animation: ripplePop 0.4s ease-out forwards; z-index: 0; }

.nav-menu { display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--text-secondary); cursor: pointer; transition: all .2s; position: relative !important; overflow: hidden !important; padding-left: 16px !important; }
.nav-item::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%) scaleY(0); width: 4px; height: 60%; background: var(--accent); border-radius: 0 4px 4px 0; transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); opacity: 0; }
.nav-item:hover::before, .nav-item.active::before { transform: translateY(-50%) scaleY(1); opacity: 1; }
.nav-item.active { background: var(--accent); color: #fff; padding-left: 20px !important; }
.nav-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.nav-item .icon { display: flex !important; align-items: center !important; justify-content: center !important; width: 20px; height: 20px; transition: color 0.2s; margin-top: -1px !important; }
.nav-item .icon svg { display: block !important; }
.nav-item.active .icon svg { stroke: #ffffff; }
.nav-item:hover .icon svg { stroke: var(--accent); }

/* ★ 修复徽章在悬浮和激活时的对比度 */
.nav-badge { margin-left: auto; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: var(--accent-15); color: var(--accent); transition: all 0.2s; }
.nav-badge.danger { background: rgba(245, 101, 101, 0.15); color: var(--danger); }
.nav-item:hover .nav-badge { background: var(--accent) !important; color: #ffffff !important; box-shadow: 0 2px 6px var(--accent-30) !important; }
.nav-item:hover .nav-badge.danger { background: var(--danger) !important; color: #ffffff !important; box-shadow: 0 2px 6px rgba(245, 101, 101, 0.3) !important; }
.nav-item.active .nav-badge { background: rgba(255, 255, 255, 0.25) !important; color: #ffffff !important; }

.sidebar-tags { display: flex; flex-direction: column; overflow: hidden; margin-bottom: 12px; transition: min-height 0.3s ease; flex-shrink: 0; margin-top: auto; min-height: 0; }
.sidebar-tags:has(.tag-list:not(.collapsed)) { flex: 1; min-height: 180px; }
.tag-header { display: flex !important; justify-content: space-between !important; align-items: center !important; width: 100% !important; margin-bottom: 12px !important; font-size: 12px; color: var(--text-muted); font-weight: 600; cursor: pointer; user-select: none; flex-shrink: 0; }
.tag-header > span:first-child { display: flex; align-items: center; gap: 6px; }
.tag-header .toggle-icon { font-size: 10px !important; transition: transform 0.3s !important; color: var(--text-muted) !important; display: inline-block !important; }
.tag-header .toggle-icon.expanded { transform: rotate(180deg) !important; }
.tag-list { display: flex !important; flex-direction: column !important; gap: 4px !important; flex: 1 !important; max-height: none !important; overflow-y: auto !important; padding-right: 4px !important; opacity: 1 !important; visibility: visible !important; transition: all 0.3s ease !important; min-height: 100px; }
.tag-list.collapsed { display: none !important; }
.tag-list .sidebar-tag-item { display: flex !important; justify-content: space-between !important; align-items: center !important; padding: 8px 12px !important; border-radius: 10px !important; font-size: 14px !important; color: var(--text-secondary) !important; cursor: pointer !important; transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) !important; border: 1px solid transparent !important; flex-shrink: 0; }
.tag-list .sidebar-tag-item .count { font-size: 12px !important; color: var(--text-muted) !important; background: var(--bg-primary) !important; padding: 2px 8px !important; border-radius: 10px !important; transition: all 0.2s !important; }
.tag-list .sidebar-tag-item:hover { background: var(--bg-secondary) !important; border-color: var(--accent-30) !important; color: var(--accent) !important; transform: translateX(4px) !important; box-shadow: 0 2px 10px var(--accent-10) !important; }
.tag-list .sidebar-tag-item:hover .count { background: var(--accent) !important; color: #fff !important; }
.tag-list .sidebar-tag-item.active { background: var(--gradient) !important; color: #fff !important; border-color: transparent !important; box-shadow: 0 4px 12px var(--accent-30) !important; }
.tag-list .sidebar-tag-item.active .count { background: rgba(255,255,255,0.25) !important; color: #fff !important; font-weight: 700 !important; }

.sidebar-footer { display: flex !important; flex-wrap: wrap !important; justify-content: space-between !important; align-items: center !important; padding: 10px 4px 8px 4px !important; gap: 0 !important; border-top: none !important; margin-top: auto !important; }
.user-info { display: flex !important; align-items: center !important; gap: 8px !important; font-size: 14px !important; color: var(--text-secondary) !important; margin-bottom: 0 !important; }
.auth-dot { display: inline-block !important; width: 11px !important; height: 11px !important; border-radius: 50% !important; cursor: pointer !important; transition: all .2s !important; flex-shrink: 0 !important; position: relative !important; top: -1px !important; }
.auth-dot.online { background: #48bb78 !important; box-shadow: 0 0 0 3px rgba(72,187,120,.25), 0 0 12px rgba(72,187,120,.6) !important; }
.auth-dot.offline { background: #a0aec0 !important; }

.theme-switcher { display: flex !important; align-items: center !important; background: var(--bg-hover) !important; padding: 3px !important; border-radius: 20px !important; gap: 2px !important; width: max-content !important; }
.theme-btn { background: transparent !important; border: none !important; border-radius: 16px !important; width: 32px !important; height: 32px !important; font-size: 0 !important; cursor: pointer !important; display: flex !important; align-items: center !important; justify-content: center !important; transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) !important; position: relative !important; }
.theme-btn:hover { background: var(--bg-secondary) !important; box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important; }
.theme-btn::before { content: ''; display: block; width: 16px; height: 16px; background-size: cover; background-repeat: no-repeat; background-position: center; transition: all 0.3s ease; }
.theme-btn[data-theme="light"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f472b6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='5'%3E%3C/circle%3E%3Cpath d='M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42'%3E%3C/path%3E%3C/svg%3E"); opacity: 0.4; }
.theme-btn[data-theme="light"].active::before { opacity: 1; }
.theme-btn[data-theme="blue"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.69l5.66 5.66a8 8 0 1 1-11.31 0z'%3E%3C/path%3E%3C/svg%3E"); opacity: 0.4; }
.theme-btn[data-theme="blue"].active::before { opacity: 1; }
.theme-btn[data-theme="dark"]::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a855f7' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z'%3E%3C/path%3E%3C/svg%3E"); opacity: 0.4; }
.theme-btn[data-theme="dark"].active::before { opacity: 1; }
.theme-btn.active { background: var(--bg-secondary) !important; box-shadow: 0 2px 10px rgba(0,0,0,0.08) !important; transform: scale(1.05); }

/* ---------- 4. 右侧主区域与顶栏 ---------- */
.main-content { 
  flex: 1; display: flex; flex-direction: column; 
  padding: 40px 20px !important; 
  max-width: 680px !important; 
  margin: 0 auto; width: 100%; 
  box-sizing: border-box; min-width: 0; 
  background: transparent !important;
}
.top-bar { display: flex !important; flex-wrap: nowrap !important; align-items: center !important; justify-content: space-between !important; width: 100% !important; gap: 12px !important; position: relative !important; min-height: 44px !important; margin-bottom: 20px !important; position: sticky !important; top: 0 !important; z-index: 900 !important; background: rgba(242, 244, 247, 0.85) !important; backdrop-filter: blur(12px) !important; -webkit-backdrop-filter: blur(12px) !important; padding: 16px 0 !important; margin-top: -16px !important; border-bottom: 1px solid transparent; transition: border-color 0.3s, background 0.3s; }
[data-theme="dark"] .top-bar { background: rgba(11, 14, 20, 0.85) !important; }
[data-theme="blue"] .top-bar { background: rgba(240, 244, 248, 0.85) !important; }
.top-left { display: flex !important; align-items: center !important; gap: 12px !important; flex: 1 1 auto !important; min-width: 0 !important; }
.page-title { font-size: 20px !important; font-weight: 700 !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; }
.menu-toggle-btn { display: none; background: transparent; border: none; font-size: 24px; cursor: pointer; color: var(--text-primary); padding: 4px; transition: transform 0.2s; }
.menu-toggle-btn:active { transform: scale(0.9); }

.search-container { flex-shrink: 0 !important; position: relative !important; display: flex !important; align-items: center !important; }
.search-toggle-btn { background: transparent !important; border: none !important; color: var(--text-secondary) !important; cursor: pointer !important; padding: 6px !important; border-radius: 50% !important; display: flex !important; align-items: center !important; justify-content: center !important; transition: all 0.2s !important; }
.search-toggle-btn:hover { background: var(--bg-hover) !important; color: var(--accent) !important; }
.search-toggle-btn.hidden { display: none !important; }
.search-box { position: absolute !important; right: 100% !important; top: 50% !important; transform: translateY(-50%) !important; margin-right: 12px !important; display: flex !important; align-items: center !important; background: var(--bg-secondary) !important; border-radius: 8px !important; padding: 0 !important; border: 1px solid transparent !important; transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) !important; height: 36px !important; width: 0 !important; opacity: 0 !important; overflow: hidden !important; pointer-events: none !important; box-shadow: 0 4px 20px rgba(0,0,0,0.05) !important; box-sizing: border-box !important; z-index: 100 !important; }
.search-box.active { width: 260px !important; opacity: 1 !important; pointer-events: auto !important; padding: 0 16px !important; border-color: var(--accent-35) !important; box-shadow: 0 0 0 3px var(--accent-15) !important; }
.search-box .search-icon { color: var(--text-muted) !important; margin-right: 8px !important; font-size: 14px !important; display: flex !important; align-items: center !important; }
.search-box .search-icon svg { width: 16px !important; height: 16px !important; }
.search-box .search-input { font-size: 14px !important; width: 100% !important; border: none !important; background: transparent !important; outline: none !important; color: var(--text-primary) !important; }
.search-clear-btn { background: transparent; border: none; color: var(--text-muted); cursor: pointer; font-size: 16px; padding: 0; }

@media (min-width: 769px) {
    .search-toggle-btn { display: none !important; }
    .search-box { 
        position: relative !important; 
        right: auto !important; 
        transform: none !important; 
        width: 220px !important; 
        opacity: 1 !important; 
        pointer-events: auto !important; 
        padding: 0 14px !important; 
        height: 38px !important; 
        margin-right: 0 !important; 
        border: 1.5px solid var(--border-color) !important; 
        border-radius: 20px !important; 
        box-shadow: 0 2px 10px rgba(0,0,0,0.02) !important; 
    }
    
    /* 放大镜图标 */
    .search-box .search-icon { font-size: 0 !important; }
    .search-box .search-icon::before { 
        content: ''; 
        display: block; 
        width: 16px; 
        height: 16px; 
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E"); 
        background-size: cover; 
    }
    
    /* 悬浮与聚焦动效 */
    .search-box:hover { 
        border-color: var(--accent-30) !important; 
        box-shadow: 0 4px 12px var(--accent-10) !important; 
    }
    .search-box.active, .search-box:focus-within { 
        width: 260px !important; 
        border-color: var(--accent) !important; 
        box-shadow: 0 0 0 3px var(--accent-15), 0 4px 12px var(--accent-10) !important; 
    }

    /* ★ 核心修改：彻底干掉原生的 Ctrl K 伪元素 */
    .search-box::after { 
        display: none !important; 
        content: none !important; 
    }
}

@media (max-width: 768px) {
    .top-bar { overflow: hidden !important; gap: 0 !important; padding: 12px 16px !important; margin-top: -12px !important; margin-left: -16px !important; margin-right: -16px !important; width: calc(100% + 32px) !important; }
    .top-left { transition: all 0.3s ease !important; flex-shrink: 1 !important; min-width: 0 !important; }
    .top-bar:has(.search-box.active) .top-left,
    .top-bar.search-open .top-left { width: 0 !important; opacity: 0 !important; margin: 0 !important; padding: 0 !important; overflow: hidden !important; }
    /* ★ 同时给搜索框兜底：不支持 :has 时用 search-open */
    .top-bar.search-open .search-container { flex: 1 1 100% !important; width: 100% !important; }
    .top-bar.search-open .search-toggle-btn { display: none !important; }
    .search-container { transition: all 0.3s ease !important; margin: 0 !important; padding: 0 !important; }
    .top-bar:has(.search-box.active) .search-container { flex: 1 1 100% !important; width: 100% !important; }
    .top-bar:has(.search-box.active) .search-toggle-btn { display: none !important; }
    .search-box.active { position: relative !important; right: auto !important; top: auto !important; transform: none !important; width: 100% !important; height: 42px !important; margin: 0 !important; padding: 0 14px !important; box-sizing: border-box !important; opacity: 1 !important; pointer-events: auto !important; border: 1.5px solid var(--accent-35) !important; border-radius: 12px !important; box-shadow: 0 0 0 3px var(--accent-15) !important; background: var(--bg-secondary) !important; }
    #pageTitle svg { display: none !important; }
}

/* ---------- 5. 通用按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 20px; border: none; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all var(--transition); background: var(--bg-hover); color: var(--text-primary); text-decoration: none; user-select: none; white-space: nowrap; font-family: inherit; min-height: 44px; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--gradient); background-size: 200% 200%; color: #fff; box-shadow: 0 4px 16px var(--accent-35); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #e53e3e; color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #38a169; color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid var(--border-color); }
.btn-outline:hover { background: var(--bg-hover); border-color: var(--accent); }

/* ---------- 6. 核心笔记卡片 ---------- */
#mainNoteList { display: flex; flex-direction: column; gap: 16px; padding: 0; }
.note-card {
    border-radius: 14px !important; 
    padding: 24px !important; 
    word-break: break-word; overflow-wrap: break-word; max-width: 100%; position: relative; cursor: pointer; display: flex !important; flex-direction: column !important; height: auto !important; min-height: 0 !important;
    animation: cardStaggerIn 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; animation-delay: calc(var(--i, 0) * 40ms);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    margin-bottom: 0px !important;
    overflow: hidden !important; 
    word-wrap: break-word !important;
}

/* 亮色卡片 */
#mainNoteList > .note-card {
    background-color: #ffffff !important;
    border: 1px solid #d1d5db !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
}
#mainNoteList > .note-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-2px) !important;
    border-color: #9ca3af !important;
}

/* 暗黑卡片 */
html[data-theme="dark"] #mainNoteList > .note-card {
    background-color: #181d28 !important; 
    border: 1px solid #374151 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}
html[data-theme="dark"] #mainNoteList > .note-card:hover {
    background-color: #23293a !important;
    border-color: #4b5563 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6) !important;
}

.view-container { animation: viewFadeIn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
@keyframes viewFadeIn { 0% { opacity: 0; transform: translateY(15px) scale(0.99); filter: blur(4px); } 100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }
@keyframes cardStaggerIn { 0% { opacity: 0; transform: translateY(20px) scale(0.97); } 100% { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 768px) {
    @keyframes viewFadeIn { 0% { opacity: 0; transform: translateY(10px); } 100% { opacity: 1; transform: translateY(0); } }
    @keyframes cardStaggerIn { 0% { opacity: 0; transform: translateY(12px); } 100% { opacity: 1; transform: translateY(0); } }
}

/* 卡片头部与菜单 */
.note-card .menu-wrapper { position: relative !important; top: auto !important; right: auto !important; margin: -4px -8px -4px 0; z-index: 100 !important; }
.note-card .menu-wrapper .card-menu-btn { background: transparent; border: none; border-radius: 6px; font-size: 18px; font-weight: 700; color: var(--text-muted); cursor: pointer; padding: 2px 8px; line-height: 1.4; transition: all .2s; display: flex; align-items: center; justify-content: center; }
.note-card .menu-wrapper .card-menu-btn:hover { background: var(--bg-hover); color: var(--text-primary); }
.note-card .menu-wrapper .card-dropdown { display: none; position: absolute; top: 100%; right: 0; background: rgba(255, 255, 255, 0.95) !important; backdrop-filter: blur(20px) saturate(1.8) !important; -webkit-backdrop-filter: blur(20px) saturate(1.8) !important; border: 1px solid var(--border-color) !important; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 2px 10px rgba(0, 0, 0, 0.04) !important; border-radius: 14px !important; padding: 6px !important; min-width: 120px !important; z-index: 9999 !important; overflow: hidden; margin-top: 4px; opacity: 0 !important; visibility: hidden !important; transform: translateY(-10px) scale(0.95) !important; transform-origin: top right !important; transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) !important; pointer-events: none !important; }
[data-theme="dark"] .note-card .menu-wrapper .card-dropdown { background: rgba(30, 33, 45, 0.95) !important; }
.note-card .menu-wrapper .card-dropdown.active { display: block !important; opacity: 1 !important; visibility: visible !important; transform: translateY(0) scale(1) !important; pointer-events: auto !important; }
.note-card .menu-wrapper .card-dropdown .menu-item { border-radius: 8px !important; padding: 10px 14px !important; margin-bottom: 2px !important; font-size: 14px !important; font-weight: 500 !important; transition: all 0.2s ease !important; display: flex !important; align-items: center !important; gap: 8px !important; width: 100%; border: none; background: transparent; text-align: left; color: var(--text-primary); cursor: pointer; font-family: inherit; }
.note-card .menu-wrapper .card-dropdown .menu-item:last-child { margin-bottom: 0 !important; }
.note-card .menu-wrapper .card-dropdown .menu-item:hover { background: var(--bg-hover) !important; transform: translateX(2px) !important; color: var(--accent) !important; }
.note-card .menu-wrapper .card-dropdown .menu-item.danger { color: var(--danger) !important; }
.note-card .menu-wrapper .card-dropdown .menu-item.danger:hover { background: rgba(245, 101, 101, 0.1) !important; color: var(--danger) !important; }

/* 解决下拉菜单被卡片遮挡的问题 */
#mainNoteList > .note-card:focus-within,
#mainNoteList > .note-card:hover,
.note-card:has(.card-dropdown.active) {
    z-index: 99 !important; 
    overflow: visible !important; 
}

.note-card .card-body { display: flex; flex-direction: column; gap: 8px !important; height: auto !important; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px !important; width: 100%; }
.card-header .header-left { display: flex; align-items: center; gap: 8px; }

/* 时间胶囊（高级轻盈版） */
.note-card .card-header .date {
    font-size: 11px !important; font-weight: 500 !important; letter-spacing: 0.5px !important;
    background: rgba(0, 0, 0, 0.03) !important; color: #64748b !important;
    padding: 3px 10px !important; border-radius: 20px !important;
    border: 1px solid rgba(0, 0, 0, 0.02) !important;
    display: inline-flex !important; align-items: center !important;
}
[data-theme="dark"] .note-card .card-header .date {
    background: rgba(255, 255, 255, 0.06) !important;
    color: #94a3b8 !important;
    border: 1px solid rgba(255, 255, 255, 0.04) !important;
}
.note-card .card-header .date::before { display: none !important; }

/* 卡片图片与骨架屏 */
.note-card .card-images { display: grid; gap: 4px; border-radius: 12px; overflow: hidden; margin: 16px 0 20px !important; width: 100%; max-width: 100%; }
.note-card .card-images .img-item { overflow: hidden; position: relative; cursor: pointer; border-radius: 8px !important; background: var(--bg-hover) !important; animation: imgBreatheSoft 6s ease-in-out infinite !important; border: 1px solid rgba(0,0,0,0.03) !important; }
[data-theme="dark"] .note-card .card-images .img-item { border-color: rgba(255,255,255,0.06) !important; }
@keyframes imgBreatheSoft { 0%, 100% { opacity: 1; } 50% { opacity: 0.65; } }
.note-card .card-images .img-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease !important; opacity: 0; }
.note-card .card-images .img-item img[src] { opacity: 1; }
.note-card .card-images .img-item img:hover { transform: scale(1.03); }
.note-card .card-images.single { display: block; width: 100%; background: transparent; }
.note-card .card-images.single .img-item { width: 100%; aspect-ratio: 16 / 9; max-height: 420px; border-radius: 12px !important; background: var(--bg-hover); box-shadow: 0 8px 24px rgba(0,0,0,0.06) !important; border: 1px solid var(--border-color) !important; }
.note-card .card-images.single .img-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.note-card .card-images.grid-2 { grid-template-columns: repeat(2, 1fr); aspect-ratio: 2 / 1; }
.note-card .card-images.grid-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 4 / 3; }
.note-card .card-images.grid-3 .img-item:first-child { grid-row: 1 / 3; }
.note-card .card-images.grid-3 .img-item { height: 100%; }
.note-card .card-images.grid-4 { grid-template-columns: repeat(2, 1fr); aspect-ratio: 1 / 1; }
.note-card .card-images.grid-many { grid-template-columns: repeat(3, 1fr); gap: 4px; }
.note-card .card-images.grid-many .img-item { aspect-ratio: 1 / 1; }

/* 排版与富文本（无灰底版） */
.note-card .card-text { position: relative; padding-top: 2px; margin-bottom: 0 !important; overflow: visible !important; }
.note-card .card-text-inner { 
    display: block !important; 
    line-height: 1.8 !important; 
    font-size: 15px !important; 
    letter-spacing: 0.01em !important;
    color: #1e293b !important; 
    white-space: pre-wrap !important; 
    overflow-wrap: anywhere !important; 
    word-break: break-all !important; 
    min-height: 0 !important; 
    height: auto !important; 
    max-height: none !important; 
    padding: 0 !important; 
    margin: 0 !important; 
    background: transparent !important; 
}
[data-theme="dark"] .note-card .card-text-inner { color: #e2e8f0 !important; }
.note-card .card-text-inner * { box-sizing: border-box !important; }
.note-card .card-text-inner p, .note-card .card-text-inner div { background: transparent !important; border: none !important; box-shadow: none !important; }
.note-card .card-text-inner p { margin: 0 !important; padding: 0 !important; display: inline !important; }
.note-card .card-text-inner strong { display: inline !important; font-weight: bold !important; color: var(--text-primary) !important; }
.note-card .card-text-inner br { display: block !important; content: "" !important; margin-bottom: 12px !important; }
.md-list-item, .md-todo { display: block !important; margin: 2px 0 !important; padding: 0 !important; }

/* 极简引用块（Notion 风格） */
.note-card .card-text-inner blockquote.md-quote,
.note-card .card-text-inner blockquote,
.note-card .card-text-inner p:has(> span[style*="background"]), 
.note-card .card-text-inner div[style*="background"] {
    background: transparent !important; 
    border: none !important;
    box-shadow: none !important;
    border-left: 3px solid var(--accent) !important;
    border-radius: 0 8px 8px 0 !important;
    padding: 6px 14px !important;
    margin: 12px 0 !important;
    color: var(--text-secondary) !important;
    font-style: normal !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
}
[data-theme="dark"] .note-card .card-text-inner blockquote.md-quote,
[data-theme="dark"] .note-card .card-text-inner blockquote,
[data-theme="dark"] .note-card .card-text-inner p:has(> span[style*="background"]), 
[data-theme="dark"] .note-card .card-text-inner div[style*="background"] {
    color: #cbd5e1 !important;
    border-left-color: var(--accent) !important;
}

/* 代码块 */
.note-card .card-text-inner code.md-code-inline { background: var(--bg-hover) !important; color: var(--accent) !important; padding: 2px 6px !important; border-radius: 6px !important; font-family: monospace !important; font-size: 14px !important; }
.note-card .card-text-inner pre.md-code-block { background: var(--bg-hover) !important; padding: 12px 16px !important; border-radius: 10px !important; margin: 10px 0 !important; display: block !important; white-space: pre-wrap !important; border: 1px solid var(--border-color) !important; }

/* 20 行折叠逻辑（带完美右浮动按钮） */
.note-card .card-text.collapsed { 
    position: relative !important; 
    max-height: 28em !important; 
    overflow: hidden !important; 
    display: block !important; 
    padding-bottom: 24px !important; 
}
.note-card .card-text.collapsed::after { 
    content: '' !important; 
    position: absolute !important; 
    bottom: 0 !important; 
    left: 0 !important; 
    right: 0 !important; 
    height: 80px !important; 
    background: linear-gradient(to bottom, transparent, var(--bg-secondary) 90%) !important; 
    pointer-events: none !important; 
    z-index: 5 !important; 
}
[data-theme="dark"] .note-card .card-text.collapsed::after { background: linear-gradient(to bottom, transparent, #181d28 90%) !important; }
.note-card .card-text.expanded { max-height: none !important; overflow: visible !important; }
.note-card .card-text.expanded::after { display: none !important; }
.note-card .card-text.collapsed { position: relative; }
.note-card .card-toggle {
    display: none;
    position: absolute !important;
    left: 50% !important;
    bottom: 10px !important;
    transform: translateX(-50%) !important;
    z-index: 10 !important;
    padding: 6px 18px !important;
    background: var(--bg-secondary) !important;
    color: var(--accent) !important;
    border: 1px solid var(--accent-30) !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06) !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
}
.note-card .card-text.expanded .card-toggle {
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin: 10px auto 0 !important;
    display: block !important;
}
.note-card .card-toggle:hover { background: var(--accent) !important; color: #fff !important; border-color: var(--accent) !important; transform: translateX(-50%) translateY(-2px) !important; }

/* 卡片底部分割线与图标弱化 */
.note-card .card-footer { 
    margin-top: 16px !important; 
    padding-top: 14px !important; 
    border-top: 1px solid rgba(0, 0, 0, 0.04) !important; 
    display: flex !important; 
    justify-content: flex-end !important; 
    align-items: center !important; 
    width: 100% !important;
    height: auto !important; 
    box-sizing: border-box !important;
}
[data-theme="dark"] .note-card .card-footer { border-top-color: rgba(255, 255, 255, 0.06) !important; }
.note-card .card-footer .footer-right { display: flex !important; align-items: center !important; gap: 16px !important; margin: 0 !important; padding: 0 !important; flex-shrink: 0 !important; }

.note-card .like-btn, .note-card .share-btn { color: #94a3b8 !important; transition: color 0.2s !important; }
[data-theme="dark"] .note-card .like-btn, [data-theme="dark"] .note-card .share-btn { color: #64748b !important; }
.note-card .like-btn:hover, .note-card .share-btn:hover { color: var(--accent) !important; }

/* 彩色背景卡片专属 */
.note-card.note-bg-softpink { border-left: 4px solid #f9a8d4 !important; background: #fffafb !important; }
.note-card.note-bg-softblue { border-left: 4px solid #93c5fd !important; background: #f8fbff !important; }
.note-card.note-bg-softgreen { border-left: 4px solid #86efac !important; background: #f8fdf9 !important; }
.note-card.note-bg-softyellow { border-left: 4px solid #fde047 !important; background: #fffdf5 !important; }
.note-card.note-bg-softpurple { border-left: 4px solid #d8b4fe !important; background: #fdfbff !important; }
.note-card.note-bg-softorange { border-left: 4px solid #fdba74 !important; background: #fffbf7 !important; }
.note-card.note-bg-softgray { border-left: 4px solid #cbd5e1 !important; background: #fafafa !important; }
[data-theme="dark"] .note-card.note-bg-softpink { background: #2d1b22 !important; }
[data-theme="dark"] .note-card.note-bg-softblue { background: #1a222d !important; }
[data-theme="dark"] .note-card.note-bg-softgreen { background: #1a2b1f !important; }
[data-theme="dark"] .note-card.note-bg-softyellow { background: #2b2a1a !important; }
[data-theme="dark"] .note-card.note-bg-softpurple { background: #251a2d !important; }
[data-theme="dark"] .note-card.note-bg-softorange { background: #2d221a !important; }
[data-theme="dark"] .note-card.note-bg-softgray { background: #222222 !important; }

/* =========================================
   记忆唤醒卡片 (极简基础版 + 日期胶囊)
   ========================================= */
.note-card-wakeup {
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate !important; 
    min-height: 140px !important;
    padding: 36px 24px 20px 24px !important;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease !important;
    z-index: 1;
    border-radius: 16px !important;
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}
.note-card-wakeup:hover { transform: translateY(-4px) scale(1.01) !important; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1) !important; }
.note-card-wakeup .card-body { position: relative !important; z-index: 10 !important; }
.note-card-wakeup .card-text-inner { color: var(--text-primary) !important; }
.note-card-wakeup .wakeup-tag { position: absolute !important; top: 0 !important; left: 50% !important; transform: translateX(-50%) !important; z-index: 20 !important; font-size: 11px !important; font-weight: 700 !important; padding: 4px 16px !important; border-radius: 0 0 12px 12px !important; background: var(--accent) !important; color: #fff !important; }

/* 唤醒卡底部日期胶囊（与普通卡片时间胶囊统一） */
.note-card-wakeup .wakeup-date-pill {
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
    background: rgba(0, 0, 0, 0.04) !important;
    color: var(--text-muted) !important;
    padding: 3px 10px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(0, 0, 0, 0.04) !important;
    display: inline-flex !important;
    align-items: center !important;
}
[data-theme="dark"] .note-card-wakeup .wakeup-date-pill {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
    color: #94a3b8 !important;
}

/* =============================================================
   记忆唤醒卡片 · 新增 12 款主题
   用法：整段追加到原有「记忆唤醒卡片」样式块之后即可。
        命名沿用 .wakeup-style-xxx / [data-theme="dark"] / .wakeup-tag /
        .card-text-inner，与现有 7 款互不冲突，可整段替换，也可只取其中几款。
   切换：把卡片的 class 换成对应 .wakeup-style-xxx 即可。
   纹理全部为内联 SVG（base64 编码），无外部依赖、无网络请求。
   注意：3 号胶片与 5 号方格建议给卡片留左侧内边距（见文件末尾注释）。
   ============================================================= */

/* ---------- 公共动画 ---------- */
@keyframes wakeGlassDrift {
    0%   { transform: translate3d(-4%, -3%, 0) scale(1); }
    100% { transform: translate3d(4%, 4%, 0) scale(1.14); }
}
@media (prefers-reduced-motion: reduce) {
    .wakeup-style-glass::before { animation: none !important; }
}

/* =============================================================
   1. 纸感 —— 米白纤维纸，无卡片边框感，标签为极细下划线
   ============================================================= */
.wakeup-style-paper {
    background-color: #f7f3e9 !important;
    background-image:
        url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxODAnIGhlaWdodD0nMTgwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC44NScgbnVtT2N0YXZlcz0nMycgc3RpdGNoVGlsZXM9J3N0aXRjaCcvPjxmZUNvbG9yTWF0cml4IHR5cGU9J3NhdHVyYXRlJyB2YWx1ZXM9JzAnLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0nMTgwJyBoZWlnaHQ9JzE4MCcgZmlsdGVyPSd1cmwoI24pJyBvcGFjaXR5PScwLjE4Jy8+PC9zdmc+"),
        radial-gradient(130% 100% at 12% 4%, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, 0) 58%),
        linear-gradient(180deg, rgba(255, 252, 244, .5) 0%, rgba(244, 238, 224, .25) 100%) !important;
    background-size: 180px 180px, auto, auto !important;
    background-position: 0 0, center, center !important;
    background-repeat: repeat, no-repeat, no-repeat !important;
    border: 1px solid #e8e1cf !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 3px 12px -4px rgba(122, 104, 70, .16) !important;
}
.wakeup-style-paper .card-text-inner {
    color: #3e3729 !important;
    letter-spacing: .02em !important;
}
.wakeup-style-paper .wakeup-tag {
    background: transparent !important;
    color: #8a7856 !important;
    border: none !important;
    border-bottom: 1px solid #d8ceb6 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    letter-spacing: .18em !important;
}
[data-theme="dark"] .wakeup-style-paper {
    background-color: #201d17 !important;
    background-image:
        url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxODAnIGhlaWdodD0nMTgwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC44NScgbnVtT2N0YXZlcz0nMycgc3RpdGNoVGlsZXM9J3N0aXRjaCcvPjxmZUNvbG9yTWF0cml4IHR5cGU9J3NhdHVyYXRlJyB2YWx1ZXM9JzAnLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0nMTgwJyBoZWlnaHQ9JzE4MCcgZmlsdGVyPSd1cmwoI24pJyBvcGFjaXR5PScwLjE4Jy8+PC9zdmc+"),
        radial-gradient(120% 90% at 10% 2%, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, 0) 60%) !important;
    background-size: 180px 180px, auto !important;
    background-position: 0 0, center !important;
    background-repeat: repeat, no-repeat !important;
    border-color: #322d24 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 4px 18px -6px rgba(0, 0, 0, .65) !important;
}
[data-theme="dark"] .wakeup-style-paper .card-text-inner { color: #ece3cf !important; }
[data-theme="dark"] .wakeup-style-paper .wakeup-tag {
    background: transparent !important;
    color: #cbbfa2 !important;
    border-bottom-color: rgba(255, 255, 255, .16) !important;
}

/* =============================================================
   2. 玻璃微光 —— 磨砂玻璃 + 液态色团 + 极淡涟漪环
   ============================================================= */
.wakeup-style-glass {
    background: linear-gradient(160deg, rgba(255, 255, 255, .9) 0%, rgba(246, 249, 255, .84) 100%) !important;
    border: 1px solid rgba(255, 255, 255, .85) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .95),
        inset 0 0 30px rgba(160, 190, 235, .16),
        0 12px 32px -14px rgba(38, 70, 130, .34) !important;
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
}
.wakeup-style-glass::before {
    content: '' !important;
    position: absolute !important;
    inset: -35% -12% !important;
    z-index: -1 !important;
    pointer-events: none !important;
    background:
        radial-gradient(closest-side at 20% 30%, rgba(126, 176, 255, .34) 0%, rgba(126, 176, 255, 0) 100%),
        radial-gradient(closest-side at 82% 74%, rgba(255, 168, 200, .2) 0%, rgba(255, 168, 200, 0) 100%),
        radial-gradient(closest-side at 62% 12%, rgba(160, 245, 226, .22) 0%, rgba(160, 245, 226, 0) 100%) !important;
    filter: blur(30px) !important;
    animation: wakeGlassDrift 18s ease-in-out infinite alternate !important;
}
.wakeup-style-glass::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: -1 !important;
    pointer-events: none !important;
    background: repeating-radial-gradient(circle at 78% 86%,
        rgba(120, 165, 225, .07) 0 30px,
        rgba(120, 165, 225, 0) 31px 52px) !important;
    opacity: .4 !important;
    filter: blur(7px) !important;
}
.wakeup-style-glass .card-text-inner { color: #1b2a44 !important; }
.wakeup-style-glass .wakeup-tag {
    background: rgba(255, 255, 255, .75) !important;
    color: #4a6b9d !important;
    border: 1px solid rgba(255, 255, 255, .9) !important;
    box-shadow: 0 2px 10px -3px rgba(60, 100, 170, .32) !important;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
[data-theme="dark"] .wakeup-style-glass {
    background: linear-gradient(160deg, rgba(18, 30, 48, .92) 0%, rgba(7, 11, 18, .94) 100%) !important;
    border-color: rgba(150, 200, 255, .24) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .14),
        inset 0 0 40px rgba(56, 130, 200, .16),
        0 16px 44px -18px rgba(0, 10, 30, .95) !important;
}
[data-theme="dark"] .wakeup-style-glass::before {
    background:
        radial-gradient(closest-side at 20% 34%, rgba(60, 150, 255, .3) 0%, rgba(60, 150, 255, 0) 100%),
        radial-gradient(closest-side at 82% 76%, rgba(120, 90, 255, .2) 0%, rgba(120, 90, 255, 0) 100%),
        radial-gradient(closest-side at 55% 10%, rgba(0, 210, 200, .16) 0%, rgba(0, 210, 200, 0) 100%) !important;
    filter: blur(34px) !important;
}
[data-theme="dark"] .wakeup-style-glass::after {
    background: repeating-radial-gradient(circle at 78% 86%,
        rgba(120, 190, 255, .08) 0 30px,
        rgba(120, 190, 255, 0) 31px 52px) !important;
    opacity: .34 !important;
    filter: blur(7px) !important;
}
[data-theme="dark"] .wakeup-style-glass .card-text-inner { color: #eaf2ff !important; }
[data-theme="dark"] .wakeup-style-glass .wakeup-tag {
    background: rgba(255, 255, 255, .06) !important;
    color: #8fc4ff !important;
    border-color: rgba(150, 200, 255, .28) !important;
    box-shadow: none !important;
}

/* =============================================================
   3. 时光胶片 —— 左侧齿孔边、颗粒、暗角、右上暖漏光
   ============================================================= */
.wakeup-style-film {
    background-color: #f2ebdf !important;
    background-image:
        url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxODAnIGhlaWdodD0nMTgwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC44NScgbnVtT2N0YXZlcz0nMycgc3RpdGNoVGlsZXM9J3N0aXRjaCcvPjxmZUNvbG9yTWF0cml4IHR5cGU9J3NhdHVyYXRlJyB2YWx1ZXM9JzAnLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0nMTgwJyBoZWlnaHQ9JzE4MCcgZmlsdGVyPSd1cmwoI24pJyBvcGFjaXR5PScwLjMyJy8+PC9zdmc+"),
        radial-gradient(70% 90% at 96% 0%, rgba(255, 196, 120, .42) 0%, rgba(255, 196, 120, 0) 60%),
        radial-gradient(120% 120% at 50% 50%, rgba(255, 255, 255, 0) 52%, rgba(92, 62, 28, .2) 100%) !important;
    background-size: 180px 180px, auto, auto !important;
    background-position: 0 0, center, center !important;
    background-repeat: repeat, no-repeat, no-repeat !important;
    border: 1px solid #e0d3bc !important;
    box-shadow: inset 0 0 22px rgba(120, 86, 44, .14) !important;
}
.wakeup-style-film::after {
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 22px !important;
    z-index: -1 !important;
    pointer-events: none !important;
    background-color: rgba(56, 42, 26, .55) !important;
    background-image: repeating-linear-gradient(180deg,
        rgba(250, 244, 232, .95) 0 5px,
        rgba(250, 244, 232, 0) 5px 13px,
        rgba(250, 244, 232, .95) 13px 18px,
        rgba(250, 244, 232, 0) 18px 26px) !important;
    background-size: 9px 26px !important;
    background-position: center top !important;
    background-repeat: repeat-y !important;
}
.wakeup-style-film .card-text-inner {
    color: #4a3a25 !important;
    letter-spacing: .03em !important;
}
.wakeup-style-film .wakeup-tag {
    background: rgba(74, 58, 37, .1) !important;
    color: #6b5232 !important;
    border: none !important;
    border-left: 2px solid #b8874e !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    letter-spacing: .14em !important;
}
[data-theme="dark"] .wakeup-style-film {
    background-color: #211a12 !important;
    background-image:
        url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxODAnIGhlaWdodD0nMTgwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC44NScgbnVtT2N0YXZlcz0nMycgc3RpdGNoVGlsZXM9J3N0aXRjaCcvPjxmZUNvbG9yTWF0cml4IHR5cGU9J3NhdHVyYXRlJyB2YWx1ZXM9JzAnLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0nMTgwJyBoZWlnaHQ9JzE4MCcgZmlsdGVyPSd1cmwoI24pJyBvcGFjaXR5PScwLjMyJy8+PC9zdmc+"),
        radial-gradient(70% 90% at 96% 0%, rgba(255, 170, 80, .18) 0%, rgba(255, 170, 80, 0) 62%),
        radial-gradient(120% 120% at 50% 50%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .55) 100%) !important;
    background-size: 180px 180px, auto, auto !important;
    background-position: 0 0, center, center !important;
    background-repeat: repeat, no-repeat, no-repeat !important;
    border-color: #3a2f21 !important;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, .6) !important;
}
[data-theme="dark"] .wakeup-style-film::after { background-color: rgba(12, 8, 4, .75) !important; }
[data-theme="dark"] .wakeup-style-film .card-text-inner { color: #e4d3b6 !important; }
[data-theme="dark"] .wakeup-style-film .wakeup-tag {
    background: rgba(232, 190, 130, .1) !important;
    color: #d9a463 !important;
    border-left-color: #b0793c !important;
}

/* =============================================================
   4. 墨痕朱印 —— 宣纸淡墨晕染，标签即朱印
   ============================================================= */
.wakeup-style-ink {
    background-color: #f6f1e6 !important;
    background-image:
        radial-gradient(70% 56% at 4% 0%, rgba(52, 52, 52, .17) 0%, rgba(52, 52, 52, 0) 66%),
        radial-gradient(48% 40% at 98% 100%, rgba(40, 40, 40, .13) 0%, rgba(40, 40, 40, 0) 74%),
        url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxODAnIGhlaWdodD0nMTgwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC44NScgbnVtT2N0YXZlcz0nMycgc3RpdGNoVGlsZXM9J3N0aXRjaCcvPjxmZUNvbG9yTWF0cml4IHR5cGU9J3NhdHVyYXRlJyB2YWx1ZXM9JzAnLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0nMTgwJyBoZWlnaHQ9JzE4MCcgZmlsdGVyPSd1cmwoI24pJyBvcGFjaXR5PScwLjE4Jy8+PC9zdmc+") !important;
    background-size: auto, auto, 180px 180px !important;
    background-position: center, center, 0 0 !important;
    background-repeat: no-repeat, no-repeat, repeat !important;
    border: 1px solid #ddd2bd !important;
    box-shadow: inset 0 0 40px rgba(120, 105, 80, .1) !important;
}
.wakeup-style-ink .card-text-inner {
    color: #2f2b24 !important;
    letter-spacing: .06em !important;
}
.wakeup-style-ink .wakeup-tag {
    background: #a8342a !important;
    color: #f7efe0 !important;
    border: none !important;
    border-radius: 3px !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32), 0 1px 3px rgba(120, 40, 30, .4) !important;
    letter-spacing: .2em !important;
    text-indent: .2em !important;
}
[data-theme="dark"] .wakeup-style-ink {
    background-color: #1a1815 !important;
    background-image:
        radial-gradient(70% 56% at 4% 0%, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, 0) 66%),
        radial-gradient(48% 40% at 98% 100%, rgba(255, 255, 255, .06) 0%, rgba(255, 255, 255, 0) 74%),
        url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxODAnIGhlaWdodD0nMTgwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC44NScgbnVtT2N0YXZlcz0nMycgc3RpdGNoVGlsZXM9J3N0aXRjaCcvPjxmZUNvbG9yTWF0cml4IHR5cGU9J3NhdHVyYXRlJyB2YWx1ZXM9JzAnLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0nMTgwJyBoZWlnaHQ9JzE4MCcgZmlsdGVyPSd1cmwoI24pJyBvcGFjaXR5PScwLjE4Jy8+PC9zdmc+") !important;
    background-size: auto, auto, 180px 180px !important;
    background-position: center, center, 0 0 !important;
    background-repeat: no-repeat, no-repeat, repeat !important;
    border-color: #33302a !important;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, .45) !important;
}
[data-theme="dark"] .wakeup-style-ink .card-text-inner { color: #ece2cf !important; }
[data-theme="dark"] .wakeup-style-ink .wakeup-tag {
    background: #8f2b22 !important;
    color: #f3e6d2 !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18) !important;
}

/* =============================================================
   5. 方格稿纸 —— 交易复盘方格 + 左侧红边线
   ============================================================= */
.wakeup-style-grid {
    background-color: #fbfaf6 !important;
    background-image:
        linear-gradient(90deg, rgba(191, 74, 64, .32) 0 1px, transparent 1px),
        linear-gradient(rgba(88, 116, 150, .22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(88, 116, 150, .22) 1px, transparent 1px) !important;
    background-size: 100% 100%, 26px 26px, 26px 26px !important;
    background-position: 26px 0, 0 0, 0 0 !important;
    background-repeat: no-repeat, repeat, repeat !important;
    border: 1px solid #e2e2da !important;
    box-shadow: inset 0 0 24px rgba(150, 160, 175, .08) !important;
}
.wakeup-style-grid .card-text-inner {
    color: #22303f !important;
    font-family: 'SF Mono', 'JetBrains Mono', Consolas, 'PingFang SC', monospace !important;
    letter-spacing: .01em !important;
}
.wakeup-style-grid .wakeup-tag {
    background: #eef1f0 !important;
    color: #4f6478 !important;
    border: 1px solid #dbdfd9 !important;
    border-radius: 2px !important;
    box-shadow: none !important;
    font-family: 'SF Mono', 'JetBrains Mono', Consolas, 'PingFang SC', monospace !important;
    letter-spacing: .1em !important;
}
[data-theme="dark"] .wakeup-style-grid {
    background-color: #14171c !important;
    background-image:
        linear-gradient(90deg, rgba(239, 110, 100, .3) 0 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .08) 1px, transparent 1px) !important;
    border-color: #262b33 !important;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, .4) !important;
}
[data-theme="dark"] .wakeup-style-grid .card-text-inner { color: #d7e0ea !important; }
[data-theme="dark"] .wakeup-style-grid .wakeup-tag {
    background: rgba(255, 255, 255, .06) !important;
    color: #9fb3c6 !important;
    border-color: rgba(255, 255, 255, .12) !important;
}

/* =============================================================
   6. 亚麻布纹 —— 双向织纹 + 柔和顶光
   ============================================================= */
.wakeup-style-linen {
    background-color: #efeade !important;
    background-image:
        repeating-linear-gradient(45deg, rgba(96, 86, 66, .05) 0 1px, transparent 1px 4px),
        repeating-linear-gradient(-45deg, rgba(96, 86, 66, .05) 0 1px, transparent 1px 4px),
        radial-gradient(120% 100% at 20% 0%, rgba(255, 255, 255, .7) 0%, rgba(255, 255, 255, 0) 55%),
        linear-gradient(180deg, rgba(255, 253, 247, .35) 0%, rgba(226, 218, 200, .35) 100%) !important;
    background-size: auto, auto, auto, auto !important;
    background-position: center, center, center, center !important;
    border: 1px solid #ddd4c0 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 2px 10px -4px rgba(115, 100, 70, .18) !important;
}
.wakeup-style-linen .card-text-inner {
    color: #443c2e !important;
    letter-spacing: .03em !important;
}
.wakeup-style-linen .wakeup-tag {
    background: rgba(255, 255, 255, .55) !important;
    color: #7a6b52 !important;
    border: 1px dashed #cfc3a8 !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    letter-spacing: .16em !important;
}
[data-theme="dark"] .wakeup-style-linen {
    background-color: #1c1a15 !important;
    background-image:
        repeating-linear-gradient(45deg, rgba(255, 245, 225, .04) 0 1px, transparent 1px 4px),
        repeating-linear-gradient(-45deg, rgba(255, 245, 225, .04) 0 1px, transparent 1px 4px),
        radial-gradient(120% 100% at 20% 0%, rgba(255, 255, 255, .06) 0%, rgba(255, 255, 255, 0) 55%) !important;
    border-color: #2f2b23 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 4px 16px -6px rgba(0, 0, 0, .6) !important;
}
[data-theme="dark"] .wakeup-style-linen .card-text-inner { color: #e6dcc6 !important; }
[data-theme="dark"] .wakeup-style-linen .wakeup-tag {
    background: rgba(255, 255, 255, .05) !important;
    color: #c3b69a !important;
    border-color: rgba(255, 255, 255, .14) !important;
}

/* =============================================================
   7. 深空星河 —— 淡晨空 / 深夜星河，星点可复铺
   ============================================================= */
.wakeup-style-starfield {
    background-color: #eaf0fa !important;
    background-image:
        url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScyNjAnIGhlaWdodD0nMjYwJz48ZyBmaWxsPScjNWI2ZjhmJz48Y2lyY2xlIGN4PScxNzAuMicgY3k9JzI3LjMnIHI9JzIuMicgb3BhY2l0eT0nMC45MScvPjxjaXJjbGUgY3g9JzExLjQnIGN5PScyNTMuMScgcj0nMi4yJyBvcGFjaXR5PScwLjk5Jy8+PGNpcmNsZSBjeD0nNjIuOCcgY3k9JzgzLjQnIHI9JzAuO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8+PGNpcmNsZSBjeD0nMTM2LjcnIGN5PScxMzMuNCcgcj0nMS40JyBvcGFjaXR5PScwLjMnLz48Y2lyY2xlIGN4PSczNi43JyBjeT0nMTA2LjInIHI9JzEuOCcgb3BhY2l0eT0nMC43NicvPjxjaXJjbGUgY3g9JzIyMC41JyBjeT0nMTAxLjInIHI9JzEuOCcgb3BhY2l0eT0nMC4zNCcvPjxjaXJjbGUgY3g9JzEwOC40JyBjeT0nMTkzLjAnIHI9JzEuNCcgb3BhY2l0eT0nMC42MScvPjxjaXJjbGUgY3g9JzgzLjYnIGN5PScyNC4wJyByPScxLjAnIG9wYWNpdHk9JzAuNDInLz48Y2lyY2xlIGN4PSc0MS40JyBjeT0nMTguMCcgcj0nMS4wJyBvcGFjaXR5PScwLjM2Jy8+PGNpcmNsZSBjeD0nMTcuOScgY3k9JzI2LjInIHI9JzIuMicgb3BhY2l0eT0nMC44NycvPjxjaXJjbGUgY3g9Jzk2LjInIGN5PSczMS45JyByPScxLjInIG9wYWNpdHk9JzAuODUnLz48L2c+PC9zdmc+"),
        radial-gradient(58% 78% at 80% 14%, rgba(96, 150, 255, .18) 0%, rgba(96, 150, 255, 0) 70%),
        linear-gradient(180deg, #f2f6fd 0%, #e4ebf7 100%) !important;
    background-size: 260px 260px, auto, auto !important;
    background-position: 0 0, center, center !important;
    background-repeat: repeat, no-repeat, no-repeat !important;
    border: 1px solid #d7e1f0 !important;
    box-shadow: inset 0 0 30px rgba(120, 150, 200, .12) !important;
}
.wakeup-style-starfield .card-text-inner { color: #1e2c46 !important; }
.wakeup-style-starfield .wakeup-tag {
    background: rgba(255, 255, 255, .7) !important;
    color: #47628f !important;
    border: 1px solid #cdd9ec !important;
    box-shadow: none !important;
}
[data-theme="dark"] .wakeup-style-starfield {
    background-color: #0a1226 !important;
    background-image:
        url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScyNjAnIGhlaWdodD0nM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LjgnIG9wYWNpdHk9JzAuOTUnLz48Y2lyY2xlIGN4PScyMTcuMicgY3k9JzEyOC4xJyByPScxLjAnIG9wYWNpdHk9JzAuNjcnLz48Y2lyY2xlIGN4PSc5Ni41JyBjeT0nMTE5LjgnIHI9JzAuOCcgb3BhY2l0eT0nMC43MScvPjxjaXJjbGUgY3g9JzE0MS43JyBjeT0nMjU0LjgnIHI9JzIuMicgb3BhY2l0eT0nMC42MycvPjxjaXJjbGUgY3g9JzIxNy4yJyBjeT0nODMuOCcgcj0nMS4yJyBvcGFjaXR5PScwLjM1Jy8+PGNpcmNsZSBjeD0nNTAuNicgY3k9JzcxLjAnIHI9JzEuMicgb3BhY2l0eT0nMC44Jy8+PGNpcmNsZSBjeD0nMTUwLjQnIGN5PSc5LjUnIHI9JzEuOCcgb3BhY2l0eT0nMC44NScvPjxjaXJjbGUgY3g9JzE2OC4wJyBjeT0nMTg0LjInIHI9JzIuMicgb3BhY2l0eT0nMC43NicvPjxjaXJjbGUgY3g9JzYxLjEnIGN5PSc2LjgnIHI9JzIuMicgb3BhY2l0eT0nMC41OCcvPjxjaXJjbGUgY3g9JzEwMi4wJyBjeT0nMjMwLjgnIHI9JzAuOCcgb3BhY2l0eT0nMC40NycvPjxjaXJjbGUgY3g9Jzg1LjYnIGN5PSc1NC41JyByPScxLjQnIG9wYWNpdHk9JzAuNDQnLz48Y2lyY2xlIGN4PScyMDguNicgY3k9JzIzOS41JyByPScxLjQnIG9wYWNpdHk9JzAuNDQnLz48L2c+PC9zdmc+"),
        radial-gradient(58% 78% at 80% 14%, rgba(84, 140, 255, .32) 0%, rgba(84, 140, 255, 0) 70%),
        radial-gradient(54% 68% at 10% 94%, rgba(158, 96, 255, .24) 0%, rgba(158, 96, 255, 0) 72%),
        linear-gradient(180deg, #0b1226 0%, #05070f 100%) !important;
    border-color: rgba(120, 160, 255, .22) !important;
    box-shadow: inset 0 0 44px rgba(10, 30, 80, .75), 0 14px 40px -18px rgba(4, 12, 34, .9) !important;
}
[data-theme="dark"] .wakeup-style-starfield .card-text-inner { color: #e8efff !important; }
[data-theme="dark"] .wakeup-style-starfield .wakeup-tag {
    background: rgba(110, 150, 255, .16) !important;
    color: #a9c6ff !important;
    border-color: rgba(140, 175, 255, .3) !important;
    box-shadow: 0 0 14px rgba(90, 140, 255, .18) !important;
}

/* =============================================================
   8. 报章栏线 —— 双层栏线、黑底反白小标签、衬线正文
   ============================================================= */
.wakeup-style-column {
    background-color: #f7f4ec !important;
    background-image:
        linear-gradient(rgba(46, 42, 34, .58) 0 2px, transparent 2px),
        linear-gradient(rgba(46, 42, 34, .26) 0 1px, transparent 1px),
        url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxODAnIGhlaWdodD0nMTgwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC44NScgbnVtT2N0YXZlcz0nMycgc3RpdGNoVGlsZXM9J3N0aXRjaCcvPjxmZUNvbG9yTWF0cml4IHR5cGU9J3NhdHVyYXRlJyB2YWx1ZXM9JzAnLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0nMTgwJyBoZWlnaHQ9JzE4MCcgZmlsdGVyPSd1cmwoI24pJyBvcGFjaXR5PScwLjE4Jy8+PC9zdmc+"),
        linear-gradient(180deg, rgba(255, 252, 244, .45) 0%, rgba(240, 234, 220, .3) 100%) !important;
    background-size: 100% 2px, 100% 1px, 180px 180px, auto !important;
    background-position: 0 6px, 0 12px, 0 0, center !important;
    background-repeat: no-repeat, no-repeat, repeat, no-repeat !important;
    border: 1px solid #e3ddcd !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 2px 10px -5px rgba(90, 80, 60, .2) !important;
}
.wakeup-style-column .card-text-inner {
    color: #2b2731 !important;
    font-family: 'Songti SC', 'Noto Serif SC', 'Source Han Serif SC', serif !important;
    font-weight: 700 !important;
    letter-spacing: .01em !important;
}
.wakeup-style-column .wakeup-tag {
    background: #2b2822 !important;
    color: #f6f2e7 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    letter-spacing: .2em !important;
    font-family: 'Songti SC', 'Noto Serif SC', serif !important;
}
[data-theme="dark"] .wakeup-style-column {
    background-color: #1b1a17 !important;
    background-image:
        linear-gradient(rgba(255, 250, 235, .38) 0 2px, transparent 2px),
        linear-gradient(rgba(255, 250, 235, .16) 0 1px, transparent 1px),
        url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxODAnIGhlaWdodD0nMTgwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC44NScgbnVtT2N0YXZlcz0nMycgc3RpdGNoVGlsZXM9J3N0aXRjaCcvPjxmZUNvbG9yTWF0cml4IHR5cGU9J3NhdHVyYXRlJyB2YWx1ZXM9JzAnLz48L2ZpbHRlcj48cmVjdCB3aWR0aD0nMTgwJyBoZWlnaHQ9JzE4MCcgZmlsdGVyPSd1cmwoI24pJyBvcGFjaXR5PScwLjE4Jy8+PC9zdmc+") !important;
    background-size: 100% 2px, 100% 1px, 180px 180px !important;
    background-position: 0 6px, 0 12px, 0 0 !important;
    background-repeat: no-repeat, no-repeat, repeat !important;
    border-color: #302d26 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 4px 16px -6px rgba(0, 0, 0, .6) !important;
}
[data-theme="dark"] .wakeup-style-column .card-text-inner { color: #efe8d6 !important; }
[data-theme="dark"] .wakeup-style-column .wakeup-tag {
    background: #efe8d6 !important;
    color: #1b1a17 !important;
}

/* =============================================================
   9. 夜灯暖光 —— 左下一束台灯光，其余沉进暗里
   ============================================================= */
.wakeup-style-lamp {
    background-color: #f9f1e3 !important;
    background-image:
        radial-gradient(78% 96% at 6% 104%, rgba(255, 178, 82, .55) 0%, rgba(255, 178, 82, 0) 66%),
        radial-gradient(46% 60% at 88% 0%, rgba(255, 232, 190, .5) 0%, rgba(255, 232, 190, 0) 72%),
        linear-gradient(200deg, #fdf8ee 0%, #f0e4cc 100%) !important;
    background-size: auto, auto, auto !important;
    background-position: center, center, center !important;
    background-repeat: no-repeat, no-repeat, no-repeat !important;
    border: 1px solid #e6d7bb !important;
    box-shadow: inset 0 0 30px rgba(190, 140, 70, .14) !important;
}
.wakeup-style-lamp .card-text-inner { color: #4a3418 !important; }
.wakeup-style-lamp .wakeup-tag {
    background: rgba(255, 255, 255, .6) !important;
    color: #9a6a26 !important;
    border: 1px solid #e3caa0 !important;
    box-shadow: 0 2px 10px -4px rgba(190, 130, 40, .4) !important;
}
[data-theme="dark"] .wakeup-style-lamp {
    background-color: #17110a !important;
    background-image:
        radial-gradient(78% 96% at 4% 104%, rgba(255, 166, 62, .4) 0%, rgba(255, 166, 62, 0) 66%),
        radial-gradient(40% 52% at 92% 0%, rgba(255, 214, 150, .1) 0%, rgba(255, 214, 150, 0) 74%),
        linear-gradient(200deg, #24180d 0%, #0d0803 100%) !important;
    border-color: #3a2b1a !important;
    box-shadow: inset 0 0 36px rgba(0, 0, 0, .55) !important;
}
[data-theme="dark"] .wakeup-style-lamp .card-text-inner { color: #f4ddb8 !important; }
[data-theme="dark"] .wakeup-style-lamp .wakeup-tag {
    background: rgba(255, 190, 100, .12) !important;
    color: #f0b45c !important;
    border-color: rgba(255, 190, 100, .26) !important;
    box-shadow: none !important;
}

/* =============================================================
   10. 霜面冰晶 —— 冷调霜花、边缘起雾
   ============================================================= */
.wakeup-style-frost {
    background-color: #edf4fa !important;
    background-image:
        url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPSczMjAnIGhlaWdodD0nMzIwJz48ZyBmaWxsPSdub25lJyBzdHJva2U9JyM3Z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NywyNzYuOSBsLTAuMSw1LjAnLz48cGF0aCBkPSdNMjgyLjcsMjc2LjkgbC00LjIsMi43Jy8+PHBhdGggZD0nTTI4MC40LDI4MS4xIGwtMC4xLDUuMCcvPjxwYXRoIGQ9J00yODAuNCwyODEuMSBsLTQuMiwyLjcnLz48cGF0aCBkPSdNMjg2LjksMjY5LjUgbC0xOS4wLDAuOScvPjxwYXRoIGQ9J00yNzguNCwyNjkuOSBsLTQuMywyLjUnLz48cGF0aCBkPSdNMjc4LjQsMjY5LjkgbC00LjUsLTIuMScvPjxwYXRoIGQ9J00yNzMuNiwyNzAuMSBsLTQuMywyLjUnLz48cGF0aCBkPSdNMjczLjYsMjcwLjEgbC00LjUsLTIuMScvPjxwYXRoIGQ9J00yODYuOSwyNjkuNSBsLTcuOSwtMTcuMycvPjxwYXRoIGQ9J00yODMuNCwyNjEuNyBsLTQuMCwtMy4wJy8+PHBhdGggZD0nTTI4My40LDI2MS43IGwwLjMsLTUuMCcvPjxwYXRoIGQ9J00yODEuNCwyNTcuNCBsLTQuMCwtMy4wJy8+PHBhdGggZD0nTTI4MS40LDI1Ny40IGwwLjMsLTUuMCcvPjxwYXRoIGQ9J00yODYuOSwyNjkuNSBsMTAuMiwtMTYuMCcvPjxwYXRoIGQ9J00yOTEuNSwyNjIuMyBsMC40LC01LjAnLz48cGF0aCBkPSdNMjkxLjUsMjYyLjMgbDQuNCwtMi41Jy8+PHBhdGggZD0nTTI5NC4xLDI1OC4zIGwwLjQsLTUuMCcvPjxwYXRoIGQ9J00yOTQuMSwyNTguMyBsNC40LC0yLjUnLz48L2c+PC9zdmc+"),
        radial-gradient(90% 70% at 50% -10%, rgba(255, 255, 255, .95) 0%, rgba(255, 255, 255, 0) 62%),
        linear-gradient(170deg, #f5f9fd 0%, #e2ecf6 100%) !important;
    background-size: 320px 320px, auto, auto !important;
    background-position: 0 0, center, center !important;
    background-repeat: repeat, no-repeat, no-repeat !important;
    border: 1px solid #d5e3ef !important;
    box-shadow: inset 0 0 26px rgba(140, 175, 205, .18) !important;
}
.wakeup-style-frost .card-text-inner { color: #22405c !important; }
.wakeup-style-frost .wakeup-tag {
    background: rgba(255, 255, 255, .75) !important;
    color: #4c7a9e !important;
    border: 1px solid #cfe1ef !important;
    box-shadow: none !important;
}
[data-theme="dark"] .wakeup-style-frost {
    background-color: #0c1622 !important;
    background-image:
        url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPSczMjAnIGhlaWdodD0nMzIwJz48ZyBmaWxsPSdub25lJyBzdHJva2U9JyNmZmZmZmYnIHN0cm9rZS13aWR0aD0nMC45JyBvcGFjaXR5PScwLjM0Jz48cGF0aCBkPSdNMjQ2LjIsNjAuMiBsMTkuMCwxLjEnLz48cGF0aCBkPSdNMjU0LjcsNjAuNyBsNC41LC0yLjEnLz48cGF0aCBkPSdNMjU0LjcsNjAuNyBsNC4zLDIuNicvPjxwYXRoIGQ9J00yNTkuNSw2MC45IGw0LjUsLTIuMScvPjxwYXRoIGQ9J00yNTkuNSw2MC45IGw0LjMsMi42Jy8+PHBhdGggZD0nTTI0Ni4yLDYwLjIgbDEwLjIsMTYuMCcvPjxwYXRoIGQ9J00yNTAuOCw2Ny40IGw0LjMsMi41Jy8+PHBhdGggZD0nTTI1MC44LDY3LjQgbDAuNCw1LjAnLz48cGF0aCBkPSdNMjUzLjMsNzEuNCBsNC4zLDIuNScvPjxwYXRoIGQ9J00yNTMuMyw3MS40IGwwLjQsNS4wJy8+PHBhdGggZD0nTTI0Ni4yLDYwLjIgbC04LjgsMTYuOCcvPjxwYXRoIGQ9J00yNDIuMiw2Ny44IGwwLjAsNS4wJy8+PHBhdGggZD0nTTI0Mi4yLDY3LjggbC00LjEsMi44Jy8+PHBhdGggZD0nTTI0MC4wLDcyLjAgbDAuMCw1LjAnLz48cGF0aCBkPSdNMjQwLjAsNzIuMCBsLTQuMSwyLjgnLz48cGF0aCBkPSdNMjQ2LjIs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YXRoIGQ9J00yOTAuNiwyNjMuNSBsNC4zLC0yLjUnLz48cGF0aCBkPSdNMjkzLjEsMjU5LjUgbDAuMywtNS4wJy8+PHBhdGggZD0nTTI5My4xLDI1OS41IGw0LjMsLTIuNScvPjwvZz48L3N2Zz4="),
        radial-gradient(90% 70% at 50% -10%, rgba(150, 200, 255, .1) 0%, rgba(150, 200, 255, 0) 62%),
        linear-gradient(170deg, #101f2e 0%, #070d14 100%) !important;
    border-color: rgba(170, 210, 245, .2) !important;
    box-shadow: inset 0 0 34px rgba(30, 70, 110, .4) !important;
}
[data-theme="dark"] .wakeup-style-frost .card-text-inner { color: #dae9f6 !important; }
[data-theme="dark"] .wakeup-style-frost .wakeup-tag {
    background: rgba(180, 215, 245, .1) !important;
    color: #a8cbe8 !important;
    border-color: rgba(180, 215, 245, .24) !important;
}

/* =============================================================
   11. 绘图纸 —— 青色细网格、工程感等宽字
   ============================================================= */
.wakeup-style-blueprint {
    background-color: #fbfcfe !important;
    background-image:
        linear-gradient(rgba(96, 160, 195, .3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 160, 195, .3) 1px, transparent 1px),
        linear-gradient(rgba(96, 160, 195, .12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(96, 160, 195, .12) 1px, transparent 1px) !important;
    background-size: 44px 44px, 44px 44px, 11px 11px, 11px 11px !important;
    background-position: 0 0, 0 0, 0 0, 0 0 !important;
    background-repeat: repeat, repeat, repeat, repeat !important;
    border: 1px solid #cfe0ea !important;
    box-shadow: inset 0 0 22px rgba(120, 165, 190, .1) !important;
}
.wakeup-style-blueprint .card-text-inner {
    color: #14364f !important;
    font-family: 'SF Mono', 'JetBrains Mono', Consolas, 'PingFang SC', monospace !important;
    letter-spacing: .01em !important;
}
.wakeup-style-blueprint .wakeup-tag {
    background: #ffffff !important;
    color: #2b7ba0 !important;
    border: 1px solid #b9d6e4 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    font-family: 'SF Mono', 'JetBrains Mono', Consolas, 'PingFang SC', monospace !important;
    letter-spacing: .12em !important;
}
[data-theme="dark"] .wakeup-style-blueprint {
    background-color: #0c2a48 !important;
    background-image:
        linear-gradient(rgba(190, 226, 255, .22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(190, 226, 255, .22) 1px, transparent 1px),
        linear-gradient(rgba(190, 226, 255, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(190, 226, 255, .08) 1px, transparent 1px) !important;
    border-color: #1d4368 !important;
    box-shadow: inset 0 0 30px rgba(0, 20, 50, .55) !important;
}
[data-theme="dark"] .wakeup-style-blueprint .card-text-inner { color: #dbeaff !important; }
[data-theme="dark"] .wakeup-style-blueprint .wakeup-tag {
    background: rgba(190, 226, 255, .1) !important;
    color: #a8d3f0 !important;
    border-color: rgba(190, 226, 255, .26) !important;
}

/* =============================================================
   12. 木纹桌面 —— 竖向木纹 + 顶光，木牌式标签
   ============================================================= */
.wakeup-style-wood {
    background-color: #e7d6b9 !important;
    background-image:
        url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPSczMjAnIGhlaWdodD0nMzIwJz48ZyBmaWxsPSdub25lJyBzdHJva2U9JyM2YjQ0MjMnPjxwYXRoIGQ9J00wLDAuNiBMMzIsMS4zIEw2NCwwLjMgTDk2LC0xLjEgTDEyOCwtMS4xIEwxNjAsMC40IEwxOTIsMS40IEwyMjQsMC41IEwyNTYsLTEuMCBMMjg4LC0xLjIgTDMyMCwwLjInIHN0cm9rZS13aWR0aD0nMC44JyBvcGFjaXR5PScwLjEnLz48cGF0aCBkPSdNMCwyMi40IEwzMiwyMS45IEw2NCwyMy4wIEw5NiwyNC40IEwxMjgsMjQuMiBMMTYwLDIyLjcgTDE5MiwyMS44IEwyMjQsMjIuNiBMMjU2LDI0LjEgTDI4OCwyNC40IEwzMjAsMjMuMScgc3Ryb2tlLXdpZHRoPScwLjYnIG9wYWNpdHk9JzAuMycvPjxwY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GF0aCBkPSdNMCwyNTQuOSBMMzIsMjUyLjIgTDY0LDI1MS42IEw5NiwyNTUuMCBMMTI4LDI1MS42IEwxNjAsMjUyLjIgTDE5MiwyNTQuOSBMMjI0LDI1MS4xIEwyNTYsMjUyLjkgTDI4OCwyNTQuNiBMMzIwLDI1MC44JyBzdHJva2Utd2lkdGg9JzAuNycgb3BhY2l0eT0nMC4xNycvPjxwYXRoIGQ9J00wLDI3MS4wIEwzMiwyNzAuNyBMNjQsMjc0LjEgTDk2LDI3My45IEwxMjgsMjcwLjYgTDE2MCwyNzEuMSBMMTkyLDI3NC40IEwyMjQsMjczLjUgTDI1NiwyNzAuMyBMMjg4LDI3MS42IEwzMjAsMjc0LjcnIHN0cm9rZS13aWR0aD0nMC45JyBvcGFjaXR5PScwLjI1Jy8+PHBhdGggZD0nTTAsMjkzLjAgTDMyLDI5MS4zIEw2NCwyOTEuMSBMOTYsMjkyLjcgTDEyOCwyOTMuOCBMMTYwLDI5My4xIEwxOTIsMjkxLjQgTDIyNCwyOTEuMSBMMjU2LDI5Mi42IEwyODgsMjkzLjggTDMyMCwyOTMuMScgc3Ryb2tlLXdpZHRoPScxLjAnIG9wYWNpdHk9JzAuMjInLz48cGF0aCBkPSdNMCw3MiBMMzIwLDcyJyBzdHJva2Utd2lkdGg9JzEuNicgb3BhY2l0eT0nMC4yNicvPjxwYXRoIGQ9J00wLDE2OCBMMzIwLDE2OCcgc3Ryb2tlLXdpZHRoPScxLjYnIG9wYWNpdHk9JzAuMjYnLz48cGF0aCBkPSdNMCwyNjggTDMyMCwyNjgnIHN0cm9rZS13aWR0aD0nMS42JyBvcGFjaXR5PScwLjI2Jy8+PC9nPjwvc3ZnPg=="),
        linear-gradient(180deg, rgba(255, 247, 232, .8) 0%, rgba(255, 255, 255, 0) 46%),
        linear-gradient(90deg, rgba(110, 72, 35, .2) 0%, rgba(110, 72, 35, 0) 28%, rgba(110, 72, 35, 0) 72%, rgba(90, 58, 24, .22) 100%) !important;
    background-size: 320px 320px, auto, auto !important;
    background-position: 0 0, center, center !important;
    background-repeat: repeat, no-repeat, no-repeat !important;
    border: 1px solid #d2bb99 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), inset 0 0 28px rgba(120, 80, 40, .16) !important;
}
.wakeup-style-wood .card-text-inner {
    color: #4a3620 !important;
    letter-spacing: .03em !important;
}
.wakeup-style-wood .wakeup-tag {
    background: rgba(92, 63, 33, .78) !important;
    color: #f6ead3 !important;
    border: none !important;
    border-radius: 2px !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), 0 1px 3px rgba(70, 45, 20, .4) !important;
    letter-spacing: .16em !important;
}
[data-theme="dark"] .wakeup-style-wood {
    background-color: #2a1e13 !important;
    background-image:
        url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPSczMjAnIGhlaWdodD0nMzIwJz48ZyBmaWxsPSdub25lJyBzdHJva2U9JyNhODg1NWMnPjxwYXRoIGQ9J00wLDAuNiBMMzIsMS4zIEw2NCwwLjMgTDk2LC0xLjEgTDEyOCwtMS4xIEwxNjAsMC40IEwxOTIsMS40IEwyMjQsMC41IEwyNTYsLTEuMCBMMjg4LC0xLjIgTDMyMCwwLjInIHN0cm9rZS13aWR0aD0nMC44JyBvcGFjaXR5PScwLjEnLz48cGF0aCBkPSdNMCwyMi40IEwzMiwyMS45IEw2NCwyMy4wIEw5NiwyNC40IEwxMjgsMjQuMiBMMTYwLDIyLjcgTDE5MiwyMS44IEwyMjQsMjIuNiBMMjU2LDI0LjEgTDI4OCwyNC40IEwzMjAsMjMuMScgc3Ryb2tlLXdpZHRoPScwLjYnIG9wYWNpdHk9JzAuMycvPjxwYXRoIGQ9J00wLDQzLjAgTDMyLDM5LjkgTDY0LDQ0LjYgTDk2LDQyLjcgTDEyOCw0MC4wIEwxNjAsNDQuOCBMMTkyLDQyLjUgTDIyNCw0MC4xIEwyNTYsNDQuOSBMMj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jUyLjkgTDI4OCwyNTQuNiBMMzIwLDI1MC44JyBzdHJva2Utd2lkdGg9JzAuNycgb3BhY2l0eT0nMC4xNycvPjxwYXRoIGQ9J00wLDI3MS4wIEwzMiwyNzAuNyBMNjQsMjc0LjEgTDk2LDI3My45IEwxMjgsMjcwLjYgTDE2MCwyNzEuMSBMMTkyLDI3NC40IEwyMjQsMjczLjUgTDI1NiwyNzAuMyBMMjg4LDI3MS42IEwzMjAsMjc0LjcnIHN0cm9rZS13aWR0aD0nMC45JyBvcGFjaXR5PScwLjI1Jy8+PHBhdGggZD0nTTAsMjkzLjAgTDMyLDI5MS4zIEw2NCwyOTEuMSBMOTYsMjkyLjcgTDEyOCwyOTMuOCBMMTYwLDI5My4xIEwxOTIsMjkxLjQgTDIyNCwyOTEuMSBMMjU2LDI5Mi42IEwyODgsMjkzLjggTDMyMCwyOTMuMScgc3Ryb2tlLXdpZHRoPScxLjAnIG9wYWNpdHk9JzAuMjInLz48cGF0aCBkPSdNMCw3MiBMMzIwLDcyJyBzdHJva2Utd2lkdGg9JzEuNicgb3BhY2l0eT0nMC4yNicvPjxwYXRoIGQ9J00wLDE2OCBMMzIwLDE2OCcgc3Ryb2tlLXdpZHRoPScxLjYnIG9wYWNpdHk9JzAuMjYnLz48cGF0aCBkPSdNMCwyNjggTDMyMCwyNjgnIHN0cm9rZS13aWR0aD0nMS42JyBvcGFjaXR5PScwLjI2Jy8+PC9nPjwvc3ZnPg=="),
        linear-gradient(180deg, rgba(255, 235, 200, .09) 0%, rgba(255, 255, 255, 0) 48%) !important;
    background-size: 320px 320px, auto !important;
    background-position: 0 0, center !important;
    background-repeat: repeat, no-repeat !important;
    border-color: #3d2c1b !important;
    box-shadow: inset 0 0 34px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06) !important;
}
[data-theme="dark"] .wakeup-style-wood .card-text-inner { color: #ecdcc4 !important; }
[data-theme="dark"] .wakeup-style-wood .wakeup-tag {
    background: rgba(255, 235, 200, .1) !important;
    color: #dcc09a !important;
    box-shadow: inset 0 0 0 1px rgba(255, 235, 200, .16) !important;
}

/* ★ 特殊主题的文字避让规则 */
.note-card-wakeup.has-film-holes { padding-left: 54px !important; }
.note-card-wakeup.has-grid-margin { padding-left: 76px !important; }

/* =============================================================
   使用提示
   · 3 号胶片：左侧有 22px 齿孔条，卡片若有文字，建议
        .wakeup-style-film { padding-left: 44px !important; }
   · 5 号方格：左侧 50px 处是红边线，正文建议
        .wakeup-style-grid { padding-left: 66px !important; }
   · 4 号墨痕：把 .wakeup-tag 的字数控制在 3–4 字最像印章。
   · 2 号玻璃：依赖父级有 isolation:isolate（基础样式里已有），
     否则 ::before 的色团会盖到卡片外。
   ============================================================= */


/* ---------- 8. 日历与空状态 ---------- */
.loading-indicator { text-align: center; padding: 20px; color: var(--text-muted); font-size: 14px; grid-column: 1/-1; }
.skeleton-card { background: var(--bg-secondary); border-radius: var(--radius); padding: 18px; border: 1px solid var(--border-color); margin-bottom: 16px; }
.sk-line { height: 12px; border-radius: 6px; margin: 10px 0; background: linear-gradient(90deg, var(--bg-hover) 25%, var(--border-color) 50%, var(--bg-hover) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.sk-line.w-40 { width: 40%; } .sk-line.w-60 { width: 60%; } .sk-line.w-80 { width: 80%; } .sk-line.w-100 { width: 100%; } .sk-line.h-20 { height: 20px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.main-empty { text-align: center; color: var(--text-muted); padding: 80px 20px; }
.main-empty .icon { font-size: 64px; margin-bottom: 16px; opacity: .6; animation: emptyFloat 3s ease-in-out infinite; }
@keyframes emptyFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.back-all-wrapper { display: flex; justify-content: center; margin-top: 20px; }

.calendar-card { background: var(--bg-secondary); border-radius: 20px; padding: 24px 28px 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.03); border: 1px solid var(--border-color); transition: all 0.3s ease; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.calendar-header .month-year { font-weight: 800; font-size: 20px; letter-spacing: -.02em; color: var(--text-primary); }
.calendar-header .nav-btn { background: var(--bg-hover); border: none; border-radius: 50%; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; font-size: 20px; cursor: pointer; color: var(--text-secondary); transition: all .25s cubic-bezier(0.2, 0.8, 0.2, 1); margin-left: 6px; }
.calendar-header .nav-btn:hover { background: var(--accent); color: #fff; transform: scale(1.08); box-shadow: 0 4px 12px var(--accent-30); }
.calendar-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 6px; text-align: center; }
.calendar-grid .weekday { font-size: 12px; font-weight: 700; color: var(--text-muted); padding: 8px 0; letter-spacing: .05em; }
.calendar-grid .day { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 12px; cursor: pointer; transition: all .2s cubic-bezier(0.2, 0.8, 0.2, 1); font-size: 15px; font-weight: 500; color: var(--text-secondary); background: transparent; position: relative; min-height: 48px; padding: 4px 0; }
.calendar-grid .day .day-number { font-size: 15px; font-weight: 600; line-height: 1.2; transition: all .2s; }
.calendar-grid .day .festival { font-size: 9px; color: var(--text-muted); line-height: 1.2; margin-top: 2px; white-space: nowrap; max-width: 90%; overflow: hidden; text-overflow: ellipsis; background: var(--bg-hover); padding: 0 4px; border-radius: 4px; }
.calendar-grid .day.has-note .day-number { font-weight: 800; color: var(--accent); }
.calendar-grid .day.has-note::after {
    content: '';
    position: absolute;
    /* 取消 bottom: 6px; 改用 top 定位到数字下方 */
    top: 48%; 
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    transition: all 0.2s;
}
@keyframes todayBreathe { 0% { box-shadow: inset 0 0 0 2px var(--accent-30), 0 0 0 rgba(0,0,0,0); } 50% { box-shadow: inset 0 0 0 2px var(--accent), 0 0 12px var(--accent-30); } 100% { box-shadow: inset 0 0 0 2px var(--accent-30), 0 0 0 rgba(0,0,0,0); } }
.calendar-grid .day.today { box-shadow: inset 0 0 0 2px var(--accent); font-weight: 800; color: var(--accent); animation: todayBreathe 2s ease-in-out infinite !important; position: relative; z-index: 1; }
.calendar-grid .day.today .day-number { color: var(--accent) !important; font-weight: 900 !important; }
.calendar-grid .day.today .festival { background: var(--accent-10); color: var(--accent); }
@keyframes dayPop { 0% { transform: scale(0.9); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
.calendar-grid .day.selected { background: var(--gradient); color: #fff; box-shadow: 0 6px 20px var(--accent-35); transform: scale(1.02); animation: dayPop 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; }
.calendar-grid .day.selected .day-number { color: #fff; }
.calendar-grid .day.selected .festival { color: #fff; background: rgba(255,255,255,0.2); }
.calendar-grid .day.selected.has-note::after { background: #fff; }
.calendar-grid .day.selected.today { box-shadow: inset 0 0 0 2px #fff; animation: none !important; }
.calendar-grid .day.selected.today .day-number { color: #ffffff !important; text-shadow: 0 1px 3px rgba(0,0,0,0.2) !important; }
.calendar-grid .day.selected.today.has-note::after { background: #ffffff !important; }
.calendar-grid .day.other-month { opacity: .3; }
.calendar-grid .day.other-month .festival { display: none; }
.calendar-grid .day:hover:not(.selected) { background: var(--bg-hover); transform: scale(1.05); color: var(--text-primary); }

#dayNotesList { margin-top: 30px !important; position: relative !important; padding-left: 24px !important; }
#dayNotesList::before { content: ''; position: absolute; left: 6px; top: 10px; bottom: 20px; width: 2px; background: linear-gradient(180deg, var(--accent) 0%, var(--accent-30) 100%); border-radius: 2px; }
#dayNotesList .day-notes-header { position: relative !important; font-size: 16px !important; font-weight: 700 !important; color: var(--text-primary) !important; margin-bottom: 20px !important; padding-bottom: 0 !important; border-bottom: none !important; display: flex !important; align-items: center !important; gap: 8px !important; }
#dayNotesList .day-notes-header::before { content: '' !important; position: absolute !important; left: -24px !important; width: 10px !important; height: 10px !important; border-radius: 50% !important; background: var(--accent) !important; box-shadow: 0 0 0 4px var(--accent-15) !important; z-index: 2 !important; }
#dayNotesList .day-note-item { position: relative !important; background: var(--bg-secondary) !important; border-radius: 14px !important; padding: 18px 22px !important; margin-bottom: 16px !important; border: 1px solid var(--border-color) !important; cursor: pointer !important; transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) !important; box-shadow: 0 4px 12px rgba(0,0,0,0.02) !important; animation: slideInLeft 0.4s ease backwards !important; animation-delay: calc(var(--i,0) * 40ms) !important; }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-15px); } to { opacity: 1; transform: translateX(0); } }
#dayNotesList .day-note-item:hover { transform: translateY(-2px) translateX(6px) !important; border-color: var(--accent-30) !important; box-shadow: 0 8px 24px var(--accent-10) !important; }
#dayNotesList .day-note-item::before { content: '' !important; position: absolute !important; left: -23px !important; top: 24px !important; width: 8px !important; height: 8px !important; border-radius: 50% !important; background: var(--bg-secondary) !important; border: 2px solid var(--accent) !important; z-index: 2 !important; transition: all 0.2s !important; }
#dayNotesList .day-note-item:hover::before { background: var(--accent) !important; box-shadow: 0 0 10px var(--accent-30) !important; transform: scale(1.2) !important; }
#dayNotesList .day-note-item .note-content { font-size: 15px !important; line-height: 1.6 !important; color: var(--text-primary) !important; margin-bottom: 12px !important; white-space: pre-wrap !important; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
#dayNotesList .day-note-item .note-meta { display: flex !important; justify-content: space-between !important; align-items: center !important; margin-top: 0 !important; font-size: 12px !important; color: var(--text-muted) !important; border-top: 1px dashed var(--border-color) !important; padding-top: 10px !important; }
#dayNotesList .day-note-item .note-tags { display: flex; flex-wrap: wrap; gap: 6px; }
#dayNotesList .day-note-item .note-tags .tag { background: var(--bg-primary); padding: 2px 10px; border-radius: 12px; font-size: 11px; cursor: pointer; color: var(--text-secondary); border: 1px solid var(--border-color); transition: all .2s; }
#dayNotesList .day-note-item .note-tags .tag:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
#dayNotesList .empty-day-msg { color: var(--text-muted); font-size: 14px; text-align: center; padding: 60px 0; background: var(--bg-secondary); border-radius: 16px; border: 1px dashed var(--border-color); position: relative; z-index: 10; }

/* 日历视图 - 图片缩略图 */
.day-thumb-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 6px 0 2px;
}
.day-thumb {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 6px;
  cursor: zoom-in;
  border: 1px solid var(--border-color);
  transition: transform .15s ease;
}
.day-thumb:hover { transform: scale(1.08); }

/* ---------- 9. 弹窗、预览、Toast ---------- */
.modal-overlay { display: none; position: fixed; inset: 0; background: rgba(10,12,30,.42); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 10500; align-items: center; justify-content: center; padding: 20px; animation: fadeIn .2s ease; overflow-y: auto; }
.modal-overlay.active { display: flex; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.96); } }
.modal-box { background: var(--bg-secondary); border: 1px solid var(--border-color); box-shadow: 0 24px 80px rgba(10,12,30,.22); border-radius: 24px; padding: 36px 32px; max-width: 580px; width: 100%; position: relative; animation: modalIn .35s cubic-bezier(.2,.8,.2,1); max-height: calc(100vh - 40px); overflow-y: auto; }
.modal-box .close-btn { position: absolute; top: 16px; right: 20px; background: transparent; border: none; font-size: 28px; cursor: pointer; color: var(--text-muted); line-height: 1; transition: all .2s; border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.modal-box .close-btn:hover { color: var(--text-primary); background: var(--bg-hover); transform: rotate(90deg); }
.modal-box h2 { font-size: 28px; font-weight: 700; margin-bottom: 4px; letter-spacing: -.02em; }
.modal-box h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.modal-box .sub { font-size: 15px; color: var(--text-muted); margin-bottom: 24px; }
.modal-box label { font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; display: block; letter-spacing: .01em; }
.modal-box input[type="text"], .modal-box input[type="password"], .modal-box input[type="datetime-local"], .modal-box textarea { width: 100%; padding: 14px 18px; border: 2px solid var(--border-color); border-radius: 14px; background: var(--bg-primary); color: var(--text-primary); font-size: 16px; transition: all .3s; margin-bottom: 18px; outline: none; font-family: var(--font); -webkit-appearance: none; appearance: none; }
.modal-box input:focus, .modal-box textarea:focus { border-color: var(--accent); box-shadow: 0 0 20px var(--accent-15); }
.modal-box textarea { min-height: 180px; resize: vertical; line-height: 1.7; }
.modal-box .form-actions { display: flex; gap: 12px; margin-top: 6px; }
.modal-box .form-actions .btn { flex: 1; padding: 14px; border-radius: 14px; font-size: 16px; }
.error-msg { color: var(--danger); font-size: 14px; text-align: center; margin-bottom: 12px; min-height: 20px; }
.modal-box input[type="checkbox"] { width: 18px !important; height: 18px !important; margin: 0 !important; padding: 0 !important; accent-color: var(--accent); cursor: pointer; border-radius: 4px; flex-shrink: 0; }

#noteContentModal .modal-box { animation: modalSlideUp 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); max-height: 85vh; display: flex; flex-direction: column; background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%); border: 1px solid rgba(0, 0, 0, 0.06); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08); border-radius: 20px; }
[data-theme="dark"] #noteContentModal .modal-box { background: linear-gradient(180deg, #1e2233 0%, #1a1d2d 100%); border: 1px solid rgba(255, 255, 255, 0.08); }
@keyframes modalSlideUp { from { opacity: 0; transform: translateY(30px) scale(0.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
#noteContentMeta { margin-top: 10px !important; padding-right: 30px !important; padding-bottom: 10px; margin-bottom: 16px !important; border-bottom: 1px dashed var(--border-color); }
#noteContentMeta .note-content-tags { gap: 8px; }
#noteContentBody { overflow-y: auto; padding-bottom: 10px; }
#noteContentModal .modal-box .close-btn { z-index: 10 !important; position: absolute; top: 16px; right: 20px; }
#noteContentModal .note-content-tags .tag { background: var(--accent-15); color: var(--accent); padding: 2px 10px; border-radius: 10px; font-size: 12px; font-weight: 500; }
#noteContentModal .private-badge { position: static; display: inline-block; padding: 2px 10px; font-size: 12px; background: var(--accent-15); color: var(--accent); box-shadow: none; border-radius: 10px; }
#noteContentModal .note-content-images { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 14px; border-radius: 12px; overflow: hidden; }
#noteContentModal .note-content-images.single { grid-template-columns: 1fr; }
#noteContentModal .note-content-images.three .content-img-item:first-child { grid-column: 1 / 3; aspect-ratio: 16/9; }
#noteContentModal .note-content-images .content-img-item { aspect-ratio: 4/3; overflow: hidden; background: var(--bg-hover); border-radius: 8px; max-height: 260px; }
#noteContentModal .note-content-images.single .content-img-item { aspect-ratio: auto; display: flex; align-items: center; justify-content: center; max-height: 400px; }
#noteContentModal .note-content-images .content-img-item img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; transition: transform .25s; }
#noteContentModal .note-content-images.single .content-img-item img { object-fit: contain; width: auto; max-width: 100%; height: auto; max-height: 400px; }
#noteContentModal .note-content-images .content-img-item img:hover { transform: scale(1.03); }
#noteContentModal .note-content-text { font-size: 16px; line-height: 1.8; color: var(--text-secondary); white-space: pre-wrap; word-break: break-word; }

#imagePreviewModal { background: rgba(0,0,0,.96); backdrop-filter: blur(10px); z-index: 100000 !important; }
#imagePreviewModal.active .modal-box { animation: smoothZoomIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards !important; }
#imagePreviewModal.active { animation: backdropFadeIn 0.3s ease forwards !important; }
@keyframes smoothZoomIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
@keyframes backdropFadeIn { from { backdrop-filter: blur(0px); background: rgba(0,0,0,0); } to { backdrop-filter: blur(10px); background: rgba(0,0,0,0.96); } }
#imagePreviewModal .modal-box { background: transparent; border: none; box-shadow: none; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; display: flex; justify-content: center; align-items: center; overflow: hidden; position: fixed; inset: 0; border-radius: 0; animation: none; }
#imagePreviewModal .image-container { width: 100vw; height: 100vh; display: flex; justify-content: center; align-items: center; touch-action: none; position: relative; cursor: grab; background: #000; }
#imagePreviewModal .image-container img { max-width: 100vw; max-height: 100vh; width: auto; height: auto; object-fit: contain; user-select: none; -webkit-user-drag: none; touch-action: none; transform-origin: center center; transition: transform .05s; }
#imagePreviewModal .close-btn { position: fixed; top: calc(20px + env(safe-area-inset-top)); right: 24px; background: rgba(255,255,255,.15); color: #fff; border: none; border-radius: 50%; width: 48px; height: 48px; font-size: 30px; cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 1001; transition: background .2s; }
#imagePreviewModal .close-btn:hover { background: rgba(255,255,255,.3); transform: rotate(90deg); }
#imagePreviewModal .rotate-btn, #imagePreviewModal .nav-arrow { position: fixed; background: rgba(255,255,255,.15); color: #fff; border: none; border-radius: 50%; width: 52px; height: 52px; font-size: 26px; cursor: pointer; z-index: 1001; transition: background .2s; display: flex; align-items: center; justify-content: center; }
#imagePreviewModal .rotate-btn { bottom: calc(30px + env(safe-area-inset-bottom)); right: 30px; }
#imagePreviewModal .rotate-btn:hover, #imagePreviewModal .nav-arrow:hover { background: rgba(255,255,255,.3); }
#imagePreviewModal .nav-arrow { top: 50%; transform: translateY(-50%); }
#imagePreviewModal .nav-arrow.prev { left: 24px; } #imagePreviewModal .nav-arrow.next { right: 24px; }
#imagePreviewModal .nav-arrow.hidden { display: none; }
#imagePreviewModal .image-counter { position: fixed; bottom: calc(30px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.7); font-size: 14px; z-index: 1001; background: rgba(0,0,0,.5); padding: 6px 18px; border-radius: 20px; font-variant-numeric: tabular-nums; }

.toast-msg { position: fixed; bottom: calc(40px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%) translateY(20px) scale(0.95); opacity: 0; visibility: hidden; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(16px) saturate(1.8); -webkit-backdrop-filter: blur(16px) saturate(1.8); border-radius: 30px; padding: 12px 24px; border: 1px solid rgba(255, 255, 255, 0.6); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 2px 10px rgba(0, 0, 0, 0.05); color: var(--text-primary); font-size: 14px; font-weight: 600; font-family: var(--font); display: flex; align-items: center; gap: 8px; z-index: 99999; transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); pointer-events: none; max-width: 90vw; }
.toast-msg svg { flex-shrink: 0; color: var(--success); }
.toast-msg.error svg { color: var(--danger); }
.toast-msg:not(.error) { border-color: rgba(72, 187, 120, 0.2); }
.toast-msg.error { border-color: rgba(245, 101, 101, 0.2); }
.toast-msg.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0) scale(1); }
[data-theme="dark"] .toast-msg { background: rgba(30, 33, 45, 0.85); border-color: rgba(255, 255, 255, 0.1); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4); }
[data-theme="dark"] .toast-msg:not(.error) { border-color: rgba(72, 187, 120, 0.3); }
[data-theme="dark"] .toast-msg.error { border-color: rgba(245, 101, 101, 0.3); }

.loading-overlay { position: fixed; inset: 0; background: rgba(10,12,30,.3); backdrop-filter: blur(3px); z-index: 1000; display: none; align-items: center; justify-content: center; }
.loading-overlay.active { display: flex; }
.loading-overlay .spinner-big { width: 48px; height: 48px; border: 4px solid var(--accent-15); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 10. 编辑器、AI 助手 ---------- */
.quick-input-wrapper { background: var(--bg-card); border-radius: 16px; padding: 16px 20px; margin-bottom: 30px; border: 1px solid var(--border-color); transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) !important; box-shadow: var(--shadow); position: relative; backdrop-filter: blur(16px); }
.quick-input-wrapper:focus-within { border-color: var(--accent-35) !important; box-shadow: 0 0 0 3px var(--accent-10), var(--shadow-hover) !important; transform: translateY(-2px) !important; background: var(--bg-secondary) !important; }
.quick-input-wrapper textarea { width: 100%; border: none; background: transparent; outline: none; resize: none; font-size: 16px; line-height: 1.6; color: var(--text-primary); font-family: inherit; min-height: 28px; max-height: 400px; overflow-y: auto; margin-bottom: 12px; padding: 0; }
.quick-input-wrapper textarea::placeholder { font-weight: 300 !important; color: var(--text-muted) !important; opacity: 0.6 !important; }
.quick-input-wrapper .qi-actions, .inline-edit-container .qi-actions { display: flex; align-items: center; justify-content: space-between; width: 100%; border-top: 1px dashed var(--border-color); padding-top: 12px; margin-top: 8px; }
.quick-input-wrapper .qi-tools, .inline-edit-container .qi-tools { display: flex; align-items: center; gap: 4px; }
.quick-input-wrapper .qi-tools .tool-btn, .inline-edit-container .tool-btn { background: transparent; border: none; cursor: pointer; padding: 6px 10px; border-radius: 8px; transition: all 0.2s; color: var(--text-muted); display: inline-flex; align-items: center; justify-content: center; }
.quick-input-wrapper .qi-tools .tool-btn:hover, .inline-edit-container .tool-btn:hover { background: var(--bg-hover); color: var(--accent); transform: translateY(-1px); }
.tool-btn svg { width: 18px; height: 18px; display: block; }
.quick-input-wrapper .qi-tools .private-toggle, .inline-edit-container .private-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); cursor: pointer; padding: 6px 10px; border-radius: 8px; transition: all 0.2s; user-select: none; }
.quick-input-wrapper .qi-tools .private-toggle:hover, .inline-edit-container .private-toggle:hover { background: var(--bg-hover); color: var(--text-primary); }
.private-toggle input[type="checkbox"] { display: none; }
.private-toggle .lock-svg { transition: all 0.2s; }
.private-toggle input[type="checkbox"]:checked ~ .lock-svg { color: var(--danger); fill: rgba(245, 101, 101, 0.1); }
.private-toggle input[type="checkbox"]:checked ~ span { color: var(--danger); font-weight: bold; }
.qi-send-btn { background: var(--bg-hover) !important; color: var(--text-muted) !important; transform: scale(0.9) !important; box-shadow: none !important; transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important; border: none; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; cursor: pointer; margin-left: auto; }
.qi-send-btn.active { background: var(--gradient) !important; color: #fff !important; transform: scale(1) !important; box-shadow: 0 4px 15px var(--accent-35) !important; }
.qi-send-btn.active:hover { transform: scale(1.1) rotate(-10deg) !important; box-shadow: 0 6px 20px var(--accent-35) !important; }
.color-picker-wrapper { position: relative; }
.color-picker-dropdown { display: none; position: absolute !important; bottom: calc(100% + 10px) !important; left: 0 !important; top: auto !important; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 12px; width: max-content; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); z-index: 99999 !important; }
.color-picker-dropdown.active { display: grid !important; }
.color-picker-dropdown .color-option { width: 24px !important; height: 24px !important; border-radius: 50% !important; cursor: pointer; border: 2px solid transparent !important; box-shadow: 0 2px 6px rgba(0,0,0,0.1); transition: transform 0.2s, border-color 0.2s; display: block !important; }
.color-picker-dropdown .color-option:hover { transform: scale(1.15); }
.color-picker-dropdown .color-option.active { border-color: var(--accent) !important; box-shadow: 0 0 0 2px var(--bg-secondary), 0 0 0 4px var(--accent) !important; }
.clear-input-btn { position: absolute; top: -2px; right: -4px; width: 24px; height: 24px; background: transparent !important; border: none !important; padding: 0; color: var(--text-muted); display: none; align-items: center; justify-content: center; cursor: pointer; z-index: 10; transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1); opacity: 0.6; }
.clear-input-btn:hover { color: var(--danger); opacity: 1; transform: scale(1.15) rotate(90deg); }
.char-counter { position: absolute; right: 0; bottom: 2px; font-size: 12px; color: var(--text-muted); background: var(--bg-secondary); padding: 0 4px; border-radius: 4px; pointer-events: none; font-variant-numeric: tabular-nums; z-index: 10; opacity: 0.8; transition: all 0.2s; }
.char-counter.warning { color: #d97706; opacity: 1; }
.char-counter.danger { color: var(--danger); opacity: 1; }
.inline-edit-container { display: flex; flex-direction: column; gap: 12px; width: 100%; position: relative; animation: fadeIn 0.2s ease; padding: 8px 0 !important; gap: 16px !important; }
.inline-edit-textarea { width: 100%; min-height: 100px; padding: 12px; border: none; border-radius: 8px; background: transparent; color: var(--text-primary); font-size: 16px; line-height: 1.7; font-family: inherit; resize: none; outline: none; overflow-y: auto; }
.inline-edit-textarea::placeholder { font-weight: 300 !important; opacity: 0.6 !important; }
.inline-edit-actions { display: flex; justify-content: flex-end; gap: 8px; }
.inline-edit-actions .btn { min-height: 36px; padding: 6px 16px; font-size: 14px; border-radius: 8px; }
.image-preview-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; margin-bottom: 12px; }
.image-preview-item { position: relative; width: 60px; height: 60px; border-radius: 8px; border: 1px solid var(--border-color); background: var(--bg-hover); flex-shrink: 0; animation: modalIn .25s ease; }
.image-preview-item img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.image-preview-item .remove-img-btn { position: absolute; top: -4px; right: -4px; width: 24px; height: 24px; border-radius: 50%; background: var(--danger); color: #fff; border: 2px solid var(--bg-secondary); font-size: 14px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .2s; }
.image-preview-item .remove-img-btn:hover { transform: scale(1.15); background: #e53e3e; }

/* =========================================
   ★ AI 助手（天气气泡同款）
   ========================================= */

/* 1. 工具栏上的 AI 小星星按钮 */
.ai-toggle-btn {
    color: var(--text-muted) !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    transition: all 0.2s !important;
    cursor: pointer !important;
    position: relative !important;
}
.ai-toggle-btn:hover, 
.ai-toggle-btn.active { 
    color: var(--accent) !important; 
    background: var(--accent-10) !important; 
}

/* 2. AI 弹窗面板 */
.ai-assistant-bar { 
    display: none; /* 默认隐藏，用 JS 加 .active 显示 */
    position: fixed !important; 
    z-index: 2147483647 !important; 
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
    padding: 6px !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 4px !important;
    width: max-content !important;
    min-width: 0 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.ai-assistant-bar.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* 3. 弹窗里面的小按钮 */
.ai-assistant-bar .ai-btn { 
    background: transparent !important; 
    border: none !important; 
    box-shadow: none !important; 
    font-size: 13px !important; 
    font-weight: 500 !important; 
    color: var(--text-secondary) !important; 
    cursor: pointer !important; 
    padding: 6px 12px !important; 
    border-radius: 8px !important; 
    transition: all 0.2s !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    gap: 4px !important; 
    font-family: var(--font) !important; 
    white-space: nowrap !important; 
}
.ai-assistant-bar .ai-btn:hover { background: var(--bg-hover) !important; color: var(--accent) !important; }
.ai-assistant-bar .ai-btn:active { transform: scale(0.92) !important; }

/* 4. 手机端：强制居中底部（和天气一样） */
@media (max-width: 768px) {
    .ai-assistant-bar {
        position: fixed !important;
        bottom: 120px !important;
        left: 50% !important;
        top: auto !important;
        transform: translateX(-50%) !important;
        width: auto !important;
        padding: 6px 10px !important;
    }
    .ai-assistant-bar.active {
        display: flex !important;
    }
}

/* 提升发布框整体层级，防遮挡 */
.quick-input-wrapper {
    z-index: 9999 !important; 
    position: relative !important;
}

/* 编辑器内部元素优化（防空洞、防折行） */
.note-card:has(.inline-edit-container) .card-header,
.note-card:has(.inline-edit-container) .card-footer,
.note-card:has(.inline-edit-container) .card-divider {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}
.inline-edit-container .inline-tool-bar {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    width: 100% !important;
    padding: 8px 12px !important;
    margin: 4px 0 !important;
    gap: 8px !important;
    border: none !important;
    background: var(--bg-hover) !important;
    border-radius: 12px !important;
    scrollbar-width: none !important;
}
.inline-edit-container .inline-tool-bar::-webkit-scrollbar { display: none !important; }
.inline-edit-container .inline-tool-bar > * { flex-shrink: 0 !important; display: flex !important; align-items: center !important; justify-content: center !important; }
.inline-edit-container .inline-tool-bar .tool-btn { color: var(--text-muted) !important; transition: all 0.2s ease !important; }
.inline-edit-container .inline-tool-bar .tool-btn:hover { background: var(--bg-secondary) !important; color: var(--accent) !important; box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important; }
.inline-edit-container .inline-bottom-bar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
    margin-top: 8px !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    border: none !important;
    height: auto !important;
    gap: 12px !important;
}
.inline-edit-container .edit-time-badge {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    background: var(--bg-hover) !important;
    color: var(--text-secondary) !important;
    padding: 4px 12px !important;
    border-radius: 20px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}
.inline-edit-container .inline-edit-actions { display: flex !important; gap: 8px !important; flex-shrink: 0 !important; }
.inline-edit-container .inline-edit-actions .btn { padding: 6px 16px !important; font-size: 13px !important; min-height: 34px !important; border-radius: 8px !important; white-space: nowrap !important; }
.inline-edit-container .inline-edit-textarea { 
    height: auto !important; 
    min-height: 150px !important; 
    max-height: 60vh !important; 
    padding: 12px !important; 
    margin: 0 !important; 
    background: var(--bg-hover) !important; 
    border-radius: 8px !important;
    border: none !important; 
    box-shadow: none !important; 
    overflow-y: auto !important; 
    font-size: 16.5px !important; 
    line-height: 1.8 !important; 
    color: var(--text-primary) !important; 
    box-sizing: border-box !important;
    resize: none !important;
    position: relative !important;
    z-index: 1 !important; 
}
.note-card:has(.inline-edit-container) { padding: 20px 20px 12px 20px !important; height: auto !important; min-height: 0 !important; border-color: var(--accent-35) !important; box-shadow: 0 8px 30px rgba(0,0,0,0.08) !important; }
.note-card:has(.inline-edit-container) .card-body { display: block !important; height: auto !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; gap: 0 !important; }

/* ---------- 11. 热力图与分享海报等辅助 ---------- */
.sidebar-heatmap-wrapper { margin-bottom: 24px; padding: 0 4px; }
.heatmap-header { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-muted); margin-bottom: 8px; font-weight: 600; }
.streak-text { color: var(--accent); background: var(--accent-10); padding: 2px 6px; border-radius: 10px; font-size: 11px; }
.heatmap-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; }
.heatmap-box { aspect-ratio: 1; border-radius: 3px; background: var(--bg-hover); transition: transform 0.2s, background 0.2s; cursor: pointer; position: relative; }
.heatmap-box:hover { transform: scale(1.2); z-index: 100; }
.heatmap-box.level-1 { background: var(--accent-30); }
.heatmap-box.level-2 { background: var(--accent); }
.heatmap-box.level-3 { background: var(--accent-hover); box-shadow: 0 0 6px var(--accent-35); }
.heatmap-box::after { content: attr(data-tip); position: absolute; bottom: 120%; left: 50%; transform: translateX(-50%) translateY(4px); background: #333; color: #fff; padding: 6px 10px; border-radius: 6px; font-size: 11px; white-space: nowrap; opacity: 0; pointer-events: none; transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1); z-index: 9999; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.heatmap-box:nth-child(10n + 1)::after, .heatmap-box:nth-child(10n + 2)::after, .heatmap-box:nth-child(10n + 3)::after { left: 0 !important; transform: translateX(0) translateY(4px) !important; border-bottom-left-radius: 2px; }
.heatmap-box:nth-child(10n + 8)::after, .heatmap-box:nth-child(10n + 9)::after, .heatmap-box:nth-child(10n)::after { left: auto !important; right: 0 !important; transform: translateX(0) translateY(4px) !important; border-bottom-right-radius: 2px; }
.heatmap-box:hover::after { opacity: 1; transform: translateX(-50%) translateY(0) !important; }
.heatmap-box:nth-child(10n + 1):hover::after, .heatmap-box:nth-child(10n + 2):hover::after, .heatmap-box:nth-child(10n + 3):hover::after { transform: translateX(0) translateY(0) !important; }
.heatmap-box:nth-child(10n + 8):hover::after, .heatmap-box:nth-child(10n + 9):hover::after, .heatmap-box:nth-child(10n):hover::after { transform: translateX(0) translateY(0) !important; }
[data-theme="dark"] .heatmap-box::after { background: #fff; color: #333; }

.year-heatmap-card { background: var(--bg-secondary); border-radius: 16px; padding: 24px; margin-top: 20px; margin-bottom: 24px; border: 1px solid var(--border-color); box-shadow: 0 2px 12px rgba(0,0,0,0.02); }
.year-heatmap-header { display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: 20px; }
.heatmap-legend { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-muted); }
.year-heatmap-body { display: flex; align-items: flex-start; width: 100%; }
.year-heatmap-weekdays { display: grid; grid-template-rows: repeat(7, 13px); gap: 4px; padding-top: 10px; margin-right: 12px; font-size: 11px; color: var(--text-muted); align-items: center; user-select: none; }
.year-heatmap-scroll { flex: 1; width: 100%; overflow-x: auto; overflow-y: visible; padding: 10px 40px 8px 0; scrollbar-width: thin; }
.year-heatmap-scroll::-webkit-scrollbar { height: 6px; }
.year-heatmap-scroll::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
.year-heatmap-grid { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 13px); gap: 4px; min-width: max-content; margin: 0 auto; }
.year-heatmap-grid .heatmap-box { width: 13px; height: 13px; border-radius: 3px; background: var(--bg-hover); cursor: pointer; transition: transform 0.2s, filter 0.2s, box-shadow 0.2s; }
.year-heatmap-grid .heatmap-box:hover { transform: scale(1.3); z-index: 10; filter: brightness(1.1); }
.year-heatmap-grid .heatmap-box.clicked { outline: 2px solid #fff !important; outline-offset: 1px; z-index: 20; box-shadow: 0 0 10px rgba(255,255,255,0.8) !important; transform: scale(1.15); }
[data-theme="dark"] .year-heatmap-grid .heatmap-box.clicked { outline: 2px solid var(--accent) !important; box-shadow: 0 0 12px var(--accent-30) !important; }
.year-heatmap-grid .level-0 { background: var(--bg-hover); }
.year-heatmap-grid .level-1 { background: var(--accent-30); }
.year-heatmap-grid .level-2 { background: var(--accent); }
.year-heatmap-grid .level-3 { background: var(--accent-hover); box-shadow: 0 0 6px var(--accent-35); }
.global-heatmap-tooltip { position: fixed; background: #333; color: #fff; padding: 6px 10px; border-radius: 6px; font-size: 12px; white-space: nowrap; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity 0.15s, visibility 0.15s, transform 0.1s; z-index: 999999; box-shadow: 0 4px 12px rgba(0,0,0,0.15); transform: translate(-50%, -100%) scale(0.95); }
.global-heatmap-tooltip.show { opacity: 1; visibility: visible; transform: translate(-50%, -100%) scale(1); }
[data-theme="dark"] .global-heatmap-tooltip { background: #fff; color: #333; }

/* ================= 分享弹窗全面美化版 (保留4款主题优化) ================= */

#sharePosterModal { 
    background: rgba(10, 12, 20, 0.88) !important; 
    backdrop-filter: blur(16px) saturate(120%) !important; 
    -webkit-backdrop-filter: blur(16px) saturate(120%) !important; 
    z-index: 100000 !important; 
    display: none; 
    align-items: center; 
    justify-content: center; 
    padding: 20px; 
}
#sharePosterModal.active { display: flex !important; animation: fadeIn 0.3s ease; }

/* 核心容器 */
.share-modal-content { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    width: 100%; 
    max-width: 460px; 
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
}

/* 海报画板区 */
.share-poster-wrapper { 
    width: 100%; 
    border-radius: 20px; 
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.15); 
    overflow: visible !important; 
    margin-bottom: 24px; 
    background: #fff; 
    position: relative; 
    transition: transform 0.3s;
}
.share-poster-wrapper canvas { 
    width: 100%; 
    height: auto; 
    display: block; 
    border-radius: 20px;
}

/* 设置按钮 */
.share-settings-btn { 
    position: absolute; 
    top: -12px; 
    right: -12px; 
    width: 32px; 
    height: 32px; 
    border-radius: 50%; 
    background: rgba(30, 30, 40, 0.9); 
    backdrop-filter: blur(10px); 
    border: 1px solid rgba(255, 255, 255, 0.2); 
    color: #eee; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    z-index: 99999 !important; 
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); 
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.share-settings-btn:hover { 
    transform: rotate(90deg) scale(1.1); 
    background: var(--accent); 
    color: #fff; 
    border-color: var(--accent); 
}

/* 设置下拉菜单 */
.share-settings-dropdown { 
    position: absolute; 
    top: 30px; 
    right: 0; 
    background: rgba(30, 32, 45, 0.95); 
    backdrop-filter: blur(20px);
    border-radius: 14px; 
    padding: 12px; 
    box-shadow: 0 16px 40px rgba(0,0,0,0.4) !important; 
    border: 1px solid rgba(255,255,255,0.1); 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
    z-index: 100000 !important; 
    opacity: 0; 
    visibility: hidden; 
    transform: translateY(10px) scale(0.95); 
    transform-origin: top right; 
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); 
}
.share-settings-dropdown.active { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.share-checkbox-label { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    cursor: pointer; 
    color: #e2e8f0; 
    font-size: 13px; 
    padding: 6px 10px; 
    border-radius: 8px; 
    transition: background 0.2s; 
}
.share-checkbox-label:hover { background: rgba(255, 255, 255, 0.1); }
.share-checkbox-label input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; cursor: pointer; }

/* 底部操作区 */
.share-bottom-bar { 
    width: 100%; 
    display: flex; 
    flex-direction: column; 
    gap: 16px; 
}

/* 主题切换器：针对 4 款主题优化的等宽分布 */
.share-theme-tabs { 
    display: flex; 
    justify-content: space-between; 
    gap: 6px; 
    padding: 4px; 
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch; 
    scrollbar-width: none; 
}
.share-theme-tabs::-webkit-scrollbar { display: none; }

.theme-tab { 
    flex: 1; /* 等分宽度 */
    white-space: nowrap; /* 防止文字换行 */
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 6px; 
    background: rgba(255, 255, 255, 0.08); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    padding: 8px 10px; 
    border-radius: 20px; 
    font-size: 13px; 
    color: rgba(255, 255, 255, 0.7); 
    cursor: pointer; 
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); 
    font-family: inherit; 
    backdrop-filter: blur(8px);
}
.theme-tab .dot { 
    width: 14px; 
    height: 14px; 
    border-radius: 50%; 
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1); 
}
.theme-tab:hover { 
    background: rgba(255, 255, 255, 0.15); 
    color: #fff; 
    transform: translateY(-1px);
}
.theme-tab.active { 
    background: rgba(255, 255, 255, 0.95); 
    color: #1a1d2d; 
    border-color: #fff; 
    font-weight: 600; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 底部按钮 */
.share-actions { display: flex; gap: 12px; width: 100%; }
.share-actions .btn { 
    flex: 1; 
    min-height: 48px; 
    border-radius: 14px; 
    font-size: 15px; 
    font-weight: 600; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1); 
}
.share-cancel-btn { 
    background: rgba(255, 255, 255, 0.1) !important; 
    color: #fff !important; 
    border: 1px solid rgba(255, 255, 255, 0.15) !important; 
    backdrop-filter: blur(8px);
}
.share-cancel-btn:hover { 
    background: rgba(255, 255, 255, 0.2) !important; 
    transform: translateY(-2px);
}
.share-save-btn { 
    background: #fff !important; 
    color: #1a1d2d !important; 
    border: none !important; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important; 
}
.share-save-btn:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15) !important; 
}

/* ---------- 12. 回收站、待办、设置 ---------- */
#trashView { background-color: var(--bg-hover) !important; padding: 24px 16px !important; border-radius: 24px !important; min-height: 80vh; margin-top: 10px; }
#trashView > div { max-width: 680px; margin: 0 auto; width: 100%; }
#trashView > div > div:first-child { display: flex; justify-content: flex-end; margin-bottom: 20px; }
#trashView .btn-danger:not(.note-card .btn-danger) { background: var(--bg-secondary) !important; color: var(--danger) !important; border: 1.5px solid var(--danger) !important; font-size: 13px !important; padding: 8px 20px !important; border-radius: 20px !important; transition: all 0.2s ease; box-shadow: 0 2px 8px rgba(245, 101, 101, 0.1) !important; font-weight: 700; }
#trashView .btn-danger:not(.note-card .btn-danger):hover { background: var(--danger) !important; color: #fff !important; box-shadow: 0 4px 12px rgba(245, 101, 101, 0.3) !important; }
#trashView .note-card { background: var(--bg-secondary) !important; border: 1px solid var(--border-color) !important; box-shadow: 0 4px 15px rgba(0,0,0,0.04) !important; border-radius: 16px !important; padding: 24px !important; margin-bottom: 16px !important; display: flex !important; flex-direction: column !important; gap: 20px !important; transition: transform 0.2s, box-shadow 0.2s; }
#trashView .note-card:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.08) !important; transform: translateY(-2px); border-color: var(--accent-30) !important; }
#trashView .note-card > div:first-child { color: var(--text-primary) !important; font-size: 15px !important; line-height: 1.7 !important; text-decoration: line-through !important; text-decoration-color: rgba(154,138,160,.6) !important; text-decoration-thickness: 1.5px !important; opacity: 0.7; margin: 0 !important; }
#trashView .note-card > div:last-child { display: flex !important; justify-content: flex-end !important; gap: 12px !important; }
#trashView .note-card .btn-outline { background: var(--success) !important; border: none !important; color: #ffffff !important; padding: 8px 20px !important; border-radius: 20px !important; font-size: 13px !important; font-weight: 600 !important; transition: all 0.2s; box-shadow: 0 4px 10px rgba(72, 187, 120, 0.2) !important; margin: 0 !important; }
#trashView .note-card .btn-outline:hover { background: #38a169 !important; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(72, 187, 120, 0.3) !important; }
#trashView .note-card .btn-danger { background: var(--danger) !important; border: none !important; color: #ffffff !important; padding: 8px 20px !important; border-radius: 20px !important; font-size: 13px !important; font-weight: 600 !important; transition: all 0.2s; box-shadow: 0 4px 10px rgba(245, 101, 101, 0.2) !important; margin: 0 !important; }
#trashView .note-card .btn-danger:hover { background: #e53e3e !important; transform: translateY(-2px); box-shadow: 0 6px 15px rgba(245, 101, 101, 0.3) !important; }

#todoView { display: block !important; min-height: 300px !important; height: auto !important; overflow: visible !important; flex: 1 1 auto !important; }
#todoListContent { min-height: 200px !important; display: block !important; width: 100% !important; }
.todo-list-wrapper { display: flex !important; flex-direction: column !important; width: 100% !important; min-height: 100px !important; background: var(--bg-secondary) !important; border-radius: 16px !important; border: 1px solid var(--border-color) !important; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02) !important; padding: 8px 0 !important; margin-top: 10px; overflow: hidden; }
.todo-list-item { display: flex !important; align-items: flex-start !important; gap: 16px !important; padding: 16px 20px !important; margin: 0 8px !important; border-radius: 12px !important; border-bottom: 1px solid var(--border-color) !important; transition: all 0.2s ease !important; cursor: default; width: 100% !important; flex-shrink: 0 !important; }
.todo-list-item:last-child { border-bottom: none !important; }
.todo-list-item:hover { background: var(--bg-hover) !important; }
.todo-checkbox { cursor: pointer; display: flex; align-items: center; justify-content: center; margin-top: 2px; transition: transform 0.2s ease; color: var(--text-muted); position: relative; }
.todo-checkbox:hover { transform: scale(1.1); color: var(--accent); }
.todo-checkbox:active { transform: scale(0.8) !important; }
.todo-checkbox svg { width: 22px; height: 22px; transition: all 0.2s ease; }
.todo-list-item.is-done .todo-checkbox svg { animation: checkboxPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards; }
@keyframes checkboxPop { 0% { transform: scale(0.8); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }
.todo-content { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.todo-text { font-size: 16px !important; line-height: 1.5 !important; color: var(--text-primary) !important; font-weight: 500; position: relative; display: inline-block; transition: color 0.3s ease; }
.todo-date { font-size: 12px !important; color: var(--text-muted) !important; opacity: 0.8; }
.todo-list-item.is-done { opacity: 0.6; background: var(--bg-hover) !important; margin-top: -8px !important; }
.todo-list-item.is-done .todo-text { text-decoration: none !important; color: var(--text-muted) !important; }
.todo-list-item.is-done .todo-text::after { content: ''; position: absolute; top: 55%; left: 0; width: 100%; height: 2px; background: var(--text-muted); transform-origin: left; animation: strikeThrough 0.3s ease-out forwards; }
@keyframes strikeThrough { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.todo-delete-btn { background: transparent; border: none; color: var(--text-muted); cursor: pointer; padding: 6px; border-radius: 8px; opacity: 0; transition: all 0.2s; display: flex; align-items: center; justify-content: center; }
.todo-list-item:hover .todo-delete-btn { opacity: 1; }
.todo-delete-btn:hover { background: rgba(245, 101, 101, 0.1); color: var(--danger); }
@media (max-width: 768px) {
    .todo-list-item { padding: 14px 16px !important; }
    .todo-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 65vw; }
    .todo-delete-btn { opacity: 0.5 !important; padding: 12px !important; }
}

.settings-view { display: none !important; }
.settings-view.active { display: block !important; animation: fadeIn 0.2s ease; }
#backupView .back-btn { background: transparent !important; border: none !important; color: var(--text-muted) !important; padding: 0 0 16px 0 !important; font-size: 14px !important; cursor: pointer; display: inline-flex; align-items: center; font-weight: 500; transition: color 0.2s; }
#backupView .back-btn:hover { color: var(--accent) !important; }
.settings-menu { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.settings-menu-item { display: flex !important; align-items: center !important; background: var(--bg-hover) !important; border: 1px solid transparent !important; border-radius: 16px !important; padding: 16px !important; cursor: pointer !important; width: 100% !important; text-align: left !important; transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) !important; box-shadow: 0 2px 8px rgba(0,0,0,0.02) !important; }
.settings-menu-item:hover { background: var(--bg-secondary) !important; border-color: var(--accent-35) !important; transform: translateY(-2px) !important; box-shadow: 0 6px 16px var(--accent-10) !important; }
.settings-menu-item .menu-icon { font-size: 24px; margin-right: 16px; display: flex; align-items: center; justify-content: center; }
.settings-menu-item .menu-text { flex: 1; }
.settings-menu-item .menu-title { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.settings-menu-item .menu-desc { font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.settings-menu-item .menu-arrow { font-size: 20px; color: var(--text-muted); transition: transform 0.2s; }
.settings-menu-item:hover .menu-arrow { transform: translateX(4px); color: var(--accent); }
.settings-section { background: var(--bg-primary); padding: 20px; border-radius: 16px; border: 1px solid var(--border-color); }
.settings-section h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--text-primary); }
.settings-section .sub { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.5; }

@media (min-width: 769px) {
    .mobile-bottom-bar, .mobile-drawer-overlay, .mobile-add-btn, .mobile-fake-input { display: none !important; }
    .sidebar { overflow-y: auto !important; scrollbar-width: thin; scrollbar-color: var(--border-color) transparent; overflow-x: hidden !important; }
    .sidebar::-webkit-scrollbar { width: 4px; }
    .sidebar::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 4px; }
    .quick-input-wrapper { display: block !important; }
    .sidebar { width: 260px !important; min-width: 260px !important; }
    .footer { display: none !important; }
}

@media (max-width: 768px) {
    .sidebar { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); box-shadow: 4px 0 20px rgba(0,0,0,0.1); z-index: 10000 !important; }
    .sidebar.show { transform: translateX(0); }
    .main-content { padding: 10px 12px 100px 12px !important; max-width: 100%; }
    .menu-toggle-btn { display: block; }
    body { padding-bottom: 20px !important; }
    .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(2px); z-index: 9999 !important; opacity: 0; transition: opacity 0.3s; }
    .sidebar-overlay.show { display: block; opacity: 1; }
    .back-to-top { bottom: 90px !important; right: 20px !important; width: 42px !important; height: 42px !important; }
    #noteContentModal .modal-box { max-height: 80vh; padding: 20px 20px !important; }
    #noteContentMeta { margin-top: 20px !important; flex-wrap: wrap; line-height: 1.5; }
    #imagePreviewModal .close-btn { top: calc(12px + env(safe-area-inset-top)); right: 14px; width: 40px; height: 40px; font-size: 24px; }
    #imagePreviewModal .rotate-btn { bottom: calc(20px + env(safe-area-inset-bottom)); right: 20px; width: 44px; height: 44px; font-size: 22px; }
    #imagePreviewModal .nav-arrow { width: 44px; height: 44px; font-size: 22px; }
    #imagePreviewModal .nav-arrow.prev { left: 12px; } #imagePreviewModal .nav-arrow.next { right: 12px; }
    #noteContentModal .note-content-images .content-img-item { max-height: 180px; }
    #noteContentModal .note-content-images.single .content-img-item img { max-height: 300px; }
    .like-btn { font-size: 12px; padding: 3px 6px; } .like-btn .like-heart { font-size: 14px; } .like-btn .like-count { font-size: 11px; } .note-card .card-footer .footer-right { gap: 8px; }
    .footer { padding-bottom: 90px !important; display: none !important; }
    .calendar-card { padding: 16px 12px; border-radius: 16px; }
    .calendar-grid .day { min-height: 38px; border-radius: 9px; }
    .calendar-grid .day .day-number { font-size: 13px; }
    .note-card .card-images .img-item { max-height: 180px; }
    .note-card .card-images.single .img-item, .note-card .card-images.single .img-item img { max-height: 300px; }
    .note-card .card-text-inner { font-size: 15px; line-height: 1.75; }
    .note-card .card-text.collapsed .card-text-inner { max-height: 18em; -webkit-line-clamp: 10; }
    .modal-box { padding: 24px 20px; max-width: 100%; border-radius: 20px; }
    #mainNoteList > .note-card { padding: 16px !important; margin-bottom: 0 !important; border-radius: 12px !important; }
    #mainNoteList { gap: 12px; }
    #mainNoteList > .note-card .card-images { margin: 10px -4px 12px -4px !important; }
    #mainNoteList > .note-card .card-text-inner { font-size: 15.5px !important; line-height: 1.7 !important; }
    #mainNoteList > .note-card .card-text-inner .tag-link { padding: 2px 4px !important; }
    .search-box { padding: 6px 12px; }

    body:not(.drawer-open) .quick-input-wrapper:not(.mobile-drawer) { display: none !important; }
    .mobile-drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(2px); z-index: 998; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
    .mobile-drawer-overlay.show { opacity: 1; pointer-events: auto; }
    .quick-input-wrapper.mobile-drawer { display: flex !important; flex-direction: column !important; position: fixed !important; bottom: 0 !important; left: 0 !important; right: 0 !important; z-index: 99999 !important; margin: 0 !important; border-radius: 20px 20px 0 0 !important; border-bottom: none !important; padding: 20px 16px calc(20px + env(safe-area-inset-bottom)) !important; transform: translateY(100%); transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) !important; box-shadow: 0 -10px 40px rgba(0,0,0,0.1); max-height: 85vh; overflow-y: auto; background: var(--bg-secondary) !important; }
    .quick-input-wrapper.mobile-drawer.active { transform: translateY(0) !important; }
    .quick-input-wrapper.mobile-drawer textarea { min-height: 120px !important; font-size: 16px !important; }
    .quick-input-wrapper .qi-tools, .inline-edit-container .qi-tools { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 4px !important; flex: 1; width: 100%; padding-right: 10px; }
    .quick-input-wrapper .qi-tools::-webkit-scrollbar, .inline-edit-container .qi-tools::-webkit-scrollbar { display: none; }
    .quick-input-wrapper .qi-tools .tool-btn, .quick-input-wrapper .qi-tools .private-toggle, .inline-edit-container .tool-btn, .inline-edit-container .private-toggle { flex-shrink: 0 !important; padding: 6px 8px !important; }
    .inline-edit-container .private-toggle span { font-size: 13px !important; }
    .quick-input-wrapper .qi-actions, .inline-edit-container .qi-actions { flex-wrap: nowrap !important; align-items: center !important; gap: 8px !important; padding-top: 12px !important; border-top: 1px dashed var(--border-color) !important; }
    .quick-input-wrapper .qi-send-btn { flex-shrink: 0 !important; margin-left: auto !important; width: 36px !important; height: 36px !important; display: flex !important; }
    .inline-edit-container .inline-edit-actions { display: flex !important; flex-wrap: nowrap !important; gap: 8px !important; flex-shrink: 0 !important; }
    .inline-edit-container .inline-edit-actions .btn { min-height: 34px !important; padding: 4px 14px !important; font-size: 13px !important; border-radius: 8px !important; white-space: nowrap !important; }

    .mobile-fab-btn { position: fixed !important; bottom: calc(30px + env(safe-area-inset-bottom)) !important; left: 50% !important; transform: translateX(-50%) !important; width: 56px !important; height: 56px !important; border-radius: 50% !important; background: var(--gradient) !important; color: #fff !important; border: none !important; box-shadow: 0 8px 24px var(--accent-35), 0 2px 8px rgba(0,0,0,0.1) !important; display: flex !important; align-items: center !important; justify-content: center !important; z-index: 900 !important; cursor: pointer !important; transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) !important; }
    .mobile-fab-btn:active { transform: translateX(-50%) scale(0.9) !important; box-shadow: 0 4px 12px var(--accent-30) !important; }
    body.drawer-open .mobile-fab-btn { display: none !important; opacity: 0 !important; pointer-events: none !important; }
    .mobile-bottom-bar, .mobile-add-btn, .mobile-fake-input { display: none !important; }
    .sidebar { transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1) !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- 15. 快捷键与辅助类 ---------- */
kbd { display: inline-flex; align-items: center; justify-content: center; background: var(--bg-secondary); border: 1px solid var(--border-color); border-bottom-width: 3px; border-radius: 6px; padding: 4px 10px; font-family: 'SF Mono', 'JetBrains Mono', Consolas, monospace; font-size: 13px; font-weight: 700; color: var(--text-primary); min-width: 32px; min-height: 28px; box-shadow: 0 2px 0 rgba(0,0,0,0.05); transition: all 0.1s; }
kbd:active { border-bottom-width: 1px; transform: translateY(2px); box-shadow: none; }
.modal-box .kbd-list { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; padding: 16px; background: var(--bg-hover); border-radius: 16px; }
.modal-box .kbd-list > div { display: flex !important; align-items: center !important; justify-content: space-between !important; font-size: 14px; color: var(--text-secondary); padding: 6px 0; border-bottom: 1px dashed var(--border-color); }
.modal-box .kbd-list > div:last-child { border-bottom: none; }
.modal-box .kbd-list > div > span:first-child { display: flex !important; align-items: center !important; gap: 6px !important; }
.md-code-block { background: var(--bg-hover) !important; color: var(--text-primary) !important; padding: 12px 16px !important; border-radius: 10px !important; font-size: 14px !important; line-height: 1.6 !important; margin: 10px 0 !important; display: block !important; white-space: pre-wrap !important; border: 1px solid var(--border-color) !important; }
.md-code-block code { font-family: inherit; white-space: pre; }
.hl-keyword { color: #c678dd; font-weight: bold; } .hl-string { color: #98c379; } .hl-comment { color: #5c6370; font-style: italic; }

/* 杂项按钮样式 */
.like-btn { display: inline-flex; align-items: center; gap: 5px; background: transparent; border: none; padding: 4px 8px; border-radius: 20px; cursor: pointer; color: var(--text-muted); transition: background 0.2s, color 0.2s; font-family: inherit; line-height: 1; user-select: none; }
.like-btn:hover { background: rgba(245, 101, 101, 0.08); color: var(--danger); }
.like-btn .heart-svg { transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), fill 0.2s, stroke 0.2s; pointer-events: none; }
.like-btn:hover .heart-svg { transform: scale(1.15); }
.like-btn .like-count { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; transition: color 0.2s; min-width: 8px; }
.like-btn:active .heart-svg { transform: scale(0.8); }
.like-btn.liked .like-count { color: var(--danger); }
.like-btn.liked .heart-svg { animation: heartBounce 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes heartBounce { 0% { transform: scale(1); } 30% { transform: scale(1.3); } 60% { transform: scale(0.9); } 100% { transform: scale(1); } }

.tag-link { color: var(--accent); cursor: pointer; font-weight: 600; padding: 0 2px; text-decoration: none; border-bottom: none; transition: all .15s; }
.tag-link:hover { background: var(--accent); color: #fff; border-radius: 4px; padding: 0 6px; }
.auto-link { color: var(--accent); text-decoration: none; border-bottom: 1px dashed var(--accent); word-break: break-all; overflow-wrap: anywhere; transition: all .2s; }
.auto-link:hover { border-bottom-style: solid; color: var(--accent-hover); }
mark.search-hl { background: linear-gradient(180deg, transparent 55%, var(--accent-35) 55%); color: inherit; padding: 0 2px; border-radius: 3px; font-weight: 600; }

#tagManageModal .modal-box { display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(244, 114, 182, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.02); border-radius: 24px; }
.tag-manage-list { max-height: 55vh; overflow-y: auto; margin: 0 -8px; padding: 0 8px; scrollbar-width: none; }
.tag-manage-list::-webkit-scrollbar { display: none; }
.tag-manage-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; background: var(--bg-primary); border: 1px solid rgba(244, 114, 182, 0.08); padding: 12px 16px; border-radius: 12px; margin-bottom: 8px; transition: all .2s; gap: 8px; }
.tag-manage-item:hover { background: var(--bg-secondary); border-color: rgba(244, 114, 182, 0.2); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02); }
.tag-manage-item .tag-info { display: flex; align-items: center; flex: 1; min-width: 0; gap: 8px; }
.tag-manage-item .tag-name { font-size: 15px; font-weight: 600; color: var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-manage-item .tag-count { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }
.tag-manage-item .tag-actions { display: flex; gap: 6px; flex-shrink: 0; }
.tag-manage-item .tag-action-btn { background: transparent; border: 1px solid var(--border-color); cursor: pointer; color: var(--text-secondary); transition: all .2s; font-family: inherit; border-radius: 20px !important; padding: 4px 12px !important; font-size: 12px; }
.tag-manage-item .tag-action-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.tag-manage-item .tag-action-btn.danger:hover { background: var(--danger); border-color: var(--danger); }
@media (max-width: 500px) {
    .tag-manage-item { flex-direction: row; flex-wrap: nowrap; padding: 10px 12px; gap: 4px; }
    .tag-manage-item .tag-info { width: auto; flex: 1; min-width: 0; gap: 6px; }
    .tag-manage-item .tag-name { font-size: 14px; }
    .tag-manage-item .tag-actions { width: auto; margin-top: 0; padding-top: 0; border-top: none; gap: 4px; }
    .tag-manage-item .tag-action-btn { padding: 4px 8px !important; font-size: 11px !important; white-space: nowrap; }
}

.back-to-top {
    position: fixed !important; bottom: 30px !important; right: 30px !important; width: 46px !important; height: 46px !important;
    background: var(--bg-secondary) !important; color: var(--text-secondary) !important; border: 1px solid var(--border-color) !important;
    border-radius: 50% !important; display: flex !important; align-items: center !important; justify-content: center !important;
    cursor: pointer !important; z-index: 900 !important; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    opacity: 0 !important; visibility: hidden !important; transform: translateY(20px) !important; transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}
.back-to-top.show { opacity: 1 !important; visibility: visible !important; transform: translateY(0) !important; }
.back-to-top:hover { background: var(--accent) !important; color: #fff !important; border-color: var(--accent) !important; box-shadow: 0 6px 20px var(--accent-35) !important; transform: translateY(-3px) !important; }
.back-to-top:active { transform: scale(0.92) !important; }
@media (max-width: 768px) { .back-to-top { bottom: 100px !important; right: 20px !important; width: 42px !important; height: 42px !important; } }

.share-btn { display: inline-flex !important; align-items: center !important; justify-content: center !important; background: transparent !important; border: none !important; padding: 4px 8px !important; border-radius: 50% !important; color: var(--text-muted) !important; cursor: pointer !important; transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) !important; margin: 0 !important; line-height: 1 !important; }
.share-btn:hover { color: var(--accent) !important; background: var(--accent-10) !important; transform: translateY(-2px) !important; }
.share-btn:active { transform: scale(0.9) !important; }
.share-btn svg { display: block; width: 16px; height: 16px; transition: transform 0.2s; }

.view-container.hidden, #calendarView.hidden, #todoView.hidden, #trashView.hidden, #listView.hidden { display: none !important; visibility: hidden !important; height: 0 !important; overflow: hidden !important; }
body:not(.is-logged-in) #navTodo, body:not(.is-logged-in) #navTagManage, body:not(.is-logged-in) #navTrashBin, body:not(.is-logged-in) #openSettingsBtn { display: none !important; }
body:not(.is-logged-in) .sidebar-tags { flex: none !important; margin-top: 0 !important; min-height: auto !important; }
body:not(.is-logged-in) .nav-menu { margin-bottom: 16px !important; }

#navTodo[style*="display: flex"],
#navTagManage[style*="display: flex"],
#navTrashBin[style*="display: flex"],
#openSettingsBtn[style*="display: flex"] {
    display: flex !important;
}

.note-card .card-images .img-item { position: relative !important; overflow: hidden !important; }
.note-card .card-images .img-item .img-info-overlay {
    position: absolute !important; bottom: 0 !important; left: 0 !important; right: 0 !important;
    background: rgba(0, 0, 0, 0.75) !important; backdrop-filter: blur(8px) !important; -webkit-backdrop-filter: blur(8px) !important;
    padding: 10px 12px !important; color: #ffffff !important; font-size: 12px !important; font-family: var(--font) !important;
    display: flex !important; flex-direction: column !important; gap: 4px !important;
    opacity: 0 !important; visibility: hidden !important; transform: translateY(10px) !important; transition: all 0.3s ease !important;
    pointer-events: none !important; z-index: 10 !important; border-radius: 0 0 10px 10px !important;
}
.note-card .card-images .img-item:hover .img-info-overlay { opacity: 1 !important; visibility: visible !important; transform: translateY(0) !important; }
.note-card .card-images .img-item .img-info-name { font-weight: 600 !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; color: #ffffff !important; }
.note-card .card-images .img-item .img-info-meta { display: flex !important; justify-content: space-between !important; align-items: center !important; color: rgba(255, 255, 255, 0.8) !important; font-size: 11px !important; }

@media (min-width: 769px) { #mobileBottomBar, .mobile-fab-btn { display: none !important; } }
@media (max-width: 768px) {
    .mobile-fab-btn {
        position: fixed !important; bottom: calc(30px + env(safe-area-inset-bottom)) !important; left: 50% !important; transform: translateX(-50%) !important; 
        width: 56px !important; height: 56px !important; border-radius: 50% !important; background: var(--gradient) !important; color: #fff !important; border: none !important; 
        box-shadow: 0 8px 24px var(--accent-35), 0 2px 8px rgba(0,0,0,0.1) !important; display: flex !important; align-items: center !important; justify-content: center !important; 
        z-index: 900 !important; cursor: pointer !important; 
    }
}

[data-theme="dark"] .search-box .search-input { color: #e2e8f0 !important; }
[data-theme="dark"] .search-box .search-input::placeholder { color: #64748b !important; }
[data-theme="dark"] .search-box .search-icon::before { stroke: #a0aec0 !important; }

/* ============================================================
   随手记 · 终极定稿版补丁 (排版 / 编辑器 / 手机端 / 顶栏)
   ============================================================ */

/* ---------- 16. 卡片防爆盾与排版 ---------- */
#mainNoteList > .note-card { overflow: hidden !important; }

#mainNoteList > .note-card .card-text-inner,
#mainNoteList > .note-card .card-text-inner * {
    white-space: normal !important; 
    word-break: break-word !important; 
    overflow-wrap: anywhere !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* 消除所有奇怪的灰底，并统一下边距 */
#mainNoteList > .note-card .card-text-inner div,
#mainNoteList > .note-card .card-text-inner span,
#mainNoteList > .note-card .card-text-inner p,
#mainNoteList > .note-card .card-text-inner mark {
    background: transparent !important; 
    border: none !important;
    box-shadow: none !important;
    color: inherit !important; 
}

#mainNoteList > .note-card .card-text-inner div,
#mainNoteList > .note-card .card-text-inner p {
    display: block !important;
    margin-top: 0 !important;
    margin-bottom: 12px !important; 
    line-height: 1.8 !important;
}

#mainNoteList > .note-card .card-text-inner blockquote {
    background: transparent !important;
    border-left: 3px solid var(--accent) !important;
    padding-left: 12px !important;
    margin: 12px 0 !important;
    color: var(--text-secondary) !important;
    font-style: normal !important;
}

/* ---------- 17. 彩色卡片背景与渐隐适配 ---------- */
#mainNoteList > .note-card.note-bg-softpink { background-color: #fffafb !important; border-color: #fce4ec !important; }
#mainNoteList > .note-card.note-bg-softblue { background-color: #f8fbff !important; border-color: #e3f2fd !important; }
#mainNoteList > .note-card.note-bg-softgreen { background-color: #f8fdf9 !important; border-color: #e8f5e9 !important; }
#mainNoteList > .note-card.note-bg-softyellow { background-color: #fffdf5 !important; border-color: #fff8e1 !important; }
#mainNoteList > .note-card.note-bg-softpurple { background-color: #fdfbff !important; border-color: #f3e5f5 !important; }
#mainNoteList > .note-card.note-bg-softorange { background-color: #fffbf7 !important; border-color: #fff3e0 !important; }
#mainNoteList > .note-card.note-bg-softgray { background-color: #fafafa !important; border-color: #f5f5f5 !important; }

html[data-theme="dark"] #mainNoteList > .note-card.note-bg-softpink { background-color: #2d1b22 !important; border-color: #4a2b36 !important; }
html[data-theme="dark"] #mainNoteList > .note-card.note-bg-softblue { background-color: #1a222d !important; border-color: #2b364a !important; }
html[data-theme="dark"] #mainNoteList > .note-card.note-bg-softgreen { background-color: #1a2b1f !important; border-color: #2b4a35 !important; }
html[data-theme="dark"] #mainNoteList > .note-card.note-bg-softyellow { background-color: #2b2a1a !important; border-color: #4a4830 !important; }
html[data-theme="dark"] #mainNoteList > .note-card.note-bg-softpurple { background-color: #251a2d !important; border-color: #3b2a4a !important; }
html[data-theme="dark"] #mainNoteList > .note-card.note-bg-softorange { background-color: #2d221a !important; border-color: #4a392b !important; }
html[data-theme="dark"] #mainNoteList > .note-card.note-bg-softgray { background-color: #222222 !important; border-color: #333333 !important; }

#mainNoteList > .note-card.note-bg-softpink .card-text.collapsed::after { background: linear-gradient(to bottom, transparent, #fffafb 90%) !important; }
#mainNoteList > .note-card.note-bg-softblue .card-text.collapsed::after { background: linear-gradient(to bottom, transparent, #f8fbff 90%) !important; }
#mainNoteList > .note-card.note-bg-softgreen .card-text.collapsed::after { background: linear-gradient(to bottom, transparent, #f8fdf9 90%) !important; }
#mainNoteList > .note-card.note-bg-softyellow .card-text.collapsed::after { background: linear-gradient(to bottom, transparent, #fffdf5 90%) !important; }
#mainNoteList > .note-card.note-bg-softpurple .card-text.collapsed::after { background: linear-gradient(to bottom, transparent, #fdfbff 90%) !important; }
#mainNoteList > .note-card.note-bg-softorange .card-text.collapsed::after { background: linear-gradient(to bottom, transparent, #fffbf7 90%) !important; }
#mainNoteList > .note-card.note-bg-softgray .card-text.collapsed::after { background: linear-gradient(to bottom, transparent, #fafafa 90%) !important; }

[data-theme="dark"] #mainNoteList > .note-card.note-bg-softpink .card-text.collapsed::after { background: linear-gradient(to bottom, transparent, #2d1b22 90%) !important; }
[data-theme="dark"] #mainNoteList > .note-card.note-bg-softblue .card-text.collapsed::after { background: linear-gradient(to bottom, transparent, #1a222d 90%) !important; }
[data-theme="dark"] #mainNoteList > .note-card.note-bg-softgreen .card-text.collapsed::after { background: linear-gradient(to bottom, transparent, #1a2b1f 90%) !important; }
[data-theme="dark"] #mainNoteList > .note-card.note-bg-softyellow .card-text.collapsed::after { background: linear-gradient(to bottom, transparent, #2b2a1a 90%) !important; }
[data-theme="dark"] #mainNoteList > .note-card.note-bg-softpurple .card-text.collapsed::after { background: linear-gradient(to bottom, transparent, #251a2d 90%) !important; }
[data-theme="dark"] #mainNoteList > .note-card.note-bg-softorange .card-text.collapsed::after { background: linear-gradient(to bottom, transparent, #2d221a 90%) !important; }
[data-theme="dark"] #mainNoteList > .note-card.note-bg-softgray .card-text.collapsed::after { background: linear-gradient(to bottom, transparent, #222222 90%) !important; }

/* ---------- 18. 编辑器彻底修复（工具栏、弹窗、留白） ---------- */
#mainNoteList > .note-card:has(.inline-edit-container) {
    overflow: visible !important; 
    z-index: 100 !important; 
    margin-bottom: 24px !important; 
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.inline-edit-container { 
    overflow: visible !important; 
    position: relative !important; 
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* 颜色选择器弹窗基础 */
.inline-edit-container .color-picker-wrapper { position: relative !important; z-index: 9999 !important; }

.inline-edit-container .inline-tool-bar > * {
    margin-top: auto; 
    margin-bottom: auto;
}
.inline-edit-container .inline-tool-bar::-webkit-scrollbar { display: none !important; }
.inline-edit-container .inline-tool-bar > *,
.inline-edit-container .inline-tool-bar .tool-btn,
.inline-edit-container .inline-tool-bar label,
.inline-edit-container .inline-tool-bar .color-picker-wrapper,
.inline-edit-container .inline-tool-bar .private-toggle {
    flex-shrink: 0 !important; 
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 32px !important; 
}

/* 编辑器输入框与按钮 */
.inline-edit-container .inline-edit-textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    word-break: break-all !important;
    position: relative !important;
    z-index: 1 !important;
}

.inline-edit-container .inline-clear-btn {
    position: absolute !important;
    top: -10px !important; 
    right: 0 !important;
    z-index: 10 !important;
    background: transparent !important;
    color: var(--text-muted) !important;
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}
.inline-edit-container .inline-clear-btn:hover {
    background: var(--bg-hover) !important;
    color: var(--danger) !important;
    transform: scale(1.1);
}

/* 字数统计与防遮挡 */
.inline-edit-container .inline-char-counter { display: none !important; } 
.inline-edit-container .inline-char-counter-text {
    font-size: 11px !important;
    color: var(--text-muted) !important;
    opacity: 0.8 !important;
    font-weight: 500 !important;
}

/* 编辑时隐藏所有悬浮干扰 */
body:has(.inline-edit-container) .mobile-fab-btn,
body:has(.inline-edit-container) #mobileBottomBar,
body:has(.inline-edit-container) .back-to-top {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateX(-50%) scale(0) !important;
}

/* ---------- 19. 滚动条与侧边栏 ---------- */
.sidebar {
    background-color: #ffffff !important; 
    background: #ffffff !important;
    backdrop-filter: none !important;     
    -webkit-backdrop-filter: none !important;
    border-right: 1px solid rgba(0, 0, 0, 0.06) !important; 
    height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}
.sidebar::-webkit-scrollbar { display: none !important; }
[data-theme="dark"] .sidebar {
    background-color: #161b22 !important; 
    background: #161b22 !important;
    border-right-color: rgba(255, 255, 255, 0.08) !important;
}

.main-content {
    overflow: visible !important; 
    padding-bottom: 60px !important; 
}
body, html {
    scrollbar-width: auto !important; 
    -ms-overflow-style: auto !important; 
}

/* ---------- 20. 顶栏毛玻璃与搜索框 ---------- */
.main-content .top-bar {
    background: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 16px !important; 
    padding: 12px 24px !important; 
    margin-top: 10px !important; 
    margin-bottom: 24px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important; 
    position: sticky !important;
    top: 16px !important;
    z-index: 900 !important;
}
[data-theme="dark"] .main-content .top-bar {
    background: rgba(30, 34, 48, 0.5) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
}
.main-content .page-title {
    font-size: 22px !important;
    font-weight: 800 !important;
    letter-spacing: -0.5px !important;
    color: var(--text-primary) !important;
}
.main-content .search-box {
    background: var(--bg-secondary) !important; 
    border: 1px solid var(--border-color) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02), 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    height: 40px !important; 
}
.main-content .search-box.active, 
.main-content .search-box:focus-within {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px var(--accent-15), inset 0 2px 4px rgba(0, 0, 0, 0.01), 0 4px 12px var(--accent-10) !important;
    transform: translateY(-1px) !important;
}

/* ---------- 21. 电脑端与手机端尺寸适配 ---------- */
@media (min-width: 769px) {
    .main-content {
        max-width: 860px !important; 
        padding: 40px 30px !important; 
    }
    .mobile-fab-btn,
    #mobileBottomBar,
    #mobileAddBtn,
    .mobile-add-btn { display: none !important; visibility: hidden !important; opacity: 0 !important; width: 0 !important; height: 0 !important; }
}

@media (max-width: 768px) {
    .main-content .top-bar {
        border-radius: 0 !important;
        border: none !important;
        margin: 0 !important;
        padding: 12px 0 14px 0 !important; 
        top: 0 !important;
        background: rgba(242, 244, 247, 0.85) !important;
        border-bottom: 1px solid var(--border-color) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02) !important;
    }
    [data-theme="dark"] .main-content .top-bar {
        background: rgba(11, 14, 20, 0.85) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    }
    
    .main-content .top-left { width: auto !important; opacity: 1 !important; padding: 0 !important; margin: 0 !important; }
    .main-content .search-box {
        position: absolute !important; right: 0 !important; top: 50% !important; transform: translateY(-50%) !important;
        width: 0 !important; opacity: 0 !important; pointer-events: none !important; margin: 0 !important; height: 38px !important;
    }
    .main-content .top-bar:has(.search-box.active) .top-left { display: none !important; }
    .main-content .search-box.active {
        position: relative !important; width: 100% !important; opacity: 1 !important; pointer-events: auto !important;
        padding: 0 14px !important; box-sizing: border-box !important; border-radius: 10px !important; border: 1px solid var(--accent-35) !important;
        background: var(--bg-secondary) !important;
    }

    #mainNoteList { padding-top: 12px !important; }
    #mainNoteList > .note-card-wakeup:first-child,
    #mainNoteList > .note-card:first-child { margin-top: 16px !important; }

    body:not(.drawer-open) .quick-input-wrapper { display: none !important; height: 0 !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important; border: none !important; overflow: hidden !important; }
    body.drawer-open .quick-input-wrapper.mobile-drawer { display: flex !important; height: auto !important; margin: 0 !important; }
    .quick-input-wrapper:not(.mobile-drawer) { display: none !important; }
}

/* ---------- 22. 快捷搜索面板与顶栏防挤压 ---------- */
.search-container {
    position: relative !important;
    z-index: 100000 !important; 
}

.quick-search-panel {
    position: absolute !important;
    top: calc(100% + 12px) !important;
    right: 0 !important;
    width: 240px !important;
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 14px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    z-index: 999999 !important;
    
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) scale(0.98) !important;
    transform-origin: top right !important;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

.search-box:focus-within + .quick-search-panel,
.search-box.active + .quick-search-panel,
.quick-search-panel.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
}

.qs-header {
    font-size: 12px;
    color: var(--text-muted);
    padding: 12px 16px 6px 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.qs-list {
    padding: 4px 8px 8px 8px;
}

.qs-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.qs-item:hover {
    background: var(--bg-hover);
    color: var(--accent);
    transform: translateX(2px);
}

.qs-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted); 
    transition: color 0.2s;
}

.qs-item:hover .qs-icon {
    color: var(--accent);
}

.main-content .top-bar {
    z-index: 99999 !important; 
}

#mainNoteList > .note-card,
.note-card-wakeup {
    z-index: 1 !important;
}
.note-card-wakeup:hover {
    z-index: 10 !important;
}

@media (max-width: 768px) {
    .main-content .top-bar {
        padding-left: 16px !important;
        padding-right: 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: visible !important; 
        z-index: 99999 !important;
    }

    .main-content .top-left {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: calc(100% - 50px) !important;
    }

    .main-content .page-title {
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .main-content .search-container,
    .main-content .search-toggle-btn {
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .search-box.active {
        z-index: 100000 !important;
    }

    .quick-search-panel {
        position: fixed !important; 
        top: 70px !important; 
        left: 16px !important;
        right: 16px !important;
        width: calc(100% - 32px) !important;
        z-index: 9999999 !important; 
        transform-origin: top center !important;
    }
}

/* 记忆唤醒卡片与轻量抽屉 */
.wakeup-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.2s;
    opacity: 0.7;
}
.wakeup-refresh:hover {
    transform: rotate(180deg);
    opacity: 1;
    color: var(--accent);
}

@keyframes spin { to { transform: rotate(360deg); } }

.then-today-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}
.then-today-overlay.show { opacity: 1; visibility: visible; }

.then-today-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 400px;
    max-width: 100vw;
    background: var(--bg-secondary);
    z-index: 1000000;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.then-today-panel.show { transform: translateX(0); }

@media (max-width: 768px) {
    .then-today-panel {
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70vh;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
    }
    .then-today-panel.show { transform: translateY(0); }
}

.then-today-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}
.then-today-header .title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}
.then-today-header .close-btn {
    background: transparent;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
}

.then-today-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.memory-item {
    background: var(--bg-primary);
    border-radius: 14px;
    padding: 16px;
    border: 1px solid var(--border-color);
}
.memory-year {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 8px;
}
.memory-text {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.6;
    white-space: pre-wrap;
}

.empty-msg {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    padding: 40px 0;
}

/* 相关笔记 UI */
.related-notes-wrap {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-color);
}
.related-notes-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.related-notes-title::before {
    content: '🔗';
    font-size: 14px;
}
.related-notes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.related-note-item {
    background: var(--bg-hover);
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.related-note-item:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-30);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.rn-date {
    font-size: 11px;
    color: var(--accent);
    margin-bottom: 4px;
    font-weight: 600;
}
.rn-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- 23. 终极层级修复与弹窗 ---------- */
.inline-color-dropdown.floating-color-panel {
    position: fixed !important;
    z-index: 2147483647 !important; 
    background: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
    display: none;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
    padding: 12px !important;
    width: max-content !important;
}
.inline-color-dropdown.floating-color-panel.active {
    display: grid !important;
}

.inline-edit-container .inline-tool-bar {
    position: relative !important;
    overflow: visible !important; 
    z-index: 100 !important;
}

.inline-edit-container .inline-color-dropdown {
    display: none;
    position: absolute !important;
    bottom: calc(100% + 10px) !important; 
    left: 0 !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 8px !important;
    padding: 12px !important;
    width: max-content !important;
    background: var(--bg-secondary) !important; 
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
    z-index: 9999999 !important; 
}

.inline-edit-container .inline-color-dropdown.active {
    display: grid !important;
}

.inline-edit-container .inline-color-dropdown .color-option {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    cursor: pointer;
    border: 2px solid transparent !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s, border-color 0.2s;
    display: block !important;
}
.inline-edit-container .inline-color-dropdown .color-option:hover { transform: scale(1.15); }
.inline-edit-container .inline-color-dropdown .color-option.active { 
    border-color: var(--accent) !important; 
    box-shadow: 0 0 0 2px var(--bg-secondary), 0 0 0 4px var(--accent) !important; 
}

@media (max-width: 768px) {
    .sidebar {
        z-index: 9999999 !important; 
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.15) !important; 
    }
    .sidebar-overlay {
        z-index: 9999998 !important; 
    }
    .main-content {
        z-index: 1 !important;
    }
    .main-content .top-bar {
        z-index: 10 !important; 
    }
    .sidebar {
        background-color: var(--bg-secondary) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
}

#dayNotesList .day-note-item .tag {
    pointer-events: none !important;
    cursor: pointer !important;
}

@media (max-width: 768px) {
    .mobile-drawer-overlay {
        position: fixed !important;
        inset: 0 !important;
        background: rgba(0, 0, 0, 0.4) !important;
        backdrop-filter: blur(2px) !important;
        z-index: 99998 !important;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s, visibility 0.3s;
    }
    .mobile-drawer-overlay.show {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    body:not(.drawer-open) .mobile-drawer-overlay {
        display: none !important;
    }

    body.drawer-open .quick-input-wrapper,
    .quick-input-wrapper.mobile-drawer.active {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 99999 !important;
        margin: 0 !important;
        border-radius: 20px 20px 0 0 !important;
        border-bottom: none !important;
        padding: 20px 16px calc(20px + env(safe-area-inset-bottom)) !important;
        display: flex !important;
        flex-direction: column !important;
        box-shadow: 0 -10px 40px rgba(0,0,0,0.1) !important;
        max-height: 85vh !important;
        overflow-y: auto !important;
        background: var(--bg-secondary) !important;
        transform: translateY(0) !important; 
    }
    
    body.drawer-open .top-bar { z-index: 10 !important; }
    body.drawer-open .sidebar { z-index: 999 !important; }
    body.drawer-open .sidebar-overlay { z-index: 998 !important; }
    body.drawer-open .back-to-top { z-index: 10 !important; }
}

/* ---------- 24. 图片上传与唤醒卡片特效裁剪 ---------- */
.image-preview-item.is-uploading {
    opacity: 0.7;
}
.image-preview-item .img-loading-mask {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 8px;
    z-index: 5;
}

.note-card-wakeup .card-footer .date {
    background: transparent !important;
    padding: 0 !important;
    font-size: 12px !important;
    opacity: 0.8;
}

/* =========================================
   ★ 终极标签胶囊样式（自适应主题色版）
   ========================================= */
#mainNoteList > .note-card .card-text-inner .tag-link,
#mainNoteList > .note-card .card-text-inner span.tag-link {
    /* 使用主题色的 10% 透明度作为底色，主题色作为文字色 */
    background-color: var(--accent-10) !important;
    color: var(--accent) !important;
    padding: 3px 10px !important;
    border-radius: 12px !important; /* 稍微方一点的圆角更有现代感 */
    font-size: 13px !important;
    font-weight: 600 !important;
    margin: 0 4px !important;
    display: inline-block !important;
    line-height: 1.4 !important;
    border: 1px solid var(--accent-15) !important; /* 极细边框增加质感 */
    box-shadow: none !important;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    cursor: pointer;
}

/* 悬浮时：底色变实心主题色，文字变白 */
#mainNoteList > .note-card .card-text-inner .tag-link:hover,
#mainNoteList > .note-card .card-text-inner span.tag-link:hover {
    background-color: var(--accent) !important;
    color: #ffffff !important;
    border-color: var(--accent) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px var(--accent-30) !important; /* 增加一点悬浮发光效果 */
}

/* 品牌色微点缀 */
/* 1. 卡片左侧细边（可选的悬浮点亮） */
.note-card {
    border-left: 3px solid transparent !important;
    transition: border-color 0.3s, box-shadow 0.3s !important;
}
.note-card:hover {
    border-left-color: var(--accent) !important;
}

/* 2. 时间戳微光 */
.note-card .card-header .date:hover {
    color: var(--accent) !important;
    background: var(--accent-10) !important;
    cursor: default;
}

/* 3. 分割线淡化渐变 */
.note-card .card-footer {
    border-top: 1px solid transparent !important;
    border-image: linear-gradient(90deg, transparent, var(--accent-30), transparent) 1 !important;
}

/* =========================================
   ★ 日历视觉大优化（呼吸感 / 高级感）
   ========================================= */

/* 1. 给每个日期格子留足呼吸空间 */
.calendar-grid .day {
    min-height: 56px !important; 
    padding: 8px 0 6px 0 !important; 
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    border-radius: 12px !important;
    transition: all 0.2s ease !important;
    position: relative !important;
}

/* 2. 让大数字更清晰、更有力量感 */
.calendar-grid .day .day-number {
    font-size: 16px !important; 
    font-weight: 600 !important;
    color: var(--text-primary) !important;
    line-height: 1.1 !important; 
    margin-bottom: 2px !important; 
}

/* 3. 农历/节气小字优化 */
.calendar-grid .day .festival {
    font-size: 10px !important;
    color: var(--text-muted) !important; 
    opacity: 0.85 !important; 
    font-weight: 500 !important;
    background: transparent !important; 
    padding: 0 !important;
    letter-spacing: 0.5px !important;
    line-height: 1 !important;
}

/* 4. 法定节假日（红色）的强化 */
.calendar-grid .day.is-holiday .day-number,
.calendar-grid .day.is-holiday .festival {
    color: #ef4444 !important;
    font-weight: 800 !important;
}

/* 5. 今天的强化 */
.calendar-grid .day.today {
    background: var(--accent-10) !important; 
    box-shadow: none !important; 
    border: 1px solid var(--accent-30) !important;
}
.calendar-grid .day.today .day-number {
    color: var(--accent) !important; 
}
.calendar-grid .day.today .festival {
    color: var(--accent) !important;
    opacity: 1 !important;
}

/* 6. 选中状态的强化 */
.calendar-grid .day.selected {
    background: var(--accent) !important; 
    box-shadow: 0 6px 16px var(--accent-30) !important;
    transform: scale(1.02) !important;
    z-index: 2 !important;
}
.calendar-grid .day.selected .day-number,
.calendar-grid .day.selected .festival {
    color: #ffffff !important; 
    opacity: 1 !important;
}

/* 7. 笔记小圆点的位置微调 */
.calendar-grid .day.has-note::after {
    content: '' !important;
    position: absolute !important;
    bottom: 4px !important;
    width: 4px !important;
    height: 4px !important;
    border-radius: 50% !important;
    background: var(--accent) !important;
}
.calendar-grid .day.selected.has-note::after {
    background: #ffffff !important; 
}

/* 8. 周末的数字用灰一点 */
.calendar-grid .weekday:nth-child(1), 
.calendar-grid .weekday:nth-child(7) {
    color: var(--text-secondary) !important; 
}
.calendar-grid .day:nth-child(7n + 1) .day-number, 
.calendar-grid .day:nth-child(7n) .day-number {
    color: var(--text-secondary) !important; 
}


/* =========================================
   ★ 手机端综合适配 (日历布局 + 修改框防溢出)
   ========================================= */
@media (max-width: 768px) {
    /* ---------- 1. 日历卡片与网格防溢出 ---------- */
    .calendar-card {
        padding: 12px 6px !important; 
        border-radius: 12px !important;
        overflow: hidden !important;
    }
    
    .calendar-grid {
        display: grid !important;
        grid-template-columns: repeat(7, minmax(0, 1fr)) !important; /* 强制均分，防溢出 */
        gap: 2px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .calendar-grid .day {
        width: 100% !important;
        min-width: 0 !important; 
        height: auto !important;
        aspect-ratio: 1 / 1.1 !important; 
        min-height: 50px !important;
        padding: 6px 0 4px 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        box-sizing: border-box !important;
        border-radius: 8px !important;
    }
    
    .calendar-grid .weekday {
        font-size: 11px !important;
        padding: 4px 0 !important;
        min-width: 0 !important;
    }
    
    .calendar-grid .day .day-number {
        font-size: 13px !important;
    }
    
    .calendar-grid .day .festival {
        font-size: 9px !important;
        transform: scale(0.85) !important; 
        white-space: nowrap !important;
        margin-top: 1px !important;
    }
    
    .calendar-grid .day.today {
        border-width: 1px !important;
    }
    .calendar-grid .day.selected {
        transform: none !important;
    }

    /* ---------- 2. 修改日记时，工具栏防溢出 ---------- */
    .note-card:has(.inline-edit-container) {
        max-width: 100vw !important;
        box-sizing: border-box !important;
        overflow: hidden !important; 
    }

    .inline-edit-container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; 
    }

    .inline-edit-container .inline-tool-bar {
        display: flex !important;
        flex-wrap: nowrap !important; 
        overflow-x: auto !important;  
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch !important; 
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 8px 12px !important; 
        margin: 0 0 12px 0 !important;
        gap: 8px !important;
        background: var(--bg-hover) !important; 
        border: 1px solid var(--border-color) !important; 
        border-radius: 12px !important;
        z-index: 100 !important;
        position: relative !important;
    }

    .inline-edit-container .inline-tool-bar::-webkit-scrollbar {
        display: none !important;
    }

    .inline-edit-container .inline-tool-bar > *,
    .inline-edit-container .inline-tool-bar .tool-btn,
    .inline-edit-container .inline-tool-bar label,
    .inline-edit-container .inline-tool-bar .color-picker-wrapper,
    .inline-edit-container .inline-tool-bar .private-toggle {
        flex-shrink: 0 !important; 
    }

    .inline-edit-container .inline-bottom-bar {
        flex-wrap: wrap !important; 
        gap: 12px !important;
    }
    
    .inline-edit-container .inline-edit-textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}
/* =========================================
   ★ 修复修改框 AI 弹窗被挤压成竖排的问题
   ========================================= */
.inline-edit-container .ai-assistant-bar {
    width: max-content !important; /* 根据内容自动撑开宽度 */
    min-width: 200px !important;
    display: flex !important;
    flex-wrap: nowrap !important; /* 强制子元素横向排列 */
    z-index: 2147483000 !important; /* 极高层级防遮挡 */
}

.inline-edit-container .ai-assistant-bar .ai-btn {
    white-space: nowrap !important; /* 按钮内的文字强制不换行 */
    flex-shrink: 0 !important;      /* 不允许按钮被压缩 */
    min-width: max-content !important;
}
/* =========================================
   ★ 极简版：原位高度拉伸 & 顶部外置把手
   ========================================= */

/* 1. 展开时高度变化 */
.quick-input-wrapper.is-expanded textarea {
    min-height: 60vh !important; 
    font-size: 18px !important;
    line-height: 1.8 !important;
}
.inline-edit-container.is-expanded .inline-edit-textarea {
    min-height: 60vh !important;
    font-size: 18px !important;
}
@media (max-width: 768px) {
    .quick-input-wrapper.is-expanded textarea,
    .inline-edit-container.is-expanded .inline-edit-textarea {
        min-height: 50vh !important; 
    }
}

/* 2. 容器相对定位（作为把手的参考系） */
.quick-input-wrapper,
.inline-edit-container {
    position: relative !important;
}

/* 3. 把手本体：绝对定位在外边框顶部中央 */
.editor-drag-toggle {
    position: absolute !important;
    top: -18px !important; 
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 60px !important;
    height: 16px !important;
    cursor: pointer !important;
    z-index: 100 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 4. 小胶囊指示器：默认、悬浮、点击状态 */
.editor-drag-toggle::after {
    content: '' !important;
    display: block !important;
    width: 36px !important;
    height: 5px !important;
    background: var(--border-color) !important; 
    border-radius: 4px !important;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}
.editor-drag-toggle:hover::after {
    background: var(--text-muted) !important; 
    transform: scaleX(1.15) !important; 
}
.editor-drag-toggle:active::after {
    transform: scaleX(0.9) !important; 
}

/* 5. 展开状态时，把手高亮变主题色 */
.quick-input-wrapper.is-expanded .editor-drag-toggle::after,
.inline-edit-container.is-expanded .editor-drag-toggle::after {
    background: var(--accent) !important; 
    box-shadow: 0 0 8px var(--accent-30) !important; 
    width: 42px !important; 
}
.quick-input-wrapper.is-expanded .editor-drag-toggle:hover::after,
.inline-edit-container.is-expanded .editor-drag-toggle:hover::after {
    background: var(--accent-hover) !important;
}

/* 6. 手机端把手适配 */
@media (max-width: 768px) {
    .editor-drag-toggle {
        top: -14px !important;
        height: 20px !important;
    }
    .editor-drag-toggle::after {
        background: var(--text-muted) !important;
        opacity: 0.6 !important;
    }
    .quick-input-wrapper.is-expanded .editor-drag-toggle::after,
    .inline-edit-container.is-expanded .editor-drag-toggle::after {
        background: var(--accent) !important;
        opacity: 1 !important;
    }
}


/* =========================================
   ★ 背景色弹窗（手机端专属适配）
   ========================================= */
@media (max-width: 768px) {
    .quick-input-wrapper .color-picker-dropdown,
    .inline-edit-container .inline-color-dropdown {
        position: fixed !important;
        z-index: 2147483647 !important;
        top: auto !important;
        bottom: 120px !important; 
        left: 50% !important;
        transform: translateX(-50%) !important;
        background: var(--bg-secondary) !important;
        border: 1px solid var(--border-color) !important;
        border-radius: 16px !important;
        box-shadow: 0 10px 40px rgba(0,0,0,0.2) !important;
        padding: 16px !important;
        gap: 12px !important;
        grid-template-columns: repeat(4, 1fr) !important;
        width: max-content !important;
        display: none;
    }
    .quick-input-wrapper .color-picker-dropdown.active,
    .inline-edit-container .inline-color-dropdown.active {
        display: grid !important;
    }
}


/* =========================================
   ★ 天气选择功能
   ========================================= */

/* 1. 终极天气浮窗样式 */
.weather-dropdown {
    display: none;
    position: fixed !important; 
    z-index: 2147483647 !important; 
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 6px;
    flex-direction: column;
    gap: 2px;
    width: max-content;
    min-width: 90px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}
.weather-dropdown.active {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* 2. 天气按钮选中后的高亮状态 */
.tool-btn.has-weather {
    background-color: var(--accent-10) !important; 
    color: var(--accent) !important;               
}
.tool-btn.has-weather svg {
    stroke: var(--accent) !important;
}

/* 3. 确保天气图标垂直居中且尺寸正常 */
#weatherPickerBtn {
    display: flex;
    align-items: center;
    justify-content: center;
}
#weatherPickerBtn .w-icon {
    width: 18px;
    height: 18px;
    display: block;
}

/* 4. 卡片底部时间与天气胶囊的悬浮效果 */
.note-card .card-footer .footer-left > span {
    cursor: default;
    padding: 2px 6px;
    border-radius: 8px;
    transition: all 0.25s ease;
}
.note-card .card-footer .footer-left > span:hover {
    background: var(--accent-10) !important;
    color: var(--accent) !important;
}
.note-card .card-footer .footer-left > span:hover svg {
    stroke: var(--accent) !important;
}
[data-theme="dark"] .note-card .card-footer .footer-left > span:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}

/* 鼠标悬停显示抓手 */
#imagePreviewModal .image-container {
    cursor: grab;
}
#imagePreviewModal .image-container:active {
    cursor: grabbing;
}

/* =========================================
   ★ 电脑端：侧边栏折叠动画 + 吸附式边缘把手
   ========================================= */

@media (min-width: 769px) {
    /* 1. 侧边栏和主内容区的过渡动画 */
    .sidebar {
        transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    }
    
    .sidebar.desktop-collapsed {
        width: 0 !important;
        min-width: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        opacity: 0;
        overflow: hidden !important;
        border-right: none !important;
        transform: translateX(-100%);
    }

    .main-content {
        transition: max-width 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), padding 0.35s ease !important;
    }
    .sidebar.desktop-collapsed + .main-content {
        max-width: 1000px !important; 
        margin: 0 auto !important;
    }

    /* 2. 顶部齿轮按钮的悬浮反馈 */
    #openSettingsBtn:hover {
        background: var(--bg-hover) !important;
        color: var(--text-primary) !important;
    }

    /* 3. 吸附式折叠把手 (贯穿顶底) */
    #edgeToggleHandle {
        position: fixed;
        left: 260px; /* 默认在侧边栏的右边缘 */
        top: 0;
        bottom: 0;
        width: 14px; /* 感应区宽度 */
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 999;
        transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
        opacity: 0; /* 默认完全隐形 */
    }

    /* 核心：用伪元素画出那个小胶囊，并居中 */
    #edgeToggleHandle::after {
        content: '';
        display: flex;
        align-items: center;
        justify-content: center;
        width: 12px;
        height: 48px;
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
        border-left: none;
        border-radius: 0 8px 8px 0;
        color: var(--text-muted);
        box-shadow: 2px 0 8px rgba(0,0,0,0.04);
        transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
        transform: translateX(-100%); /* 默认藏进侧边栏 */
    }

    /* 里面的小箭头 */
    #edgeToggleHandle svg {
        position: absolute;
        left: 2px;
        width: 14px;
        height: 14px;
        opacity: 0;
        transition: opacity 0.3s ease, transform 0.3s ease;
        transform: rotate(180deg); /* 默认箭头朝右(收起状态) */
        pointer-events: none;
        z-index: 10;
    }

    /* 鼠标悬浮在屏幕边缘时，整个高度都会触发，胶囊浮现 */
    #edgeToggleHandle:hover {
        opacity: 1; 
    }

    #edgeToggleHandle:hover::after {
        transform: translateX(0);
        background: var(--bg-hover);
        border-color: var(--accent-30);
    }

    #edgeToggleHandle:hover svg {
        opacity: 1;
        color: var(--accent);
    }

    /* 当侧边栏收起时：把手滑到最左侧，箭头翻转 */
    body:has(.sidebar.desktop-collapsed) #edgeToggleHandle {
        left: 0;
    }

    body:has(.sidebar.desktop-collapsed) #edgeToggleHandle svg {
        transform: rotate(0deg); /* 箭头朝左(展开状态) */
    }
}

/* =========================================
   手机端强制隐藏（手机端无需此功能）
   ========================================= */
@media (max-width: 768px) {
    #edgeToggleHandle, .desktop-sidebar-btn {
        display: none !important;
    }
}

/* =========================================
   ★ 页面底部诗意提示
   ========================================= */
.bottom-poetic-tip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 60px auto 40px auto;
    padding: 0 20px;
    opacity: 0.6;
    animation: fadeIn 1.5s ease forwards;
}

.bottom-poetic-tip p {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 2px;
    font-weight: 400;
    margin: 12px 0;
    text-align: center;
    font-family: 'Songti SC', 'Noto Serif SC', serif; /* 使用衬线体更有手账感 */
}

/* 文字两边的极细渐隐线 */
.bottom-poetic-tip .tip-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

/* 手机端稍微缩小一点边距 */
@media (max-width: 768px) {
    .bottom-poetic-tip {
        margin: 40px auto 80px auto; /* 底部留出导航栏的空间 */
    }
    .bottom-poetic-tip p {
        font-size: 12px;
        letter-spacing: 1px;
    }
}

/* 渐显动画 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 0.6; transform: translateY(0); }
}

/* =========================================
   ★ 顶栏排序按钮终极样式
   ========================================= */

/* 1. 基础通用样式（所有端通用） */
.sort-toggle-btn,
#sortToggleBtn {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: var(--text-muted) !important;
    cursor: pointer !important;
    transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

/* 内部 SVG 统一大小 */
.sort-toggle-btn svg,
#sortToggleBtn svg {
    width: 20px !important;
    height: 20px !important;
    stroke: currentColor !important;
}

/* 鼠标悬浮反馈 */
.sort-toggle-btn:hover,
#sortToggleBtn:hover {
    background: transparent !important;
    color: var(--accent) !important;
    transform: scale(1.05) !important;
}

/* 鼠标点击反馈 */
.sort-toggle-btn:active,
#sortToggleBtn:active {
    transform: scale(0.9) !important;
}

/* 2. 电脑端专属排版 */
@media (min-width: 769px) {
    /* 左侧标题排版 */
    .main-content .page-title {
        font-size: 20px !important;
        font-weight: 700 !important;
        letter-spacing: -0.5px;
    }
}

/* 3. 手机端专属微调 */
@media (max-width: 768px) {
    .sort-toggle-btn,
    #sortToggleBtn {
        width: 36px !important;
        height: 36px !important;
        margin-right: 4px !important; /* 让两个图标靠紧一点 */
    }
}

/* =========================================
   ★ 拾穗 · 英文副标题徽章 (跟随主题变色)
   ========================================= */
.gleanings-badge {
    font-size: 10px;
    font-weight: 700;
    font-family: 'Inter', -apple-system, sans-serif;
    /* 文字颜色使用主题色 */
    color: var(--accent); 
    /* 背景使用主题色的 10% 透明度 */
    background: var(--accent-10); 
    /* 边框使用主题色的 30% 透明度 */
    border: 1px solid var(--accent-30); 
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.8px;
    transform: translateY(1px); /* 基线对齐 */
    transition: all 0.3s ease;
}

/* 鼠标悬浮时，稍微加深一点 */
.sidebar-header:hover .gleanings-badge {
    background: var(--accent-15);
    border-color: var(--accent);
    transform: translateY(1px) scale(1.02);
}

/* =========================================
   ★ 终极修复：有搜索词时，强制隐藏快捷面板
   ========================================= */

/* 当搜索框处于 active 状态，且有输入值时（假设你用了伪类或者某些类名） */
/* 但因为我们无法直接通过 CSS 判断 input 是否有文字，所以用 JS 补个类名更方便 */

/* =========================================
   ★ 终极修复：纯图片日记的紧凑排版
   ========================================= */

/* 1. 当卡片没有文字时，彻底隐藏文本容器，防止它哪怕为空也撑开高度 */
.note-card:not(:has(.card-text-inner)) .card-text,
.note-card:has(.card-text-inner:empty) .card-text {
    display: none !important;
}

/* 2. 干掉 card-body 内部的 gap 缝隙 */
.note-card:not(:has(.card-text-inner)) .card-body,
.note-card:has(.card-text-inner:empty) .card-body {
    gap: 0 !important;
}

/* 3. 图片底部留出 16px 的呼吸空间 */
.note-card:not(:has(.card-text-inner)) .card-images,
.note-card:has(.card-text-inner:empty) .card-images {
    margin: 8px 0 16px 0 !important;
}

/* 4. 纯图片模式下，隐藏原本卡片的 footer 分割线（因为上面已经有了），并清除边距 */
.note-card:not(:has(.card-text-inner)) .card-divider,
.note-card:has(.card-text-inner:empty) .card-divider {
    display: none !important; 
}

.note-card:not(:has(.card-text-inner)) .card-footer,
.note-card:has(.card-text-inner:empty) .card-footer {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important; /* 去掉原生 footer 那条线 */
}

/* 5. 取消原本卡片的底部内边距，让爱心按钮更贴底 */
.note-card:not(:has(.card-text-inner)),
.note-card:has(.card-text-inner:empty) {
    padding-bottom: 16px !important;
}

/* =========================================
   ★ 卡片视觉微调（极致打磨版）
   ========================================= */

/* 1. 给卡片增加极致软糯的悬浮反馈 */
#mainNoteList > .note-card {
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), 
                box-shadow 0.3s ease, 
                border-radius 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
                border-color 0.3s ease !important;
}

#mainNoteList > .note-card:hover {
    /* 悬浮时圆角从 14px 轻微变大到 18px，像果冻一样 */
    border-radius: 18px !important; 
    transform: translateY(-3px) !important;
}

/* 2. 图片悬浮时的微弱渐变遮罩（同时保留放大效果） */
.note-card .card-images .img-item::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.15) 100%) !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    pointer-events: none !important;
    z-index: 2 !important;
    border-radius: inherit !important;
}

/* 鼠标悬停时，遮罩淡入 */
.note-card .card-images .img-item:hover::after {
    opacity: 1 !important;
}

/* 原有放大效果保持 */
.note-card .card-images .img-item img:hover {
    transform: scale(1.05) !important; /* 稍微加大一点点放大比例 */
}

/* 3. 微光骨架屏（Pinterest 风格） */
.note-card .card-images .img-item img.lazy-img-loading {
    /* 先用微光骨架屏填满，并让原图变透明 */
    opacity: 0 !important; 
}

.note-card .card-images .img-item {
    /* 底部的微光底色 */
    background: linear-gradient(90deg, var(--bg-hover) 25%, var(--border-color) 50%, var(--bg-hover) 75%) !important;
    background-size: 200% 100% !important;
    animation: shimmer 1.5s infinite linear !important;
}

/* 图片加载完成的瞬间，停止闪烁并平滑淡入 */
.note-card .card-images .img-item img:not(.lazy-img-loading) {
    opacity: 1 !important;
    transition: opacity 0.5s ease !important;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* =========================================
   ★ 全端通用：滚动隐藏顶栏
   ========================================= */
.main-content .top-bar {
    /* 用 cubic-bezier 让滑出和滑入有物理阻尼感 */
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.35s ease, background 0.3s, border-color 0.3s !important;
    will-change: transform;
}

/* 隐藏状态：向上位移 -150%（电脑端因为有毛玻璃，稍微多位移一点） */
.main-content .top-bar.scroll-hide {
    transform: translateY(-150%) !important;
    opacity: 0;
    pointer-events: none;
}

/* =========================================
   ★ 快捷键键盘图标悬浮反馈（绝对居中终极版）
   ========================================= */
.shortcut-btn {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    margin: 0 4px !important; /* 左右留一点间隙 */
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    color: var(--text-muted) !important;
    transition: all 0.25s ease !important;
    outline: none !important;
}

/* 使用伪元素做背景，完全不干扰图标本身 */
.shortcut-btn::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0.8) !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: var(--accent-10) !important;
    opacity: 0 !important;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    z-index: -1 !important;
}

/* 强制 SVG 居中且大小固定 */
.shortcut-btn svg {
    width: 16px !important;
    height: 16px !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 1 !important;
}

/* 鼠标悬浮时：背景放大浮现，图标变紫，整体微动 */
.shortcut-btn:hover {
    color: var(--accent) !important;         
    transform: translateY(-2px) !important; 
}

.shortcut-btn:hover::before {
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1) !important;
}

/* 按下的回弹感 */
.shortcut-btn:active {
    transform: translateY(0) scale(0.9) !important;
}

/* =========================================
   ★ 侧边栏底部极简同行显示
   ========================================= */

/* 父容器：水平两端对齐 */
.sidebar-footer {
    display: flex !important;
    flex-wrap: wrap !important; /* 允许版权换行 */
    align-items: center !important;
    justify-content: space-between !important;
}

/* 左侧用户信息 */
.sidebar-footer .user-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 右侧容器（如果没有这一步，说明你的按钮直接挂在外层了） */
.sidebar-footer-right {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-left: auto !important;
}

/* ★ 键盘按钮：彻底去掉背景，只留一个纯图标 */
.shortcut-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important; /* 去掉悬浮阴影 */
    padding: 4px !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: var(--text-muted) !important;
    transition: color 0.2s ease, transform 0.2s ease !important;
}

/* 悬浮只变色，不变出圈圈 */
.shortcut-btn:hover {
    background: transparent !important;
    color: var(--accent) !important;
    transform: scale(1.1) !important;
}

/* 主题切换器强制同行 */
.theme-switcher {
    display: flex !important;
    flex-wrap: nowrap !important;
    flex-shrink: 0 !important;
}

/* 版权信息：强制占满整行并在下一行 */
.sidebar-footer > div[style*="border-top"] {
    width: 100% !important;
    flex-basis: 100% !important;
    margin-top: 12px !important;
    padding-top: 8px !important;
    border-top: 1px dashed var(--border-color) !important;
    text-align: center !important;
}

/* =========================================
   ★ 终极层级修复：弹窗永远在最顶层
   ========================================= */

/* 所有的全屏弹窗遮罩（快捷键、设置、登录等）强制提到最高层 */
.modal-overlay {
    z-index: 2147483000 !important;
}

/* 弹窗内部的盒子稍微低一点点，但在遮罩之上 */
.modal-overlay .modal-box {
    z-index: 2147483001 !important;
}

/* 图片预览弹窗必须比普通弹窗还要高一层 */
#imagePreviewModal {
    z-index: 2147483002 !important;
}

/* Toast 提示永远在所有东西之上 */
.toast-msg {
    z-index: 2147483647 !important;
}