/* 商品详情页样式 */
.product-detail {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-image-container {
    flex: 1;
    max-width: 500px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.product-image:hover {
    transform: scale(1.05);
}

.product-gallery {
    margin-top: 1rem;
}

.gallery-thumbnail {
    width: 100%;
    height: 80px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gallery-thumbnail:hover {
    border-color: #4CAF50;
    transform: scale(1.05);
}

.product-info {
    flex: 1;
    padding: 1rem;
}

.product-info h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.product-price {
    font-size: 1.5rem;
    color: #e44d26;
    margin-bottom: 1.5rem;
    font-weight: bold;
}

.product-features {
    margin-bottom: 2rem;
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.product-features h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 0.5rem;
}

.product-features ul {
    list-style: none;
    padding: 0;
}

.product-features li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    color: #555;
}

.product-features li i {
    color: #4CAF50;
    margin-right: 0.5rem;
}

.product-specs {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.product-specs h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 0.5rem;
}

.product-specs table {
    margin-bottom: 0;
}

.product-specs th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.product-description {
    margin-bottom: 2rem;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.product-description h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 0.5rem;
}

.product-description p {
    line-height: 1.8;
    color: #666;
}

.product-usage, .product-notice {
    margin-bottom: 2rem;
}

.product-usage h3, .product-notice h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 0.5rem;
}

.alert {
    border-radius: 8px;
    padding: 1rem;
}

.alert-info {
    background-color: #e3f2fd;
    border-color: #90caf9;
    color: #0d47a1;
}

.alert-warning {
    background-color: #fff3e0;
    border-color: #ffb74d;
    color: #e65100;
}

.product-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.product-actions button {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart {
    background-color: #4CAF50;
    color: white;
}

.add-to-cart:hover {
    background-color: #45a049;
    transform: translateY(-2px);
}

.buy-now {
    background-color: #e44d26;
    color: white;
}

.buy-now:hover {
    background-color: #d43c1c;
    transform: translateY(-2px);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    animation: zoomIn 0.3s ease;
}

.close {
    position: absolute;
    right: 25px;
    top: 10px;
    color: #f1f1f1;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #e44d26;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: translateY(-50%) scale(0.9); }
    to { transform: translateY(-50%) scale(1); }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-detail {
        flex-direction: column;
        padding: 1rem;
    }

    .product-image-container {
        max-width: 100%;
    }

    .product-info {
        padding: 1rem 0;
    }

    .product-actions {
        flex-direction: column;
    }

    .product-actions button {
        width: 100%;
    }

    .product-gallery {
        display: none;
    }
} 