
        :root {
            --primary: #667eea;
            --secondary: #764ba2;
            --accent: #ffd700;
            --light-bg: #f5f7fa;
            --dark-bg: #c3cfe2;
            --text-dark: #333;
            --text-light: #666;
            --text-white: white;
            --border: #f0f0f0;
            --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            --shadow-hover: 0 5px 15px rgba(0, 0, 0, 0.2);
        }


        /* 主容器 - 适应手机屏幕 */
        .product-container {
            width: 100%;
            max-width: 100%;
            margin: 0 auto;
            background: white;
            border-radius: 0;
            box-shadow: none;
            animation: fadeIn 0.8s ease-out;
            min-height: 100vh;
        }

        @media (min-width: 768px) {
            .product-container {
                border-radius: 20px;
                box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
                margin: 20px auto;
                max-width: 1280px;
                min-height: auto;
            }
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }



        /* 内容区域 - 改为垂直布局 */
        .product-content {
            display: block;
            padding: 20px 15px;
        }

        @media (min-width: 768px) {
            .product-content {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: 30px;
                padding: 30px;
            }
        }

        /* 图片浏览区域 - 手机优化 */
        .gallery-section {
            width: 100%;
            margin-bottom: 25px;
        }

        .gallery-main {
            position: relative;
            overflow: hidden;
            border-radius: 12px;
            box-shadow: var(--shadow);
            background: var(--light-bg);
            aspect-ratio: 1/1;
            margin-bottom: 15px;
        }

        .main-image-container {
            width: 100%;
            height: 100%;
            position: relative;
            overflow: hidden;
			display: flex;
  justify-content: center; /* 水平居中 */
  align-items: center;     /* 垂直居中 */

        }

        .main-image {
            width: 100%;
            height: 100%;
            object-fit: contain;
            background: var(--light-bg);
            transition: transform 0.3s ease;
        }

        .main-image:hover {
            transform: scale(1.02);
        }

        .image-counter {
            position: absolute;
            top: 12px;
            right: 12px;
            background: rgba(0, 0, 0, 0.7);
            color: var(--text-white);
            padding: 6px 12px;
            border-radius: 15px;
            font-size: 0.85rem;
            backdrop-filter: blur(5px);
        }

        /* 导航按钮 - 手机优化 */
        .gallery-controls {
            position: absolute;
            top: 50%;
            width: 100%;
            display: flex;
            justify-content: space-between;
            padding: 0 10px;
            transform: translateY(-50%);
        }
.gallery-controls1 {
            position: absolute;
            top: 5%;
            width: 100%;
            display: flex;
            justify-content: space-between;
            padding: 0 10px;
            transform: translateY(-50%);
			color: brown;
	font-weight: bold;
        }

        .control-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.95);
            border: none;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 1.2rem;
            color: var(--text-dark);
            transition: all 0.3s ease;
            box-shadow: var(--shadow);
            touch-action: manipulation;
        }

        .control-btn:active {
            transform: scale(0.95);
        }

        /* 缩略图区域 - 手机优化 */
        .thumbnail-gallery {
            width: 100%;
        }

        .thumbnail-scroll {
            display: flex;
            gap: 8px;
            overflow-x: auto;
            padding: 8px 0;
            scrollbar-width: none;
            -webkit-overflow-scrolling: touch;
        }

        .thumbnail-scroll::-webkit-scrollbar {
            display: none;
        }

        .thumbnail {
            width: 70px;
            height: 70px;
            min-width: 70px;
            border-radius: 8px;
            object-fit: cover;
            cursor: pointer;
            border: 3px solid transparent;
            transition: all 0.3s ease;
        }

        .thumbnail.active {
            border-color: var(--primary);
            box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
        }

       

        /* 商品信息区域 - 手机优化 */
        .product-info {
            padding: 0;
        }

        .product-info h2 {
            color: var(--text-dark);
            font-size: 1.3rem;
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 2px solid var(--border);
        }

        .description {
            color: var(--text-light);
            line-height: 1.6;
            margin-bottom: 20px;
            font-size: 0.95rem;
        }

        .specs {
            list-style: none;
            margin-bottom: 25px;
        }

        .specs li {
            padding: 10px 0;
            border-bottom: 1px solid var(--border);
            display: flex;
            justify-content: space-between;
        }

        .specs li:last-child {
            border-bottom: none;
        }

        .spec-label {
            color: var(--text-light);
            font-weight: 500;
            font-size: 0.9rem;
        }

        .spec-value {
            color: var(--text-dark);
            font-weight: 600;
            font-size: 0.9rem;
        }

        /* 操作按钮 - 手机优化 */
        .action-buttons {
            display: flex;
            gap: 12px;
            margin-top: 25px;
        }

        .btn {
            padding: 14px 20px;
            border: none;
            border-radius: 10px;
            font-size: 0.95rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            flex: 1;
        }

        .btn-primary {
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            color: var(--text-white);
        }

        .btn-primary:active {
            transform: translateY(-2px);
        }

        .btn-secondary {
            background: var(--light-bg);
            color: var(--text-dark);
            border: 2px solid var(--border);
        }

        .btn-secondary:active {
            background: #e9ecef;
        }

        /* 灯箱样式 - 手机优化 */
        .lightbox-backdrop {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 2000;
            animation: fadeIn 0.3s ease;
        }

        .lightbox-content {
            width: 100%;
            height: 100%;
            position: relative;
            display: flex;
            flex-direction: column;
        }

        .lightbox-image {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .lightbox-controls {

            position: absolute;
            top: env(safe-area-inset-top, 20px);
            right: 20px;
            display: flex;
            gap: 10px;
            z-index: 10;
        }

        .lightbox-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            border: none;
            color: var(--text-white);
			background: #ff0000;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .lightbox-counter {
            position: absolute;
            bottom: env(safe-area-inset-bottom, 20px);
            left: 0;
            width: 100%;
            text-align: center;
            color: var(--text-white);
            font-size: 1rem;
            padding: 10px;
        }

        /* 加载状态 */
        .loading {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 40px;
            height: 40px;
            border: 3px solid rgba(243, 243, 243, 0.3);
            border-top: 3px solid var(--primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: translate(-50%, -50%) rotate(0deg); }
            100% { transform: translate(-50%, -50%) rotate(360deg); }
        }

        /* 底部安全区域 */
        .safe-area-bottom {
            padding-bottom: env(safe-area-inset-bottom, 0px);
        }

        /* 触摸反馈优化 */
        @media (hover: none) {
            .thumbnail:hover {
                transform: none;
            }
            
            .feature-item:hover {
                transform: none;
            }
            
            .btn-primary:hover {
                transform: none;
            }
        }

        /* 小屏幕手机优化 */
        @media (max-width: 360px) {
            html { font-size: 15px; }
            
            .thumbnail {
                width: 60px;
                height: 60px;
                min-width: 60px;
            }
            
            .feature-grid {
                grid-template-columns: 1fr;
            }
            
            .btn {
                padding: 12px 15px;
                font-size: 0.9rem;
            }
        }

        /* 平板优化 */
        @media (min-width: 768px) and (max-width: 1024px) {
            .product-container {
                max-width: 90%;
            }
            
            .feature-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }
