/* ==========================================================================
   双福环保 · 产品中心列表页 — list.css（内页专属，叠加于 base.css + v2.css）
   复用 base.css 的 header / footer / search-strip / drawer / float-bar
   复用 v2.css 的吸顶负 top / 导航胶囊 / 下拉 / 入场 reveal / hover 效果
   本文件只补充列表页专属：内页 banner、面包屑、列表标题、左侧分类、分页
   ========================================================================== */

/* ---------- 1. 内页 banner ---------- */
.page-hero {
    position: relative;
    height: clamp(180px, 26vw, 320px);
    background: #0a2723 center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 18, 14, .28), rgba(5, 18, 14, .52));
    pointer-events: none;
}
.page-hero__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}
.page-hero__title {
    font-size: clamp(26px, 3.4vw, 44px);
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.3;
}
.page-hero__sub {
    margin-top: 10px;
    font-size: clamp(13px, 1.3vw, 16px);
    color: rgba(255, 255, 255, .78);
    letter-spacing: 3px;
}

/* ---------- 2. 面包屑 ---------- */
.crumbs {
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.crumbs__inner {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 15px 0;
    font-size: 13.5px;
    color: #8a929e;
    flex-wrap: wrap;
}
.crumbs__inner a { color: #6b7482; }
.crumbs__inner a:hover { color: var(--green); }
.crumbs__inner .sep { color: #c3c9cf; }
.crumbs__inner .cur { color: var(--green); font-weight: 600; }

/* ---------- 3. 列表主体布局 ---------- */
.list-body {
    padding: 46px 0 70px;
    background: #f6f7f8;
}
.list-body__grid {
    display: grid;
    grid-template-columns: 264px 1fr;
    gap: 24px;
    align-items: start;
}

/* ---------- 4. 左侧分类侧栏（独立类名，避免与首页筛选逻辑冲突） ---------- */
.side-cat {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-s);
    color: var(--text);
}
.side-cat__head {
    background: var(--green);
    color: #fff;
    text-align: center;
    padding: 20px 10px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
}
.side-cat__list > li {
    border-bottom: 1px solid #f0f1f2;
}
.side-cat__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 18px 0 46px;
    line-height: 50px;
    font-size: 14.5px;
    font-weight: 600;
    color: #2f6a4c;
    position: relative;
    transition: background .26s, color .26s, padding-left .26s;
}
.side-cat__list a::before {
    content: "";
    position: absolute;
    left: 24px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #cfd8d3;
    transform: translateY(-50%);
    transition: background .26s, transform .26s, box-shadow .26s;
}
.side-cat__list a:hover {
    background: #f4faf6;
    padding-left: 52px;
    color: var(--green-d);
}
.side-cat__list a:hover::before { background: var(--green); }
.side-cat__list a.is-active {
    background: var(--green);
    color: #fff;
}
.side-cat__list a.is-active::before {
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .28);
}
.side-cat__tel {
    margin: 14px;
    padding: 22px 14px 18px;
    text-align: center;
    background: #eef1f2;
    border-radius: 3px;
}
.side-cat__tel small {
    display: block;
    font-size: 13px;
    color: #8790a0;
}
.side-cat__tel a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: Impact, "Arial Black", sans-serif;
    font-size: 23px;
    color: var(--tel);
    letter-spacing: .5px;
    margin-top: 4px;
}
.side-cat__tel a svg { width: 18px; height: 18px; }
.side-cat__tel em {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: #fff;
    background: var(--green);
    border-radius: 999px;
    padding: 4px 0;
    font-style: normal;
}

/* ---------- 5. 右侧内容区 ---------- */
.list-main {
    background: #fff;
    border-radius: 4px;
    box-shadow: var(--shadow-s);
    padding: 26px 26px 34px;
}
.list-main__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 2px solid var(--green);
}
.list-main__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 1px;
}
.list-main__title::before {
    content: "";
    width: 5px;
    height: 22px;
    border-radius: 2px;
    background: var(--green);
}
.list-main__count {
    font-size: 13px;
    color: #9aa2ae;
    white-space: nowrap;
}

/* 产品网格：4 列 */
.list-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

/* ---------- 6. 分页 ---------- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 34px;
    flex-wrap: wrap;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 4px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 14px;
    color: #4a5361;
    transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.pagination a:hover {
    background: var(--green-soft);
    color: var(--green-d);
    border-color: var(--green);
    transform: translateY(-2px);
}
.pagination .is-cur {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
    font-weight: 700;
}
.pagination .is-disabled {
    color: #c3c9cf;
    pointer-events: none;
}

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

@media (max-width: 992px) {
    .list-body__grid { grid-template-columns: 1fr; }
    /* 左侧分类在移动端转为横向滚动胶囊 */
    .side-cat__head { display: none; }
    .side-cat__list {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        padding: 12px;
        scrollbar-width: none;
    }
    .side-cat__list::-webkit-scrollbar { display: none; }
    .side-cat__list > li { border: 0; flex: none; }
    .side-cat__list a {
        padding: 0 16px;
        line-height: 40px;
        border-radius: 999px;
        background: #f2f4f5;
        font-size: 14px;
        white-space: nowrap;
        color: #4a5361;
    }
    .side-cat__list a::before { display: none; }
    .side-cat__list a:hover { padding-left: 16px; background: #e9f5ee; }
    .side-cat__list a.is-active { background: var(--green); color: #fff; }
    .side-cat__tel { display: none; }
    .list-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}

@media (max-width: 768px) {
    .list-body { padding: 30px 0 50px; }
    .list-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .list-main { padding: 20px 16px 28px; }
    .list-main__title { font-size: 19px; }
    .crumbs__inner { padding: 12px 0; font-size: 12.5px; }
}

@media (max-width: 480px) {
    .page-hero { height: 160px; }
}
/* 面包屑：去掉 li 默认圆点 */
.crumbs__list,
.pagination__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

/* 面包屑 li 内联排列 */
.crumbs__list li {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.crumbs__list li + li::before {
    content: ">";
    color: #c3c9cf;
    margin-right: 6px;
}

/* 分页 li 去掉默认样式，按 .page-item 排版 */
.pagination__list {
    gap: 8px;
    justify-content: center;
}
.pagination__list li {
    list-style: none;
}
.pagination .page-link,
.pagination__list li > a,
.pagination__list li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 4px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 14px;
    color: #4a5361;
}
.pagination__list li.active .page-link {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
    font-weight: 700;
}
.pagination__list li.disabled .page-link {
    color: #c3c9cf;
}
