/* 知识库页面样式 */

.knowledge-header {
    background: linear-gradient(135deg, #2c8a5c 0%, #4caf7d 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

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

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

.knowledge-content {
    padding: 50px 0;
}

.knowledge-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.category-btn {
    background-color: #f0f7f4;
    border: none;
    padding: 12px 25px;
    margin: 5px 10px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.category-btn:hover,
.category-btn.active {
    background-color: #2c8a5c;
    color: white;
}

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

.knowledge-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.knowledge-image {
    height: 180px;
    background-color: #e8f5e9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 4rem;
    opacity: 0.7;
}

.knowledge-text {
    padding: 25px;
}

.knowledge-text h3 {
    color: #2c8a5c;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

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

.knowledge-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.knowledge-meta .date {
    color: #999;
    font-size: 0.9rem;
}

.knowledge-meta .category {
    background-color: #2c8a5c;
    color: white;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.knowledge-search {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.knowledge-search input {
    flex: 1;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 30px 0 0 30px;
    font-size: 1rem;
    outline: none;
}

.knowledge-search button {
    background-color: #2c8a5c;
    color: white;
    border: none;
    padding: 0 25px;
    border-radius: 0 30px 30px 0;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s;
}

.knowledge-search button:hover {
    background-color: #246e4a;
}

@media (max-width: 768px) {
    .knowledge-header h1 {
        font-size: 2rem;
    }

    .knowledge-header p {
        font-size: 1rem;
    }

    .knowledge-categories {
        flex-direction: column;
        align-items: center;
    }

    .category-btn {
        margin: 5px;
    }

    .knowledge-search {
        flex-direction: column;
    }

    .knowledge-search input {
        border-radius: 30px;
        margin-bottom: 10px;
    }

    .knowledge-search button {
        border-radius: 30px;
        padding: 15px;
    }
}