.product-detail-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.product-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.thumbnail-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.5rem;
}

.thumbnail-images img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}

.thumbnail-images img:hover {
    transform: scale(1.05);
}

.product-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-prices {
    display: flex;
    gap: 1rem;
    align-items: baseline;
}

.original-price {
    text-decoration: line-through;
    color: #666;
}

.discount-price {
    color: #e74c3c;
    font-size: 1.5rem;
    font-weight: bold;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2ecc71;
}

.product-stock {
    color: #3498db;
    font-weight: bold;
}

.product-description {
    line-height: 1.6;
}

.product-specifications ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-specifications li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.product-specifications li:last-child {
    border-bottom: none;
}

.product-order-form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.product-order-form input[type="number"] {
    padding: 0.5rem;
    width: 80px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.product-button {
    padding: 0.75rem 1.5rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.product-button:hover {
    background-color: #2980b9;
}

@media (max-width: 768px) {
    .product-detail-container {
        grid-template-columns: 1fr;
        margin: 1rem;
        padding: 0;
    }
    
    .thumbnail-images {
        grid-template-columns: repeat(4, 1fr);
    }

    .product-order-form {
        flex-direction: column;
        align-items: stretch;
    }

    .product-order-form input[type="number"] {
        width: 100%;
    }

    .product-button {
        width: 100%;
        padding: 1rem;
    }
}

/* 返回按钮样式 */
.back-button {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    padding: 0.75rem 1.5rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.back-button:hover {
    background-color: #2980b9;
}

@media (max-width: 768px) {
    .back-button {
        display: block;
    }
}