html {
    scroll-behavior: smooth;
    /* 启用平滑滚动 */
}

/* 第一个轮播 */
#carouselExampleInterval .carousel-inner .carousel-item {
    width: 100%;
    height: 400px;
}

#carouselExampleInterval .carousel-inner .carousel-item .slide {
    /* width: 300px; */
    height: 400px;
    background-image: url(../img/carousel/10.png);
    display: flex;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

#carouselExampleInterval .carousel-inner .carousel-item .slide .alide-auto {
    width: 1200px;
    margin: auto;
    /* background: aqua; */
    display: flex;
    align-items: center;
    justify-content: space-between
}

#carouselExampleInterval .carousel-inner .carousel-item .slide .alide-auto .slide-right {
    display: flex;
    justify-content: center;
    align-content: center;
}

/* 第二个轮播 */
#carouselExampleInterval .carousel-inner .carousel-item {
    /* width: 300px; */
    height: 400px;
}

#carouselExampleInterval .carousel-inner .carousel-item .slide-1 {
    width: 100%;
    height: 400px;
    background-image: url(../img/carousel/12.png);
    display: flex;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

#carouselExampleInterval .carousel-inner .carousel-item .slide-1 .alide-auto {
    width: 1200px;
    margin: auto;
    /* background: aqua; */
    display: flex;
    align-items: center;
    justify-content: space-between
}

#carouselExampleInterval .carousel-inner .carousel-item .slide-1 .alide-auto .slide-right {
    display: flex;
    justify-content: center;
    align-content: center;
}


/* 第三个轮播 */
#carouselExampleInterval .carousel-inner .carousel-item {
    /* width: 300px; */
    height: 400px;
}

#carouselExampleInterval .carousel-inner .carousel-item .slide-2 {
    width: 100%;
    height: 400px;
    background-image: url(../img/carousel/14.png);
    display: flex;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

#carouselExampleInterval .carousel-inner .carousel-item .slide-2 .alide-auto {
    width: 1200px;
    margin: auto;
    /* background: aqua; */
    display: flex;
    align-items: center;
    justify-content: space-between
}

#carouselExampleInterval .carousel-inner .carousel-item .slide-2 .alide-auto .slide-right {
    display: flex;
    justify-content: center;
    align-content: center;
}

/* 外层框框的样式 */
.frame {
    width: 300px;
    /* 框的宽度，可自定义 */
    height: 300px;
    /* 框的高度，可自定义 */
    position: relative;
    /* 为内部绝对定位元素做参考 */
}

/* 内部图片的样式 */
.float-img {
    width: 100%;
    /* 图片宽度适应框 */
    height: auto;
    /* 高度自动，保持比例 */
    position: absolute;
    /* 开启绝对定位，用于控制位置 */
    object-fit: contain;
    /* 保持图片比例，完整显示在容器内，多余部分留空 */
    top: 0;
    /* 初始顶部位置 */
    left: 0;
    /* 初始左侧位置 */
    animation: floatUpDown 3s infinite ease-in-out;
    /* 动画：3秒循环，缓动效果 */
}

.suozi {
       width: 100%;
    /* 图片宽度适应框 */
    height: auto;
    /* 高度自动，保持比例 */
    position: absolute;
    /* 开启绝对定位，用于控制位置 */
    object-fit: contain;
    /* 保持图片比例，完整显示在容器内，多余部分留空 */
    top: 0;
    /* 初始顶部位置 */
    right: 0;
    /* 初始左侧位置 */
    animation: floatUpDowns 3s infinite ease-in-out;
    /* 动画：3秒循环，缓动效果 */
}

.float-imgs {
    width: 100%;
    /* 图片宽度适应框 */
    height: auto;
    /* 高度自动，保持比例 */
    position: absolute;
    /* 开启绝对定位，用于控制位置 */
    top: 0;
    /* 初始顶部位置 */
    left: 0;
    /* 初始左侧位置 */
    /* animation: floatUpDown 3s infinite ease-in-out; */
    z-index: 1000;
}


/* 定义“上下悬浮”的关键帧动画 */
@keyframes floatUpDown {
    0% {
        top: 0;
        /* 初始位置（顶部） */
    }

    50% {
        top: 50px;
        /* 中间位置（向下移动 50px，可自定义距离） */
    }

    100% {
        top: 0;
        /* 回到初始位置（顶部） */
    }
}
/* 定义“上下悬浮”的关键帧动画 */
@keyframes floatUpDowns {
    0% {
        top: 0;
        /* 初始位置（顶部） */
    }

    50% {
        top: 50px;
        /* 中间位置（向下移动 50px，可自定义距离） */
    }

    100% {
        top: 0;
        /* 回到初始位置（顶部） */
    }
}

/* 容器：包裹购物车和星星 */
.scene {
    position: relative;
    /* 为绝对定位的子元素做参考 */
    width: 370px;
    /* 容器宽度，可自定义 */
    height: 300px;
    /* 容器高度，可自定义 */
}

/* 购物车：居中显示 */
.gowuche {
    position: absolute;
    width: 100%;
    /* 购物车宽度，可自定义 */
    height: auto;
    /* 高度自动，保持比例 */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    /* 精准居中 */
}

/* 星星通用样式：绝对定位 + 自转动画 */
.star {
    position: absolute;
    width: 40px;
    /* 星星宽度，可自定义 */
    height: auto;
    /* 高度自动，保持比例 */
    animation: rotate 3s infinite linear;
    /* 自转动画：3秒一圈，无限循环，匀速 */
}

/* 定义“自转”关键帧动画 */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* 星星1：位置1 */
.star-1 {
    top: 53px;
    left: 141px;
    width: 30px;
}

/* 星星2：位置2 */
.star-2 {
    top: 192px;
    left: 63px;
    width: 30px;
    /* 不同大小，增加层次感 */
}

/* 星星3：位置3 */
.star-3 {
    top: 258px;
    left: 184px;
    width: 30px;
}

/* 星星4：位置4 */
.star-4 {
    top: 145px;
    left: 302px;
    width: 30px;
}




/* 第四个轮播 */
#carouselExampleInterval .carousel-inner .carousel-item {
    /* width: 300px; */
    height: 400px;
}

#carouselExampleInterval .carousel-inner .carousel-item .slide-3 {
    width: 100%;
    height: 400px;
    background-image: url(../img/carousel/11.png);
    display: flex;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

#carouselExampleInterval .carousel-inner .carousel-item .slide-3 .alide-auto {
    width: 1200px;
    margin: auto;
    /* background: aqua; */
    display: flex;
    align-items: center;
    justify-content: space-between
}

#carouselExampleInterval .carousel-inner .carousel-item .slide-3 .alide-auto .slide-right {
    display: flex;
    justify-content: center;
    align-content: center;
}

/* 手机端适配：屏幕宽度 ≤ 768px 时生效 */
@media (max-width: 768px) {

    /* 1. 调整轮播容器高度，适配手机屏幕 */
    #carouselExampleInterval .carousel-inner .carousel-item {
        height: auto;
        /* 取消固定高度，随内容自适应 */
        min-height: 350px;
        /* 保证最小高度，避免内容溢出 */
    }

    /* 2. 调整轮播单页背景容器，适配手机宽度 */
    #carouselExampleInterval .carousel-inner .carousel-item .slide,
    #carouselExampleInterval .carousel-inner .carousel-item .slide-1,
    #carouselExampleInterval .carousel-inner .carousel-item .slide-2,
    #carouselExampleInterval .carousel-inner .carousel-item .slide-3 {
        height: 700px;
        min-height: 350px;
        padding: 20px 0;
        /* 上下留白，避免内容贴边 */
    }

    /* 3. 调整内容容器宽度，适配手机屏幕（取消固定1200px） */
    #carouselExampleInterval .carousel-inner .carousel-item .slide .alide-auto,
    #carouselExampleInterval .carousel-inner .carousel-item .slide-1 .alide-auto,
    #carouselExampleInterval .carousel-inner .carousel-item .slide-2 .alide-auto,
    #carouselExampleInterval .carousel-inner .carousel-item .slide-3 .alide-auto {
        width: 90%;
        /* 占屏幕90%宽度，留左右边距 */
        flex-direction: column;
        /* 垂直排列：文字在上，图片在下 */
        gap: 20px;
        /* 文字与图片之间留白 */
    }

    /* 4. 调整左侧文字区域，适配手机阅读 */
    #carouselExampleInterval .carousel-inner .carousel-item .alide-auto .slide-left {
        width: 100%;
        /* 占满容器宽度 */
        text-align: center;
        /* 文字居中，提升手机端视觉体验 */
        padding: 0 10px;
        /* 左右留白，避免文字贴边 */
    }

    /* 5. 调整标题字体大小，适配手机屏幕 */
    #carouselExampleInterval .carousel-inner .carousel-item .slide-left h3 {
        font-size: 18px;
        /* 缩小标题字体，避免换行过多 */
        margin-bottom: 15px;
    }

    /* 6. 调整描述文字样式，优化阅读体验 */
    #carouselExampleInterval .carousel-inner .carousel-item .slide-left p {
        font-size: 12px;
        /* 缩小描述文字 */
        padding: 15px 0;
        /* 减少上下内边距，压缩高度 */
        line-height: 1.5;
        /* 增加行高，提升可读性 */
    }

    /* 7. 调整按钮样式，适配手机点击区域 */
    #carouselExampleInterval .carousel-inner .carousel-item .slide-left .btn {
        width: 80%;
        /* 按钮占满80%宽度，方便点击 */
        margin: 0 auto 10px !important;
        /* 按钮居中，上下留白 */
        padding: 8px 0;
        /* 增加按钮上下内边距，扩大点击区域 */
        font-size: 12px;
    }

    /* 8. 调整右侧图片区域，避免图片溢出 */
    #carouselExampleInterval .carousel-inner .carousel-item .alide-auto .slide-right {
        width: 100%;
        /* 图片区域占满容器宽度 */
    }

    /* 9. 调整图片尺寸，适配手机屏幕（保持宽高比） */
    #carouselExampleInterval .carousel-inner .carousel-item .slide-right img {
        /* width: 100%; */
        /* 图片占满父容器宽度 */
        /* height: 500px;  */
        /* min-height: 180px; */
        /* 限制图片最大高度，避免轮播过高 */
    }

    /* 10. 调整轮播控制按钮（上一张/下一张），提升手机端可见性 */
    .carousel-control-prev,
    .carousel-control-next {
        width: 30px;
        /* 缩小控制按钮区域宽度 */
        height: 60px;
        /* 增加控制按钮高度，方便点击 */
        background-color: rgba(0, 0, 0, 0.3);
        /* 增加背景透明度，提升可见性 */
        border-radius: 4px;
        /* 增加圆角，优化视觉 */
    }

    /* 11. 调整控制按钮图标大小 */
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 18px;
        height: 18px;
    }
}





/* tab选项卡 */
#tabSelect {
    width: 100%;
    background: white;
    /* 向下加阴影 */
    box-shadow: 0 5px 10px rgba(175, 173, 173, 0.2);

}

#tabSelect .tabSelect-auto {
    /* 默认样式：手机端使用百分比宽度 */
    width: 100%;
    margin: auto;
    height: 50px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

/* PC端样式：屏幕宽度≥1200px时生效 */
@media (min-width: 1200px) {
    #tabSelect .tabSelect-auto {
        width: 1200px;
        /* PC端固定1200px宽度 */
    }
}

.container-1200 {
    width: 100%;
    padding-right: var(--bs-gutter-x, 0.75rem);
    padding-left: var(--bs-gutter-x, 0.75rem);
    margin-right: auto;
    margin-left: auto;
}

/* 大屏设备时固定1200px宽度 */
@media (min-width: 1200px) {
    .container-1200 {
        max-width: 1200px;
    }
}



#tabSelect .tabSelect-auto .tabSelect-auto-item {
    height: 100%;
    /* width: 80px; */
    justify-content: center;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.tab-active {
    color: red;
    border-bottom: 2px solid red;
}

/* 推荐购买 */
/* .content-sections{
    width: 1200px;
    margin: 0 auto;
} */
.content-sections h2 {
    padding: 75px 0px 50px 0px;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
}

.card {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.badge {
    position: absolute;
    top: 9px;
    right: -20px;
    background: linear-gradient(135deg, #ff4d4f 0%, #f5222d 100%);
    /* 红色渐变，模拟丝带光泽 */
    color: white;
    padding: 6px 24px;
    border-radius: 2px;
    font-size: 12px;
    font-weight: bold;
    transform: rotate(45deg);
    /* 旋转45度，贴合角落 */
    box-shadow: 2px 2px 6px rgba(255, 77, 79, 0.3);
    /* 丝带阴影，增强层次 */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    /* 文字阴影，更精致 */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.c-auto-item {
    background: #fff;
    border-radius: 10px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #f1f1f1;
    z-index: 1;
}

/* 进度条式边框效果 */
.c-auto-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #e74c3c;
    transition: width 0.6s ease;
    z-index: 2;
}

.c-auto-item:hover:before {
    width: 100%;
}

.c-auto-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

/* 核心优势 */
.h-title h3 {
    width: 100%;
    text-align: center;
    font-size: 22px;
    font-weight: bold;
    padding: 75px 0px 20px 0px;
}

.h-contai {
    width: 100%;

}

.h-contai-auto {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

@media (min-width:1200px) {
    .h-contai-auto {
        width: 1200px
    }
}

.item-contai {
    width: 400px;
    /* background: aqua; */
    text-align: center;
    margin-top: 40px;
    padding: 0 40px 0;
}



/* 产品功能 */
.c-title {
    width: 100%;
    background: #F5F5F9;
    margin-top: 50px;
}

.c-title h4 {
    width: 100%;
    font-size: 22px;
    font-weight: bold;
    padding: 50px 0 20px 0;
    text-align: center;
}

.c-auto {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

@media (min-width:1200px) {
    .c-auto {
        width: 1200px;
    }
}

.c-auto-item {
    width: 290px;
    height: 250px;
    background-color: white;
    margin: 15px 0;
    padding: 20px;
    /* 加阴影 */
    box-shadow: 1px 1px 1px rgba(175, 173, 173, 0.2);
}

.c-auto-item img {
    width: 50px;
    height: 50px;
}

.c-auto-item p {
    font-size: 18px;
    font-weight: bold;
    padding: 20px 0 10px 0;
}

.c-auto-item div {
    font-size: 14px;
}


/* 行业场景 */
.industry-title {
    width: 100%;
    background: #F5F5F9;
}

.industry-title h4 {
    font-size: 22px;
    font-weight: bold;
    width: 100%;
    text-align: center;
    padding: 50px 0 20px 0;
}

.industry-auto {
    width: 100%;
    margin: 0 auto;
 height: auto; /* 取消固定高度，让高度随内容自适应 */
    min-height: auto; /* 如果之前设置过min-height，也一并取消 */
    display: flex;
    flex-wrap: wrap;
}

@media (min-width:1200px) {
    .industry-auto {
        width: 1200px;
        height: 450px;

    }
}

.industry-auto img {
    width: 100%;
    height: 100%;
}

.industry-auto-left {
    width: 65%;
    height: 100%;
    /* background: aqua; */
}

.industry-auto-right {
    width: 35%;
    height: 100%;
    /* 使用渐变从下往上，下面是灰色往上白色 */
    background: linear-gradient(to top, #adadad, #fff);
}
/* 移动端适配 */
@media (max-width: 768px) {
    /* 在小屏幕上改为上下布局 */
    .industry-auto-left,
    .industry-auto-right {
        width: 100%;
    }
    
    /* 调整标题大小和间距 */
    .industry-title h4 {
        font-size: 18px;
        padding: 30px 0 15px 0;
    }
    
    /* 调整内容区边距 */
    .industry-auto-right .container.mt-4 {
        margin-top: 20px !important;
    }
    
    /* 调整优势项布局，在移动端单列显示 */
    .advantage .col-md-6 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    /* 增加移动端内边距，提升阅读体验 */
    .content-box {
        padding: 0 10px;
    }
    
    /* 调整字体大小适应移动端 */
    .content-box p,
    .advantage-item span {
        font-size: 13px !important;
        line-height: 1.6; /* 增加行高，提升可读性 */
    }
}


@media (max-width: 575px) {
    .news-card img {
        width: 100%;   /* 宽度随屏幕缩小 */
        height: auto;  /* 高度自适应 */
    }
}


.rounded{
    background: white;
}

/* 美化卡片 */
.news-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.3s ease; /* 平滑动画 */
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.news-card:hover {
  transform: translateY(-5px); /* 上浮效果 */
  box-shadow: 0 8px 20px rgba(0,0,0,0.12); /* 阴影加强 */
  background-color: #f9f9f9; /* 背景轻微变化 */
}

.news-card a {
  transition: color 0.3s ease;
}

.news-card a:hover {
  color: #409eff; /* 鼠标悬停改变链接颜色 */
}

/* 平板设备适配 */
@media (min-width: 769px) and (max-width: 1199px) {
    .industry-auto {
        width: 90%;
         height: auto; /* 取消固定高度，让高度随内容自适应 */
    min-height: auto; /* 如果之前设置过min-height，也一并取消 */
    }
    
    /* 略微调整左右区域比例 */
    .industry-auto-left {
        width: 60%;
    }
    
    .industry-auto-right {
        width: 40%;
        padding: 15px;
    }
}

/* 优势项样式优化 */
.advantage-item {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px; /* 图标和文字之间的间距 */
}




/* 操作流程 */
.set-title {
    width: 100%;
}

.set-title .set-title-h3 {
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    padding: 50px 0 20px 0;
}

/* 流程容器 */
.process-container {
    width: 100%;
    margin: 0 auto;
    position: relative;
    /* 为绝对定位的垂直箭头提供参考 */
}

@media (min-width:1200px) {
    .process-container {
        width: 942px;
    }
}

/* 行容器（控制水平排列） */
.process-row {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

/* 单个步骤项 */
.step-item {
    width: 220px;
    background-color: #e6f2ff;
    border-radius: 8px;
    padding: 15px;
    text-align: center;
}

/* 步骤编号 */
.step-number {
    font-size: 24px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 10px;
}

/* 步骤名称 */
.step-name {
    font-size: 16px;
    margin-bottom: 8px;
    font-weight: bold;
}

/* 步骤描述 */
.step-desc {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

/* 虚线箭头通用样式 */
.dashed-arrow {
    height: 2px;
    background: repeating-linear-gradient(90deg,
            #007bff,
            #007bff 6px,
            transparent 6px,
            transparent 12px);
    margin: 0 20px;
}

/* 向右的虚线箭头（宽度固定） */
.arrow-right {
    width: 100px;
    position: relative;
}

/* 向右箭头的箭头头部 */
.arrow-right::after {
    content: "";
    position: absolute;
    top: -5px;
    right: 0;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 10px solid #007bff;
}

/* 向左的虚线箭头（宽度固定） */
.arrow-left {
    width: 100px;
    position: relative;
}

/* 向左箭头的箭头头部 */
.arrow-left::after {
    content: "";
    position: absolute;
    top: -5px;
    left: 0;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-right: 10px solid #007bff;
}

/* 向下的虚线箭头（高度固定 + 绝对定位） */
.arrow-down {
    height: 60px;
    width: 2px;
    background: repeating-linear-gradient(0deg,
            #007bff,
            #007bff 6px,
            transparent 6px,
            transparent 12px);
    position: absolute;
    /* 绝对定位，精准指向步骤 4 */
    top: 175px;
    /* 与步骤 3 底部对齐（需根据实际调整） */
    left: 86%;
    transform: translateX(-50%);
    /* 水平居中 */
}

/* 向下箭头的箭头头部 */
.arrow-down::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: -6px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 10px solid #007bff;
}

/* 手机端响应式（屏幕宽度 ≤ 768px） */
@media (max-width: 768px) {
    .process-row {
        flex-direction: column;
        /* 垂直排列步骤 */
        margin-bottom: 20px;
    }

    .step-item {
        width: 90%;
        /* 占屏幕大部分宽度 */
        margin-bottom: 20px;
    }

    .dashed-arrow {
        margin: 10px 0;
        /* 垂直方向间距 */
        width: 2px;
        /* 改为垂直虚线 */
        height: 40px;
        /* 调整垂直高度 */
        display: none;
    }

    .arrow-right,
    .arrow-left {
        width: auto;
        /* 重置宽度 */
        transform: rotate(90deg);
        /* 水平箭头转为垂直 */
    }

    .arrow-down {
        position: static;
        /* 取消绝对定位 */
        margin: 20px auto;
        /* 垂直居中 */
    }
}




/* 咨询动态 */
.news-date {
    background: #f5f5f5;
    text-align: center;
    padding: 10px;
    height: 100%;
}

.news-date .day {
    font-size: 2rem;
    font-weight: bold;
}

.news-box {
    background: #eaf0ff;
    padding: 1rem;
}

.notice-box {
    background: #f2f6ff;
    padding: 1rem;
    text-align: center;
    height: 100%;
}

.notice-box a {
    color: #007bff;
    font-size: 0.9rem;
    text-decoration: none;
}

.news-card .news-content {
  overflow: hidden;          /* 隐藏超出部分 */
  text-overflow: ellipsis;   /* 超出部分用 ... */
  white-space: nowrap;       /* 不换行 */
  display: block;            /* 确保生效 */
}
