﻿/* #region Banner 容器 */
.banner-section {
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Swiper 容器 */
.banner-swiper {
    width: 100%;
    height: auto;
}

    /* 图片自适应：保持比例，不拉伸 */
    .banner-swiper .swiper-slide picture,
    .banner-swiper .swiper-slide img {
        display: block;
        width: 100%;
        height: auto;
        object-fit: cover; /* 确保图片覆盖区域，可根据需求改为 contain */
    }

/* 如果需要固定高度比例（可选），例如按视口比例 */
/* 但不强制，因为图片自身比例决定高度，可确保无空白 */

/* 叠加文字样式（示例） */
.banner-text {
    position: absolute;
    bottom: 20%;
    left: 5%;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    max-width: 80%;
}

    .banner-text h2 {
        font-size: 2rem;
        font-weight: 700;
    }

    .banner-text p {
        font-size: 1rem;
    }

@media (max-width: 767px) {
    .banner-text h2 {
        font-size: 1.5rem;
    }

    .banner-text p {
        font-size: 0.8rem;
    }
}

/* 分页器容器：定位到底部 */
.banner-swiper .swiper-pagination {
    bottom: 16px; /* 距离底部距离，可按需调整 */
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
}

/* 未激活的小圆圈 */
.banner-swiper .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    margin: 0 6px;
    border-radius: 50%;
    transition: all 0.2s;
}

/* 激活状态的小圆圈 */
.banner-swiper .swiper-pagination-bullet-active {
    background: #0b90c7; /* 主题色，可修改 */
    width: 10px;
    height: 10px;
}

/* #endregion  */

/* #region 视频播放容器*/
/* 视频宣传栏整体容器 */
.video-promo {
    width: 100%;
    height: 800px; /* PC 固定高度 */
    background-color: #fafbfc; /* 背景色可按需调整 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
}

.video-promo-container {
    max-width: 1336px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

/* 左侧文字区域 */
.video-promo-text {
    flex: 1;
    max-width: 480px;
}

.video-promo-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e2f30;
    margin-bottom: 24px;
    line-height: 1.2;
}

.video-promo-subtitle {
    font-size: 18px;
    color: #5f7a7c;
    line-height: 1.5;
}

/* 右侧视频区域 */
.video-promo-media {
    flex: 1;
    display: flex;
    justify-content: center;
}

.promo-video {
    width: 784px;
    height: 480px;
    object-fit: cover; /* 保持视频比例填充，可根据需要改为 contain */
    border-radius: 24px;
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

/* 手机端适配：上下布局，高度自动 */
@media (max-width: 767px) {
    .video-promo {
        height: auto;
        padding: 60px 20px;
    }

    .video-promo-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .video-promo-text {
        max-width: 100%;
        text-align: center;
        padding: 0 10px;
    }

    .video-promo-title {
        font-size: 20px;
        margin-bottom: 16px;
        word-break: break-word;
        white-space: normal;
    }

    .video-promo-subtitle {
        font-size: 14px;
    }

    .video-promo-media {
        width: 100%;
    }

    .promo-video {
        width: 100%;
        height: auto;
        max-width: 100%;
        aspect-ratio: 784 / 480;
    }
}

/* #endregion */

/* #region 产品推荐*/
/* 产品推荐栏整体 */
.products-showcase {
    width: 100%;
    height: 746px; /* PC 固定高度 */
    display: flex;
    align-items: center;
    background-color: #ffffff;
    padding: 0 24px;
}

.products-container {
    max-width: 1336px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

/* 左侧标题区 */
.products-title-area {
    flex: 0 0 200px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e2f30;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* 正确：一次只显示3个，超出隐藏 */
.products-grid-wrapper {
    overflow: hidden !important;
    position: relative;
}

.products-grid {
    display: flex !important;
    transition: transform 0.4s ease !important;
    gap: 24px !important;
    flex-wrap: nowrap !important;
}

.product-card {
    flex: 0 0 calc((100% - 48px) / 3) !important; /* 一行固定3个 */
    box-sizing: border-box !important;
    background: #ffffff !important; /* 卡片纯白背景 */
    border-radius: 20px !important; /* 大气圆角（可自己改）*/
    overflow: hidden !important; /* 让图片贴边不溢出 */
}

    .product-card:hover {
        transform: translateY(-5px);
    }

/* 图片区域：240*264，相对定位用于 hover 切换 */
.product-image {
    position: relative;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important; /* 图片贴边，圆角交给卡片 */
    height: auto;
    aspect-ratio: 240 / 264;
    overflow: hidden;
}

    .product-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: opacity 0.3s ease;
    }

    .product-image .primary-img {
        opacity: 1;
    }

    .product-image .hover-img {
        opacity: 0;
    }

    /* 仅当鼠标悬停在 .product-image 上时切换图片 */
    .product-image:hover .primary-img {
        opacity: 0;
    }

    .product-image:hover .hover-img {
        opacity: 1;
    }
/* 产品信息 */
.product-info {
    padding: 16px 8px 0;
    text-align: center;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e1e1e;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 44px;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #0b90c7;
    margin-bottom: 12px;
}

.product-btn {
    display: inline-block;
    padding: 12px 100px !important;
    background: transparent;
    border: 1px solid #0b90c7;
    color: #0b90c7;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px !important;
    transition: all 0.2s;
    min-height: 27px !important;
    border-radius: 50px !important;
}

    .product-btn:hover {
        background: #0b90c7;
        color: white;
    }

/* 标题下方翻页按钮 */
.pagination-buttons {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.pagination-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #0b90c7;
    background: #fff;
    color: #0b90c7;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

    .pagination-btn:hover {
        background: #0b90c7;
        color: #fff;
    }

    .pagination-btn:disabled {
        border-color: #ccc;
        color: #ccc;
        cursor: not-allowed;
    }

/* PC 端样式：一次显示 3 个完整产品 */
.products-grid-wrapper {
    width: 100%;
    overflow: hidden;
}

.products-grid {
    display: flex;
    transition: transform 0.4s ease;
    gap: 20px;
}

.product-card {
    flex: 0 0 calc((100% - 40px) / 3);
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
}

/* 手机端适配：上下布局，高度自动，产品横向滚动 */
@media (max-width: 767px) {
    .products-showcase {
        height: auto;
        padding: 60px 16px;
    }

    .products-container {
        flex-direction: column;
        gap: 40px;
    }

    .products-title-area {
        flex: auto;
        text-align: center;
    }

    .section-title {
        font-size: 32px;
    }

    .products-grid-wrapper {
        overflow: hidden !important;
    }

    .products-grid {
        gap: 0 !important;
        flex-wrap: nowrap !important;
    }

    .product-card {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    /* 如果严格要求只显示一个卡片，取消下面注释并注释掉滚动设置 */
    /* 
    .products-grid {
        overflow-x: visible;
        flex-wrap: wrap;
        justify-content: center;
    }
    .product-card {
        flex: 0 0 100%;
        max-width: 280px;
    }
    */
}
/* #endregion */

/* #region 权威认证*/
/* 权威认证模块 */
.certification {
    width: 100%;
    overflow: hidden;
    background-color: #f8f9fa;
}

.certification-picture {
    display: block;
    width: 100%;
}

.certification-picture img {
    width: 100%;
    height: auto;
    display: block;
}

/*#endregion */

/* #region 客户评价*/
/* 客户心声模块 */
.customer-reviews {
    padding: 60px 24px;
    background-color: #fafbfc; /* 与其它模块交替背景色可选 */
    border-bottom: 1px solid #eef2f4;
}

.reviews-container {
    max-width: 1336px;
    margin: 0 auto;
}

.reviews-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #1e2f30;
    margin-bottom: 48px;
}

/* 滚动容器 */
.reviews-scroll-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.reviews-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: reviewsScroll 180s linear infinite;
    padding: 8px 0 16px;
}

@keyframes reviewsScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%); /* 根据克隆份数调整，若克隆2遍则-50%足够 */
    }
}

.reviews-track:hover {
    animation-play-state: paused;
}

/* 卡片样式 */
.review-card {
    width: 300px;
    flex-shrink: 0;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

    .review-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

.review-avatar {
    width: 100%;
    height: 350px;
    object-fit: cover;
    background-color: #eef2f4;
}

.review-content {
    padding: 20px;
}

.review-rating {
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: #ffb800;
}

    .review-rating span {
        color: #5f7a7c;
        font-size: 13px;
        font-weight: 500;
    }

.review-text {
    font-size: 13px;
    line-height: 1.5;
    color: #2c3e3f;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
}

/* Tooltip 样式 */
.reviews-tooltip {
    position: fixed;
    background: #1e2f30;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    max-width: 280px;
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.2s;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    pointer-events: none;
}

    .reviews-tooltip.visible {
        opacity: 1;
    }

/* 滚动动画 */
@keyframes reviewsScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* 响应式：手机端卡片宽度变小，tooltip 居中显示 */
@media (max-width: 767px) {
    .customer-reviews {
        padding: 40px 16px;
    }

    .reviews-title {
        font-size: 24px;
        margin-bottom: 32px;
    }

    .review-card {
        width: 260px;
    }

    .review-avatar {
        height: 200px;
    }

    .review-content {
        padding: 16px;
    }

    .review-rating {
        font-size: 12px;
    }

    .review-text {
        font-size: 12px;
        -webkit-line-clamp: 3;
    }
}

@media (max-width: 480px) {
    .review-card {
        width: 220px;
    }

    .review-avatar {
        height: 180px;
    }
}
/* #endregion*/

/* #region 品牌故事*/
/* 品牌故事模块 */
.brand-story-section {
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.brand-story-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

/* PC 背景图 */
.brand-story-bg-pc {
    display: block;
}

    .brand-story-bg-pc img {
        width: 100%;
        height: auto;
        display: block;
    }

/* 移动端背景图（默认隐藏） */
.brand-story-bg-mobile {
    display: none;
}

    .brand-story-bg-mobile img {
        width: 100%;
        height: auto;
        display: block;
    }

/* 文字内容区域（PC端：绝对定位，初始隐藏，滚动显示） */
.brand-story-text {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1336px;
    padding: 0 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 48px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, bottom 0.8s ease, visibility 0.8s;
    /* 初始位置稍微靠下 */
    bottom: -50px;
}

    .brand-story-text.show-story {
        opacity: 1;
        visibility: visible;
        bottom: 96px;
    }

.brand-story-title {
    width: 280px;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.4;
    color: #1e2f30;
    margin: 0;
}

.brand-story-info-grid {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    justify-content: flex-start;
}

.story-info {
    width: 200px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: #2c3e3f;
}

    .story-info em {
        font-style: normal;
        color: #0b90c7;
        font-weight: 600;
    }

/* 移动端适配（≤767px） */
@media (max-width: 767px) {
    .brand-story-bg-pc {
        display: none;
    }

    .brand-story-bg-mobile {
        display: block;
    }

    .brand-story-text {
        position: relative;
        bottom: auto !important;
        left: auto;
        transform: none;
        opacity: 1;
        visibility: visible;
        padding: 40px 20px 60px;
        display: block;
        text-align: center;
    }

    .brand-story-title {
        width: 100%;
        font-size: 32px;
        margin-bottom: 32px;
    }

    .brand-story-info-grid {
        flex-direction: column;
        gap: 24px;
    }

    .story-info {
        width: 100%;
        font-size: 14px;
        line-height: 1.5;
    }
}

/* 平板小屏适配（768px - 1024px） */
@media (min-width: 768px) and (max-width: 1024px) {
    .brand-story-text {
        bottom: 40px;
        gap: 24px;
    }

    .brand-story-title {
        width: 220px;
        font-size: 32px;
    }

    .story-info {
        width: 180px;
        font-size: 13px;
    }

    .brand-story-text.show-story {
        bottom: 40px;
    }
}
/* #endregion*/
