/* 新闻页面样式 */

/* Banner区域 */
.news-banner {
    background: url(../images/about/news-bg.png) no-repeat;
    background-size: cover;
    height: 64rem;
}

.banner-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.news-banner-title {
    font-size: 5.2rem;
    color: white;
    font-weight: bold;
    margin-bottom: 1.6rem;
    position: relative;
    z-index: 1;
}

.news-banner-subtitle {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

/* 资讯中心区域 */
.news-section {
    padding: 8rem 0;
    background: #F7F8FB;
}

.news-section-title {
    font-size: 3.6rem;
    color: #333;
    font-weight: bold;
    margin-bottom: 2rem;
    text-align: left;
}

/* 新闻网格 */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 6rem;
    position: relative;
}

/* 第一排和第二排之间的分隔线 */
.news-card:nth-child(4)::before {
    content: '';
    position: absolute;
    top: -1.5rem;
    left: 0;
    width: calc(300% + 6rem);
    height: 0.1rem;
    background: #000;
}

/* 新闻卡片 */
.news-card {
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    text-decoration: none;
}

.news-card:hover {
    /*transform: translateY(-0.8rem);*/
}

.news-image {
    width: 100%;
    height: 20rem;
    overflow: hidden;
    background: #f0f0f0;
}

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

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

.news-content {
    padding: 2.4rem 0;
}

.news-date {
    font-size: 1.6rem;
    color: #999;
    margin-bottom: 0.6rem;
}

.news-title {
    font-size: 2rem;
    color: #333;
    font-weight: 600;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-description {
    font-size: 1.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #666;
}

.news-line {
    width: 100%;
    height: 0.1rem;
    background: linear-gradient(90deg, rgba(35, 167, 253, 1) 0%, rgba(253, 26, 226, 1) 100%);
    position: absolute;
    left: 0;
    top: 48%;

}

/* 分页样式已在 styles.css 统一定义，此处仅保留容器间距 */
.pagination {
    margin-top: 4rem;
}

/* 响应式设计 */
@media (max-width: 120rem) {
    .news-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 76.8rem) {
    .news-banner {
        padding: 10rem 0 6rem;
    }

    .news-banner-title {
        font-size: 2rem;
    }

    .news-banner-subtitle {
        font-size: 1.4rem;
    }

    .news-section {
        padding: 6rem 0;
    }

    .news-section-title {
        font-size: 1.5rem;
        margin-bottom: 4rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .news-image {
        height: 20rem;
    }

    .pagination {
        gap: 0.4rem;
    }

    .pagination-btn,
    .pagination-number {
        width: 3.6rem;
        height: 3.6rem;
        font-size: 1.2rem;
    }
}