
/* ==================== 5. Hero 轮播 ==================== */
#heroCarousel {
    margin-top: 0;
}

#heroCarousel .carousel-item {
    height: 75vh;
    min-height: 520px;
    max-height: 820px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* 渐变遮罩 */
#heroCarousel .carousel-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(40, 40, 40, 0.45) 0%, rgba(40, 40, 40, 0.08) 50%, rgba(40, 40, 40, 0.02) 100%);
    z-index: 1;
}

#heroCarousel .carousel-caption {
    z-index: 2;
    bottom: 16%;
    text-align: left;
    left: 8%;
    right: 8%;
    max-width: 600px;
}

#heroCarousel .carousel-caption h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    margin-bottom: 1rem;
    line-height: 1.25;
}

#heroCarousel .carousel-caption p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
    margin-bottom: 1.5rem;
    letter-spacing: 0.04em;
    line-height: 1.6;
}

#heroCarousel .carousel-caption .btn-hero {
    background-color: var(--color-white);
    color: var(--color-dark);
    border: none;
    border-radius: 50px;
    padding: 12px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-block;
}

#heroCarousel .carousel-caption .btn-hero:hover {
    background-color: var(--color-bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lift);
}

#heroCarousel .carousel-indicators {
    z-index: 3;
    bottom: 30px;
}

#heroCarousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.7);
    background: transparent;
    margin: 0 6px;
    transition: var(--transition-smooth);
}

#heroCarousel .carousel-indicators button.active {
    background: #fff;
    border-color: #fff;
    width: 28px;
    border-radius: 12px;
}

#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    z-index: 3;
    width: 50px;
    opacity: 0.7;
    transition: var(--transition-smooth);
}

#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover {
    opacity: 1;
}

/*   flash       */

.flash-pic { width:100%; height:100%; border-radius:10px; overflow:hidden; }
.flash-info {  margin:30% 0 ;   }
.flash-info h1 {    }
.flash-info p {    }
.flash1-btn  {   background-color: var(--color-dark);
    color: var(--color-white);
    border: none;
    border-radius: 50px;
    padding: 12px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-block;  }
.flash2-btn {  background-color: var(--color-white);
    color: var(--color-dark);
    margin:0 10px;
    border: none;
    border-radius: 50px;
    padding: 12px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-block;  }

/*  产品系列卡片  */
.product-series-card {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
    height: 100%;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-series-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lift);
}

.product-series-card .card-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--color-bg-light);
    flex-shrink: 0;
}

.product-series-card .card-img-wrap .series-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.product-series-card:hover .card-img-wrap .series-img {
    transform: scale(1.06);
}

/* 渐变背景兜底 */
.product-series-card .card-img-wrap.series-signature {
    background: linear-gradient(135deg, #ece8e2 0%, #dcd5cb 50%, #c9c1b4 100%);
}

.product-series-card .card-img-wrap.series-impression {
    background: linear-gradient(135deg, #e8e4df 0%, #d9d3cc 50%, #c5bfb5 100%);
}

.product-series-card .card-img-wrap.series-deepsleep {
    background: linear-gradient(135deg, #e6e3de 0%, #d7d2ca 50%, #c3bdb4 100%);
}

.product-series-card .card-img-wrap.series-collection {
    background: linear-gradient(135deg, #ede9e3 0%, #dbd5cc 50%, #c7c1b6 100%);
}

.product-series-card .card-img-wrap .series-icon-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(160, 160, 160, 0.5);
    z-index: 1;
}

.product-series-card .card-body {
    padding: 24px 20px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-series-card .card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-dark);
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.product-series-card .card-body .series-tag {
    display: inline-block;
    font-size: 0.78rem;
    color: var(--color-mid-dark);
    letter-spacing: 0.06em;
    border: 1px solid var(--color-mid);
    border-radius: 20px;
    padding: 3px 14px;
    margin-bottom: 10px;
}

.product-series-card .card-body p {
    color: var(--color-mid-dark);
    font-size: 0.88rem;
    margin: 0;
    line-height: 1.5;
}

/* ==================== 8. 卧室风格卡片 ==================== */
.style-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    height: 450px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
    background-size: cover;
    background-position: center;
}

.style-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lift);
}

.style-card .style-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    transition: var(--transition-smooth);
}

.style-card .style-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.style-card:hover .style-overlay {
    filter: brightness(0.75);
}

.style-card .style-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 28px 22px;
    color: #fff;
    background: linear-gradient(to top, rgba(40, 40, 40, 0.7) 0%, rgba(40, 40, 40, 0.15) 55%, rgba(40, 40, 40, 0.02) 100%);
}

.style-card .style-info h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.style-card .style-info span {
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    opacity: 0.85;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

/* 风格主题色（作为背景兜底，实际图片会覆盖） */
.style-card.style-warm { background-color: #e8e2da; }
.style-card.style-nordic { background-color: #e6e3dd; }
.style-card.style-luxury { background-color: #e4dfd8; }
.style-card.style-vintage { background-color: #e7e3db; }

/* ==================== 9. 材料卡片 ==================== */
.material-card {
    position: relative;
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
    aspect-ratio: 3 / 4;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 28px 18px;
    overflow: hidden;
    cursor: pointer;
    border: 1.5px solid transparent;
    background-color: #b0a89e !important;
}

/* 深色渐变遮罩 */
.material-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(40, 40, 40, 0.72) 0%,
            rgba(40, 40, 40, 0.35) 40%,
            rgba(40, 40, 40, 0.06) 75%,
            rgba(40, 40, 40, 0.0) 100%);
    z-index: 1;
    border-radius: var(--border-radius-lg);
    transition: var(--transition-smooth);
    pointer-events: none;
}

.material-card:hover::after {
    background: linear-gradient(to top,
            rgba(40, 40, 40, 0.78) 0%,
            rgba(40, 40, 40, 0.42) 40%,
            rgba(40, 40, 40, 0.10) 75%,
            rgba(40, 40, 40, 0.0) 100%);
}

.material-card:hover {
    border-color: var(--color-mid);
    box-shadow: var(--shadow-medium);
    transform: translateY(-4px);
}

.material-card h4,
.material-card p {
    position: relative;
    z-index: 2;
    color: #fff;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
    margin: 0;
}

.material-card h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
    line-height: 1.35;
}

.material-card p {
    font-size: 0.85rem;
    line-height: 1.6;
    opacity: 0.92;
    letter-spacing: 0.03em;
    max-width: 90%;
}

.material-card .material-icon {
    position: relative;
    z-index: 2;
    font-size: 2.6rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 12px;
    transition: var(--transition-smooth);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.material-card:hover .material-icon {
    color: #fff;
    transform: scale(1.08);
}

/* ==================== 10. 品牌知识中心卡片 ==================== */
.brand-module-card {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: 60px 30px;
    text-align: center;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
    height: 100%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.brand-module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-mid);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    border-radius: 0 0 3px 3px;
}

.brand-module-card:hover::before {
    transform: scaleX(1);
}

.brand-module-card:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-3px);
}

.brand-module-card .bm-icon {
    font-size: 2.4rem;
    color: var(--color-white);
    margin-bottom: 14px;
}

.brand-module-card h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-white);
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.brand-module-card p {
    font-size: 0.85rem;
    color: var(--color-white);
    margin: 0;
    line-height: 1.5;
}


/* ==================== 12. 睡眠美学日志 ==================== */
.sleep-aesthetic-block {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sleep-aesthetic-block:hover {
    box-shadow: var(--shadow-medium);
    transform: translateY(-3px);
}

.sleep-aesthetic-block .sa-img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    background-color: var(--color-bg-light);
}

.sleep-aesthetic-block .sa-body {
    padding: 22px 18px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sleep-aesthetic-block .sa-body h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-dark);
    letter-spacing: 0.04em;
    margin-bottom: 5px;
}

.sleep-aesthetic-block .sa-body p {
    font-size: 0.83rem;
    color: var(--color-mid-dark);
    margin: 0;
}

/* ==================== 13. 客户口碑卡片（保留，以备后用） ==================== */
.testimonial-card {
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    padding: 28px 22px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    height: 100%;
    border-left: 3px solid transparent;
}

.testimonial-card:hover {
    border-left-color: var(--color-mid);
    box-shadow: var(--shadow-medium);
}

.testimonial-card .quote-icon {
    font-size: 2rem;
    color: var(--color-mid);
    margin-bottom: 10px;
    opacity: 0.6;
}

.testimonial-card p.testimonial-text {
    font-size: 0.9rem;
    color: var(--color-dark);
    line-height: 1.6;
    font-style: italic;
    letter-spacing: 0.03em;
}

.testimonial-card .testimonial-author {
    font-size: 0.82rem;
    color: var(--color-mid-dark);
    letter-spacing: 0.04em;
    margin-top: 8px;
}

.gallery-card {
            position: relative;
            border-radius: var(--border-radius);
            overflow: hidden;
            cursor: pointer;
            height: 460px;
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
            transition: var(--transition-smooth);
            display: flex;
            align-items: flex-end;
        }
        .gallery-card::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(to top,
                    rgba(40, 40, 40, 0.55) 0%,
                    rgba(40, 40, 40, 0.18) 35%,
                    rgba(40, 40, 40, 0.02) 65%,
                    transparent 100%);
            z-index: 1;
            transition: var(--transition-smooth);
        }
        .gallery-card:hover::after {
            background: linear-gradient(to top,
                    rgba(40, 40, 40, 0.65) 0%,
                    rgba(40, 40, 40, 0.25) 35%,
                    rgba(40, 40, 40, 0.04) 65%,
                    transparent 100%);
        }
 .gallery-carousel.center-mode .owl-item {
            transform: scale(0.88);
            transition: transform 0.5s ease, opacity 0.5s ease;
            opacity: 0.6;
        }
        .gallery-carousel.center-mode .owl-item.active.center {
            transform: scale(1);
            opacity: 1;
        }
        .gallery-carousel.center-mode .owl-item.active.center .gallery-card {
            box-shadow: var(--shadow-lift);
        }

        /* ========== Owl 导航按钮 ========== */
        .gallery-carousel .owl-nav {
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            transform: translateY(-50%);
            display: flex;
            justify-content: space-between;
            pointer-events: none;
            z-index: 5;
            padding: 0 10px;
        }
        .gallery-carousel .owl-nav button {
            pointer-events: all;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.85) !important;
            backdrop-filter: blur(6px);
            color: var(--color-dark) !important;
            font-size: 1.4rem !important;
            display: flex !important;
            align-items: center;
            justify-content: center;
            transition: var(--transition-smooth) !important;
            box-shadow: 0 4px 16px rgba(40, 40, 40, 0.1);
            border: 1px solid rgba(160, 160, 160, 0.15) !important;
            margin: 0 !important;
        }
        .gallery-carousel .owl-nav button:hover {
            background: rgba(255, 255, 255, 0.95) !important;
            box-shadow: 0 8px 24px rgba(40, 40, 40, 0.18);
            transform: scale(1.06);
            color: var(--color-dark) !important;
        }
        .gallery-carousel .owl-nav button span {
            font-size: 1.6rem;
            line-height: 1;
            display: block;
        }

        /* ========== Owl 圆点指示器 ========== */
        .gallery-carousel .owl-dots {
            display: flex;
            justify-content: center;
            gap: 8px;
            margin-top: 24px;
        }
        .gallery-carousel .owl-dots .owl-dot span {
            width: 8px;
            height: 8px;
            background: #d0d0d0;
            border-radius: 8px;
            transition: var(--transition-smooth);
            margin: 0;
        }
        .gallery-carousel .owl-dots .owl-dot.active span {
            width: 28px;
            background: var(--color-dark);
        }
        .gallery-carousel .owl-dots .owl-dot:hover span {
            background: var(--color-mid-dark);
        }

        /* ========== 响应式 ========== */
        @media (max-width: 991px) {
            .gallery-card {
                height: 380px;
            }
            .gallery-carousel .owl-nav button {
                width: 40px;
                height: 40px;
                font-size: 1.1rem !important;
            }
        }
        @media (max-width: 767px) {
            .gallery-section {
                padding: 50px 0;
            }
            .gallery-card {
                height: 320px;
            }
            .gallery-card .card-caption {
                padding: 22px 18px;
            }
            .gallery-card .card-caption h3 {
                font-size: 1.05rem;
            }
            .gallery-carousel .owl-nav button {
                width: 34px;
                height: 34px;
                font-size: 1rem !important;
            }
            .gallery-carousel .owl-nav {
                padding: 0 2px;
            }
        }



/* ==================== 16. 响应式设计 ==================== */
/* 大平板以下 (≤991px) */
@media (max-width: 991px) {
    .navbar .nav-link {
        padding: 8px 12px !important;
        font-size: 0.85rem;
    }
    .btn-tmall-nav,
    .btn-chat-nav {
        font-size: 0.8rem;
        padding: 6px 14px;
    }
    .style-card {
        height: 320px;
    }
    .product-series-card .card-img-wrap {
        aspect-ratio: 4 / 3;
    }
    .cta-strip .cta-inner {
        flex-direction: column;
        text-align: center;
    }
    .material-card {
        aspect-ratio: 3 / 4;
        padding: 24px 16px;
    }
    .material-card h4 {
        font-size: 1.15rem;
    }
    .material-card p {
        font-size: 0.8rem;
    }
}

/* 平板竖屏及以下 (≤767px) */
@media (max-width: 767px) {
    .section-padding {
        padding: 50px 0;
    }
    #heroCarousel .carousel-item {
        height: 55vh;
        min-height: 380px;
    }
    #heroCarousel .carousel-caption {
        bottom: 10%;
        left: 5%;
        right: 5%;
    }
    #heroCarousel .carousel-caption h1 {
        font-size: 1.6rem;
    }
    #heroCarousel .carousel-caption p {
        font-size: 0.9rem;
    }
    .style-card {
        height: 260px;
    }
    .product-series-card .card-img-wrap {
        aspect-ratio: 3 / 2;
    }
    .product-series-card .card-body {
        padding: 16px 14px;
    }
    .product-series-card .card-body h3 {
        font-size: 1.1rem;
    }
    .product-series-card .card-body p {
        font-size: 0.8rem;
    }
    .material-card {
        aspect-ratio: 4 / 3;
        padding: 20px 14px;
        min-height: 240px;
    }
    .material-card h4 {
        font-size: 1.1rem;
    }
    .material-card p {
        font-size: 0.78rem;
        max-width: 95%;
    }
    .sleep-aesthetic-block .sa-img {
        aspect-ratio: 16 / 9;
    }
}

/* 手机端 (≤575px) */
@media (max-width: 575px) {
    .material-card {
        aspect-ratio: 5 / 4;
        padding: 18px 12px;
        min-height: 220px;
    }
    .material-card h4 {
        font-size: 1rem;
    }
    .material-card p {
        font-size: 0.75rem;
    }
    .product-series-card .card-img-wrap {
        aspect-ratio: 16 / 10;
    }
}