.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* 证书展示区 */
.certificate-item {
    cursor: pointer;
    background: #fafafa;
    border-radius: 10px;
    overflow: hidden;
    /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);*/
    transition: all 0.3s ease;
    position: relative;
    padding: 10px;
}

/*.certificate-item:hover {*/
/*    transform: translateY(-5px);*/
/*    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);*/
/*}*/
.certificate-item .mask{
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    background: #c66518bd;
    top: 0;
    left: 0;
    justify-content: center;
    align-items: center;
}

.certificate-item:hover .mask{
    display: flex;
    
}

.mask .magnifier{
    width: 50px;
    height: 50px;
    background: url(../images/magnifier.png) no-repeat;
    background-size: 100%;
    transform: translateY(-25px);
}

.certificate-image-container {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.certificate-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    transition: all 0.5s ease;
}

/*.certificate-item:hover img {*/
/*    transform: scale(1.1);*/
/*}*/

.certificate-title {
    position: relative;
    text-align: center;
    padding: 15px;
    font-size: 16px;
    color: #333;
    margin: 0;
    z-index: 9;
}

.certificate-item:hover .certificate-title{
    color: #fff;
}

/* 悬停遮罩效果 */
/*.image-overlay {*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: 0;*/
/*    width: 100%;*/
/*    height: 100%;*/
/*    background-color: rgba(0, 0, 0, 0);*/
/*    display: flex;*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*    transition: all 0.3s ease;*/
/*    border-radius: 10px 10px 0 0;*/
/*}*/

/*.certificate-item:hover .image-overlay {*/
/*    background-color: rgba(0, 0, 0, 0.5);*/
/*}*/

/*.zoom-icon {*/
/*    color: white;*/
/*    font-size: 24px;*/
/*    opacity: 0;*/
/*    transform: scale(0.5);*/
/*    transition: all 0.3s ease;*/
/*}*/

/*.certificate-item:hover .zoom-icon {*/
/*    opacity: 1;*/
/*    transform: scale(1);*/
/*}*/

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    overflow: auto;
    animation: fadeIn 0.3s;
}

.modal-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 20px;
    flex-direction: column;
}

.modal-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

.modal-content .close {
    /*position: absolute;*/
    /*top: 20px;*/
    /*right: 35px;*/
    /*color: #f1f1f1;*/
    /*font-size: 40px;*/
    /*font-weight: bold;*/
    /*transition: 0.3s;*/
    cursor: pointer;
    width: 40px;
    height: 40px;
    background: url(../images/close.png) no-repeat;
    background-size: 100%;
    margin-top: 10px;
}

/*.close:hover {*/
/*    color: #bbb;*/
/*}*/

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* 响应式设计 */
@media (max-width: 992px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .grid {
        grid-template-columns: 1fr;
    }
}