/* 新闻页面英雄区域 */
.news-hero {
    height: 120px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
}

/* 背景图片容器 */
.news-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 96px;
    height: 96px;
    background-image: url('../img/news-hero.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.8;
    z-index: 1;
}

.news-hero h1 {
    color: #000;
    font-size: 36px;
    font-weight: 500;
    position: relative;
    z-index: 2;
    margin: 0;
}

/* 新闻网格部分 */
.news-grid-section {
    padding: 36px 0 60px;
    background: #fff;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

/* 新闻卡片样式 */
.news-card {
    background: transparent;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    width: 100%;
    padding-bottom: 66.67%; /* 3:2 比例 */
}

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

/* 放大镜图标遮罩层 */
.news-image::after {
    content: '\F52A';
    font-family: 'bootstrap-icons';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 59, 198, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #fff;
    opacity: 0;
    transition: all 0.3s ease;
}

/* Hover效果 */
.news-card:hover .news-image::after {
    opacity: 1;
}

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

.news-content {
    padding: 20px 0;
}

.news-content h3 {
    color: #000;
    font-size: 16px;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-date {
    color: #000;
    font-size: 14px;
    opacity: 0.3;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 60px;
}

.pagination a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
}

/* 上一页/下一页按钮 */
.pagination a:first-child,
.pagination a:last-child {
    font-family: 'bootstrap-icons';
}

.pagination a:first-child::before {
    content: '\F284';  /* Bootstrap Icons 的左箭头图标 */
}

.pagination a:last-child::before {
    content: '\F285';  /* Bootstrap Icons 的右箭头图标 */
}

.pagination a:hover {
    background-color: #F5F5F5;
}

.pagination a.page-num-current {
    background: #000;
    border-color: #000;
    color: #fff;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .news-hero::before {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 767px) {
    .news-hero {
        height: 100px;
    }

    .news-hero::before {
        width: 72px;
        height: 72px;
    }

    .news-hero h1 {
        font-size: 28px;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .news-grid-section {
        padding: 24px 0 40px;
    }

    .news-content {
        padding: 15px 0;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .pagination {
        gap: 4px;
    }

    /* 移除之前的隐藏规则 */
    .pagination a:not(:first-child):not(:last-child):not(.active):not(.active + a):not(:nth-last-child(2)) {
        display: flex;
    }
}

/* 在更小的屏幕上进行调整 */
@media (max-width: 480px) {
    .pagination a {
        width: clamp(28px, 3vw, 32px);
        height: clamp(28px, 3vw, 32px);
        font-size: 14px;
    }
} 