/**
* clothing.css
* 
* 作者：莫哥
* 日期：2026/06/01
* 版本：1.0.0
*
* 服装页面---轮播图样式（保持不变） 
*/

.slider-wrapper {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    position: relative;
}
.slider-wrapper .carousel-item {
    height: 100%;
}
.carousel-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}
.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}
.carousel-fade .carousel-item.active {
    opacity: 1;
}

/* ===== 画册模块 ===== */
.picture-book-wrapper {
    width: 100%;
    height: 100vh;          
    overflow: hidden;
    position: relative;
    background: #f8fbfb78;
}
.picture-book-track {
    display: flex;
    height: 100%;
    transition: transform 0.1s ease-in-out;
    will-change: transform;
}

/* ===== 画册图片上的文字叠加层 ===== */

/* 上边栏：品牌 + 画册名称 */
.slide-caption-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 30px 40px 20px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, transparent 100%);
    color: #fff;
    text-align: left;
    pointer-events: none;  /* 让点击穿透，不干扰轮播按钮 */
    z-index: 2;
}
.slide-brand {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.8;
    margin: 0 0 4px;
}
.slide-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    line-height: 1.2;
}

/* 下边栏：描述 */
.slide-caption-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 40px 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    color: #fff;
    text-align: left;
    pointer-events: none;
    z-index: 2;
}
.slide-desc {
    font-size: 16px;
    font-weight: 300;
    margin: 0;
    opacity: 0.9;
    letter-spacing: 1px;
}

/* 响应式调整：移动端缩小字体和间距 */
@media (max-width: 767.98px) {
    .slide-caption-top {
        padding: 20px 20px 15px;
    }
    .slide-brand {
        font-size: 12px;
        letter-spacing: 2px;
    }
    .slide-title {
        font-size: 22px;
    }
    .slide-caption-bottom {
        padding: 15px 20px 20px;
    }
    .slide-desc {
        font-size: 14px;
    }
}
@media (max-width: 575.98px) {
    .slide-title {
        font-size: 18px;
    }
    .slide-desc {
        font-size: 13px;
    }
}








/* 图片容器相对定位，让文字层绝对定位 */
.picture-book-slide {
    position: relative;
    overflow: hidden;
}
.picture-book-slide {
    flex: 0 0 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}
.picture-book-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;  
}
.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.4);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
}
.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(0,0,0,0.7);
}
.carousel-control-prev {
    left: 10px;
}
.carousel-control-next {
    right: 10px;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: transparent no-repeat center center;
    background-size: 100% 100%;
}
.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}
.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s;
}
.carousel-indicators button.active {
    background: #fff;
}

/* 副标题（如 "服装产品"） */
/* 产品卡片样式 */
.product-card {
    background: #fff;
    border-radius: 16px 16px 8px 8px;  /* 上方圆角更大，下方稍小 */
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}
.product-image {
    width: 100%;
    /* 正方形：使用 padding-bottom: 100% 技巧，或者使用 aspect-ratio */
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f8f9fa;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.product-info {
    padding: 12px 14px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.product-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-price {
    font-size: 15px;
    font-weight: 700;
    color: #e74c3c;
    margin-top: 4px;
}

/* 响应式调整 */
@media (max-width: 767.98px) {
    .product-title {
        font-size: 14px;
    }
    .product-price {
        font-size: 13px;
    }
}
@media (max-width: 575.98px) {
    .product-title {
        font-size: 13px;
    }
}
