/* 知识库页面样式 */

.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23667eea"/><path d="M30,20 L70,20 L75,40 L25,40 Z" fill="none" stroke="%23764ba2" stroke-width="2"/><line x1="25" y1="40" x2="25" y2="80" stroke="%23764ba2" stroke-width="2"/><line x1="75" y1="40" x2="75" y2="80" stroke="%23764ba2" stroke-width="2"/><line x1="30" y1="80" x2="70" y2="80" stroke="%23764ba2" stroke-width="2"/></svg>');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 80px 0;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.page-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.knowledge-content {
    padding: 20px 0 60px;
}

.knowledge-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.category-card {
    background: white;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

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

.category-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #667eea;
}

.category-card h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.4rem;
}

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

.category-card .btn {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.article-section {
    margin-bottom: 60px;
}

.article-section h2 {
    text-align: left;
    margin-bottom: 30px;
}

.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.article-item {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.article-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.article-item h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 1.3rem;
}

.article-meta {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.article-excerpt {
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
}

.read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #764ba2;
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .page-header {
        padding: 60px 0;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .knowledge-categories {
        grid-template-columns: 1fr;
    }

    .article-list {
        grid-template-columns: 1fr;
    }
}