﻿.ProductListBox {
    width: 100%;
    margin-top: 1rem;
    font-family: p;
}

.ProductList_ImgT {
    width: 100%;
}

.ProductList_ImgT>img {
    width: 100%;
    height: 5.99rem;
    display: block;
}

.ProductListBox_B {
    width: 100%;
    height: .7rem;
    background-color: #0e67b2;
}

.ProductListBox_BContent {
    width: 15rem;
    margin: auto;
    font-size: .18rem;
    color: #fff;
    line-height: .7rem;
}

.ProductListBox_BContent>span {
    color: #cccccc;
}

.ProductCatalogBox {
    width: 100%;
}

.ProductCatalog_content {
    width: 15rem;
    margin: auto;
    display: flex;
    justify-content: space-between;
    padding-top: .88rem;
}

.ProductCatalog_L {
    width: 30%;
    box-shadow: 0 0 20px 2px rgb(233, 239, 253);
    height: 6.8rem;
    position: -webkit-sticky;
    position: -moz-sticky;
    position: -ms-sticky;
    position: sticky;
    top: 1.2rem;
}

/*.sticky {  */

/*}*/
.ProductCatalog_L>div:first-child {
    width: 100%;
    height: 1.52rem;
    background-image: url('../img/productList1.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    font-size: .3rem;
    line-height: 1.52rem;
    text-align: center;
    text-transform: uppercase;
    color: #fff;
}

.A_Style {
    display: flex;
    border-bottom: .01rem solid #f0f0f0;
}

.A_Style:last-child {
    border-bottom: none
}

.A_Style>a {
    text-decoration: none;
    font-size: .2rem;
    width: 80%;
    color: #000;
    /* text-align: center; */
    text-indent: .5rem;
    height: 1.3rem;
    line-height: 1.3rem;
    display: block;
}

.A_Style>div {
    width: 20%;
    height: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.A_Style>div>img {
    width: .07rem;
    height: .1rem;
}

.ProductCatalog_R {
    width: 68%;
    display: flex;
    flex-wrap: wrap;
    gap:.2rem;
}

.ProductCatalog_R::-webkit-scrollbar {
    width: .08rem;
}

.ProductCatalog_R::-webkit-scrollbar-track {
    background: rgb(179, 177, 177);
    border-radius: .08rem;
}

.ProductCatalog_R::-webkit-scrollbar-thumb {
    background: rgb(136, 136, 136);
    border-radius: .08rem;
}

.ProductCatalog_R::-webkit-scrollbar-thumb:hover {
    background: rgb(100, 100, 100);
    border-radius: .08rem;
}

.ProductCatalog_R::-webkit-scrollbar-thumb:active {
    background: rgb(68, 68, 68);
    border-radius: .08rem;
}

.ProductCatalog_RUL {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.ProductCatalog_RLi {
    width: 49%;
    /*height: 6.52rem;*/
    box-shadow: 0 0 .1rem .02rem rgb(233, 239, 253);
    margin-bottom: .2rem;
    padding-bottom: .2rem;
    ;
}

.ProductCatalog_RLi>a {
    color: #000;
}

.ProductCatalog_RLi>a>img {
    width: 100%;
    aspect-ratio: 1/1;
}

.ProductCatalog_RLiT {
    width: 100%;
    display: flex;
    /* justify-content: space-evenly; */
    align-items: center;
    padding-left: .48rem;
    box-sizing: border-box;
}

.ProductCatalog_RLiT>img {
    width: .16rem;
    height: .16rem;
}

.ProductCatalog_RLiT>div {
    font-size: .22rem;
    margin-left: .16rem;
}

.ProductCatalog_RLiM {
    padding: 0 .48rem;
    box-sizing: border-box;
    font-size: .16rem;
    color: #707070;
    margin-top: .23rem;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    word-break: break-all;
}

/* ==================== 移动端样式 ==================== */
@media screen and (max-width: 768px) {
    .ProductListBox {
        margin-top: 0;
        padding: 0;
    }

    /* 顶部图片 */
    .ProductList_ImgT {
        width: 100%;
        position: relative;
    }

    .ProductList_ImgT > img {
        width: 100%;
        height: auto;
        min-height: 3rem;
        max-height: 4rem;
        object-fit: cover;
    }

    /* 面包屑导航 */
    .ProductListBox_B {
        width: 100%;
        height: auto;
        min-height: 0.6rem;
        padding: 0.15rem 0;
    }

    .ProductListBox_BContent {
        width: 100%;
        padding: 0 0.3rem;
        box-sizing: border-box;
        font-size: 0.24rem;
        line-height: 1.5;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }

    .ProductListBox_BContent > span {
        margin-right: 0.1rem;
    }

    .ProductListBox_BContent > span > a,
    .ProductListBox_BContent > a {
        color: #fff !important;
        text-decoration: none;
    }

    /* 主要内容区域 */
    .ProductCatalogBox {
        width: 100%;
        padding: 0;
    }

    .ProductCatalog_content {
        width: 100%;
        margin: 0;
        padding: 0.4rem 0.3rem;
        flex-direction: column;
        box-sizing: border-box;
    }

    /* 左侧分类栏 - 移动端改为可折叠 */
    .ProductCatalog_L {
        width: 100%;
        box-shadow: 0 0.1rem 0.3rem rgba(0, 0, 0, 0.1);
        height: auto;
        position: relative;
        top: 0;
        margin-bottom: 0.4rem;
        border-radius: 0.2rem;
        overflow: hidden;
        background: #fff;
    }

    .ProductCatalog_L > div:first-child {
        width: 100%;
        height: 1rem;
        font-size: 0.28rem;
        line-height: 1rem;
        background-image: url('../img/productList1.jpg');
        background-size: cover;
        background-position: center;
        cursor: pointer;
        user-select: none;
        -webkit-user-select: none;
        position: relative;
        padding: 0 0.3rem;
        box-sizing: border-box;
    }

    /* 添加下拉箭头 */
    .ProductCatalog_L > div:first-child::after {
        content: '▼';
        position: absolute;
        right: 0.3rem;
        top: 50%;
        transform: translateY(-50%);
        font-size: 0.2rem;
        transition: transform 0.3s ease;
    }

    .ProductCatalog_L.active > div:first-child::after {
        transform: translateY(-50%) rotate(180deg);
    }

    /* 分类列表 - 默认隐藏，点击后显示 */
    .ProductCatalog_L > div:not(:first-child) {
        display: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .ProductCatalog_L.active > div:not(:first-child) {
        display: block;
        max-height: 1rem;
        display: flex;
        align-items: center;
    }

    .A_Style {
        display: flex;
        border-bottom: 0.01rem solid #f0f0f0;
        transition: background-color 0.2s ease;
    }

    .A_Style:active {
        background-color: #f5f5f5;
    }

    .A_Style > a {
        font-size: 0.3rem;
        width: 80%;
        height: 1rem;
        line-height: 1rem;
        text-indent: 0.3rem;
        padding: 0.1rem 0;
        box-sizing: border-box;
    }

    .A_Style > div {
        width: 20%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .A_Style > div > img {
        width: 0.1rem;
        height: 0.14rem;
    }

    /* 右侧产品列表 */
    .ProductCatalog_R {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.3rem;
        padding: 0;
    }

    /* 产品卡片 */
    .ProductCatalog_RLi {
        width: 100%;
        box-shadow: 0 0.05rem 0.15rem rgba(0, 0, 0, 0.1);
        margin-bottom: 0;
        padding-bottom: 0.3rem;
        border-radius: 0.2rem;
        overflow: hidden;
        background: #fff;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
        cursor: pointer;
    }

    .ProductCatalog_RLi:active {
        transform: scale(0.98);
        box-shadow: 0 0.02rem 0.1rem rgba(0, 0, 0, 0.15);
    }

    .ProductCatalog_RLi > a {
        color: #000;
        text-decoration: none;
        display: block;
        width: 100%;
    }

    .ProductCatalog_RLi > a > img {
        width: 100%;
        height: auto;
        min-height: 3rem;
        max-height: 4rem;
        object-fit: cover;
        display: block;
    }

    .ProductCatalog_RLiT {
        width: 100%;
        display: flex;
        align-items: center;
        padding: 0.2rem 0.3rem;
        box-sizing: border-box;
    }

    .ProductCatalog_RLiT > img {
        width: 0.2rem;
        height: 0.2rem;
        flex-shrink: 0;
    }

    .ProductCatalog_RLiT > div {
        font-size: 0.24rem;
        margin-left: 0.2rem;
        font-weight: 500;
        color: #333;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        flex: 1;
    }

    .ProductCatalog_RLiM {
        padding: 0 0.3rem;
        box-sizing: border-box;
        font-size: 0.22rem;
        color: #707070;
        margin-top: 0.15rem;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: break-word;
    }
}


/* 超小屏幕（小于480px） */
@media screen and (max-width: 480px) {
    .ProductCatalog_R {
        grid-template-columns: 1fr; /* 单列显示 */
        gap: 0.4rem;
    }

    .ProductCatalog_RLi > a > img {
        min-height: 4rem;
        max-height: 5rem;
    }

    .ProductListBox_BContent {
        font-size: 0.22rem;
    }

    .ProductCatalog_L > div:first-child {
        font-size: 0.26rem;
        height: 0.9rem;
        line-height: 0.9rem;
    }

    .A_Style > a {
        font-size: 0.24rem;
    }
}