﻿body {
    padding-bottom: 0;
    padding-bottom: calc(0 + constant(safe-area-inset-bottom));
    padding-bottom: calc(0 + env(safe-area-inset-bottom));
    background: white;
    max-width: 840px;
    margin: 0 auto;
    padding-top: 38%
}

.hot-sales {
    padding: 0 12px;
}

.hot-sales-card-contanier {
    position: absolute;
    top: 23.33%;
    left: 2.7%;
    right: 2.7%;
    bottom: 13px;

}

.hot-sales-swiper-wrapper {
    height: 100%;
    width: 100%;
    position: absolute;
    overflow: hidden;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
}

.hot-sales-swiper-wrapper .swiper-wrapper {
    height: 100%;
}

.hot-sales-swiper-wrapper .swiper-slide {
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 1px;
}

.swiper-wrapper-switch {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    position: absolute;
    top: 10%;
    right: 3.42%
}

.swiper-wrapper-switch .swiper-pagination-bullet {
    background: white;
    opacity: .7;
    height: 6px;
    width: 6px;
    margin-left: 5px;
}

.swiper-wrapper-switch .swiper-pagination-bullet-active {
    background: #C48D54;
    opacity: 1
}

.hot-sales-swiper-card {
    width: calc(25% - 3px);
    height: 100%;
    background: #C48D54;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    margin-right: 4px;
}

.hot-sales-swiper-card:nth-last-child(1) {
    margin-right: 0;
}

.img-contanier {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
}

.hot-sales-swiper-card img {
    width: 100%;
    height: 100%;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    background: white;
    position: absolute;
}

.hot-sales-swiper-card .hot-sales-swiper-tag {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 12px;
    word-break: keep-all;
    word-spacing: initial;
    white-space: nowrap;
}

.hot-sales-swiper-card .hot-sales-swiper-tag .iconfont {
    font-size: 12px;
    margin-right: 2px;
}

.hot-sales-swiper-card .hot-sales-swiper-tag.gift-card {
    background: white;
    padding: 3%;
    overflow: hidden;
}

.gift-card-box {
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
}

.gift-card-label {
    padding: 3px;
    background: #ff4615;
    color: white;
    box-sizing: border-box;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom-left-radius: 4px;
    border-top-left-radius: 4px;
}

.gift-card-val {
    background: #fedfd7;
    color: #ff4615;
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom-right-radius: 4px;
    border-top-right-radius: 4px;
}

.JDLMtabList {
    padding-top: 10px;
    padding-bottom: 10px;
    overflow-y: hidden;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
    background: #401A03;
}

.JDLMtabList::-webkit-scrollbar {
    display: none;
}

.JDLMtabList-div {
    margin-right: 20px;
    display: inline-block;
    font-family: PingFangSC-Medium;
    font-size: 14px;
    color: #FFD4A1;
    position: relative;
    user-select: none;
}

.JDLMtabList-div:nth-last-child(1) {
    margin-left: 0;
}

.JDLMtabList .active {
    color: #FFD4A1 !important;
    font-size: 16px;
    font-weight: 500;
}

.JDLMtabList .line {
    width: 18px;
    height: 3px;
    border-radius: 2px;
    background: #FFD4A1;
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translate(-50%, 0);
}

.JDLMcontent {
    margin: 5px 0 10px;
    display: flex;
    flex-wrap: wrap;
}

.JDLMcontent_item {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    /*cursor: pointer;*/
    overflow: hidden;
    width: calc(50% - 5px);
    border-radius: 6px;
    margin-bottom: 10px;
}

.JDLMcontent_item:nth-child(2n+1) {
    margin-right: 10px;
}

.JDLMcontent_item img {
    width: 100%;
}

.JDLMcontent_item_right {
    display: flex;
    flex: 1;
    padding: 10px;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden
}

.JDLMcontent_item_right_title {
    font-size: 13px;
    color: #333333;
    font-family: PingFangSC-Medium;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    font-weight: 500;
    line-height: 18px;
}

.JDLMcontent_item_right .buy {
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 3px 12px;
    background: #ffe4d7;
    border-radius: 13px;
}


.JDLMcontent_item_right_middle {
    margin-top: 4px;
    display: flex;
    align-items: center;
}

.JDLMcontent_item_right_middle .coupon-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    flex: 1
}

.JDLMcontent_item_right_middle .limited {
    color: #FFFFFF;
    /* 文字颜色改为白色 */
    font-size: 12px;
    padding: 2px 13px;
    border-radius: 13px;
    background: #ff3535;
    /* 背景颜色改为红色 */
}


.JDLMcontent_item_right_bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /*color: #f15a14;*/
    margin-top: 7px;
}

.JDLMcontent_item_right_bottom .price-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    flex: 1
}

.JDLMcontent_item_right_bottom .price-group .price {
    color: #F15A14;
    display: flex;
    align-items: center;
    margin-right: 5px;
}

.JDLMcontent_item_right_bottom .price-group .price>span {
    font-weight: 600;
    font-size: 18px;
    margin-top: -3px
}

.JDLMcontent_item_right_bottom .price-group .old-price {
    color: #BFBFBF;
    font-size: 12px;
    text-decoration: line-through;
    display: flex;
    align-items: center;
}

.JDLMcontent_item_right_footer .people-num {
    color: #BFBFBF;
    font-size: 12px;
}

.JDLMcontent_item_right_footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 4px;
}

.JDLMcontent_item_right_footer .store-name {
    color: #B3B3B3;
    font-size: 12px;
    display: flex;
    align-items: center;
    padding-right: 8px;
    flex: 1;
    overflow: hidden;
}

.JDLMcontent_item_right_footer .store-name .iconfont {
    margin-right: 2px;
    font-size: 14px;
}

.JDLMcontent_item_right_footer .store-name>span:nth-child(2) {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.JDLMcontent_item_right_footer .share-goods-btn-index {
    color: #F15A14;
    font-size: 12px;
    padding: 2px 13px;
    border-radius: 13px;
    background: #FFE4D7;
}

.JDLMcontent_item_right_footer .addCustomer {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #B3B3B3;
}

.source-tag {
    color: #fa1217;
    font-size: 13px;
}



body.activity {
    background: white;
    padding-top: 0;
}

body.activity .JDLMtabList {
    background: white;
}

body.activity .JDLMtabList .active {
    color: #262626 !important;
}

body.activity .JDLMtabList-div {
    color: #666666
}

body.activity .JDLMtabList .line {
    background: #F15A14;
}

body.activity .hot-sales-card {
    background: url(../image/hotsales/card2.png) 0% 0%;
    background-size: 100% 100%;
}

body.activity .hot-sales-swiper-card {
    background: linear-gradient(270deg, #FF8F41 0%, #ED540C 100%);
}

body.activity .swiper-wrapper-switch .swiper-pagination-bullet-active {
    background: #FF5600;
}

body.activity .JDLMcontent {
    margin: 5px -12px 0;
    padding: 12px;
    background: #F9F9F9;
}

body.activity .activity-card {
    display: block;
}

body.activity .hot-sales {
    padding-top: 15px;
    border-radius: 12px 12px 0px 0px;
    margin-top: -10px;
    position: relative;
    z-index: 2;
    background: white;
}

.activity-card {
    display: none;
    position: relative;
}

.activity-card img {
    pointer-events: none;
}

.activity-card-content {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    padding-top: 8.8%
}

.activity-card-tips {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: 0;
    width: 100%;
}

.activity-card-tips-btn {
    background: #00000033;
    border-radius: 0px 0px 0px 11px;
    width: 64px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFE8C6;
    font-size: 12px;
}

.activity-card-tag {
    font-size: 10px;
    color: #FFE8C6FF;
    margin-left: 10px;
}

.activity-card-balance {
    color: #F24034FF;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    height: 38%;
    padding-top: 10px
}

.activity-card-balance-val {
    font-size: 41px;
    font-weight: bold;
    line-height: 41px;
    margin: -10px 3px 0;
}

.activity-card-balance-tips {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #B0635EFF;
    height: 24%;
}

.activity-card-countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38%
}

.count-down-box {
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.count-down-box>div:nth-child(2n+1) {
    line-height: 17px;
    height: 17px;
    width: 20px;
    text-align: center;
    color: #F24034FF;
    background: #FFE8C6FF;
    font-weight: 500;
    font-size: 12px;
    border-radius: 2px;
}

.count-down-box>div:nth-child(2n) {
    text-align: center;
    line-height: 26px;
    height: 26px;
    color: #FFE8C6;
    font-size: 12px;
    margin: 0 3px;
}

.prompt-topping-tips {}

.prompt-topping-tips .layui-layer-title {
    font-size: 18px;
    color: #262626;
    font-weight: bold;
    text-align: center;
    padding: 18px 0 12px;
    height: auto;
    white-space: normal;
    /* 允许文字换行 */
}

.prompt-topping-tips .layui-layer-content {
    color: #4D4D4D;
    font-size: 13px;
    line-height: 24px;
    padding: 0 20px 10px;
    border-bottom: 1px solid #0000000D
}

.prompt-topping-tips .layui-layer-btn {
    height: 69px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: white;
}

.prompt-topping-tips .layui-layer-btn .layui-layer-btn0 {
    border: none;
    background-color: transparent;
    color: #FF6E00;
    font-size: 18px;
    font-weight: bold;
    width: 100%;
    text-align: center;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.prompt-topping-tips .edit-content>div {
    margin-bottom: 10px;
}

.red {
    color: red;
}


.activity-popup {
    position: fixed;
    z-index: 2;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}

.activity-popup-mask {
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background: #00000099;
    z-index: -1
}

.activity-popup-content {
    background: linear-gradient(180deg, #FFECC9 0%, #FFFFFF 100%);
    width: 275px;
    height: 292px;
    border-radius: 8px;
    padding: 30px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%)
}

.activity-popup-title {
    font-weight: 500;
    color: #262626FF;
    line-height: 22px;
    height: 22px;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 24px;
}

.activity-popup-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
}

.activity-popup-row>div:nth-child(1) {
    color: #262626FF;
    font-weight: 500;
    line-height: 24px;
    height: 24px;
    font-size: 14px;
}

.activity-popup-row>div:nth-child(2) {
    color: #F24034FF;
    font-size: 14px;
    display: flex;
    align-items: flex-end;
    font-weight: 500;
}

.activity-popup-row .activity-popup-row-val {
    font-size: 20px;
}

.activity-popup-row.subtraction {
    margin: 10px 0;
}

.activity-popup-row.subtraction>div:nth-child(1) {
    color: #737373FF;
    font-weight: 400;
    line-height: 24px;
    height: 24px;
}

.activity-popup-row.subtraction>div:nth-child(2) {
    color: #737373FF;
    font-size: 14px;
    display: flex;
    align-items: flex-end;
    font-weight: 400;
}

.activity-popup-row.subtraction .activity-popup-row-val {
    font-size: 14px;
}

.activity-popup-btn {
    width: 215px;
    height: 36px;
    background: #FF8B2F;
    border-radius: 2px;
    line-height: 36px;
    text-align: center;
    color: #FFFFFFFF;
    cursor: pointer;
}

.activity-gift-card {
    height: 17px;
    line-height: 17px;
    background: linear-gradient(to right, #FF4515FF 0, #FF4515FF 28px, #FFDFD7FF 28px, #FFDFD7FF 100%);
    padding-left: 32px;
    padding-right: 4px;
    text-align: right;
    color: white;
    margin-top: 4px;
    width: fit-content;
    position: relative;
    border-radius: 2px;
    color: #FF4515FF
}

.activity-gift-card::before {
    content: '礼金';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    color: white;
    font-size: 12px;
    font-weight: 400;
}