/*证书模块css样式*/
/* Certificate Carousel Styles */
#cert-zhengshu-bg {
    overflow: hidden;
    padding: 6rem 0;
    /*background: url(https://www.ctsok.com/web/images/bg11211.jpg) no-repeat center center/cover;*/
}

.cert-zhengshu {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    width: 100%;
    gap: -50px;
    position: relative;
    max-width: 1400px;
    height: 500px;
    margin: 0 auto;
    cursor: grab;
    user-select: none;
    touch-action: pan-y;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .cert-zhengshu {
        height: 400px;
        max-width: 100%;
        padding: 0 20px;
    }

    .cert-card {
        width: 220px;
        height: 300px;
    }

    .cert-card.cert-center {
        transform: scale(1.1) translateZ(0);
    }

    .cert-card.cert-right-1 {
        transform: translateX(120px) scale(0.9) translateZ(-100px);
    }

    .cert-card.cert-right-2 {
        transform: translateX(240px) scale(0.8) translateZ(-300px);
    }

    .cert-card.cert-left-1 {
        transform: translateX(-120px) scale(0.9) translateZ(-100px);
    }

    .cert-card.cert-left-2 {
        transform: translateX(-240px) scale(0.8) translateZ(-300px);
    }

    .cert-zhengshu-box > button {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    .cert-btn-left {
        left: 5px;
    }

    .cert-btn-right {
        right: 5px;
    }
}

@media (max-width: 480px) {
    .cert-zhengshu {
        height: 350px;
        padding: 0 15px;
    }

    .cert-card {
        width: 180px;
        height: 250px;
    }

    .cert-card.cert-center {
        transform: scale(1.1) translateZ(0);
    }

    .cert-card.cert-right-1 {
        transform: translateX(90px) scale(0.9) translateZ(-100px);
    }

    .cert-card.cert-right-2 {
        transform: translateX(180px) scale(0.8) translateZ(-300px);
    }

    .cert-card.cert-left-1 {
        transform: translateX(-90px) scale(0.9) translateZ(-100px);
    }

    .cert-card.cert-left-2 {
        transform: translateX(-180px) scale(0.8) translateZ(-300px);
    }

    .cert-zhengshu-box > button {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
}

.cert-zhengshu-box {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.cert-zhengshu-box > button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(8, 42, 123, 0.6);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.4s ease;
    font-size: 1.5rem;
    border: none;
    outline: none;
    padding-bottom: 4px;
    will-change: transform;
}

.cert-btn-left {
    left: 10px;
}

.cert-btn-right {
    right: 10px;
}

.cert-card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(20, 40, 80, 0.12);
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    object-fit: cover;
    will-change: transform;
}

.cert-card {
    position: absolute;
    width: 280px;
    height: 380px;
    /*overflow: hidden;*/
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: grab;
    filter: grayscale(100%);
    will-change: transform, filter, opacity;
    /*contain: layout style paint;*/
}

.cert-card:hover {
    cursor: grab;
}

.cert-card.cert-center {
    filter: grayscale(0%);
}

/* Dynamic hover effect classes */
.cert-card.cert-hover-level-0 {
    filter: grayscale(0%) !important;
    opacity: 1 !important;
    z-index: 15 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.cert-card.cert-hover-level-1,
.cert-card.cert-hover-level-2,
.cert-card.cert-hover-level-3,
.cert-card.cert-hover-level-4 {
    filter: grayscale(100%) !important;
    z-index: 10 !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.cert-card.cert-hover-level-1 {
    opacity: 0.9 !important;
    z-index: 14 !important;
}

.cert-card.cert-hover-level-2 {
    opacity: 0.8 !important;
    z-index: 13 !important;
}

.cert-card.cert-hover-level-3 {
    opacity: 0.7 !important;
    z-index: 12 !important;
}

.cert-card.cert-hover-level-4 {
    opacity: 0.6 !important;
    z-index: 11 !important;
}

.cert-card.cert-center {
    z-index: 10;
    transform: scale(1.1) translateZ(0);
}

.cert-card.cert-right-1 {
    z-index: 5;
    transform: translateX(200px) scale(0.9) translateZ(-100px);
    opacity: 0.8;
}

.cert-card.cert-right-2 {
    z-index: 1;
    transform: translateX(400px) scale(0.8) translateZ(-300px);
    opacity: 0.6;
}

.cert-card.cert-left-1 {
    z-index: 5;
    transform: translateX(-200px) scale(0.9) translateZ(-100px);
    opacity: 0.8;
}

.cert-card.cert-left-2 {
    z-index: 1;
    transform: translateX(-400px) scale(0.8) translateZ(-300px);
    opacity: 0.6;
}

.cert-card:hover {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
    scale: calc(1.1);
}

/* Image aspect ratio and background */
.cert-zhengshu img {
    aspect-ratio: 280/380;
    background: #f5f5f5;
}

.cert-card-dy-box{
    position: relative;
}

.cert-card-dy{
    object-fit: cover; /* 保持图片比例，覆盖容器 */
    transform: scaleY(-1); /* 垂直翻转 */
    /* webkit内核浏览器兼容（Chrome/Safari） */
    -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.15) 100%);
    /* 标准属性（Firefox等） */
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, 0.15) 100%);
    
}

.cert-card-dy-box::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* 渐变遮罩：仅显示图片顶部20%，其余渐隐 */
  /*background: linear-gradient(to bottom, transparent 0%, rgba(255,255,255,1) 20%);*/
  opacity: 0.6;

}
