

.carousel-container {
max-width: 1360px;
margin: 0 auto;
padding: 0 15px;
position: relative;
}

.section-title {
text-align: center;
margin-bottom: 30px;
color: #fff;
font-size: 28px;
}

.multi-carousel {
width: 100%;
overflow: hidden;
position: relative;
}

.carousel-track {
display: flex;
transition: transform 0.5s ease;
}

.product-card {
min-width: calc(25% - 15px);
margin-right: 20px;
background: #fff;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
transition: transform 0.3s;
}

.product-card:hover {
transform: translateY(-5px);
}

.product-img {
width: 100%;
height: 400px;
padding: 15px 10px 10px 10px;
object-fit: contain;
/*object-fit: cover;*/
display: block;
}

.product-details {
padding: 15px;
}

.product-name {
font-size: 16px;
margin-bottom: 8px;
color: #333;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}

.product-desc {
font-size: 14px;
color: #666;
margin-bottom: 10px;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
height: 40px;
}

.product-price-container {
display: flex;
align-items: center;
margin-bottom: 15px;
}

.current-price {
font-size: 18px;
color: #e53935;
font-weight: bold;
}

.original-price {
font-size: 14px;
color: #999;
text-decoration: line-through;
margin-left: 8px;
}

.add-cart-btn {
width: 100%;
padding: 8px 0;
background: #ff5722;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
transition: background 0.3s;
}

.add-cart-btn:hover {
background: #e64a19;
}

.carousel-nav {
position: absolute;
top: 50%;
width: calc(100% - 30px);
display: flex;
justify-content: space-between;
transform: translateY(-50%);
}

.nav-btn {
width: 40px;
height: 40px;
background: rgba(255,255,255,0.9);
border-radius: 50%;
border: none;
box-shadow: 0 2px 5px rgba(0,0,0,0.1);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
color: #333;
z-index: 10;
}

.carousel-dots {
display: flex;
justify-content: center;
margin-top: 20px;
gap: 10px;
}

.dot {
width: 12px;
height: 12px;
border-radius: 50%;
background: #ccc;
cursor: pointer;
transition: background 0.3s;
}

.dot.active {
background: #333;
}

@media (max-width: 992px) {
.product-card {
min-width: calc(33.33% - 13.33px);
}
}

@media (max-width: 768px) {
.product-card {
min-width: calc(50% - 10px);
margin-right: 20px;
}
}

@media (max-width: 576px) {
.product-card {
min-width: 100%;
margin-right: 20px;
}
}



/* 应用场景 */


.image-gallery {
max-width: 100%;
margin: 0 auto;
padding: 20px;
}

.gallery-title {
text-align: center;
margin-bottom: 30px;
color: #fff;
font-size: 36px;
}

.image-row {
display: flex;
flex-wrap: wrap;
gap: 20px; /* 图片间距 */
justify-content: center;
}

.image-container {
flex: 1;
min-width: 240px; /* 最小宽度 */
max-width: 360px; /* 最大宽度 */
border-radius: 8px;
overflow: hidden;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
transition: transform 0.3s ease;
}

.image-container:hover {
transform: translateY(-5px);
box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.image-container img {
width: 100%;
height: 600px;
object-fit: cover;
display: block;
}

.image-caption {
padding: 15px;
background: white;
text-align: center;
}

@media (max-width: 768px) {
.image-container {
min-width: 50%;
max-width: calc(50% - 10px);
}
}

@media (max-width: 480px) {
.image-container {
max-width: 100%;
}
}

