.speaker-cert-section {
    /*background-color: #f4f7f9;*/
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding: 40px 30px;
    box-sizing: border-box;
}
.speaker-cert-section * { box-sizing: border-box; }
.speaker-cert-section .container { max-width: 1600px; margin: 0 auto; }

.speaker-cert-section .section-header { text-align: center; margin-bottom: 40px; }
.speaker-cert-section .section-header h2 { color: #002060; font-size: 28px; margin: 0 0 10px 0; text-transform: uppercase; }
.speaker-cert-section .section-header p { color: #64748b; font-size: 16px; margin: 0; }

/* 轮播图容器：移除内部 padding，让图片尽量大 */
.speaker-cert-section .certificate-carousel {
    position: relative;
    max-width: 1600px; /* 稍微调宽一点 */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 15px 35px rgba(26, 54, 93, 0.08);
    border-top: 5px solid #2563eb;
}

.speaker-cert-section .carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ================= 核心修改：让图片撑满 ================= */
.speaker-cert-section .cert-card {
    flex: 0 0 50%; /* 电脑端一屏显示 2 张 */
    padding: 10px; /* 只留一点点缝隙 */
}

.speaker-cert-section .cert-card img {
    width: 100%;
    display: block;
    object-fit: contain; /* 确保 279x216 的图完整显示，不被裁剪 */
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    cursor: pointer; /* 提示用户可以点击 */
    transition: transform 0.3s;
}

/* 鼠标悬停稍微放大一点点 */
.speaker-cert-section .cert-card img:hover {
    transform: scale(1.02);
}

/* 左右按钮 */
.speaker-cert-section .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e2e8f0;
    cursor: pointer;
    width: 50px;
    height: 50px;
    font-size: 20px;
    color: #2563eb;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
.speaker-cert-section .carousel-btn:hover {
    background: #2563eb;
    color: #ffffff;
}
.speaker-cert-section .btn-prev { left: 15px; }
.speaker-cert-section .btn-next { right: 15px; }

/* 底部小圆点 */
.speaker-cert-section .carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.8);
    padding: 5px 15px;
    border-radius: 20px;
}
.speaker-cert-section .indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}
.speaker-cert-section .indicator.active {
    background: #2563eb;
    width: 24px;
    border-radius: 5px;
}

/* ================= 响应式适配 ================= */
@media (max-width: 992px) {
    /* 平板尺寸：一屏显示 1 张，保证能看清字 */
    .speaker-cert-section .cert-card {
        flex: 0 0 100%;
    }
}

/* 手机尺寸 */
@media (max-width: 768px) {
    .speaker-cert-section .cert-card {
        flex: 0 0 100%;
    }
}