/* 知识中心样式 */

/* 知识中心横幅 */
.knowledge-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.knowledge-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.knowledge-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* 知识分类网格 */
.knowledge-categories {
    padding: 80px 0;
    background: #f8f9fa;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.category-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
    font-weight: 600;
}

.category-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.category-stats {
    background: #f0f4ff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
}

.category-stats span {
    color: #667eea;
    font-weight: 500;
    font-size: 0.9rem;
}

/* 最新文章 */
.latest-articles {
    padding: 80px 0;
}

.latest-articles h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.article-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.article-category {
    background: #667eea;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 1rem;
}

.article-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: #333;
    line-height: 1.4;
}

.article-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #5a6fd8;
    text-decoration: underline;
}

/* 主页知识卡片样式 */
.knowledge-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.knowledge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .knowledge-hero h1 {
        font-size: 2.5rem;
    }
    
    .knowledge-hero p {
        font-size: 1rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .category-card {
        padding: 1.5rem;
    }
    
    .category-icon {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .knowledge-hero {
        padding: 60px 0;
    }
    
    .knowledge-hero h1 {
        font-size: 2rem;
    }
    
    .knowledge-categories,
    .latest-articles {
        padding: 60px 0;
    }
    
    .category-card {
        padding: 1rem;
    }
    
    .article-card {
        padding: 1rem;
    }
} 