.main {
    position: relative;
    width: 6rem;
    margin: 0 auto;
}


.line {
    margin: 0.3rem 0.2rem;
}

.line1 {
    display: none;
}

.main_roleinfo {
    padding: 0 0 0.3rem 0.5rem;
    font-size: 0.27rem;
    font-weight: bold;
    height: 0.35rem;
    display: flex;
    align-items: center;
}

.role_server {
    display: flex;
    flex-shrink: 0;
}

.role_name {
    font-weight: normal;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

/* nav */
.products_nav {
    display: flex;
    justify-content: space-between;
    font-size: 0.23rem;
    margin-top: 0.2rem;
}

.products_type {
    display: flex;
    align-items: center;
}

.products_type .tab {
    line-height: 0.35rem;
    font-weight: bold;
    margin: 0 0.2rem 0 0.1rem;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
}

.products_type .tab.active {
    color: #C2BAF7;
    border-bottom: 0.03rem solid #C2BAF7;
}

.products_rules {
    width: 1.33rem;
    height: 0.32rem;
    line-height: 0.32rem;
    border-radius: 0.08rem;
    background: #5163b8;
    font-size: 0.19rem;
    text-align: center;
    color: #fff;
    /* position: absolute;
    top: 3.27rem;
    right: 1rem; */
    cursor: pointer;
}

.rules {
    font-size: 0.23rem;
}

.rules.show {
    display: block !important;
}

.products_bg {
    margin-top: 0.5rem;
    min-height: calc(100vh - 7.14rem);
}

.products {
    display: flex;
    flex-flow: row wrap;
    padding-bottom: 0.5rem;
}

.product {
    position: relative;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    width: 1.8rem;
    height: 2.368rem;
    margin: 0 0.1rem 0.3rem;
    background: url(../images/mo_box1.png) no-repeat center center;
    background-size: 100% 100%;
    font-size: 0.16rem;
    color: #FFFFFF;
}

.discount {
    margin: 0 -0.24rem;
    font-size: 0.16rem;
}

.discount_title {
    color: #7C0000;
    font-weight: bold;
    margin-right: 2px;
}

.imgblock {
    width: 1.8rem;
    height: 1.45rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 0.05rem;
}

.imgblock img {
    max-width: 100%;
    max-height: 100%;
}

.priceblock {
    display: flex;
    flex-flow: column;
    justify-content: space-evenly;
    align-items: center;
    height: 0.8rem;
}

.product_present {
    /* display: none; */
    font-size: 0.14rem;
    font-weight: 400;
    margin-bottom: 0.02rem;
}

.product_title {
    margin-bottom: 0.02rem;
}

.price {
    width: 100%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.originPrice {
    font-size: 0.19rem;
    font-weight: 400;
    color: #1E1E1E;
    opacity: 0.47;
    text-decoration: line-through;
}

.curPrice {
    color: #b1c3f2;
}

.settlement {
    width: 100%;
    position: fixed;
    top: unset;
    left: 0;
    bottom: 0;
    height: auto;
    max-height: 90vh;
    overflow: auto;
    z-index: 101;
    background-color: #FFFFFF;
}

.settlement.show {
    display: block !important;
}

.settlement2.show {
    display: none !important;
}

.settle_info {
    margin: 1.2rem 0.45rem 0.45rem;
}

.settle_part {
    margin: 0 0.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settle_part2 {
    justify-content: flex-start;
    align-items: start;
}

.settle_title {
    font-size: 0.23rem;
    font-weight: bold;
}

.settle_paytype {
    font-size: 0.21rem;
    color: #21252F;
    font-weight: 400;
}

.settle_extras {
    flex: 1;
    font-size: 0.21rem;
    font-weight: 400;
    margin-left: 0.3rem;
}

.settle_discount {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settle_discount2 {
    display: none;
    margin-top: 0.3rem;
}

.settle_discount_detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settle_discount_title {
    color: #7C0000;
    position: relative;
}

.settle_discount_title::after {
    content: " ";
    display: inline-block;
    width: 0.165rem;
    height: 0.09rem;
    position: absolute;
    top: 50%;
    right: -0.25rem;
    margin-top: -0.045rem;
    background: url(../images/arrow.png) no-repeat center center;
    background-size: 100%;
}

.settle_discount_title.active::after {
    background: url(../images/arrow1.png) no-repeat center center;
    background-size: 100%;
}

.settle_pay {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settle_pay_info {
    display: flex;
    align-items: center;
}

.settle_payprice {
    font-size: 0.28rem;
    font-weight: bold;
}

.settle_payprice_origin {
    font-size: 0.25rem;
    color: rgba(33, 37, 47, 0.38);
    font-weight: 400;
    text-decoration: line-through;
    margin-right: 0.2rem;
}

.isDiscount {
    color: #7C0000;
}

.payBtn {
    font-size: 0.22rem;
}

.settle_title_bg {
    flex: 1;
    margin: 0 0.3rem;
    border-bottom: 1px dashed rgba(33, 37, 47, .15);
}

.settle_pay_title {
    font-size: 0.3rem;
    color: #7C0000;
    font-weight: bold;
}

.settle_product {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.2rem;
}

.settle_product_img {
    flex: 0;
    width: 2.32rem;
    height: 2.32rem;
    flex-basis: 2.32rem;
    margin-right: 0.2rem;
}

.settle_product_info {
    display: flex;
    flex-flow: column wrap;
    flex: 1;
    font-size: 0.28rem;
}

.settle_product_discount {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.2rem;
}

.settle_product_discount_title {
    font-weight: bold;
    color: #7C0000;
}

.settle_product_title {
    font-size: 0.3rem;
    font-weight: bold;
}

.settle_product_note {
    font-size: 0.22rem;
    font-weight: bold;
    color: #7C0000;
}

.explain {
    display: none;
    margin-top: 0.3rem;
    font-size: 0.26rem;
    white-space: pre-wrap;
    padding: 0 0.2rem;
}

.products_explains {
    line-height: 1.7;
}

.product_border_dashed {
    position: absolute;
    width: 94%;
    height: 94%;
    top: 3%;
    border: 1px dashed #e5dcc9;
    pointer-events: none;
}

.product_border_corner {
    position: absolute;
    width: 0.5rem;
    height: 0.5rem;
    border: 1px solid #e5dcc9;
}

.border_corner_1 {
    left: -1px;
    top: -1px;
    border-right: none;
    border-bottom: none;
}

.border_corner_2 {
    right: -1px;
    top: -1px;
    border-left: none;
    border-bottom: none;
}

.border_corner_3 {
    right: -1px;
    bottom: -1px;
    border-left: none;
    border-top: none;
}

.border_corner_4 {
    left: -1px;
    bottom: -1px;
    border-right: none;
    border-top: none;
}

@media screen and (max-width: 750px) {

    .product_agreement {
        display: flex;
        flex-flow: column;
        align-items: center;
    }

    .product_agreement a {
        color: #3B3B3B;
        text-decoration: underline;
        margin-bottom: 5px;
    }

    .product_seperate {
        display: none;
    }
}

@media screen and (min-width: 750px) {
    body {
        background-color: #f7f4f8;
        padding-bottom: 0;
    }

    .main {
        width: 12rem;
        margin: 0 auto;
    }

    .line1 {
        display: block;
        margin: 0.5rem 0 0.7rem;
    }

    .products_nav {
        margin-top: 3.5rem;
    }

    .products_bg {
        margin-top: 0.5rem;
    }

    .products {
        justify-content: start;
    }

    .product {
        margin: 0 0.1rem 1vw;
        padding: 0 0.2rem;
    }

    .settle_info {
        margin-top: 0.5rem;
    }

    .settle_part {
        margin-bottom: 0.6rem;
    }

    .settle_title {
        font-size: 0.285rem;
    }

    .settle_paytype {
        font-size: 0.25rem;
    }

    .settle_part2 {
        flex-flow: column wrap;
    }

    .settle_extras {
        width: 100%;
        margin-left: 0;
    }

    .settle_discount {
        margin: 0.2rem 0;
        font-size: 0.25rem;
    }

    .settle_discount_title {
        color: #000000;
        font-weight: bold;
    }

    .settle_discount_title::after {
        content: none;
    }

    .settle_pay {
        margin: 0 0.2rem;
        flex-flow: column wrap;
        /* justify-content: flex-start; */
        align-items: flex-start;
    }

    .settle_pay_info {
        width: 100%;
        justify-content: flex-end;
    }

    .settle_payprice_origin {
        font-size: 0.25rem;
    }

    .settle_payprice {
        font-size: 0.35rem;
        color: #7C0000;
    }

    .payBtn {
        margin: 0.7rem auto 0;
        font-size: 0.25rem;
    }

    .settlement.show {
        display: none !important;
    }

    .settlement2.show {
        display: block !important;
        width: 6rem;
        height: 7.5rem;
        transform: scale(0.7);
    }

    .products_rules {
        display: none;
    }

    .explain {
        display: flex;
        padding: 0.55rem;
        color: #FFFFFF;
        background: rgba(256, 256, 256, 0.3);
        font-size: 0.2rem;
    }

    .product_agreement {
        margin-top: 5px;
        display: flex;
        justify-content: center;
    }

    .product_agreement a {
        color: #3B3B3B;
        text-decoration: underline;
    }

    .product_seperate {
        display: inline-block;
        width: 1px;
        height: 100%;
        margin: 0 20px;
    }
}