/* 资质证照页面样式 - 背景图+加大尺寸+点击放大 */

/* 资质区块通用样式 */
.cert-section {
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}



.section-header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a3a6c;
    margin: 0 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.title-line {
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), #4a90d9);
    margin-bottom: 20px;
    border-radius: 2px;
}

.section-title .title-en {
    font-size: 15px;
    font-weight: 400;
    color: #888;
    letter-spacing: 3px;
}

.section-desc {
    text-align: center;
    max-width: 700px;
    margin: 25px auto 0;
    color: #666;
    font-size: 15px;
    line-height: 1.8;
}

/* 证书横向排列 */
.cert-row {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.cert-row:last-child {
    margin-bottom: 0;
}

.cert-row.center {
    justify-content: center;
}

/* 证书项 - 透明背景让背景图透过来 */
.cert-item {
    background: rgba(255,255,255,0.9);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.cert-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

/* 大尺寸 - 无线电型号核准证、行业资质 */
.cert-item.large {
    width: 420px;
}

.cert-item.large .cert-img {
    height: 320px;
}

/* 中等尺寸 - 软件著作权、企业资质 */
.cert-item.medium {
    width: 360px;
}

.cert-item.medium .cert-img {
    height: 280px;
}

.cert-img {
    position: relative;
    overflow: hidden;
    background: rgba(248,249,250,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.cert-img img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.cert-item:hover .cert-img img {
    transform: scale(1.02);
}

/* 放大提示 */
.cert-item::after {
    content: '🔍 点击放大';
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.cert-item:hover::after {
    opacity: 1;
}

.cert-label {
    padding: 15px 20px;
    text-align: center;
    font-size: 14px;
    color: #444;
    background: rgba(250,251,252,0.8);
    border-top: 1px solid rgba(240,240,240,0.5);
    font-weight: 500;
}

/* 核心资质区域 */
.core-cert {
    background: linear-gradient(180deg, #fafbfc 0%, #fff 50%, #fafbfc 100%);
}

/* 软件著作权区域 */
.software-cert {
    background: #fff;
}

/* 行业资质区域 */
.industry-cert {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

/* 企业资质区域 */
.company-cert {
    background: #fafbfc;
}

/* 放大查看模态框 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(255,255,255,0.3);
}

/* 响应式 */
@media (max-width: 1600px) {
    .cert-row {
        gap: 40px;
    }
    
    .cert-item.large {
        width: 380px;
    }
    
    .cert-item.large .cert-img {
        height: 290px;
    }
    
    .cert-item.medium {
        width: 320px;
    }
    
    .cert-item.medium .cert-img {
        height: 250px;
    }
}

@media (max-width: 1400px) {
    .cert-row {
        gap: 30px;
    }
    
    .cert-item.large {
        width: 340px;
    }
    
    .cert-item.large .cert-img {
        height: 260px;
    }
    
    .cert-item.medium {
        width: 280px;
    }
    
    .cert-item.medium .cert-img {
        height: 220px;
    }
}

@media (max-width: 992px) {
    .cert-section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .cert-row {
        gap: 25px;
    }
    
    .cert-item.large {
        width: 300px;
    }
    
    .cert-item.large .cert-img {
        height: 230px;
    }
    
    .cert-item.medium {
        width: 260px;
    }
    
    .cert-item.medium .cert-img {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .cert-section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .cert-row {
        gap: 20px;
    }
    
    .cert-item.large,
    .cert-item.medium {
        width: 100%;
        max-width: 350px;
    }
    
    .cert-item.large .cert-img,
    .cert-item.medium .cert-img {
        height: 260px;
    }
}