/* 轮播容器样式 */
.carousel-container {
    max-width: 1200px;
    height: 600px;
    margin: 50px auto;
    position: relative;
    background: #fff;
    /*box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);*/ /*在元素的框架上添加阴影效果*/
    /*border-radius: 10px;*/ /*框架的样式*/
    overflow: hidden;
}

/* 轮播内容区域样式 */
.carousel-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.5s ease-in-out;
}

/* 轮播项样式 */
.custom-carousel-item {
    min-height: 100%;
    display: flex;
    padding: 40px;
    gap: 40px;
}

/* 文字内容样式 */
.text-content {
    flex: 1;
    padding-right: 1vw;
    margin-top: 100px;
}

    .text-content h2 {
        font-size: 28px;
        color: #3662a0;
        margin-bottom: 20px;
        /*     border-bottom: 2px solid #2196F3;*/
        padding-bottom: 10px;
    }

        .text-content h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 50px;
            height: 3px;
        }

    .text-content p {
        font-size: 15px;
        color: #666;
        line-height: 1.8;
        text-indent: 2em;
    }

/* 图片网格样式 */
/*.image-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 0px;
    align-self: center;
    box-shadow: rgba(0, 0.2, 0, 0.2) 0px 0px 10px;*/
    /*  margin:-25vh 0 0 1vw;*/
    /*margin-right: 30px;
}

    .image-grid img {
        width: 100%;
        height: 270px;
        object-fit: cover;
        border-radius: 8px;
        transition: transform 0.3s ease;
        padding: 5px;*/
        /*filter: contrast(200%);*/
    /*}

        .image-grid img:hover {
            transform: scale(1.05);
        }


.image-grid-wsp {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 0px;
    align-self: center;
    box-shadow: rgba(0, 0.2, 0, 0.2) 0px 0px 10px;
    margin-right: 30px;
    background-color: linen;
}

    .image-grid-wsp img {
        width: 100%;
        height: 300px;
        object-fit: cover;
        border-radius: 8px;
        transition: transform 0.3s ease;
        padding: 5px;
    }

        .image-grid-wsp img:hover {
            transform: scale(1.05);
        }*/



/*图片网格容器 - 自适应高度 */
.image-grid-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0; /*关键：允许内容收缩 */

}

/* 图片网格容器 - 统一高度处理 */
.image-grid,
.image-grid-wsp {
    flex: 1; /*占用剩余空间 */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 15px;
    align-self: stretch;
    box-shadow: rgba(0, 0.2, 0, 0.2) 0px 0px 10px;
    margin: 0 30px 30px 0;
    overflow: hidden; /*防止溢出 */
    min-height: 300px; /*最小高度保证*/
}

/* 图片通用样式 */
.image-grid img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 确保完整显示 */
    border-radius: 8px;
    transition: transform 0.3s ease;
    padding: 5px;
    background: white;
    box-sizing: border-box;
}

.image-grid-wsp img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* 确保完整显示 */
    border-radius: 8px;
    transition: transform 0.3s ease;
    padding: 5px;
    background: white;
    box-sizing: border-box;
}


.grid-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    min-height: 150px;  
}

.image-grid,
.image-grid-wsp {
    background-color: #f5f2f2;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .carousel-container {
        height: 800px; /* 增加移动端高度 */
    }

    .custom-carousel-item {
        padding: 20px;
        gap: 15px;
    }

    .image-grid,
    .image-grid-wsp {
        margin-right: 0;
        grid-gap: 10px;
    }
}

@media (max-width: 768px) {
    .carousel-container {
        height: 900px;
    }

    .image-grid,
    .image-grid-wsp {
        grid-template-columns: 1fr; /*单列布局 */
    }
}


/* 轮播控制按钮样式 */
.carousel-controls {
    position: absolute;
    top: 50%;
    right:20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.carousel-button {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .carousel-button:hover {
        background: rgba(0, 0, 0, 0.8);
    }

/* 轮播指示器样式 */
.carousel-indicators {
    position: absolute;
    left: 34%;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-right: 70px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: background 0.3s ease;
}

    .indicator.active {
        background: #2196F3;
    }

/* 响应式设计 */
@media (max-width: 768px) {
    .carousel-container {
        height: auto;
        margin: 20px;
    }

    .custom-carousel-item {
        flex-direction: column;
        padding: 20px;
    }

    .text-content {
        padding-right: 0;
        margin-bottom: 20px;
    }

    .image-grid {
        grid-template-columns: 1fr;
    }

        .image-grid img {
            height: 150px;
           /* filter: contrast(200%);*/
        }

    .carousel-controls {
        right: 10px;
    }

    .carousel-indicators {
        margin-right: 50px;
    }
}


/*关于德宏*/
.scroll-container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    background: #f5f5f5;
}

.scroll-card {
    flex: 1;
    height: 400px;
    position: relative;
    overflow: hidden;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* 文字层样式 */
.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    pointer-events: none; /* 允许点击穿透到下层 */
}

    .text-overlay h2 {
        font-size: 28px;
        margin-bottom: 10px;
        color: rgba(0, 0, 0, 0.8);
        text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
    }

    .text-overlay p {
        font-size: 16px;
        color: rgba(0, 0, 0, 0.8);
        text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
    }

/* 滚动内容样式 */
.scroll-content {
    height: 200%;
}

    .scroll-content.animate {
        animation: scrollUp var(--animation-duration, 15s) linear infinite;
    }

.scroll-item {
    height: 50%;
}

    .scroll-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        /*filter: contrast(200%)*/
    }

@keyframes scrollUp {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-50%);
    }
}

/* 鼠标悬停时暂停动画 */
.scroll-card:hover .scroll-content.animate {
    animation-play-state: paused;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .scroll-container {
        flex-direction: column;
    }

    .scroll-card {
        height: 300px;
    }

    .text-overlay h2 {
        font-size: 24px;
    }

    .text-overlay p {
        font-size: 14px;
    }
}


/* 体系认证证书部分样式 */

:root {
    --iwidth: 100vw;
    --iheight: 45vh;
    --gap: 3vw;
    --img-width: 15vw;
    --img-height:40vh;
}

#custom-img {
    width: var(--iwidth)-20vw;
    height: var(--iheight);
    box-shadow: 0 8px 24px #666;
    overflow: hidden;
    position: relative;
}

#main {
    display: flex;
    position: absolute;
    left: 0;
    gap: var(--gap);
    padding: 0 var(--gap);
    will-change: transform;
    width: var(--iwidth)-20vw;
    padding: 20px;
    background-color:white;

}

.img-item {
    width: var(--img-width);
    height: var(--img-height);
    border-radius: 10px;
    flex-shrink: 0;
    border: 5px solid lightgray;
    background-color: lightgray;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#mask {
    width: 100%;
    height: var(--iheight);
    position: absolute;
    top: -12vh;
    display: flex;
    justify-content: space-between;
    align-items: center; /* 垂直居中 */
    pointer-events: none;
}


    #mask div {
        width: auto; /* 改为自动宽度 */
        height: 100%;
        z-index: 999;
        pointer-events: auto;
        position: relative;
        display: flex;
        align-items: center; /* 垂直居中 */
    }

.button {
    display: inline-block;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: rgba(56,17,17,0.5);
    box-shadow: 0 0 10px rgba(255,255,255,.8);
    color: rgba(255,255,255,.7);
    font-size: 45px;
    font-weight: bold;
    text-align: center;
    line-height: 70px;
    position: absolute;
    top: 80%;
    transform: translateY(-50%);
  /*  visibility: hidden;*/
    transition: visibility 0.5s;
    cursor: pointer;
    margin: 0 20px; /* 左右按钮的外边距一致 */
}

#l_mask .button{
    left: -130px;   
}

#r_mask .button {
    right: -80px;
}


#l_mask:hover .button,
#r_mask:hover .button {
    visibility: visible;
}

.button:hover {
    background-color: rgba(56,17,17,0.7);
}


/*服务客户*/

:root {
    --e-width: 100vw;
    --e-height: 200px;
    --e-gap: 80px;
    --e-img-width: 120px;
    --e-img-height: 120px;
}

#custom-img-end {
    width: var(--e-width)-20vw;
    height: var(--e-height);
    box-shadow: 0 0 15px 5px rgba(0,0,0,.7);
    overflow: hidden;
    position: relative;
}

#main-end {
    display: flex;
    position: absolute;
    left: 0;
    gap: var(--e-gap);
    padding: 0 var(--e-gap);
    will-change: transform;
    width: var(--e-width)-20vw;
}

.img-item-end {
    width: var(--e-img-width);
    height: var(--e-img-height);
    border-radius: 10px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: contrast(200%);
    margin:30px 0px;
}

