.PC {
    display: block !important;
}
.MV {
    display: none !important;
}
:root {
    --fontSize: 16px;
    --heightP: 5px;
}
.to-top-wrap {
    position: fixed;
    top: 70%;
    transform: translateY(-50%);
    right: 60px;
    border: 1px solid #f74747;
    border-radius: 10px;
    background: #fff;
    box-shadow: 2px 4px 5px -2px #ccc3;
    z-index: 999;
    cursor: pointer;
    padding: 5px 15px;
    font-size: 20px;
    font-weight: 900;
    color: #f74747;
    text-align: center;
}
.to-top-wrap a {
    color: #f74747 !important;
}
.fixed-base-wrap {
    top: 0;
    width: 100%;
    min-width: 1366px;
    position: fixed;
    z-index: 200;
}
.xuanfu {
    position: absolute;
    top: 124px;
    /* transform: translateY(-50%); */
    left: calc(50% - 708px);
    /* margin-left: -708px; */
    width: 130px;
    z-index: 999;
    cursor: pointer;
    height: 80vh;
    overflow: auto;
}
/* 自定义滚动条样式 */
.xuanfu::-webkit-scrollbar {
    width: 8px;
}

.xuanfu::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.xuanfu::-webkit-scrollbar-thumb {
    background: #c7c5c5;
    border-radius: 3px;
}

.xuanfu::-webkit-scrollbar-thumb:hover {
    background: #9a9898;
}



.xuanfu .to-floor {
    width: 100%;
    height: auto;
    background-color: #fff;
    color: #000;
    padding: var(--heightP) 0;
    opacity: 0.7;
    text-align: center;
    font-size: 12px;
    margin-bottom: 2px;
    border-radius: 5px;
    box-shadow: 2px 4px 5px -2px #ccc3;
}
.xuanfu .to-floor.active,
.xuanfu .to-floor:hover,
.xuanfu .to-floor:active,
.xuanfu .to-floor:has(a:active) {
    opacity: 1;
}
#chatBtn,
#rightFloatBar {
    display: none;
}
.products { 
    /* background-image: url("../images/login_bg.png") ; */
    /* background-color: #ffa7b3 !important; */
    background: linear-gradient(45deg, #FFBF03, #FFE6A0, #F2C94C);
    background-attachment: fixed;
    background-size: cover;
    MIN-WIDTH: 1400PX;
    position: relative;
    /* width: 100vw;
    max-width: 1920px;
    min-width: 1200px; */
    /* overflow-x: hidden !important; */
}
.products .bg-white {
    background-color: #FFBF03 !important;
}
.home_goods {
    /* width: auto; */
    width: 1140px;
    height: auto;
    margin:0 auto;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
}
.scroo_show {
    width: 100%;
    height: auto;

    grid-template-columns: repeat(5, minmax(250px, 1fr));
    column-gap: 13px;
    row-gap: 10px;
    text-align: center;
}
.home_goods .top_img {
    width: 100%;
    height: auto;
}
.top_img {
    width: 100%;
    max-width: 1920px;
    min-width: 1200px;
    height: auto;
    margin: 0 auto;
    position: relative;
}
.inquiry-button {
    position: absolute;
    bottom: 8%;
    right: 67%;
    padding: 9px 9px 9px 20px;
    background-color: #f74747;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    width: 200px;
    font-weight: bold;
    letter-spacing: 14px;
    border-radius: 50px;
    font-size: 19px;
    text-align: center;
}
.home_goods .title {
    width: max-content;
    font-size: calc(var(--fontSize)* 1.5);
    margin: calc(var(--heightP)* 4) auto;
    text-align: center;
    padding-bottom: 5px;
    font-weight: 900;
    /* border-bottom: 2px solid #000; */
    /* text-decoration: underline; */
}
.more-btn1 {
    position: absolute;
    right: 0;
    bottom: 13px;
    width: 100%;
}
.home_goods .titleF:hover {
    color: #f74747;
    cursor: pointer;
}
.home_goods .both {
    clear: both;
}
.home_goods .card_list1:hover,
.home_goods .card_list:hover {
    transform: translateY(-10px);
}
.home_goods .card_list1:hover  .card_text1C,
.home_goods .card_list:hover  .card_text1C {
    color: #f74747;
}
.home_goods .card_list1 {
    height: 300px !important;
}
.home_goods .card_list1,
.home_goods .card_list{
    width: 220px;
    height: 378px;
    background: #fff;
    border-radius: var(--heightP);
    box-shadow: 0 0 10px #ccc;
    margin: 4px;
    float: left;
    position: relative;
    overflow: hidden;
    padding: 10px;
    box-sizing: border-box;
    cursor: pointer;
}
.home_goods .card_img {
    width: 100%;
    height: 62%;
}
.home_goods .card_text1 {
    font-size: calc(var(--fontSize)* 1);
    text-align: left;
    margin: var(--heightP) 0 10px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #000;
    margin-left: 6%;
}
.home_goods .card_text2 {
    font-size: calc(var(--fontSize)* 0.8);
    text-align: left;
    margin: var(--heightP) 0;
    color: #999;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    transform: translateY(-5px);
    margin-left: 6%;
}
.home_goods .card_btn {
    position: absolute;
    bottom: 5%;
    font-size: var(--fontSize);
    text-align: center;
    width: 80%;
    padding: var(--heightP) 0;
    border-radius: 50px;
    border: 1px solid #f74747;
    cursor: pointer;
    color: #f74747;
    margin-left: 5%;
    transform: translateY(4px);
}
.home_goods .card_btn:hover {
    background: #f74747;
    color: #fff;
}
.scroll-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* 平滑滚动效果在移动端 */
}
.scroll-container .slide {
    flex-shrink: 0;
    scroll-snap-align: start;
    width: 100vw;
    height: 200px;
    text-align: center;
    line-height: 200px;
}
.tabs {
    display: none;
}
.scroo_show.active {
  display: block !important;
}
.marginTopC {
    height: 225px;
    width: 100%;
    background-color: #ffffff;
}


.kefu-container {
    position: fixed;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
}

.kefu-container img {
    cursor: pointer;
    width: 60px; /* 调整悬浮窗图标的大小 */
}

.qrcode-popup {
    position: fixed;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    display: block;
    z-index: 1001;
    text-align: center;
}

.qrcode-popup .qrcode-frame {
    width: 120px; /* 外框的宽度 */
    height: 120px; /* 外框的高度 */
}

.qrcode-popup .qrcode-image {
    position: absolute;
    top: 29px;
    left: 32px;
    width: 83px; /* 二维码的宽度 */
    height: 90px; /* 二维码的高度 */
    object-fit: contain;
}

/* .efficacy_xz span {
    background: #fff5c8;
    color: #f27507;
    font-size: 12px;
    padding: 3px 7px;
    display: inline-block;
    margin-right: 5px;
    text-decoration: none;
} */
.efficacy_xz {

    display: flex;
    flex-wrap: nowrap; /* 防止换行 */
    overflow: hidden; /* 隐藏超出容器的部分 */
    white-space: nowrap; /* 防止文本换行 */
}

.efficacy_xz span {
    background: #fff5c8;
    color: #f27507;
    font-size: 12px;
    padding: 3px 7px;
    display: inline-block;
    text-decoration: none;
    margin-right: 8px; /* 添加间隙 */
}

.scroo_container {
    position: relative; /* 确保内部的绝对定位元素相对于这个容器 */
}

.more-btn {
    position: absolute;
    top: -28px; /* 根据需要调整距离顶部的距离 */
    right: -10px; /* 根据需要调整距离右边的距离 */

    color: #fff; /* 按钮文字颜色 */
    border: none; /* 去掉边框 */
    border-radius: 5px; /* 圆角按钮 */
    padding: 5px 10px; /* 按钮内边距 */
    cursor: pointer; /* 鼠标悬停时显示手型光标 */
}



/* 当屏幕宽高比小于或等于 1:1（即屏幕是正方形或更宽比）时 竖屏*/
@media screen and (max-aspect-ratio: 1/1.2) {
    /* @media screen and (max-width: 45rem) { */
    .products {
        min-width: 100vw;
    }
    .home_goods .card_img {
        width: 100%;
        height: 49%;
    }
    .PC {
        display: none !important;
    }
    .MV {
        display: block !important;
    }
    :root {
        --fontSize: 3rem;
        --heightP: 20px;
    }
    .top_img {
        width: 100vw;
        max-width: 100vw;
        min-width: 100vw;
        position: relative;
    }
    .inquiry-button {
        position: absolute;
        bottom: 10%;
        right: 74%;
        padding: 9px 9px 9px 20px;
        background-color: #f74747;
        color: #fff;
        border: none;
        border-radius: 5px;
        font-size: 16px;
        cursor: pointer;
        z-index: 10;
        width: 200px;
        font-weight: bold;
        letter-spacing: 14px;
        border-radius: 50px;
        font-size: 19px;
        text-align: center;
    }
    .scroo_show {
        /* height: calc(100vh - 173px); */
        /* overflow-y: auto; */
        display: block;
        height: auto;
        width: auto;
        /* display: none; */
        padding: 20px;
        margin-top: 0px;
        background-color: #FFF0;
        border: 1px solid #CCC;
        border-radius: 5px;
        border: none;
    }
    .home_goods {
        width: auto;
        max-width: 120vw;
        min-width: 250px;
        height: auto;
        /* overflow-y: auto; */
        margin:0 auto;
        /* margin-top: 30px; */
    }
    .home_goods .card_list1,
    .home_goods .card_list{
        width: calc(50% - 4rem);
        height: 67vw !important;
        margin: 2rem;
        padding: 2rem;
        border-radius: 20px;
    }
    
    .tabs {
        display: inline-flex !important;
        justify-content: center;
        align-items: center;
        background-color: #ffffff;
        padding: 20px;
        width: auto;
    }

    .tab {
        margin-right: 10px;
        cursor: pointer;
        padding: 10px 20px;
        border-radius: 5px;
        font-size: var(--fontSize);
        font-weight: bold;
        width: 30rem;
        text-align: center;
        color: #bf1a20;
        white-space: nowrap;
    }

    /* .tab:hover {
        background-color: #bf1a20;
        color: #FFF;
        border-color: #bf1a20;
    } */

    .tab.active {
        background-color: #bf1a20;
        color: #FFF;
        border-color: #bf1a20;
    }

    .marginTopC {
        height: 0px;
    }
    .flexClass {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 99;
    }

    .scroo_container {
        position: relative; /* 确保内部的绝对定位元素相对于这个容器 */
    }
    
    .more-btn {
        position: absolute;
        top: -9px; /* 根据需要调整距离顶部的距离 */
        right: 29px; /* 根据需要调整距离右边的距离 */
        font-size: 2.2rem !important;
        color: #fff; /* 按钮文字颜色 */
        border: none; /* 去掉边框 */
        border-radius: 5px; /* 圆角按钮 */
        padding: 5px 10px; /* 按钮内边距 */
        cursor: pointer; /* 鼠标悬停时显示手型光标 */
        font-size: 29px;
    }
}