/*banner*/
.products-top-swiper{
    width: 100%;
    /*height: 60vh;*/
    position: relative;
    overflow: hidden;
}
.location{
    /*position: absolute;*/
    /*left: 0;*/
    position: relative;
    margin-top: 180px;
    width: 100%;
    z-index: 9;
}
@media screen and (max-width: 767px) {
    .location{
        /*position: absolute;*/
        /*left: 0;*/
        position: relative;
        margin-top: 110px!important;
        width: 100%;
        z-index: 9;
    }
}
.location a{
    color: #CCC;
}

.location a:nth-child(n + 2)::before {
    background: url(../images/location-j.svg) no-repeat;
    content: "";
    display: inline-block;
    height: 12px;
    width: 12px;
    margin: 0 10px;
    background-size: 100% 100%;
}
.products-top-swiper .index-banner{
    width: 100%;
    height: 100%;
    margin-top: 50px;
}

.index-banner .swiper-slide-img-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    transform: translateZ(0) scale(1);
    transition: all 2.5s ease-in-out;
}
.index-banner .swiper-slide-active .swiper-slide-img-bg {
    transform: translateZ(0) scale(1);
}

.index-banner .index-banner-mask {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 8;
}

.index-banner .swiper-slide-banText{
    position: relative;
    z-index: 9;
}

.swiper-slide-banText>.my-container {
    height: 100%;
}

.index-banner .swiper-slide-banText-view{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.swiper-slide-banText-left-text{
    color: #FFF;
    font-family: "Pontano Sans";
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: capitalize;
    /*margin-top: 200px;*/
}


/*分类联动*/
.category-container {
    width: 100%;
    position: relative;
    margin-bottom: 155px;
    margin-top: 89px;
}

.primary-category {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
    position: static; /* 确保作为二级分类的定位父元素 */
    /*overflow-x: auto;*/
    align-items: center;
    /*height: 220px;*/
    flex-wrap: wrap;
}

.primary-item {
    position: static; /* 改为static，不作为定位父元素 */
    border: 1px solid rgba(255, 255, 255, 0.30);
}

.primary-title {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 25px 30px;
    cursor: pointer;
    transition: background-color 0.3s;
    color: #FFF;
    font-family: "Pontano Sans";
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-transform: capitalize;
    white-space: nowrap;
}

.primary-title i img:nth-child(2){
    display: none;
}


.sub-category {
    position: absolute;
    top: 100%;
    left: 0; /* 从primary-category的左边开始 */
    right: 60px; /* 可以横向铺满，如果需要的话 */
    margin: 50px 0 0 0;
    display: none;
    flex-wrap: nowrap;
    gap: 60px;
    z-index: 100;
    overflow-x: auto;
    padding-bottom: 20px;
    padding-right: 10px;
}
.sub-category li {
    list-style: disc inside;
}

.sub-category.show {
    display: flex;
}

.sub-item {
    position:relative;
    cursor: pointer;
    white-space: nowrap;
    padding-bottom: 30px;
    color: #FFF;
    font-family: "Pontano Sans";
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-transform: capitalize;
}

.sub-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px; /* border-bottom 的高度 */
    background-color: #fff; /* border-bottom 的颜色 */
    transition: width 0.3s ease; /* 动画过渡效果 */
}

.sub-item:hover::after {
    width: 100%;
}
.sub-item.active::after {
    width: 100%;
}

.primary-item.active{
    border: var(--main-color,#F4B915);
}
/* 激活状态样式 */
.primary-item.active .primary-title {
    background-color: var(--main-color,#F4B915);
}

.primary-item.active .primary-title i img:nth-child(1){
    display: none;
}

.primary-item.active .primary-title i img:nth-child(2){
    display: block;
}

@media screen and (max-width: 767px) {
    .primary-title{
        padding: 10px;

    }
    .primary-title span{
        font-size: 16px;
    }
    .primary-title i{
        display: none;
    }
}
@media (max-width:414px) {
    .primary-title span{
        font-size: 16px;
        width: 100px;
        overflow: hidden;
        white-space: nowrap;
        -o-text-overflow: ellipsis;
        text-overflow: ellipsis;
    }
}
/*banner*/

/*productList*/
.productList {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    position: relative; /* 添加相对定位 */
    margin-top: 50px;
    margin-bottom: 50px;
}

.productList-item {
    padding: 50px;
    box-sizing: border-box;
    position: relative; /* 添加相对定位 */
    width: 33.33%;
}
/* 使用伪元素添加边框 */
.productList-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-right: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

/* 为整个表格添加左边框和上边框 */
.productList::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-left: 1px solid #ccc;
    border-top: 1px solid #ccc;
    pointer-events: none;
}

.productList-item-content{
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.productList-item-content img{
    width: 100%;
}
.productList-item-content-title{
    margin-top: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transform: translateY(40px);;
    transition: all 0.4s ease-in-out;
}
.productList-item:hover .productList-item-content-title{
    transform: translateY(0);;
}
.productList-item-content-title-text{
    color: #333;
    text-align: center;
    font-family: "Pontano Sans";
    font-style: normal;
    font-weight: 400;
    overflow: hidden;
    white-space: nowrap;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    width: 100%;
}

.productList-item-content-more-jt-icon{
    display: flex;
    align-items: center;
    margin-top: 20px;

}
.productList-item-content-more-jt-icon-line{
    width:40px;
    height: 2px;
    background-color: var(--main-color,#F4B915);
    transition: all 0.5s ease-in-out;
    margin-right: -12px;
    border-radius: 0 2rpx 2rpx 0;
    /*margin-top: 1px;*/
}
.productList-item-content-more-jt-icon img{
    width:13px;
    height: 20px;
}


/*分页*/
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 80px 0;
}

.page-numbers {
    display: flex;
    align-items: center;
}

.page-item {
    color: black;
    padding: 8px 12px;
    text-decoration: none;
    margin: 0 4px;
    transition: background-color 0.3s;
    line-height: 1;
    cursor: pointer;
    color: rgba(51, 51, 51, 0.50);
    text-align: center;
    /* 正文 */
    font-family: "Microsoft YaHei UI";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
}

.page-item:hover:not(.disabled) {
    /*background-color: #ddd;*/
}

.page-item.active {
    background-color: var(--main-color,#F4B915);
    color: white;
    border: 1px solid var(--main-color,#F4B915);
}

.page-item.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.sub-category::-webkit-scrollbar {
    width: 10px;   /* 垂直滚动条宽度 */
    height: 8px;   /* 水平滚动条高度 */
    background: rgba(0,0,0,0.1);
}

.sub-category::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 8px;
    border: 8px solid var(--main-color);  /* 透明边框缩小可见区域 */
    background-clip: content-box;    /* 背景仅填充内容区域 */
}

@media (max-width:991px) {
    .productList-item {
        width: 50%;
    }
}
@media (max-width:767px) {
    .productList-item {
        width: 100%;
    }
    .sub-category {
        right: 0;
    }
    .productList-item-content-title{
        margin-top: 0;
    }
}
/*productList*/











