
.cert-slider-wrap {
    position: relative;
}

/* ---------- 头部标题 ---------- */
.cert-tit {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 0 40px;
}
.cert-tit > .tit,
.cert-tit > h2,
.cert-tit > h3,
.cert-tit > h4,
.cert-tit > h5 {
    font-size: 30px;
    font-family: 'GothicB', sans-serif;
    line-height: 1.1;
    margin: 0;
    color: #222;
}
.cert-tit p {
    font-size: 18px;
    line-height: 1.6;
    margin-top: 20px;
    max-width: 800px;
    color: #666;
}

/* ---------- 轮播卡片 ---------- */
.cert-slider {
    overflow: hidden;
    padding-bottom: 10px;
    position: relative;

    /* 拖动 */
    cursor: grab;
    touch-action: pan-y;
    -webkit-tap-highlight-color: transparent;
}
.cert-slider:active {
    cursor: grabbing;
}
.cert-slider .swiper-wrapper {
    /* 拖动：让 Swiper 自己接管水平滑动，纵向交给浏览器 */
    touch-action: pan-y;
}
.cert-slider .swiper-slide {
    height: auto;

    /* 拖动：禁止拖拽过程中选中文本 */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
.cert-item {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.cert-item .item_img {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
 
    background: #fff;
    transition: border-color .3s ease, box-shadow .3s ease;
}
.cert-item .item_img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}
.cert-item .item_con .tit {
    font-size: 18px;
    font-family: 'GothicB', sans-serif;
    text-align: center;
    margin-top: 10px;
    color: #222;
    user-select: none;
    -webkit-user-select: none;
}
.cert-item:hover .item_img {
    border-color: var(--theme-color, #ffb400);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
}

.cert-arrow {
    display: flex;
    position: absolute;
    right: 0;
    top: -75px;
    z-index: 5;
}
.cert-arrow .swiper-button-prev {
    margin-right: 25px;
}
.cert-arrow .swiper-button-prev,
.cert-arrow .swiper-button-next {
    width: 45px;
    height: 45px;
    background: #f1f1f1;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: static;
    margin-top: 0;
    color: #333;
    transition: all .5s;
    cursor: pointer;
}
.cert-arrow .swiper-button-prev::after,
.cert-arrow .swiper-button-next::after {
    display: none;
}
.cert-arrow .swiper-button-prev i {
    transform: rotateY(180deg);
}
.cert-arrow .swiper-button-prev i,
.cert-arrow .swiper-button-next i {
    font-size: 24px;
}
.cert-arrow .swiper-button-prev:hover,
.cert-arrow .swiper-button-next:hover {
    background: var(--theme-color, #ffb400);
    color: #fff;
}
.cert-arrow .swiper-button-prev.swiper-button-disabled,
.cert-arrow .swiper-button-next.swiper-button-disabled {
    opacity: .35;
    cursor: not-allowed;
}

/* ---------- 底部按钮 ---------- */
.cert-btn {
    margin-top: 50px;
    display: flex;
    justify-content: center;
}
.cert-btn a {
    height: 45px;
    width: 220px;
    border: 2px solid #333;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #333;
    color: var(--theme-color, #ffb400);
    font-family: 'GothicB', sans-serif;
    text-transform: uppercase;
    text-decoration: none;
    transition: all .4s;
}
.cert-btn a i {
    font-size: 18px;
    font-weight: bold;
    margin-left: 6px;
}
.cert-btn a:hover {
    border-color: var(--theme-color, #ffb400);
    background: var(--theme-color, #ffb400);
    color: #333;
}

/* ---------- Elementor 编辑器兼容 ----------
 * 编辑器会拦截鼠标事件用于选中组件；
 * 显式恢复 pointer-events，保证预览区仍可拖动。
 * 前端不受影响。
 */
.elementor-editor-active .cert-slider {
    pointer-events: auto !important;
}
.elementor-editor-active .cert-slider .swiper-slide,
.elementor-editor-active .cert-slider .cert-item {
    pointer-events: auto !important;
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
    .cert-tit {
        padding: 40px 0 30px;
    }
    .cert-tit > .tit,
    .cert-tit > h2,
    .cert-tit > h3,
    .cert-tit > h4,
    .cert-tit > h5 {
        font-size: 24px;
    }
    .cert-arrow {
        top: -60px;
    }
    .cert-arrow .swiper-button-prev,
    .cert-arrow .swiper-button-next {
        width: 38px;
        height: 38px;
    }
    .cert-arrow .swiper-button-prev i,
    .cert-arrow .swiper-button-next i {
        font-size: 18px;
    }
}