﻿body, html {
    margin: 0;
    padding: 0;
    overflow: hidden;
    height: 100%;
    background-color: #fff;
    background-image: url('../image/bg0.jpg');
}

div {
    position: absolute;
    background-size: 100% auto;
    background-repeat: no-repeat;
    overflow: hidden;
    background-position: center;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    transform-style: preserve-3d;
    background-size: 100% auto;
}

.position {
    width: 0;
    height: 0;
    overflow: visible;
}

.center {
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
}

.top {
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
    -webkit-transform-origin: center top;
    transform-origin: center top;
}

.bottom {
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    -webkit-transform-origin: center bottom;
    transform-origin: center bottom;
}

.left-top {
    left: 0;
    top: 0;
    -webkit-transform-origin: left top;
    transform-origin: left top;
}

.right-top {
    right: 0;
    top: 0;
    -webkit-transform-origin: right top;
    transform-origin: right top;
}

.left-bottom {
    left: 0;
    bottom: 0;
    -webkit-transform-origin: left bottom;
    transform-origin: left bottom;
}

.right-bottom {
    right: 0;
    bottom: 0;
    -webkit-transform-origin: right bottom;
    transform-origin: right bottom;
}
#scene {
    width: 100%;
    height: 100%;
}
#show {
    width: 100%;
    max-width: 750px;
    height: 100%;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    transition: all .3s;
    opacity: 0;
}

    #show.in {
        opacity: 1;
    }

#loading {
    width: 100%;
    height: 100%;
    z-index: 999;
    background-size: cover;
    background-color: #fff;
    background-image: url('../image/bg0.jpg');
}

    #loading.out {
        opacity:0;
        pointer-events:none;
        transition:all 1s .2s;
    }
    #loading .progress {
        width: 451px;
        height: 19px;
        background-color: #572737;
        border-radius: 6px;
        border: 2px solid #572737;
        transform: translate3d(-50%,-50%,0);
    }
    #loading .val {
        width: 0;
        height: 19px;
        background-image: url('../image/loading.png');
        background-position:right;
        background-size:451px 19px;
        background-repeat:no-repeat;
    }
    #loading .pic {
        transform: translate3d(-50%,-50%,0) translate3d(100px,-100px,0);
    }
    #loading .txt {
        width: 200px;
        height: 40px;
        font-size: 30px;
        text-align: center;
        transform: translate3d(-50%,-50%,0) translate3d(0,50px,0);
        font-weight: bold;
        color: #fff;
        text-shadow: 0 0 2px #572737,0 0 2px #572737,0 0 2px #572737,0 0 2px #572737,0 0 2px #572737;
    }
    [data-before-txt]::before {
        content: attr(data-before-txt);
    }

[data-after-txt]::after {
    content: attr(data-after-txt);
}

.btn img, .btn label {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    left: 0;
    top: 0;
}

.btn.hover>* {
    transform: scale(.9);
}
.absolute {
    position: absolute;
}
.page {
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: all .5s;
    left: 0;
    top: 0;
    background-color: #fff;
    display: none;
}

.page.in{
    pointer-events:all;
    opacity:1;
}
#btn_bgm {
    width: 65px;
    height: 65px;
    right: 20px;
    top: 20px;
}

    #btn_bgm .on, #btn_bgm.in .off {
        opacity: 0;
    }

    #btn_bgm .off, #btn_bgm.in .on {
        opacity: 1;
    }


#p1 {
    background-image: url('../image/bg1.jpg');
    display:block;
}
    #p1 .title {
        transform: translate3d(-50%, -50%, 0) translate3d(-80px,-330px,0);
    }
    #p1 .logo {
        transform: translate3d(-50%, -50%, 0) translate3d(164px,-524px,0);
    }

    #p1 #start {
        width: 385px;
        height: 94px;
        transform: translate3d(-50%, -50%, 0) translate3d(0,374px,0);
    }
    #p1 #mygift {
        width: 145px;
        height: 145px;
        transform: translate3d(-50%, -50%, 0) translate3d(256px,500px,0);
        overflow:visible;
    }
        #p1 #mygift .halo {
            width: 145px;
            height: 145px;
            border-radius: 72.5px;
            box-shadow: 0 0 16px rgb(185,33,255);
        }
#p2{
    font-size:0;
    overflow:auto;
}
    #p2 .longpage {
        position: relative;
    }
        #p2 .longpage > img {
            width: 100%;
            margin: 0;
            padding: 0;
            border: 0;
            pointer-events:none;
        }
#skip {
    width: 247px;
    height: 82px;
    transform: translate3d(-50%,-100%,0) translate3d(-150px,-136px,0);
}
#start2 {
    width: 247px;
    height: 82px;
    transform: translate3d(-50%,-100%,0) translate3d(150px,-136px,0);
}

#p4 {
    font-size: 0;
    overflow: auto;
}

    #p4 .longpage {
        position: relative;
    }

        #p4 .longpage > img {
            width: 100%;
            margin: 0;
            padding: 0;
            border: 0;
            pointer-events: none;
        }

#goods {
    width: 230px;
    height: 64px;
    transform: translate3d(-50%,-100%,0) translate3d(-130px,-586px,0);
}

#raffle {
    width: 230px;
    height: 64px;
    transform: translate3d(-50%,-100%,0) translate3d(130px,-586px,0);
}
    #raffle.out {
        pointer-events: none;
        background-image: url('../image/raffle2.png');
    }
        #raffle.out img{
            display:none;
        }

        .pop {
            background-color: rgba(48,26,20,.95);
        }
    .pop .box {
        width: 618px;
        height: 707px;
        transform: translate3d(-50%,-50%,0);
        background-image: url('../image/pop.png');
        text-align:center;
        transition:all .5s;
    }
    .pop.in .box {
        transform: translate3d(-50%,-50%,0) translate3d(0,-50px,0);
    }
    .pop .box>img {
        pointer-events: none;
        margin-top: 138px;
        transform: translateX(15px);
    }
    .pop .btn{
        width:195px;
        height:77px;
        left:0;right:0;
        bottom:66px;
        margin:auto;
    }
    .pop .btn1 {
        transform: translate3d(-100px,0,0);
    }
    .pop .btn2 {
        transform: translate3d(120px,0,0);
    }
#winning .gift {
    width: 300px;
    height: 100px;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    font-size: 28px;
    text-shadow: 0 0 2px #dd2a6c, 0 0 2px #dd2a6c, 0 0 2px #dd2a6c, 0 0 2px #dd2a6c, 0 0 2px #dd2a6c;
    color: #fff;
    font-weight: bold;
    transform: translate3d(15px,-20px,0);
}
.pop input, .pop textarea {
    position: absolute;
    background-color: transparent;
    border: 0;
    padding: 0 15px;
    font-size: 24px;
    color: #ffffff;
}
    .pop input::-webkit-input-placeholder, .pop textarea::-webkit-input-placeholder {
        color: #ffffff;
        font-size: 24px;
    }

    #signin #tel {
        top: 242px;
        left: 122px;
        height: 53px;
        width: 372px;
    }
#signin #precode {
    top: 327px;
    left: 122px;
    height: 53px;
    width: 196px;
}
#signin #codeimg {
    top: 327px;
    left: 352px;
    height: 53px;
    width: 157px;
    margin: 0;
    background-color:#fff;
}
#signin.in #codeimg {
    pointer-events: all;
}
#signin #code {
    top: 416px;
    left: 122px;
    height: 53px;
    width: 157px;
}
#signin #sendcode {
    top: 416px;
    left: 362px;
    margin: unset;
    right: unset;
    bottom: unset;
    height: 54px;
    width: 165px;
}
    #signin #sendcode.out {
        pointer-events: none;
        background-image: url('../image/sendcode2.png');
    }
        #signin #sendcode.out::after {
            content: attr(data-delay);
            height: 54px;
            width: 165px;
            line-height: 54px;
            display: block;
            text-align: center;
            font-size: 22px;
            color: #fff;
            text-shadow: 0 0 2px #000,0 0 2px #000,0 0 2px #000,0 0 2px #000,0 0 2px #000;
        }

        #signin #sendcode.out img {
            display: none;
        } 

#signin .err {
    font-size: 20px;
    color: #dd2a6c;
    width: 600px;
    text-align: left;
    display: none;
}
.tel_err {
    top: 295px;
    left: 135px;
}
.precode_err {
    top: 380px;
    left: 135px;
}
.code_err {
    top: 470px;
    left: 135px;
}
#p3.in{
    z-index:9;
}
#p3 .offsetR.in {
    transform: rotateZ(90deg);
}
#p3 #game_ui {
    transform:translate3d(-50%,-50%,0);
}

#p3 #game {
    position: absolute;
    transform: translate3d(-50%,-50%,0);
}
#p3 #rule {
    width: 1064px;
    height: 628px;
    background-image: url('../image/rule.png?2');
    transform: translate3d(-50%,-50%,0) translate3d(0,20px,0);
    transition: all .5s;
    opacity: 0;
    pointer-events:none;
}
    #p3 #rule #rule_start{
        width:271px;
        height:70px;
        left:0;right:0;
        bottom:35px;
        margin:auto;
    }
#p3.in #rule.in {
    pointer-events: all;
    transform: translate3d(-50%,-50%,0);
    opacity: 1;
}


#ready {
    transform:translate3d(-50%,-50%,0) translate3d(100px,0,0);
    opacity:0;
    pointer-events:none;
}
#p3.in #ready.in{
    animation:ready 1.2s linear .3s;
}
@keyframes ready{
    0% {
        opacity: 0;
        transform: translate3d(-50%,-50%,0) translate3d(50px,0,0);
    }
    25% {
        opacity: 1;
        transform: translate3d(-50%,-50%,0);
    }
    75% {
        opacity: 1;
        transform: translate3d(-50%,-50%,0);
    }
    100% {
        opacity: 0;
        transform: translate3d(-50%,-50%,0) translate3d(-100px,0,0);
    }
}

#timer {
    width: 249px;
    height: 83px;
    left: 30px;
    top: 30px;
    background-image: url('../image/timer.png');
}
    #timer #score {
        width: 168px;
        height: 52px;
        font-size: 30px;
        line-height: 52px;
        color: #fff;
        text-shadow: 0 0 2px #000;
        text-align: center;
        left: 0px;
        top: 16px;
    }
    #timer #countdown {
        width: 82px;
        height: 82px;
        font-size: 32px;
        line-height: 82px;
        color: #b73862;
        text-align: center;
        left: 166px;
        top: 0px;
    }

    #p3 #lose {
        width: 1061px;
        height: 588px;
        background-image: url('../image/lose.png');
        transform: translate3d(-50%,-50%,0) translate3d(0,20px,0);
        transition: all .5s;
        opacity: 0;
        pointer-events: none;
    }

        #p3 #lose #lose_back {
            width: 310px;
            height: 87px;
            right: 120px;
            bottom: 148px;
        }
        #p3 #lose #lose_next {
            width: 310px;
            height: 87px;
            right: 120px;
            bottom: 40px;
        }

#p3.in #lose.in {
    pointer-events: all;
    transform: translate3d(-50%,-50%,0);
    opacity: 1;
}

#p3 #win {
    width: 1061px;
    height: 588px;
    background-image: url('../image/win.png');
    transform: translate3d(-50%,-50%,0) translate3d(0,20px,0);
    transition: all .5s;
    opacity: 0;
    pointer-events: none;
}

    #p3 #win #win_back {
        width: 310px;
        height: 87px;
        right: 120px;
        bottom: 148px;
    }

    #p3 #win #win_next {
        width: 310px;
        height: 87px;
        right: 120px;
        bottom: 40px;
    }

#p3.in #win.in {
    pointer-events: all;
    transform: translate3d(-50%,-50%,0);
    opacity: 1;
}

#p5 {
    background-image: url('../image/bg2.jpg');
}
    #p5 .title {
        pointer-events: none;
        transform: translate3d(-50%,-50%,0) translate3d(30px,-445px,0);
    }
    #p5 .list {
        width: 750px;
        height: 1000px;
        transform: translate3d(-50%,-50%,0) translate3d(0,60px,0);
    }
    #p5 .list .item{
        width:100%;
        height:100%;
        display:none;
    }

        #p5 .list .item.in {
            display:block;
        }
    #p5 .list .item img{
        position:absolute;
        left:75px;
        pointer-events:none;
    }

#slide_next {
    width: 45px;
    height: 101px;
    transform: translate3d(-50%,-50%,0) translate3d(-320px,0,0);
}
#slide_prev {
    width: 45px;
    height: 101px;
    transform: translate3d(-50%,-50%,0) translate3d(320px,0,0);
}

#goods_back {
    width: 260px;
    height: 75px;
    transform: translate3d(-50%,-50%,0) translate3d(-160px,535px,0);
}

#goods_back2 {
    width: 260px;
    height: 75px;
    transform: translate3d(-50%,-50%,0) translate3d(160px,535px,0);
}

#ship #name {
    top: 236px;
    left: 122px;
    height: 53px;
    width: 372px;
}

#ship #phone {
    top: 324px;
    left: 122px;
    height: 53px;
    width: 372px;
}
#ship #address {
    top: 414px;
    left: 122px;
    height: 105px;
    width: 372px;
    padding-top: 10px;
}

#complete #complete_back{
    width:244px;
    height:77px;
}

#ALERT {
    position: absolute;
    z-index: 1000;
    width: 100%;
    height: 100%;
    transition: all .3s;
    opacity:0;
    pointer-events:none;
}
    #ALERT.in {
        pointer-events:all;
        opacity:1;
    }
    #ALERT .box {
        width: 553px;
        height: 347px;
        transform: translate3d(-50%,-50%,0) translate3d(0,20px,0);
        background-image: url('../image/alert.png');
        transition:all .3s;
    }
    #ALERT.in .box {
        transform: translate3d(-50%,-50%,0);
    }
    #ALERT .box .message {
        width: 470px;
        height: 200px;
        left: 0;
        right: 0;
        top: 20px;
        margin: auto;
        display: flex;
        align-items: center;
        flex-direction: column;
        color: #dd2a6c;
        font-size: 30px;
        text-align: center;
        justify-content: center;
    }
        #ALERT .box .message::before{
            flex-grow:0;
            flex-shrink:0;
        }

        #ALERT .close {
            width: 195px;
            height: 77px;
            left: 0;
            right: 0;
            bottom: 40px;
            margin: auto;
        }