/* 考证培训页面样式 */

/* 页面内容顶部间距 */
main {
    padding-top: 80px;
}

/* 面包屑导航样式 */
.breadcrumb {
    background: var(--light-bg);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 16px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.5);
    padding: 6px 12px;
    border-radius: 8px;
}

.back-link:hover {
    color: var(--secondary-color);
    transform: translateX(-5px);
    background: rgba(255, 255, 255, 0.7);
}

.back-arrow {
    font-size: 18px;
    font-weight: bold;
}

.page-title {
    font-size: 28px;
    color: var(--primary-color);
    margin: 0;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.5);
    padding: 6px 16px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 5px;
}

/* 轮播区域样式 */
.business-carousel-section {
    padding: 30px 0;
}

.carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.carousel-container {
    position: relative;
    width: 100%;
    /* 16:9 比例 */
    aspect-ratio: 16 / 9;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    display: flex;
    pointer-events: auto;
}

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    color: white;
}

/* 考证培训特定样式 */
.certification-stats {
    margin-bottom: 40px;
}

.certification-title {
    font-family: 'Source Han Sans CN', 'Noto Sans SC', sans-serif;
    font-size: 44px;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin: 0;
    text-align: center;
}

/* 图片区域样式 */
.certification-images {
    margin-bottom: 30px;
}

.image-row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 80px;
}

.certification-image-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#aviationCourseItem,
#certificateItem {
    cursor: pointer;
    transition: transform 0.3s ease;
}

#aviationCourseItem:hover,
#certificateItem:hover {
    transform: scale(1.02);
}

#aviationCourseItem:hover .certification-image,
#certificateItem:hover .certification-image {
    transform: scale(1.08);
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.5);
}

.certification-image {
    width: 225px;
    height: 225px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.certification-image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}

.image-title {
    font-family: 'Source Han Sans CN', 'Noto Sans SC', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    margin: 0;
    text-align: center;
}

/* 描述文字样式 */
.certification-description {
    max-width: 1040px;
    margin: 0 auto;
    text-align: center;
}

.description-text {
    font-family: 'Source Han Sans CN', 'Noto Sans SC', sans-serif;
    font-size: 16px;
    color: #fff;
    line-height: 1.35;
    margin: 0 0 20px 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* English paragraph left align */
.certification-description .english-text {
    display: block;
    text-align: left;
}

/* 联系我们按钮样式 */
.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: white;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 50px;
    border: 4px solid white;
    transition: all 0.3s ease;
    font-family: 'Source Han Sans CN', sans-serif;
    font-weight: bold;
    white-space: nowrap;
    justify-content: center;
    min-width: 180px;
}

.contact-text {
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
}

.contact-icon {
    width: 28px;
    height: 28px;
    color: white;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.contact-link:hover {
    background: white;
    color: #333;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.contact-link:hover .contact-icon {
    color: #333;
    transform: rotate(360deg);
}

/* 课程详情页样式 */
.course-detail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.course-detail.active {
    opacity: 1;
}

.back-btn {
    position: absolute;
    top: 40px;
    left: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 10;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.8);
    color: #000;
    transform: translateX(-5px);
}

.back-btn:hover svg {
    stroke: #007bff;
}

.back-btn svg {
    width: 20px;
    height: 20px;
    stroke: white;
    transition: stroke 0.3s ease;
}

/* 资质证明图片展示样式 */
.certificate-gallery {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.certificate-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.left-group {
    flex: 1;
}

.right-group {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.certificate-row {
    display: flex;
    gap: 20px;
}

.cert-horizontal {
    width: 200px;
    height: 150px; /* 4:3比例 */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-vertical {
    width: 226px;
    height: 320px; /* 与左侧图组高度对齐 (150px×2 + 20px间距) */
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cert-horizontal:hover,
.cert-vertical:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* 轮播导航样式 */
.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.nav-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* 响应式设计 */

/* 平板端 (991px及以下) */
@media screen and (max-width: 991px) {
    .back-btn {
        top: 30px;
        left: 30px;
        padding: 10px 16px;
        font-size: 14px;
        gap: 6px;
        border-radius: 10px;
    }
    
    .back-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .breadcrumb {
        padding: 8px 0;
    }
    
    .back-link {
        font-size: 14px;
        padding: 4px 10px;
    }
    
    .page-title {
        font-size: 24px;
        padding: 4px 12px;
    }
    
    .business-carousel-section {
        padding: 20px 0;
    }
    
    .slide-content {
        padding: 30px 20px;
    }
    
    .certification-title {
        font-size: 40px;
        font-weight: 700;
    }
    
    .certification-stats {
        margin-bottom: 35px;
    }
    
    .image-row {
        gap: 60px;
    }
    
    .certification-image {
        width: 195px;
        height: 195px;
    }
    
    .image-title {
        font-size: 26px;
    }
    
    .certification-images {
        margin-bottom: 25px;
    }
    
    .description-text {
        font-size: 15px;
        line-height: 1.3;
        margin-bottom: 18px;
    }
    
    .contact-link {
        min-width: 170px;
        padding: 10px 25px;
        gap: 10px;
    }
    
    .contact-text {
        font-size: 24px;
    }
    
    .contact-icon {
        width: 24px;
        height: 24px;
    }
    
    .certificate-gallery {
        gap: 30px;
        padding: 15px;
        max-width: 900px;
    }
    
    .certificate-row {
        gap: 15px;
    }
    
    .cert-horizontal {
        width: 180px;
        height: 135px;
    }
    
    .cert-vertical {
        width: 203px;
        height: 287px; /* 与左侧图组高度对齐 (135px×2 + 15px间距) */
    }
    
    .right-group {
        gap: 15px;
    }
}

/* 手机端 (767px及以下) */
@media screen and (max-width: 767px) {
    .back-btn {
        top: 20px;
        left: 20px;
        padding: 8px 14px;
        font-size: 13px;
        gap: 5px;
        border-radius: 8px;
    }
    
    .back-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .breadcrumb {
        padding: 6px 0;
    }
    
    .back-link {
        font-size: 13px;
        padding: 3px 8px;
        gap: 6px;
    }
    
    .page-title {
        font-size: 20px;
        padding: 3px 10px;
    }
    
    .business-carousel-section {
        padding: 15px 0;
    }
    
    .slide-content {
        padding: 25px 15px;
    }
    
    .certification-title {
        font-size: 34px;
        font-weight: 700;
    }
    
    .certification-stats {
        margin-bottom: 30px;
    }
    
    .image-row {
        gap: 40px;
        flex-direction: column;
        align-items: center;
    }
    
    .certification-image {
        width: 180px;
        height: 180px;
    }
    
    .image-title {
        font-size: 24px;
    }
    
    .certification-images {
        margin-bottom: 20px;
    }
    
    .description-text {
        font-size: 14px;
        line-height: 1.25;
        margin-bottom: 15px;
    }
    
    .contact-link {
        min-width: 160px;
        padding: 8px 20px;
        gap: 8px;
    }
    
    .contact-text {
        font-size: 20px;
    }
    
    .contact-icon {
        width: 20px;
        height: 20px;
    }
    
    .carousel-nav {
        margin-top: 20px;
        gap: 15px;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .certificate-gallery {
        flex-direction: column;
        gap: 25px;
        padding: 10px;
        align-items: center;
    }
    
    .certificate-group {
        gap: 15px;
    }
    
    .certificate-row {
        gap: 12px;
        justify-content: center;
    }
    
    .cert-horizontal {
        width: 160px;
        height: 120px;
    }
    
    .cert-vertical {
        width: 180px;
        height: 252px; /* 与左侧图组高度对齐 (120px×2 + 12px间距) */
    }
    
    .right-group {
        gap: 12px;
    }
}

/* 超小屏幕 (480px及以下) */
@media screen and (max-width: 480px) {
    .back-btn {
        top: 15px;
        left: 15px;
        padding: 6px 12px;
        font-size: 12px;
        gap: 4px;
        border-radius: 6px;
        border-width: 1.5px;
    }
    
    .back-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .slide-content {
        padding: 20px 10px;
    }
    
    .certification-title {
        font-size: 28px;
        font-weight: 700;
    }
    
    .certification-stats {
        margin-bottom: 25px;
    }
    
    .image-row {
        gap: 30px;
    }
    
    .certification-image {
        width: 150px;
        height: 150px;
    }
    
    .image-title {
        font-size: 20px;
    }
    
    .certification-images {
        margin-bottom: 15px;
    }
    
    .description-text {
        font-size: 13px;
        line-height: 1.2;
        margin-bottom: 12px;
    }
    
    .contact-link {
        min-width: 140px;
        padding: 6px 16px;
        gap: 6px;
        border-width: 3px;
    }
    
    .contact-text {
        font-size: 18px;
    }
    
    .contact-icon {
        width: 18px;
        height: 18px;
    }
    
    .carousel-nav {
        margin-top: 15px;
        gap: 10px;
    }
    
    .nav-btn {
        width: 35px;
        height: 35px;
    }
    
    .nav-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .certificate-gallery {
        gap: 20px;
        padding: 8px;
    }
    
    .certificate-group {
        gap: 12px;
    }
    
    .certificate-row {
        gap: 10px;
    }
    
    .cert-horizontal {
        width: 140px;
        height: 105px;
    }
    
    .cert-vertical {
        width: 158px;
        height: 220px; /* 与左侧图组高度对齐 (105px×2 + 10px间距) */
    }
    
    .right-group {
        gap: 10px;
    }
}

/* 全屏图片查看模态框 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.modal-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* 图片点击效果 */
.cert-horizontal,
.cert-vertical {
    cursor: pointer;
}

.cert-horizontal:hover,
.cert-vertical:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* 响应式适配 */
@media screen and (max-width: 767px) {
    .modal-content {
        padding: 20px;
    }
    
    .modal-close {
        top: 20px;
        right: 20px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
    
    .modal-image {
        max-width: 95%;
        max-height: 95%;
    }
}
        width: 203px;
        height: 287px; /* 与左侧图组高度对齐 (135px×2 + 15px间距) */
    }
    
    .right-group {
        gap: 15px;
    }
}

/* 手机端 (767px及以下) */
@media screen and (max-width: 767px) {
    .back-btn {
        top: 20px;
        left: 20px;
        padding: 8px 14px;
        font-size: 13px;
        gap: 5px;
        border-radius: 8px;
    }
    
    .back-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .breadcrumb {
        padding: 6px 0;
    }
    
    .back-link {
        font-size: 13px;
        padding: 3px 8px;
        gap: 6px;
    }
    
    .page-title {
        font-size: 20px;
        padding: 3px 10px;
    }
    
    .business-carousel-section {
        padding: 15px 0;
    }
    
    .slide-content {
        padding: 25px 15px;
    }
    
    .certification-title {
        font-size: 36px;
        font-weight: 700;
    }
    
    .certification-stats {
        margin-bottom: 30px;
    }
    
    .image-row {
        gap: 40px;
        flex-direction: column;
        align-items: center;
    }
    
    .certification-image {
        width: 180px;
        height: 180px;
    }
    
    .image-title {
        font-size: 24px;
    }
    
    .certification-images {
        margin-bottom: 20px;
    }
    
    .description-text {
        font-size: 14px;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    .contact-link {
        min-width: 160px;
        padding: 8px 20px;
        gap: 8px;
    }
    
    .contact-text {
        font-size: 20px;
    }
    
    .contact-icon {
        width: 20px;
        height: 20px;
    }
    
    .carousel-nav {
        margin-top: 20px;
        gap: 15px;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .certificate-gallery {
        flex-direction: column;
        gap: 25px;
        padding: 10px;
        align-items: center;
    }
    
    .certificate-group {
        gap: 15px;
    }
    
    .certificate-row {
        gap: 12px;
        justify-content: center;
    }
    
    .cert-horizontal {
        width: 160px;
        height: 120px;
    }
    
    .cert-vertical {
        width: 180px;
        height: 252px; /* 与左侧图组高度对齐 (120px×2 + 12px间距) */
    }
    
    .right-group {
        gap: 12px;
    }
}

/* 超小屏幕 (480px及以下) */
@media screen and (max-width: 480px) {
    .back-btn {
        top: 15px;
        left: 15px;
        padding: 6px 12px;
        font-size: 12px;
        gap: 4px;
        border-radius: 6px;
        border-width: 1.5px;
    }
    
    .back-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .slide-content {
        padding: 20px 10px;
    }
    
    .certification-title {
        font-size: 30px;
        font-weight: 700;
    }
    
    .certification-stats {
        margin-bottom: 25px;
    }
    
    .image-row {
        gap: 30px;
    }
    
    .certification-image {
        width: 150px;
        height: 150px;
    }
    
    .image-title {
        font-size: 20px;
    }
    
    .certification-images {
        margin-bottom: 15px;
    }
    
    .description-text {
        font-size: 13px;
        line-height: 1.2;
        margin-bottom: 12px;
    }
    
    .contact-link {
        min-width: 140px;
        padding: 6px 16px;
        gap: 6px;
        border-width: 3px;
    }
    
    .contact-text {
        font-size: 18px;
    }
    
    .contact-icon {
        width: 18px;
        height: 18px;
    }
    
    .carousel-nav {
        margin-top: 15px;
        gap: 10px;
    }
    
    .nav-btn {
        width: 35px;
        height: 35px;
    }
    
    .nav-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .certificate-gallery {
        gap: 20px;
        padding: 8px;
    }
    
    .certificate-group {
        gap: 12px;
    }
    
    .certificate-row {
        gap: 10px;
    }
    
    .cert-horizontal {
        width: 140px;
        height: 105px;
    }
    
    .cert-vertical {
        width: 158px;
        height: 220px; /* 与左侧图组高度对齐 (105px×2 + 10px间距) */
    }
    
    .right-group {
        gap: 10px;
    }
}

/* 全屏图片查看模态框 */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.modal-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* 图片点击效果 */
.cert-horizontal,
.cert-vertical {
    cursor: pointer;
}

.cert-horizontal:hover,
.cert-vertical:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* 响应式适配 */
@media screen and (max-width: 767px) {
    .modal-content {
        padding: 20px;
    }
    
    .modal-close {
        top: 20px;
        right: 20px;
        font-size: 30px;
        width: 40px;
        height: 40px;
    }
    
    .modal-image {
        max-width: 95%;
        max-height: 95%;
    }
}