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

body {
    font-family: 'Noto Sans SC', 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8fafc;
    color: #334155;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 50px;
}

header h1 {
    color: #0f172a;
    margin-bottom: 12px;
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

header h1 i {
    margin-right: 12px;
    font-size: 2.2rem;
}

header p {
    color: #64748b;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 主页的卡片容器 */
.category-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.category-card {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.01);
    padding: 30px;
    width: 320px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.04);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    border-color: rgba(59, 130, 246, 0.1);
}

.category-card h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #0f172a;
    font-weight: 600;
}

.category-card p {
    color: #64748b;
    margin-bottom: 25px;
    font-size: 1rem;
}

/* 站点列表页面的容器 */
.sites-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.site-card {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.01);
    padding: 30px;
    width: 320px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}

.site-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.site-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

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

.site-card h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #0f172a;
    font-weight: 600;
}

.site-card p {
    color: #64748b;
    margin-bottom: 25px;
    font-size: 1rem;
}

/* 站点图标 */
.site-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #f1f5f9;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.site-icon i {
    font-size: 2rem;
    color: #3b82f6;
}

.site-icon.large {
    width: 90px;
    height: 90px;
}

.site-icon.large i {
    font-size: 2.5rem;
}

.site-card:hover .site-icon {
    transform: scale(1.1);
}

/* 单页面站点容器 */
.single-site-container {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.single-site-container .site-card {
    width: 450px;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2), 0 2px 4px -1px rgba(59, 130, 246, 0.1);
}

.btn i {
    margin-left: 8px;
    font-size: 1.1rem;
}

.btn:hover {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3), 0 4px 6px -2px rgba(59, 130, 246, 0.1);
}

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

.sub-btn {
    margin: 0 8px;
}

/* 返回链接 */
.back-link {
    text-align: center;
    margin: 30px 0;
}

.back-link a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    transition: all 0.2s ease;
}

.back-link a:hover {
    color: #2563eb;
}

.back-link a::before {
    content: '←';
    margin-right: 6px;
    font-size: 1.1em;
}

/* 特性部分 */
.features-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.feature-item {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px -3px rgba(0,0,0,0.05);
    padding: 25px;
    width: 300px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.03);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 20px -5px rgba(0,0,0,0.08);
}

.feature-item i {
    font-size: 2.2rem;
    color: #3b82f6;
    margin-bottom: 15px;
    display: inline-block;
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #0f172a;
    font-weight: 600;
}

.feature-item p {
    color: #64748b;
    font-size: 0.95rem;
}

/* Cookie状态区域 */
.cookie-status {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.01);
    padding: 1.8rem;
    margin-top: 2.5rem;
    border: 1px solid rgba(0,0,0,0.04);
}

.cookie-status h3 {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    color: #0f172a;
    font-weight: 600;
}

#cookie-info {
    margin-bottom: 1.2rem;
    padding: 1rem;
    background-color: #f1f5f9;
    border-radius: 8px;
    border-left: 4px solid #94a3b8;
}

#cookie-info.success {
    border-left-color: #22c55e;
    color: #16a34a;
    background-color: #f0fdf4;
}

#cookie-info.error {
    border-left-color: #ef4444;
    color: #dc2626;
    background-color: #fef2f2;
}

.cookie-actions {
    display: flex;
    gap: 1.2rem;
}

/* 页脚样式 */
footer {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    color: #94a3b8;
    border-top: 1px solid #e2e8f0;
    font-size: 0.9rem;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    header p {
        font-size: 1.1rem;
    }
    
    .category-card, .site-card {
        width: 100%;
        max-width: 350px;
    }
    
    .single-site-container .site-card {
        width: 100%;
        max-width: 380px;
    }
    
    .features-section {
        gap: 20px;
    }
    
    .feature-item {
        width: 100%;
        max-width: 320px;
    }
}

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

.container {
    animation: fadeIn 0.5s ease-out;
}

/* 自定义站点颜色 */
.site-card[data-type="plus"]::before,
#plus-btn {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.site-card[data-type="plus"] .site-icon i {
    color: #3b82f6;
}

.site-card[data-type="claude"]::before,
#claude-btn {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

.site-card[data-type="claude"] .site-icon i {
    color: #8b5cf6;
}

.site-card[data-type="libre"]::before,
#libre-btn {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.site-card[data-type="libre"] .site-icon i {
    color: #10b981;
}

.site-card[data-type="nnai"]::before,
#nnai-btn {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.site-card[data-type="nnai"] .site-icon i {
    color: #f59e0b;
}

.site-card[data-type="aggregate"]::before {
    background: linear-gradient(90deg, #0ea5e9, #7dd3fc);
}

.site-card[data-type="aggregate"] .site-icon i {
    color: #0ea5e9;
}

.site-card[data-type="dr"]::before,
#dr-btn {
    background: linear-gradient(90deg, #ec4899, #f472b6);
}

.site-card[data-type="dr"] .site-icon i {
    color: #ec4899;
}

.site-card[data-type="grok"]::before,
#grok-btn {
    background: linear-gradient(90deg, #84cc16, #a3e635);
}

.site-card[data-type="grok"] .site-icon i {
    color: #84cc16;
}

/* 暂时隐藏深度研究站点 */
.site-card[data-type="dr"] {
    display: none;
} 