.gallery-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.main-image {
    flex: 1;
    min-width: 700px;
    height: 420px;
    background-color: #f5f5f5;
    display: flex;
    /*align-items: center;*/
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
}

.main-image img {
    /*width: 100%;*/
    /*height: 100%;*/
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnails {
    /*width: 520px;*/
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.thumbnail-item {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
    /*overflow: hidden;*/
}

.thumbnail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.thumbnail-image {
    height: 100px;
    background-color: #eee;
    overflow: hidden;
}

.thumbnail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-caption {
    padding: 8px 5px;
    text-align: center;
    background-color: #f9f9f9;
    font-size: 14px;
    color: #333;
}

/* 响应式设计 */
@media (max-width: 1100px) {
    .gallery-container {
        height: 100%;
        max-width: 100%;
    }

    .main-image {
        min-width: 100%;
        height: 400px;
    }

    .thumbnails {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .thumbnail-item {
        width: calc(24% - 10px);
    }
}
@media (max-width: 992px) {
    .thumbnail-image {
        height: 100%;
    }
}
@media (max-width: 600px) {
    .main-image {
        height: 300px;
    }

    .thumbnail-item {
        width: calc(23.5% - 10px);
    }

    .productDetailConBox .product1 p img {
        height: 100%;
        width: 100%;
    }
}
