/* 新闻列表页样式 */

.page-header {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.page-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
}

.page-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

/* 新闻分类 */
.news-categories {
    padding: 40px 0;
    background: var(--bg-white);
    border-bottom: 2px solid var(--border-color);
}

.category-tabs {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.category-tab {
    padding: 12px 32px;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.category-tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* 新闻列表 */
.news-list-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.news-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.news-list-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    cursor: pointer;
}

.news-list-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.news-list-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.news-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-list-card:hover .news-list-image img {
    transform: scale(1.05);
}

.news-list-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 16px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.news-list-content {
    padding: 28px;
}

.news-list-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-light);
}

.news-list-meta i {
    margin-right: 6px;
}

.news-list-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-list-excerpt {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-list-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
}

.news-list-link:hover {
    color: var(--primary-dark);
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.pagination-btn {
    padding: 12px 16px;
    min-width: 48px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-dark);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

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

/* 响应式 */
@media (max-width: 968px) {
    .page-title {
        font-size: 36px;
    }
    
    .news-list-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .page-title {
        font-size: 32px;
    }
    
    .category-tabs {
        flex-direction: column;
    }
    
    .category-tab {
        width: 100%;
        text-align: center;
    }
    
    .news-list-grid {
        grid-template-columns: 1fr;
    }
}
