:root {
            /* 默认配色方案 */
            --primary-color: #6366f1;
            --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
            --secondary-color: #f8fafc;
            --text-primary: #1e293b;
            --text-secondary: #64748b;
            --card-bg: rgba(255, 255, 255, 0.95);
            --shadow-color: rgba(99, 102, 241, 0.1);
            --success-color: #10b981;
            --danger-color: #ef4444;
            --warning-color: #f59e0b;
            --note-bg: #ffffff;
            --border-color: #e2e8f0;
            --hover-color: #f1f5f9;
            --completed-color: #94a3b8;
        }

        .theme-purple {
            --primary-color: #6366f1;
            --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
            --shadow-color: rgba(99, 102, 241, 0.15);
        }

        .theme-blue {
            --primary-color: #3b82f6;
            --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%);
            --shadow-color: rgba(59, 130, 246, 0.15);
        }

        .theme-green {
            --primary-color: #10b981;
            --primary-gradient: linear-gradient(135deg, #10b981 0%, #84cc16 100%);
            --shadow-color: rgba(16, 185, 129, 0.15);
        }

        .theme-pink {
            --primary-color: #ec4899;
            --primary-gradient: linear-gradient(135deg, #ec4899 0%, #d946ef 100%);
            --shadow-color: rgba(236, 72, 153, 0.15);
        }

        .theme-orange {
            --primary-color: #f97316;
            --primary-gradient: linear-gradient(135deg, #f97316 0%, #f59e0b 100%);
            --shadow-color: rgba(249, 115, 22, 0.15);
        }

        .theme-dark {
            --primary-color: #8b5cf6;
            --primary-gradient: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
            --secondary-color: #1e293b;
            --text-primary: #f1f5f9;
            --text-secondary: #cbd5e1;
            --card-bg: rgba(30, 41, 59, 0.9);
            --shadow-color: rgba(0, 0, 0, 0.3);
            --note-bg: rgba(51, 65, 85, 0.8);
            --border-color: #475569;
            --hover-color: #334155;
            --completed-color: #64748b;
        }
		
		/* 红色主题 - 激情活力 */
		.theme-red {
			--primary-color: #ef4444;
			--primary-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
			--shadow-color: rgba(239, 68, 68, 0.15);
		}

		/* 青色主题 - 清新科技 */
		.theme-cyan {
			--primary-color: #06b6d4;
			--primary-gradient: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 100%);
			--shadow-color: rgba(6, 182, 212, 0.15);
		}

		/* 琥珀色主题 - 温暖明亮 */
		.theme-amber {
			--primary-color: #f59e0b;
			--primary-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
			--shadow-color: rgba(245, 158, 11, 0.15);
		}

		/* 靛蓝色主题 - 专业深邃 */
		.theme-indigo {
			--primary-color: #4f46e5;
			--primary-gradient: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
			--shadow-color: rgba(79, 70, 229, 0.15);
		}

		/* 玫瑰色主题 - 温柔浪漫 */
		.theme-rose {
			--primary-color: #f43f5e;
			--primary-gradient: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
			--shadow-color: rgba(244, 63, 94, 0.15);
		}

		/* 青绿色主题 - 时尚潮流 */
		.theme-teal {
			--primary-color: #14b8a6;
			--primary-gradient: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
			--shadow-color: rgba(20, 184, 166, 0.15);
		}

		/* 紫红色主题 - 奢华高贵 */
		.theme-fuchsia {
			--primary-color: #d946ef;
			--primary-gradient: linear-gradient(135deg, #d946ef 0%, #a855f7 100%);
			--shadow-color: rgba(217, 70, 239, 0.15);
		}

		/* 石板灰主题 - 简约现代 */
		.theme-slate {
			--primary-color: #64748b;
			--primary-gradient: linear-gradient(135deg, #64748b 0%, #475569 100%);
			--shadow-color: rgba(100, 116, 139, 0.15);
		}

		/* 森林绿主题 - 自然生态 */
		.theme-forest {
			--primary-color: #059669;
			--primary-gradient: linear-gradient(135deg, #059669 0%, #047857 100%);
			--shadow-color: rgba(5, 150, 105, 0.15);
		}

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            transition: background-color 0.3s ease, border-color 0.3s ease;
        }
        
        body {
            background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
            color: var(--text-primary);
            line-height: 1.6;
            padding: 20px;
            max-width: 1400px;
            margin: 0 auto;
            min-height: 100vh;
        }
        
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            padding: 25px 30px;
            background: var(--card-bg);
            border-radius: 20px;
            box-shadow: 0 10px 40px var(--shadow-color);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        
        h1 {
            color: var(--primary-color);
            display: flex;
            align-items: center;
            gap: 15px;
            font-size: 32px;
            font-weight: 700;
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .theme-selector {
            position: relative;
            width: 180px;
        }
        
        .theme-selector select {
            width: 100%;
            padding: 12px 15px;
            border: 2px solid var(--border-color);
            border-radius: 12px;
            font-size: 14px;
            background: var(--card-bg);
            color: var(--text-primary);
            cursor: pointer;
            appearance: none;
            font-weight: 500;
        }
        
        .theme-selector i {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--primary-color);
        }

        /* ===== 自定义主题下拉样式（header 紫色渐变背景适配）===== */
        .custom-theme-select {
            width: 200px;
            position: relative;
            z-index: 1000;
        }
        .theme-palette-icon {
            display: none; /* trigger 里已有 palette 概念 */
        }
        .theme-custom-trigger {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 9px 14px;
            background: rgba(255,255,255,0.18);
            backdrop-filter: blur(6px);
            border: 1px solid rgba(255,255,255,0.35);
            border-radius: 12px;
            cursor: pointer;
            color: #fff;
            font-size: 13px;
            font-weight: 600;
            transition: all 0.25s ease;
        }
        .theme-custom-trigger:hover {
            background: rgba(255,255,255,0.28);
            border-color: rgba(255,255,255,0.55);
            transform: translateY(-1px);
        }
        .theme-swatch {
            width: 18px; height: 18px;
            border-radius: 6px;
            box-shadow: 0 0 0 2px rgba(255,255,255,0.5);
            flex-shrink: 0;
            transition: transform 0.2s;
        }
        .theme-custom-trigger:hover .theme-swatch { transform: scale(1.1); }
        .theme-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .theme-arrow {
            font-size: 10px;
            opacity: 0.75;
            transition: transform 0.25s;
        }
        .custom-theme-select.open .theme-arrow { transform: rotate(180deg); }

        .theme-custom-dropdown {
            position: absolute;
            top: calc(100% + 8px);
            left: 0;
            right: 0;
            background: #fff;
            border-radius: 14px;
            box-shadow: 0 12px 40px rgba(0,0,0,0.22);
            border: 1px solid rgba(0,0,0,0.08);
            padding: 8px;
            display: none;
            max-height: 600px;
            overflow-y: auto;
            z-index: 99999;
            animation: themeDropdownIn 0.2s ease;
            -ms-overflow-style: none;
            scrollbar-width: none;
        }
        .theme-custom-dropdown::-webkit-scrollbar { display: none; }
        .theme-custom-dropdown.show { display: block; }
        @keyframes themeDropdownIn {
            from { opacity: 0; transform: translateY(-6px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .theme-custom-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            border-radius: 10px;
            cursor: pointer;
            font-size: 13px;
            color: #374151;
            font-weight: 500;
            transition: all 0.18s ease;
        }
        .theme-custom-item:hover {
            background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(236,72,153,0.12));
            color: var(--primary-color);
        }
        .theme-custom-item.active {
            background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(236,72,153,0.18));
            color: var(--primary-color);
            font-weight: 700;
        }
        .theme-custom-item .item-swatch {
            width: 22px; height: 22px;
            border-radius: 7px;
            box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
            flex-shrink: 0;
        }
        .theme-custom-item .item-check {
            margin-left: auto;
            color: var(--primary-color);
            opacity: 0;
            font-size: 12px;
        }
        .theme-custom-item.active .item-check { opacity: 1; }

        /* ===== 新建网址弹窗里的分类选择美化（自定义下拉）===== */
        #nav-category-wrap {
            position: relative;
        }
        .custom-cat-select {
            position: relative;
        }
        .custom-cat-trigger {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 14px;
            border: 2px solid var(--border-color);
            border-radius: 12px;
            background: var(--card-bg);
            cursor: pointer;
            font-size: 14px;
            color: var(--text-primary);
            font-weight: 500;
            transition: all 0.2s ease;
        }
        .custom-cat-trigger:hover,
        .custom-cat-select.open .custom-cat-trigger {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
        }
        .custom-cat-trigger.active-selection {
            color: var(--text-primary);
        }
        .custom-cat-placeholder {
            color: var(--text-secondary);
            flex: 1;
        }
        .custom-cat-selected {
            display: flex;
            align-items: center;
            gap: 8px;
            flex: 1;
        }
        .custom-cat-selected .cat-dot {
            width: 12px; height: 12px;
            border-radius: 50%;
            box-shadow: 0 0 0 2px rgba(0,0,0,0.06);
        }
        .custom-cat-selected .cat-icon {
            width: 26px; height: 26px;
            border-radius: 8px;
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
        }
        .custom-cat-arrow {
            margin-left: auto;
            font-size: 10px;
            color: var(--text-secondary);
            transition: transform 0.2s;
        }
        .custom-cat-select.open .custom-cat-arrow { transform: rotate(180deg); color: var(--primary-color); }

        .custom-cat-dropdown {
            position: absolute;
            top: calc(100% + 6px);
            left: 0; right: 0;
            background: var(--card-bg);
            border-radius: 14px;
            box-shadow: 0 14px 40px rgba(0,0,0,0.16);
            border: 1px solid var(--border-color);
            padding: 8px;
            display: none;
            max-height: 280px;
            overflow-y: auto;
            z-index: 2000;
            animation: catDropdownIn 0.18s ease;
        }
        .custom-cat-dropdown.show { display: block; }
        @keyframes catDropdownIn {
            from { opacity: 0; transform: translateY(-6px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .custom-cat-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            border-radius: 10px;
            cursor: pointer;
            font-size: 13px;
            color: var(--text-primary);
            font-weight: 500;
            transition: all 0.15s ease;
        }
        .custom-cat-item:hover {
            background: var(--hover-color);
        }
        .custom-cat-item.active {
            background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(236,72,153,0.15));
            color: var(--primary-color);
            font-weight: 700;
        }
        .custom-cat-item .cat-icon-box {
            width: 28px; height: 28px;
            border-radius: 8px;
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            flex-shrink: 0;
        }
        .custom-cat-item .cat-item-name { flex: 1; }
        .custom-cat-item .cat-item-count {
            font-size: 11px;
            color: var(--text-secondary);
        }
        .custom-cat-item.active .cat-item-count { color: var(--primary-color); }
		
		/* 修改 .header 部分的样式 */
		.header {
			display: flex;
			justify-content: space-between;
			align-items: center;
			margin-bottom: 30px;
			padding: 25px 30px;
			/* 将原来的背景改为渐变色 */
			background: var(--primary-gradient);
			border-radius: 20px;
			box-shadow: 0 10px 40px var(--shadow-color);
			backdrop-filter: blur(10px);
			border: 1px solid rgba(255, 255, 255, 0.2);
			/* 添加文字颜色，确保在深色渐变背景上可读 */
			color: white;
			/* 抬升头部层叠上下文：.header 与 .controls 都因 backdrop-filter 创建层叠上下文，
			   二者均无 z-index 时按 DOM 顺序后者（.controls）会盖住前者，导致向下溢出的
			   主题下拉菜单下半部分被 .controls 的半透明模糊背景冲淡。给 .header 设
			   position+z-index 即可让其（含内部下拉）绘制在 .controls 之上，且 100 低于所有弹窗（≥1000）。 */
			position: relative;
			z-index: 100;
		}

		/* 调整 h1 的样式，因为背景已经是渐变色，文字应该使用白色 */
		h1 {
			color: white; /* 改为白色 */
			display: flex;
			align-items: center;
			gap: 15px;
			font-size: 32px;
			font-weight: 700;
			/* 移除原来的渐变文字效果 */
			background: none;
			-webkit-background-clip: initial;
			-webkit-text-fill-color: initial;
			background-clip: initial;
		}

		/* 调整标题中的图标颜色 */
		h1 i {
			color: white;
		}

		/* 调整统计信息的颜色 */
		.stats {
			color: rgba(255, 255, 255, 0.9); /* 稍微透明的白色 */
		}

		.stat-item {
			color: rgba(255, 255, 255, 0.9);
		}

		.stat-number {
			color: white; /* 数字用纯白色 */
			font-weight: 700;
			font-size: 18px;
		}

		/* 调整主题选择器的样式以适应渐变背景 */
		.theme-selector select {
			background: rgba(255, 255, 255, 0.15); /* 半透明白色背景 */
			color: white;
			border: 2px solid rgba(255, 255, 255, 0.3);
		}

		.theme-selector select:focus {
			border-color: rgba(255, 255, 255, 0.5);
			box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
		}

		.theme-selector i {
			color: white;
		}
		
		/* 为选择框的下拉选项添加深色背景（重要：改善可读性） */
		.theme-selector select option {
			background: #333; /* 深色背景 */
			color: white; /* 白色文字 */
		}

		/* 调整深色主题下的.header样式，因为深色主题的渐变背景可能较暗 */
		.theme-dark .header {
			background: var(--primary-gradient);
			color: white;
			/* 深色主题下的主题选择器调整 */
		}

		.theme-dark .theme-selector select {
			background: rgba(255, 255, 255, 0.1);
			color: white;
			border: 2px solid rgba(255, 255, 255, 0.2);
		}

		/* 确保在所有主题下，.header内的文字都是可见的 */
		.theme-purple .header {
			background: var(--primary-gradient);
		}

		.theme-blue .header {
			background: var(--primary-gradient);
		}

		.theme-green .header {
			background: var(--primary-gradient);
		}

		.theme-pink .header {
			background: var(--primary-gradient);
		}

		.theme-orange .header {
			background: var(--primary-gradient);
		}

		/* 对于新增的主题，也确保.header使用渐变背景 */
		.theme-red .header {
			background: var(--primary-gradient);
		}

		.theme-cyan .header {
			background: var(--primary-gradient);
		}

		.theme-amber .header {
			background: var(--primary-gradient);
		}

		.theme-indigo .header {
			background: var(--primary-gradient);
		}

		.theme-rose .header {
			background: var(--primary-gradient);
		}

		.theme-teal .header {
			background: var(--primary-gradient);
		}

		.theme-fuchsia .header {
			background: var(--primary-gradient);
		}

		.theme-slate .header {
			background: var(--primary-gradient);
		}

		.theme-forest .header {
			background: var(--primary-gradient);
		}
        
        .controls {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin-bottom: 30px;
            align-items: center;
            background: var(--card-bg);
            padding: 25px;
            border-radius: 20px;
            box-shadow: 0 10px 40px var(--shadow-color);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        
        .filter-controls {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 20px;
            align-items: center;
            padding: 15px 20px;
            background: var(--card-bg);
            border-radius: 15px;
            box-shadow: 0 5px 20px var(--shadow-color);
            border: 1px solid var(--border-color);
        }
        
        .filter-buttons {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }
        
        .filter-btn {
            padding: 10px 20px;
            border: 2px solid var(--border-color);
            border-radius: 10px;
            background: var(--card-bg);
            color: var(--text-primary);
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s ease;
        }
        
        .filter-btn.active {
            background: var(--primary-gradient);
            color: white;
            border-color: var(--primary-color);
        }
        
        .filter-btn:hover:not(.active) {
            background: var(--hover-color);
            border-color: var(--primary-color);
        }
        
        .search-sort-container {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            flex: 1;
        }
        
        .search-box {
            flex: 1;
            min-width: 300px;
            position: relative;
        }
        
        .search-box input {
            width: 100%;
            padding: 15px 20px 15px 50px;
            border: 2px solid var(--border-color);
            border-radius: 15px;
            font-size: 16px;
            background: var(--card-bg);
            color: var(--text-primary);
            transition: all 0.3s ease;
        }
        
        .search-box input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
        }
        
        .search-box i {
            position: absolute;
            left: 20px;
            top: 50%;
            transform: translateY(-50%);
            color: var(--text-secondary);
        }
        
        .sort-box {
            min-width: 220px;
        }
        
        .sort-box select {
            width: 100%;
            padding: 15px;
            border: 2px solid var(--border-color);
            border-radius: 15px;
            font-size: 16px;
            background: var(--card-bg);
            color: var(--text-primary);
            cursor: pointer;
            transition: border-color 0.3s;
            font-weight: 500;
        }
        
        .sort-box select:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
        }
        
        .buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
        }
        
        button {
            padding: 14px 24px;
            border: none;
            border-radius: 12px;
            cursor: pointer;
            font-weight: 600;
            font-size: 15px;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 10px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        
        .primary-btn {
            background: var(--primary-gradient);
            color: white;
            position: relative;
            overflow: hidden;
        }
        
        .primary-btn::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.6s;
        }
        
        .primary-btn:hover::after {
            left: 100%;
        }
        
        .primary-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
        }

        /* 新建便签按钮：暖橙色渐变（便签纸质感，与紫色网址按钮区分） */
        .btn-note {
            background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%) !important;
        }
        .btn-note:hover {
            box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4) !important;
        }

        /* 新建网址按钮：青蓝色渐变（网络科技感） */
        .btn-nav {
            background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 100%) !important;
        }
        .btn-nav:hover {
            box-shadow: 0 8px 20px rgba(6, 182, 212, 0.4) !important;
        }

        .secondary-btn {
            background: var(--secondary-color);
            color: var(--text-primary);
            border: 2px solid var(--border-color);
        }
        
        .secondary-btn:hover {
            background: var(--hover-color);
            border-color: var(--primary-color);
            transform: translateY(-2px);
        }
        
        .danger-btn {
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
            color: white;
        }
        
        .danger-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
        }
        
        .notes-container {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 30px;
            margin-top: 20px;
            margin-bottom: 30px;
        }
        
        .note {
            background: var(--note-bg);
            border-radius: 20px;
            padding: 25px;
            box-shadow: 0 10px 30px var(--shadow-color);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            display: flex;
            flex-direction: column;
            height: 100%;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            position: relative;
            overflow: hidden;
        }
        
        .note.completed {
            opacity: 0.8;
            transform: scale(0.98);
        }
        
        .note.completed .note-title {
            text-decoration: line-through;
            color: var(--completed-color);
        }
        
        .note.completed .note-content {
            color: var(--completed-color);
        }
        
        .note.completed::before {
            background: var(--completed-color);
        }
        
        .note.completed .note-checkmark {
            display: block;
        }
        
        .note-checkmark {
            position: absolute;
            top: 15px;
            right: 15px;
            color: var(--success-color);
            font-size: 24px;
            display: none;
        }
        
        .note::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 5px;
            background: var(--primary-gradient);
            transition: background 0.3s ease;
        }
        
        .note:hover {
            transform: translateY(-10px) scale(1.02);
            box-shadow: 0 20px 40px var(--shadow-color);
        }
        
        .note.completed:hover {
            transform: translateY(-5px) scale(1.01);
        }
        
        .note-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 20px;
        }
        
        .note-title {
            font-size: 22px;
            font-weight: 700;
            color: var(--text-primary);
            line-height: 1.3;
            flex: 1;
            padding-right: 40px;
            transition: color 0.3s ease, text-decoration 0.3s ease;
        }
        
        .note-actions {
            display: flex;
            gap: 8px;
        }
        
        .note-action-btn {
            background: rgba(99, 102, 241, 0.1);
            border: none;
            cursor: pointer;
            color: var(--primary-color);
            padding: 8px;
            border-radius: 10px;
            font-size: 16px;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }
        
        .note-action-btn.complete-btn {
            background: rgba(16, 185, 129, 0.1);
            color: var(--success-color);
        }
        
        .note-action-btn.complete-btn:hover {
            background: var(--success-color);
            color: white;
        }
        
        .note-action-btn:hover {
            background: var(--primary-color);
            color: white;
            transform: rotate(15deg);
        }
        
        .note-content {
            flex: 1;
            color: var(--text-secondary);
            line-height: 1.7;
            margin-bottom: 20px;
            font-size: 15px;
            max-height: 200px;
            overflow-y: auto;
            padding-right: 5px;
        }
        
        .note-content::-webkit-scrollbar {
            width: 4px;
        }
        
        .note-content::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.05);
            border-radius: 10px;
        }
        
        .note-content::-webkit-scrollbar-thumb {
            background: var(--primary-color);
            border-radius: 10px;
        }
        
        .note-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 15px;
        }
        
        .tag {
            background: rgba(99, 102, 241, 0.1);
            color: var(--primary-color);
            padding: 6px 15px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        
        .tag::before {
            content: '#';
            opacity: 0.7;
        }
        
        .note-date {
            color: var(--text-secondary);
            font-size: 14px;
            margin-top: 20px;
            padding-top: 15px;
            border-top: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .note-date i {
            color: var(--primary-color);
        }
        
        .empty-state {
            text-align: center;
            padding: 80px 20px;
            color: var(--text-secondary);
            grid-column: 1 / -1;
        }
        
        .empty-state i {
            font-size: 80px;
            margin-bottom: 25px;
            opacity: 0.3;
        }
        
        .empty-state h3 {
            font-size: 24px;
            margin-bottom: 15px;
            color: var(--text-primary);
        }
        
        .pagination-container {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 15px;
            margin: 30px 0;
            padding: 20px;
            background: var(--card-bg);
            border-radius: 15px;
            box-shadow: 0 5px 20px var(--shadow-color);
        }
        
        .pagination-btn {
            padding: 10px 18px;
            border: 2px solid var(--border-color);
            background: var(--card-bg);
            color: var(--text-primary);
            border-radius: 10px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.3s ease;
            min-width: 40px;
            text-align: center;
        }
        
        .pagination-btn:hover:not(:disabled) {
            background: var(--primary-gradient);
            color: white;
            border-color: var(--primary-color);
            transform: translateY(-2px);
        }
        
        .pagination-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }
        
        .pagination-btn.active {
            background: var(--primary-gradient);
            color: white;
            border-color: var(--primary-color);
        }
        
        .pagination-dots {
            color: var(--text-secondary);
            font-size: 18px;
            padding: 0 5px;
        }
        
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(5px);
            z-index: 1000;
            justify-content: center;
            align-items: center;
            padding: 20px;
        }
        
        .modal-content {
            background: var(--card-bg);
            border-radius: 25px;
            width: 90%;
            max-width: 650px;
            padding: 40px;
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.2);
            animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        }
        
        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: translateY(-50px) scale(0.9);
            }
            to {
                opacity: 1;
                transform: translateY(0) scale(1);
            }
        }
        
        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--border-color);
        }
        
        .modal-title {
            font-size: 28px;
            color: var(--text-primary);
            font-weight: 700;
            background: var(--primary-gradient);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .close-btn {
            background: none;
            border: none;
            font-size: 28px;
            cursor: pointer;
            color: var(--text-secondary);
            width: 40px;
            height: 40px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }
        
        .close-btn:hover {
            background: var(--hover-color);
            color: var(--primary-color);
            transform: rotate(90deg);
        }
        
        .form-group {
            margin-bottom: 25px;
        }
        
        .form-group label {
            display: block;
            margin-bottom: 10px;
            font-weight: 600;
            color: var(--text-primary);
            font-size: 15px;
        }
        
        .form-group input, 
        .form-group textarea {
            width: 100%;
            padding: 16px;
            border: 2px solid var(--border-color);
            border-radius: 15px;
            font-size: 16px;
            transition: all 0.3s ease;
            background: var(--card-bg);
            color: var(--text-primary);
        }
        
        .form-group textarea {
            min-height: 180px;
            resize: vertical;
        }
        
        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
        }

        /* 内容编辑区工具栏（图片上传 / 语音输入） */
        .label-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 10px;
        }

        .label-row label {
            margin-bottom: 0;
        }

        .editor-toolbar {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .editor-tool-btn {
            padding: 8px 14px;
            border-radius: 10px;
            border: 1.5px solid var(--border-color);
            background: var(--card-bg);
            color: var(--text-secondary);
            cursor: pointer;
            font-size: 13px;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: all 0.3s ease;
        }

        .editor-tool-btn:hover {
            border-color: var(--primary-color);
            color: var(--primary-color);
            background: rgba(99, 102, 241, 0.08);
        }

        .editor-tool-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

        .editor-tool-btn i {
            font-size: 14px;
        }

        /* 语音录入中状态 */
        .editor-tool-btn.recording {
            background: #ef4444;
            border-color: #ef4444;
            color: #ffffff;
            animation: voicePulse 1.2s ease-in-out infinite;
        }

        @keyframes voicePulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
            50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
        }

        .voice-status {
            display: none;
            align-items: center;
            gap: 8px;
            color: #ef4444;
            font-size: 13px;
            font-weight: 600;
            margin-top: 10px;
        }

        .voice-status.show {
            display: flex;
        }

        .voice-status .voice-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #ef4444;
            animation: voiceBlink 1s ease-in-out infinite;
            flex-shrink: 0;
        }

        @keyframes voiceBlink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.3; }
        }

        #voice-status-text {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        /* 拖拽图片悬停高亮 */
        .form-group textarea.drag-over {
            border-color: var(--primary-color);
            background: rgba(99, 102, 241, 0.06);
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
        }

        /* 已上传图片缩略图预览 */
        .image-preview-area {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 12px;
        }

        .image-preview-area:empty {
            display: none;
        }

        .img-preview-item {
            position: relative;
            width: 88px;
            height: 88px;
            border-radius: 12px;
            overflow: hidden;
            border: 1px solid var(--border-color);
            background: var(--hover-color);
        }

        .img-preview-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .img-preview-remove {
            position: absolute;
            top: 4px;
            right: 4px;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.6);
            color: #ffffff;
            border: none;
            cursor: pointer;
            font-size: 12px;
            line-height: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.2s ease;
        }

        .img-preview-remove:hover {
            background: #ef4444;
        }

        /* 弹窗内容过高时可滚动 */
        .modal-content {
            max-height: 92vh;
            overflow-y: auto;
        }

        /* 便签卡片中的图片 */
        .note-content img.note-image {
            max-width: 100%;
            border-radius: 12px;
            margin: 8px 0;
            display: block;
            cursor: zoom-in;
            border: 1px solid rgba(0, 0, 0, 0.06);
            transition: transform 0.2s ease;
        }

        .note-content img.note-image:hover {
            transform: scale(1.01);
        }

        /* 图片点击放大查看层 */
        .image-viewer {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.88);
            z-index: 3000;
            justify-content: center;
            align-items: center;
            padding: 30px;
            cursor: zoom-out;
        }

        .image-viewer.show {
            display: flex;
        }

        .image-viewer img {
            max-width: 92%;
            max-height: 92%;
            border-radius: 12px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
        }

        /* ===== 置顶便签 ===== */
        .note {
            cursor: pointer;
        }

        .note.pinned {
            border: 2px solid var(--warning-color);
        }

        .pin-badge {
            position: absolute;
            top: 14px;
            left: 16px;
            color: var(--warning-color);
            font-size: 18px;
            transform: rotate(-30deg);
        }

        .note.pinned .note-title {
            padding-left: 28px;
        }

        .note-action-btn.pin-btn {
            background: rgba(245, 158, 11, 0.12);
            color: var(--warning-color);
        }

        .note-action-btn.pin-btn:hover {
            background: var(--warning-color);
            color: #ffffff;
        }

        .note-action-btn.pin-btn.active {
            background: var(--warning-color);
            color: #ffffff;
        }

        /* ===== 待办清单 ===== */
        .todo-line {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            margin: 6px 0;
        }

        .todo-checkbox {
            flex-shrink: 0;
            width: 20px;
            height: 20px;
            border-radius: 6px;
            border: 2px solid var(--primary-color);
            background: var(--card-bg);
            color: transparent;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            margin-top: 2px;
            transition: all 0.2s ease;
        }

        .todo-checkbox:hover {
            transform: scale(1.1);
            box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
        }

        .todo-checkbox.checked {
            background: var(--success-color);
            border-color: var(--success-color);
            color: #ffffff;
        }

        .todo-text.done {
            text-decoration: line-through;
            color: var(--completed-color);
        }

        .todo-progress {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin-top: 10px;
            padding: 4px 12px;
            border-radius: 12px;
            background: rgba(99, 102, 241, 0.1);
            color: var(--primary-color);
            font-size: 12px;
            font-weight: 600;
        }

        .todo-progress.all-done {
            background: rgba(16, 185, 129, 0.12);
            color: var(--success-color);
        }

        /* ===== 查看便签大页面弹窗 ===== */
        .view-modal-content {
            max-width: 800px;
        }

        .view-note-meta {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 12px;
            margin-bottom: 20px;
            color: var(--text-secondary);
            font-size: 14px;
        }

        .view-note-content {
            color: var(--text-primary);
            line-height: 1.9;
            font-size: 16px;
            max-height: 55vh;
            overflow-y: auto;
            padding-right: 8px;
            word-break: break-word;
        }

        .view-note-content img.note-image {
            max-width: 100%;
            border-radius: 12px;
            margin: 10px 0;
            display: block;
            cursor: zoom-in;
            border: 1px solid var(--border-color);
        }

        /* ===== 回收站 ===== */
        .trash-count {
            display: none;
            align-items: center;
            justify-content: center;
            min-width: 20px;
            height: 20px;
            padding: 0 6px;
            margin-left: 6px;
            border-radius: 10px;
            background: var(--danger-color);
            color: #ffffff;
            font-size: 12px;
            font-weight: 700;
        }

        .trash-tip {
            padding: 12px 16px;
            border-radius: 12px;
            background: rgba(245, 158, 11, 0.1);
            color: var(--warning-color);
            font-size: 13px;
            margin-bottom: 18px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .trash-list {
            max-height: 50vh;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .trash-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 15px;
            padding: 16px;
            border: 1px solid var(--border-color);
            border-radius: 15px;
            background: var(--hover-color);
        }

        .trash-item-info {
            flex: 1;
            min-width: 0;
        }

        .trash-item-title {
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 4px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .trash-item-summary {
            font-size: 13px;
            color: var(--text-secondary);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            margin-bottom: 4px;
        }

        .trash-item-date {
            font-size: 12px;
            color: var(--text-secondary);
        }

        .trash-item-actions {
            display: flex;
            gap: 8px;
            flex-shrink: 0;
        }

        .trash-item .restore-btn {
            background: rgba(16, 185, 129, 0.1);
            color: var(--success-color);
        }

        .trash-item .restore-btn:hover {
            background: var(--success-color);
            color: #ffffff;
        }

        .trash-item .permanent-delete-btn {
            background: rgba(239, 68, 68, 0.1);
            color: var(--danger-color);
        }

        .trash-item .permanent-delete-btn:hover {
            background: var(--danger-color);
            color: #ffffff;
        }

        /* ===== Markdown 渲染样式 ===== */
        .md-h {
            font-weight: 700;
            color: var(--text-primary);
            margin: 12px 0 6px;
            line-height: 1.4;
        }

        .md-h1 { font-size: 1.5em; }
        .md-h2 { font-size: 1.3em; }
        .md-h3 { font-size: 1.15em; }
        .md-h4 { font-size: 1.05em; }

        .md-quote {
            border-left: 3px solid var(--primary-color);
            padding: 6px 12px;
            margin: 8px 0;
            background: rgba(99, 102, 241, 0.06);
            border-radius: 0 10px 10px 0;
            color: var(--text-secondary);
        }

        .md-hr {
            border: none;
            border-top: 1px solid var(--border-color);
            margin: 12px 0;
        }

        .md-code {
            padding: 2px 7px;
            border-radius: 6px;
            background: rgba(99, 102, 241, 0.1);
            color: var(--primary-color);
            font-family: 'Consolas', 'Monaco', monospace;
            font-size: 0.88em;
        }

        .md-link {
            color: var(--primary-color);
            text-decoration: underline;
            word-break: break-all;
        }

        .md-link:hover {
            opacity: 0.8;
        }

        /* ===== 定时提醒 ===== */
        .reminder-badge {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            margin-top: 10px;
            margin-left: 8px;
            padding: 4px 12px;
            border-radius: 12px;
            background: rgba(245, 158, 11, 0.12);
            color: var(--warning-color);
            font-size: 12px;
            font-weight: 600;
        }

        .reminder-badge.overdue {
            background: rgba(239, 68, 68, 0.12);
            color: var(--danger-color);
            animation: reminderBlink 1.5s ease-in-out infinite;
        }

        @keyframes reminderBlink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.55; }
        }

        .reminder-input-row {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .reminder-input-row input[type="datetime-local"] {
            flex: 1;
            min-width: 0;
        }

        .reminder-clear-btn {
            padding: 10px 14px;
            border-radius: 12px;
            border: 1.5px solid var(--border-color);
            background: var(--card-bg);
            color: var(--text-secondary);
            cursor: pointer;
            font-size: 13px;
            transition: all 0.3s ease;
            flex-shrink: 0;
        }

        .reminder-clear-btn:hover {
            border-color: var(--danger-color);
            color: var(--danger-color);
        }

        /* ===== 便签模板 ===== */
        .template-row {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 18px;
            padding: 12px 16px;
            border-radius: 15px;
            background: rgba(99, 102, 241, 0.06);
            border: 1px dashed var(--border-color);
        }

        .template-row label {
            margin-bottom: 0;
            flex-shrink: 0;
            font-size: 13px;
        }

        .template-row select {
            flex: 1;
            min-width: 0;
            padding: 8px 12px;
            border: 1.5px solid var(--border-color);
            border-radius: 10px;
            font-size: 13px;
            background: var(--card-bg);
            color: var(--text-primary);
        }

        /* ===== 历史版本 ===== */
        .history-btn {
            display: none;
        }

        .history-btn.show {
            display: inline-flex;
        }

        .history-list {
            max-height: 50vh;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .history-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 15px;
            padding: 14px 16px;
            border: 1px solid var(--border-color);
            border-radius: 15px;
            background: var(--hover-color);
        }

        .history-item-info {
            flex: 1;
            min-width: 0;
        }

        .history-item-title {
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 3px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .history-item-summary {
            font-size: 13px;
            color: var(--text-secondary);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            margin-bottom: 3px;
        }

        .history-item-date {
            font-size: 12px;
            color: var(--text-secondary);
        }

        .history-item .note-action-btn {
            background: rgba(99, 102, 241, 0.1);
            color: var(--primary-color);
        }

        .history-item .note-action-btn:hover {
            background: var(--primary-color);
            color: #ffffff;
        }
        
        .color-options {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            margin-top: 15px;
        }
        
        .color-option {
            width: 40px;
            height: 40px;
            border-radius: 12px;
            cursor: pointer;
            border: 3px solid var(--border-color);
            transition: all 0.3s ease;
            position: relative;
        }
        
        .color-option:hover {
            transform: scale(1.1);
        }
        
        .color-option.selected::after {
            content: '✓';
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            color: white;
            font-weight: bold;
            font-size: 14px;
        }
        
        .stats {
            display: flex;
            gap: 30px;
            color: var(--text-secondary);
            font-size: 15px;
            margin-top: 15px;
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .stat-number {
            font-weight: 700;
            color: white;
            font-size: 18px;
        }
        
        .floating-buttons {
            position: fixed;
            bottom: 30px;
            right: 30px;
            display: flex;
            flex-direction: column;
            gap: 15px;
            z-index: 100;
        }
        
        .floating-btn {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            border: none;
            background: var(--primary-gradient);
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
            transition: all 0.3s ease;
        }
        
        .floating-btn:hover {
            transform: scale(1.1) rotate(15deg);
            box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
        }

        /* ===== +号快速添加弹出菜单 ===== */
        .quick-add-menu {
            position: absolute;
            right: 0;
            bottom: calc(100% + 12px);
            background: var(--card-bg);
            border-radius: 14px;
            box-shadow: 0 12px 35px rgba(0,0,0,0.22);
            border: 1px solid var(--border-color);
            padding: 6px;
            display: none;
            min-width: 170px;
            z-index: 9999;
            animation: themeDropdownIn 0.18s ease;
        }
        .quick-add-menu.show { display: block; }
        .quick-add-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 14px;
            border-radius: 10px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
            transition: all 0.18s ease;
        }
        .quick-add-item:hover {
            background: linear-gradient(135deg, rgba(99,102,241,0.14), rgba(236,72,153,0.14));
            color: var(--primary-color);
            transform: translateX(-2px);
        }
        .quick-add-item i {
            width: 22px;
            text-align: center;
            font-size: 15px;
        }
        /* +号激活态 */
        .floating-btn.active {
            transform: rotate(45deg);
            background: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
        }

        .toast {
            position: fixed;
            top: 30px;
            right: 30px;
            padding: 18px 25px;
            background: var(--card-bg);
            color: var(--text-primary);
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            z-index: 1000;
            transform: translateX(150%);
            transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            border-left: 5px solid var(--primary-color);
            backdrop-filter: blur(10px);
            max-width: 350px;
        }
        
        .toast.show {
            transform: translateX(0);
        }
        
        .toast-content {
            display: flex;
            align-items: center;
            gap: 15px;
        }
        
        .toast-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--primary-gradient);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 18px;
        }
        
        @media (max-width: 1024px) {
            .notes-container {
                grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            }
        }
        
        @media (max-width: 768px) {
            .header {
                flex-direction: column;
                align-items: flex-start;
                gap: 20px;
                padding: 20px;
            }
            
            .controls {
                flex-direction: column;
                align-items: stretch;
                padding: 20px;
            }
            
            .search-sort-container {
                flex-direction: column;
            }
            
            .search-box, .sort-box, .theme-selector {
                width: 100%;
            }
            
            .notes-container {
                grid-template-columns: 1fr;
                gap: 20px;
            }
            
            .modal-content {
                padding: 25px;
            }
            
            .floating-buttons {
                bottom: 20px;
                right: 20px;
            }
            
            .pagination-container {
                flex-wrap: wrap;
            }
        }
        
        @media (max-width: 480px) {
            body {
                padding: 15px;
            }
            
            h1 {
                font-size: 24px;
            }
            
            .buttons {
                flex-direction: column;
                width: 100%;
            }
            
            button {
                width: 100%;
                justify-content: center;
            }
            
            .note {
                padding: 20px;
            }
            
            .note-title {
                font-size: 20px;
            }
            
            .filter-buttons {
                flex-direction: column;
                align-items: stretch;
            }
            
            .filter-btn {
                width: 100%;
            }
        }

        /* ================================================================
           手机/平板响应式增强（≤768px）
           核心策略：所有弹窗全屏化（Fullscreen Sheet）
           1. 弹窗铺满整个视口，周围不再有灰色遮罩区域，物理杜绝误点
           2. 内部 flex 分区：标题固定 / 内容滚动 / 底部按钮固定，绝不裁切
           3. 100dvh 适配移动端浏览器动态地址栏
           ================================================================ */
        @media (max-width: 768px) {
            /* 遮罩层：去掉内边距，让内容区可以铺满 */
            .modal {
                padding: 0;
                align-items: stretch;
                justify-content: stretch;
                background: rgba(0, 0, 0, 0.55);
            }

            /* 弹窗主体：全屏铺满，从底部滑入 */
            .modal-content,
            .view-modal-content {
                width: 100%;
                max-width: none;
                height: 100%;
                height: 100dvh;
                max-height: none;
                border-radius: 0;
                padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
                display: flex;
                flex-direction: column;
                overflow: hidden;
                animation: modalSlideUp 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
            }

            @keyframes modalSlideUp {
                from { transform: translateY(100%); opacity: 1; }
                to { transform: translateY(0); opacity: 1; }
            }

            /* 标题栏固定不滚动 */
            .modal-header {
                flex-shrink: 0;
                margin-bottom: 14px;
                padding-bottom: 12px;
            }

            .modal-title {
                font-size: 21px;
            }

            .close-btn {
                width: 40px;
                height: 40px;
                font-size: 26px;
                flex-shrink: 0;
            }

            /* ---- 新建/编辑便签弹窗：表单弹性纵向，仅表单区域滚动 ---- */
            #note-form {
                flex: 1;
                min-height: 0;
                display: flex;
                flex-direction: column;
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
            }

            .form-group {
                margin-bottom: 16px;
                min-width: 0;
            }

            /* 16px 字号防止 iPhone 输入框聚焦时页面自动放大 */
            .form-group input,
            .form-group textarea,
            .template-row select {
                font-size: 16px;
                width: 100%;
                min-width: 0;
                max-width: 100%;
            }

            .form-group textarea {
                min-height: 200px;
            }

            /* 内容区标签与工具按钮：上下排列，按钮等宽不溢出 */
            .label-row {
                flex-direction: column;
                align-items: stretch;
                gap: 8px;
            }

            .editor-toolbar {
                width: 100%;
            }

            .editor-tool-btn {
                flex: 1;
                width: auto;
                justify-content: center;
                padding: 11px 8px;
                font-size: 13px;
                white-space: nowrap;
            }

            /* 模板行：保持横向，下拉框可收缩 */
            .template-row {
                flex-direction: row;
                align-items: center;
                gap: 10px;
                padding: 10px 12px;
                margin-bottom: 14px;
            }

            .template-row label {
                white-space: nowrap;
            }

            /* 定时提醒行：时间选择器可收缩，清除按钮不被挤出 */
            .reminder-input-row {
                flex-wrap: nowrap;
            }

            .reminder-input-row input[type="datetime-local"] {
                flex: 1;
                min-width: 0;
            }

            .reminder-clear-btn {
                width: auto;
                flex-shrink: 0;
                padding: 10px 12px;
            }

            /* 颜色选项换行显示 */
            .color-options {
                flex-wrap: wrap;
            }

            /* 图片缩略图区域允许换行不撑宽 */
            .image-preview-area {
                min-width: 0;
            }

            /* 底部操作栏：sticky 固定在弹窗底部，滚动时始终可见可点 */
            #note-form > div:last-child {
                position: sticky;
                bottom: 0;
                flex-wrap: wrap;
                gap: 10px;
                margin-top: auto;
                padding: 12px 0 4px;
                background: var(--card-bg);
                border-top: 1px solid var(--border-color);
                z-index: 2;
            }

            #note-form > div:last-child > button {
                flex: 1;
                width: auto;
                min-width: 0;
                margin: 0;
                padding: 13px 10px;
            }

            /* 历史版本按钮独占一行，取消/保存并排等宽；隐藏桌面端的占位 span */
            #note-form .history-btn {
                flex: 1 0 100%;
                justify-content: center;
            }

            #note-form > div:last-child > span {
                display: none;
            }

            /* 防止长文本撑破 flex 布局 */
            .modal-title {
                min-width: 0;
                overflow-wrap: anywhere;
            }

            .todo-text {
                min-width: 0;
            }

            /* ---- 查看便签弹窗：正文区域弹性滚动 ---- */
            .view-note-meta {
                flex-shrink: 0;
                gap: 8px;
            }

            .view-note-content {
                flex: 1;
                min-height: 0;
                max-height: none;
                font-size: 15px;
            }

            #view-modal .modal-content > div:last-child,
            #import-modal .modal-content > div:last-child,
            #trash-modal .modal-content > div:last-child,
            #history-modal .modal-content > div:last-child {
                flex-shrink: 0;
                margin-top: 16px;
            }

            #view-modal .modal-content > div:last-child button,
            #import-modal .modal-content > div:last-child button,
            #trash-modal .modal-content > div:last-child button,
            #history-modal .modal-content > div:last-child button {
                flex: 1;
            }

            /* ---- 回收站 / 历史版本：列表弹性滚动，底部按钮固定 ---- */
            .trash-tip {
                flex-shrink: 0;
            }

            .trash-list,
            .history-list {
                flex: 1;
                min-height: 0;
                max-height: none;
            }

            .trash-item,
            .history-item {
                gap: 10px;
                padding: 12px;
            }

            .trash-item-actions {
                flex-direction: column;
            }

            /* ---- 导入弹窗：中间内容区滚动 ---- */
            #import-modal .form-group {
                flex: 1;
                min-height: 0;
                display: flex;
                flex-direction: column;
            }

            #import-data {
                flex: 1;
                min-height: 180px;
            }

            /* 重置 ≤480px 全局 button{width:100%} 对弹窗内功能按钮的影响 */
            .note-action-btn,
            .editor-tool-btn,
            .reminder-clear-btn,
            .floating-btn,
            .img-preview-remove {
                width: auto;
            }

            /* 提示条不超出屏幕（保持右侧滑入机制） */
            .toast {
                right: 12px;
                left: auto;
                width: auto;
                max-width: calc(100vw - 24px);
            }
        }

        /* ================================================================
           手机竖屏（≤480px）进一步紧凑化
           ================================================================ */
        @media (max-width: 480px) {
            /* 顶部操作按钮组：两列网格，"新建便签"独占整行 */
            .buttons {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 10px;
            }

            .buttons > button {
                width: 100%;
                margin: 0;
                padding: 12px 8px;
                font-size: 14px;
            }

            .buttons #add-note-btn {
                grid-column: 1 / -1;
            }

            /* 卡片操作按钮保持图标尺寸，不被全局规则拉伸 */
            .note-actions {
                gap: 4px;
            }

            .note-action-btn {
                width: 34px;
                height: 34px;
                padding: 0;
                flex-shrink: 0;
            }

            /* 便签标题留出操作区宽度，避免重叠 */
            .note-title {
                padding-right: 4px;
            }

            .note.pinned .note-title {
                padding-left: 24px;
            }

            /* 弹窗内边距更紧凑 */
            .modal-content,
            .view-modal-content {
                padding: 14px 13px calc(14px + env(safe-area-inset-bottom, 0px));
            }

            .form-group label {
                font-size: 14px;
            }

            /* 待办复选框行内文字正常显示 */
            .todo-text {
                word-break: break-word;
            }

            /* 浮动按钮缩小，避免遮挡内容 */
            .floating-buttons {
                bottom: calc(14px + env(safe-area-inset-bottom, 0px));
                right: 14px;
                gap: 12px;
            }

            .floating-btn {
                width: 48px;
                height: 48px;
                font-size: 18px;
            }

            /* 登录框内边距适配 */
            .login-box {
                padding: 36px 24px;
            }
        }
        
        /* 登录界面样式 */
        .login-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 10000;
        }
        
        .login-overlay.hidden {
            display: none;
        }
        
        .login-box {
            background: white;
            padding: 50px 40px;
            border-radius: 25px;
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
            width: 90%;
            max-width: 420px;
            text-align: center;
            animation: loginSlideIn 0.5s ease;
        }
        
        @keyframes loginSlideIn {
            from {
                opacity: 0;
                transform: translateY(-30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        .login-icon {
            font-size: 60px;
            color: #667eea;
            margin-bottom: 20px;
        }
        
        .login-title {
            font-size: 28px;
            color: #1e293b;
            margin-bottom: 10px;
            font-weight: 700;
        }
        
        .login-subtitle {
            font-size: 14px;
            color: #64748b;
            margin-bottom: 30px;
        }
        
        .login-input-group {
            margin-bottom: 25px;
            position: relative;
        }
        
        .login-input {
            width: 100%;
            padding: 16px 20px 16px 50px;
            border: 2px solid #e2e8f0;
            border-radius: 12px;
            font-size: 16px;
            transition: all 0.3s ease;
        }
        
        .login-input:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }
        
        .login-input-icon {
            position: absolute;
            left: 18px;
            top: 50%;
            transform: translateY(-50%);
            color: #64748b;
            font-size: 18px;
        }
        
        .login-btn {
            width: 100%;
            padding: 16px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-bottom: 15px;
        }
        
        .login-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
        }
        
        .login-error {
            color: #ef4444;
            font-size: 14px;
            margin-top: 10px;
            display: none;
        }
        
        .login-error.show {
            display: block;
        }
        
        .password-settings {
            margin-top: 20px;
            padding-top: 20px;
            border-top: 1px solid #e2e8f0;
        }
        
        .password-hint {
            font-size: 13px;
            color: #64748b;
            margin-top: 15px;
        }
        
        .change-password-btn {
            background: transparent;
            color: #667eea;
            border: 2px solid #667eea;
            padding: 12px 20px;
            border-radius: 10px;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 10px;
        }
        
        .change-password-btn:hover {
            background: #667eea;
            color: white;
        }
        
        .main-content {
            display: none;
        }
        
        .main-content.show {
            display: block;
        }

        /* ================================================================
           网址导航模块 - CSS 样式
           ================================================================ */

        /* 标签页切换器 */
        .view-tabs {
            display: flex;
            gap: 0;
            margin-bottom: 20px;
            background: var(--card-bg);
            border-radius: 15px;
            padding: 6px;
            box-shadow: 0 5px 20px var(--shadow-color);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .view-tab {
            flex: 1;
            text-align: center;
            padding: 12px 20px;
            border-radius: 10px;
            cursor: pointer;
            font-weight: 600;
            font-size: 15px;
            color: var(--text-secondary);
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .view-tab:hover {
            color: var(--primary-color);
            background: var(--hover-color);
        }

        .view-tab.active {
            background: var(--primary-gradient);
            color: white;
            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
        }

        /* 分类标签栏 */
        .nav-category-bar {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            padding: 15px 20px;
            margin-bottom: 20px;
            background: var(--card-bg);
            border-radius: 15px;
            box-shadow: 0 5px 20px var(--shadow-color);
            border: 1px solid var(--border-color);
            align-items: center;
        }

        .nav-cat-chip {
            padding: 8px 16px;
            border-radius: 25px;
            background: var(--hover-color);
            color: var(--text-primary);
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 6px;
            border: 2px solid transparent;
        }

        .nav-cat-chip:hover {
            border-color: var(--primary-color);
            transform: translateY(-1px);
        }

        .nav-cat-chip.active {
            background: var(--primary-gradient);
            color: white;
            box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
        }

        .nav-cat-chip .cat-count {
            background: rgba(0,0,0,0.1);
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 12px;
            font-weight: 600;
        }

        .nav-cat-chip.active .cat-count {
            background: rgba(255,255,255,0.25);
        }

        /* 分类管理按钮（嵌入在分类栏右侧） */
        .cat-bar-actions {
            margin-left: auto;
            display: flex;
            gap: 8px;
        }

        .cat-bar-btn {
            padding: 8px 14px;
            border-radius: 10px;
            border: 1.5px solid var(--border-color);
            background: var(--card-bg);
            color: var(--text-secondary);
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .cat-bar-btn:hover {
            border-color: var(--primary-color);
            color: var(--primary-color);
        }

        /* 导航容器 */
        .nav-container {
            margin-top: 10px;
        }

        .nav-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 20px;
        }

        /* 导航网址卡片 */
        .nav-item {
            background: var(--note-bg);
            border-radius: 18px;
            padding: 22px;
            box-shadow: 0 8px 24px var(--shadow-color);
            transition: all 0.3s ease;
            border: 1px solid rgba(255, 255, 255, 0.2);
            position: relative;
            overflow: hidden;
            cursor: pointer;
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .nav-item::before {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0;
            height: 4px;
            background: var(--primary-gradient);
            transition: background 0.3s ease;
        }

        .nav-item:hover {
            transform: translateY(-6px);
            box-shadow: 0 16px 36px var(--shadow-color);
        }

        .nav-item.pinned {
            border: 2px solid var(--warning-color);
        }

        .nav-item.pinned::before {
            background: linear-gradient(90deg, var(--warning-color), #fb923c);
        }

        .nav-item-pin-badge {
            position: absolute;
            top: 12px;
            right: 14px;
            color: var(--warning-color);
            font-size: 16px;
        }

        /* 卡片顶部：图标 + 名称 */
        .nav-item-header {
            display: flex;
            align-items: center;
            gap: 14px;
            margin-bottom: 10px;
            padding-right: 30px;
        }

        .nav-item-icon {
            width: 48px;
            height: 48px;
            border-radius: 14px;
            background: var(--hover-color);
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            overflow: hidden;
        }

        .nav-item-icon img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        /* 自动抓取的 favicon：contain 保留比例，加浅色底 */
        .nav-item-icon img.nav-favicon {
            width: 30px;
            height: 30px;
            object-fit: contain;
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.6);
            padding: 2px;
        }

        .nav-item-icon i {
            font-size: 22px;
            color: var(--primary-color);
        }

        .nav-item-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-primary);
            line-height: 1.3;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            max-width: 100%;
        }

        .nav-item-url {
            font-size: 12px;
            color: var(--text-secondary);
            margin-top: 2px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        /* 卡片中部：描述 */
        .nav-item-desc {
            color: var(--text-secondary);
            font-size: 14px;
            line-height: 1.5;
            margin-bottom: 12px;
            flex: 1;
            min-height: 20px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        /* 卡片标签 */
        .nav-item-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
            margin-bottom: 12px;
        }

        .nav-tag {
            background: rgba(99, 102, 241, 0.1);
            color: var(--primary-color);
            padding: 3px 10px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 500;
        }

        /* 卡片底部：元信息 + 操作 */
        .nav-item-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 12px;
            border-top: 1px solid var(--border-color);
            gap: 10px;
        }

        .nav-item-meta {
            display: flex;
            align-items: center;
            gap: 14px;
            font-size: 12px;
            color: var(--text-secondary);
        }

        .nav-item-meta i {
            margin-right: 4px;
        }

        .nav-item-actions {
            display: flex;
            gap: 6px;
        }

        .nav-item-action-btn {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            border: none;
            background: rgba(99, 102, 241, 0.08);
            color: var(--primary-color);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            transition: all 0.25s ease;
        }

        .nav-item-action-btn:hover {
            background: var(--primary-color);
            color: white;
            transform: rotate(12deg);
        }

        .nav-item-action-btn.pin-btn.active {
            background: var(--warning-color);
            color: white;
        }

        .nav-item-action-btn.delete-btn {
            background: rgba(239, 68, 68, 0.1);
            color: var(--danger-color);
        }

        .nav-item-action-btn.delete-btn:hover {
            background: var(--danger-color);
            color: white;
        }

        /* 空状态（导航视图） */
        .nav-empty {
            text-align: center;
            padding: 80px 20px;
            color: var(--text-secondary);
            grid-column: 1 / -1;
        }

        .nav-empty i {
            font-size: 70px;
            margin-bottom: 20px;
            opacity: 0.25;
        }

        .nav-empty h3 {
            font-size: 22px;
            margin-bottom: 10px;
            color: var(--text-primary);
        }

        /* 分类管理弹窗 - 列表 */
        .category-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .category-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 18px;
            border: 1px solid var(--border-color);
            border-radius: 14px;
            background: var(--hover-color);
            transition: all 0.2s ease;
        }

        .category-item:hover {
            border-color: var(--primary-color);
        }

        .category-item-color {
            width: 4px;
            height: 36px;
            border-radius: 2px;
            flex-shrink: 0;
        }

        .category-item-icon {
            font-size: 18px;
            color: var(--primary-color);
            width: 28px;
            text-align: center;
        }

        .category-item-info {
            flex: 1;
            min-width: 0;
        }

        .category-item-name {
            font-weight: 600;
            color: var(--text-primary);
        }

        .category-item-count {
            font-size: 12px;
            color: var(--text-secondary);
            margin-top: 2px;
        }

        .category-item-actions {
            display: flex;
            gap: 6px;
        }

        .category-item-actions button {
            width: 32px; height: 32px;
            border-radius: 8px;
            border: none;
            cursor: pointer;
            background: rgba(99, 102, 241, 0.1);
            color: var(--primary-color);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .category-item-actions button:hover {
            background: var(--primary-color);
            color: white;
        }

        .category-item-actions button.danger:hover {
            background: var(--danger-color);
        }

        .category-create-row {
            display: flex;
            gap: 10px;
            align-items: center;
            flex-wrap: wrap;
        }

        .category-create-row input[type="text"],
        .category-create-row select {
            padding: 12px 14px;
            border: 2px solid var(--border-color);
            border-radius: 12px;
            font-size: 14px;
            background: var(--card-bg);
            color: var(--text-primary);
            min-width: 120px;
            flex: 1;
        }

        .category-create-row input[type="color"] {
            width: 46px; height: 46px;
            border: 2px solid var(--border-color);
            border-radius: 12px;
            padding: 2px;
            cursor: pointer;
            background: var(--card-bg);
            flex-shrink: 0;
        }

        /* 分类管理：列表头部 + inline 编辑态 + 排序按钮 */
        .cat-list-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 13px;
            color: var(--text-secondary);
            margin-top: 24px;
            padding-bottom: 6px;
            border-bottom: 1px dashed var(--border-color);
        }
        .cat-total {
            font-weight: 600;
            color: var(--primary-color);
        }

        .category-item {
            position: relative;
            transition: all 0.25s ease;
        }
        .category-item.editing {
            flex-wrap: wrap;
            gap: 10px;
            padding: 14px 16px;
            border-color: var(--primary-color);
            background: rgba(99,102,241,0.05);
        }
        .category-item.editing > *:not(.cat-edit-form) {
            display: none;
        }
        .cat-edit-form {
            display: flex;
            gap: 8px;
            align-items: center;
            width: 100%;
            flex-wrap: wrap;
        }
        .cat-edit-form input[type="text"] {
            flex: 1;
            min-width: 100px;
            padding: 8px 12px;
            border: 2px solid var(--border-color);
            border-radius: 10px;
            font-size: 14px;
            background: var(--card-bg);
            color: var(--text-primary);
        }
        .cat-edit-form select,
        .cat-edit-form input[type="number"] {
            padding: 8px 10px;
            border: 2px solid var(--border-color);
            border-radius: 10px;
            font-size: 13px;
            background: var(--card-bg);
            color: var(--text-primary);
            min-width: 110px;
        }
        .cat-edit-form input[type="color"] {
            width: 40px; height: 40px;
            border: 2px solid var(--border-color);
            border-radius: 10px;
            padding: 2px;
            cursor: pointer;
        }
        .cat-edit-form input[type="number"] {
            width: 70px;
        }
        .cat-edit-form button {
            padding: 7px 14px;
            border-radius: 10px;
            font-size: 13px;
            border: none;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 5px;
        }
        .cat-edit-form .save-edit-btn {
            background: var(--primary-color);
            color: white;
        }
        .cat-edit-form .save-edit-btn:hover { background: var(--primary-dark, #4f46e5); }
        .cat-edit-form .cancel-edit-btn {
            background: var(--hover-color);
            color: var(--text-primary);
        }

        /* 排序按钮组 */
        .cat-sort-group {
            display: flex;
            gap: 4px;
            margin-left: auto;
        }
        .cat-sort-btn {
            width: 28px;
            height: 28px;
            border-radius: 6px;
            border: none;
            cursor: pointer;
            background: rgba(99,102,241,0.08);
            color: var(--primary-color);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            transition: all 0.2s ease;
        }
        .cat-sort-btn:hover:not(:disabled) {
            background: var(--primary-color);
            color: white;
        }
        .cat-sort-btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }

        /* 导航表单内图标行 */
        .nav-icon-row {
            display: flex;
            gap: 10px;
            align-items: center;
        }

        .nav-icon-row input {
            padding: 10px 14px;
            border: 2px solid var(--border-color);
            border-radius: 12px;
            font-size: 14px;
            background: var(--card-bg);
            color: var(--text-primary);
        }

        /* 响应式 - 导航模块 */
        @media (max-width: 768px) {
            .nav-grid {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .view-tabs {
                margin-bottom: 15px;
            }

            .view-tab {
                padding: 10px 12px;
                font-size: 14px;
            }

            .nav-category-bar {
                gap: 8px;
                padding: 12px;
            }

            .nav-cat-chip {
                padding: 6px 12px;
                font-size: 13px;
            }

            .cat-bar-actions {
                margin-left: 0;
                width: 100%;
                justify-content: flex-end;
            }

            .nav-item {
                padding: 18px;
            }

            .nav-item-icon {
                width: 40px;
                height: 40px;
            }

            .nav-item-title {
                font-size: 16px;
            }

            .category-create-row {
                flex-direction: column;
            }

            .category-create-row input,
            .category-create-row select,
            .category-create-row button {
                width: 100%;
            }
        }

        @media (max-width: 480px) {
            .nav-item-actions {
                gap: 4px;
            }

            .nav-item-action-btn {
                width: 28px;
                height: 28px;
                font-size: 12px;
            }
        }

        /* ================================================================
           Header 管理按钮区 & 导引卡片 - 新增样式
           ================================================================ */

        /* header 三栏布局 */
        .header {
            display: flex;
            align-items: center;
            gap: 20px;
        }
        .header-left {
            flex: 1;
            min-width: 0;
        }

        /* header 中部管理按钮 */
        .header-actions {
            display: flex;
            gap: 10px;
            flex-shrink: 0;
            align-items: center;
        }

        .header-action-btn {
            padding: 12px 22px;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.18);
            color: white;
            font-size: 15px;
            font-weight: 600;
            border: 1px solid rgba(255, 255, 255, 0.35);
            cursor: pointer;
            transition: all 0.25s ease;
            display: flex;
            align-items: center;
            gap: 8px;
            white-space: nowrap;
            backdrop-filter: blur(6px);
            line-height: 1;
        }

        .header-action-btn:hover {
            background: rgba(255, 255, 255, 0.32);
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(0,0,0,0.2);
        }

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

        .header-action-btn i {
            font-size: 15px;
        }

        .header-action-btn .trash-count {
            background: rgba(255,255,255,0.35);
            padding: 2px 8px;
            border-radius: 10px;
            font-size: 12px;
            font-weight: 700;
        }

        /* 清空所有：实心红色（与图2一致，醒目区分危险操作） */
        .header-action-btn.header-danger-btn {
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
            border-color: rgba(239, 68, 68, 0.9);
            color: white;
            box-shadow: 0 4px 12px rgba(239, 68, 68, 0.35);
        }
        .header-action-btn.header-danger-btn:hover {
            background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
            box-shadow: 0 8px 20px rgba(239, 68, 68, 0.5);
        }

        /* 便签/导航的全局 CSS 变量适配 header 按钮文本色 */
        .theme-dark .header-action-btn { color: white; }
        .theme-dark .header-action-btn.header-danger-btn:hover { color: white; }

        /* 导引卡片 */
        .entry-cards {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
            margin-bottom: 22px;
        }

        .entry-card {
            background: var(--card-bg);
            border-radius: 18px;
            padding: 20px 22px;
            display: flex;
            align-items: center;
            gap: 16px;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 5px 20px var(--shadow-color);
            border: 2px solid transparent;
            position: relative;
            overflow: hidden;
        }

        .entry-card::before {
            content: '';
            position: absolute;
            top: 0; left: 0; bottom: 0;
            width: 5px;
            background: var(--primary-gradient);
            opacity: 0.7;
        }

        .entry-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 14px 32px var(--shadow-color);
            border-color: var(--primary-color);
        }

        .entry-card.active {
            border-color: var(--primary-color);
            background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.08));
        }

        .entry-card-icon {
            width: 54px;
            height: 54px;
            border-radius: 15px;
            background: var(--primary-gradient);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            flex-shrink: 0;
            box-shadow: 0 6px 16px rgba(99,102,241,0.35);
        }

        .entry-card-body {
            flex: 1;
            min-width: 0;
        }

        .entry-card-title {
            font-size: 17px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 4px;
        }

        .entry-card-desc {
            font-size: 13px;
            color: var(--text-secondary);
            line-height: 1.4;
        }

        .entry-card-arrow {
            color: var(--primary-color);
            font-size: 16px;
            opacity: 0.4;
            transition: all 0.3s ease;
        }

        .entry-card:hover .entry-card-arrow {
            opacity: 1;
            transform: translateX(4px);
        }

        /* 响应式：>900px 保持图2大按钮样式，仅小屏略缩 */
        @media (max-width: 900px) {
            .header-actions { gap: 8px; }
            .header-action-btn { padding: 10px 18px; font-size: 14px; }
            .header-action-btn i { font-size: 14px; }
        }
        @media (max-width: 600px) {
            .header-action-btn { padding: 8px 14px; font-size: 13px; }
            .header-action-btn i { font-size: 13px; }
        }

        /* 分类栏快速新建按钮 - 主按钮风 */
        .cat-bar-primary-btn {
            background: var(--primary-gradient);
            color: white;
            border-color: transparent;
            font-weight: 600;
        }
        .cat-bar-primary-btn:hover {
            color: white;
            box-shadow: 0 4px 12px rgba(99,102,241,0.35);
            transform: translateY(-1px);
        }

        /* ===== 导入弹窗 CSS ===== */
        .import-section { padding: 0; }
        .import-step-label {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-secondary);
            margin-bottom: 10px;
            padding-left: 2px;
        }

        .import-file-drop {
            border: 2px dashed var(--border-color);
            border-radius: 14px;
            padding: 28px 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.25s ease;
            background: var(--hover-color);
        }
        .import-file-drop:hover,
        .import-file-drop.dragover {
            border-color: var(--primary-color);
            background: rgba(99,102,241,0.08);
        }
        .import-drop-icon {
            font-size: 42px;
            color: var(--primary-color);
            opacity: 0.7;
            margin-bottom: 10px;
        }
        .import-drop-text {
            font-size: 14px;
            color: var(--text-secondary);
            margin-bottom: 6px;
        }
        .import-file-name {
            font-size: 13px;
            color: var(--text-primary);
            font-weight: 600;
        }
        .import-file-name.has-file {
            color: var(--primary-color);
        }

        .import-mode-row { display: flex; flex-direction: column; gap: 10px; }
        .import-mode-option {
            display: flex;
            gap: 12px;
            padding: 14px 16px;
            border-radius: 12px;
            border: 2px solid var(--border-color);
            cursor: pointer;
            transition: all 0.25s ease;
            background: var(--hover-color);
            align-items: flex-start;
        }
        .import-mode-option input { margin-top: 4px; }
        .import-mode-option.active {
            border-color: var(--primary-color);
            background: rgba(99,102,241,0.08);
        }
        .import-mode-body { flex: 1; min-width: 0; }
        .import-mode-title {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 3px;
        }
        .import-mode-desc {
            font-size: 12px;
            color: var(--text-secondary);
            line-height: 1.5;
        }

        .import-preview-box,
        .import-result-box {
            padding: 16px 18px;
            border-radius: 12px;
            background: var(--hover-color);
            border: 1px solid var(--border-color);
        }
        .import-stat-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
            margin-bottom: 14px;
        }
        .import-stat {
            text-align: center;
            padding: 10px 6px;
            border-radius: 10px;
            background: var(--card-bg);
        }
        .import-stat-num {
            font-size: 22px;
            font-weight: 700;
            color: var(--primary-color);
        }
        .import-stat-label {
            font-size: 11px;
            color: var(--text-secondary);
            margin-top: 2px;
        }
        .import-stat.success .import-stat-num { color: #10b981; }
        .import-stat.warn    .import-stat-num { color: #f59e0b; }
        .import-stat.error   .import-stat-num { color: #ef4444; }

        .import-result-box .import-ok,
        .import-result-box .import-err {
            padding: 10px 14px;
            border-radius: 10px;
            font-size: 13px;
            margin-bottom: 10px;
        }
        .import-result-box .import-ok {
            background: rgba(16,185,129,0.12);
            color: #059669;
        }
        .import-result-box .import-err {
            background: rgba(239,68,68,0.12);
            color: #dc2626;
        }
        .import-failed-list {
            font-size: 12px;
            color: var(--danger-color);
            margin-top: 8px;
            padding-left: 18px;
        }

        /* 响应式 */
        @media (max-width: 768px) {
            .header { flex-wrap: wrap; gap: 12px; }
            .header-actions {
                order: 3;
                width: 100%;
                justify-content: flex-start;
                flex-wrap: wrap;
            }
            .theme-selector { order: 2; }
            .header-left { order: 1; }

            .entry-cards {
                grid-template-columns: 1fr;
                gap: 12px;
            }
            .entry-card { padding: 16px; }
            .entry-card-icon { width: 44px; height: 44px; font-size: 19px; border-radius: 12px; }
            .entry-card-title { font-size: 15px; }
            .entry-card-desc { font-size: 12px; }
        }

        /* ================================================================
           移动端完善（V17）- 分类栏横滑 / 触控目标 / 防溢出 / 安全区
           ================================================================ */
        @media (max-width: 768px) {
            /* 全局：杜绝横向溢出 */
            html { overflow-x: hidden; }
            body {
                max-width: 100%;
                padding-left: calc(16px + env(safe-area-inset-left, 0px));
                padding-right: calc(16px + env(safe-area-inset-right, 0px));
            }

            /* 分类标签栏：不换行，改为横向滑动 */
            .nav-category-bar {
                flex-wrap: nowrap;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
                gap: 8px;
                padding: 10px 12px;
                align-items: center;
            }
            .nav-category-bar::-webkit-scrollbar { display: none; }

            .nav-cat-chip {
                flex-shrink: 0;
                white-space: nowrap;
                padding: 7px 14px;
                font-size: 13px;
            }

            /* 操作按钮组：粘性固定在右侧，分类横滑时始终可见 */
            .cat-bar-actions {
                width: auto;
                margin-left: auto;
                position: sticky;
                right: 0;
                background: var(--card-bg);
                padding-left: 8px;
                z-index: 2;
                flex-shrink: 0;
                justify-content: flex-end;
            }

            /* 卡片操作按钮：触控目标不低于 36px（原 28px 太小） */
            .nav-item-action-btn {
                width: 36px;
                height: 36px;
                font-size: 14px;
            }
            .nav-item-actions { gap: 6px; }

            /* 分页控件紧凑化，避免换行堆叠过宽 */
            .pagination-container {
                gap: 8px;
                padding: 12px;
                margin: 20px 0;
                flex-wrap: wrap;
            }
            .pagination-btn {
                min-width: 36px;
                padding: 8px 12px;
                font-size: 13px;
            }

            /* 导入统计：4 列 → 2 列，避免窄屏过挤 */
            .import-stat-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 8px;
            }

            /* 浮动按钮避让底部 / 右侧安全区 */
            .floating-buttons {
                bottom: calc(20px + env(safe-area-inset-bottom, 0px));
                right: calc(16px + env(safe-area-inset-right, 0px));
            }
        }

        @media (max-width: 480px) {
            body {
                padding: 12px;
                padding-left: calc(12px + env(safe-area-inset-left, 0px));
                padding-right: calc(12px + env(safe-area-inset-right, 0px));
                padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
            }
            .nav-cat-chip { padding: 6px 12px; font-size: 12px; }
            /* 操作按钮收为图标，给分类标签留出更多可视空间（title 属性保留提示） */
            .cat-bar-btn {
                font-size: 0;
                padding: 8px 10px;
            }
            .cat-bar-btn i { font-size: 14px; margin: 0; }
            .nav-item-action-btn { width: 42px; height: 42px; font-size: 14px; }
        }

        /* ================================================================
           网址功能手机端完善（V18）
           修复：新建/编辑网址弹窗底部按钮不可达、分类下拉被裁切、
                 卡片操作按钮触控目标不足、长文本溢出、分类栏无滚动提示
           ================================================================ */
        @media (max-width: 768px) {
            /* ---- 新建/编辑网址弹窗：表单区弹性滚动，底部按钮 sticky 固定 ----
               根因：.modal-content 全屏化后 overflow:hidden，但 #nav-item-form
               未设为可滚动区，导致「保存/取消」按钮被裁在可视区外且无法滚动。 */
            #nav-item-form {
                flex: 1;
                min-height: 0;
                display: flex;
                flex-direction: column;
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
            }
            #nav-item-form > div:last-child {
                position: sticky;
                bottom: 0;
                flex-wrap: wrap;
                gap: 10px;
                margin-top: auto;
                padding: 12px 0 4px;
                background: var(--card-bg);
                border-top: 1px solid var(--border-color);
                z-index: 2;
            }
            #nav-item-form > div:last-child > button {
                flex: 1;
                width: auto;
                min-width: 0;
                margin: 0;
                padding: 13px 10px;
            }

            /* 分类自定义下拉：手机端改为流式展开，避免被弹窗 overflow 裁切 */
            #nav-category-wrap { overflow: visible; }
            .custom-cat-dropdown {
                position: static;
                max-height: 45vh;
            }

            /* ---- 网址回收站 / 分类管理：底部按钮行不被压缩 ---- */
            #nav-trash-modal .modal-content > div:last-child,
            #category-manager-modal .modal-content > div:last-child {
                flex-shrink: 0;
                margin-top: 16px;
            }
            /* 批量导入：内容区弹性滚动，预览/结果出现后仍可滚到底点按钮 */
            #nav-import-modal .import-section {
                flex: 1;
                min-height: 0;
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
            }

            /* ---- 卡片操作按钮：触控目标 ≥44px，并防止被 flex 压缩 ---- */
            .nav-item-action-btn {
                width: 44px;
                height: 44px;
                min-width: 44px;
                font-size: 15px;
                flex-shrink: 0;
            }
            /* 窄屏 footer 允许换行：元信息在上、操作按钮在下一行右对齐，给按钮留足宽度 */
            .nav-item-footer {
                flex-wrap: wrap;
                row-gap: 8px;
            }
            .nav-item-actions {
                margin-left: auto;
                gap: 8px;
            }
            .nav-item-meta {
                min-width: 0;
                flex-wrap: wrap;
                gap: 8px;
            }

            /* 长文本截断保险（标题/URL 不撑破卡片） */
            .nav-item-header { min-width: 0; }
            .nav-item-title,
            .nav-item-url { max-width: 100%; }

            /* 分类栏操作按钮左侧渐隐，暗示可横向滑动（不遮挡按钮本身） */
            .cat-bar-actions::before {
                content: '';
                position: absolute;
                left: -18px;
                top: 0;
                bottom: 0;
                width: 18px;
                background: linear-gradient(to right, transparent, var(--card-bg));
                pointer-events: none;
            }
        }

        /* ================================================================
           V19：分页移至内容底部 + 手机端卡片上方控制面板居中美化
           ================================================================ */
        /* 分页移到底部后，与上方卡片网格保持间距 */
        .pagination-container {
            margin-top: 24px;
        }

        @media (max-width: 768px) {
            /* 控制面板收紧间距，视觉更轻盈 */
            .controls {
                gap: 14px;
                padding: 18px;
                margin-bottom: 20px;
            }
            .search-sort-container { gap: 12px; }
        }

        @media (max-width: 480px) {
            /* 新建便签 / 新建网址：两列并排居中，替代原先上下通栏堆叠，更平衡美观 */
            .controls .buttons {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 10px;
                width: 100%;
            }
            .controls .buttons > button {
                width: 100%;
                min-height: 48px;
                padding: 12px 8px;
                font-size: 14px;
                justify-content: center;
            }
            /* 搜索 / 排序输入框高度与圆角统一，更精致 */
            .search-box input {
                padding: 13px 16px 13px 44px;
                font-size: 15px;
                border-radius: 12px;
            }
            .sort-box select {
                padding: 13px 14px;
                font-size: 15px;
                border-radius: 12px;
            }
            .search-box i { left: 16px; font-size: 14px; }

            /* 底部分页在窄屏更紧凑居中 */
            .pagination-container {
                margin: 20px 0 8px;
                padding: 12px;
                gap: 8px;
            }
        }

        /* ================================================================
           V20：手机端页码修复 + 新建按钮一排 + 筛选按钮美化
           ================================================================ */
        /* 每页显示选择器：桌面端靠右（替代原 inline margin-left:auto） */
        .page-size-selector { margin-left: auto; }

        @media (max-width: 768px) {
            /* 页码：抵消全局 button{width:100%} 造成的通栏竖排，恢复居中横排 */
            .pagination-container {
                display: flex;
                flex-wrap: wrap;
                justify-content: center;
                align-items: center;
            }
            .pagination-container .pagination-btn {
                width: auto;
                min-width: 40px;
                flex: 0 0 auto;
                margin: 0;
            }
            .pagination-container .pagination-dots {
                margin: 0 2px;
                align-self: center;
            }
        }

        @media (max-width: 480px) {
            /* 页码按钮紧凑化，绝不通栏 */
            .pagination-container .pagination-btn {
                width: auto;
                min-width: 36px;
                padding: 8px 12px;
                flex: 0 0 auto;
            }

            /* 新建便签 / 新建网址：强制一排两列 */
            .controls .buttons {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 10px;
                width: 100%;
            }
            .controls .buttons > button {
                width: 100%;
                min-height: 48px;
            }
            /* 覆盖旧规则（.buttons #add-note-btn{grid-column:1/-1}，ID 选择器特异性更高会永远胜出），
               让“新建便签”只占一列，从而与“新建网址”真正并排显示在同一行 */
            .controls .buttons #add-note-btn {
                grid-column: auto;
            }

            /* 筛选区：纵向堆叠（筛选按钮在上、每页显示在下） */
            .filter-controls {
                flex-direction: column;
                align-items: stretch;
                gap: 12px;
                padding: 14px;
            }
            /* 5 个筛选按钮：两列网格，文字居中，更美观 */
            .filter-buttons {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 8px;
            }
            .filter-btn {
                width: 100%;
                margin: 0;
                padding: 10px 8px;
                text-align: center;
            }
            /* 每页显示：单独一行居中 */
            .page-size-selector {
                margin-left: 0;
                justify-content: center;
                width: 100%;
            }
        }

        /* ============================================================
           便签独立访问密码 / AES 加密（V22）
           ============================================================ */
        .note.locked {
            border: 2px dashed var(--border-color);
        }
        .lock-badge {
            position: absolute;
            top: 14px;
            right: 16px;
            color: var(--warning-color);
            font-size: 16px;
            z-index: 2;
        }
        .locked-placeholder {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            min-height: 60px;
            color: var(--text-secondary);
            font-size: 13px;
            text-align: center;
            padding: 10px 4px;
            opacity: 0.9;
        }
        .locked-placeholder i {
            color: var(--warning-color);
        }
        /* 查看弹窗：未解锁时的门禁界面 */
        .locked-view-gate {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 14px;
            padding: 50px 20px;
            text-align: center;
            color: var(--text-secondary);
        }
        .locked-view-gate i {
            font-size: 48px;
            color: var(--warning-color);
        }
        .locked-view-gate p {
            margin: 0;
            font-size: 15px;
        }

        /* ============================================================
           个人网盘 DiskModule（V23）
           ============================================================ */
        .disk-container {
            padding: 20px;
            max-width: 1100px;
            margin: 0 auto;
        }
        .disk-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 18px;
            flex-wrap: wrap;
            gap: 10px;
        }
        .disk-header h2 {
            margin: 0;
            font-size: 22px;
            color: var(--text-primary);
        }
        .disk-header h2 i { color: var(--primary-color); margin-right: 8px; }
        .disk-stats { color: var(--text-secondary); font-size: 14px; }
        .disk-banner {
            display: flex;
            align-items: center;
            gap: 10px;
            background: #fff7e6;
            color: #b45309;
            border: 1px solid #fde68a;
            border-radius: 10px;
            padding: 12px 16px;
            margin-bottom: 16px;
            font-size: 14px;
        }
        .disk-banner i { color: #f59e0b; }
        .disk-upload-zone {
            border: 2px dashed var(--border-color);
            border-radius: 14px;
            padding: 36px 20px;
            text-align: center;
            color: var(--text-secondary);
            background: var(--card-bg);
            transition: border-color .2s, background .2s;
            cursor: pointer;
            margin-bottom: 20px;
        }
        .disk-upload-zone:hover,
        .disk-upload-zone.drag-over {
            border-color: var(--primary-color);
            background: rgba(99, 102, 241, 0.06);
        }
        .disk-upload-zone i {
            font-size: 38px;
            color: var(--primary-color);
            margin-bottom: 10px;
        }
        .disk-upload-zone p { margin: 0; font-size: 14px; }
        .disk-pick-label {
            color: var(--primary-color);
            cursor: pointer;
            text-decoration: underline;
        }
        .disk-file-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }
        .disk-file-row {
            display: flex;
            align-items: center;
            gap: 14px;
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 12px 16px;
            transition: box-shadow .2s;
        }
        .disk-file-row:hover { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08); }
        .disk-file-icon {
            width: 42px; height: 42px;
            border-radius: 10px;
            background: rgba(99, 102, 241, 0.12);
            color: var(--primary-color);
            display: flex; align-items: center; justify-content: center;
            font-size: 18px;
            flex-shrink: 0;
        }
        .disk-file-info { flex: 1; min-width: 0; }
        .disk-file-name {
            font-size: 15px;
            font-weight: 600;
            color: var(--text-primary);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .disk-file-meta {
            font-size: 12px;
            color: var(--text-secondary);
            margin-top: 3px;
        }
        .disk-tag {
            display: inline-block;
            background: var(--warning-color);
            color: #fff;
            font-size: 11px;
            padding: 1px 7px;
            border-radius: 10px;
            margin-left: 6px;
            font-weight: 500;
        }
        .disk-progress-wrap {
            display: flex;
            align-items: center;
            gap: 8px;
            margin-top: 6px;
        }
        .disk-progress {
            flex: 1;
            height: 6px;
            background: var(--border-color);
            border-radius: 3px;
            overflow: hidden;
            max-width: 280px;
        }
        .disk-progress-bar {
            height: 100%;
            background: var(--primary-color);
            border-radius: 3px;
            transition: width .2s;
        }
        .disk-progress-text {
            font-size: 12px;
            color: var(--text-secondary);
            white-space: nowrap;
        }
        .disk-file-actions {
            display: flex;
            gap: 6px;
            flex-shrink: 0;
        }
        .disk-action {
            width: 32px; height: 32px;
            border-radius: 8px;
            border: 1px solid var(--border-color);
            background: var(--bg-color);
            color: var(--text-secondary);
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            transition: all .15s;
        }
        .disk-action:hover { color: var(--primary-color); border-color: var(--primary-color); }
        .disk-action.disk-delete:hover,
        .disk-action.disk-cancel:hover { color: var(--danger-color); border-color: var(--danger-color); }
        .disk-empty {
            text-align: center;
            padding: 50px 20px;
            color: var(--text-secondary);
        }
        .disk-empty i { font-size: 42px; opacity: .5; margin-bottom: 10px; }
        .disk-empty p { margin: 0; }

        @media (max-width: 600px) {
            .disk-container { padding: 12px; }
            .disk-file-row { flex-wrap: wrap; }
            .disk-file-actions { width: 100%; justify-content: flex-end; }
            .disk-progress { max-width: 100%; }
        }