:root {
    --w: 100vw;
    --h: 100vh;
}

@media screen and (min-width: 750px) {
    :root {
        --w: 750px;
    }
}

html,
body {
    background: #f1eff1;
    background-size: 100% auto;
    font-family: 'Helvetica Neue', Arial, "Hiragino Sans GB", 'Microsoft YaHei', sans-serif;
    -webkit-touch-callout: none;
    -webkit-text-size-adjust: none;
    -moz-text-size-adjust: none;
    -ms-text-size-adjust: none;
    -o-text-size-adjust: none;
    text-size-adjust: none;
    font-size: calc(var(--w) / 24);
}


* {
    padding: 0;
    margin: 0;
    border: 0;
    outline: 0;
    vertical-align: baseline;
    -webkit-tap-highlight-color: transparent;
}


a {
    text-decoration: none;
    color: #287fc2;
}

a:active {
    opacity: .8 !important;
}

#app {
    width: 100%;
    min-height: var(--h);
    display: grid;
    align-content: space-between;
    background: url(../img/bg.png) no-repeat center;
    background-position-y: bottom;
    background-size: cover;
}

#app .wrap {
    width: 100%;
    max-width: var(--w);
    margin: 0 auto;
    text-align: center;
}

#app .body {
    padding-top: 1rem;
}

#app .foot {
    color: #888;
    font-size: .8rem;
    line-height: 2rem;
    padding-bottom: constant(safe-area-inset-bottom);
    padding-bottom: env(safe-area-inset-bottom);
}

#app .logo {
    font-size: 1.8rem;
    font-style: oblique;
    color: #b9403b;
    font-weight: bold;
    opacity: 0;
    animation: logo .6s .3s linear forwards;
    -webkit-animation: logo .6s .3s linear forwards;
}

#app .line {
    height: .5rem;
    position: relative;
    margin: .6rem auto 1.2rem
}

#app .line:before,
#app .line:after {
    content: ' ';
    display: block;
    width: 0;
    height: .5rem;
    position: absolute;
    left: auto;
    right: 50%;
    background: url(../img/line.png) -25% 0 no-repeat;
    background-size: 200%;
    animation: line .6s .6s linear forwards;
    -webkit-animation: line .6s .6s linear forwards
}

#app .text {
    color: #222;
    font-size: 1rem;
    opacity: 0;
    transform: scale(0.6);
    -webkit-transform: scale(0.6);
    animation: tip .6s .8s linear forwards;
    -webkit-animation: tip .6s .8s linear forwards;
}

#app .text b {
    font-weight: normal;
    color: #b9403b;
}

#app .line:after {
    background-position: 125% 0;
    left: 50%
}

#app .phone {
    padding-top: 1rem;
    opacity: 0;
    animation: phone .6s 1s linear forwards;
    -webkit-animation: phone .6s 1s linear forwards;
}

#app .phone>img {
    display: block;
    width: 80%;
    margin: 0 auto;
}

#app .btns {
    width: 60%;
    margin: 0 auto;
    margin-top: 1rem;
}

#app .btns a {
    display: block;
    opacity: 0;
    height: 3rem;
    line-height: 3rem;
    font-size: 1.2rem;
    color: #b863b9;
    margin-bottom: 1rem;
    border: #e2c4e4 solid 1px;
    text-align: center;
    border-radius: .6rem;
}

#app .btns a.btn-red {
    color: #fff;
    background: -webkit-linear-gradient(top, #c83434, #b9403b);
    background: -ms-linear-gradient(top, #c83434, #b9403b);
    background: -linear-gradient(top, #c83434, #b9403b);
    filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr=#c83434, endColorStr=#b9403b, gradientType='0');
    position: relative;
    overflow: hidden;
    animation: btn .9s 1.4s linear forwards;
    -webkit-animation: btn .9s 1.4s linear forwards;
    box-shadow: 0 0 1rem 1px #d3cadc;
    border-color: #b9403b;
}

#app .btns a.btn-blue {
    color: #fff;
    background: linear-gradient(135deg,#5b247a,#1bcedf);
    background: -ms-linear-gradient(top, #5b247a, #1bcedf);
    background: -linear-gradient(top, #5b247a, #1bcedf);
    filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr=#5b247a, endColorStr=#1bcedf, gradientType='0');
    position: relative;
    overflow: hidden;
    animation: btn .9s 1.4s linear forwards;
    -webkit-animation: btn .9s 1.4s linear forwards;
    box-shadow: 0 0 1rem 1px #d3cadc;
}

#app .btns a.btn-android::before,
#app .btns a.btn-ios::before {
    display: inline-block;
    content: '';
    background: url(../img/icon-android.png) no-repeat center;
    background-size: 100%;
    width: 1.6rem;
    height: 1.6rem;
    vertical-align: sub;
    margin-right: .6rem;
}

#app .btns a.btn-ios::before {
    background-image: url(../img/icon-ios.png);
}

#app .btns a.btn-blue-text {
    color: #287fc2;
    font-size: .88rem;
    opacity: 0;
    animation: btn .9s 1.6s linear forwards;
    -webkit-animation: btn .9s 1.6s linear forwards;
    border: 0;
    line-height: 1.5rem;
    height: auto;
}

#app .text-blue {
    color: #26ABF8 !important;
}

.guide {
    z-index: 1000;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(20, 20, 20, 0.8);
    padding: 1.2rem;
}

.guide>img {
    width: 100%;
}

@-webkit-keyframes logo {
    0% {
        margin-top: -3rem;
        opacity: 0
    }

    100% {
        margin-top: 0;
        opacity: 1
    }
}

@keyframes logo {
    0% {
        margin-top: -3rem;
        opacity: 0
    }

    100% {
        margin-top: 0;
        opacity: 1
    }
}

@-webkit-keyframes line {
    0% {
        width: 0
    }

    100% {
        width: 50%
    }
}

@keyframes line {
    0% {
        width: 0
    }

    100% {
        width: 50%
    }
}

@-webkit-keyframes tip {
    0% {
        transform: scale(0.6);
        -webkit-transform: scale(0.6);
        opacity: 0
    }

    100% {
        transform: scale(1);
        -webkit-transform: scale(1);
        opacity: 1
    }
}

@keyframes tip {
    0% {
        transform: scale(0.6);
        -webkit-transform: scale(0.6);
        opacity: 0
    }

    100% {
        transform: scale(1);
        -webkit-transform: scale(1);
        opacity: 1
    }
}

@-webkit-keyframes phone {
    0% {
        margin-top: 3rem;
        opacity: 0
    }

    100% {
        margin-top: 0;
        opacity: 1
    }
}

@keyframes phone {
    0% {
        margin-top: 3rem;
        opacity: 0
    }

    100% {
        margin-top: 0;
        opacity: 1
    }
}

@-webkit-keyframes btn {
    0% {
        opacity: 0
    }

    100% {
        opacity: 1
    }
}

@keyframes btn {
    0% {
        opacity: 0
    }

    100% {
        opacity: 1
    }
}