/* ==================== CSS 变量定义 ==================== */
:root {
    /* 颜色变量 - 淡色系粉蓝渐变 */
    --bg-primary: #f0f8ff;
    --bg-secondary: #e8f4fc;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-card-hover: rgba(255, 255, 255, 0.95);
    
    /* 文字颜色 */
    --text-primary: #4a5568;
    --text-secondary: #718096;
    --text-muted: #a0aec0;
    
    /* 渐变色 - 淡色系粉蓝渐变 */
    --gradient-1: linear-gradient(135deg, #ffecd2 0%, #fcb69f 50%, #a1c4fd 100%);
    --gradient-2: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #a18cd1 100%);
    --gradient-3: linear-gradient(135deg, #89f7fe 0%, #66a6ff 50%, #a18cd1 100%);
    --gradient-4: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    --gradient-5: linear-gradient(135deg, #a1c4fd 0%, #c2e9fb 100%);
    --gradient-6: linear-gradient(135deg, #fecfef 0%, #a18cd1 100%);
    
    /* 强调色 */
    --accent-primary: #667eea;
    --accent-secondary: #a18cd1;
    
    /* 边框和阴影 */
    --border-color: rgba(161, 196, 253, 0.3);
    --shadow-card: 0 8px 32px rgba(161, 196, 253, 0.15);
    --shadow-card-hover: 0 12px 40px rgba(161, 196, 253, 0.25);
    
    /* 字体 */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* 间距 */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    
    /* 圆角 - 更圆润的二次元风格 */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    /* 过渡 */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==================== 暗色模式配色 ==================== */
[data-theme="dark"] {
    /* 颜色变量 - 柔和深色系 */
    --bg-primary: #1e1e2e;
    --bg-secondary: #252535;
    --bg-card: rgba(40, 40, 55, 0.6);
    --bg-card-hover: rgba(50, 50, 65, 0.7);
    
    /* 文字颜色 */
    --text-primary: #d0d0d0;
    --text-secondary: #a0a0a0;
    --text-muted: #707070;
    
    /* 渐变色 - 降低饱和度和亮度的柔和渐变 */
    --gradient-1: linear-gradient(135deg, #5a6ea8 0%, #6a5a90 50%, #9a8ab0 100%);
    --gradient-2: linear-gradient(135deg, #8a7ab0 0%, #ba9ab0 50%, #8a8ac0 100%);
    --gradient-3: linear-gradient(135deg, #5a9ab0 0%, #6aaab0 50%, #8a7ab0 100%);
    --gradient-4: linear-gradient(135deg, #5a6ea8 0%, #6a5a90 100%);
    --gradient-5: linear-gradient(135deg, #5a9ab0 0%, #6aaab0 100%);
    --gradient-6: linear-gradient(135deg, #ba9ab0 0%, #8a8ac0 100%);
    
    /* 强调色 - 柔和化 */
    --accent-primary: #7a6eb8;
    --accent-secondary: #a08eb8;
    
    /* 边框和阴影 - 降低亮度 */
    --border-color: rgba(139, 92, 246, 0.2);
    --shadow-card: 0 8px 32px rgba(139, 92, 246, 0.1);
    --shadow-card-hover: 0 12px 40px rgba(139, 92, 246, 0.15);
}

/* 暗色模式下的背景 */
[data-theme="dark"] .background {
    background: linear-gradient(180deg, #1a1a24 0%, #1e1e2e 50%, #242434 100%);
}

[data-theme="dark"] .orb-1 {
    background: linear-gradient(135deg, #5a6ea8 0%, #6a5a90 100%);
    opacity: 0.3;
}

[data-theme="dark"] .orb-2 {
    background: linear-gradient(135deg, #8a7ab0 0%, #9a8ab0 100%);
    opacity: 0.3;
}

[data-theme="dark"] .orb-3 {
    background: linear-gradient(135deg, #5a9ab0 0%, #6a9ab0 100%);
    opacity: 0.3;
}

/* 暗色模式下的粒子 */
[data-theme="dark"] .particle {
    background: linear-gradient(135deg, #5a6ea8 0%, #8a7ab0 100%);
    opacity: 0.12;
}

@keyframes pulse-orb {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
        box-shadow: 0 0 60px rgba(161, 196, 253, 0.3);
    }
    50% {
        transform: scale(1.15);
        opacity: 0.65;
        box-shadow: 0 0 80px rgba(161, 196, 253, 0.5);
    }
}

[data-theme="dark"] @keyframes pulse-orb {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
        box-shadow: 0 0 40px rgba(139, 92, 246, 0.2);
    }
    50% {
        transform: scale(1.1);
        opacity: 0.4;
        box-shadow: 0 0 50px rgba(139, 92, 246, 0.3);
    }
}

/* 暗色模式下的流光层 */
[data-theme="dark"] .wave-layer {
    background: linear-gradient(120deg, 
        transparent 0%, 
        rgba(90, 110, 168, 0.05) 25%, 
        rgba(138, 122, 176, 0.05) 50%, 
        rgba(90, 154, 176, 0.05) 75%, 
        transparent 100%);
    opacity: 0.3;
}

[data-theme="dark"] .navbar {
    background: rgba(30, 30, 46, 0.9);
    box-shadow: 0 2px 20px rgba(100, 80, 140, 0.1);
}

[data-theme="dark"] .categories-container {
    background: rgba(30, 30, 46, 0.9);
}

/* 暗色模式下的搜索框 */
[data-theme="dark"] .search-box input {
    background: rgba(40, 40, 55, 0.8);
    border-color: rgba(122, 110, 184, 0.3);
    color: var(--text-primary);
}

[data-theme="dark"] .search-box input:hover {
    border-color: rgba(122, 110, 184, 0.5);
    box-shadow: 0 4px 20px rgba(100, 80, 140, 0.15);
}

[data-theme="dark"] .search-box input:focus {
    border-color: var(--accent-primary);
    background: rgba(40, 40, 55, 0.95);
    box-shadow: 0 5px 25px rgba(100, 80, 140, 0.2);
}

[data-theme="dark"] .search-box input::placeholder {
    color: var(--text-muted);
}

/* 暗色模式下的搜索结果 */
[data-theme="dark"] .search-results {
    background: rgba(30, 30, 46, 0.98);
    border-color: rgba(122, 110, 184, 0.3);
}

[data-theme="dark"] .search-result-item {
    background: rgba(40, 40, 55, 0.5);
}

[data-theme="dark"] .search-result-item:hover {
    background: rgba(50, 50, 65, 0.7);
}

/* 暗色模式下的Hero统计卡片 */
[data-theme="dark"] .stat-item {
    background: rgba(40, 40, 55, 0.8);
    box-shadow: 0 4px 20px rgba(100, 80, 140, 0.15);
    border-color: rgba(122, 110, 184, 0.4);
}

[data-theme="dark"] .stat-item:hover {
    box-shadow: 0 6px 25px rgba(100, 80, 140, 0.2);
}

/* 暗色模式下的分类按钮 */
[data-theme="dark"] .category-btn {
    background: rgba(40, 40, 55, 0.6);
    color: var(--text-primary);
}

[data-theme="dark"] .category-btn.active {
    background: var(--gradient-1);
    color: white;
}

[data-theme="dark"] .category-btn:hover {
    background: rgba(50, 50, 65, 0.7);
}

/* 暗色模式下的右键菜单 */
[data-theme="dark"] .context-menu {
    background: rgba(30, 30, 46, 0.98);
    box-shadow: 0 8px 32px rgba(100, 80, 140, 0.3);
}

[data-theme="dark"] .context-menu-item {
    color: var(--text-primary);
}

[data-theme="dark"] .context-menu-item:hover {
    background: rgba(50, 50, 65, 0.7);
}

[data-theme="dark"] .context-menu-divider {
    background: rgba(122, 110, 184, 0.3);
}

/* 暗色模式下的网站卡片 */
[data-theme="dark"] .website-card {
    background: linear-gradient(135deg, rgba(90, 110, 168, 0.15) 0%, rgba(106, 90, 144, 0.12) 50%, rgba(154, 138, 176, 0.1) 100%);
    border-color: rgba(122, 110, 184, 0.3);
    box-shadow: 0 4px 20px rgba(100, 80, 140, 0.1);
}

[data-theme="dark"] .website-card:hover {
    background: linear-gradient(135deg, rgba(90, 110, 168, 0.2) 0%, rgba(106, 90, 144, 0.15) 50%, rgba(154, 138, 176, 0.12) 100%);
    border-color: rgba(122, 110, 184, 0.5);
    box-shadow: 0 12px 40px rgba(100, 80, 140, 0.15);
}

/* 暗色模式下的Hero区域 */
[data-theme="dark"] .hero {
    background: rgba(30, 30, 46, 0.3);
}

/* 暗色模式下的网站区域 */
[data-theme="dark"] .websites-section {
    background: rgba(30, 30, 46, 0.2);
}

/* ==================== 全局样式 ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ==================== 文字过渡动画 ==================== */

.logo span,
.hero-title,
.hero-subtitle,
.stat-label,
.section-title,
.section-subtitle,
.website-card .card-name,
.website-card .card-description,
.category-btn,
.search-box input,
.search-result-item,
.context-menu-item,
.copy-toast span,
.no-results p,
button span {
    transition: color 0.3s ease, opacity 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ==================== 动态背景 - 淡色系粉蓝渐变 ==================== */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(180deg, #f0f8ff 0%, #e8f4fc 50%, #f5e6ff 100%);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: anime-float 15s ease-in-out infinite, pulse-orb 8s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, #ffecd2 0%, #a1c4fd 100%);
    top: -150px;
    left: -150px;
    animation-delay: 0s, 0s;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, #89f7fe 0%, #a18cd1 100%);
    bottom: -200px;
    right: -200px;
    animation-delay: -5s, -2s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #ff9a9e 0%, #c2e9fb 100%);
    top: 30%;
    left: 60%;
    animation-delay: -10s, -4s;
}

/* 星星装饰 */
.star {
    position: absolute;
    font-size: 20px;
    color: rgba(161, 196, 253, 0.5);
    animation: twinkle 3s ease-in-out infinite;
}

.star-1 { top: 10%; left: 10%; animation-delay: 0s; }
.star-2 { top: 20%; left: 80%; animation-delay: 0.5s; }
.star-3 { top: 40%; left: 5%; animation-delay: 1s; }
.star-4 { top: 60%; left: 90%; animation-delay: 1.5s; }
.star-5 { top: 80%; left: 15%; animation-delay: 2s; }
.star-6 { top: 15%; left: 50%; animation-delay: 2.5s; }
.star-7 { top: 70%; left: 70%; animation-delay: 0.3s; }
.star-8 { top: 30%; left: 30%; animation-delay: 0.8s; }

/* 心形装饰 */
.heart {
    position: absolute;
    font-size: 24px;
    color: rgba(161, 196, 253, 0.4);
    animation: float-heart 8s ease-in-out infinite;
}

.heart-1 { top: 25%; left: 20%; animation-delay: 0s; }
.heart-2 { top: 55%; left: 75%; animation-delay: 2s; }
.heart-3 { top: 75%; left: 40%; animation-delay: 4s; }

@keyframes anime-float {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    25% {
        transform: translate(30px, -40px) scale(1.1) rotate(5deg);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95) rotate(-5deg);
    }
    75% {
        transform: translate(-40px, -20px) scale(1.05) rotate(3deg);
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

@keyframes float-heart {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
        opacity: 0.6;
    }
}

@keyframes pulse-orb {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
        box-shadow: 0 0 70px rgba(161, 196, 253, 0.5);
    }
    50% {
        transform: scale(1.15);
        opacity: 0.8;
        box-shadow: 0 0 90px rgba(161, 196, 253, 0.7);
    }
}

/* ==================== 漂浮粒子 ==================== */
.particle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff9a9e 0%, #667eea 100%);
    opacity: 0.4;
    filter: blur(2px);
    animation: float-particle 25s ease-in-out infinite, twinkle-particle 4s ease-in-out infinite;
}

.particle-1 { width: 20px; height: 20px; top: 5%; left: 8%; animation-delay: 0s, 0s; animation-duration: 28s, 3.5s; }
.particle-2 { width: 15px; height: 15px; top: 15%; left: 25%; animation-delay: 2s, 0.5s; animation-duration: 22s, 4.5s; }
.particle-3 { width: 25px; height: 25px; top: 25%; left: 45%; animation-delay: 4s, 1s; animation-duration: 30s, 3s; }
.particle-4 { width: 18px; height: 18px; top: 35%; left: 65%; animation-delay: 1s, 1.5s; animation-duration: 24s, 4s; }
.particle-5 { width: 22px; height: 22px; top: 45%; left: 85%; animation-delay: 3s, 2s; animation-duration: 26s, 3.8s; }
.particle-6 { width: 16px; height: 16px; top: 55%; left: 12%; animation-delay: 5s, 2.5s; animation-duration: 23s, 4.2s; }
.particle-7 { width: 28px; height: 28px; top: 65%; left: 30%; animation-delay: 0.5s, 3s; animation-duration: 29s, 3.2s; }
.particle-8 { width: 14px; height: 14px; top: 75%; left: 50%; animation-delay: 2.5s, 3.5s; animation-duration: 21s, 4.8s; }
.particle-9 { width: 24px; height: 24px; top: 85%; left: 70%; animation-delay: 4.5s, 4s; animation-duration: 27s, 3.6s; }
.particle-10 { width: 19px; height: 19px; top: 10%; left: 92%; animation-delay: 6s, 0.8s; animation-duration: 25s, 4.1s; }
.particle-11 { width: 17px; height: 17px; top: 30%; left: 5%; animation-delay: 1.5s, 1.2s; animation-duration: 24s, 3.9s; }
.particle-12 { width: 23px; height: 23px; top: 50%; left: 20%; animation-delay: 3.5s, 1.8s; animation-duration: 28s, 4.3s; }
.particle-13 { width: 21px; height: 21px; top: 70%; left: 40%; animation-delay: 5.5s, 2.2s; animation-duration: 26s, 3.4s; }
.particle-14 { width: 13px; height: 13px; top: 90%; left: 60%; animation-delay: 0.8s, 2.8s; animation-duration: 22s, 4.6s; }
.particle-15 { width: 26px; height: 26px; top: 20%; left: 78%; animation-delay: 2.8s, 3.2s; animation-duration: 30s, 3.7s; }

@keyframes float-particle {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(15px, -25px);
    }
    50% {
        transform: translate(-10px, 20px);
    }
    75% {
        transform: translate(20px, -10px);
    }
}

@keyframes twinkle-particle {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.5;
    }
}

/* ==================== 流光层 ==================== */
.wave-layer {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(120deg, 
        transparent 0%, 
        rgba(255, 236, 210, 0.15) 25%, 
        rgba(161, 196, 253, 0.15) 50%, 
        rgba(255, 154, 158, 0.15) 75%, 
        transparent 100%);
    animation: wave-flow 30s linear infinite, wave-rotate 60s linear infinite;
    pointer-events: none;
}

.wave-1 {
    animation-delay: 0s, 0s;
    opacity: 0.8;
}

.wave-2 {
    animation-delay: -10s, -20s;
    opacity: 0.7;
    animation-duration: 35s, 70s;
}

.wave-3 {
    animation-delay: -20s, -40s;
    opacity: 0.6;
    animation-duration: 25s, 80s;
}

@keyframes wave-flow {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

@keyframes wave-rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ==================== 导航栏 - 淡色系粉蓝渐变 ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--accent-secondary);
    padding: var(--spacing-md) 0;
    box-shadow: 0 2px 20px rgba(161, 196, 253, 0.15);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-left: auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.search-box {
    position: relative;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: var(--spacing-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-primary);
    font-size: 1.1rem;
    pointer-events: none;
    transition: all var(--transition-fast);
    z-index: 2;
}

.search-box input {
    width: 100%;
    padding: 14px var(--spacing-md) 14px calc(var(--spacing-md) * 2 + 1.8rem);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--accent-secondary);
    border-radius: 25px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    outline: none;
    transition: all var(--transition-fast);
    box-shadow: 0 3px 15px rgba(161, 196, 253, 0.15);
}

.search-box input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.search-box input:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 4px 20px rgba(161, 196, 253, 0.2);
}

.search-box input:focus {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 5px 25px rgba(161, 196, 253, 0.3);
    transform: scale(1.01);
}

.search-box input:focus + .search-icon {
    color: var(--accent-primary);
    transform: translateY(-50%) scale(1.1);
}

/* ==================== 导航栏控制按钮 ==================== */
.nav-controls {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.control-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--accent-secondary);
    border-radius: 12px;
    color: var(--accent-primary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 3px 15px rgba(161, 196, 253, 0.15);
}

.control-btn:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.3);
    transform: translateY(-2px);
}

.control-btn:active {
    transform: scale(0.9) rotate(-10deg);
}

.control-btn i {
    transition: transform var(--transition-fast);
}

.control-btn:hover i {
    transform: rotate(20deg) scale(1.1);
}

.lang-toggle span {
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-body);
}

/* 暗色模式下的导航栏控制按钮 */
[data-theme="dark"] .control-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(139, 92, 246, 0.5);
    color: var(--accent-primary);
    box-shadow: 0 3px 15px rgba(139, 92, 246, 0.15);
}

[data-theme="dark"] .control-btn:hover {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.3);
}

/* ==================== 搜索结果下拉列表 ==================== */
.search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border: 2px solid var(--accent-secondary);
    border-radius: 20px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 8px 30px rgba(161, 196, 253, 0.2);
    display: none;
    z-index: 1001;
    backdrop-filter: blur(10px);
}

.search-results.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(161, 196, 253, 0.1);
    padding-left: 20px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-result-item:active {
    background: rgba(161, 196, 253, 0.15);
    transform: translateX(2px);
}

.search-result-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-result-icon.has-image {
    background: transparent;
}

.search-result-icon img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: contain;
}

.search-result-info {
    flex: 1;
    min-width: 0;
}

.search-result-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.search-result-category {
    font-size: 0.8rem;
    color: var(--accent-primary);
    background: rgba(161, 196, 253, 0.15);
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
}

.search-result-arrow {
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.search-result-item:hover .search-result-arrow {
    color: var(--accent-primary);
    transform: translateX(5px);
}

.no-search-results {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
}

/* ==================== 分类标签 - 淡色系粉蓝渐变 ==================== */
.categories-container {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 999;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--accent-secondary);
    padding: var(--spacing-xs) 0;
    box-shadow: 0 2px 15px rgba(161, 196, 253, 0.1);
}

.categories {
    display: flex;
    gap: var(--spacing-sm);
    overflow-x: auto;
    padding: var(--spacing-xs) var(--spacing-sm);
    scrollbar-width: none;
}

.categories::-webkit-scrollbar {
    display: none;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--accent-secondary);
    border-radius: 50px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 8px rgba(161, 196, 253, 0.1);
}

.category-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 12px rgba(161, 196, 253, 0.2);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(161, 196, 253, 0.3);
}

.category-btn.active {
    background: linear-gradient(135deg, #7bb3f0 0%, #9dc9f8 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(161, 196, 253, 0.5);
    transform: scale(1.05);
    position: relative;
    z-index: 1;
}

.category-btn.active::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #7bb3f0 0%, #9dc9f8 100%);
    border-radius: 50px;
    z-index: -1;
    filter: blur(8px);
    opacity: 0.6;
}
}

.category-btn i {
    font-size: 0.85rem;
}

/* ==================== Hero 区域 - 二次元风格 ==================== */
.hero {
    padding: calc(var(--spacing-2xl) * 4) 0 var(--spacing-xl);
    text-align: center;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    position: relative;
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 154, 158, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-2xl);
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(255, 154, 158, 0.2);
    border: 2px solid var(--accent-secondary);
    transition: all var(--transition-fast);
    min-width: 120px;
    max-width: 140px;
}

.stat-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 154, 158, 0.3);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-item:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 4px 18px rgba(255, 154, 158, 0.25);
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-top: var(--spacing-xs);
    font-weight: 500;
}

/* ==================== 网站区域 ==================== */
.websites-section {
    padding: var(--spacing-2xl) 0 calc(var(--spacing-2xl) * 3);
}

.section-header {
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==================== 网站网格 ==================== */
.websites-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

/* ==================== 网站卡片 - 二次元风格 ==================== */
.website-card {
    background: linear-gradient(135deg, rgba(255, 236, 210, 0.3) 0%, rgba(252, 182, 159, 0.25) 50%, rgba(161, 196, 253, 0.2) 100%);
    backdrop-filter: blur(15px);
    border: 3px solid rgba(161, 196, 253, 0.6);
    border-radius: 30px;
    padding: var(--spacing-lg);
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(161, 196, 253, 0.15);
    display: flex;
    flex-direction: column;
}

.website-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity var(--transition-fast);
    border-radius: 30px 30px 0 0;
}

.website-card:hover {
    transform: translateY(-12px) rotate(1deg);
    background: linear-gradient(135deg, rgba(255, 154, 158, 0.35) 0%, rgba(254, 207, 239, 0.3) 50%, rgba(161, 140, 209, 0.25) 100%);
    border-color: rgba(161, 196, 253, 0.9);
    box-shadow: 0 12px 40px rgba(161, 196, 253, 0.35);
}

.website-card:hover::before {
    opacity: 1;
}

.website-card:hover::after {
    opacity: 1;
    transform: scale(1.2) rotate(15deg);
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.card-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-3);
    border-radius: 20px;
    font-size: 2rem;
    flex-shrink: 0;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px rgba(161, 196, 253, 0.2);
    overflow: hidden;
    padding: 0;
}

.card-icon.has-image {
    background: transparent;
    box-shadow: none;
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.website-card:hover .card-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 6px 20px rgba(161, 196, 253, 0.3);
}

.website-card:hover .card-icon.has-image {
    box-shadow: none;
}

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

.card-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    transition: color var(--transition-fast);
}

.website-card:hover .card-name {
    color: var(--accent-primary);
}

.card-category {
    display: inline-block;
    padding: 6px 12px;
    background: var(--gradient-5);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(161, 196, 253, 0.2);
}

.card-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.8rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 2px solid var(--accent-secondary);
    margin-top: auto;
}

.card-visit-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 10px 20px;
    background: var(--gradient-3);
    border: none;
    border-radius: 50px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px rgba(161, 196, 253, 0.3);
}

.card-visit-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(161, 196, 253, 0.4);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-visit-btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 3px 12px rgba(161, 196, 253, 0.3);
}

.card-visit-btn i {
    font-size: 0.85rem;
}

/* ==================== 无结果提示 - 二次元风格 ==================== */
.no-results {
    text-align: center;
    padding: var(--spacing-2xl) 0;
    color: var(--text-muted);
}

.no-results i {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
    animation: twinkle 2s ease-in-out infinite;
}

.no-results p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* ==================== 页脚 - 已删除 ==================== */

/* ==================== 响应式设计 ==================== */
@media (max-width: 1200px) {
    .websites-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .search-box {
        max-width: 100%;
    }

    .categories-container {
        top: auto;
        bottom: 0;
        border-top: 3px solid var(--accent-secondary);
        border-bottom: none;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 -4px 20px rgba(161, 196, 253, 0.2);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        gap: var(--spacing-lg);
        flex-direction: column;
    }

    .stat-number {
        font-size: 2rem;
    }

    .websites-grid {
        grid-template-columns: 1fr;
    }

    .websites-section {
        padding-bottom: calc(var(--spacing-2xl) * 3);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .category-btn {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.85rem;
    }

    .stat-item {
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .search-box input {
        padding: 12px var(--spacing-sm) 12px calc(var(--spacing-sm) * 2 + 1.5rem);
        font-size: 0.9rem;
    }
}

/* ==================== 动画效果 ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.website-card {
    animation: fadeInUp 0.5s ease forwards;
}

.website-card:nth-child(1) { animation-delay: 0.1s; }
.website-card:nth-child(2) { animation-delay: 0.2s; }
.website-card:nth-child(3) { animation-delay: 0.3s; }
.website-card:nth-child(4) { animation-delay: 0.4s; }
.website-card:nth-child(5) { animation-delay: 0.5s; }
.website-card:nth-child(6) { animation-delay: 0.6s; }
.website-card:nth-child(7) { animation-delay: 0.7s; }
.website-card:nth-child(8) { animation-delay: 0.8s; }
.website-card:nth-child(9) { animation-delay: 0.9s; }
.website-card:nth-child(10) { animation-delay: 1s; }

/* ==================== 滚动条样式 - 淡色系粉蓝渐变 ==================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(240, 248, 255, 0.5);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-3);
    border-radius: 10px;
    border: 2px solid var(--accent-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-5);
    transform: scale(1.1);
}

/* ==================== 特效样式 ==================== */

/* 鼠标尾迹画布 */
#trailCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
}

/* 烟花粒子 */
.firework-particle {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
}

/* ==================== 复制成功提示 ==================== */

.copy-toast {
    position: fixed;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(123, 179, 240, 0.95) 0%, rgba(157, 201, 248, 0.95) 100%);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(161, 196, 253, 0.6);
    border-radius: 50px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(161, 196, 253, 0.3);
    opacity: 0;
    transition: all 0.3s ease;
}

.copy-toast i {
    font-size: 1.1rem;
}

@keyframes copyToastSlideDown {
    from {
        top: -60px;
        opacity: 0;
    }
    to {
        top: 20px;
        opacity: 1;
    }
}

@keyframes copyToastSlideUp {
    from {
        top: 20px;
        opacity: 1;
    }
    to {
        top: -60px;
        opacity: 0;
    }
}

/* ==================== 自定义右键菜单 ==================== */

.context-menu {
    position: fixed;
    z-index: 10000;
    background: linear-gradient(135deg, rgba(255, 236, 210, 0.95) 0%, rgba(252, 182, 159, 0.95) 50%, rgba(161, 196, 253, 0.95) 100%);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(161, 196, 253, 0.6);
    border-radius: 16px;
    padding: 6px;
    min-width: 180px;
    box-shadow: 0 8px 32px rgba(161, 196, 253, 0.3);
    animation: contextMenuFadeIn 0.2s ease;
}

@keyframes contextMenuFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes contextMenuFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

.context-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    color: #4a5568;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.2s ease;
    user-select: none;
}

.context-menu-item:hover {
    background: linear-gradient(135deg, rgba(123, 179, 240, 0.3) 0%, rgba(157, 201, 248, 0.3) 100%);
    color: #1a365d;
    transform: translateX(4px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.context-menu-item:active {
    background: linear-gradient(135deg, rgba(123, 179, 240, 0.5) 0%, rgba(157, 201, 248, 0.5) 100%);
    transform: translateX(2px);
}

.context-menu-item i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    background: linear-gradient(135deg, #7bb3f0 0%, #9dc9f8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.context-menu-divider {
    height: 1px;
    background: rgba(161, 196, 253, 0.3);
    margin: 4px 0;
    border-radius: 1px;
}

/* ==================== 按钮图标旋转动画 ==================== */

@keyframes iconRotate {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

.control-btn i.animating {
    animation: iconRotate 0.5s ease-in-out;
}

/* ==================== Tooltip 样式 ==================== */

.tooltip {
    position: fixed;
    top: 0;
    left: 0;
    padding: 8px 12px;
    background: linear-gradient(135deg, rgba(123, 179, 240, 0.95) 0%, rgba(157, 201, 248, 0.95) 100%);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(161, 196, 253, 0.6);
    border-radius: 10px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    z-index: 10002;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(161, 196, 253, 0.3);
}

.tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

[data-theme="dark"] .tooltip {
    background: linear-gradient(135deg, rgba(122, 110, 184, 0.95) 0%, rgba(139, 92, 246, 0.95) 100%);
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}
