@import "reset.css";
/*  */
#loading {
	display:block;
	background:#1a1a1a url(../images/loading.gif) center no-repeat;
	width:100%;
	height:100%;
	position:fixed;
	top:0;
	left:0;
	right:0;
	bottom:0;
	z-index:999999;
}
#loading p {
	width:100%;
	height:50px;
	text-align:center;
	position:absolute;
	top:50%;
	margin-top:-15px;
	left:0;
	font-family: Arial, Helvetica, sans-serif;
	font-size:1.5em;
	color:#999;
	z-index:999999999;
}
/* index */
.p-index {position:relative;height: 100%; width: 100%; min-width:320px;max-width:640px;margin:0 auto;overflow: hidden;display: none; transform-style: preserve-3d;-webkit-transform-origin: 0px 0px 0px;-webkit-perspective: 200px; -webkit-backface-visibility: hidden; }
.portrait .p-index { -webkit-transform: scale(0.4); margin-top: -44%; }
/* m- */
.m-page{position:absolute;left:0;top:0%;height:100%;width:100%;min-width:320px;max-width:640px;-webkit-transform-origin: 50px 0px 0px;display:none;}
.m-page.cur{ display:block;z-index:3;}

.m-img{width:100%;height:100%;}
/* page0 */
.m-img1 { 
	/*background: url(../images/page1.jpg) top center no-repeat;*/
	background-size: 100% 100%;
	position: relative;
}
/* homePage */
.homePage {
	width: 100%;
	height: 100%;
	background: url(../images/homePage.jpg) center center no-repeat;
	background-size: 100% 100%;
	position: relative;
	/*display: none;*/
}
.homePage p:nth-child(1) {
	width: 41%;
	height: 9.97%;
	background: url(../images/homePage_start.png) top center no-repeat;
	background-size: auto 100%;
	position: absolute;
	top: 82.38%;
	left: 29.5%;
}
/* rulePage */
.rulePage {
	width: 100%;
	height: 100%;
	background: url(../images/rulePage.jpg) center center no-repeat;
	background-size: 100% 100%;
	position: relative;
	display: none;
}
.rulePage p:nth-child(1) {
	width: 21%;
	height: 9.97%;
	background: url(../images/rulePage_go.png) top center no-repeat;
	background-size: auto 100%;
	position: absolute;
	top: 85.98%;
	left: 39.5%;
}
.logo {
	width: 28%;
	height: 17.09%;
	background: url(../images/logo_babyfs.png) top center no-repeat;
	background-size: auto 100%;
	position: absolute;
	top: 1%;
	left: 0;
	z-index: 9;
}
/* part1 */
.part1 {
	width: 100%;
	height: 100%;
	background: url(../images/part1Page.jpg) center center no-repeat;
	background-size: 100% 100%;
	position: absolute;
	top: 0;
	left: 0;
	display: none;
}
.part1 em {
	display: block;
	position: absolute;
}
.part1 em:nth-child(1) {
	width: 22%;
	height: 4.64%;
	top: 6.37%;
	left: 9.46%;
}
.part1 em:nth-child(2) {
	width: 20.8%;
	height: 4.64%;
	top: 6.37%;
	left: 50.8%;
}
.part1 em:nth-child(3) {
	width: 80.8%;
	height: 11.46%;
	top: 79.08%;
	left: 9.46%;
}
.part1 h6:nth-child(4) {
	width: 17%;
	height: 8.77%;
	background: url(../images/btn_prev.png) top left no-repeat;
	background-size: auto 100%;
	position: absolute;
	top: 65.66%;
	left: 4.4%;
}
.part1 h6:nth-child(5) {
	width: 17%;
	height: 8.77%;
	background: url(../images/btn_next.png) top right no-repeat;
	background-size: auto 100%;
	position: absolute;
	top: 65.66%;
	right: 4.4%;
}
/* part2 */
.part2 {
	width: 100%;
	height: 100%;
	background: url(../images/part2Page.jpg) center center no-repeat;
	background-size: 100% 100%;
	position: absolute;
	top: 0;
	left: 0;
	display: none;
}
.part2 em {
	display: block;
	position: absolute;
}
.part2 em:nth-child(1) {
	width: 27.2%;
	height: 4.64%;
	top: 6.37%;
	left: 9.46%;
}
.part2 em:nth-child(2) {
	width: 26%;
	height: 4.64%;
	top: 6.37%;
	left: 50.8%;
}
.part2 em:nth-child(3) {
	width: 80.8%;
	height: 11.46%;
	top: 79.08%;
	left: 9.46%;
}
.part2 h6:nth-child(4) {
	width: 17%;
	height: 8.77%;
	background: url(../images/btn_prev.png) top left no-repeat;
	background-size: auto 100%;
	position: absolute;
	top: 65.66%;
	left: 4.4%;
}
.part2 h6:nth-child(5) {
	width: 17%;
	height: 8.77%;
	background: url(../images/btn_next.png) top right no-repeat;
	background-size: auto 100%;
	position: absolute;
	top: 65.66%;
	right: 4.4%;
}
/* part3 */
.part3 {
	width: 100%;
	height: 100%;
	background: url(../images/part3Page.jpg) center center no-repeat;
	background-size: 100% 100%;
	position: absolute;
	top: 0;
	left: 0;
	display: none;
}
.part3 em {
	display: block;
	position: absolute;
}
.part3 em:nth-child(1) {
	width: 20.66%;
	height: 4.64%;
	top: 6.37%;
	left: 9.46%;
}
.part3 em:nth-child(2) {
	width: 33.6%;
	height: 4.64%;
	top: 6.37%;
	left: 50.8%;
}
.part3 em:nth-child(3) {
	width: 80.8%;
	height: 11.46%;
	top: 79.08%;
	left: 9.46%;
}
.part3 h6:nth-child(4) {
	width: 17%;
	height: 8.77%;
	background: url(../images/btn_prev.png) top left no-repeat;
	background-size: auto 100%;
	position: absolute;
	top: 65.66%;
	left: 4.4%;
}
.part3 h6:nth-child(5) {
	width: 17%;
	height: 8.77%;
	background: url(../images/btn_next.png) top right no-repeat;
	background-size: auto 100%;
	position: absolute;
	top: 65.66%;
	right: 4.4%;
}
/* part4 */
.part4 {
	width: 100%;
	height: 100%;
	background: url(../images/part4Page.jpg) center center no-repeat;
	background-size: 100% 100%;
	position: absolute;
	top: 0;
	left: 0;
	display: none;
}
.part4 em {
	display: block;
	position: absolute;
}
.part4 em:nth-child(1) {
	width: 25.6%;
	height: 4.64%;
	top: 6.37%;
	left: 9.46%;
}
.part4 em:nth-child(2) {
	width: 22.93%;
	height: 4.64%;
	top: 6.37%;
	left: 50.8%;
}
.part4 em:nth-child(3) {
	width: 80.8%;
	height: 11.46%;
	top: 79.08%;
	left: 9.46%;
}
.part4 h6:nth-child(4) {
	width: 17%;
	height: 8.77%;
	background: url(../images/btn_prev.png) top left no-repeat;
	background-size: auto 100%;
	position: absolute;
	top: 65.66%;
	left: 4.4%;
}
.part4 h6:nth-child(5) {
	width: 17%;
	height: 8.77%;
	background: url(../images/btn_next.png) top right no-repeat;
	background-size: auto 100%;
	position: absolute;
	top: 65.66%;
	right: 4.4%;
}
/* part5 */
.part5 {
	width: 100%;
	height: 100%;
	background: url(../images/part5Page.jpg) center center no-repeat;
	background-size: 100% 100%;
	position: absolute;
	top: 0;
	left: 0;
	display: none;
}
.part5 em {
	display: block;
	position: absolute;
}
.part5 em:nth-child(1) {
	width: 22.13%;
	height: 4.64%;
	top: 6.37%;
	left: 9.46%;
}
.part5 em:nth-child(2) {
	width: 26.13%;
	height: 4.64%;
	top: 6.37%;
	left: 50.8%;
}
.part5 em:nth-child(3) {
	width: 80.8%;
	height: 11.46%;
	top: 79.08%;
	left: 9.46%;
}
.part5 h6:nth-child(4) {
	width: 17%;
	height: 8.77%;
	background: url(../images/btn_prev.png) top left no-repeat;
	background-size: auto 100%;
	position: absolute;
	top: 65.66%;
	left: 4.4%;
}
.part5 h6:nth-child(5) {
	width: 17%;
	height: 8.77%;
	background: url(../images/btn_next.png) top right no-repeat;
	background-size: auto 100%;
	position: absolute;
	top: 65.66%;
	right: 4.4%;
}
/* sharePage */
.sharePage {
	width: 100%;
	height: 100%;
	background: url(../images/share_bg.jpg) top center no-repeat;
	background-size: 100% 100%;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	display: none;
}
.sharePage em {
	display: block;
	position: absolute;
}
.sharePage em:nth-child(1) {
	width: 56%;
	height: 24.21%;
	background: url(../images/share_img1.png) top right no-repeat;
	background-size: auto 100%;
	position: absolute;
	top: 17.46%;
	left: 22%;
	z-index: 3;
}
.sharePage p:nth-child(2) {
	width: 53%;
	height: 28.93%;
	position: absolute;
	top: 39.5%;
	left: 30%;
	z-index: 2;
}
.sharePage p:nth-child(2) img {
	width: auto;
	height: 100%;
}
.sharePage em:nth-child(3) {
	width: 80%;
	height: 11.31%;
	background: url(../images/share_img2.png) top right no-repeat;
	background-size: auto 100%;
	position: absolute;
	top: 67%;
	left: 10%;
	z-index: 3;
}
.sharePage p:nth-child(4) {
	width: 36%;
	height: 11.84%;
	background: url(../images/btn_share.png) top right no-repeat;
	background-size: auto 100%;
	position: absolute;
	top: 2%;
	right: 1%;
	-webkit-animation:fadeInUp01 1.6s ease infinite;
}
.sharePage em:nth-child(5) {
	width: 11%;
	height: 5.24%;
	background: url(../images/close.png) top left no-repeat;
	background-size: auto 100%;
	position: absolute;
	top: 1.5%;
	left: 2.5%;
}
@-webkit-keyframes fadeInUp01{
0%{
-webkit-transform:translateY(-10px)}
50%{
-webkit-transform:translateY(0px)}
100%{
-webkit-transform:translateY(-10px)}
}
.sharePage-animate {
	-webkit-animation:shareSizeChange 1s .2s ease both;
}
@-webkit-keyframes shareSizeChange {
	0%{opacity:1;-webkit-transform:scale(1) translate(0)}
	100%{opacity:0;-webkit-transform:scale(0.3) translate(-500px,-1200px)}
}
/* end */
.end {
	width: 100%;
	height: 100%;
	background: url(../images/endPage.jpg) top center no-repeat;
	background-size: 100% 100%;
	position: absolute;
	top: 0;
	left: 0;
	display: none;
	/*z-index: 2;*/
}
.end em, .end span {
	display: block;
	position: absolute;
}
.end em:nth-child(1) {
	width: 67%;
	height: 49.55%;
	background: url(../images/end_img1.png) top center no-repeat;
	background-size: auto 100%;
	top: 26.68%;
	left: 16.5%;
}
.end span:nth-child(2) {
	width: 45%;
	height: 29.83%;
	background: url(../images/cherry.png) top center no-repeat;
	background-size: auto 100%;
	top: 23.16%;
	left: 27.5%;
}
.end span:nth-child(3) {
	width: 14%;
	height: 5.77%;
	background: url(../images/cherrySmile.png) top left no-repeat;
	background-size: auto 100%;
	top: 44.07%;
	left: 32.4%;
	-webkit-animation:movement 2s .2s linear infinite alternate;
}
.end span:nth-child(4) {
	width: 14%;
	height: 5.77%;
	background: url(../images/cherrySmile.png) top left no-repeat;
	background-size: auto 100%;
	top: 44.07%;
	left: 55.2%;
	-webkit-transform:rotate(-40deg);
	-webkit-animation:movement 2s linear infinite alternate;
}
.end em:nth-child(5) {
	width: 85%;
	height: 15.89%;
	background: url(../images/end_img2.png) top center no-repeat;
	background-size: auto 100%;
	top: 51.04%;
	left: 7.5%;
}
.end span:nth-child(6) {
	width: 17%;
	height: 8.47%;
	background: url(../images/star.png) top left no-repeat;
	background-size: auto 100%;
	top: 51%;
	left: 26%;
	-webkit-transform:rotate(-10deg);
	-webkit-animation:star1Animate 1s .2s ease-out both;
}
.end span:nth-child(7) {
	width: 17%;
	height: 8.47%;
	background: url(../images/star.png) top left no-repeat;
	background-size: auto 100%;
	top: 49.02%;
	left: 43.2%;
	-webkit-animation:star2Animate 1s .6s ease-out both;
}
.end span:nth-child(8) {
	width: 17%;
	height: 8.47%;
	background: url(../images/star.png) top left no-repeat;
	background-size: auto 100%;
	top: 51.49%;
	left: 59.06%;
	-webkit-transform:rotate(15deg);
	-webkit-animation:star3Animate 1s 1.2s ease-out both;
}
.end em:nth-child(9) {
	width: 20%;
	height: 10.41%;
	background: url(../images/btn_onceMore.png) top center no-repeat;
	background-size: auto 100%;
	top:80.95%;
	left: 40%;
	-webkit-animation:rotate360 3s linear infinite;
}
@-webkit-keyframes rotate360{
0%{-webkit-transform:rotate(0deg)}
100%{-webkit-transform:rotate(360deg)}
}
.end em:nth-child(10) {
	width: 25%;
	height: 13.56%;
	background: url(../images/btn_showShare.png) top left no-repeat;
	background-size: auto 100%;
	top: 5.09%;
	left: 4.6%;
	z-index: 99999;
	-webkit-animation:pulse 1.6s ease infinite;
}
@-webkit-keyframes pulse{
0%{-webkit-transform:scale(1)}
50%{-webkit-transform:scale(1.1)}
100%{-webkit-transform:scale(1)}
}
@-webkit-keyframes movement {
	0%{-webkit-transform: translateX(0)}
	30%{-webkit-transform: translateX(3px)}
	60%{-webkit-transform: translateX(0px)}
	100%{-webkit-transform: translateX(-3px)}
}
@-webkit-keyframes star1Animate {
	0%{-webkit-transform: translate(-300px,500px)}
	100%{-webkit-transform: translate(0)}
}
@-webkit-keyframes star2Animate {
	0%{-webkit-transform: translate(300px,500px)}
	100%{-webkit-transform: translate(0)}
}
@-webkit-keyframes star3Animate {
	0%{-webkit-transform: translate(500px,500px)}
	100%{-webkit-transform: translate(0)}
}
