/* ========== 新闻列表页专属样式 ========== */
/* 注意：过渡模块 .product-detail-banner 已在 common.css 中定义，此处不再重复 */

.news-page {
    padding: 50px 0;
}
.page-header {
    text-align: center;
    margin-bottom: 40px;
}
.page-header h1 {
    font-size: 36px;
    color: #1f2a3e;
    margin-bottom: 10px;
}
.page-header p {
    font-size: 16px;
    color: #5a6e8a;
}

/* 分类标签页 */
.news-tabs {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    border-bottom: 1px solid #eef2f8;
    padding-bottom: 10px;
}
.tab-btn {
    font-size: 18px;
    font-weight: 500;
    padding: 8px 20px;
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}
.tab-btn.active {
    color: #1a5aaa;
}
.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #1a5aaa;
    border-radius: 3px;
}
.tab-btn:hover {
    color: #1a5aaa;
}

/* 新闻列表（紧凑型） */
.news-list {
    display: block;
}
.news-item {
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s;
}
.news-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.news-img {
    flex-shrink: 0;
    width: 100px;
    height: 75px;
    border-radius: 12px;
    overflow: hidden;
}
.news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.news-item:hover .news-img img {
    transform: scale(1.05);
}
.news-content {
    flex: 1;
}
.news-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}
.news-title a {
    text-decoration: none;
    color: #1f2a3e;
    transition: color 0.2s;
}
.news-title a:hover {
    color: #1a5aaa;
}
.news-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #8a9aaa;
    margin-bottom: 10px;
}
.news-summary {
    font-size: 14px;
    color: #5a6e8a;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 分页 */
.pagination {
    margin-top: 40px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    background: #fff;
    border-radius: 10px;
    text-decoration: none;
    color: #4a5568;
    font-size: 14px;
    border: 1px solid #e2edf7;
    transition: all 0.2s;
    cursor: pointer;
}
.pagination a.active {
    background: #1a5aaa;
    color: #fff;
    border-color: #1a5aaa;
    box-shadow: 0 4px 8px rgba(26,90,170,0.2);
}
.pagination a:hover:not(.active) {
    background: #ecf5fd;
    border-color: #b9d3f2;
    color: #1a5aaa;
}

/* 响应式 */
@media (max-width: 768px) {
    .news-tabs {
        flex-wrap: wrap;
        gap: 15px;
    }
    .news-item {
        flex-direction: column;
        gap: 12px;
    }
    .news-img {
        width: 100%;
        height: 160px;
    }
}