.layui-card {
    margin-bottom: 15px;
    border-radius: 2px;
    background-color: #fff;
    box-shadow: 0 1px 20px 5px rgba(0,0,0,.05);
}
.layui-container{
    width: 1200px;
}
/*
 * 所有使用 body.page-bg + .center.container 的页面：统一可点击、可滚动（与 id=7/id=24 一致）
 * 含：首页、商品详情、文章、分类、订单查询等。用 :has() 兜底，避免个别页漏掉 page-bg 时仍可点
 */
body.page-bg,
body:has(.center.container) {
    height: 100%;
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: manipulation;
    box-sizing: border-box;
}
/* 覆盖 weuix 的 .container，改为文档流由 body 滚动（所有商品/详情页统一） */
body.page-bg .center.container,
.center.container {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    min-height: 100%;
    overflow: visible !important;
    z-index: 1;
    touch-action: manipulation;
    pointer-events: auto;
}
body.page-bg .center.container .layui-container,
.center.container .layui-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 0;
}
/* 固定头/底栏置于最上层（高于 layui layer 遮罩），避免 loading 或内容遮挡导致无法点击 */
body.page-bg .center.container .weui-header,
body.page-bg .center.container .weui-tabbar,
.center.container .weui-header,
.center.container .weui-tabbar {
    z-index: 99999999 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
}
/* 所有可点击元素确保能接收点击（防止 layui/weui 等覆盖） */
body.page-bg .center.container a,
body.page-bg .center.container button,
body.page-bg .center.container input,
body.page-bg .center.container [onclick],
body.page-bg .center.container [id],
.center.container a,
.center.container button,
.center.container input,
.center.container [onclick],
.center.container [id] {
    pointer-events: auto !important;
}
/* 头栏/底栏内的链接及子元素必须可点（含 #show-actions、tabbar 项） */
body.page-bg .center.container .weui-header a,
body.page-bg .center.container .weui-header a *,
body.page-bg .center.container .weui-tabbar a,
body.page-bg .center.container .weui-tabbar a *,
.center.container .weui-header a,
.center.container .weui-header a *,
.center.container .weui-tabbar a,
.center.container .weui-tabbar a * {
    pointer-events: auto !important;
}
/* 关键 id 明确可点（部分页面被其它库设为 none 时仍可点） */
body.page-bg .center.container #show-actions,
body.page-bg .center.container #frm-inputdata,
body.page-bg .center.container #goods_num,
body.page-bg .center.container #selectedSaleTip,
body.page-bg .center.container #tui_goodslist,
body.page-bg .center.container #tui_goodslist a,
.center.container #show-actions,
.center.container #frm-inputdata,
.center.container #goods_num,
.center.container #selectedSaleTip,
.center.container #tui_goodslist,
.center.container #tui_goodslist a {
    pointer-events: auto !important;
}
/* 按钮与表单控件可点、易点 */
body.page-bg .center.container .layui-btn,
body.page-bg .center.container .layui-form input,
body.page-bg .center.container .layui-input-inline,
.center.container .layui-btn,
.center.container .layui-form input,
.center.container .layui-input-inline {
    pointer-events: auto !important;
    touch-action: manipulation;
}
/* 统一客服入口样式，每页仅保留一处（商品详情页等） */
/* 商品详情页右侧栏：保证客服块在桌面端不挤在一起、移动端易点 */
.layui-col-md2 .tg-kefu-box {
    margin-bottom: 15px;
}
@media screen and (min-width: 992px) {
    .layui-col-md2 .tg-kefu-box {
        max-width: 220px;
        margin-left: auto;
        margin-right: auto;
    }
}
@media screen and (max-width: 991px) {
    .layui-col-md2.layui-col-xs12 {
        padding-left: 12px;
        padding-right: 12px;
    }
    .layui-col-md2 .tg-kefu-box {
        margin-top: 8px;
        margin-bottom: 16px;
    }
}

.tg-kefu-box {
    text-align: center;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,.08);
    border: 1px solid #e8e8e8;
    background: #fff;
}
.tg-kefu-box .layui-card-header {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    background: linear-gradient(180deg, #fafafa 0%, #f2f2f2 100%);
    border-bottom: 1px solid #eee;
    padding: 14px 16px;
    line-height: 1.3;
}
.tg-kefu-box .layui-card-body {
    padding: 16px;
}
.tg-kefu-box .layui-btn.tg-kefu-btn {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    border: none;
    transition: opacity .2s, transform .15s;
    min-height: 44px;
    line-height: 1.4;
}
.tg-kefu-box .layui-btn.tg-kefu-btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}
.tg-kefu-box .layui-btn.tg-kefu-btn:active {
    transform: translateY(0);
}

/* 移动端：客服按钮更大、更好点 */
@media screen and (max-width: 768px) {
    .tg-kefu-box .layui-card-header {
        padding: 16px;
        font-size: 16px;
    }
    .tg-kefu-box .layui-card-body {
        padding: 18px;
    }
    .tg-kefu-box .layui-btn.tg-kefu-btn {
        padding: 14px 24px;
        font-size: 16px;
        min-height: 48px;
        border-radius: 10px;
    }
}
.weui-panel__hd .tg-kefu-link {
    color: #2180cd;
    text-decoration: none;
    font-weight: normal;
}
.weui-panel__hd .tg-kefu-link:hover {
    text-decoration: underline;
}

.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
    font-size: 20px
}
#homeNav a,#homeNav a i{
   /* font-size: 17px;*/
}
.layui-nav-item a{
    color: #fff!important;
}
.thead{
    background-color: #d4edff;
}
.l-img-div{width:100%;height:0;position: relative;padding-bottom: 100%}
.l-img-div img{width:100%;height:100%;position: absolute;}


.notice{
    margin-top: 10px;
}

.layui-form-item{
    margin-bottom: 5px;
}

/* 商品标题与信息区不撑破宽度，避免横向滚动 */
.good-title,
.good-title h3 {
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    margin: 0;
}
.good-info {
    max-width: 100%;
    overflow: hidden;
}
/* 商品图区域：统一圆角与内边距，避免左右拖动时样式突兀 */
/* 商品图区域：滑动直接滚动页面，不单独滑动图片 */
.layui-card-body .layui-row .layui-col-md5 > div {
    max-width: 100%;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f8f8;
    padding: 12px;
    box-sizing: border-box;
    touch-action: pan-y;
}
.layui-card-body .layui-row .layui-col-md5 .goods_image,
.goods_image_index.goods_image {
    display: block;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    -webkit-user-drag: none;
    user-drag: none;
    pointer-events: auto;
}

.sale-info{
    padding: 0;
    color: #8d8e99;
    font-size: 14px;
    position: relative;
}

.sale-price-box {
    position: relative;
    height: 36px;
}

.dis-price {
    margin-right: 5px;
    position: relative;
    white-space: nowrap;
    float: left;
}

span.t {
    width: 47px;
    margin-right: 13px;
    float: left;
}



span.yen {
    display: inline-block;
    vertical-align: text-bottom;
}

span#selectedPrice {
    display: inline-block;
    vertical-align: text-bottom;
    line-height: 36px;
    font-size: 30px;
}

.sale-count {
    position: absolute;
    right: 0;
    top: 0;
    text-align: center;
    color: #ff0000;
    font-size: 14px;
    padding: 0 0 0 20px;
    line-height: 18px;
}

.sale-sales {
    position: absolute;
    right: 80px;
    top: 0;
    text-align: center;
    color: #ff0000;
    font-size: 14px;
    padding: 0 0 0 20px;
    line-height: 18px;
}

.sale-sales:before {
    content: '';
    height: 31px;
    position: absolute;
    left: 0;
    top: 3px;
    border-left: 1px solid #DCDCDE;
}

.sale-count:before {
    content: '';
    height: 31px;
    position: absolute;
    left: 0;
    top: 3px;
    border-left: 1px solid #DCDCDE;
}

/* 小屏下价格区不溢出，避免左右拖动 */
@media screen and (max-width: 480px) {
    .sale-price-box {
        padding-right: 0;
        min-height: 60px;
    }
    .dis-price {
        display: block;
        margin-bottom: 8px;
    }
    .sale-count,
    .sale-sales {
        position: static;
        display: inline-block;
        margin-top: 4px;
        padding-left: 0;
    }
    .sale-count:before,
    .sale-sales:before {
        display: none;
    }
}

.sale-info-group {
    background-color: #F7F8FA;
    padding: 20px 15px;
    border-radius: 10px;
}

.tags {
    margin-bottom: 15px;
}
.pro-row {
    padding: 20px 0 1px;

}

.hd {
    float: left;
}

.bd {
    margin-left: 65px;
}

span.service-item {
    line-height: 34px;
    margin-right: 12px;
    white-space: nowrap;
    color: #8d8e99;
}

span.service-item:before {
    content: '';
    display: inline-block;
    vertical-align: -2px;
    width: 13px;
    height: 13px;
    margin-right: 5px;
    background: url(/Public/Front/shangzhan/images/service-item.png) no-repeat 0 0;
}
span.text {
    word-break: break-all;
    color: #8d8e99;
    line-height: 34px;
}
.f-box {
    padding: 70px 0 0;
    position: relative;
}
span.price {
    text-decoration: line-through;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
    font-size: 12px;
}
span#selectedSaleTip {
    font-size: 14px;
    color: #fff;
    background-color: #FF8B77;
    line-height: 18px;
    position: absolute;
    top: -10px;
    padding: 0 10px;
    margin: 0 0 0 7px;
    white-space: nowrap;
}

span#selectedSaleTip:before {
    content: '';
    position: absolute;
    left: -3px;
    bottom: 0;
    width: 0;
    height: 0;
    border-width: 3px;
    border-style: dashed dashed solid;
    border-color: transparent transparent #FF8B77;
}
a.buy-btn.buyBtnClass {
    color: #212537;
    background-color: #FFD200;
    font-size: 17px;
    font-weight: bold;
    display: inline-block;
    line-height: 50px;
    border-radius: 3px;
    padding: 0 15px;
    min-width: 230px;
    text-align: center;
}

a.buy-btn.buyBtnClass:hover {
    background: #ffda33;
}

a.add-fav-btn {
    display: inline-block;
    vertical-align: middle;
    text-align: center;
    color: #626266;
    margin-left: 10px;
    font-size: 14px;
}

.add-fav-btn.has:before {
    background-position: 0 -15px;
}
.goodsinfo-goodsimg{
    margin-top: 40px;
    margin-left: 40px;
}

/*棣栭〉*/
.gooslist-body-right{
    border:0px;
    border-left: 1px solid #dcdcdc;

}
.gooslist-body-right a{
    display:inline;
    height:inherit;
    float: left;
    width: auto;
}
.gooslist-body-right a.menu-active{
    color:#1E9FFF;
}
.gooslist-body-right a.menu-active:after{
    content: "";
    width: 0px;
    height: 0px;
    padding: 0px;
}
.goodsbox-goodsinfo h6 a{
    white-space: normal;
}
hr.style-one {/*鍐呭祵姘村钩绾�*/
    width:80%;
    margin:0 auto;
    border: 0;
    height: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
hr.style-two {/*閫忔槑娓愬彉姘村钩绾�*/
    width:80%;
    margin:0 auto;
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
}
hr.style-three{/*娓愬彉*/
    width:80%;
    margin:0 auto;
    border: 0;
    height: 1px;
    background: #333;
    background-image: linear-gradient(to right, #eee, #dcdcdc, #eee);
}
.goodslist-container{
    margin-top: 10px !important;
    border-radius: 3px;
}
.goodslist-menu{
    position: relative;
    width: 100%;
    clear: both;
    padding:10px 20px 20px;
    background: white;
    box-sizing: border-box;
    border:1px solid #dcdcdc;
}
.goodslist-menu::after,.goodsmenu-items::after{
    display:block;
    clear:both;
    content:"";
    visibility:hidden;
    height:0;
}

.goodslist-header{
    position: relative;
    border-bottom: 1px solid #dcdcdc;
    box-sizing: border-box;
}
.goodslist-header p{
    font-size: 14px;
    line-height:40px;
    color: #666;
}
.goodsmenu-items{
    clear: both;
}
.gooslist-body-left{
    position: relative;
    width: 100px;
    float: left;
    padding: 10px 20px;
    box-sizing: border-box;
    font-size: 14px;
    color: #666;
    text-align: right;
}
.gooslist-body-right{
    position: relative;
    width: 1058px;
    float: left;
    padding: 10px;
    box-sizing: border-box;
    font-size: 14px;
    color: #666;
    min-height: 50px;
    border: 1px solid #dcdcdc;
    /* border-bottom: 1px solid #dcdcdc; */
}

.gooslist-body-right a{
    position: relative;
    display: block;
    width: 160px;
    height: 60px;
    margin-right: 10px;
    float: left;
    margin-bottom: 10px;
}
.gooslist-body-right a img{
    width:100%;
    height:100%;
    border:2px solid transparent;
}
.gooslist-body-right a.menu-active img{
    border:2px solid #1E9FFF;
}
.gooslist-body-right a.menu-active::after{
    position: absolute;
    content: '鉁�';
    top: 2px;
    left: 2px;
    display: block;
    width: 20px;
    height: 20px;
    background: #1E9FFF;
    color: white;
    text-align: center;
    font-size: 12px;
    line-height: 20px;
    color: white;
}
.gooslist-body-right a:nth-child(6n){
    margin-right: 10px;
}
.gooslist-body-right .layui-form-item{
    margin-bottom: 0;
}


.goodslist-box{
    position: relative;
    background: white;
    margin-top:10px;
    padding: 10px 20px;
    box-sizing: border-box;
    border:1px solid #ddd;

}

.goodsbox-header{
    position: relative;
    width: 100%;
    background:#f5f5f5;
    padding:5px 10px;
    box-sizing: border-box;
    overflow: hidden;
}
.goodsbox-header ul{
    position: relative;
    float: left;
    overflow: hidden;
    display:block;
    border:1px solid #ddd;
    border-right: 0;
    width: max-content;
}
.goodsbox-header ul li{
    display: block;
    line-height: 20px;
    float: left;
    border-right: 1px solid #ddd;
    background: white;
}
.goodsbox-header ul li a{
    display: block;
    color: #333;
    line-height:20px;
    padding:5px 15px;
}
.goodsbox-header ul li.choose-menu-active,.goodsbox-header ul li:hover{
    background: #1E9FFF;
    border-right: 1px solid #1E9FFF;
}
.goodsbox-header ul li.choose-menu-active a,.goodsbox-header ul li:hover a{
    color: white;
}
.goodsbox-header img{
    float: left;
    margin-left: 2px;
}

.goodsbox-container{
    position: relative;
    width: 100%;
    margin-top: 20px;
    overflow: hidden;
    padding-bottom:10px;
}
.goodsbox-items{
    position: relative;
    width: 100%;
    overflow: hidden;
    padding:15px 0;
    border-top: 1px dashed #dcdcdc;
}
.goodsbox-items:nth-child(1){
    border-top: 1px dashed #dcdcdc;
}
.goodsbox-left{
    position: relative;
    float: left;
    width: 100px;
    height: 100px;
}
.goodsbox-left a img{
    width: 100%;
    height: 100%;
    /* border-radius:2px; */
    border-radius: 5%;
}

.goodsbox-goodsinfo{
    position: relative;
    width:630px;
    float: left;
    padding: 0 20px;
    box-sizing: border-box;
}
.goodsbox-goodsinfo h6 a{
    display: block;
    width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    font-size: 14px;
    color: #111;
    line-height: 25px;
}
.goodsbox-goodsinfo p{
    line-height: 25px;
    font-size: 12px;
    width: 100%;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.goodsbox-goodsinfo p:nth-child(2){
    font-weight: 600;
}
.goodsbox-goodsinfo p:nth-child(3) span{
    color: #ff0000;
    margin: 0 2px;
}

.goodsbox-price{
    position: relative;
    width: 200px;
    float: left;
    height: 100px;
    padding:30px 0;
    box-sizing: border-box;
}
.goodsbox-price p{
    line-height:25px;
    font-size: 12px;
}
.goodsbox-price p span{
    color: #ff0000;
    margin-right: 2px;
}
.goodsbox-collect{
    position: relative;
    /* width: 100px; */
    float: left;
    text-align: center;
}
.goodsbox-collect i{
    line-height: 100px;
    font-size:22px;
    cursor: pointer;
}
.collect-active{
    color: #ff0000;
}

.goodsbox-btn{
    position: relative;
    width:120px;
    float: right;
    text-align: center;
    padding: 35px 0;
}

.goodsinfo-container{
    background: white;
    overflow: hidden;
    padding:10px 20px 20px;
    box-sizing: border-box;
    overflow: hidden;
    margin-top: 10px !important;
    border:1px solid #dcdcdc;
    border-radius: 3px;
}



.goodsinfo-goodsimg img{
    width: 100%;
    height: 100%;
    border-radius: 2%;
}

.common-navigation{
    position: relative;
}
.common-navigation h6{
    line-height: 40px;
    font-size: 14px;
    color: #666;
}

.goodsinfo-introduce{
    position: relative;
    width: 100%;
    overflow: hidden;
}

.goodsinfo-goodsimg{
    position: relative;
    width: 400px;
    height: 400px;
    float: left;
}

.goodsinfo-nature{
    position: absolute;
    width: 330px;
    top: 50px;
    right: 100px;
}

.goodsinfo-nature img{
    width: 80px;
    height: 80px;
}




.goodsinfo-goodswords{
    position: relative;
    width: 700px;
    float: right;
}

.goodsinfo-goodswords h6{
    position: relative;
    font-size: 16px;
    font-weight: bold;
    line-height: 30px;
    margin-bottom: 5px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.goodsinfo-goodswords p{
    line-height:35px;
    font-size: 14px;
}
.goodsinfo-goodswords p span{
    color: #ff0000;
    margin: 0 3px;
}

.goodsinfo-goodswords p .must-read{
    color: #666;
}

.goodsinfo-goodswords p i{
    font-size: 20px;
    vertical-align: sub;
    cursor:pointer;
    margin-left: 10px;
}
.goodsinfo-goodswords .layui-btn{
    margin-top: 70px;
    height: 40px;
    line-height: 40px;
    width: 136px;
    margin-right: 10px;

    font-size:16px;
}

.goodsinfo-comment{
    background: white;
    overflow: hidden;
    padding: 20px 20px 30px;
    box-sizing: border-box;
    border:1px solid #dcdcdc;
    margin-top: 10px !important;
    border-radius: 3px;
    min-height: 350px;
}

.goodsinfo-hasimg{
    position: absolute;
    top:50px;
    right:150px;
    width: 250px;
    display: none;
}
.goodsinfo-hasimg img{
    width: 110px;
    height: 110px;
    cursor: pointer;
    float: left;
    margin-right:20px;
    margin-bottom:20px;
    opacity: .4;
    transform: rotate(30deg);
}
.goodsinfo-hasimg img:nth-child(2n){
    margin-right: 0;
}
.goodsinfo-hasimg img:nth-child(2){
    transform: rotate(-30deg);
}
.goodsinfo-hasimg img:nth-child(3){
    transform: rotate(-30deg);
}
.goodsinfo-hasimg img:nth-child(4){
    transform: rotate(30deg);
}
.l-img-div{width:100%;height:0;position: relative;padding-bottom: 100%}
.l-img-div img{width:100%;height:100%;position: absolute;}
.layui-bg-blue a{color: #fff;}

.hotgoodslist:hover{
}
.topSticky{
    position: sticky;
    top: 0;
    z-index: 999;
}