/*
=====================
项目名称：123极简导航
版本号：v2.4
发布时间：2026-03-29
文件名：style.css
描述：完善深浅色模式 + PC/移动端适配
=====================
*/

/* ==================== CSS变量设计令牌 ==================== */
:root {
    /* 主题色 */
    --primary: #0066cc;
    --primary-hover: #0052a3;
    --primary-light: rgba(0, 102, 204, 0.06);
    --primary-alpha: rgba(0, 102, 204, 0.1);
    
    /* 功能色 */
    --danger: #c00;
    --danger-hover: #a00;
    --danger-light: rgba(204, 0, 0, 0.1);
    --warning: #ffd700;
    --warning-dark: #e6c200;
    --success: #52c41a;
    
    /* 浅色模式默认 */
    --bg-body: #e8e8e8;
    --bg-card: #fff;
    --bg-hover: rgba(0, 102, 204, 0.06);
    --bg-mask: rgba(0, 0, 0, 0.5);
    --bg-input: #fafafa;
    --bg-input-focus: #fff;
    --bg-dropdown: #fafafa;
    
    /* 文字色 */
    --text-primary: #333;
    --text-secondary: #666;
    --text-tertiary: #999;
    --text-link: #0066cc;
    --text-white: #fff;
    --text-muted: #aaa;
    
    /* 边框色 */
    --border-light: #f0f0f0;
    --border-medium: #ddd;
    --border-dark: #ccc;
    --border-dashed: #bbb;
    --border-input: #ddd;
    
    /* 阴影 */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.2);
    --shadow-card: 0 2px 8px rgba(0,0,0,0.04), 0 0 1px rgba(0,0,0,0.08);
    --shadow-card-hover: 0 4px 16px rgba(0,0,0,0.08), 0 0 1px rgba(0,0,0,0.1);
    
    /* 圆角 */
    --radius-sm: 3px;
    --radius-md: 4px;
    --radius-lg: 6px;
    --radius-xl: 8px;
    --radius-full: 23px;
    
    /* 工具箱 */
    --toolbox-bg: #f5f5f5;
    --toolbox-border: #e0e0e0;
    --toolbox-item-bg: #fff;
    --toolbox-icon-bg: #f5f5f5;
    --toolbox-icon-bg-hover: #e8f4ff;
    
    /* 编辑模式 */
    --edit-bar-bg: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    --edit-bar-text: #333;
    --category-op-bg: linear-gradient(135deg, #ffd700, #ffcc00);
    
    /* 时间区域 */
    --time-bg: transparent;
    --time-text-gradient: none;
    --time-text-fill: var(--text-primary);
    
    /* 天气 */
    --weather-bg: rgba(0,0,0,0.03);
    --weather-bg-hover: rgba(0,0,0,0.05);
}

/* ==================== 浅色模式（手动强制）==================== */
[data-theme="light"] {
    /* 显式定义浅色变量，确保覆盖系统深色模式 */
    --bg-body: #e8e8e8;
    --bg-card: #fff;
    --bg-hover: rgba(0, 102, 204, 0.06);
    --bg-mask: rgba(0, 0, 0, 0.5);
    --bg-input: #fafafa;
    --bg-input-focus: #fff;
    --bg-dropdown: #fafafa;
    
    --text-primary: #333;
    --text-secondary: #666;
    --text-tertiary: #999;
    --text-link: #0066cc;
    --text-muted: #aaa;
    
    --border-light: #f0f0f0;
    --border-medium: #ddd;
    --border-dark: #ccc;
    --border-input: #ddd;
    
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.2);
    --shadow-card: 0 2px 8px rgba(0,0,0,0.04), 0 0 1px rgba(0,0,0,0.08);
    --shadow-card-hover: 0 4px 16px rgba(0,0,0,0.08), 0 0 1px rgba(0,0,0,0.1);
    
    --toolbox-bg: #f5f5f5;
    --toolbox-border: #e0e0e0;
    --toolbox-item-bg: #fff;
    --toolbox-icon-bg: #f5f5f5;
    --toolbox-icon-bg-hover: #e8f4ff;
    
    --edit-bar-bg: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    --edit-bar-text: #333;
    --category-op-bg: linear-gradient(135deg, #ffd700, #ffcc00);
    
    --time-bg: transparent;
    --time-text-gradient: none;
    --time-text-fill: var(--text-primary);
    
    --weather-bg: rgba(0,0,0,0.03);
    --weather-bg-hover: rgba(0,0,0,0.05);
    
    --primary: #0066cc;
    --primary-hover: #0052a3;
    --primary-light: rgba(0, 102, 204, 0.06);
    --primary-alpha: rgba(0, 102, 204, 0.1);
    
    --danger: #c00;
    --danger-hover: #a00;
    --danger-light: rgba(204, 0, 0, 0.1);
    
    --warning: #ffd700;
    --warning-dark: #e6c200;
    
    /* 浅色模式 - 主卡片光效 */
    .main-card {
        background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
        border: 1px solid #e8e8e8;
    }
    
    /* 浅色模式 - 顶部光照 */
    .main-card::before {
        background: radial-gradient(
            ellipse 80% 100% at 50% 0%,
            rgba(255, 255, 255, 0.8) 0%,
            transparent 70%
        );
        opacity: 0.8;
    }
    
    /* 浅色模式 - 鼠标跟随 subtle 光晕 */
    .main-card::after {
        background: radial-gradient(
            circle,
            rgba(0, 102, 204, 0.04) 0%,
            transparent 60%
        );
        filter: blur(30px);
    }
}

/* ==================== 深色模式 - 高级灰色调 ==================== */

/* 手动强制深色模式 - 灰色调设计 */
[data-theme="dark"] {
    /* 背景层次 - 纯灰色调 */
    --bg-body: #111111;
    --bg-card: #1e1e1e;
    --bg-hover: rgba(255, 255, 255, 0.03);
    --bg-mask: rgba(0, 0, 0, 0.8);
    --bg-input: #1a1a1a;
    --bg-input-focus: #1f1f1f;
    --bg-dropdown: #1a1a1a;
    
    /* 文字层次 - 柔和白色 */
    --text-primary: #f5f5f5;
    --text-secondary: #a0a0a0;
    --text-tertiary: #666666;
    --text-link: #c0c0c0;
    --text-muted: #555555;
    
    /* 边框 - 极细灰线 */
    --border-light: #2a2a2a;
    --border-medium: #1f1f1f;
    --border-dark: #333333;
    --border-dashed: #363636;
    --border-input: #2a2a2a;
    
    /* 阴影 - 更柔和 */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.5);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.6);
    --shadow-card: 0 2px 8px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.02);
    --shadow-card-hover: 0 8px 24px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.03);
    
    /* 工具箱 - 深灰而非纯黑 */
    --toolbox-bg: #1a1a1a;
    --toolbox-border: #2a2a2a;
    --toolbox-item-bg: #222222;
    --toolbox-icon-bg: #2a2a2a;
    --toolbox-icon-bg-hover: rgba(255,255,255,0.08);
    
    /* 编辑模式 - 接近浅色的亮黄色 */
    --edit-bar-bg: linear-gradient(135deg, #e6b800 0%, #cc9900 100%);
    --edit-bar-text: #1a1a1a;
    --category-op-bg: linear-gradient(135deg, #e6b800, #cc9900);
    
    /* 时间区域 - 微妙背景 */
    --time-bg: rgba(255,255,255,0.02);
    --time-text-gradient: linear-gradient(135deg, #f5f5f5, #888888);
    --time-text-fill: transparent;
    
    /* 天气 */
    --weather-bg: rgba(255,255,255,0.03);
    --weather-bg-hover: rgba(255,255,255,0.05);
    
    /* 主色调 - 灰白色系 */
    --primary: #d0d0d0;
    --primary-hover: #ffffff;
    --primary-light: rgba(255, 255, 255, 0.05);
    --primary-alpha: rgba(255, 255, 255, 0.08);
    
    /* 功能色 - 降低饱和度 */
    --danger: #c75b5b;
    --danger-hover: #d66b6b;
    --danger-light: rgba(199, 91, 91, 0.1);
    
    --warning: #b8950a;
    --warning-dark: #9a7b08;
}

/* 深色模式 - 高级光影效果 */
[data-theme="dark"] .main-card {
    /* 微妙的顶部光照效果 */
    background: linear-gradient(180deg, var(--bg-card) 0%, #1e1e1e 100%);
    border: 1px solid var(--border-light);
    box-shadow: 
        0 0 0 1px rgba(0,0,0,0.5),
        var(--shadow-lg),
        inset 0 1px 0 rgba(255,255,255,0.03);
}

/* 移除原来的大光斑，改为 subtle 的径向渐变 */
[data-theme="dark"] .main-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: radial-gradient(
        ellipse 80% 100% at 50% 0%,
        rgba(255, 255, 255, 0.03) 0%,
        transparent 70%
    );
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.5s ease;
}

/* 深色模式 - 毛玻璃效果（增强可读性） */
[data-theme="dark"] .modal-card,
[data-theme="dark"] .title-dropdown,
[data-theme="dark"] .search-dropdown {
    background: rgba(35, 35, 35, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* 深色模式 - 下拉菜单项（增强对比） */
[data-theme="dark"] .dropdown-item {
    color: #e0e0e0;
}

[data-theme="dark"] .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

[data-theme="dark"] .dropdown-divider {
    background: rgba(255, 255, 255, 0.1);
}

/* 深色模式 - 搜索下拉菜单项 */
[data-theme="dark"] .search-dropdown-item {
    color: #e8e8e8;
}

[data-theme="dark"] .search-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .search-dropdown-header {
    color: #888;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .search-dropdown-footer {
    color: #aaa;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .search-dropdown-footer:hover {
    background: rgba(255, 107, 107, 0.15);
    color: #ff7a7a;
}

[data-theme="dark"] .search-dropdown-item .search-delete {
    color: #777;
}

[data-theme="dark"] .search-dropdown-item .search-delete:hover {
    background: rgba(255, 107, 107, 0.25);
    color: #ff7a7a;
}

/* 深色模式 - 下拉菜单箭头 */
[data-theme="dark"] .title-dropdown::before {
    background: rgba(35, 35, 35, 0.98);
    border-left-color: rgba(255, 255, 255, 0.1);
    border-top-color: rgba(255, 255, 255, 0.1);
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
}

/* 深色模式 - 工具箱容器 */
[data-theme="dark"] .toolbox-container {
    border-color: rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .fold-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #999;
}

[data-theme="dark"] .fold-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .toolbox-container:has(.fold-content.show) .fold-btn {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

/* 深色模式 - 工具箱 */
[data-theme="dark"] .tool-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s ease;
}

[data-theme="dark"] .tool-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

/* 深色模式 - 图标滤镜（稍微提亮） */
[data-theme="dark"] .site-icon,
[data-theme="dark"] .tool-icon-img {
    filter: saturate(0.8) brightness(0.92);
    opacity: 0.95;
}

/* 深色模式 - 站点链接（增强可读性） */
[data-theme="dark"] .site-item {
    color: #b0b0b0;
}

[data-theme="dark"] .site-item:hover {
    color: #f0f0f0;
}

[data-theme="dark"] .category-name {
    color: #888;
}

/* 深色模式 - 搜索框 */
[data-theme="dark"] .search-area input {
    background: #1a1a1a;
    border-color: #3a3a3a;
    color: #f5f5f5;
}

[data-theme="dark"] .search-area input:focus {
    border-color: #444444;
    background: #1f1f1f;
}

/* 深色模式 - 搜索按钮（明亮蓝色） */
[data-theme="dark"] .search-area > button {
    background: #2a6db5;
    color: #ffffff;
}

[data-theme="dark"] .search-area > button:hover {
    background: #3a8bd8;
    color: #ffffff;
}

/* 深色模式 - 表单按钮（增强层次） */
[data-theme="dark"] .form-submit button {
    background: #3a3a3a;
    color: #f0f0f0;
    border: 1px solid #4a4a4a;
}

[data-theme="dark"] .form-submit button:hover {
    background: #4a4a4a;
    border-color: #5a5a5a;
}

/* 深色模式 - 导航标题与元信息 */
[data-theme="dark"] .nav-title,
[data-theme="dark"] .nav-title b {
    color: #909090;
}

[data-theme="dark"] .nav-title:hover,
[data-theme="dark"] .nav-title:hover b {
    color: #c0c0c0;
}

[data-theme="dark"] .like-wrapper {
    color: #909090;
}

[data-theme="dark"] .like-wrapper:hover {
    color: #d0d0d0;
}

[data-theme="dark"] #weatherWidget {
    color: #909090;
}

[data-theme="dark"] #weatherWidget:hover {
    color: #c0c0c0;
}

[data-theme="dark"] .nav-meta-divider {
    color: #444;
}

/* 深色模式 - 标题悬停效果 */


/* 深色模式 - 编辑模式选中状态 */
[data-theme="dark"] .edit-mode .site-item.active {
    background: #b8950a;
    color: #1a1a1a;
}

/* 深色模式 - 添加按钮 */
[data-theme="dark"] .edit-mode .add-site-btn-inline {
    color: #d0d0d0;
}

[data-theme="dark"] .edit-mode .add-site-btn-inline:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* 深色模式 - 操作栏按钮 */
[data-theme="dark"] .category-op-bar .op-btn {
    color: #1a1a1a;
}

/* 深色模式 - 复选框标签 */
[data-theme="dark"] .checkbox-group label {
    color: var(--text-secondary);
}

/* 深色模式 - 站点字母背景 */
[data-theme="dark"] .site-item .site-letter {
    background: #444;
}

/* 深色模式 - 工具图标字母 */
[data-theme="dark"] .tool-icon-letter {
    background: #444;
}

/* 深色模式 - 时间区域（微光效果） */
[data-theme="dark"] .time-area {
    background: transparent;
}

[data-theme="dark"] .date {
    color: #888;
}

[data-theme="dark"] .time {
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

/* 深色模式 - 滚动条 */
[data-theme="dark"] ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #0a0a0a;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 4px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #3a3a3a;
}

/* 深色模式 - 导入导出区域 */
[data-theme="dark"] .import-export-section {
    border-color: var(--border-medium);
}

[data-theme="dark"] .import-export-section .import-hint {
    color: var(--text-tertiary);
}

/* 深色模式 - 默认按钮 */
[data-theme="dark"] .btn-default {
    background: var(--bg-input);
    border-color: var(--border-medium);
    color: var(--text-secondary);
}

[data-theme="dark"] .btn-default:hover {
    background: var(--border-light);
}

/* 深色模式 - 导入导出按钮 */
[data-theme="dark"] .btn-import-export {
    background: #2a2a2a;
    border-color: #555;
    color: #ccc;
}

[data-theme="dark"] .btn-import-export:hover {
    background: #333;
    border-color: #777;
    color: #fff;
}

/* ==================== 基础重置 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: stable;
}

body {
    background-color: var(--bg-body);
    min-height: 100vh;
    padding: 12px 0 0;
    color: var(--text-primary);
    overflow-x: hidden;
    width: 100%;
    min-width: 0;
    transition: background-color 0.3s ease;
}

/* ==================== 标题下拉菜单 ==================== */
.nav-title-wrapper {
    position: relative;
    display: inline-block;
}

.title-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    min-width: 140px;
    overflow: hidden;
    z-index: 102;
    display: none;
}

/* 下拉菜单箭头 */
.title-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    width: 10px;
    height: 10px;
    background: var(--bg-card);
    border-left: 1px solid var(--border-medium);
    border-top: 1px solid var(--border-medium);
    transform: translateX(-50%) rotate(45deg);
    z-index: -1;
}

/* ==================== 主题切换按钮 ==================== */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* ==================== 用户头部与下拉菜单 ==================== */
.user-header {
    position: absolute;
    top: 13px;
    right: 22px;
    font-size: 14px;
    color: var(--text-secondary);
    z-index: 100;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-md);
    transition: background-color 0.2s;
}

.user-menu:hover {
    background: var(--bg-hover);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    min-width: 180px;
    overflow: hidden;
    z-index: 102;
    display: none;
}

.dropdown-section {
    padding: 4px 0;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-light);
    margin: 4px 12px;
}

.dropdown-item {
    padding: 10px 16px;
    cursor: pointer;
    color: var(--text-primary);
    transition: all 0.2s;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--primary);
}

.dropdown-item.danger {
    color: var(--danger);
}

.dropdown-item.danger:hover {
    background: var(--danger-light);
    color: var(--danger);
}

.login-btn {
    color: var(--text-link);
    cursor: pointer;
    padding: 5px 10px;
    border-radius: var(--radius-md);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.login-btn:hover {
    background: var(--primary-alpha);
    text-decoration: underline;
}

/* ==================== 标题样式（可点击） ==================== */
.nav-title {
    font-size: 13px;
    color: var(--text-primary);
    padding: 4px 0;
    user-select: text;
}

.nav-title b {
    font-weight: bold;
    color: var(--text-secondary);
}

/* ==================== 主卡片 ==================== */
.main-card {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 4px 65px 49px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    min-width: 0;
    margin-left: auto;
    margin-right: auto;
    transition: background-color 0.3s ease;
}

/* 浅色模式 - 顶部柔和光照 */
.main-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: radial-gradient(
        ellipse 80% 100% at 50% 0%,
        rgba(255, 255, 255, 0.5) 0%,
        transparent 70%
    );
    pointer-events: none;
    opacity: 0.6;
    border-radius: var(--radius-lg);
}



/* ==================== 时间区域 ==================== */
.time-area {
    text-align: center;
    margin-bottom: 12px;
    margin-top: -4px;
}

.time-area .date {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 auto 5px;
    cursor: pointer;
    transition: color 0.2s;
    display: inline-block;
    width: auto;
    padding: 2px 6px;
    border-bottom: 1px dotted transparent;
}

.time-area .date:hover {
    color: var(--primary);
}

.time-area .time {
    font-size: 52px;
    font-weight: 300;
    color: var(--text-primary);
    line-height: 1.2;
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 2px;
    padding-left: 8px;
}

.time-area .time-main {
    font-size: 60px;
    font-weight: 300;
    color: var(--text-primary);
    letter-spacing: -2px;
    font-variant-numeric: tabular-nums;
}

.time-area .time-sec {
    font-size: 22px;
    font-weight: 300;
    color: var(--text-secondary);
    margin-left: 5px;
    font-variant-numeric: tabular-nums;
}

/* ==================== 搜索区域 ==================== */
.search-area {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
}

.search-area input {
    width: 450px;
    height: 45px;
    padding: 0 22px;
    border: 1px solid var(--border-input);
    border-right: none;
    border-radius: var(--radius-full) 0 0 var(--radius-full);
    font-size: 15px;
    outline: none;
    background: var(--bg-input);
    color: var(--text-primary);
    transition: all 0.2s;
}

.search-area input:focus {
    border-color: var(--primary);
    background: var(--bg-input-focus);
}

.search-area input::placeholder {
    color: var(--text-tertiary);
}

.search-area > button {
    height: 45px;
    padding: 0 30px;
    background: var(--primary);
    color: var(--text-white);
    border: none;
    border-radius: 0 var(--radius-full) var(--radius-full) 0;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
}

.search-area > button:hover {
    background: var(--primary-hover);
}

/* 翻译按钮：浮于 input 内部右侧，半透明纯文字
   显隐由 .is-shown 类控制（JS 监听 input 事件切换）
   注：上方 .search-area > button 已改为直接子选择器，不会命中此处的 button，无需 !important */
.search-input-wrap {
    position: relative;
    display: inline-flex;
}

.search-area .translate-btn {
    display: none;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    background: transparent;
    border: 1px solid var(--border-input);
    border-radius: 4px;
    color: var(--text-tertiary);
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.78;
    transition: opacity 0.2s;
    z-index: 11;
}

.search-area .translate-btn.is-shown {
    display: inline-flex;
}

.search-area .translate-btn:hover {
    opacity: 1;
}

/* input 有内容时腾出右内边距，避免长文本被翻译按钮遮挡 */
.search-area input.has-translate {
    padding-right: 65px;
}

/* 搜索下拉菜单 */
.search-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: calc(50% - 40px);
    transform: translateX(-50%);
    width: 435px;
    max-width: calc(100% - 200px);
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    z-index: 20;
    overflow: hidden;
    display: none;
}

.search-dropdown-header {
    padding: 6px 16px;
    font-size: 12px;
    color: var(--text-secondary);
    background: var(--bg-dropdown);
    border-bottom: 1px solid var(--border-light);
    font-weight: 500;
}

.search-dropdown-item {
    padding: 7px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-primary);
    transition: background 0.2s;
    position: relative;
}

.search-dropdown-item:hover {
    background: var(--bg-hover);
}

.search-dropdown-item .search-text {
    flex: 1;
}

.search-dropdown-item .search-delete {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-tertiary);
    font-size: 16px;
    line-height: 1;
    transition: all 0.2s;
    opacity: 0;
}

.search-dropdown-item:hover .search-delete {
    opacity: 1;
}

.search-dropdown-item .search-delete:hover {
    background: var(--danger-light);
    color: var(--danger);
}

.search-dropdown-footer {
    padding: 7px 16px;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    border-top: 1px solid var(--border-light);
    transition: all 0.2s;
}

.search-dropdown-footer:hover {
    color: var(--danger);
    background: var(--danger-light);
}

/* ==================== 导航头部 ==================== */
.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border-medium);
    min-height: 40px;
    position: relative;
    margin-top: 20px;
}

[data-theme="dark"] .nav-header {
    border-bottom: 1px dashed var(--border-dashed);
}

.nav-title-normal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.edit-mode .nav-title-normal {
    display: none;
}

.nav-meta {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 12px;
    color: var(--text-secondary);
}

.nav-meta span {
    position: relative;
}

/* 分隔符 */
.nav-meta-divider {
    color: var(--border-medium);
    padding: 0 8px;
    user-select: none;
}

/* 点赞区域 */
.like-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    user-select: none;
    padding: 2px 4px;
    transition: color 0.2s;
}

.like-wrapper:hover {
    color: var(--primary);
}

.like-label {
    user-select: none;
}

.nav-meta .custom-btn {
    color: var(--text-link);
    cursor: pointer;
    font-size: 12px;
    user-select: none;
}

.nav-meta .custom-btn:hover {
    color: var(--primary);
}

.edit-mode .custom-btn {
    display: none;
}

/* 编辑模式黄色条 */
.edit-bar-content {
    display: none;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    background: var(--edit-bar-bg);
    padding: 6px 14px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.08);
    box-sizing: border-box;
}

.edit-mode .edit-bar-content {
    display: flex;
}

.edit-nav-name {
    font-weight: 600;
    color: var(--edit-bar-text);
    font-size: 14px;
    letter-spacing: 0.3px;
}

.edit-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.edit-btn {
    cursor: pointer;
    color: var(--edit-bar-text);
    font-size: 12px;
    padding: 5px 14px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.9);
    border: 1px solid rgba(0,0,0,0.15);
    transition: all 0.2s;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    line-height: 1.4;
    user-select: none;
}

.edit-btn:hover {
    background: var(--bg-card);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

/* ==================== 导航列表 ==================== */
.nav-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.nav-category {
    display: flex;
    flex-direction: column;
    padding: 16px 12px 16px;
    margin: 0 -12px;
    width: calc(100% + 24px);
    border-bottom: 1px dashed var(--border-medium);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.nav-category:hover {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 102, 204, 0.04) 10%, 
        rgba(0, 102, 204, 0.04) 90%, 
        transparent 100%
    );
}

[data-theme="dark"] .nav-category {
    border-bottom: 1px dashed var(--border-dashed);
}

[data-theme="dark"] .nav-category:hover {
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.04) 10%, 
        rgba(255, 255, 255, 0.04) 90%, 
        transparent 100%
    );
}

.nav-category:last-child {
    border-bottom: none;
}

.category-row {
    display: flex;
    align-items: center;
    gap: 27px;
}

.category-name {
    display: inline-block;
    width: 64px;
    flex-shrink: 0;
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: default;
    transition: color 0.2s;
    user-select: none;
    white-space: nowrap;
    text-align: left;
}

/* 编辑模式下文字才有编辑光标 */
.category-name-text {
    cursor: pointer;
    display: inline-block;
}

.category-name:hover {
    color: var(--primary);
}

.category-sites {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    row-gap: 8px;
    flex: 1;
    align-items: center;
    justify-content: flex-start;
}

.site-wrapper {
    display: inline-block;
    position: relative;
    width: fit-content;
}

.site-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 15px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
    cursor: pointer;
    width: fit-content;
    max-width: 100%;
}

.site-item:hover {
    color: var(--primary);
}

.site-icon-wrapper {
    width: 19px;
    height: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.site-item .site-icon {
    width: 19px;
    height: 19px;
    border-radius: var(--radius-sm);
}

.site-item .site-letter {
    position: absolute;
    top: 0;
    left: 0;
    width: 19px;
    height: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: var(--text-white);
    background: var(--primary);
    border-radius: var(--radius-sm);
}

.edit-mode .site-item {
    user-select: none;
}

.edit-mode .site-item.active {
    background: var(--warning);
}

.edit-mode .add-site-btn-inline {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    color: var(--primary);
    cursor: pointer;
    padding: 3px 5px;
    border-radius: var(--radius-sm);
    margin-left: 5px;
    user-select: none;
}

.edit-mode .add-site-btn-inline:hover {
    background: var(--primary-alpha);
}

/* ==================== 分类操作栏 ==================== */
.category-op-bar {
    background: var(--category-op-bg);
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 5px 11px;
    font-size: 13px;
    margin-bottom: 9px;
    border-radius: var(--radius-sm);
}

.category-op-bar.show {
    display: flex;
}

.category-op-left, .category-op-right {
    display: flex;
    gap: 13px;
}

.category-op-bar .op-btn {
    cursor: pointer;
    color: var(--text-link);
    padding: 3px 6px;
    user-select: none;
}

.category-op-bar .op-btn:hover {
    text-decoration: underline;
}

.category-op-bar .op-btn.danger {
    color: var(--danger);
}

/* ==================== 添加按钮 ==================== */
.add-btn {
    font-size: 14px;
    color: var(--text-link);
    cursor: pointer;
    margin-top: 16px;
    display: none;
    width: fit-content;
    padding: 5px 0;
    user-select: none;
}

.add-btn:hover {
    text-decoration: underline;
}

.edit-mode .add-btn {
    display: block;
}

/* ==================== 工具箱折叠 - 整体框架 ==================== */
.toolbox-container {
    margin: 27px 0 0;
    border-radius: var(--radius-lg);
    border: 1px solid var(--toolbox-border);
}

.fold-btn {
    text-align: center;
    font-size: 13px;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 11px;
    background: var(--primary-light);
    transition: all 0.2s;
    user-select: none;
    border-bottom: 1px solid transparent;
}

.fold-btn:hover {
    color: var(--primary);
    background: var(--primary-alpha);
}

/* 展开状态下折叠按钮的底部边框 */
.toolbox-container:has(.fold-content.show) .fold-btn {
    border-bottom-color: var(--toolbox-border);
}

.fold-content {
    display: none;
    padding: 16px;
    background: var(--toolbox-bg);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.fold-content.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { 
        opacity: 0; 
        transform: translateY(-10px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

.fold-icon {
    display: inline-block;
    margin-right: 4px;
}

/* ==================== 工具箱Grid布局 - 固定6列×2行 ==================== */
.toolbox-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

.tool-item {
    position: relative;
    width: 100%;
    min-width: 0;
    height: 50px;
    background: var(--toolbox-item-bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    box-sizing: border-box;
}

.tool-item:hover {
    border-color: var(--primary);
    background: var(--toolbox-icon-bg-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.tool-item.editing {
    border-color: var(--primary);
    background: var(--primary-light);
    box-shadow: 0 0 0 2px var(--primary-alpha);
}

.tool-item.dragging {
    opacity: 0.5;
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
    z-index: 1000;
}

/* 工具箱按钮 */
.tool-delete-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 22px;
    height: 22px;
    background: var(--danger);
    color: var(--text-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 2px 6px rgba(248, 81, 73, 0.4);
    border: 2px solid var(--bg-card);
    line-height: 1;
    padding: 0;
    text-align: center;
}

.tool-delete-btn:hover {
    background: var(--danger-hover);
    transform: scale(1.15);
}

.tool-delete-btn::before {
    content: '×';
    display: block;
    line-height: 18px;
    height: 18px;
    width: 18px;
    text-align: center;
}

.tool-edit-btn {
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 10px;
    color: var(--primary);
    cursor: pointer;
    padding: 1px 5px;
    border-radius: var(--radius-sm);
    background: var(--primary-alpha);
    transition: all 0.2s;
    font-weight: 500;
    line-height: 1.2;
}

.tool-edit-btn:hover {
    background: var(--primary);
    color: var(--text-white);
}

.tool-item-main {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
    overflow: hidden;
    min-width: 0;
}

.tool-icon-wrap {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--toolbox-icon-bg);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.tool-item:hover .tool-icon-wrap {
    background: var(--toolbox-icon-bg-hover);
}

.tool-icon-img {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.tool-icon-letter {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-white);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-md);
}

.tool-name {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

.tool-item:hover .tool-name {
    color: var(--primary);
}

.tool-item-add {
    border: 2px dashed var(--border-dark);
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-tertiary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.tool-item-add:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.add-icon {
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
}

/* ==================== 版权 ==================== */
.copyright {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-top: 16px;
    padding-bottom: 16px;
}

/* ==================== 弹窗通用 ==================== */
.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-mask);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-card {
    width: 100%;
    max-width: 518px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 27px;
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.modal-title {
    font-size: 15px;
    font-weight: bold;
    color: var(--text-primary);
}

.modal-close {
    font-size: 26px;
    cursor: pointer;
    color: var(--text-secondary);
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.modal-close:hover {
    color: var(--danger);
    background: var(--bg-hover);
}

/* ==================== 表单元素 ==================== */
.form-group {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 11px;
}

.form-label {
    width: 86px;
    font-size: 14px;
    color: var(--text-secondary);
    text-align: right;
    flex-shrink: 0;
}

.form-label .required {
    color: var(--danger);
}

.form-input, .form-select, .form-textarea {
    flex: 1;
    height: 43px;
    padding: 0 13px;
    border: 1px solid var(--border-input);
    border-radius: var(--radius-md);
    font-size: 14px;
    outline: none;
    background: var(--bg-input);
    color: var(--text-primary);
    transition: all 0.2s;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--primary);
    background: var(--bg-input-focus);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-tertiary);
}

.form-textarea {
    height: 86px;
    padding: 11px 13px;
    resize: vertical;
    line-height: 1.5;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 97px;
    margin-bottom: 11px;
}

.checkbox-group input {
    width: 15px;
    height: 15px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-group label {
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

/* 表单错误信息：后端 4xx 路径返回 <div class="form-error">{msg}</div>
   覆盖 auth/data/admin 全部表单出错点；深浅色由 --danger / --danger-light 自动适配 */
.form-error {
    margin: 12px 0;
    padding: 10px 14px;
    background: var(--danger-light);
    color: var(--danger);
    border-left: 3px solid var(--danger);
    border-radius: var(--radius-md);
    font-size: 13px;
    line-height: 1.5;
}

.form-submit {
    text-align: center;
    margin-top: 27px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-submit button {
    padding: 11px 38px;
    border: none;
    border-radius: var(--radius-md);
    background: var(--primary);
    color: var(--text-white);
    cursor: pointer;
    font-size: 15px;
    transition: all 0.2s;
}

.form-submit button:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.form-submit .btn-default {
    background: var(--bg-input);
    color: var(--text-secondary);
    border: 1px solid var(--border-input);
    margin-left: 10px;
}

.form-submit .btn-default:hover {
    background: var(--border-light);
}

/* 设置弹窗特殊样式 - 极简版 */
.setting-modal .form-group {
    flex-direction: row;
    align-items: center;
    gap: 11px;
}

.setting-modal .form-label {
    width: 140px;
    text-align: right;
    font-weight: normal;
    font-size: 14px;
}

.setting-modal .form-input,
.setting-modal .form-select {
    flex: 1;
    height: 43px;
    min-height: 43px;
    font-size: 14px;
}

/* 导入导出区域 - 居中优化 */
.import-export-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed var(--border-light);
    text-align: center;
}

.import-export-section .btn-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 0;
}

/* 导入导出按钮 - 清晰边框风格 */
.btn-import-export {
    height: 36px;
    padding: 0 20px;
    font-size: 13px;
    line-height: 34px;
    background: #f5f5f5;
    color: #333;
    border: 1px solid #bbb;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.15s ease;
}

.btn-import-export:hover {
    background: #fff;
    border-color: #999;
}

.import-export-section .import-hint {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 10px;
    line-height: 1.5;
    text-align: center;
}

/* 设置页面保存按钮居中（无取消按钮） */
.form-submit.setting-submit {
    margin-top: 28px;
    justify-content: center;
}

.btn {
    height: 43px;
    padding: 0 26px;
    border-radius: var(--radius-md);
    font-size: 15px;
    cursor: pointer;
    border: none;
    line-height: 43px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-default {
    background: var(--bg-input);
    color: var(--text-secondary);
    border: 1px solid var(--border-input);
}

.btn-default:hover {
    background: var(--border-light);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background: var(--primary);
    color: var(--text-white);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

/* 危险按钮（admin 重置密码"确认重置" / 主页删除类按钮）
   与 .btn-primary 对称结构；深色模式 --danger/--danger-hover 自动适配 */
.btn-danger {
    background: var(--danger);
    color: var(--text-white);
}

.btn-danger:hover {
    background: var(--danger-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.3);
}

/* ==================== 天气组件 ==================== */
#weatherWidget {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

#weatherWidget:hover {
    color: var(--primary);
}

.weather-icon {
    font-size: 16px;
}

.weather-temp {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 12px;
}

.weather-text {
    color: var(--text-tertiary);
    font-size: 12px;
}

/* ==================== 大屏PC优化 (>1200px) - 整体等比例放大 ×1.111 ==================== */
@media screen and (min-width: 1200px) {
    /* ----- 主卡片 ----- */
    .main-card {
        max-width: 1200px;
        padding: 56px 72px 67px;
    }

    /* ----- 时间区 ----- */
    .time-area {
        margin-bottom: 13px;
    }
    .time-area .date {
        font-size: 16px;
        margin: 0 auto 6px;
        padding: 2px 7px;
    }
    .time-area .time {
        font-size: 58px;
        padding-left: 9px;
    }
    .time-area .time-main {
        font-size: 67px;
    }
    .time-area .time-sec {
        font-size: 24px;
        margin-left: 6px;
    }

    /* ----- 搜索区 ----- */
    .search-area {
        margin-bottom: 22px;
    }
    .search-area input {
        width: 578px;
        height: 50px;
        padding: 0 24px;
        font-size: 17px;
    }
    .search-area > button {
        height: 50px;
        padding: 0 33px;
        font-size: 17px;
    }

    /* ----- 搜索下拉 ----- */
    .search-dropdown {
        width: 561px;
        top: calc(100% + 6px);
        left: calc(50% - 44px);
        max-width: calc(100% - 222px);
    }
    .search-dropdown-header {
        padding: 7px 18px;
        font-size: 13px;
    }
    .search-dropdown-item {
        padding: 8px 18px;
        gap: 11px;
        font-size: 16px;
    }
    .search-dropdown-item .search-delete {
        width: 20px;
        height: 20px;
        font-size: 18px;
    }
    .search-dropdown-footer {
        padding: 8px 18px;
        font-size: 14px;
    }

    /* ----- 导航头 ----- */
    .nav-header {
        padding-bottom: 13px;
        min-height: 44px;
        margin-top: 22px;
    }
    .nav-meta {
        font-size: 13px;
    }
    .nav-meta-divider {
        padding: 0 9px;
    }
    .nav-meta .custom-btn {
        font-size: 13px;
    }

    /* ----- 编辑条 ----- */
    .edit-bar-content {
        padding: 7px 16px;
    }
    .edit-nav-name {
        font-size: 16px;
    }
    .edit-actions {
        gap: 9px;
    }
    .edit-btn {
        font-size: 13px;
        padding: 6px 16px;
    }

    /* ----- 导航列表 ----- */
    .nav-category {
        padding: 18px 13px 18px;
        margin: 0 -13px;
        width: calc(100% + 27px);
    }
    .category-row {
        gap: 30px;
    }
    .category-name {
        width: 71px;
        font-size: 17px;
    }
    .category-sites {
        gap: 21px;
        row-gap: 9px;
    }
    .site-item {
        gap: 6px;
        font-size: 17px;
    }
    .site-icon-wrapper {
        width: 21px;
        height: 21px;
    }
    .site-item .site-icon {
        width: 21px;
        height: 21px;
    }
    .site-item .site-letter {
        width: 21px;
        height: 21px;
        font-size: 13px;
    }
    .edit-mode .add-site-btn-inline {
        font-size: 16px;
        padding: 3px 6px;
        margin-left: 6px;
    }
    .category-op-bar {
        padding: 6px 12px;
        font-size: 14px;
        margin-bottom: 10px;
    }
    .category-op-left,
    .category-op-right {
        gap: 14px;
    }
    .category-op-bar .op-btn {
        padding: 3px 7px;
    }

    /* ----- 添加按钮 ----- */
    .add-btn {
        font-size: 16px;
        margin-top: 18px;
        padding: 6px 0;
    }

    /* ----- 工具箱 ----- */
    .toolbox-container {
        margin: 30px 0 0;
    }
    .fold-btn {
        font-size: 14px;
        padding: 12px;
    }
    .fold-content {
        padding: 18px;
    }
    .toolbox-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 13px;
    }
    .tool-item {
        height: 56px;
        padding: 0 13px;
        gap: 11px;
    }
    .tool-delete-btn {
        top: -11px;
        right: -11px;
        width: 24px;
        height: 24px;
        font-size: 16px;
    }
    .tool-delete-btn::before {
        line-height: 20px;
        height: 20px;
        width: 20px;
    }
    .tool-edit-btn {
        font-size: 11px;
        padding: 1px 6px;
    }
    .tool-item-main {
        gap: 11px;
    }
    .tool-icon-wrap {
        width: 31px;
        height: 31px;
    }
    .tool-icon-img {
        width: 22px;
        height: 22px;
    }
    .tool-icon-letter {
        width: 31px;
        height: 31px;
        font-size: 16px;
    }
    .tool-name {
        font-size: 16px;
    }
    .tool-item-add {
        gap: 9px;
        font-size: 16px;
    }
    .add-icon {
        font-size: 22px;
    }

    /* ----- 天气 ----- */
    .weather-icon {
        font-size: 18px;
    }
    .weather-temp {
        font-size: 13px;
    }
    .weather-text {
        font-size: 13px;
    }
}

/* ==================== 中屏PC优化 (992px-1199px) ==================== */
@media screen and (max-width: 1199px) and (min-width: 993px) {
    .main-card {
        max-width: 1080px;
        padding: 40px 50px 45px;
    }
    
    .toolbox-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* ==================== 小屏PC/平板 (768px-992px) ==================== */
@media screen and (max-width: 992px) {
    .main-card {
        max-width: 90%;
        padding: 35px 40px 40px;
    }
    
    .search-area input {
        width: 350px;
    }
    
    .search-dropdown {
        width: 335px;
        left: calc(50% - 35px);
    }
    
    .toolbox-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
}

/* ==================== 平板/大手机 (576px-767px) ==================== */
@media screen and (max-width: 767px) {
    html {
        overflow-y: auto;
        scrollbar-gutter: stable;
    }
    
    body {
        padding: 8px;
    }
    
    .main-card {
        padding: 30px 24px 35px;
        max-width: 100%;
        border-radius: var(--radius-lg);
    }
    
    .category-name {
        width: 100%;
        font-size: 14px;
        text-align: center;
        padding: 4px 0;
    }
    
    .nav-category {
        padding: 12px 10px 12px;
        margin: 0 -10px;
        width: calc(100% + 20px);
    }
    
    .site-icon-wrapper {
        width: 22px;
        height: 22px;
    }
    
    .site-item {
        font-size: 16px;
    }
    
    .site-item .site-icon {
        width: 22px;
        height: 22px;
    }
    
    .site-item .site-letter {
        width: 22px;
        height: 22px;
        font-size: 13px;
    }
    
    .time-area .time-main {
        font-size: 68px;
    }
    
    .time-area .time-sec {
        font-size: 26px;
    }
    
    .time-area .date {
        font-size: 17px;
    }
    
    .search-area input {
        width: 100%;
        max-width: 280px;
    }
    
    .search-dropdown {
        width: 100%;
        max-width: 260px;
        left: calc(50% - 20px);
    }
    
    .search-area > button {
        height: 42px;
        padding: 0 20px;
    }
    
    .user-header {
        position: relative;
        top: auto;
        right: auto;
        justify-content: flex-end;
        padding: 5px 0 15px;
        font-size: 13px;
    }
    
    .user-menu {
        width: 100%;
        justify-content: space-between;
        gap: 8px;
    }
    
    .user-dropdown {
        right: 0;
    }
    
    .toolbox-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .tool-item {
        height: 48px;
        padding: 0 12px;
    }
    
    .weather-widget {
        position: static;
        margin: 10px auto;
        justify-content: center;
        width: fit-content;
    }
    
    .nav-header {
        margin-top: 25px;
        margin-bottom: 0;
        padding-bottom: 8px;
    }
    
    .nav-category {
        padding: 10px 8px 10px;
        margin: 0 -8px;
        width: calc(100% + 16px);
    }
    
    .nav-title-normal {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
    
    .nav-meta {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
    
    .nav-meta-divider {
        padding: 0 8px;
    }
    
    .category-row {
        gap: 15px;
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
        font-size: 18px;
        bottom: 15px;
        right: 15px;
    }
}

/* ==================== 手机竖屏 (<576px) ==================== */
@media screen and (max-width: 575px) {
    body {
        padding: 0;
    }
    
    .main-card {
        padding: 20px 16px 25px;
        border-radius: 0;
        max-width: 100%;
    }
    
    .time-area {
        margin-bottom: 20px;
    }
    
    .time-area .time-main {
        font-size: 64px;
        letter-spacing: -1px;
    }
    
    .time-area .time-sec {
        font-size: 24px;
    }
    
    .time-area .date {
        font-size: 16px;
    }
    
    .search-area {
        padding: 0;
        margin-bottom: 15px;
    }
    
    .search-area input {
        height: 42px;
        font-size: 16px;
        padding: 0 16px;
    }
    
    .search-area > button {
        height: 42px;
        padding: 0 16px;
        font-size: 14px;
    }
    
    .search-dropdown {
        left: 50%;
        transform: translateX(-50%);
        max-width: calc(100% - 90px);
        border-radius: var(--radius-md);
    }
    
    .nav-header {
        flex-direction: column;
        gap: 10px;
        align-items: center;
        margin-top: 15px;
        margin-bottom: 0;
        padding-bottom: 6px;
    }
    
    .nav-category {
        padding: 8px 6px 8px;
        margin: 0 -6px;
        width: calc(100% + 12px);
    }
    
    .nav-title-normal {
        flex-direction: column;
        gap: 8px;
        width: 100%;
        align-items: center;
    }
    
    .nav-title {
        font-size: 14px;
    }
    
    .nav-meta {
        width: 100%;
        justify-content: center;
        font-size: 14px;
    }
    
    #weatherWidget {
        font-size: 14px;
    }
    
    .nav-meta .custom-btn {
        font-size: 14px;
    }
    
    .nav-meta-divider {
        padding: 0 8px;
    }
    
    .category-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .category-name {
        width: 100%;
        font-size: 15px;
        text-align: center;
        padding: 5px 0;
    }
    
    .nav-category {
        padding: 10px 8px 10px;
        margin: 0 -8px;
        width: calc(100% + 16px);
    }
    
    .category-sites {
        padding-left: 5px;
        gap: 14px;
        row-gap: 4px;
        width: 100%;
        justify-content: flex-start;
    }
    
    .site-icon-wrapper {
        width: 22px;
        height: 22px;
    }
    
    .site-item {
        font-size: 16px;
    }
    
    .site-item .site-icon {
        width: 22px;
        height: 22px;
    }
    
    .site-item .site-letter {
        width: 22px;
        height: 22px;
        font-size: 13px;
    }
    
    .category-sites {
        gap: 12px;
        row-gap: 3px;
        width: 100%;
        justify-content: flex-start;
    }
    
    .user-menu {
        padding: 5px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .toolbox-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .tool-item {
        height: 44px;
        padding: 0 10px;
    }
    
    .tool-delete-btn {
        width: 20px;
        height: 20px;
        font-size: 12px;
        top: -8px;
        right: -8px;
    }
    
    .tool-edit-btn {
        font-size: 9px;
        padding: 1px 4px;
    }
    
    .tool-icon-wrap {
        width: 26px;
        height: 26px;
    }
    
    .tool-icon-img {
        width: 18px;
        height: 18px;
    }
    
    .tool-name {
        font-size: 14px;
    }
    
    .modal-card {
        max-width: calc(100% - 32px);
        width: calc(100% - 32px);
        padding: 20px;
        max-height: 80vh;
    }
    
    .modal-card .form-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 14px;
    }
    
    .modal-card .form-label {
        width: auto;
        text-align: left;
    }
    
    .modal-card .form-input,
    .modal-card .form-select,
    .modal-card .form-textarea {
        width: 100%;
        font-size: 16px;
        padding: 10px 12px;
    }
    
    .checkbox-group {
        margin-left: 0;
    }
    
    .form-submit {
        margin-top: 20px;
    }
    
    .form-submit button {
        padding: 12px 24px;
        font-size: 15px;
    }
    
    .edit-bar-content {
        padding: 8px 12px;
        flex-direction: row;
        gap: 10px;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .edit-nav-name {
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
        min-width: 0;
    }
    
    .edit-actions {
        gap: 8px;
        flex-shrink: 0;
        display: flex;
    }
    
    .edit-btn {
        padding: 0 14px;
        font-size: 13px;
        height: 28px;
        min-width: 56px;
        white-space: nowrap;
        flex-shrink: 0;
        line-height: 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .category-op-bar {
        flex-direction: column;
        gap: 8px;
        padding: 8px;
    }
    
    .category-op-left,
    .category-op-right {
        width: 100%;
        justify-content: space-between;
        gap: 4px;
        flex-wrap: wrap;
    }
    
    .category-op-bar .op-btn {
        font-size: 12px;
        padding: 4px 6px;
    }
    
    .toolbox-container {
        margin: 20px 0 0;
    }
    
    .fold-btn {
        padding: 10px;
        font-size: 13px;
    }
    
    .fold-content {
        padding: 12px;
    }
    
    .copyright {
        font-size: 11px;
        margin-top: 16px;
        padding-bottom: 24px;
    }
    
    .theme-toggle {
        width: 44px;
        height: 44px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
        box-shadow: var(--shadow-lg);
    }
    
    .import-export-section .btn-group {
        flex-direction: row;
        gap: 10px;
    }
    
    .btn {
        height: 40px;
        padding: 0 16px;
        font-size: 14px;
    }
    
    .btn-import-export {
        height: 40px;
        padding: 0 16px;
        font-size: 14px;
        line-height: 38px;
        flex: 1;
    }
}

/* ==================== 超小屏手机 (<400px) ==================== */
@media screen and (max-width: 399px) {
    .nav-header {
        padding-bottom: 4px;
    }
    
    .nav-category {
        padding: 6px 4px 6px;
        margin: 0 -4px;
        width: calc(100% + 8px);
    }
    
    .time-area .time-main {
        font-size: 58px;
    }
    
    .time-area .time-sec {
        font-size: 24px;
    }
    
    .time-area .date {
        font-size: 16px;
    }
    
    .user-header .brand-text {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .search-area input {
        font-size: 16px;
    }
    
    .search-area > button {
        padding: 0 12px;
        font-size: 13px;
    }
    
    .category-name {
        font-size: 14px;
        text-align: center;
        padding-left: 0;
        border-left: none;
        padding: 3px 0;
    }
    
    .site-icon-wrapper {
        width: 22px;
        height: 22px;
    }
    
    .site-item {
        font-size: 16px;
    }
    
    .site-item .site-icon {
        width: 22px;
        height: 22px;
    }
    
    .site-item .site-letter {
        width: 22px;
        height: 22px;
        font-size: 13px;
    }
    
    .category-sites {
        gap: 10px;
        row-gap: 2px;
        width: 100%;
        justify-content: flex-start;
    }
    
    .toolbox-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    .tool-item {
        height: 40px;
        padding: 0 8px;
    }
    
    .tool-icon-wrap {
        width: 24px;
        height: 24px;
    }
    
    .tool-icon-img {
        width: 16px;
        height: 16px;
    }
    
    .tool-name {
        font-size: 13px;
    }
    
    .nav-meta {
        font-size: 13px;
    }
    
    #weatherWidget {
        font-size: 13px;
    }
    
    .nav-meta .custom-btn {
        font-size: 13px;
    }
    
    .nav-meta-divider {
        padding: 0 6px;
    }
    
    .edit-btn {
        padding: 0 12px;
        font-size: 12px;
        height: 26px;
        min-width: 52px;
        white-space: nowrap;
        line-height: 26px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* ==================== 触控设备优化 (指针设备) ==================== */
@media (pointer: coarse) {
    .site-item {
        min-height: 44px;
    }
    
    .tool-item {
        min-height: 54px;
    }
    
    .edit-btn {
        height: 32px;
        min-width: 60px;
        white-space: nowrap;
        padding: 0 16px;
        line-height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .category-op-bar .op-btn {
        min-height: 36px;
        padding: 6px 10px;
    }
    
    .search-dropdown-item {
        min-height: 48px;
        padding: 12px 16px;
    }
    
    .search-dropdown-item .search-delete {
        opacity: 1;
        width: 24px;
        height: 24px;
        font-size: 18px;
    }
    
    .dropdown-item {
        min-height: 48px;
        padding: 12px 16px;
    }
    
    .form-input, .form-select, .form-textarea {
        min-height: 48px;
    }
    
    .form-submit button {
        min-height: 48px;
    }
    
    .theme-toggle {
        min-height: 44px;
        min-width: 44px;
    }
}

/* ==================== 横屏手机优化 ==================== */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .modal-card {
        max-height: 85vh;
        padding: 16px 20px;
    }
    
    .modal-header {
        margin-bottom: 12px;
    }
    
    .form-group {
        margin-bottom: 10px;
    }
    
    .time-area {
        margin-bottom: 15px;
    }
    
    .time-area .time-main {
        font-size: 54px;
    }
    
    .time-area .time-sec {
        font-size: 24px;
    }
    
    .time-area .date {
        font-size: 16px;
    }
    
    .main-card {
        padding-top: 20px;
    }
}

/* ==================== 打印样式 ==================== */
@media print {
    .user-header,
    .search-area,
    .fold-btn,
    .fold-content,
    .theme-toggle,
    .nav-meta .custom-btn {
        display: none !important;
    }
    
    body {
        background: white;
        padding: 0;
    }
    
    .main-card {
        box-shadow: none;
        border: 1px solid #ddd;
        max-width: 100%;
    }
    
    .nav-category {
        break-inside: avoid;
    }
}

/* ==================== 减少动画偏好 ==================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==================== 高对比度模式 ==================== */
@media (prefers-contrast: high) {
    :root {
        --primary: #0052a3;
        --border-dark: #000;
        --text-primary: #000;
        --text-secondary: #333;
    }
    
}

/* ==================== 系统主题自动适配（由 JS 处理）==================== */
/* 注意：跟随系统模式现在由 ThemeManager 自动设置 data-theme="dark/light" */
/* 不再需要 @media (prefers-color-scheme: dark) 的重复代码 */

/* ==================== Toast 通知系统（v7.1 已迁移到 JussToast 标杆）==================== */
/* 原 .toast-container / .toast-item / .toast-icon / .toast-content / .toast-title /
   .toast-message + toastSlideIn/Out 动画 全部由 /static/jussplugin/JussToast/JussToast.css 提供。
   ui.js 内 Toast.warning(msg, title) 调用通过转发壳调 JussToast.warning({msg})，13 处零改。 */

/* ==================== 点赞特效系统（成熟自然风格）==================== */
.like-effect-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

/* ==================== 页面加载入场动画 ==================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* JS 填充完数据后加 .loaded 类，整体淡入，不用 transform，不影响层叠关系 */
.loaded .main-card,
.loaded .copyright {
    animation: fadeIn 0.5s ease-out both;
}


/* 特效1：经典爱心上浮 - Twitter/X 风格 */
.like-particle-heart {
    position: absolute;
    font-size: 32px;
    color: #ff4444;
    text-shadow: 0 2px 4px rgba(200,0,0,0.4);
    animation: heartFloat 1s ease-out forwards;
}

@keyframes heartFloat {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0.3);
    }
    20% {
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, calc(-50% - 60px)) scale(0.8);
    }
}

/* 特效2：爱心左右摇摆上浮 - 像气球飘走 */
.like-particle-sway {
    position: absolute;
    font-size: 28px;
    color: #ff4444;
    text-shadow: 0 2px 4px rgba(200,0,0,0.4);
    animation: heartSwayUp 1.4s ease-out forwards;
}

@keyframes heartSwayUp {
    0% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(0.7);
    }
    20% {
        transform: translate(calc(-50% - var(--sway-amp) * 0.3), calc(-50% - 15px)) scale(1);
    }
    40% {
        transform: translate(calc(-50% + var(--sway-amp) * 0.6), calc(-50% - 35px)) scale(1);
    }
    60% {
        transform: translate(calc(-50% - var(--sway-amp) * 0.8), calc(-50% - 55px)) scale(0.9);
    }
    80% {
        opacity: 0.5;
        transform: translate(calc(-50% + var(--sway-amp) * 0.4), calc(-50% - 75px)) scale(0.7);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, calc(-50% - 90px)) scale(0.5);
    }
}

/* 特效3：轻柔粒子散开 - 小红书/抖音 风格 */
.like-particle-dust {
    position: absolute;
    animation: dustScatter 0.9s ease-out forwards;
    text-shadow: 0 0 6px currentColor;
    pointer-events: none;
    z-index: 9999;
}

@keyframes dustScatter {
    0% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0.3);
    }
}

/* ==================== 24小时感谢弹窗 ==================== */
.like-thanks-modal .modal-card {
    max-width: 360px;
    background: linear-gradient(160deg, #fff 0%, #faf8f5 50%, #f5f0eb 100%);
    border: none;
    border-radius: 20px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.04);
}

.like-thanks-content {
    padding: 36px 32px 32px;
    text-align: center;
    position: relative;
}

.like-thanks-content::before {
    content: '';
    position: absolute;
    top: -40%; left: -40%; width: 180%; height: 180%;
    background: radial-gradient(circle at 50% 30%, rgba(255,140,100,0.07) 0%, transparent 60%);
    pointer-events: none;
}

.like-heart-animation {
    font-size: 52px;
    margin-bottom: 16px;
    animation: heartBeat 1.2s ease-in-out infinite;
    display: inline-block;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.12); }
    28% { transform: scale(1); }
    42% { transform: scale(1.12); }
    70% { transform: scale(1); }
}

.like-thanks-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    position: relative; z-index: 1;
    letter-spacing: -0.3px;
}

.like-thanks-text {
    font-size: 13px;
    color: var(--text-tertiary);
    line-height: 1.6;
    margin-bottom: 22px;
    position: relative; z-index: 1;
}

.like-thanks-stats {
    display: inline-flex;
    align-items: center;
    gap: 0;
    background: rgba(0,0,0,0.03);
    padding: 10px 22px;
    border-radius: 100px;
    margin-bottom: 22px;
    position: relative; z-index: 1;
    border: 1px solid rgba(0,0,0,0.04);
}

.stats-year {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-tertiary);
    letter-spacing: 0.5px;
}

.stats-divider {
    margin: 0 8px;
    color: var(--text-tertiary);
    font-size: 13px;
    opacity: 0.5;
}

.stats-number {
    font-size: 26px;
    font-weight: 800;
    color: #e8653a;
    letter-spacing: -1px;
    line-height: 1;
    margin-right: 4px;
}

.stats-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.like-thanks-btn {
    background: linear-gradient(135deg, #333 0%, #1a1a1a 100%);
    color: #fff;
    border: none;
    padding: 11px 32px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    position: relative; z-index: 1;
    letter-spacing: 0.3px;
}

.like-thanks-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* 深色模式 */
[data-theme="dark"] .like-thanks-modal .modal-card {
    background: linear-gradient(160deg, #1e1e1e 0%, #252220 50%, #2a2520 100%);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.04);
}

[data-theme="dark"] .like-thanks-content::before {
    background: radial-gradient(circle at 50% 30%, rgba(255,140,80,0.06) 0%, transparent 60%);
}

[data-theme="dark"] .like-thanks-title { color: #f0ebe6; }
[data-theme="dark"] .like-thanks-text { color: #7a7570; }

[data-theme="dark"] .like-thanks-stats {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.06);
}

[data-theme="dark"] .stats-number { color: #e8855a; }
[data-theme="dark"] .stats-year { color: #6a6560; }

[data-theme="dark"] .like-thanks-btn {
    background: linear-gradient(135deg, #e8e0d8 0%, #d0c8c0 100%);
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

[data-theme="dark"] .like-thanks-btn:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* ==================== 确认弹框（替代系统 confirm）==================== */
.confirm-modal .modal-card {
    max-width: 360px;
    text-align: center;
    padding: 32px;
}

.confirm-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.confirm-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.confirm-message {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-btn {
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.confirm-btn-primary {
    background: var(--primary);
    color: white;
}

.confirm-btn-primary:hover {
    opacity: 0.9;
}

.confirm-btn-default {
    background: var(--bg-input);
    color: var(--text-secondary);
    border: 1px solid var(--border-medium);
}

.confirm-btn-default:hover {
    background: var(--bg-hover);
}

/* ==================== 键盘焦点可见性（仅按钮系，鼠标用户无感）====================
   :focus-visible 仅在键盘 tab 进入时触发，鼠标点击 button 不显示 outline。
   本节有意只覆盖按钮类元素（button/.btn/.a-btn/.modal-close/.theme-toggle），
   不动 input/textarea/select 的 :focus 视觉，保持鼠标用户的输入框视觉与现有完全一致。 */
button:focus-visible,
.btn:focus-visible,
.a-btn:focus-visible,
.modal-close:focus-visible,
.theme-toggle:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
