.root {
  width: 100vw;
  min-height: 22.07rem;
  background: url("../images/bg.jpg");
  background-size: cover;
  position: relative;
  overflow: hidden;
}

/* 签到按钮 */
.root .sign-icon {
  width: 2.9rem;
  height: 3.11rem;
  position: absolute;
  top: 1.22rem;
  right: 1.46rem;
}

.root .sign-icon img {
  width: 100%;
  height: 100%;
}
.sign-icon .active {
  display: none;
}

/* 关卡一 */
.root .level_1 {
  width: 5.97rem;
  height: 3.28rem;
  position: absolute;
  top: 4.62rem;
  left: 0;
}

.root .level_1 .active {
  display: none;
}

/* 关卡 */
.root .level_2 {
  width: 4.3rem;
  height: 4.72rem;
  position: absolute;
  top: 8.48rem;
  right: 0;
}

.root .level_2 .active {
  display: none;
}

/* 关卡三 */
.root .level_3 {
  width: 6.05rem;
  height: 3.85rem;
  position: absolute;
  top: 13.46rem;
  left: 0;
}

.root .level_3 .active {
  display: none;
}

/* 关卡四 */
.root .level_4 {
  width: 7.04rem;
  height: 4.3rem;
  position: absolute;
  bottom: 0;
  right: 0;
}

.root .level_4 .active {
  display: none;
}

/* 核销按钮 */
.root .write-off {
  position: absolute;
  top: 5rem;
  right: 0.48rem;
  width: 4rem;
  height: 2rem;
  display: none;
}
.root .write-off .content {
  width: 2.67rem;
  height: 0.52rem;
  background: url("../images/button.png");
  background-size: 100% 100%;
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
}

.level_1 img,
.level_2 img,
.level_3 img,
.level_4 img {
  width: 100%;
  height: 100%;
}

/* 签到弹窗 */
.root .formPopup {
  width: 6.4rem;
  height: 8.57rem;
  border-radius: 0.35rem;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
  padding: 0.97rem 0.73rem;
  display: none;
}

.root .formPopup .popupBg {
  width: 100%;
  height: 100%;
  background-color: #fdfdfd;
  opacity: 0.85;
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
}

.root .formPopup .closeBtn {
  position: absolute;
  top: 0.18rem;
  right: 0.18rem;
  width: 0.42rem;
  height: 0.42rem;
  background: url("../images/close-icon.png");
  background-size: 100% 100%;
}

.root .formPopup .inputBox {
  width: 4.8rem;
  height: 0.76rem;
  background-color: #fdfdfd;
  box-shadow: 0.03rem 0.04rem 0.02rem 0rem rgba(24, 27, 29, 0.42);
  border-radius: 0.28rem;
  margin: 0 auto 0.3rem;
  z-index: 1;
  position: relative;
}

.root .formPopup .submitBtn {
  width: 4.8rem;
  height: 0.76rem;
  background-color: #fdfdfd;
  box-shadow: 0.03rem 0.04rem 0.02rem 0rem rgba(24, 27, 29, 0.42);
  border-radius: 0.28rem;
  position: absolute;
  left: 50%;
  bottom: 0.79rem;
  transform: translateX(-50%);
  font-size: 0.31rem;
  color: #35750c;
  line-height: 0.76rem;
  text-align: center;
}

.root .formPopup .inputBox .icon {
  width: 0.36rem;
  height: 0.4rem;
  background-size: 100% 100% !important;
  position: absolute;
  top: 50%;
  left: 0.34rem;
  transform: translateY(-50%);
}

.root .formPopup .input1 .icon {
  background: url("../images/company-icon.png");
}

.root .formPopup .input2 .icon {
  background: url("../images/position-icon.png");
}

.root .formPopup .input3 .icon {
  background: url("../images/name-icon.png");
}

.root .formPopup .input4 .icon {
  background: url("../images/phone-icon.png");
}

.root .formPopup .inputBox input {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  width: 3.5rem;
  background: none;
  border: none;
}

.root .formPopup .inputBox input:focus {
  outline: none;
}

/* 关卡弹窗 */
.root .levelPopup {
  width: 6.4rem;
  height: 9.6rem;
  border-radius: 0.35rem;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
  padding: 0.97rem 0;
  display: none;
}
.levelPopup .content {
  display: none;
}

.levelPopup .content .code {
  width: 3.88rem;
  height: 3.88rem;
  background: #ccc;
  border-radius: 0.24rem;
  border: 0.2rem solid #fff;
  box-sizing: border-box;
  margin: auto;
  display: none;
}
.levelPopup .content .active {
  display: none;
}

.root .levelPopup .popupBg {
  width: 100%;
  height: 100%;
  background-color: #fdfdfd;
  opacity: 0.85;
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
}

.root .levelPopup .closeBtn {
  position: absolute;
  top: 0.18rem;
  right: 0.18rem;
  width: 0.42rem;
  height: 0.42rem;
  background: url("../images/close-icon.png");
  background-size: 100% 100%;
}

.root .levelPopup .chapter {
  width: 3.88rem;
  height: 3.88rem;
  margin: 0 auto;
}

.root .levelPopup .chapter img {
  width: 100%;
  height: 100%;
}

.root .levelPopup .content p {
  font-size: 0.42rem;
  color: #60605f;
  text-align: center;
  margin: 0.2rem 0;
}

.level1 .productImg {
  width: 3.04rem;
  height: 2.97rem;
  margin: 0 auto;
}

.level2 .productImg {
  width: 4.23rem;
  height: 4.09rem;
  margin: 0 auto;
}

.level3 .productImg {
  width: 4.51rem;
  height: 2.56rem;
  margin: 0 auto;
}

.level4 .productImg {
  width: 5.93rem;
  height: 3.28rem;
  margin: 0 auto;
}

.level1 .productImg > img,
.level2 .productImg > img,
.level3 .productImg > img,
.level4 .productImg > img {
  width: 100%;
  height: 100%;
}

.root .writeOffPopup {
  width: 6.4rem;
  height: 8.57rem;
  border-radius: 0.35rem;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
  padding: 0.97rem 0.73rem;
  display: none;
}

.root .writeOffPopup .popupBg {
  width: 100%;
  height: 100%;
  background-color: #fdfdfd;
  opacity: 0.85;
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
}

.root .writeOffPopup .closeBtn {
  position: absolute;
  top: 0.18rem;
  right: 0.18rem;
  width: 0.42rem;
  height: 0.42rem;
  background: url("../images/close-icon.png");
  background-size: 100% 100%;
}

.writeOffPopup .QRCode {
  width: 4.24rem;
  height: 4.23rem;
  background-color: #b3b3b3;
  border-radius: 0.24rem;
  border: 0.2rem solid #fff;
  margin: 0 auto;
}

.writeOffPopup .img {
  width: 4.5rem;
  height: 2.2rem;
  background: url("../images/codeTip.png");
  background-size: 100% 100%;
  margin-top: 0.2rem;
}

/* 滑动指示箭头 */
.arrow {
  width: 0.6rem;
  height: 0.6rem;
  background: url("../images/arrow.png");
  background-size: cover;
  position: fixed;
  bottom: 0.4rem;
  left: 50%;
  transform: translate(-50%, 0);
  animation: arrow 1.6s infinite linear;
  -webkit-animation: arrow 1.6s infinite linear;
  /* Safari 与 Chrome */
}

@keyframes arrow {
  0% {
    bottom: 0.4rem;
    opacity: 0;
  }

  10% {
    bottom: 0.5rem;
    opacity: 1;
  }

  100% {
    bottom: 0.8rem;
    opacity: 0;
  }
}

@-webkit-keyframes arrow

/* Safari 与 Chrome */ {
  0% {
    bottom: 0.4rem;
    opacity: 0;
  }

  10% {
    bottom: 0.5rem;
    opacity: 1;
  }

  100% {
    bottom: 0.8rem;
    opacity: 0;
  }
}
