/* 所有元素点击态背景去掉 */

* {
    -webkit-tap-highlight-color: transparent;
}

/* 弹窗固定背景 */

.actfixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; /* 解决背景抖动 */
}

/* 背景 */
.main {
    height: 25.8rem;
    background: url(../images/bg.jpg) no-repeat;
    background-size: 100%;
    overflow: hidden;
}

/* 分享 */
.share {
    position: absolute;
    right: 0.2rem;
    top: 1.2rem;
    width: 0.65rem;
    height: 0.66rem;
    background: url(../images/share.png) no-repeat;
    background-size: 100%;
}

.share:active {
    transform: scale(0.9);
}

/* 活动规则 */
.rule {
    position: absolute;
    left: 0;
    top: 4.1rem;
    width: 0.53rem;
    height: 1.5rem;
    background: url(../images/rule.png) no-repeat;
    background-size: 100%;
}

.rule:active {
    transform-origin: left center;
    transform: scale(0.98);
}

/* 预约按钮 */

.reservebtn {
    position: absolute;
    left: 50%;
    top: 4.15rem;
    transform: translateX(-50%);
    width: 3.01rem;
    height: 1.34rem;
    background: url(../images/reservebtn.png) no-repeat;
    background-size: 100%;
}

.reservebtn:active {
    transform: translateX(-50%) scale(0.9);
}

/* 登录信息 */
.userbox {
    position: absolute;
    top: 1.1rem;
    left: 0;
    min-width: 1rem;
    /* background-color: #2c319780; */
    background-color: rgba(44, 49, 151, 0.5);
    height: 0.4rem;
    text-align: center;
    font: normal 0.26rem/0.4rem "";
}

.userbox::after {
    content: "";
    position: absolute;
    top: 0;
    right: -0.4rem;
    width: 0.4rem;
    height: 0.4rem;
    background-image: linear-gradient(
        to right,
        rgba(44, 49, 151, 0.5),
        rgba(44, 49, 151, 0)
    );
}

.userbox_btn {
    color: #84ecff;
    font-size: 0.24rem;
    /* border-bottom: solid 1px; */
}

.userbox_uid {
    color: #fff;
    margin: auto 0.1rem;
}

/* 抽奖模块 */
.lotterybox {
    margin: 5.9rem auto 0;
    width: 7.13rem;
    height: 11.08rem;
    background: url(../images/lottery_bg.png) no-repeat;
    background-size: 100%;
    text-align: center;
    overflow: hidden;
}

.lotterybox_tips {
    margin-top: 1rem;
    display: inline-block;
    font: normal 0.28rem/1.5 "";
    color: #fff;
}

.lotterybox_gifts {
    margin: 0.3rem auto 0;
    width: 6.75rem;
    height: 5.2rem;
    /* border: solid 1px green; */
}

.lotterybox_gift {
    float: left;
    margin-left: 0.2rem;
    margin-bottom: 0.3rem;
    width: 1.98rem;
    height: 2.34rem;
    background: url(../images/gift_bg.png) no-repeat;
    background-size: 100%;
    box-sizing: border-box;
}

.lotterybox_gift-shining {
    transform: scale(1.1);
    background-image: url(../images/gift_bg_chosen.png);
}

.lotterybox_gift:first-child {
    margin-left: 1.25rem;
}

.lotterybox_gift_pic {
    margin-top: 0.14rem;
    display: inline-block;
    width: 1.66rem;
    height: 1.66rem;
    overflow: hidden;
    position: relative;
}

.lotterybox_gift_pic img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1.66rem;
}

.lotterybox_gift_name {
    display: inline-block;
    width: 100%;
    color: #fff;
    white-space: nowrap;
}

.lotterybox_lotterybtn {
    margin: 0 auto;
    width: 2.61rem;
    height: 1.63rem;
    background: url(../images/lotterybtn-lock.png) no-repeat;
    background-size: 100%;
}

.lotterybox_lotterybtn-unlock {
    background-image: url(../images/lotterybtn.png);
}

.lotterybox_lotterybtn-unlock:active {
    transform: scale(0.95);
}

.lotterybox_mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    color: #ffffff00;
    /* opacity: 0; */
    z-index: 101;
}

.lotterybox_lotterytimes {
    margin-top: 0.1rem;
    display: inline-block;
    color: #fff;
    font: normal 0.24rem/1 "";
}

.lotterybox_lotterytimes i {
    color: #ffed72;
}

.lotterybox_invitebtn {
    margin: 0.3rem auto 0;
    width: 3.35rem;
    height: 1.08rem;
    background: url(../images/invitebtn.png) no-repeat;
    background-size: 100%;
}

.lotterybox_invitebtn:active {
    transform: scale(0.9);
}

.lotterybox_tips2 {
    margin-top: 0.15rem;
    display: inline-block;
    color: #fff;
    font: normal 0.24rem/1 "";
}

/* 成就模块 */
.achievebox {
    margin: 0.3rem auto;
    padding-top: 1.2rem;
    width: 7.13rem;
    height: 8.08rem;
    background: url(../images/achievement_bg.png) no-repeat;
    background-size: 100%;
    /* overflow: hidden; */
    text-align: center;
}

.achievebox_taskbox {
    margin: 0 auto;
    width: 7rem;
    height: 3.4rem;
    background: url(../images/divider.png) 30.5% 38%/1rem no-repeat,
        url(../images/divider.png) 69.5% 38%/1rem no-repeat;
    text-align: center;
    box-sizing: border-box;
}

.achievebox_task {
    display: inline-block;
    width: 2.26rem;
    height: 3.34rem;
    box-sizing: border-box;
    text-align: center;
}

.achievebox_task_desc {
    display: inline-block;
    width: 100%;
    font: normal 0.24rem/1 "";
    color: #ffed72;
}

.achievebox_task_pic {
    margin-top: 0.1rem;
    display: inline-block;
    width: 1.73rem;
    height: 1.73rem;
    background: url(../images/achievegift_bg.png) no-repeat;
    background-size: 100%;
    position: relative;
}

.achievebox_task_pic img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1.3rem;
}

.achievebox_task_name {
    margin-top: 0.2rem;
    display: inline-block;
    font: normal 0.24rem/1 "";
    color: #fff;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.achievebox_task_btn {
    margin-top: 0.2rem;
    display: inline-block;
    width: 1.34rem;
    height: 0.52rem;
    background: url(../images/achievebtn-notyet.png) no-repeat;
    background-size: 100%;
}

.achievebox_task_btn-get {
    background-image: url(../images/achievebtn-get.png);
}

.achievebox_task_btn-already {
    background-image: url(../images/achievebtn-already.png);
}

.achievebox_task_btn-get:active {
    transform: scale(0.9);
}

.achievebox_tips {
    margin-top: 0.5rem;
    display: inline-block;
    width: 100%;
    font: normal 0.36rem/1 "";
    color: #ffed72;
}

.achievebox_tips2 {
    font: normal 0.24rem/1.5 "";
    color: #ffffff99;
}

.achievebox_invitebox {
    margin: 0.3rem auto 0;
    width: 6rem;
    height: 1.8rem;
    /* border: solid 1px green; */
}

.achievebox_invitor {
    float: left;
    width: 1.16rem;
    height: 1.75rem;
    /* border: dashed 1px saddlebrown; */
}

.achievebox_invitor-notyet:active {
    transform: scale(0.95);
}

.achievebox_invitor_pic {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    background: url(../images/invitor_bg.png) no-repeat;
    background-size: 100%;
    position: relative;
}

.achievebox_invitor_pic img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0.95rem;
    border-radius: 50%;
}

.achievebox_invitor_name {
    /* margin-top: 0.1rem; */
    display: inline-block;
    font: normal 0.2rem/1.2 "";
    color: #fff;
    /* border: solid 1px green; */
    /* overflow: hidden; */
    /* text-overflow: ellipsis; */
}
/* 弹窗 */

.popmask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99;
}

.popbody {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6.52rem;
    background: url() no-repeat;
    background-size: 100%;
    z-index: 100;
    text-align: center;
}

.popbody-short {
    height: 5.4rem;
    background-image: url(../images/popbg_short.png);
}

.popbody-long {
    height: 6.9rem;
    background-image: url(../images/popbg_long.png);
}

.popbody_title {
    margin-top: 0.23rem;
    font: normal 0.35rem/1 "";
    color: #fff;
}

.popbody_cont {
    margin: 0.1rem auto 0;
    width: 80%;
}

.popbody_pic {
    margin-top: 0.6rem;
    display: inline-block;
    width: 1.73rem;
    height: 1.73rem;
    background: url(../images/achievegift_bg.png) no-repeat;
    background-size: 100%;
    position: relative;
}

.popbody_pic img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1.5rem;
    border-radius: 50%;
}

.popbody_desc {
    margin-top: 0.1rem;
    display: inline-block;
    width: 100%;
    font: normal 0.28rem/1 "";
    color: #fff;
}

.popbody_tips {
    margin-top: 0.4rem;
    display: inline-block;
    width: 100%;
    font: normal 0.28rem/1.5 "";
    color: #fff;
    /* text-align: left; */
}

.popbody_btns {
    position: absolute;
    left: 0;
    bottom: 0.6rem;
    width: 100%;
    height: 0.8rem;
    text-align: center;
}

.popbody_btn {
    display: inline-block;
    width: 2.24rem;
    height: 0.79rem;
    background: url(../images/popbtn.png) no-repeat;
    background-size: 100%;
    font: normal 0.35rem/0.79rem "";
    color: #fff;
}

.popbody_btn:active {
    transform: scale(0.9);
}

.popbody_close {
    position: absolute;
    bottom: -0.9rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0.63rem;
    height: 0.63rem;
    background: url(../images/pop_close.png) no-repeat;
    background-size: 100%;
}

.popbody_close:active {
    transform: translateX(-50%) scale(0.9);

    /* background-size: 99%; */
}

/* alert 弹窗 */

.popalert .popbody_cont span {
    margin-top: 1.1rem;
    display: inline-block;
    font: normal 0.32rem/1.5 "";
    color: #fff;
}

/* share 弹窗 */

.popshare .popbody_cont span:first-child {
    display: inline-block;
    margin-top: 1rem;
    font: normal 0.3rem/1.8 "";
    color: #fff;
    /* text-align: left; */
}

.popshare .popbody_cont span:last-child {
    display: inline-block;
    margin-top: 0.5rem;
    font: normal 0.24rem/1 "";
    color: rgb(132, 236, 255);
}

/* toast */

.toast {
    padding-left: 0.9rem;
    padding-right: 0.5rem;
    position: fixed;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
    height: 1rem;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 2rem;
    text-align: center;
    z-index: 999;
}

.toast-shrink {
    animation: shrink 0.6s linear;
}

@keyframes shrink {
    100% {
        transform: translateX(-50%) scale(0.8);
        opacity: 0.3;
    }
}

.toast_success {
    position: absolute;
    left: 0.35rem;
    top: 53%;
    transform: translateY(-60%);
    width: 0.4rem;
    height: 0.4rem;
    background-color: orange;
    border-radius: 50%;
}

.toast_success span {
    position: absolute;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 0.08rem;
    height: 0.18rem;
    border-bottom: solid 2px #fff;
    border-right: solid 2px #fff;
}

.toast_info {
    font: normal 0.28rem/1rem "";
    color: #fff;
    white-space: nowrap;
}

/* 规则 */
.poparule .popbody_cont span {
    margin-top: 0.5rem;
    display: inline-block;
    font: normal 0.25rem/1.5 "";
    color: #fff;
    text-align: left;
    height: 5rem;
    overflow: auto;
}

/* 前往预约 */
.popreserve .popbody_cont span {
    margin-top: 1.1rem;
    display: inline-block;
    font: normal 0.32rem/1.5 "";
    color: #fff;
    text-align: left;
}

/* 奖励弹窗 */
.poplottery .popbody_tips {
    text-align: left;
}
