.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.product-wrapper {
    display: flex;
    gap: 60px;
}

/* 左侧图片区域 */
.product-gallery {
    flex: 1;
    display: flex;
    gap: 20px;
}

.thumbnails {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.thumbnail {
    width: 80px;
    height: 100px;
    border: 2px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f5f5f5;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #667eea;
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.main-image {
    flex: 1;
    position: relative;
    background-color: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-image img {
    max-width: 100%;
    max-height: 600px;
    object-fit: contain;
}

.zoom-icon {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.zoom-icon:hover {
    background-color: #f0f0f0;
}

/* 右侧产品信息 */
.product-info {
    flex: 1;
    max-width: 500px;
}

.product-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #222;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.stars {
    color: #ffa500;
    font-size: 16px;
}

.review-count {
    color: #888;
    font-size: 14px;
}

.product-price {
    font-size: 24px;
    font-weight: 600;
    color: #222;
    margin-bottom: 25px;
}

.product-description {
    color: #888;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.product-options {
    margin-bottom: 30px;
}

.option-group {
    margin-bottom: 25px;
}

.option-label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
}

.size-options {
    display: flex;
    gap: 15px;
}

.size-option {
    position: relative;
}

.size-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.size-option label {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.size-option input[type="radio"]:checked + label {
    background-color: #222;
    color: white;
    border-color: #222;
}

.size-option label:hover {
    border-color: #222;
}

.color-options {
    display: flex;
    gap: 12px;
}

.color-option {
    position: relative;
}

.color-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.color-option label {
    display: inline-block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.color-option label::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.color-option input[type="radio"]:checked + label {
    border-color: #222;
    box-shadow: 0 0 0 2px white, 0 0 0 4px #222;
}

.color-option input[type="radio"]:checked + label::after {
    transform: translate(-50%, -50%) scale(1);
}

.color-option label:hover {
    transform: scale(1.1);
}

.color-black { background-color: #000; }
.color-blue { background-color: #4169e1; }
.color-coral { background-color: #ff6b6b; }
.color-gray { background-color: #d3d3d3; }
.color-purple { background-color: #9370db; }

/* 购买操作区 */
.purchase-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    align-items: center;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 48px;
    border: none;
    background-color: #fff;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    transition: background-color 0.3s;
}

.quantity-btn:hover {
    background-color: #f5f5f5;
}

.quantity-input {
    width: 60px;
    height: 48px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.add-to-cart {
    flex: 1;
    height: 48px;
    background-color: #222;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.add-to-cart:hover {
    background-color: #444;
}

.action-btn {
    width: 48px;
    height: 48px;
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.action-btn:hover {
    background-color: #f5f5f5;
    border-color: #222;
}

/* 产品元信息 */
.product-meta {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-bottom: 30px;
}

.meta-item {
    font-size: 18px;
    color: red;
    margin-bottom: 8px;
}

.meta-item strong {
    color: #333;
}

.meta-item a {
    color: #888;
    text-decoration: none;
}

.meta-item a:hover {
    color: #222;
}

/* 社交媒体 */
.social-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.social-label {
    font-weight: 600;
    font-size: 16px;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    cursor: pointer;
    transition: all 0.3s;
}

.social-icon:hover {
    color: #222;
    transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .product-gallery {
        flex-direction: column-reverse;
    }

    .thumbnails {
        flex-direction: row;
        overflow-x: auto;
    }

    .thumbnail {
        min-width: 80px;
    }

    .main-image {
        min-height: 400px;
    }

    .product-info {
        max-width: 100%;
    }

    .purchase-actions {
        flex-wrap: wrap;
    }

    .add-to-cart {
        flex-basis: 100%;
    }
}

.purchase-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 数量选择器 */
.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.quantity-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 48px;
    background-color: #f8f8f8;
    color: #666;
    text-decoration: none;
    font-size: 20px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s;
    user-select: none;
}

.quantity-btn:hover {
    background-color: #e8e8e8;
    color: #333;
}

.quantity-btn:active {
    background-color: #d0d0d0;
}

.quantity-input {
    width: 60px;
    height: 48px;
    border: none;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    background-color: #fff;
}

/* 加入购物车按钮 */
.add-to-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 40px;
    background-color: #1a1a1a;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    user-select: none;
}

.add-to-cart:hover {
    background-color: #2a2a2a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.add-to-cart:active {
    background-color: #0a0a0a;
    transform: translateY(0);
}

/* 图标按钮 */
.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid #e0e0e0;
    background-color: #fff;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.action-btn:hover {
    border-color: #1a1a1a;
    background-color: #f8f8f8;
    transform: translateY(-1px);
}

.action-btn:active {
    background-color: #e8e8e8;
    transform: translateY(0);
}

.action-btn svg {
    width: 20px;
    height: 20px;
    color: #333;
}

/* 移除链接默认样式 */
a {
    outline: none;
    -webkit-tap-highlight-color: transparent;
}