html,body{margin:0; padding:0; width: 100%; height: 100%;}
body{
    -ms-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;
    font:normal 16px/1.6em "PingFang SC","Hiragino Sans GB","Microsoft Yahei","Arial",sans-serif;
    color:#333;
    overflow-x: hidden;
    background-color: #e3edf7;
}
ul,ol,li,em,p,span,h1,h2,h3{margin:0; padding:0; font-weight:normal; list-style:none; font-style:normal}
a {text-decoration: none;}
.hide {display: none !important;}

@font-face {
    font-family: 'FWQY';
    src: url('./FWQY.ttf');
    src: url('./FWQY.ttf') format('truetype');
}

/* loading box*/
#loading {
    position: fixed; width: 100%; height: 100%; left: 0; top: 0; z-index: 999;
    background: #e3edf7 url(../img/bg0.jpg?v2) no-repeat center bottom;
    background-size: cover;
}
#loading .icon{
    position: absolute; width: 60vw; height: 60vw; left: 20%; top: 20%;
    background: transparent url(../img/icon-load1.png) no-repeat center center;
    background-size: 100%;
}
#loading .icon img {
    position: absolute; width: 100%; height: 100%; left: 0; top: 0;
}
#loading .icon img:nth-child(1) {
    z-index: 1;
    -webkit-animation: clock2 12s infinite linear;
            animation: clock2 12s infinite linear;
}
#loading .icon img:nth-child(2) {
    z-index: 2;
    -webkit-animation: clock1 1s infinite linear;
            animation: clock1 1s infinite linear;
}
#loading .icon img:nth-child(3) {
    z-index: 3;
}
.hide .loadwrap .icon img {
    -webkit-animation: none;
            animation: none;
}
@-webkit-keyframes clock1 {
    0%{-webkit-transform:rotate(0deg);}
    100%{-webkit-transform:rotate(360deg);}
}
@keyframes clock1 {
    0%{transform:rotate(0deg);}
    100%{transform:rotate(360deg);}
}

@-webkit-keyframes clock2 {
    0%{-webkit-transform:rotate(0deg);}
    100%{-webkit-transform:rotate(360deg);}
}
@keyframes clock2 {
    0%{transform:rotate(0deg);}
    100%{transform:rotate(360deg);}
}
.loadstep {
    position: absolute; width: 70%; height: 4px; left: 15%; bottom: 40%; z-index: 1;
    overflow: hidden;
    background-color: rgba(255,255,255,0.3);
    border-radius: 2px;
}
.loadstep span {
    content: " ";
    position: absolute; width: 0%; height: 4px; left: 0; top:0; z-index: 1;
    background-color: rgba(255,255,255,0.8);
    border-radius: 2px;
}

/* active-info */
.bgmwrap{
    position: fixed; left:15px; top:15px; width:30px; height: 30px; z-index: 99;
}
.bgmwrap.show{
    opacity: 1;
    transition: opacity 1s 3s;
}
.bgmwrap .btns {font-size: 0;}
.bgmwrap a {
  width:30px; height: 30px; overflow: hidden;
  background: transparent url(icon-play.png) 0 0 no-repeat;
  background-size: 100%;
  vertical-align: top;
}
#btnMute {background-position: 0 bottom;}
.bgmwrap .active {display: inline-block;}

/* main */
.wrap {
    position: fixed; width: 100%; height: 100%; left: 0; top: 0; z-index: 10;
    overflow: hidden;
}
.wrap canvas {width: 100%;}
.oldphone {background-color: #e3edf7; }
.oldphone canvas {width: auto; height: 100%; margin: 0 auto;}

#tipsText {
    position: fixed; left: 15px; top: 15px; z-index: 100;
}

.swicher {
    position: fixed; width: 100%; height: 100%; left: 0; top: 0; z-index: 110;
    background: #a0def2;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
}
#swiper1 {width: 70%;}
#swiper1 {margin-bottom: 30px;}
#swiper1 .swiper-slide {
    border-radius: 10px;
    box-shadow: 6px 6px 10px rgba(0,0,0,0.3);
    overflow: hidden;
}
#swiper1 .swiper-slide .ming {
    border: 10px solid #d0eff9;
    box-sizing: border-box;
    width: 100%;
    vertical-align: top; opacity: 0.4;
}
#swiper1 .swiper-slide-active .ming {opacity: 1;}
#swiper1 .swiper-slide .t1,
#swiper1 .swiper-slide .t2,
#swiper1 .swiper-slide .t3 {
    position: absolute; z-index: 1;
}
#swiper1 .swiper-slide .t1,
#swiper1 .swiper-slide .t2 {
    left: 20px; font-size: 12px; color: #fff;
    font-family: "FWQY", "PingFang SC","Hiragino Sans GB","Microsoft Yahei","Arial",sans-serif;
}
#swiper1 .swiper-slide .t1 {top: 20px;}
#swiper1 .swiper-slide .t2 {top: 110px;}
#swiper1 .swiper-slide .t3 {
    top: 50px; width: 36vw; left: 20px;
}

#swiper2 {width: 70%;}
#swiper2 .swiper-slide {
    background-color: #c6ebf7;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    position: relative;
    border-radius: 10px;
}
#swiper2 .swiper-slide p {
    color:#629caf;
    font-size: 14px;
    line-height: 1.4em;
    padding: 15px;
    display: none;
}
#swiper2 .swiper-slide p.active {display: inline-block;}
#swiper2 .swiper-slide-active {background-color: #629caf;}
#swiper2 .swiper-slide-active p {color:#fff;}
#swiper2 .swiper-slide-active:before {
    position: absolute;
    content: " ";
    left: 45%;
    top: -10px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #629caf;
    display: inline-block;
}

.textpage .btn-back,
.swicher .btn-back {
    position: absolute; width: 80px; height: 40px; left: 20px; top: 20px; z-index: 5;
}
.textpage .btn-back{
    background: transparent url("../img/icon-back.png") no-repeat left top;
    background-size: 100% auto;
}
.swicher .btn-back {
    background: transparent url("../img/icon-back2.png") no-repeat left top;
    background-size: 100% auto;
}

.textpage {
    background: transparent url("../img/infopage.jpg") no-repeat left top;
    background-size: cover;
    position: fixed; width: 100%; height: 100%; left: 0; top: 0; z-index: 100;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
}
.textpage .inner {
    position: absolute; left: 0; top: 40%; z-index: 1;
    width: 200%;
    display: -webkit-flex;
	display: flex;
    transition: transform 1s;
}
.textpage .inner.t2 {
    transform: translateX(-50%);
}
.textpage .inner > div {
    width: 50%;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
}
.textpage .inner > div div {
    width: 80%;
    box-sizing: border-box;
    background-color: rgba(255,255,255,0.8);
    box-shadow: 6px 6px 10px rgba(0,0,0,0.3);
    padding: 60px 0 30px;
    border-radius: 10px;
    text-align: center;
}
.textpage .inner > div div p {
    color: #e95b1c;
    margin-top: 10px;
}
#textTo div span {
    display: block;
}
#textTo div span::before {
    content: " ";
    display: inline-block;
    width: 36px;
    height: 24px;
    background: transparent url("../img/icon-at.png") no-repeat center top;
    background-size: auto 100%;
    vertical-align: top;
}
#textFrom div span::before {
    content: " ";
    display: inline-block;
    width: 36px;
    height: 24px;
    background: transparent url("../img/icon-edit.png") no-repeat center top;
    background-size: auto 100%;
    vertical-align: top;
}
.textpage .inner > div .btn-next {
    display: block;
    text-align: center;
    margin-top: 20px;
}
.btn-next img {
    width: 120px; vertical-align: top;
}
.textpage input {
    -webkit-appearance: none;
            appearance: none;
    outline: none;
    background-color: transparent;
    border: 0 none;
    border-bottom: 2px solid #e95b1c;
    font-size: 18px;
    height: 24px;
    vertical-align: top;
}

.tips-scroll {
    width: 100px;
    margin: 10px 0;
}
.tips-scroll img {
    width: 100%; vertical-align: top;
}
.tips-scroll img {
    animation: swing 2s infinite linear;
}
@-webkit-keyframes swing{
    0% {-webkit-transform: translateX(0px);}
    50% {-webkit-transform: translateX(10px);}
    100% {-webkit-transform: translateX(0px);}
}
@keyframes swing{
    0% {transform: translateX(0px);}
    50% {transform: translateX(10px);}
    100% {transform: translateX(0px);}
}

/* popup */
.popwrap {
    background-color: #e3edf7;
    position: absolute; width: 100%; height: 100%; left: 0; top: 0; z-index: 120;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
}

.popwrap .inner {width: 100%; height: 100%;}
.popwrap .inner.bc1 {background-color: #85cc92;}
.popwrap .inner.bc2 {background-color: #f0d668;}
.popwrap .inner.bc3 {background-color: #78d6f0;}
.popwrap .inner.bc4 {background-color: #fbafc9;}
.popwrap .inner.bc5 {background-color: #efaf68;}


#theposter {
    width: 90%;
    margin-left: 5%;
}

.popwrap .btn-back {
    position: absolute; width: 70px; left: 30px; bottom: 45px; z-index: 10;
}
.tips-save {
    position: absolute; width: 100%; left: 0; bottom: 43px; z-index: 1;
    text-align: center;
    color: #fff;
    font-size: 16px;
    animation: btnZoom 1s infinite;
}
@-webkit-keyframes btnZoom{
    0% {-webkit-transform: scale(1);}
    50% {-webkit-transform: scale(1.1);}
    100% {-webkit-transform: scale(1);}
}
@keyframes btnZoom{
    0% {transform: scale(1);}
    50% {transform: scale(1.1);}
    100% {transform: scale(1);}
}

.maker {
    position: fixed; width: 100%; left: 0; bottom: 10px; z-index: 1;
    opacity: 0;
    visibility: hidden;
}
.maker p {font-size: 11px; color: #666; text-align: center;}
.maker p:nth-child(1) {margin-bottom: 6px;}
.maker p em {font-weight: bold;}

.swicher.active,
.textpage.active,
.popwrap.active,
.maker.active {
    opacity: 1;
    visibility: visible;
    -webkit-transition: opacity 0.3s 0.3s;
    transition: opacity 0.3s 0.3s;
}

.hide2 {
    opacity: 0;
    transition: opacity 0.6s;
}
#swiper1 .swiper-slide:nth-child(5) .t2{
    top:15px; left: 10px; z-index: 6;
    font-size: 16px;
}
#p0 {
    background: #f5f5f5 url(../img/poster0b.jpg) center top no-repeat;
    background-size: 100% 100%;
}
#p0 label {
    position: absolute; width: 100%; height: 100%; left: 0; top: 0; z-index: 5;
    background: transparent url(../img/poster0b.png) center top no-repeat;
    background-size: 100% 100%;
    overflow: hidden;
    display: block;
}
#p0 input {
    opacity: 0; width: 100%; height: 100%;
}
#imgCropped {
    position: absolute; width: 72%; left: 10px; bottom: 10px; z-index: 2;
    pointer-events: none;
}


.croperpage {
    position: absolute; width: 100%; height: 100%; left: 0; top: 0; z-index: 200;
    transform: translateX(-100%);
}
.croperpage.active {transform: translateX(0);}

.croptool {
    position: absolute; width: 100%; height: 100%; left: 0; top: 0; z-index: 1;
}
.croptool > img {
    max-width: 100%; /* This rule is very important, please do not ignore this! */
}

.confirm-crop {
    position: absolute;left: 0;right: 0;bottom: 0; font-size: 1.3em; z-index: 10;
    background: #232323;
    text-align: center;
}
.confirm-crop a {
    color: #fff; text-decoration: none;
}
.confirm-crop .btn-rotate {
    position: absolute; top: -2em; left:2%; color: #fff; text-decoration: none;
}
#btnConfirmcrop {
    width: 50%; display: inline-block; line-height: 80px;
}

.croppedwrap {height: 100%; display: none;}

/* alert pop */
.mpop {
    background-color: rgba(0,0,0,0.9);
    position: fixed; width: 100%; height: 100%; left: 0; top: 0; z-index: 999;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    display:flex;
    flex-direction: column;
    justify-content:center;
    align-items:center;
}
.mpop.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 1s, visibility 1s;
}
.mpop .inner {
    background-color: #fff;
    border-radius: 10px;
    box-sizing: border-box;
    padding: 20px;
}
.mpop .inner p {
    background: transparent url("../img/icon-alert.png") no-repeat left center;
    background-size: 16px auto;
    padding-left: 24px;
}

/* iPhone 6/7/8 */
@media only screen
    and (device-width: 375px)
    and (device-height: 603px)
    /* and (device-height: 667px) */
    and (-webkit-device-pixel-ratio: 2) {
        .swiper-container {width: 60%;}
        #theposter {width: 80%;margin-left: 10%;}
}
/* iPhone 6/7/8 plus */
@media only screen
    and (device-width: 414px)
    and (device-height: 672px)
    /* and (device-height: 736px) */
    and (-webkit-device-pixel-ratio: 3) {
        .swiper-container {width: 60%;}
        #theposter {width: 80%;margin-left: 10%;}
}

@media (min-width: 992px){
    .container {margin: 0 auto; width:51.8vh; text-align: center;}
    #theposter {
        width: 47vh;
        max-height: 96vh;
    }
}