/* ==========================================================================
   双福环保 · 新闻中心 news.css（内页专属，叠加 base.css + v2.css + list.css）
   复用 base.css 的 header / footer / search-strip / drawer / float-bar
   复用 v2.css 的吸顶负 top / 导航胶囊 / 下拉 / 入场 reveal / hover 效果
   内页 banner(.page-hero) 与面包屑(.crumbs) 样式来自 list.css，本页同时引入 list.css
   本文件只补充新闻专属：分类侧栏、新闻卡片网格、置顶卡、详情正文、标签云
   ========================================================================== */

/* ---------- 1. 主体布局（复用 list 页网格） ---------- */
.news-body {
    padding: 46px 0 70px;
    background: #f6f7f8;
}
.news-body__grid {
    display: grid;
    grid-template-columns: 264px 1fr;
    gap: 24px;
    align-items: start;
}

/* ---------- 2. 右侧容器 ---------- */
.news-main {
    min-width: 0;
}
.news-main__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px 18px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--green);
}
.news-main__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--ink);
}
.news-main__count {
    font-size: 13px;
    color: #9aa2ae;
    white-space: nowrap;
}

/* ---------- 3. 置顶头条卡 ---------- */
.news-feature {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-s);
    margin-bottom: 22px;
    transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.news-feature:hover { box-shadow: var(--shadow-m); transform: translateY(-3px); }
.news-feature__img {
    position: relative;
    min-height: 240px;
    overflow: hidden;
    background: #f2f4f5;
}
.news-feature__img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}
.news-feature:hover .news-feature__img img { transform: scale(1.06); }
.news-feature__tag {
    position: absolute;
    left: 14px;
    top: 14px;
    z-index: 1;
    padding: 4px 12px;
    background: var(--green);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
}
.news-feature__body {
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.news-feature__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.5;
    transition: color .25s;
}
.news-feature:hover .news-feature__title { color: var(--green); }
.news-feature__meta {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 12.5px;
    color: #9aa2ae;
}
.news-feature__meta span { display: inline-flex; align-items: center; gap: 5px; }
.news-feature__meta svg { width: 14px; height: 14px; }
.news-feature__desc {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.9;
    color: #6b7482;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-feature__more {
    margin-top: 18px;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    background: var(--green);
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 4px;
    transition: background .25s, transform .25s var(--ease);
}
.news-feature__more svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.news-feature__more:hover { background: var(--green-d); }
.news-feature__more:hover svg { transform: translateX(4px); }

/* ---------- 4. 新闻卡片网格 ---------- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.news-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow-s);
    transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.news-card:hover { box-shadow: var(--shadow-m); transform: translateY(-4px); }
.news-card__img {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f2f4f5;
}
.news-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}
.news-card:hover .news-card__img img { transform: scale(1.08); }
.news-card__cat {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 1;
    padding: 3px 10px;
    background: rgba(10, 39, 35, .78);
    color: #fff;
    font-size: 11.5px;
    border-radius: 3px;
    backdrop-filter: blur(3px);
}
.news-card__body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.news-card__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .25s;
}
.news-card:hover .news-card__title { color: var(--green); }
.news-card__desc {
    margin-top: 10px;
    font-size: 13.5px;
    line-height: 1.8;
    color: #6b7482;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.news-card__meta {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    color: #9aa2ae;
}
.news-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.news-card__meta svg { width: 13px; height: 13px; }

/* ---------- 5. 分页 ---------- */
.news-pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 6px;
}
.news-pagination a,
.news-pagination span {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-size: 13.5px;
    color: #4a5361;
    transition: background .25s, color .25s, border-color .25s;
}
.news-pagination a:hover { background: var(--green); border-color: var(--green); color: #fff; }
.news-pagination span.is-cur {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
    font-weight: 700;
}
.news-pagination span.is-disabled { color: #c2c7ce; cursor: default; }

/* ---------- 6. 详情页 ---------- */
.news-article {
    background: #fff;
    border-radius: 6px;
    box-shadow: var(--shadow-s);
    padding: 34px 38px 40px;
    min-width: 0;
}
.news-article__head {
    padding-bottom: 22px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--line);
    text-align: center;
}
.news-article__title {
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.45;
}
.news-article__meta {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #8a929e;
}
.news-article__meta span { display: inline-flex; align-items: center; gap: 5px; }
.news-article__meta svg { width: 14px; height: 14px; color: #9aa2ae; }

/* 正文 */
.news-article__body {
    margin-top: 26px;
    font-size: 15.5px;
    line-height: 2.05;
    color: #3a4350;
}
.news-article__body p { margin: 0 0 16px; text-indent: 2em; }
.news-article__body p.no-indent { text-indent: 0; }
.news-article__body strong { color: var(--ink); }
.news-article__body img {
    display: block;
    max-width: 100%;
    margin: 20px auto;
    border-radius: 6px;
}
.news-article__body figcaption {
    text-align: center;
    font-size: 13px;
    color: #9aa2ae;
    margin: -12px 0 18px;
}

/* 正文小标题 */
.news-article__body h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--green-d);
    margin: 28px 0 14px;
    padding-left: 12px;
    border-left: 4px solid var(--green);
    text-indent: 0;
}

/* 文末标签云 */
.news-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed var(--line);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #6b7482;
}
.news-tags b { color: var(--ink); }
.news-tags a {
    display: inline-flex;
    padding: 4px 12px;
    background: #f2f6f4;
    border: 1px solid #e2efe7;
    border-radius: 999px;
    color: var(--green-d);
    font-size: 12.5px;
    transition: background .25s, color .25s;
}
.news-tags a:hover { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- 6.1 上/下一篇（补 solution.css 的 article-pager，news 页独立可用） ---------- */
.article-pager {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
}
.article-pager a {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #f7f8f9;
    border-radius: 5px;
    font-size: 13.5px;
    color: #4a5361;
    transition: background .25s, color .25s, transform .25s var(--ease);
}
.article-pager a:hover { background: var(--green-soft); color: var(--green-d); transform: translateY(-2px); }
.article-pager a.is-next { justify-content: flex-end; text-align: right; }
.article-pager svg { width: 15px; height: 15px; flex: none; color: var(--green); }
.article-pager .label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 7. 响应式 ---------- */
@media (max-width: 1240px) {
    .news-body__grid { grid-template-columns: 236px 1fr; }
}

@media (max-width: 992px) {
    .news-body__grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .news-feature { grid-template-columns: 1fr; }
    .news-feature__img { min-height: 200px; }
}

@media (max-width: 768px) {
    .news-body { padding: 30px 0 50px; }
    .news-main__title { font-size: 19px; }
    .news-feature__body { padding: 18px 20px; }
    .news-feature__title { font-size: 17px; }
    .news-article { padding: 22px 18px 30px; }
    .article-pager { flex-direction: column; }
}

@media (max-width: 560px) {
    .news-grid { grid-template-columns: 1fr; }
}
