/* 标签切换样式 */
.certificate-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0 30px;
}

.tab-btn {
    background: none;
    border: none;
    font-size: 16px;
    color: #666;
    padding: 8px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    color: #333;
    border-bottom-color: #e0e0e0;
}

.tab-btn.active {
    color: #333;
    font-weight: 500;
    border-bottom-color: #333;
}

/* 修改证书展示样式 */
.certificate-gallery {
    display: none !important;
    background: none !important;
    flex-wrap: wrap !important;
    margin-top: 0 !important;
    min-height: auto !important;
    border-radius: 0 !important;
}

.certificate-gallery.active {
    display: flex !important;
    gap: 20px !important;
    padding: 40px 0 !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    justify-content: center !important;
    width: 100% !important;
}

/* 修改证书项样式 */
.certificate-item {
    width: calc(100% / 6 - 20px) !important;
    max-width: 200px !important; /* 恢复默认大小 */
    min-width: 150px !important; /* 恢复默认大小 */
    box-shadow: none !important;
    border-radius: 0 !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
}

/* 只为荣誉证书容器内的证书项调整大小和样式 */
#honor .certificate-item {
    max-width: 333px !important; /* 放大3分之2：200px * 5/3 ≈ 333px */
    min-width: 250px !important; /* 放大3分之2：150px * 5/3 ≈ 250px */
}

.certificate-item img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    /* 为所有证书图片添加卡片式设计和阴影效果 */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
    border-radius: 12px !important;
}

/* 为荣誉证书图片添加更强的卡片式设计和阴影效果 */
#honor .certificate-item img {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18) !important;
    border-radius: 16px !important;
    /* 移除背景和内边距，只保留阴影效果 */
}

/* 点击放大效果 */
.certificate-item.active {
    transform: none !important;
    z-index: 10 !important;
    box-shadow: none !important;
}

.certificate-item.active img {
    transform: scale(2) !important;
    z-index: 10 !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2) !important;
    position: relative !important;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .certificate-item {
        width: calc(100% / 5 - 20px) !important;
    }
    
    /* 荣誉证书在中等屏幕下的调整 */
    #honor .certificate-item {
        width: calc(100% / 4 - 20px) !important;
    }
}

@media (max-width: 768px) {
    .certificate-item {
        width: calc(100% / 4 - 20px) !important;
    }
    
    /* 荣誉证书在平板屏幕下的调整 */
    #honor .certificate-item {
        width: calc(100% / 3 - 20px) !important;
    }
    
    .tab-btn {
        font-size: 14px !important;
        padding: 6px 15px !important;
    }
}

@media (max-width: 576px) {
    .certificate-item {
        width: calc(100% / 3 - 20px) !important;
    }
    
    /* 荣誉证书在手机屏幕下的调整 */
    #honor .certificate-item {
        width: calc(100% / 2 - 20px) !important;
    }
    
    .certificate-tabs {
        gap: 10px !important;
    }
    
    .tab-btn {
        font-size: 13px !important;
        padding: 5px 12px !important;
    }
}