/* 实验器材页面样式 */
.lab-equipment-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.lab-equipment-section .section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.lab-equipment-section .section-desc {
    text-align: center;
    font-size: 16px;
    color: #666;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.equipment-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.equipment-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.equipment-item:hover {
    transform: translateY(-5px);
}

.equipment-image-container {
    width: 100%;
    background-color: #fff;
    border: 2px solid #d0d0d0;
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.equipment-item:hover .equipment-image-container {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: #0066cc;
}

.equipment-image {
    width: 100%;
    height: 250px;
    display: block;
    object-fit: cover;
    border-radius: 2px;
    transition: transform 0.3s ease;
    background-color: #fafafa;
}

.equipment-item:hover .equipment-image {
    transform: scale(1.05);
}

.equipment-caption {
    margin-top: 12px;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .equipment-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .equipment-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .equipment-image {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .lab-equipment-section {
        padding: 40px 0;
    }
    
    .lab-equipment-section .section-title {
        font-size: 28px;
    }
    
    .lab-equipment-section .section-desc {
        font-size: 14px;
        margin-bottom: 30px;
        padding: 0 15px;
    }
    
    .equipment-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 500px;
    }
    
    .equipment-image-container {
        padding: 8px;
    }
    
    .equipment-image {
        height: 200px;
    }
    
    .equipment-caption {
        font-size: 14px;
        margin-top: 10px;
    }
}

/* 模态框样式（用于点击放大查看） */
.equipment-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    overflow: auto;
    align-items: center;
    justify-content: center;
}

.equipment-modal.active {
    display: flex;
}

.equipment-modal-content {
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.equipment-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 3px solid #fff;
}

.equipment-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    z-index: 10000;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    transition: background-color 0.3s ease;
}

.equipment-modal-close:hover {
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
}

