body{
    background-color: #f9f9f9;
}
.main{
    padding-top: 20px;
    height:auto;
}

.carousel-container {
    position: relative;
    width:100%;
    height: 900px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    margin: 0 auto;
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}
.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    background-repeat: no-repeat;
    background-position:center;
}
.carousel-slide img {
    width: 100%;
}
.slide-content{
    position: absolute;
    left: 10%;
    top: 50%;
    text-align: center;
}
.slide-content p{
    font-weight: bold;
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
    }
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.carousel-btn:hover {
    background-color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}
.carousel-btn.prev {
    left: 20px;
}
.carousel-btn.next {
    right: 20px;
}
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}
.dot.active {
    background-color: #fff;
    transform: scale(1.3);
}
.dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}
/* 产品类 */
.productFiles{
    width: 100%;
    /* border: 1px solid black; */
    height: auto;
}
.productTitle{
    width: 70%;
    height: auto;
    margin: 10px auto;
    text-align: center;
}

.productBox{
    width: 80%;
    height: auto;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
.productItem{
    margin: 0 10px;
    width: 15vw;
    height:15vw;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content:space-between;
    align-items: flex-end;
    padding-bottom: 10px;
    position: relative;
    overflow: hidden;
} 
.productItem img{
    width: 100%;
}
.productItem span{
    font-size: 1vw;
    color: #e9b15a;
    font-weight: bold;
    padding: 0;
    line-height: 1;
    position: absolute;
}
.productItem a{
    position: absolute;
    right: 5%;
}
.productItem div{
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #5e6e43;
    color: white;
    font-size: 30px;
    text-align: center;
    line-height: 30px;
    padding: 0;
    line-height: 1;
}
/* 适用地点 */

.position{
    margin-top:  40px ;
    margin-bottom: 40px;
}
.positionTitle{
    text-align: center;
    margin-bottom: 20px;
}
#positionTitle{
    font-weight: bolder;
}
.positionBox{
    display: flex;
    justify-content: center;
    align-items: center;
}
.positionItem{
    width: 21vw;
    height: 16vw;
    margin: 10px;
    text-align: center;
    color: white;
    background: url(../img/position/1.jpg);    
    background-size: cover; /* 填满容器，裁剪多余部分 */
    background-position: center;
    background-repeat: no-repeat; 
}

.positionBox > .col-md-3:nth-child(1) { background-image: url(../img/position/1.jpg); }
.positionBox > .col-md-3:nth-child(2) { background-image: url(../img/position/2.jpg); }
.positionBox > .col-md-3:nth-child(3) { background-image: url(../img/position/3.jpg); }
.positionBox > .col-md-3:nth-child(4) { background-image: url(../img/position/4.jpg); }
.positionBox > .col-md-3:nth-child(5) { background-image: url(../img/position/5.jpg); }
.positionBox > .col-md-3:nth-child(6) { background-image: url(../img/position/6.jpg); }

.positionItem h4{
    margin-top: 9vw;
    font-weight: bolder;
}
/* 先把公共过渡写在一个地方，统一 0.4 s，省得每个元素再写一遍 */
.positionItem{
    position: relative;          /* 让伪元素和内部文字都能相对它定位 */
    overflow: hidden;            /* 放大图片时裁掉超出部分 */
    transition: transform .4s;   /* 结束时的回弹时间 */
}

/* 用伪元素做背景图，这样放大时只放大伪元素，不会把文字一起放大 */
.positionItem::before{
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
    transition: transform .4s;
}

/* 6 张背景图分别挂到各自的 ::before 上 */
.positionItem:nth-child(1)::before{ background-image: url(../img/position/1.jpg); }
.positionItem:nth-child(2)::before{ background-image: url(../img/position/2.jpg); }
.positionItem:nth-child(3)::before{ background-image: url(../img/position/3.jpg); }
.positionItem:nth-child(4)::before{ background-image: url(../img/position/4.jpg); }
.positionItem:nth-child(5)::before{ background-image: url(../img/position/5.jpg); }
.positionItem:nth-child(6)::before{ background-image: url(../img/position/6.jpg); }

/* 鼠标悬停：图片放大 110% */
.positionItem:hover::before{
    transform: scale(1.1);
}

/* h4 默认就在下面一点点，透明度 1 */
.positionItem h4{
    position: relative;
    z-index: 1;
    font-size: 1.2vw;
    margin-top: 9vw;
    font-weight: bolder;
    transition: transform .4s, opacity .4s;
}

/* p 默认藏在更下面，透明度 0 */
.positionItem p{
    position: relative;
    z-index: 1;
    margin: .5vw 0 0;
    opacity: 0;
    transform: translateY(20px);
    transition: transform .4s, opacity .4s;
}

/* 鼠标悬停：h4 上滑，p 上浮并淡入 */
.positionItem:hover h4{
    transform: translateY(-10px);
}
.positionItem:hover p{
    transform: translateY(-10px);
    opacity: 1;
}

/* 在 .positionItem::before 后面再插一个遮罩层 */
.positionItem::after{
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;          /* 位于图片之上、文字之下 */
    background: rgba(0,0,0,.45);   /* 45% 黑色 */
    opacity: 0;                       /* 默认看不见 */
    transition: opacity .4s;
}

/* 鼠标悬停时让遮罩显现 */
.positionItem:hover::after{
    opacity: 1;
}

/* 文字再往上提一层，确保在遮罩之上 */
.positionItem h4,
.positionItem p{
    z-index: 2;
}


.video{
    width: 80%;
    height:20vw;
    margin: 0 auto;
    text-align: center;
}


.videoBox{
    width: 50%;
    height: 50%;
    margin: 0 auto;
}
/* 关于我们 */
.about{
    width: 100%;
    height: auto;
    overflow: hidden;
 
}
.companyItem{
    width: 30vw;
    margin: 0 auto;

}
.companyItem:nth-of-type(2){
    height: auto;
    
}
.companyItem:nth-of-type(2) img{
    width: 100%;
}
.CnumberBox{
    text-align: center;
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.CnumberBox .CnumberItem span{
    font-size: 30px;
}
.CnumberBox .CnumberItem span:nth-of-type(1){
    color: red;
}

.warehouse{
    margin-top: 10px;
    text-align: center;
    width: 100%;
    height: auto;
    margin: 0 auto;
}
.warehouseImg{
    width: 80%;
    height: 100%;
    margin: 0 auto;
  
}
.warehouseImg img{
    width: 100%;
}
.report{
    width: 80%;
    text-align: center;
    margin: 0 auto;
}
.reportImg{
    width: 100%;
    height: auto;
    margin: 0 auto;
}
.reportImg img{
    width: 100%;
}
@media (max-width: 998px) {
    /* 轮播图高度变小 */
    .carousel-container {
        height: 40vw;          /* 按 16:9 左右的比例自适应 */
        min-height: 250px;
    }
    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
    .carousel-btn.prev { left: 10px; }
    .carousel-btn.next { right: 10px; }

    /* 适用场景 6 张卡片 → 竖排，全宽 */
    .positionBox {
        flex-direction: column;
        align-items: center;
    }
    .positionItem {
        width: 90%;
        height: 40vw;          /* 高度随屏幕比例变化 */
        max-height: 200px;
        margin: 10px 0;
    }
    .positionItem h4 {
        margin-top: 18vw;
        font-size: 4vw;
    }
    .positionItem p {
        font-size: 3vw;
    }

    /* 产品卡片 → 竖排，全宽 */
    .productBox {
        width: 90%;
        flex-direction: column;
        gap: 15px;
    }
    .productBox img{
        height: 100%;
    }
    .productItem {
        width: 100%;
        height: 50vh;
        max-height: 200px;
    }
    .productItem span {
        font-size: 5vw;
    }
    .productTitle{
        width: 60%;        /* 手机下稍小一点，可根据需要再调 */
        max-width: 250px;  /* 防止过大 */
        margin: 10px auto;
    }
    .companyItem{
        width: 70vw;
        margin: 0 auto;
    }
    .CnumberBox {
        display: flex;
        flex-direction: column; /* 子元素垂直排列 */
        align-items: center; /* 垂直居中 */
        justify-content: center; /* 水平居中（如果需要） */
    }
}
    


.sales{
    width: 100%;
    height: 100vh;
    background-color:rgba(128,128,128,0.5);
    position: fixed;
    z-index: 999999999999;
    top: 0;
    left: 0;
    display: none;
}
.sales a{
    text-decoration:underline;
}
.bigback{
    width: 60%;
    height:30vw;
    left: 20vw;
    top: 10vw;
    background-color: white;
    position: relative;
}
.salesBox{
    width: 80%;
    height: 80%;
    padding-top: 5vw;
    margin: 0 auto;
    padding-left: 10%;
    display: flex;
    justify-content:center;
    align-items: center;
}
.salesqrcodeImg{
    text-align: center;
}
.ph img,.ma img{
    width: 10%;
}

.salesqrcodeImg img{
    width: 50%;
}
#aaa{
    position: absolute;
    top:3vw;
    left:1.5vw ;
}
.salesbtn{
    width: 20%;
    height: 10%;
    text-align: center;
    background-color: black;
    color: white;
    margin: 0 auto;
    padding-top: 1.5%;
}

.salesbtn:hover{
    cursor: pointer;
    background-color: white;
    color: black;
}
@media (max-width: 998px) {
    .bigback {
        width: 90%; /* 占据屏幕宽度的 90% */
        height: auto; /* 高度自适应 */
        left: 5%; /* 水平居中 */
        top: 10vh; /* 垂直居中，距离顶部 10% */
        padding: 20px; /* 增加内边距 */
    }

    .salesBox {
        width: 100%; /* 占据父容器宽度的 100% */
        flex-direction: column; /* 使内容垂直排列 */
        align-items: center; /* 水平居中 */
        gap: 10px; /* 增加元素之间的间距 */
        padding-top: 13vw;
    }

    .salesqrcodeImg {
        width: 100%; /* 占据父容器宽度的 100% */
        margin-top: 10px; /* 增加上边距 */
    }

    .salesqrcodeImg img {
        width: 50%; /* 占据父容器宽度的 100% */
        height: auto; /* 高度自适应 */
    }

    .salesbtn {
        width: 100%; /* 占据父容器宽度的 100% */
        height: auto; /* 高度自适应 */
        margin-top: 20px; /* 增加上边距 */
        font-size: 16px; /* 字体大小 */
        padding: 10px; /* 增加内边距 */
    }

    #aaa {
        font-size: 16px; /* 字体大小 */
        margin-bottom: 20px; /* 增加下边距 */
    }

    .salesItem {
        display: flex;
        flex-direction: column; /* 使内容垂直排列 */
        align-items: center; /* 水平居中 */
        gap: 5px; /* 增加元素之间的间距 */
    }

    .salesItem img {
        width: 50px; /* 固定图标大小 */
        height: auto; /* 高度自适应 */
    }

    .salesItem span {
        font-size: 14px; /* 字体大小 */
        text-align: center; /* 文字居中 */
    }
}
@media screen and (max-width: 1600px){
    .positionItem p {
        font-size: xx-small;
    }

}