/* 荣誉资质页面样式 */
.honors-main {
    margin-top: 86px;
    position: relative;
    background-color: #F7F7F7;
}

/* 荣誉资质banner */
.honors-banner {
    background: url('../../images/honors/bg.png') no-repeat center center;
    background-size: cover;
    padding: 130px 0;
    text-align: left;
    position: relative;
}

.honors-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: rgba(0, 0, 0, 0.3); */
}

.honors-banner .container {
    position: relative;
    z-index: 2;
}

.honors-banner h1 {
    color: #000;
    font-size: 48px;
    font-weight: 400;
    margin-left: 180px;
}

/* 技术成果区域 */
.achievements-section {
    padding: 80px 0;
    background-color: #fff;
}

.achievements-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 100px;
}

.achievements-title {
    font-size: 32px;
    font-weight: 700;
    color: #000;
    text-align: center;
    margin-bottom: 80px;
    line-height: 1.4;
}

.awards-container {
    display: flex;
    flex-direction: column;
    position: relative;
    margin-top: 80px;
    align-items: flex-start;
    margin-left: -300px;
}

.awards-row {
    display: flex;
    justify-content: flex-start;
    width: auto;
    gap: 80px;
}

.award-column {
    position: relative;
    padding-left: 40px;
    flex: 0 0 auto;
    min-width: 200px;
}

.award-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background-color: #E4E4E4;
}

.year-title {
    font-size: 26px;
    font-weight: 700;
    color: #000;
    margin-bottom: 25px;
}

.award-list {
    color: rgba(0, 0, 0, 0.6);
    font-size: 17px;
    font-weight: 700;
    line-height: 2.4;
    list-style: none;
    padding: 0;
    margin: 0;
}

.award-list li {
    white-space: nowrap;
    margin-bottom: 8px;
}

/* 企业荣誉证书区域 */
.certificates-section {
    padding: 60px 0;
    background: url('../../images/honors/honor-bg.png') no-repeat center center;
    background-size: cover;
    position: relative;
}

.certificates-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px;
    position: relative;
    z-index: 2;
}

.certificates-title {
    font-size: 40px;
    font-weight: 700;
    color: #000;
    text-align: center;
    margin-bottom: 60px;
}

.certificate-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    max-width: 1200px;
}

.certificate-img {
    width: 100%;
    max-width: 800px;
    height: auto;
    /* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); */
}

.certificate-controls {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 24px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.control-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.control-btn i {
    color: #333;
    font-size: 24px;
}

.control-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 证书网格 */
.certificates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
}

.certificate-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: transform .2s ease, box-shadow .2s ease;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.certificate-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* 特殊处理最后两个证书卡片 - 无空白 */
.certificate-card.special-card {
    height: 380px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.certificate-card.special-card img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
}

.certificate-card .caption {
    padding: 12px 14px;
    font-size: 14px;
    color: #333;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .awards-row {
        flex-wrap: wrap;
        gap: 50px;
    }
    
    .award-column {
        width: 50%;
        margin-bottom: 40px;
    }
    .awards-container {
        margin-left: -50px;
    }
    
    .certificate-img {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .honors-banner h1 {
        font-size: 32px;
        margin-left: 20px;
    }
    
    .achievements-container,
    .certificates-container {
        padding: 0 30px;
    }
    
    .achievements-title,
    .certificates-title {
        font-size: 28px;
        margin-bottom: 50px;
    }
    
    .award-column {
        width: 100%;
    }
    .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    .certificate-card {
        height: 320px;
    }
    .certificate-card img {
        height: 100%;
    }
    .certificate-card.special-card {
        height: 320px !important;
    }
} 

@media (max-width: 480px) {
    .certificates-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .certificate-card {
        height: 280px;
    }
    .certificate-card img {
        height: 100%;
    }
    .certificate-card.special-card {
        height: 280px !important;
    }
}

/* Lightbox 预览 */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

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

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background: #fff;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: -10px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }