@import "../../css/base.less";

@baseColor: #5f1a11;
.container {
  max-width: 540px;
  margin: 0 auto;
  font-size: 0;
}

.home-container {
  width: 100%;
  min-height: 100vh;
  background: url("../images/body_bg1.jpg") no-repeat center top;
  background-size: 100% auto;
  overflow: hidden;

  .header-avatar {
    .pr();
    width: 3.52rem;
    height: 3.52rem;
    margin: 7.77rem auto 0;
    border-radius: 100%;
    overflow: hidden;

    span {
      .pa();
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      background: url("../images/avatar_border.png") no-repeat center;
      background-size: 100% auto;
      animation: Rotate 2s linear infinite;
    }

    img {
      border-radius: 100%;
      width: 3.1rem;
      height: 3.1rem;
      display: block;
      margin: .21rem auto;
    }
  }

  .btn-start {
    display: block;
    width: 6.65rem;
    height: 2.06rem;
    margin: 1.9rem auto 0;
    background: url("../images/btn_start.png") no-repeat center;
    background-size: 100% auto;
  }
}

.postcard-container {
  min-height: 1800px;
  padding-bottom: 1rem;
  background: url("../images/body_bg2.jpg") no-repeat center top,url("../images/bg.jpg") repeat-y center;
  background-size: 100% auto;
}


.postcard-container {
  padding-top:4.75rem;
}

.role-container {
  overflow: hidden;
  margin: 0 auto;
  .pr();
  min-height: 5.5rem;
  padding: 1.5rem .9rem 0;
  .icon-red {
    .pa();
    right: .6rem;
    bottom: .4rem;
    z-index: 1;
    width: 1.25rem;
    height: 1.25rem;
    background: url("../images/icon_red.png") no-repeat center;
    background-size: 100% auto;
  }

  .role-avatar {
    width: 1.88rem;
    height: 1.92rem;
    margin: 0 auto;
    text-align: center;
    .pr();
    .img-border{
      .pa();
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
    }
    .img-header {
      width: 1.3rem;
      height: 1.3rem;
      margin-top: .28rem;
      display: inline-block;
    }
  }

  li {
    .lh(.62rem);
    .fs(.26rem, @baseColor);
    text-align: right;
    margin-top: .3rem;

    span {
      display: block;
      width: 1.8rem;
      .fr();
      .ells();
      margin-right: .45rem;
    }

    &.role1 {
      background: url("../images/role_img1.png") no-repeat center;
      background-size: auto .62rem;
    }

    &.role2 {
      background: url("../images/role_img2.png") no-repeat center;
      background-size: auto .62rem;
    }

    &.role3 {
      background: url("../images/role_img3.png") no-repeat center;
      background-size: auto .62rem;
    }

    &.role4 {
      background: url("../images/role_img4.png") no-repeat center;
      background-size: auto .62rem;
    }

    &.role5 {
      background: url("../images/role_img5.png") no-repeat center;
      background-size: auto .62rem;
    }

  }

  .left {
    .fl();
    width: 50%;

    li {
      .fs(.26rem, @baseColor)
    }
  }

  .right {
    .fr();
    width: 50%;
    padding-top: .4rem;
  }

  .bottom {
    .pa();
    left: 1.5rem;
    bottom: .7rem;
    img{
      display: inline-block;
      vertical-align: text-bottom;
    }
    .img1 {
      width: 4.89rem;
    }
    .b-num{
      display: inline-block;
      vertical-align: text-bottom;
      height:1rem;
      span{
        vertical-align: middle;
        display: inline-block;
        height: .9rem;
        width: .35rem;
        text-align: center;
        font: bold 1rem "Arial";
        color: @baseColor;
      }
    }

    span {
      .fs(1rem, @baseColor);
      font-weight: bold;
      margin: 0 .1rem;
    }

    .img2 {
      width: .77rem;
    }
  }
}

.range-container {
  height: 4.45rem;
  padding-top: 1.35rem;
  background: url("../images/content2.png") no-repeat center top;
  background-size: 100% auto;
  margin: .4rem auto 0;
  .range-num{
    width: 7.9rem;
    margin: 1.2rem auto 0;
  }
  span{
    display: inline-block;
    width: 20%;
    height: .9rem;
    text-align: center;
    font: bold 1.06rem "Arial";
    color: @baseColor;
  }
}

.arms-container {
  .pr();
  height: 5.22rem;
  background: url("../images/content3.png") no-repeat center top;
  background-size: 100% auto;
  .arms{
    .pr();
    width: 8.5rem;
    height: 5.22rem;
    overflow: hidden;
    padding-top: 1.9rem;
    padding-left:1.2rem;
    em{
      .pa();
      width: 2rem;
      text-align: center;
      .fs(.26rem,@baseColor);
      .lh(.7rem);
      font-weight: bold;
      left: 3.2rem;
      top: 1.9rem;
      &.name2{
        top: 2.9rem;
      }
      &.name3{
        top: 3.9rem;
      }
    }
    div{
      .pa();
      left: 5.6rem;
      width: 3.4rem;
      text-align: center;
      font-weight: bold;
      &#wq1{
        top: 1.9rem;
      }
      &#wq2{
        top: 2.94rem;
      }
      &#wq3{
        top: 3.94rem;
      }
      span{
        display: inline-block;
        text-align: center;
        width: .68rem;
        height: .68rem;
        line-height: .68rem;
        .fs(.45rem,@baseColor)
      }
    }
  }
  //.role-name{
  //  font-size: 0;
  //  padding-left: 2.1rem;
  //  em,div{
  //    display: inline-block;
  //  }
  //  em{
  //    width: 2rem;
  //    text-align: center;
  //    .fs(.26rem,@baseColor);
  //    .lh(.7rem);
  //    margin-bottom: .22rem;
  //  }
  //  &.role-name2{
  //    em{
  //      margin-bottom: .20rem;
  //    }
  //  }
  //  div{
  //    span{
  //      display: inline-block;
  //      text-align: center;
  //      width: .68rem;
  //      height: .68rem;
  //      line-height: .68rem;
  //      .fs(.45rem,@baseColor)
  //    }
  //    &#wq1,&#wq2{
  //      width: 1.4rem;
  //      margin-left: 1.35rem;
  //      margin-bottom: .4rem;
  //    }
  //    &#wq3{
  //      width: 3.6rem;
  //      margin-left:.35rem;
  //      span{
  //        width: .64rem;
  //        height: .64rem;
  //        line-height: .64rem;
  //      }
  //    }
  //  }
  //}
  //.wq3-num{
  //  margin: .6rem auto 0;
  //  width: 5.3rem;
  //  height:.86rem;
  //  font-size: 0;
  //  span {
  //    display: inline-block;
  //    width: 20%;
  //    height: .9rem;
  //    text-align: center;
  //    font: bold .45rem "Arial";
  //    color: @baseColor;
  //  }
  //}
}
.mr-container{
  .pr();
  margin-top: .9rem;
  background: url("../images/content4.png") no-repeat center top;
  background-size: 100% auto;
  .mr{
    height: 5.27rem;
    width: 8.6rem;
    margin:  0 auto ;
    overflow: hidden;
    span{
      margin: 3.8rem auto;
      display: block;
      width: 1.79rem;
      height: .83rem;
      &.img-SSS{
        background: url("../images/img_sss.png") no-repeat center;
        background-size: 100% auto;
      }
      &.img-SS{
        background: url("../images/img_ss.png") no-repeat center;
        background-size: 100% auto;
      }
      &.img-S{
        background: url("../images/img_s.png") no-repeat center;
        background-size: 100% auto;
      }
      &.img-A{
        background: url("../images/img_a.png") no-repeat center;
        background-size: 100% auto;
      }
      &.img-B{
        background: url("../images/img_b.png") no-repeat center;
        background-size: 100% auto;
      }
      &.img-C{
        background: url("../images/img_c.png") no-repeat center;
        background-size: 100% auto;
      }
    }
  }
}
.yzzt-container{
  margin-top: .75rem;
  height: 2.71rem;
  background: url("../images/content5.png") no-repeat center top;
  background-size: 100% auto;
  padding-top: 3.3rem;
  span{
    .fs(.7rem,#fdfdff);
    display: inline-block;
    text-align: center;
    width: 1.7rem;
    &.num1{
      margin-left: 2.36rem;
    }
    &.num2{
      margin-left: 2.83rem;
    }
  }
}
.zdsy-container{
  margin-top: .8rem;
  height: 2.71rem;
  background: url("../images/content6.png") no-repeat center top;
  background-size: 100% auto;
  padding-top: 3.3rem;
  span{
    .fs(.7rem,#feee64);
    display: inline-block;
    text-align: center;
    width: 2.8rem;
    &.num1{
      margin-left: 1.65rem;
    }
    &.num2{
      margin-left: 1.95rem;
    }
  }
}
.zgdw-container{
  margin-top: .5rem;
  height: 2.71rem;
  background: url("../images/content7.png") no-repeat center top;
  background-size: 100% auto;
  padding-top: 2.8rem;
  text-align: center;
  span{
    .fs(.58rem,#feee64);
    display: inline-block;
    width: 2.8rem;
  }
}

.ggsk-container{
  .pr();
  margin-top: .6rem;
  height: 8.78rem;
  background: url("../images/content8.png") no-repeat center top;
  background-size: 100% auto;
  text-align: center;
  text-align: center;
  span{
    .fs(.58rem,#feee64);
    display: inline-block;
    width: 2.8rem;
  }
  #file{
    .pa();
    left: 1.5rem;
    top: 2rem;
    width: 7.6rem;
    height: 4.2rem;
    background: none;
    cursor: pointer;
    opacity: 0;
    filter: alpha(opacity=0);
  }
  img{
    width: 7.4rem;
    height: 4.1rem;
    margin: 2rem 0 0 0;
  }
}
.bottom-container{
  text-align: center;
  a{
    display: inline-block;
    width: 4.13rem;
    height: 1.42rem;
    margin: 0 .45rem;
  }
  .btn-share{
    background: url("../images/btn_share.png") no-repeat center top;
    background-size: 100% auto;
  }
  .btn-save{
    background: url("../images/btn_save.png") no-repeat center top;
    background-size: 100% auto;
  }
}


.dialog{
  .pf();
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.75);
  z-index: 1;
  .content{
    .pa();
    left: 50%;
    top:50%;
    width: 100%;
    height: 6.16rem;
    .css3(transform,translate(-50%,-50%));
    background: url("../images/dialog_bg.png") no-repeat center;
    background-size: 100% auto;
    padding-bottom: 1rem;
    .close{
      .pa();
      width: 1rem;
      height: 1rem;
      right: 1.2rem;
      top: .5rem;
    }
    ul{
      width: 7rem;
      margin: 0 auto;
      text-align: right;
      padding-top: 2.8rem;
      li{
        padding:0 .4rem .18rem 0;
        select{
          height: .8rem;
          .fs(.42rem,#613937);
          background: none;
          width: 3.4rem;
          max-width: 3.4rem;
          text-align: center;
          font-weight: bold;
          option{
            .fs(.42rem,#613937);
          }
        }
      }
    }
    .btn-card-bind-role{
      display: block;
      margin: .4rem auto 0;
      width: 3rem;
      height: 1rem;
      line-height: 1rem;
      .fs(.32rem,@baseColor);
    }
  }
}
.dialog-img,.share-img{
  .pf();
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: scroll;
  background:  rgba(0,0,0,.7);
  .dialog-img-content{
    .pa();
    width: 90%;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    padding-top: 2.5rem;
    height: 13.5rem;
    background:url("../images/save_img_bg.png") no-repeat center;
    background-size: 100% auto;
    .img-scroll{
      height: 12rem;
      overflow: scroll;
      width: 85%;
      margin:0 auto;
    }
    img{
      width: 100%;
    }
  }
}
.share-img{
  img{
    width: 100%;
    display: block;
    margin: 0 auto;
  }
}
.fixed{
  .pf();
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.loading{
  .pf();
  left: 50%;
  top: 50%;
  width: 3rem;
  height: 2rem;
  margin: -1rem 0 0 -1.5rem;
  text-align: center;
}
.loading span{
  display: inline-block;
  width:.3rem;
  height: 40px;
  border-radius: 4px;
  background: lightgreen;
  -webkit-animation: load 1s ease infinite;
}
@-webkit-keyframes load{
  0%,100%{
    height: 40px;
    background: lightgreen;
  }
  50%{
    height: 70px;
    margin: -15px 0;
    background: lightblue;
  }
}
.loading span:nth-child(2){
  -webkit-animation-delay:0.2s;
}
.loading span:nth-child(3){
  -webkit-animation-delay:0.4s;
}
.loading span:nth-child(4){
  -webkit-animation-delay:0.6s;
}
.loading span:nth-child(5){
  -webkit-animation-delay:0.8s;
}

@keyframes Rotate {
  0% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(360deg);
  }
}


