/* 资质证书页面样式 */
.zizhi-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.section-title {
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2:after {
    content: '';
    width: 70px;
    height: 3px;
    background: #4154f1;
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-title p {
    font-size: 16px;
    color: #666;
    max-width: 700px;
    margin: 20px auto 0;
}

.zizhi-gallery {
    margin-top: 30px;
}

.zizhi-item {
    margin-bottom: 30px;
}

.zizhi-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.zizhi-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.zizhi-img {
    position: relative;
    overflow: hidden;
    height: auto;
    aspect-ratio: 1/1;
}

.zizhi-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.zizhi-card:hover .zizhi-img img {
    transform: scale(1.1);
}

.zizhi-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.zizhi-card:hover .zizhi-overlay {
    opacity: 1;
}

.zizhi-preview {
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4154f1;
    font-size: 18px;
    transform: scale(0);
    transition: all 0.3s ease;
}

.zizhi-card:hover .zizhi-preview {
    transform: scale(1);
}

.zizhi-preview:hover {
    background: #4154f1;
    color: #fff;
}

.zizhi-info {
    padding: 20px;
    text-align: center;
}

.zizhi-info h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.zizhi-info p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* 图片预览样式 */
.zizhi-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zizhi-preview-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.zizhi-preview-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.zizhi-preview-title {
    color: #fff;
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
}

.zizhi-preview-img img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
    border: 5px solid #fff;
}

/* 响应式样式 */
@media (max-width: 991px) {
    .zizhi-section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 30px;
    }
}

@media (max-width: 767px) {
    .zizhi-section {
        padding: 50px 0;
    }
    
    .section-title h2 {
        font-size: 26px;
    }
    
    .zizhi-img {
        height: 200px;
    }
}