/* AI网址导航页面样式 - 使用styles.css统一的高端page-header样式 */

.btn-submit-site {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    color: var(--primary-color);
    padding: 10px 24px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
}

.btn-submit-site:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    background: #f8f9fa;
}

/* 分类筛选 - 横向滚动 */
.category-filter {
    background: white;
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    position: sticky;
    top: 70px;
    z-index: 100;
    border-bottom: 1px solid #f0f0f0;
}

.filter-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: thin;
}

.filter-bar::-webkit-scrollbar {
    height: 4px;
}

.filter-bar::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

.filter-btn {
    padding: 10px 18px;
    border: 1px solid #e8e8e8;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-weight: 500;
}

.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
    background: #f5f3ff;
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.4);
}

.filter-btn i {
    font-size: 0.85rem;
}

/* 热门推荐 */
.hot-sites {
    padding: 40px 0 30px;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.section-title h2 {
    margin: 0;
    font-size: 1.4rem;
    color: #333;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-count {
    color: #999;
    font-size: 0.9rem;
}

.hot-sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* 热门网站卡片 - 大卡片样式 */
.hot-site-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.hot-site-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.hot-site-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.hot-rank {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.site-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
    position: relative;
    overflow: hidden;
}

.site-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102,126,234,0.1), rgba(118,75,162,0.1));
}

/* 不同分类的图标颜色 */
.hot-site-card[data-category="AI聊天助手"] .site-icon,
.site-card[data-category="AI聊天助手"] .site-icon { background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%); }
.hot-site-card[data-category="AI图像工具"] .site-icon,
.site-card[data-category="AI图像工具"] .site-icon { background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%); }
.hot-site-card[data-category="AI视频工具"] .site-icon,
.site-card[data-category="AI视频工具"] .site-icon { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); }
.hot-site-card[data-category="AI音频工具"] .site-icon,
.site-card[data-category="AI音频工具"] .site-icon { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); }
.hot-site-card[data-category="AI编程工具"] .site-icon,
.site-card[data-category="AI编程工具"] .site-icon { background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%); }
.hot-site-card[data-category="AI智能体"] .site-icon,
.site-card[data-category="AI智能体"] .site-icon { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); }
.hot-site-card[data-category="AI搜索引擎"] .site-icon,
.site-card[data-category="AI搜索引擎"] .site-icon { background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%); }
.hot-site-card[data-category="AI办公工具"] .site-icon,
.site-card[data-category="AI办公工具"] .site-icon { background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%); }
.hot-site-card[data-category="AI开发平台"] .site-icon,
.site-card[data-category="AI开发平台"] .site-icon { background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%); }
.hot-site-card[data-category="AI写作工具"] .site-icon,
.site-card[data-category="AI写作工具"] .site-icon { background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%); }
.hot-site-card[data-category="AI设计工具"] .site-icon,
.site-card[data-category="AI设计工具"] .site-icon { background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%); }
.hot-site-card[data-category="AI学习网站"] .site-icon,
.site-card[data-category="AI学习网站"] .site-icon { background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%); }
.hot-site-card[data-category="AI模型评测"] .site-icon,
.site-card[data-category="AI模型评测"] .site-icon { background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%); }
.hot-site-card[data-category="AI内容检测"] .site-icon,
.site-card[data-category="AI内容检测"] .site-icon { background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%); }
.hot-site-card[data-category="AI提示指令"] .site-icon,
.site-card[data-category="AI提示指令"] .site-icon { background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); }
.hot-site-card[data-category="AI训练模型"] .site-icon,
.site-card[data-category="AI训练模型"] .site-icon { background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%); }

.site-info {
    flex: 1;
    min-width: 0;
}

.site-info h3 {
    margin: 0 0 6px 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-info p {
    margin: 0;
    font-size: 0.85rem;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-votes {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #f43f5e;
    font-size: 0.9rem;
    font-weight: 600;
    flex-shrink: 0;
}

.site-votes i {
    font-size: 0.85rem;
}

/* 全部网站 */
.all-sites {
    padding: 30px 0 60px;
}

.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 16px;
}

/* 普通网站卡片 */
.site-card {
    background: white;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #f5f5f5;
}

.site-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border-color: #ddd;
}

.site-card .site-icon {
    width: 48px;
    height: 48px;
    font-size: 1.6rem;
}

.site-card .site-info h3 {
    font-size: 1rem;
}

.site-card .site-info p {
    font-size: 0.8rem;
}

.site-card .site-votes {
    font-size: 0.8rem;
}

/* 网站详情弹窗 */
.site-modal-content {
    max-width: 580px;
    border-radius: 20px;
    overflow: hidden;
}

.site-detail-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin: -20px -20px 25px -20px;
}

.site-detail-header .site-icon {
    width: 75px;
    height: 75px;
    font-size: 2.5rem;
    background: rgba(255,255,255,0.2);
    border: 2px solid rgba(255,255,255,0.3);
}

.site-detail-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.6rem;
    font-weight: 700;
}

.site-detail-info p {
    margin: 0;
    opacity: 0.9;
    font-size: 0.95rem;
}

.site-detail-stats {
    display: flex;
    justify-content: space-around;
    padding: 25px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 14px;
    margin-bottom: 25px;
}

.detail-stat {
    text-align: center;
}

.detail-stat .value {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.detail-stat .label {
    font-size: 0.85rem;
    color: #888;
    margin-top: 4px;
}

.site-detail-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.btn-visit-site {
    flex: 1;
    padding: 16px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-visit-site:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn-vote-site {
    padding: 16px 28px;
    border: 2px solid #f43f5e;
    background: white;
    color: #f43f5e;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-vote-site:hover {
    background: #f43f5e;
    color: white;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.3);
}

.site-detail-desc {
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
}

.site-detail-desc h4 {
    margin: 0 0 12px 0;
    font-size: 1rem;
    color: #333;
    font-weight: 600;
}

.site-detail-desc p {
    margin: 0;
    color: #666;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* 搜索框聚焦样式 */
.search-box input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

/* 分类标签样式 */
.category-tag {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 20px;
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    margin-top: 8px;
}

/* 响应式 */
@media (max-width: 768px) {
    .sites-header {
        padding: 40px 0;
    }
    
    .sites-header h1 {
        font-size: 1.8rem;
    }
    
    .category-filter {
        top: 60px;
    }
    
    .filter-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }
    
    .filter-btn i {
        display: none;
    }
    
    .hot-sites-grid {
        grid-template-columns: 1fr;
    }
    
    .sites-grid {
        grid-template-columns: 1fr;
    }
    
    .site-detail-header {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    
    .site-detail-actions {
        flex-direction: column;
    }
    
    .btn-visit-site, .btn-vote-site {
        width: 100%;
        justify-content: center;
    }
}

/* 分类颜色指示器 */
.category-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 6px;
}

.category-indicator.AI聊天助手 { background: #0ea5e9; }
.category-indicator.AI图像工具 { background: #ec4899; }
.category-indicator.AI视频工具 { background: #f59e0b; }
.category-indicator.AI音频工具 { background: #3b82f6; }
.category-indicator.AI编程工具 { background: #8b5cf6; }
.category-indicator.AI智能体 { background: #10b981; }
.category-indicator.AI搜索引擎 { background: #a855f7; }
.category-indicator.AI办公工具 { background: #f97316; }
.category-indicator.AI开发平台 { background: #6366f1; }
.category-indicator.AI写作工具 { background: #f43f5e; }
.category-indicator.AI设计工具 { background: #14b8a6; }
.category-indicator.AI学习网站 { background: #06b6d4; }
.category-indicator.AI模型评测 { background: #eab308; }
.category-indicator.AI内容检测 { background: #ef4444; }
.category-indicator.AI提示指令 { background: #eab308; }
.category-indicator.AI训练模型 { background: #8b5cf6; }

/* 滚动提示 */
.filter-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(to right, transparent, white);
    pointer-events: none;
}
