.product-gallery {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    width: 100%;
}

.main-image-container {
    flex: 2;
    position: relative;
    min-width: 500px;
    max-width: 800px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 15px;
}

.main-image {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    border-radius: 6px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.main-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.main-image:hover img {
    transform: scale(1.02);
}

.magnifier {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 2px solid #fff;
    background-repeat: no-repeat;
    display: none;
    pointer-events: none;
    box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.85),
                0 0 15px rgba(0, 0, 0, 0.2);
    border-radius: 50%;
}

.thumbnail-container {
    flex: 1;
    min-width: 150px;
    max-width: 200px;
    position: relative;
    padding: 5px;
}

.thumbnail-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: #007bff #f8f9fa;
}

/* 自定义滚动条样式 */
.thumbnail-list::-webkit-scrollbar {
    width: 6px;
}

.thumbnail-list::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 3px;
}

.thumbnail-list::-webkit-scrollbar-thumb {
    background-color: #007bff;
    border-radius: 3px;
}

.thumbnail-item {
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    position: relative;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.thumbnail-item:hover {
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.thumbnail-item.active {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.thumbnail-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.thumbnail-scroll-btn {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background: #fff;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.thumbnail-scroll-btn:hover {
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.thumbnail-scroll-btn.up {
    top: -15px;
}

.thumbnail-scroll-btn.down {
    bottom: -15px;
}

.thumbnail-scroll-btn::before {
    content: '';
    width: 10px;
    height: 10px;
    border-right: 2px solid #007bff;
    border-bottom: 2px solid #007bff;
    transform: rotate(45deg);
}

.thumbnail-scroll-btn.up::before {
    transform: rotate(-135deg);
}

.thumbnail-scroll-btn.down::before {
    transform: rotate(45deg);
}

/* 移动端响应式样式 */
@media screen and (max-width: 768px) {
    .product-gallery {
        flex-direction: column;
        gap: 15px;
    }

    .main-image-container {
        min-width: 100%;
        max-width: 100%;
        padding: 10px;
    }

    .thumbnail-container {
        min-width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .thumbnail-list {
        flex-direction: row;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 10px 0;
        gap: 10px;
    }

    .thumbnail-item {
        width: 80px;
        min-width: 80px;
        padding-bottom: 80px;
    }

    .thumbnail-scroll-btn {
        display: none;
    }

    /* 移动端横向滚动条样式 */
    .thumbnail-list::-webkit-scrollbar {
        height: 4px;
    }

    .thumbnail-list::-webkit-scrollbar-track {
        background: #f8f9fa;
        border-radius: 2px;
    }

    .thumbnail-list::-webkit-scrollbar-thumb {
        background-color: #007bff;
        border-radius: 2px;
    }
} 