/* 仅存放产品列表页面独有样式，公共头部/页脚由style.css提供 */
body {
    background-color: #f8f8f8;
}

/* ---------------------- 1. 产品顶部Banner ---------------------- */
.product-banner {
    background-color: #1c4d2d;
    padding: 60px 0;
    text-align: center;
    color: #ffffff;
}
.product-banner-inner .banner-small-title {
    font-size: 13px;
    color: #74d091;
    display: block;
    margin-bottom: 8px;
}
.product-banner-inner .banner-main-title {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 12px;
}
.product-banner-inner .banner-desc {
    font-size: 14px;
    opacity: 0.85;
}

/* ---------------------- 2. 面包屑导航 ---------------------- */
.bread-wrap {
    padding: 18px 15px;
    background: #fff;
    border-bottom: 1px solid #eeeeee;
}
.bread a {
    color: #288f47;
}
.bread span {
    margin: 0 6px;
    color: #999;
}
.bread-current {
    color: #333333;
}

/* ---------------------- 3. 主容器布局（左侧分类+右侧产品） ---------------------- */
.product-main-wrap {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 30px;
    padding: 40px 15px 60px;
}

/* ========== 左侧产品分类侧边栏 ========== */
.product-sidebar {
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
}
.sidebar-title {
    background: #1c4d2d;
    color: #fff;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 500;
}
.cate-tree {
    padding: 10px 0;
}
.cate-item {
    border-bottom: 1px solid #f2f2f2;
}
.cate-item:last-child {
    border-bottom: none;
}
.cate-parent {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    font-size: 14px;
    cursor: pointer;
    color: #333;
}
.cate-item.active .cate-parent {
    color: #288f47;
}
.arrow {
    width: 6px;
    height: 6px;
    border-right: 1px solid #999;
    border-bottom: 1px solid #999;
    transform: rotate(-45deg);
    transition: transform 0.2s ease;
}
.cate-item.active .arrow {
    /*transform: rotate(45deg);*/
}
.cate-child {
    padding: 0 20px 10px;
    display: none;
}
.cate-item.active .cate-child {
    display: block;
}
.cate-child li {
    padding: 6px 0;
    font-size: 13px;
    color: #666;
    cursor: pointer;
}
.cate-child li:hover {
    color: #288f47;
}

/* ========== 右侧产品卡片区域 ========== */
.product-card-wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.product-card {
    background: #ffffff;
    border-radius: 4px;
    overflow: hidden;
}
.card-img-box {
    width: 100%;
    height: 220px;
    overflow: hidden;
}
.card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.card-img-box img:hover {
    transform: scale(1.05);
}
.card-tag-row {
    padding: 12px 16px 0;
    display: flex;
    gap: 10px;
}
.tag-name {
    font-size: 12px;
    color: #1c4d2d;
    background: #edf7f1;
    padding: 2px 8px;
    border-radius: 2px;
}
.tag-spec {
    font-size: 12px;
    color: #888;
}
.card-title {
    padding: 8px 16px;
    font-size: 16px;
    font-weight: 500;
    color: #222;
    line-height: 1.4;
}
.card-desc {
    padding: 0 16px;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
}
.card-btn-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px 16px;
}
.btn-text {
    font-size: 13px;
    color: #288f47;
}
.btn-text:hover {
    text-decoration: underline;
}
.card-btn-row .btn {
    padding: 7px 18px;
    font-size: 13px;
}

/* ---------------------- 移动端自适应媒体查询 ---------------------- */
@media screen and (max-width: 992px) {
    /* 平板：左右布局改为上下堆叠 */
    .product-main-wrap {
        grid-template-columns: 1fr;
    }
    .product-card-wrap {
        grid-template-columns: repeat(2, 1fr);
    }
    .product-banner-inner .banner-main-title {
        font-size: 28px;
    }
}
@media screen and (max-width: 576px) {
    /* 手机端单列适配 */
    .product-banner {
        padding: 40px 0;
    }
    .product-banner-inner .banner-main-title {
        font-size: 22px;
    }
    .product-card-wrap {
        grid-template-columns: 1fr;
    }
    .card-img-box {
        height: 180px;
    }
    .card-btn-row {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    .card-btn-row .btn {
        width: 100%;
        text-align: center;
    }
}

.page {
    width: 100%;
    text-align: center;
    margin-top: 50px;
    grid-column: 1 / -1; /* 占据当前网格所有列，整行居中 */
}