 /* 基础样式 */
        .product-image-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin: 0 auto;
        }

        /* PC端样式 - 大于1024px */
        @media (min-width: 1025px) {
            .product-image-container {
                width: 100%;
                max-width: 500px;
                height: 530px; /* 最外框固定高度 */
            }
            
            /* 大图区域 */
            .main-image-container {
                width: 425px;
                height: 425px;
                display: flex;
                align-items: center;
                justify-content: center;
            }
            
            #mainImage {
                width: 425px;
                height: 425px;
                object-fit: contain;
                cursor: pointer;
            }
            
            /* 缩略图控制区域 */
            .thumbnail-control {
                height: 70px;
                display: flex;
                align-items: center;
                margin-top: 25px;
            }
            
            /* 小图外框 */
            .thumbnail-wrapper {
                width: 80px;
                height: 70px;
                margin: 0 5px;
            }
            
            /* 小图样式 */
            .thumbnail {
                height: 70px;
                width: auto;
            }
        }

        /* 平板端样式 - 769px 至 1024px */
        @media (min-width: 769px) and (max-width: 1024px) {
            .product-image-container {
                width: 100%;
                max-width: 250px;
                height: 230px; /* 平板最外框总高度 */
            }
            
            /* 大图区域 */
            .main-image-container {
                width: 166px;
                height: 166px;
                display: flex;
                align-items: center;
                justify-content: center;
            }
            
            #mainImage {
                width: 166px;
                height: 166px;
                object-fit: contain;
                cursor: pointer;
            }
            
            /* 缩略图控制区域 */
            .thumbnail-control {
                height: 40px;
                display: flex;
                align-items: center;
                margin-top: 20px;
            }
            
            /* 小图外框 */
            .thumbnail-wrapper {
                width: 50px;
                height: 40px;
                margin: 0 3px;
            }
            
            /* 小图样式 */
            .thumbnail {
                height: 40px;
                width: auto;
            }
        }

        /* 通用样式 */
        .thumbnails-wrapper {
            overflow-x: auto; /* 允许横向滚动 */
            overflow-y: hidden;
            width: 100%;
            padding: 0 5px;
        }
        .thumbnails-list {
            display: flex;
            white-space: nowrap;
        }

        .thumbnail-wrapper {
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0; /* 防止缩略图被压缩 */
        }

        .thumbnail {
            object-fit: cover;
            cursor: pointer;
            border: 1px solid transparent;
            transition: border-color 0.3s ease;
        }
        .thumbnail:hover {
            border: 1px solid #1E50AE;
        }
        .thumbnail.active {
            border: 1px solid #1E50AE;
        }

        /* 模态框基础样式 */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.95);
            z-index: 9999; /* 确保在所有图层最上层 */
            align-items: center;
            justify-content: center;
        }
        
        /* 手机端模态框 - 移除所有按钮 */
        @media (max-width: 768px) {
            .modal-btn:not(.mobile-close-btn), .modal-controls {
                display: none !important;
            }
            
            .modal-content {
                width: 100%;
                height: 100%;
                display: flex;
                align-items: center;
                justify-content: center;
            }
            
            #modalImage {
                max-width: 100%;
                max-height: 100%;
                object-fit: contain;
            }
            
            /* 手机端关闭按钮 - 简洁风格 */
            .mobile-close-btn {
                position: fixed;
                top: 20px;
                right: 20px;
                width: 40px;
                height: 40px;
                background-color: rgba(0, 0, 0, 0.5);
                color: white;
                border: none;
                border-radius: 50%;
                font-size: 20px;
                display: flex;
                align-items: center;
                justify-content: center;
                z-index: 10000;
                cursor: pointer;
            }
            
            /* 手机端图片计数器 */
            .mobile-counter {
                position: fixed;
                bottom: 20px;
                left: 50%;
                transform: translateX(-50%);
                background-color: rgba(0, 0, 0, 0.5);
                color: white;
                padding: 5px 15px;
                border-radius: 15px;
                font-size: 16px;
                z-index: 10000;
            }
        }
        
        /* PC和平板端模态框 - 保留原有功能 */
        @media (min-width: 769px) {
            .modal-content {
                position: relative;
            }
            
            #modalImage {
                max-width: 90%;
                max-height: 80vh;
                transition: transform 0.3s ease;
            }
            
            .modal-btn {
                background-color: rgba(0, 0, 0, 0.5);
                color: white;
                border: none;
                width: 50px;
                height: 50px;
                border-radius: 50%;
                cursor: pointer;
                font-size: 24px;
                display: flex;
                align-items: center;
                justify-content: center;
                transition: background-color 0.3s;
            }
            
            .modal-btn:hover {
                background-color: rgba(0, 0, 0, 0.8);
            }
            
            #prevBtn {
                position: fixed;
                left: 60px;
                top: 50%;
                transform: translateY(-50%);
            }
            
            #nextBtn {
                position: fixed;
                right: 60px;
                top: 50%;
                transform: translateY(-50%);
            }
            
            #closeBtn {
                position: fixed;
                top: 60px;
                right: 60px;
            }
            
            .modal-controls {
                position: fixed;
                bottom: 80px;
                left: 0;
                right: 0;
                display: flex;
                justify-content: center;
                gap: 10px;
            }
            
            .modal-controls button {
                padding: 8px 16px;
                background-color: rgba(255, 255, 255, 0.9);
                border: none;
                border-radius: 4px;
                cursor: pointer;
                font-size: 14px;
                display: flex;
                align-items: center;
                gap: 5px;
                transition: background-color 0.3s;
            }
            
            .modal-controls button:hover {
                background-color: white;
            }
            
            .mobile-close-btn, .mobile-counter {
                display: none;
            }
        }
        
        /* 图片计数显示 - 手机端缩略图区域 */
        .image-counter {
            position: absolute;
            bottom: 15px;
            right: 15px;
            background-color: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 5px 10px;
            border-radius: 15px;
            font-size: 14px;
            display: none;
            z-index: 100;
        }
        
        /* 触摸滑动区域 */
        .swipe-container {
            position: relative;
        }
        
        /* 移动端样式 */
        @media (max-width: 768px) {
            .thumbnail-container {
                display: none !important;
            }
            
            .image-counter {
                display: block;
            }
            
            .product-image-container {
                height: auto;
                padding: 20px 0;
            }
            
            .main-image-container,
            .swipe-container {
                width: 90%;
                height: auto;
                max-height: 70vh;
            }
            
            #mainImage {
                width: 100%;
                height: auto;
                max-height: 70vh;
            }
        }