/* 新闻列表样式 */
.news-section {
    padding: 80px 0;
    background: #fff;
}

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

.news-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}
.news-card a{
    text-decoration: none;
    color: #000;
}

.news-card:hover {
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    .read-more{
        color: #23C16E;
    }
}

.news-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
}

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

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

.news-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-content h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 50px;
}

.news-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.news-date {
    color: #999;
    font-size: 14px;
}

.read-more {
    color: #23C16E;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.read-more:hover {
    color: #1a9954;
    text-decoration: none;
}

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

.page-num,
.prev-page,
.next-page {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: #000000;
    text-decoration: none;
    transition: all 0.3s;
    background: #F9F9F9;
}

.page-num:hover,
.prev-page:hover,
.next-page:hover {
    color: #23C16E;
    text-decoration: none;
}

.page-num.active {
    background: #23C16E;
    color: #fff;
}

.page-dots {
    color: #000000;
    margin: 0 5px;
}

.arrow-left,
.arrow-right {
    border: solid #000000;
    border-width: 0 2px 2px 0;
    display: inline-block;
    padding: 3px;
}

.arrow-left {
    transform: rotate(135deg);
}

.arrow-right {
    transform: rotate(-45deg);
}

/* 响应式样式 */
@media (max-width: 991.98px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .news-image {
        height: 200px;
    }

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

@media (max-width: 767.98px) {
    .news-section {
        padding: 40px 0;
    }

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

    .news-image {
        height: 200px;
    }

    .news-content h3 {
        font-size: 18px;
        height: auto;
        -webkit-line-clamp: 2;
    }

    .news-content p {
        margin-bottom: 15px;
    }

    .pagination {
        margin-top: 40px;
    }

    .page-num,
    .prev-page,
    .next-page {
        width: 35px;
        height: 35px;
    }
}

/* 新闻详情页样式 */
.news-detail-section {
    padding: 60px 0;
    background: #fff;
}

.news-detail-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.news-detail-title {
    font-size: 32px;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 20px;
    text-align: center;
}

.news-detail-info {
    text-align: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    margin-bottom: 30px;
}

.news-detail-date,
.news-detail-source {
    color: #999;
    font-size: 14px;
}

.news-detail-author {
    display: flex;
    gap: 15px;
    color: #999;
    font-size: 14px;
}

.news-detail-text {
    max-width: 100% !important;
    margin-top: 30px;
    text-align: left;
    p,div,h1,h2,h3,h4,h5,h6,span{
        max-width: 100% !important;
    }
}


.news-detail-text p,.news-detail-text div {
    text-indent: 2em;
    font-size: 16px !important;
    color: #444 !important;
    line-height: 2 !important;
    margin-bottom: 8px !important;
    text-align: left !important;
}

.news-detail-text img {
    max-width: 100% !important;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    background: #F8F8F8;
    padding: 20px;
}

.news-detail-img {
    max-width: 1160px !important;
    border-radius: 8px;
    margin: 20px auto;
}

/* 响应式样式 */
@media (max-width: 991.98px) {
    .news-detail-section {
        padding: 50px 0;
    }

    .news-detail-title {
        font-size: 28px;
    }
}

@media (max-width: 767.98px) {
    .news-detail-section {
        padding: 40px 0;
    }

    .news-detail-title {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .news-detail-info {
        gap: 15px;
        margin-bottom: 20px;
    }

    .news-detail-text {
        font-size: 14px;
        line-height: 1.6;
    }

    .news-detail-img {
        margin: 20px auto;
        padding: 0;
        max-width: 100% !important;
    }
    .news-detail-text{
        max-width: 100% !important;
        p,div,h1,h2,h3,h4,h5,h6,span{
            max-width: 100% !important;
        }
    }
    .news-detail-text img{
        background: none !important;
        padding: 0;
    }
} 