/* certificates.css - 证书页面专用样式 */

/* 横幅区域样式 */
.certificates-banner {
    position: relative;
    background: url('../images/certificates/hf.webp') center/cover no-repeat;
    min-height: 644px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
    margin-top: -80px;
}

.certificates-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin-left: 15%;
}

.banner-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: bold;
    color: #0066FF;
    margin-bottom: 20px;
    line-height: 1.2;
}

.banner-subtitle {
    font-family: var(--font-heading);
    font-size: 24px;
    color: #333333;
    font-weight: 500;
}

/* 证书容器 */
.certificates-container {
    width: 100%;
    background: #F2F4FA url('../images/certificates/bgOnly.png') center top / cover no-repeat;
}

.certificates-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 40px 72px;
}

/* 证书区块：垂直居中布局 */
.certificates-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 0 60px;
    scroll-margin-top: 90px;
}

.certificates-section:last-child {
    padding-bottom: 0;
}

.certificates-section.cert-hidden {
    display: none !important;
}

/* 文字区域 */
.certificates-text {
    width: 100%;
    max-width: 920px;
    margin-bottom: 48px;
}

.certificates-text-title {
    font-size: 32px;
    font-weight: 500;
    color: #0066FF;
    margin-bottom: 24px;
    font-family: var(--font-medium);
    line-height: 1.3;
}

.certificates-text-desc {
    font-size: 15px;
    line-height: 1.9;
    color: #555;
    font-family: var(--font-primary);
    text-align: center;
}

/* 图片区域 */
.certificates-img {
    display: flex;
    justify-content: center;
    width: 100%;
}

.certificates-img > img {
    max-width: 380px;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.certificates-img > img:hover {
    transform: scale(1.02);
}

/* 多图横排画廊行 */
.cert-gallery-row {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    gap: 28px;
    padding: 20px 0 20px;
    box-sizing: border-box;
}

/* 图片横排容器 */
.cert-gallery {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
    flex: 1;
    min-width: 0;
}

.cert-gallery img {
    flex: 0 1 calc((100% - 72px) / 4);
    width: calc((100% - 72px) / 4);
    min-width: 0;
    max-width: 280px;
    height: 420px;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
    display: block;
}

.cert-gallery-item-hidden {
    display: none !important;
}

.cert-gallery img:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.15);
}

/* 两侧大箭头 */
.cert-arrow {
    display: none;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #bbb;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
    align-items: center;
    justify-content: center;
    padding: 0;
    -webkit-appearance: none;
    appearance: none;
}

.cert-gallery-row.cert-gallery-paginated .cert-arrow {
    display: flex;
}

.cert-arrow:hover {
    color: #888;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.cert-arrow:active {
    transform: scale(0.95);
}

.cert-arrow.cert-arrow-hidden {
    visibility: hidden;
    pointer-events: none;
}

/* 图片预览弹层 */
.cert-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    align-items: center;
    justify-content: center;
}

.cert-lightbox.active {
    display: flex;
}

.cert-lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.cert-lightbox-body {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 12px 60px rgba(0, 0, 0, 0.4);
    object-fit: contain;
}

.cert-lightbox-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #fff;
    color: #333;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.cert-lightbox-close:hover {
    background: #f5f5f5;
    transform: scale(1.1);
}

/* 服务列表样式 */
.service-list {
    margin-top: 20px;
    padding: 15px 20px;
    text-align: left;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}

.service-list p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.service-list ul {
    list-style: none;
    padding-left: 5px;
}

.service-list li {
    margin-bottom: 12px;
    font-size: 15px;
    display: flex;
    align-items: center;
    color: #555;
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    background-color: #4CAF50;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 14px;
    margin-right: 10px;
    flex-shrink: 0;
}

/* 自定义头部导航栏样式 */
#header {
    background-color: #fff !important;
    box-shadow: none !important;
}

#header.header-default {
    background-color: #fff !important;
    box-shadow: none !important;
}

#header nav {
    background-color: #fff !important;
    box-shadow: none !important;
}

/* 联系我们部分 */
.contact-us {
    padding: 80px 0;
    text-align: center;
}

.contact-form {
    display: flex;
    align-items: center;
    border-radius: 8px;
    padding: 6px 6px 6px 16px;
    max-width: 440px;
    margin: 0 auto;
}

.contact-input {
    flex: 1;
    border: 1.5px solid #E3EAF5;
    outline: none;
    font-size: 16px;
    padding: 8px 12px;
    background: #fff;
    color: #A9A9A9;
    font-family: var(--font-light), sans-serif;
    box-shadow: none;
}

.contact-input::placeholder {
    color: #C0C7D1;
    font-size: 15px;
}

.contact-input:focus {
    border: 1.5px solid #4CA6FF;
    outline: none;
    box-shadow: none;
    background: #fff;
    color: #333;
}

.contact-submit {
    padding: 0 28px;
    height: 42px;
    border: none;
    background: linear-gradient(90deg, #4CA6FF 0%, #1CB5FF 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    font-family: var(--font-medium), sans-serif;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(76, 166, 255, 0.10);
}

.contact-submit:hover {
    background: linear-gradient(90deg, #4CA6FF 0%, #1CB5FF 100%);
    box-shadow: 0 2px 8px rgba(76, 166, 255, 0.10);
}

/* 通用标题样式 */
.section-title {
    font-family: var(--font-medium);
    font-size: 32px;
    color: #333;
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 16px;
    color: #333333;
    margin-bottom: 60px;
    font-family: var(--font-light);
}

/* ===== 响应式 ===== */
@media screen and (max-width: 768px) {
    .certificates-banner {
        min-height: 300px;
        padding: 60px 20px;
        padding-top: 140px;
    }

    .banner-title {
        font-size: 32px;
    }

    .banner-subtitle {
        font-size: 18px;
    }

    .certificates-content {
        padding: 40px 20px;
    }

    .certificates-text-title {
        font-size: 24px;
    }

    .certificates-text-desc {
        font-size: 14px;
        text-align: center;
    }

    .certificates-img > img {
        max-width: 280px;
    }

    .cert-gallery {
        gap: 12px;
    }

    .cert-gallery img {
        flex-basis: calc((100% - 36px) / 4);
        width: calc((100% - 36px) / 4);
        max-width: none;
        height: 320px;
    }

    .cert-gallery-row {
        gap: 14px;
        padding: 16px 0 24px;
    }

    .cert-arrow {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .contact-form {
        flex-direction: column;
        max-width: 80%;
    }

    .contact-input, .contact-submit {
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .banner-title {
        font-size: 28px;
    }

    .banner-subtitle {
        font-size: 16px;
    }

    .certificates-content {
        padding: 30px 16px;
    }

    .certificates-text-title {
        font-size: 20px;
    }

    .certificates-text-desc {
        font-size: 13px;
        text-align: center;
    }

    .certificates-img > img {
        max-width: 240px;
    }

    .cert-gallery {
        gap: 8px;
    }

    .cert-gallery img {
        flex-basis: calc((100% - 24px) / 4);
        width: calc((100% - 24px) / 4);
        height: 180px;
    }

    .cert-gallery-row {
        gap: 10px;
        padding: 12px 0 20px;
    }

    .cert-arrow {
        width: 34px;
        height: 34px;
        font-size: 20px;
    }
}
