/* ========= 资质证书轮播模块 ========= */

.cert-section {
    position: relative;
    overflow: hidden;
}

/* 顶部/底部绿色渐变分割线 */
.cert-section::before,
.cert-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(54, 201, 88, 0.35) 50%, transparent 100%);
    z-index: 1;
}

.cert-section::before { top: 0; }
.cert-section::after  { bottom: 0; }

/* 背景辐射光晕 */
.cert-glow {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(54, 201, 88, 0.055) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
}

/* ========= 头部统计徽章 ========= */

.cert-badge-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 20px 4px;
    backdrop-filter: blur(10px);
}

.cert-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 22px;
    min-width: 88px;
}

.cert-badge-num {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.cert-badge-num sup {
    font-size: 13px;
    color: #36c958;
    vertical-align: super;
}

.cert-badge-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.42);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
}

.cert-badge-sep {
    width: 1px;
    height: 34px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

/* ========= 轮播容器 ========= */

.cert-carousel-wrap {
    position: relative;
    padding: 8px 52px 64px;
    margin: 0 -52px;
}

/* ========= 证书卡片 ========= */

.cert-card {
    margin: 10px 12px 20px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

/* 绿色渐变边框光效（伪元素遮罩技巧） */
.cert-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    border: 2px solid rgba(54, 201, 88, 0);
    transition: border-color 0.4s ease,
                box-shadow 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

.cert-card:hover {
    transform: translateY(-10px);
    box-shadow:
        0 28px 64px rgba(0, 0, 0, 0.48),
        0 0 48px rgba(54, 201, 88, 0.1);
}

.cert-card:hover::after {
    border-color: rgba(54, 201, 88, 0.5);
    box-shadow: inset 0 0 20px rgba(54, 201, 88, 0.06);
}

.cert-img-frame {
    padding: 16px 16px 10px;
    background: #f5f6f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-img-frame img {
    width: 100%;
    height: 270px;
    object-fit: contain;
    display: block;
}

.cert-info {
    padding: 14px 16px 16px;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.cert-name {
    font-size: 13px;
    font-weight: 600;
    color: #1b1b1b;
    margin: 0 0 5px;
    line-height: 1.35;
}

.cert-iso {
    display: block;
    font-size: 11px;
    color: #36c958;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ========= Owl 导航箭头 ========= */

.cert-carousel-wrap .owl-controls .owl-buttons div {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    transition: background 0.3s ease,
                border-color 0.3s ease,
                color 0.3s ease,
                box-shadow 0.3s ease;
    opacity: 1 !important;
    z-index: 10;
    line-height: 0;
}

.cert-carousel-wrap .owl-controls .owl-buttons .owl-prev {
    left: 4px;
}

.cert-carousel-wrap .owl-controls .owl-buttons .owl-next {
    right: 4px;
}

.cert-carousel-wrap .owl-controls .owl-buttons div:hover {
    background: rgba(54, 201, 88, 0.14);
    border-color: rgba(54, 201, 88, 0.5);
    color: #36c958;
    box-shadow: 0 0 18px rgba(54, 201, 88, 0.2);
}

/* ========= Owl 分页圆点 ========= */

.cert-carousel-wrap .owl-controls .owl-pagination {
    text-align: center;
    padding-top: 26px;
    display: block !important;
}

.cert-carousel-wrap .owl-controls .owl-page span {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 4px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cert-carousel-wrap .owl-controls .owl-page.active span {
    width: 26px;
    border-radius: 3px;
    background: #36c958;
    box-shadow: 0 0 10px rgba(54, 201, 88, 0.5);
}

/* ========= 响应式 ========= */

@media (max-width: 1199px) {
    .cert-img-frame img {
        height: 250px;
    }
}

@media (max-width: 991px) {
    .cert-carousel-wrap {
        padding: 8px 44px 56px;
        margin: 0 -44px;
    }
    .cert-img-frame img {
        height: 240px;
    }
    .cert-badge-group {
        display: none;
    }
}

@media (max-width: 767px) {
    .cert-carousel-wrap {
        padding: 8px 36px 50px;
        margin: 0 -36px;
    }
    .cert-img-frame img {
        height: 260px;
    }
}
