/* 导航页面特定样式 */
.nav-container {
    max-width: 1400px;
}

.nav-hero {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 30px;
}

.nav-hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.nav-hero p {
    font-size: 1.3rem;
    opacity: 0.9;
}

/* 分类筛选区域 */
.filter-section {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.filter-header h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-btn {
    padding: 12px 24px;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    color: #495057;
}

.filter-btn:hover {
    background-color: #e9ecef;
    transform: translateY(-2px);
}

.filter-btn.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

/* 分类卡片网格 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.category-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.category-header {
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.category-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
}

.category-name {
    font-size: 1.4rem;
    font-weight: 600;
}

.link-list {
    padding: 25px;
}

.link-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.link-item:last-child {
    border-bottom: none;
}

.link-item:hover {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding-left: 10px;
}

.link-item a {
    text-decoration: none;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    transition: color 0.2s;
}

.link-item a:hover {
    color: #007bff;
}

.link-favicon {
    width: 18px;
    height: 18px;
    border-radius: 2px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-hero h1 {
        font-size: 2.2rem;
    }
    
    .nav-hero p {
        font-size: 1.1rem;
    }
    
    .filter-section {
        padding: 20px 15px;
    }
    
    .filter-buttons {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .category-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-header {
        padding: 20px;
    }
    
    .category-name {
        font-size: 1.2rem;
    }
    
    .link-list {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .nav-hero {
        padding: 30px 15px;
    }
    
    .nav-hero h1 {
        font-size: 1.8rem;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .category-icon {
        font-size: 1.5rem;
        width: 40px;
        height: 40px;
    }
}