/* ==========================================
   1. 基础变量定义（主题核心）
========================================== */
:root {
    /* 主色调系 */
    --primary-color: #10b981;
    --secondary-color: #059669;
    --accent-color: #34d399;
    
    /* 基础色 */
    --light-color: #f8fafc;
    --dark-color: #1f2937;
    
    /* 灰色系 */
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    
    /* 功能色 */
    --blue-500: #3b82f6;
    --blue-600: #1d4ed8;
    --green-500: #10b981;
    --green-600: #059669;
    --orange-500: #f59e0b;
    --orange-600: #d97706;
    --purple-500: #8b5cf6;
    --purple-600: #7c3aed;
    --pink-500: #ec4899;
    --pink-600: #db2777;
    --red-500: #ef4444;
    --red-600: #dc2626;
    --teal-500: #14b8a6;
    --teal-600: #0f766e;
    --yellow-500: #eab308;
    --yellow-600: #ca8a04;
    
    /* 布局色 */
    --bg-color: linear-gradient(135deg, var(--light-color) 0%, #e2e8f0 100%);
    --card-bg: white;
    --card-border: var(--gray-200);
    --navbar-bg: white;
    --footer-bg: white;
}

/* 暗黑模式变量 */
[data-theme="dark"] {
    --light-color: #111827;
    --dark-color: #f3f4f6;
    
    --gray-100: #1f2937;
    --gray-200: #374151;
    --gray-300: #4b5563;
    --gray-400: #6b7280;
    --gray-500: #9ca3af;
    --gray-600: #d1d5db;
    
    --bg-color: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    --card-bg: #1f2937;
    --card-border: #374151;
    --navbar-bg: #111827;
    --footer-bg: #111827;
}

/* ==========================================
   2. 全局样式与重置
========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease !important;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.5;
    color: var(--dark-color);
    background: var(--bg-color); /* 使用主题背景变量 */
    min-height: 100vh;
}

/* 滚动条样式（新增暗黑模式适配） */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background: var(--gray-100);
}
::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}
[data-theme="dark"] ::-webkit-scrollbar {
    background: var(--gray-800);
}
[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: var(--gray-600);
}

/* 工具类 */
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.align-items-center { align-items: center; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.text-center { text-align: center; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 1rem; }
.ml-1 { margin-left: 0.25rem; }
.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-primary { color: var(--green-500); }
.text-gray-500 { color: var(--gray-500); }
.bg-white { background-color: white; }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }
.border { border: 1px solid var(--gray-300); }
.border-gray-200 { border-color: var(--gray-200); }
.shadow-sm { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.transition-all { transition: all 0.3s ease; }
.hover\:text-primary:hover { color: var(--green-500); }
.hover\:bg-primary:hover { background-color: var(--green-500); }

/* 链接样式统一 */
a {
    color: var(--gray-500);
    text-decoration: none;
}
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ==========================================
   3. 核心组件样式
========================================== */
/* 导航栏整体样式 */
.navbar {
    position: sticky; 
    top: 0; 
    z-index: 1000;
    width: 100%;
    background: var(--navbar-bg);
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 0.75rem 1.5rem;
    box-sizing: border-box; /* 确保padding不影响总宽度 */
}

.navbar-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Logo区域样式 */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin: 0;
    padding: 0;
}

.logo-container {
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--green-500) 0%, var(--green-600) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(90deg, 
        #ff0000, #ff9900, #ffff00, #33cc33, 
        #33ccff, #3333ff, #cc33ff, #ff0000);
    background-size: 800% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: rainbow 3s linear infinite;
}

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

.logo-subtext {
    font-size: 12px;
    color: var(--dark-color);
    margin-top: -2px;
    white-space: nowrap; /* 防止副标题换行 */
}

/* 登录按钮区域样式 */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.login-btn, .nickname-btn {
    background: linear-gradient(135deg, var(--green-500) 0%, var(--green-600) 100%);
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    white-space: nowrap;
}

.login-btn:hover, .nickname-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
    color: white;
}

/* 下拉菜单样式 */
.user-menu {
    position: relative;
    display: inline-block;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 180px;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin-top: 8px;
    padding: 8px 0;
    z-index: 1010;
    display: none;
    border: 1px solid var(--card-border);
}

.user-dropdown.show {
    display: block;
    animation: fadeIn 0.2s ease;
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--gray-100);
    color: var(--green-500);
}

/* 移动端适配（768px以下） */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 1rem; /* 保留较小内边距，确保内容不贴边 */
    }

    /* Logo区域优化（显示副标题） */
    .logo-icon {
        width: 34px;
        height: 34px; /* 适当缩小图标，给副标题腾空间 */
        margin-right: 12px;
    }

    .logo-text {
        font-size: 17px; /* 略微缩小主标题 */
    }

    .logo-subtext {
        display: block; /* 恢复显示副标题 */
        font-size: 11px; /* 缩小副标题字体 */
        margin-top: 2px; /* 调整与主标题的间距 */
    }

    /* 登录按钮区域优化 */
    .auth-buttons {
        gap: 8px;
    }

    .login-btn, .nickname-btn {
        padding: 5px 12px;
        font-size: 13px;
        margin-left: auto; /* 保持靠右对齐 */
    }

    /* 处理昵称过长 */
    .nickname-btn {
        max-width: 110px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* 小屏幕适配（576px以下，避免副标题换行） */
@media (max-width: 576px) {
    .logo-subtext {
        font-size: 10px; /* 进一步缩小副标题 */
    }

    .logo-text {
        font-size: 16px;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
        margin-right: 10px;
    }
}

/* 超小屏幕适配（420px以下，极端情况处理） */
@media (max-width: 420px) {
    .logo-subtext {
        /* 超小屏幕下强制缩短文本，避免挤压 */
        font-size: 9px;
        letter-spacing: -0.5px; /* 缩小字间距 */
    }
}


/* 新收录角标 */
.new-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #ff6b8b 0%, #ff3366 100%);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 0 0 16px 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 3px 8px rgba(255, 107, 139, 0.3);
    animation: bounce 2s infinite;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

/* 主内容区域 */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 10px;
}

/* 搜索框 */
.search-section {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--card-border);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.search-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    height: 44px;
    padding: 0 16px 0 44px;
    border: 2px solid var(--gray-200);
    border-radius: 22px;
    font-size: 16px;
    font-weight: 500;
    background-color: var(--light-color); /* 适配主题背景 */
    color: var(--dark-color); /* 文字随主题变化 */
}

.search-input:focus {
    border-color: var(--green-500);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 18px;
}

.search-hint {
    text-align: center;
    margin-top: 8px;
    font-size: 12px;
    color: var(--gray-500);
}

/* 公告区域容器 */
.info-hints {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--card-border);
    padding: 16px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* 公告标题（顶部居中） */
.notice-title {
    text-align: center; /* 标题居中 */
    font-size: 16px;
    font-weight: 700;
    color: #f97316; /* 橙色强调 */
    margin-bottom: 10px; /* 与内容间距 */
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--card-border); /* 分隔线 */
}

/* 公告内容（正常显示） */
.notice-content {
    font-size: 14px;
    color: var(--dark-color);
    line-height: 1.6; /* 舒适行高 */
    word-break: break-word; /* 自动换行 */
}

/* 移动端适配（保持标题居中） */
@media (max-width: 768px) {
    .info-hints {
        padding: 14px;
        border-radius: 8px;
    }
    
    .notice-title {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .notice-content {
        font-size: 13px;
    }
}

/* 分类大卡片容器 */
.category-card {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--card-border);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.category-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--gray-300);
}

/* 分类标题 */
.category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
}

.category-title {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--green-500) 0%, var(--green-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.more-link {
    font-size: 14px;
    color: var(--green-500);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.1);
    transition: all 0.3s ease;
}

.more-link:hover {
    color: var(--green-600);
    background: rgba(16, 185, 129, 0.2);
}

/* 卡片网格 */
.card-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 0;
}

/* 网站卡片 */
.site-card {
    position: relative;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.site-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--gray-300);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.site-info {
    flex: 1;
}

.site-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-color);
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.site-desc {
    font-size: 12px;
    color: var(--gray-500); /* 描述文字用灰色变量 */
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--gray-500);
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--gray-100);
}

/* 状态样式 */
.site-status {
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 500;
    background: var(--gray-100);
    color: var(--dark-color);
}

.status-article {
    color: #6366f1;
}

.status-stable {
    color: var(--green-600);
}
[data-theme="dark"] .status-stable {
    background: rgba(16, 185, 129, 0.25); /* 暗黑模式增强对比度 */
}

.status-maintenance {
    color: var(--orange-600);
}

/* 标签样式 */
.tag-container {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.site-tag {
    background: var(--gray-100);
    color: var(--gray-600);
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

/* 页脚 */
.footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--card-border);
    padding: 24px 0;
    margin-top: 32px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.footer-logo-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--green-500) 0%, var(--green-600) 100%);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark-color);
}

.footer-copyright {
    font-size: 12px;
    color: var(--gray-500);
    margin-bottom: 12px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    font-size: 11px;
    color: var(--gray-500);
}

.footer-link {
    color: var(--gray-500);
    text-decoration: none;
}

.footer-link:hover {
    color: var(--primary-color);
}

/* 侧边功能按钮 */
.extra-fixed-buttons {
    position: fixed;
    bottom: 250px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.extra-fixed-btn {
    width: 44px;
    height: 44px;
    background: var(--green-500);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.extra-fixed-btn:hover {
    background: var(--green-600);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

/* 暗黑模式按钮样式调整 */
[data-theme="dark"] .extra-fixed-btn,
[data-theme="dark"] #backToTop {
    background: var(--gray-700);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
[data-theme="dark"] .extra-fixed-btn:hover,
[data-theme="dark"] #backToTop:hover {
    background: var(--gray-600);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* ==========================================
   纯CSS绘制图标（替代图片）
========================================== */
/* 用户图标 */
.user-outline-icon {
    width: 18px;
    height: 18px;
    position: relative;
    margin-right: 8px;
}

.user-outline-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 3px;
    width: 12px;
    height: 12px;
    border: 2px solid white;
    border-radius: 50%;
}

.user-outline-icon::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 18px;
    height: 10px;
    border: 2px solid white;
    border-top: none;
    border-radius: 0 0 4px 4px;
}

.user-verified-icon {
    width: 18px;
    height: 18px;
    position: relative;
    margin-right: 8px;
}

.user-verified-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
}

.user-verified-icon::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 3px;
    width: 8px;
    height: 4px;
    border-bottom: 2px solid var(--green-500);
    border-left: 2px solid var(--green-500);
    transform: rotate(-45deg);
}



/* QQ企鹅图标 */
.qq-icon {
    width: 24px;
    height: 24px;
    position: relative;
}

.qq-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
}

.qq-icon::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 6px;
    width: 3px;
    height: 3px;
    background: var(--green-500);
    border-radius: 50%;
    box-shadow: 8px 0 0 var(--green-500);
    animation: eyeMove 2s infinite ease-in-out;
}

@keyframes eyeMove {
    0%, 100% { left: 6px; box-shadow: 8px 0 0 var(--green-500); }
    50% { left: 8px; box-shadow: 6px 0 0 var(--green-500); }
}

/* 邮箱图标 */
.email-icon {
    width: 24px;
    height: 18px;
    position: relative;
}

.email-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 14px;
    background: white;
    border-radius: 3px;
}

.email-icon::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 8px solid white;
}



/* 模式切换按钮 */
.theme-switch-container {
    position: fixed;
    bottom: 140px;
    right: 20px;
    z-index: 999;
}

.theme-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
    background: var(--green-500);
    font-size: 12px;
    font-weight: 500;
}

.theme-btn.dark {
    background: linear-gradient(135deg, #333 0%, #111 100%);
    color: white;
}

/* 月亮图标（充满整个容器，与背景同大） */
.moon-icon {
    width: 24px; /* 容器宽度（根据需要多大就设多大） */
    height: 24px; /* 容器高度（与宽度一致，保证方形） */
    position: relative;
  

}

/* 月亮主体（充满整个容器） */
.moon-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%; /* 宽度=容器宽度 */
    height: 100%; /* 高度=容器高度 */
    border-radius: 50%; /* 圆形月亮 */
    background: white;
    transition: all 0.4s ease;
}

/* 月牙效果（用背景色遮挡部分月亮，不影响整体填充感） */
.moon-icon::after {
    content: '';
    position: absolute;
    top: -15%; /* 调整遮挡位置，形成月牙月牙形状 */
    right: -15%;
    width: 70%; /* 遮挡部分的大小 */
    height: 70%;
    border-radius: 50%;
    background: var(--green-500); /* 用背景色遮挡，形成月牙 */
    transition: all 0.4s ease;
}
/* 太阳图标样式（圆点光芒+动画） */
.sun-icon {
  --sun-color: #ffcc00;
}

/* 太阳主体 */
.sun-icon::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  background: var(--sun-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 15px var(--sun-color);
  transition: all 0.4s ease;
}

/* 太阳光芒（改为圆点） */
.sun-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  background: var(--sun-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  /* 8个方向的圆点光芒 */
  box-shadow: 
    0 -14px 0 var(--sun-color),       /* 上 */
    10px -10px 0 var(--sun-color),    /* 右上 */
    14px 0 0 var(--sun-color),        /* 右 */
    10px 10px 0 var(--sun-color),     /* 右下 */
    0 14px 0 var(--sun-color),        /* 下 */
    -10px 10px 0 var(--sun-color),    /* 左下 */
    -14px 0 0 var(--sun-color),       /* 左 */
    -10px -10px 0 var(--sun-color);   /* 左上 */
  transition: all 0.4s ease;
  animation: sunPulse 3s infinite ease-in-out;
}

/* 太阳呼吸动画 */
@keyframes sunPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.2); }
}


/* 返回顶部图标（向上箭头） */
.back-to-top-icon {
    width: 20px;
    height: 10px;
    position: relative;
    display: inline-block; 
}

.back-to-top-icon::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    width: 10px;
    height: 10px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: rotate(45deg) translateX(-70%);
    transform-origin: center;
}
/* 返回顶部按钮 */
#backToTop {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--green-500);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

#backToTop:hover {
    background: var(--green-600);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
}

/* 图标背景色 */
.icon-blue { background: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-600) 100%); }
.icon-green { background: linear-gradient(135deg, var(--green-500) 0%, var(--green-600) 100%); }
.icon-orange { background: linear-gradient(135deg, var(--orange-500) 0%, var(--orange-600) 100%); }
.icon-purple { background: linear-gradient(135deg, var(--purple-500) 0%, var(--purple-600) 100%); }
.icon-pink { background: linear-gradient(135deg, var(--pink-500) 0%, var(--pink-600) 100%); }
.icon-red { background: linear-gradient(135deg, var(--red-500) 0%, var(--red-600) 100%); }
.icon-gray { background: linear-gradient(135deg, var(--gray-500) 0%, var(--gray-600) 100%); }
.icon-teal { background: linear-gradient(135deg, var(--teal-500) 0%, var(--teal-600) 100%); }
.icon-yellow { background: linear-gradient(135deg, var(--yellow-500) 0%, var(--yellow-600) 100%); }

/* 图标字体 */
.bi {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 1em 1em;
    color: var(--gray-500);
}
[data-theme="dark"] .bi {
    color: var(--gray-400);
    filter: brightness(1.2); /* 暗黑模式提亮图标 */
}

.bi-search {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1 1 0 0 0-.115-.099zM6.5 12a5.5 5.5 0 1 1 0-11 5.5 5.5 0 0 1 0 11z'/%3E%3C/svg%3E");
}

.bi-puzzle {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath d='M3.112 3.645A9.929 9.929 0 0 0 2 7.15a9.932 9.932 0 0 0 .457 2.756L0 13.293V16h2.707l2.853-2.854a9.932 9.932 0 0 0 2.756.457c3.997 0 7.29-3.293 7.29-7.29 0-1.175-.213-2.298-.58-3.316L13.293 0H10.5v2.17L8.19 4.486 3.112 3.645zM8.5 6.286A2.214 2.214 0 1 1 6.286 8.5 2.214 2.214 0 0 1 8.5 6.286zm-1.443 5.214a3.5 3.5 0 1 1 3.5-3.5 3.5 3.5 0 0 1-3.5 3.5z'/%3E%3C/svg%3E");
}

.bi-heart {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath d='m8 2.748-.717-.737C5.6.281 2.514.878 1.4 3.053c-.523 1.023-.641 2.5.314 4.385.92 1.815 2.834 3.989 6.286 6.357 3.452-2.368 5.365-4.542 6.286-6.357.955-1.886.838-3.362.314-4.385C13.486.878 10.4.28 8.717 2.01L8 2.748zM8 15C-7.333 4.868 3.279-3.04 7.824 3.142c.06.055.119.112.176.171a3.123 3.123 0 0 1 .176-.17C12.72-3.042 23.333 4.867 8 15z'/%3E%3C/svg%3E");
}

.bi-info-circle {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z'/%3E%3Cpath d='m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z'/%3E%3C/svg%3E");
}

.bi-chevron-right {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

.bi-chevron-up {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M7.646 4.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 5.707l-5.646 5.647a.5.5 0 0 1-.708-.708l6-6z'/%3E%3C/svg%3E");
}

.bi-person {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath d='M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm2-3a2 2 0 1 1-4 0 2 2 0 0 1 4 0zm4 8c0 1-1 1-1 1H3s-1 0-1-1 1-4 6-4 6 3 6 4zm-1-.004c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10c-2.29 0-3.516.68-4.168 1.332-.678.678-.83 1.418-.832 1.664h10z'/%3E%3C/svg%3E");
    margin-right: 6px;
}

.bi-eye {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath d='M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM1.173 8a13.133 13.133 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5s3.879 1.168 5.168 2.457A13.133 13.133 0 0 1 14.828 8c-.058-.087-.122-.183-.195-.288-.335-.48-.83-1.12-1.465-1.755C11.879 5.668 10.119 4.5 8 4.5c-2.119 0-3.88.168-5.168 2.457A13.134 13.134 0 0 1 1.172 8z'/%3E%3Cpath d='M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zm0 1a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3z'/%3E%3C/svg%3E");
}

.bi-clock {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5a.5.5 0 0 0-1 0V9a.5.5 0 0 0 .252.434l3.5 2a.5.5 0 0 0 .496-.868L8 8.71V3.5z'/%3E%3Cpath d='M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm7-8A7 7 0 1 1 1 8a7 7 0 0 1 14 0z'/%3E%3C/svg%3E");
}

.bi-check-circle {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z'/%3E%3Cpath d='M10.97 4.97a.235.235 0 0 0-.02.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.071 0l3.992-4.99a.75.75 0 0 0-1.071-1.05z'/%3E%3C/svg%3E");
}

.bi-exclamation-triangle {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath d='M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z'/%3E%3C/svg%3E");
}

/* ==========================================
   4. 内页样式
========================================== */
/* 分类标题区域 */
.category-header-section {
    background: linear-gradient(135deg, var(--green-500) 0%, var(--green-600) 100%);
    border-radius: 16px;
    padding: 32px 24px;
    margin-bottom: 24px;
    color: white;
    text-align: center;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
}
[data-theme="dark"] .category-header-section {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.category-banner-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.category-banner-desc {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 16px;
}

.category-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    font-size: 14px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 彩色标签 */
.colorful-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
    margin-bottom: 24px;
    padding: 0 16px;
}

.color-tag {
    padding: 4px 8px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.color-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* 标签颜色 */
.tag-blue { background: linear-gradient(135deg, var(--blue-500) 0%, var(--blue-600) 100%); }
.tag-green { background: linear-gradient(135deg, var(--green-500) 0%, var(--green-600) 100%); }
.tag-orange { background: linear-gradient(135deg, var(--orange-500) 0%, var(--orange-600) 100%); }
.tag-purple { background: linear-gradient(135deg, var(--purple-500) 0%, var(--purple-600) 100%); }
.tag-pink { background: linear-gradient(135deg, var(--pink-500) 0%, var(--pink-600) 100%); }
.tag-red { background: linear-gradient(135deg, var(--red-500) 0%, var(--red-600) 100%); }
.tag-teal { background: linear-gradient(135deg, var(--teal-500) 0%, var(--teal-600) 100%); }
.tag-yellow { background: linear-gradient(135deg, var(--yellow-500) 0%, var(--yellow-600) 100%); }

/* 面包屑导航 */
.breadcrumbs {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--card-border);
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.breadcrumb-item {
    color: var(--gray-500);
    text-decoration: none;
}

.breadcrumb-item:hover {
    color: var(--green-500);
}

.breadcrumb-separator {
    color: var(--gray-300);
}

.breadcrumb-active {
    color: var(--green-500);
    font-weight: 600;
}

/* 网站详情卡片 */
.site-detail-card {
    position: relative; /* 添加这行，确保角标相对于卡片定位 */
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--card-border);
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.site-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gray-200);
}

.site-big-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.site-header-info {
    flex: 1;
}

.site-big-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.site-big-desc {
    font-size: 16px;
    color: var(--gray-500);
    margin-bottom: 16px;
}

.site-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 14px;
    color: var(--gray-600);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-left: auto;
}

.visit-btn {
    background: linear-gradient(135deg, var(--green-500) 0%, var(--green-600) 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    min-width: 160px;
}

.visit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.favorite-btn {
    background: var(--light-color);
    color: var(--gray-600);
    border: 1px solid var(--gray-300);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    min-width: 160px;
}

.favorite-btn:hover {
    background: var(--gray-100);
    color: var(--green-500);
    border-color: var(--green-300);
}

/* 大卡片容器 */
.big-card {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid var(--card-border);
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.big-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-100);
    position: relative;
}

.card-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 60px;
    height: 2px;
    background: linear-gradient(135deg, var(--green-500) 0%, var(--green-600) 100%);
}

.description-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--gray-600);
    white-space: pre-line;
    margin-bottom: 20px;
}

.status-maintenanceneiye {
    color: var(--orange-600);
}

.status-stableneiye {
    color: var(--green-600);
}

        /* 截图区域容器样式 */
        .top-screenshot-ad {
            margin-bottom: 24px;
            padding: 24px;
            background: var(--card-bg);
            border-radius: 16px;
            border: 1px solid var(--card-border);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
            position: relative; /* 关键：为装饰元素提供定位上下文 */
            overflow: visible; /* 确保装饰元素不被裁剪 */
        }
        
        /* 截图标题样式 */
        .category-header {
            margin-bottom: 16px;
            position: relative; /* 确保标题在装饰元素上方 */
            z-index: 5;
        }
        
        .category-title {
            font-size: 20px;
            font-weight: 700;
            color: var(--dark-color);
            margin: 0;
            padding-bottom: 8px;
            border-bottom: 2px solid var(--gray-100);
            display: inline-block;
        }
        
        /* 截图容器样式 */
        .screenshot-container {
            border: 1px solid var(--gray-600);
            border-radius: 8px;
            overflow: hidden;
            position: relative;
            max-width: 50%;
            margin: 0 auto;
            position: relative;
            z-index: 5; /* 确保图片在装饰元素上方 */
        }
        
        .screenshot-img {
            width: 100%;
            height: auto;
            min-height: 150px;
            object-cover: cover;
            display: block;
            transition: transform 0.5s ease;
        }
        
        .screenshot-container:hover .screenshot-img {
            transform: scale(1.02);
        }
        
        /* 广告角标样式 */
        .ad-badge {
            position: absolute;
            top: 12px;
            right: 12px;
            background: #ef4444;
            color: white;
            font-size: 12px;
            font-weight: 600;
            padding: 3px 8px;
            border-radius: 4px;
            z-index: 10;
            display: flex;
            align-items: center;
            gap: 4px;
            box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
        }
        
        /* 悬停按钮容器 */
        .hover-actions {
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
            padding: 20px 16px 16px;
            transform: translateY(100%);
            transition: transform 0.3s ease;
            text-align: center;
        }
        
        .screenshot-container:hover .hover-actions {
            transform: translateY(0);
        }
        
        /* 截图专用按钮样式 */
        .screenshot-btn {
            display: inline-block;
            background: var(--green-500);
            color: white;
            padding: 8px 18px;
            border-radius: 6px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
            font-size: 14px;
        }
        
        .screenshot-btn:hover {
            background: var(--green-600);
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
        }
        
        /* 两侧装饰元素 - 关键样式 */
        .screenshot-decoration {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 15%;
            height: 80%;
            pointer-events: none;
            z-index: 1; /* 确保在图片下方 */
        }
        
        .decoration-left {
            left: 2%;
        }
        
        .decoration-right {
            right: 2%;
        }
        
        /* 装饰线条（使用具体颜色值确保显示） */
        .decor-line {
            position: absolute;
            background: linear-gradient(90deg, #a7f3d0, #bfdbfe);
            opacity: 0.6;
            border-radius: 2px;
        }
        
        /* 左侧装饰线条布局 */
        .decoration-left .decor-line:nth-child(1) {
            width: 100%;
            height: 2px;
            top: 10%;
            transform: rotate(-3deg);
        }
        
        .decoration-left .decor-line:nth-child(2) {
            width: 80%;
            height: 2px;
            top: 30%;
            transform: rotate(2deg);
        }
        
        .decoration-left .decor-line:nth-child(3) {
            width: 60%;
            height: 2px;
            top: 50%;
            transform: rotate(-1deg);
        }
        
        .decoration-left .decor-line:nth-child(4) {
            width: 90%;
            height: 2px;
            top: 70%;
            transform: rotate(3deg);
        }
        
        /* 右侧装饰线条布局 */
        .decoration-right .decor-line:nth-child(1) {
            width: 100%;
            height: 2px;
            top: 15%;
            transform: rotate(3deg);
        }
        
        .decoration-right .decor-line:nth-child(2) {
            width: 70%;
            height: 2px;
            top: 40%;
            transform: rotate(-2deg);
        }
        
        .decoration-right .decor-line:nth-child(3) {
            width: 85%;
            height: 2px;
            top: 65%;
            transform: rotate(1deg);
        }
        
        /* 装饰小圆点（使用具体颜色值） */
        .decor-dot {
            position: absolute;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #4ade80;
            opacity: 0.5;
        }
        
        .decoration-left .decor-dot {
            background: #60a5fa;
        }
        
        /* 响应式调整 */
        @media (max-width: 768px) {
            .screenshot-container {
                max-width: 80%;
            }
            .screenshot-img {
                min-height: 120px;
            }
            .top-screenshot-ad {
                padding: 16px;
            }
            .screenshot-decoration {
                display: none !important; /* 强制隐藏 */
            }
        }
        
/* 类似推荐 */
.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 20px;
}

.similar-site {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--gray-50);
    border-radius: 12px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}
[data-theme="dark"] .similar-site {
    background: var(--gray-800);
}
[data-theme="dark"] .similar-site:hover {
    background: var(--gray-700);
}

.similar-site::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    opacity: 0;
    transition: all 0.3s ease;
}

.similar-site:hover {
    transform: translateY(-3px);
    border-color: var(--green-300);
    background: var(--green-50);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.15);
}

.similar-site:hover::before {
    opacity: 1;
}

.similar-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.similar-info {
    flex: 1;
}

.similar-name {
    font-size: 17px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 6px;
}

.similar-desc {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.5;
}

/* 搜索结果样式 */
.search-results-header {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--card-border);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.search-keyword {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.search-count {
    font-size: 14px;
    color: var(--gray-500);
}

.search-highlight {
    color: var(--green-500);
    font-weight: 600;
}

/* 搜索结果为空 */
.no-results {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--card-border);
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.no-results-icon {
    font-size: 48px;
    color: var(--gray-300);
    margin-bottom: 16px;
}

.no-results-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.no-results-desc {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 24px;
}

.suggestions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.suggestion-tag {
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.suggestion-tag:hover {
    background: var(--green-100);
    color: var(--green-600);
}

        /* 分页整体样式 */
        .pagination {
            background: var(--card-bg);
            border-radius: 12px;
            border: 1px solid var(--card-border);
            margin-top: 24px;
            margin-bottom: 24px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            padding: 15px 0;
        }
        
        /* 分页列表容器 */
        .page-navigator {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            margin: 0;
            padding: 0;
            list-style: none;
        }
        
        /* 分页项基础样式 */
        .page-navigator li {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            color: var(--gray-500);
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        /* 分页链接样式 */
        .page-navigator li a {
            display: inline-block;
            width: 100%;
            height: 100%;
            line-height: 36px;
            text-align: center;
            text-decoration: none;
            color: inherit;
            border-radius: 50%;
        }
        
        /* 省略号样式 */
        .page-navigator li span {
            display: inline-block;
            width: 100%;
            height: 100%;
            line-height: 36px;
            text-align: center;
        }
        
        /* 悬停效果 */
        .page-navigator li:not(.current):not(.disabled):hover {
            background: var(--gray-100);
            color: var(--green-500);
        }
        
        /* 当前页样式 */
        .page-navigator li.current {
            background: var(--green-500);
            color: white;
        }
        
        /* 禁用状态 */
        .page-navigator li.disabled {
            color: var(--gray-300);
            cursor: not-allowed;
        }
        
        .page-navigator li.disabled:hover {
            background: none;
            color: var(--gray-300);
        }
/* ==========================================
   5. 响应式调整
========================================== */
/* 卡片网格响应式 */
@media (max-width: 575.98px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .card-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .card-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .card-grid { grid-template-columns: repeat(6, 1fr); gap: 14px; }
}

@media (min-width: 1200px) {
    .card-grid { grid-template-columns: repeat(6, 1fr); gap: 16px; }
}

/* 通用响应式 */
@media (max-width: 991.98px) {
    .site-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .site-actions {
        flex-direction: row;
        margin-left: 0;
        margin-top: 20px;
        justify-content: center;
    }
    
    .similar-grid {
        grid-template-columns: 1fr;
    }
    
    .colorful-tags {
        justify-content: center;
        margin-top: 12px;
    }
}

@media (max-width: 767.98px) {
    .navbar-inner {
        flex-direction: row;
        flex-wrap: nowrap;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    .login-btn, .register-btn {
        padding: 6px 14px;
        font-size: 12px;
    }
    
    .search-container {
        max-width: 100%;
    }
    
    .category-title {
        font-size: 16px;
        color: var(--dark-color);
    }
    
    .category-card {
        padding: 18px;
    }
    
    .site-big-name {
        font-size: 24px;
    }
    
    .site-big-icon {
        width: 64px;
        height: 64px;
        font-size: 24px;
    }
    
    .site-meta {
        gap: 16px;
        justify-content: center;
    }
    
    .screenshot-placeholder {
        height: 280px;
    }
    
    .color-tag {
        font-size: 13px;
        padding: 8px 16px;
    }
    
    .big-card {
        padding: 24px;
    }
}

@media (max-width: 575.98px) {
    .site-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .visit-btn, .favorite-btn {
        width: 100%;
        min-width: auto;
    }
    
    .screenshot-placeholder {
        height: 220px;
    }
    
    .colorful-tags {
        gap: 8px;
        margin-top: 8px;
        padding: 0 8px;
    }
    
    .color-tag {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .big-card {
        padding: 20px;
    }
    
    .card-title {
        font-size: 18px;
    }
}