﻿:root {
    --index-color: #692FC6;
    --main-color: #DD6E00;
}
body, form {
    margin: 0;
    padding: 0;
    background: #F1F3F5;
}
div {
    box-sizing:border-box;
}
img {
    max-width: 100%;
    max-height: 100%
}
.banner-box {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background: #fff;
}
    
/***************轮播图***************/
.swiper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1400px;
    margin: auto;
    margin-top: 33px;
    margin-bottom: 77px;
}
    
    .swiper .swiper-wrapper {
        height: 100%;
        width: 1400px;
        overflow: hidden;
    }
        .swiper .swiper-wrapper .swiper-wrapper-auxiliary {
            position: relative;
            left:0;
            display: flex;
            height: 100%;
            width: 100%;
            transition: left 1s ease-in-out; /* 过渡动画效果 */
        }
.NewIndex1069 .swiper-wrapper .banner-scroll-wrap {
    width: 444px;
    height: 234px;
    margin-right: 33px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.swiper-wrapper .banner-scroll-wrap:last-child {
    margin-right:0;
}
.NewIndex1069 .swiper-wrapper .banner-scroll-wrap img {
    width: 444px;
    height: 234px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.15);
}
        .swiper-wrapper .banner-scroll-wrap img:hover, .product .product-item img:hover {
            animation: scale-up-center 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
        }
        /* 定义关键帧 */
        @keyframes moveRight {
            0% {
        left: 0;
    }

    100% {
        left: 100%; /* 移动到父元素的右侧 */
    }
}

.main-width-1400 {
    width: 1400px;
    margin: 0 auto;
}

.NewIndex1069 .banner-box {
    background-repeat: no-repeat; /* 禁用重复（关键） */
}

.NewIndex1069 .nav-class {
    width: 200px;
    height: 496px;
    overflow: auto;
    padding: 6px 0 6px 12px;
    background-color: #FFFFFF;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
}

    .NewIndex1069 .nav-class .nav-class-scroll {
        width: 180px;
        height: 100%;
        overflow: auto;
    }

    .NewIndex1069 .nav-class .nav-class-item {
        pointer-events: auto;
    }
    .NewIndex1069 .nav-class .nav-class-item:hover {
        background-color: #F3F4F6;
    }

        .NewIndex1069 .nav-class .nav-class-item .nav-class-item-popup {
            /*display: none;*/
            width: max-content;
            min-width: 821px;
            max-width: 831px;
            height: 496px;
            position: absolute;
            left: 200px;
            top: 0;
            background-color: #fff;
            box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);

            /* 默认隐藏：用 visibility+opacity 替代 display，支持过渡 */
            visibility: hidden;
            opacity: 0;
            transition: visibility 0s 0.2s, opacity 0.2s;
        }

        .NewIndex1069 .nav-class .nav-class-item:hover .nav-class-item-popup {
            /*display: block;*/
            z-index:99;
            visibility: visible;
            opacity: 1;
            transition: visibility 0s, opacity 0.2s; /* 立即显示，延迟隐藏 */
        }
            .NewIndex1069 .nav-class .nav-class-item:hover .nav-class-item-popup .popup-scroll {
                min-width: 705px;
                max-width: 715px;
                height: 100%;
                overflow: auto;
                align-content: flex-start;
            }
            .NewIndex1069 .nav-class .nav-class-item:hover .nav-class-item-popup .popup-scroll div{
                z-index:80
            }
                .NewIndex1069 .nav-class .nav-class-scroll::-webkit-scrollbar, .NewIndex1069 .nav-class .nav-class-item:hover .nav-class-item-popup .popup-scroll::-webkit-scrollbar {
                    width: 5px;
                    height: 5px;
                }

                .NewIndex1069 .nav-class .nav-class-scroll::-webkit-scrollbar-track,
                .NewIndex1069 .nav-class .nav-class-item:hover .nav-class-item-popup .popup-scroll::-webkit-scrollbar-track {
                    border-radius: 10px;
                    margin-top: 20px;
                    margin-bottom: 20px;
                }
                .NewIndex1069 .nav-class .nav-class-scroll::-webkit-scrollbar-thumb,
                .NewIndex1069 .nav-class .nav-class-item:hover .nav-class-item-popup .popup-scroll::-webkit-scrollbar-thumb {
                    border-radius: 10px;
                    background: #E4E4E4;
                }

.NewIndex1069 .shop-box {
    display: flex;
    flex-wrap: wrap;
}
.NewIndex1069 .shop-item {
    width: 323px;
    height: 450px;
    background: #fff;
    padding: 20px;
    margin-right: 36px;
    margin-bottom: 36px;
}
    .NewIndex1069 .shop-item:nth-child(4n) {
        margin-right: 0
    }
    .NewIndex1069 .shop-item .shop-img {
        width: 283px;
        height: 283px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
        .NewIndex1069 .shop-item .shop-img img:hover {
            animation: scale-up-center 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
        }
.NewIndex1069 .shop-item .shop-img .cart-popup {
    width: 283px;
    height: 38px;
    display: flex;
    align-items: center;
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 0 15px;
    background: var(--main-color);
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.5s, opacity 0.5s;
}
        .NewIndex1069 .shop-item .shop-img:hover .cart-popup {
            visibility: visible;
            opacity: 1;
            transition: visibility 0s, opacity 0.5s;
        }



/*Banner轮播*/
/* 轮播容器基础样式（可自定义宽高） */
.carousel {
    position: relative;
    width: 100%; /* 可修改：轮播图宽度 */
    height: 600px; /* 可修改：轮播图高度 */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px; /* 可修改：圆角大小 */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 轮播图列表（无缝滚动核心） */
.carousel-list {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% * 5); /* 5张图，需和图片数量一致 */
    height: 100%;
    display: flex;
    transition: left 0.5s ease; /* 可修改：动画时长/缓动效果 */


}

    .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* 可修改：图片适配方式（contain/cover等） */
    }
#class-box {
    pointer-events: none;
}
/*Banner轮播 end*/