:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
    background: #f8f9fa;
    padding-top: 70px;
}

/* 分类头部 */
.category-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 100px 0;
    margin-bottom: 40px;
}

.category-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.category-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 文章卡片 */
.article-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.article-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.article-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
}

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

.article-cover {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-color: #e9ecef;
}

.article-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-content h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-content p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #999;
    padding-top: 15px;
    border-top: 1px solid #eee;
    flex-wrap: wrap;
    gap: 10px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 分页 */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.pagination {
    display: flex;
    gap: 10px;
}

.pagination a,
.pagination span {
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    background: #fff;
    border: 1px solid #ddd;
    transition: all 0.3s;
}

.pagination a:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.pagination .active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state i {
    font-size: 64px;
    color: #ccc;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #666;
    margin-bottom: 10px;
}

.empty-state p {
    color: #999;
}

/* 分类页底部常见问题入口 */
.faq-bottom-section {
    margin: 20px 0 50px;
}

.faq-bottom-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 25px;
}

.faq-bottom-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.faq-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.faq-bottom-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    background: #f5f7ff;
    color: #4c5fd7;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.faq-bottom-link:hover {
    background: #e9eeff;
    color: #3348c6;
    text-decoration: none;
}

/* 响应式 */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    .category-header {
        padding: 40px 0;
        margin-bottom: 30px;
    }

    .category-header h1 {
        font-size: 1.8rem;
    }

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

    .article-cover {
        height: 150px;
    }

    .article-content {
        padding: 15px;
    }
}
