 /* 基础样式 */
body {
    font-family: 'Inter', system-ui, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

/* 轮播容器 */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 400px;
    margin: 30px auto;
    overflow: hidden;
}

/* 轮播包装器 */
.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 轮播项 */
.carousel-slide {
    position: absolute;
    width: 200px;
    height: 300px;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
    filter: blur(0);
    z-index: 1;
    opacity: 1;
}

/* 商品卡片 */
.product-card {
    width: 100%;
    height: 100%;
    cursor: pointer;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative; /* 确保定位正常 */
}

.product-card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

/* 仅当卡片处于活跃状态且鼠标悬停时放大图片 */
.carousel-slide.active .product-card:hover img {
    transform: scale(1.15);
}

/* 商品信息 */
.product-info {
    padding: 16px;
}

.product-info h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #333;
}

.product-info p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* 自定义左右按钮 */
.custom-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(200, 200, 200, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s;
    border: none;
    outline: none;
}

.custom-btn:hover {
    background-color: rgba(150, 150, 150, 0.9);
}

.custom-btn.prev {
    left: 20px;
}

.custom-btn.next {
    right: 20px;
}

/* 自定义箭头 */
.custom-btn::before {
    content: '';
    width: 12px;
    height: 12px;
    border-top: 2px solid #333;
    border-left: 2px solid #333;
}

.custom-btn.prev::before {
    transform: rotate(-45deg);
    margin-left: 3px;
}

.custom-btn.next::before {
    transform: rotate(135deg);
    margin-right: 3px;
}

/* 活跃和非活跃状态 */
.carousel-slide:not(.active) {
    filter: blur(3px);
    transform: scale(0.9);
    z-index: 0;
}

.carousel-slide.active {
    z-index: 2;
    transform: scale(1.1);
}
/* 商品包裹层 */
.product-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 8px; /* 保持与商品卡片相同的圆角 */
    transition: all 0.3s ease;
	z-index: 10;
}

/* 当鼠标悬停在活跃状态的商品包裹层上时添加向内的浅棕色阴影 */
.carousel-slide.active .product-wrapper:hover {
    box-shadow: inset 0 0 10px 3px #333 /* 浅棕色阴影，可根据需要调整颜色和大小 */
}

/* 商品卡片 */
.product-card {
    width: 100%;
    height: 100%;
    cursor: pointer;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}
