/* css/honors.css */
.honors {
    padding: 40px 0;
    background: #fff;
}

.honors-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 标题样式 */
.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 28px;
    color: #333;
}

.highlight {
    color: #1890ff;
}

/* 证书网格布局 */
.honors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 0 auto;
}

/* 证书项样式 */
.honor-item {
    text-align: center;
    background: #fff;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

/* 证书图片容器 */
.honor-image {
    position: relative;
    width: 100%;
    padding-top: 125%;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* 图片自适应样式 */
.honor-image img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.honor-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.honor-item:hover .honor-overlay {
    opacity: 1;
}

.zoom-icon {
    color: #fff;
    font-size: 20px;
}

.honor-item h3 {
    margin: 12px 0 0;
    font-size: 13px;
    color: #333;
    font-weight: normal;
    line-height: 1.4;
    padding: 0 10px;
}

/* 模态框样式优化 */
.honor-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 1000;
}

.modal-content {
    max-width: 80%;
    max-height: 80vh;
    margin: auto;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
}

.modal-close {
    position: absolute;
    right: 25px;
    top: 15px;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
}

/* 响应式布局调整 */
@media screen and (max-width: 992px) {
    .honors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .honor-image {
        padding-top: 130%;
    }
}

@media screen and (max-width: 576px) {
    .honors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .honor-item h3 {
        font-size: 12px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.honor-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

/* 为每个证书设置不同的动画延迟 */
.honor-item:nth-child(2) {
    animation-delay: 0.2s;
}

.honor-item:nth-child(3) {
    animation-delay: 0.4s;
}