:root {
    --bs-link-color-rgb: 0,0,0;
    --bs-link-color: rgb(var(--bs-link-color-rgb));
    /*--bs-primary-rgb: 37,99,235;*/
    --bs-primary-rgb: 253,126,20;
    --bs-primary: rgb(var(--bs-primary-rgb));
    --primary: rgb(var(--bs-primary-rgb));
    --bs-link-hover-color-rgb: var(--bs-primary-rgb);
    /*--dark: #1e293b;*/
    --dark: #18180a;
    --light: #f8fafc;
    --gray: #94a3b8;
}


a {
    text-decoration: none;
}
h2 {font-weight: bold;}

/* 懒加载图片初始状态 */
img {
  transition: opacity 0.4s ease;
  /* 防止布局抖动 - 确保图片有尺寸 */
  width: 100%;
  height: auto;
  /* 或者使用宽高比盒子技术 */
}

/* 加载完成后的状态 */
img.loaded {
  opacity: 1;
}

/* 占位背景（可选） */
img:not([src]) {
  background: #f5f5f5;
}

.container img {max-width: 100%!important; height: auto!important;};
table {max-width: 100%!important;}

.fit-scale-down {object-fit: scale-down;}

.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--bs-yellow);
    --bs-btn-hover-border-color: transparent;
    --bs-btn-focus-shadow-rgb: 49,132,253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: transparent;
    --bs-btn-active-border-color: transparent;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--bs-primary);
    --bs-btn-disabled-border-color: var(--bs-primary);
}

.btn-outline-primary {
    --bs-btn-color: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--bs-primary);
    --bs-btn-hover-border-color: var(--bs-primary);
    --bs-btn-focus-shadow-rgb: 13,110,253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--bs-primary);
    --bs-btn-active-border-color: var(--bs-primary);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: var(--bs-primary);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: var(--bs-primary);
    --bs-gradient: none;
}

.text-primary {
    color: var(--bs-primary);
}

.pagination {
    --bs-pagination-active-color: #fff;
    --bs-pagination-active-bg: var(--bs-primary);
    --bs-pagination-active-border-color: var(--bs-primary);
}

.hide {display: none;}
.show {display: block;}

.navbar {
    background-color: white;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}
#navbarNav > .navbar-nav > li {
    border-bottom: 4px solid transparent;
}
#navbarNav > .navbar-nav > li.active,
#navbarNav > .navbar-nav > li:hover {
    border-bottom: 4px solid rgb(var(--bs-primary-rgb));
    box-sizing: border-box;
}
#navbarNav .dropdown-menu {
    transform: translateY(2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}
#navbarNav .dropdown-item:hover {
    background-color: rgb(var(--bs-primary-rgb));
}
#navbarNav .dropdown-item a {
    display: block;
    width: 100%;
}
#navbarNav .dropdown-item:hover a {
    color: #fff;
}

.mega-menu {
    padding: 20px;
    width: 100%;
    left: 0 !important;
    z-index: 999;
    background-color: #fff;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: none;
    animation: upDown .1s;
    transform: translateY(4px);
}

.mega-menu.show {
    display: block;
}

@media (min-width: 992px) {
    .mega-menu {
        position: absolute;
    }
}

@media (max-width: 992px) {
    .mega-menu h5 {font-size: 1.1rem;}
    .mega-menu .list-unstyled {display: none;}
}

@keyframes upDown {
    0% {transform: translateY(-10px);}
    100% {transform: translateY(4px);}
}


/* 轮播控制按钮样式 */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    padding: 22px;
}
:not(#mainCarousel) > .carousel-control-prev {
    left: -10%;
}
:not(#mainCarousel) > .carousel-control-next {
    right: -10%;
}

@media (max-width: 992px) {
    :not(#mainCarousel) > .carousel-control-prev {
        left: 0;
    }
    :not(#mainCarousel) > .carousel-control-next {
        right: 0;
    }
}

/* 产品卡片悬停效果 */
.product-card:hover {
    transform: translateY(-5px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
#productTabContent table th, #productTabContent table td {
    border: 1px solid #000;
}

.con-title {
    background-color: white;
    position: relative;
}

.con-title::before, .con-title::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 100%;
    background-color: var(--bs-primary);
    --offset: 5rem;
}

.con-title::before {
    transform: skewX(-10deg) translateX(calc(var(--offset) * -1));
}
.con-title::after {
    transform: skewX(-10deg) translateX(calc(var(--offset) * 1));
}

footer {
    background-color: var(--dark);
    color: white;
    padding: 60px 0 30px;
}
.footer-links h5 {
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--bs-light);
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.contact-info i {
    color: var(--primary);
    margin-right: 10px;
    width: 20px;
}

#basket {
    position: fixed;
    right: 10px;
    bottom: 50px;
    width: 250px;
    z-index: 999999;
}

.btn-basket {
    outline: none;
    color: white;
}



/*在线客服*/
.float {
    display: inline-block;
    position: fixed;
    top: 200px;
    right: 0px;
    z-index: 9999;
}

.float ul {
    width: 45px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.float ul li {
    -moz-box-shadow: 0 0 5px rgba(0,0,0,0.1);
    -webkit-box-shadow: 0 0 5px rgba(0,0,0,0.1);
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    transition: All .5s ease-in-out;
    -webkit-transition: All .5s ease-in-out;
    -moz-transition: All .5s ease-in-out;
    -o-transition: All .5s ease-in-out;
    float: right;
    width: 45px;
    height: 45px;
    background-color: #FFF;
    margin-bottom: 1px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.float ul li i {
    display: block;
    width: 45px;
    height: 45px;
    color: #ffac1d;
    font-size: 26px;
    line-height: 45px;
    text-align: center;
    position: absolute;
    top: 0;
    right: 0;
}

.float ul li i.fa-wechat {
    font-size: 22px;
}

.float ul li p {
    opacity: 0;
    font-size: 14px;
    white-space: nowrap;
}

.float ul li a {
    display: block;
    line-height: 45px;
    color: #ffffff;
    font-size: 12px;
    text-align: left;
    padding-left: 10px;
}

.float ul li .img {
    transition: All .3s ease-in-out;
    -webkit-transition: All .3s ease-in-out;
    -moz-transition: All .3s ease-in-out;
    -o-transition: All .3s ease-in-out;
    position: absolute;
    width: 150px;
    bottom: -60px;
    left: -155px;
    opacity: 0;
    background: #FFF;
    border: 1px solid #DDD;
    padding: 10px;
}

.float ul li .img img {
    width: 130px;
}

.float ul li .img .imgtitle {
    text-align: center;
}

.float ul li:hover {
    background: #ffac1d;
    width: auto;
    padding-right: 45px;
    overflow: visible;
}

.float ul li:hover i {
    color: #ffffff
}

.float ul li.top-live:hover {
    width: 45px;
}

.float ul li:hover p {
    opacity: 1;
}

.float ul li.code {
    position: relative;
}

.float ul li.code:hover {
    width: 45px;
}

.float ul li.code:hover .img {
    opacity: 1;
    bottom: -36px;
}

.float .fa-phone {
    font-size: 18px;
}

.whatsapp {
    position: fixed;
    bottom: 70px;
    right: 10px;
    text-align: right;
    z-index: 10
}

.whatsappBox {
    margin-bottom: 10px;
    background: #FFF;
    border: 1px solid #e2e2e2;
    padding: 25px 25px 25px 85px;
    max-width: 340px;
    position: relative;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    -moz-box-shadow: 0 0 10px rgba(0,0,0,0.3);
    -webkit-box-shadow: 0 0 10px rgba(0,0,0,0.3);
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.whatsappBox:hover {
    -moz-box-shadow: 3px 3px 20px #222;
    -webkit-box-shadow: 3px 3px 20px #222;
    box-shadow: 3px 3px 20px #222;
}

.whatsappBox em {
    width: 65px;
    height: 52px;
    background: url(../images/flag.png) no-repeat;
    position: absolute;
    left: 21px;
    top: 25px;
}

.whatsappBox span {
    position: absolute;
    right: 10px;
    top: 5px;
    cursor: pointer;
    font-size: 24px;
}

.whatsappBox div {
    border: 1px solid #e2e2e2;
    padding: 15px;
    line-height: 140%;
    color: #333;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    text-align: left;
}

.whatsapp a {
    -moz-box-shadow: 0 0 10px rgba(0,0,0,0.3);
    -webkit-box-shadow: 0 0 10px rgba(0,0,0,0.3);
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    display: inline-block;
    background: #4dc247;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    font-size: 26px;
    color: #FFF;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
}

.whatsapp a:hover {
    -moz-box-shadow: 0 0 10px rgba(0,0,0,0.5);
    -webkit-box-shadow: 0 0 10px rgba(0,0,0,0.5);
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

@media (max-width: 768px) {
    .float {
        display:none
    }

    .whatsapp {
        right: 5px;
        bottom: 85px;
    }

    .whatsappBox {
        display: none
    }

    .whatsapp a {
        width: 40px;
        height: 40px;
        line-height: 34px;
    }

    .whatsapp a i {
        font-size: 20px;
    }
}