/* ============================================================
   2026-11-18 新闻中心列表卡片化（lists.html）
   选择器限定 news- 前缀，与旧 .new_list/.fenye 完全解耦，
   删掉 base.html 里本文件引用即可整体回退。
   ============================================================ */
.news-wrap {
    width: 1080px;
    max-width: calc(100% - 30px);
    margin: 52px auto 72px
}

/* ---------- 置顶特色卡：左图右文 ---------- */
.news-feature {
    display: flex;
    gap: 28px;
    align-items: stretch;
    padding: 22px;
    background: #fff;
    border: 1px solid #e8efe9;
    border-radius: 14px;
    box-shadow: 0 8px 26px rgba(31, 74, 46, .07);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease
}

.news-feature:hover {
    transform: translateY(-4px);
    border-color: #bcdcc4;
    box-shadow: 0 18px 38px rgba(31, 74, 46, .14)
}

.news-feature-media {
    flex: 0 0 42%;
    min-height: 268px;
    border-radius: 10px;
    overflow: hidden;
    background: linear-gradient(135deg, #e8f4ea 0%, #cfe6d5 100%);
    position: relative
}

.news-feature-media img,
.news-card-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .45s ease
}

.news-feature:hover .news-feature-media img,
.news-card:hover .news-card-media img {
    transform: scale(1.05)
}

.news-feature-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8px 6px
}

.news-date {
    display: inline-block;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .5px;
    color: #69b77a;
    margin-bottom: 12px
}

.news-feature-body h2 {
    margin: 0 0 14px;
    font-size: 23px;
    line-height: 1.4;
    font-weight: 700;
    color: #1f4a2e
}

.news-feature-body p {
    margin: 0 0 18px;
    font-size: 14.5px;
    line-height: 1.85;
    color: #607068
}

.news-more {
    display: inline-block;
    font-size: 13.5px;
    font-weight: 700;
    color: #2e8b4f
}

/* 无图卡片的占位文字 */
.news-noimg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 6px;
    color: rgba(47, 122, 70, .35)
}

/* ---------- 其余新闻：3 列网格 ---------- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 26px
}

.news-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e8efe9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(31, 74, 46, .06);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: #bcdcc4;
    box-shadow: 0 16px 34px rgba(31, 74, 46, .13)
}

.news-card-media {
    position: relative;
    padding-top: 60%;
    overflow: hidden;
    background: linear-gradient(135deg, #e8f4ea 0%, #cfe6d5 100%)
}

.news-card-media img {
    position: absolute;
    inset: 0
}

.news-card-body {
    padding: 18px 18px 22px
}

.news-card-body .news-date {
    margin-bottom: 8px;
    font-size: 12px
}

.news-card-body h3 {
    margin: 0 0 10px;
    font-size: 15.5px;
    line-height: 1.5;
    font-weight: 700;
    color: #1f4a2e
}

.news-card-body p {
    margin: 0;
    font-size: 13px;
    line-height: 1.8;
    color: #7a8a80
}

/* ---------- 分页 ---------- */
.news-pager-wrap {
    margin-top: 46px;
    text-align: center
}

.news-pager-wrap ul {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0
}

.news-pager-wrap li a {
    display: inline-block;
    min-width: 38px;
    padding: 8px 12px;
    font-size: 13.5px;
    color: #46564d;
    background: #fff;
    border: 1px solid #e2eae4;
    border-radius: 6px
}

.news-pager-wrap li a:hover,
.news-pager-wrap li a.xz {
    color: #fff;
    background: #2e8b4f;
    border-color: #2e8b4f
}

/* ---------- 响应式 ---------- */
@media screen and (max-width: 1080px) {
    .news-wrap {
        margin: 40px auto 56px
    }
    .news-feature {
        gap: 20px;
        padding: 18px
    }
    .news-feature-media {
        flex-basis: 40%;
        min-height: 220px
    }
    .news-feature-body h2 {
        font-size: 20px
    }
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px
    }
}

@media screen and (max-width: 640px) {
    .news-feature {
        flex-direction: column;
        gap: 0
    }
    .news-feature-media {
        min-height: 180px;
        padding-top: 56%;
        flex-basis: auto
    }
    .news-feature-body {
        padding: 18px 6px 6px
    }
    .news-feature-body h2 {
        font-size: 19px
    }
    .news-grid {
        grid-template-columns: 1fr
    }
}
