/* 资质页面专用样式 */
.qualifications-hero {
    position: relative;
    height: 460px;
    background-image: url("../assets/images/qualifications/bg.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 60px;
    margin-bottom: 80px;
}

.qualifications-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 47, 120, 0.2);
}

.hero-content {
    position: relative;
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 42px;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.hero-content p {
    font-size: 18px;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out 0.2s, transform 0.8s ease-out 0.2s;
}

/* 资质证书区域 */
.qualifications-container {
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto 100px;
}

.qualification-section {
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.qualification-section.show {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    color: #012f78;
    font-size: 28px;
    margin-bottom: 40px;
    padding-bottom: 10px;
    border-bottom: 2px solid #012f78;
    display: inline-block;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.certificate-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.certificate-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* 竖版资质图片样式 */
.certificate-img.vertical {
    height: 500px;
    overflow: hidden;
}

/* 横版荣誉图片样式 */
.certificate-img.horizontal {
    height: 280px;
    overflow: hidden;
}

.certificate-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.certificate-card:hover .certificate-img img {
    transform: scale(1.05);
}

.certificate-info {
    padding: 20px;
}

.certificate-info h3 {
    color: #012f78;
    margin-bottom: 10px;
    font-size: 18px;
}

.certificate-info p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* 资质说明 */
.qualifications-intro {
    background-color: #f8f9fa;
    padding: 50px 20px;
    margin-bottom: 80px;
}

.intro-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.intro-content h2 {
    color: #012f78;
    margin-bottom: 20px;
    font-size: 24px;
}

.intro-content p {
    line-height: 1.8;
    margin-bottom: 15px;
}

/* 更多资质提示 */
.more-certificates {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background-color: #f0f5ff;
    border-radius: 8px;
}

.more-certificates p {
    color: #012f78;
    font-size: 16px;
    margin-bottom: 0;
}

/* 证书查看弹窗 */
.certificate-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.certificate-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    padding: 20px;
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    display: block;
    border: 5px solid white;
    border-radius: 4px;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #ccc;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .qualifications-hero {
        height: 300px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .certificates-grid {
        grid-template-columns: 1fr;
    }

    .qualification-section {
        margin-bottom: 60px;
    }

    .section-title {
        font-size: 24px;
    }

    /* 移动端图片高度调整 */
    .certificate-img.vertical {
        height: 400px;
    }

    .certificate-img.horizontal {
        height: 250px;
    }
}