/* ===== 荣誉资质 ===== */
.honor-certificates {
    padding: 4rem 0;
}

.certificate-container {
    display: flex;
    margin: 0 auto;
    width: 100%;
    padding: 10px 0;
    overflow-x: auto;
}

.certificate-item {
    flex: 0 0 25%;
    min-width: 25%;
    padding: 0 10px;
    box-sizing: border-box;
    transition: transform 0.5s ease;
}

/* 证书图片 */
.certificate-image {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    height: 300px;
}

.certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* 悬停效果 */
.certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.certificate-name {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    padding: 0 1rem;
}

.certificate-image:hover .certificate-overlay {
    opacity: 1;
}

.certificate-image:hover img {
    transform: scale(1.05);
}

/* 证书查看器模态框 */
.certificate-viewer {
    background-color: white;
    padding: 1rem;
    border-radius: 4px;
    max-width: 90%;
    margin: 0 auto;
}

.certificate-viewer img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

/* 响应式样式 */
@media screen and (max-width: 1023px) {
    .certificate-item {
        flex: 0 0 33.333%;
        min-width: 33.333%;
    }
}

@media screen and (max-width: 768px) {
    .certificate-item {
        flex: 0 0 50%;
        min-width: 50%;
    }

    .certificate-image {
        height: 250px;
    }

    .certificate-filter .buttons {
        flex-wrap: wrap;
    }

    .certificate-filter .button {
        margin: 0.25rem;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

@media screen and (max-width: 480px) {
    .certificate-item {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .certificate-image {
        height: 220px;
    }

    .certificate-filter .button {
        margin: 0.25rem;
        padding: 0.5rem;
        font-size: 0.85rem;
        flex: 0 0 calc(50% - 0.5rem);
    }

    .view-more-btn {
        width: 100%;
        max-width: 200px;
    }
}