/* 基础样式 */
body {
    font-family: 'Microsoft YaHei', sans-serif;
    background-color: #f8f8f8;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.product-container {
    max-width: 800px;
    display: flex;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 商品图片样式 */
.product-image {
    position: relative;
    width: 400px;
    height: 500px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* 商品信息样式 */
.product-info {
    padding: 30px;
    width: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-info h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.original-price {
    font-size: 18px;
    color: #999;
    text-decoration: line-through;
    margin-bottom: 5px;
}

.sale-price {
    font-size: 22px;
    color: #e74c3c;
    font-weight: bold;
    margin-bottom: 20px;
}

.buy-btn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.buy-btn:hover {
    background-color: #c0392b;
}

/* 促销标志 - 使用伪元素添加 */
.product-image.promo::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    background-image: url('../../49方妙圆第06次课作业/work/第七次作业/img/左上.png');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 10;
}

.product-image.promo::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background-image: url('../../49方妙圆第06次课作业/work/第七次作业/img/右下.png');
    background-size: contain;
    background-repeat: no-repeat;
    z-index: 10;
}

/* 促销动画效果 */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.product-image.promo {
    animation: pulse 2s infinite;
}

.product-image.promo img:hover {
    transform: scale(1.05);
}