@import './var';

.l-root-h5 {
  height: 100%;
  width: 100%;
  min-height: 100px;
  padding-bottom: 100px;
  box-sizing: border-box;
}

// 只有ide中才有root-app
div[root-app] .l-root-h5 {
  height: auto;
  min-height: 100%;
  padding-bottom: 0;

  &>.van-divider:first-child {
    margin-top: 0;
  }
}

div[router-view-symbol] .l-root-h5 {
  padding-bottom: 100px;
}

.h5template-login-wrap {
  height: 100vh;
  padding: 4.26667vw;
  background-color: #fff;

  .login-title {
    font-family: PingFang SC;
    font-style: normal;
    font-weight: 500;
    font-size: 7.46667vw;
    line-height: 10.4vw;
    color: #333;
    margin-bottom: 14.93333vw;
  }

  .login-form {
    .cus-login-button {
      width: 100%;
      margin-left: 0;
    }
  }

  .login-cell {
    padding: 0;
    line-height: 12.8vw;
    background: #f6f6f6;
    border-radius: 1.06667vw;
    margin-bottom: 4.26667vw;
  }

  .login-cell .van-field__left-icon {
    margin-right: 3.2vw;
    margin-left: 3.2vw;
    display: flex;
    align-items: center;
  }

  .login-cell .van-field__right-icon {
    margin-right: 4.26667vw;
    margin-left: 0;
    display: flex;
    align-items: center;
    padding: 0;

    img {
      display: block;
      width: 6.4vw;
      height: 6.4vw;
    }
  }

  .login-cell .van-field__control {
    color: #aaa;
  }

  .account-left-icon {
    width: 6.4vw;
    height: 6.4vw;
  }

  .cus-login-button {
    background: #4c88ff;
    font-family: PingFang SC;
    font-style: normal;
    font-weight: 500;
    font-size: 4.8vw;
    letter-spacing: 4.8vw;
    text-indent: 4.8vw;
    line-height: 12.8vw;
    color: #fff;
    border-radius: 1.06667vw;
  }

  .van-cell__title {
    display: none;
  }

  .van-cellson__title {
    display: none;
  }
}

.h5template-navi {
  height: 100%;

  .navi-head {
    padding-left: 4.26667vw;
    padding-right: 4.26667vw;
    height: 11.73333vw;

    .nvai-top-image {
      font-size: 24px;
      width: 6.4vw;
      display: block;
    }
  }

  .navi-item-icon {
    display: block;
    width: 6.4vw;
    margin-right: 4.26667vw;
  }

  .diy-content {
    height: 100vh;
    width: 86.13333vw;
    overflow: auto;
    padding-top: 11.73333vw;
  }
}

.h5template-user {
  width: 100vw;
  height: 100vh;
  background-color: #f6f6f6;

  .user-head-wrap {
    height: 42.66667vw;
    background-color: #fff;
    padding-left: 6.4vw;

    .user-avatar {
      width: 17.06667vw;
      height: 17.06667vw;
      margin-right: 4.26667vw;
    }

    .user-name {
      font-family: PingFang SC;
      font-style: normal;
      font-weight: 500;
      font-size: 5.33333vw;
      line-height: 5.33333vw;
      color: #333;
    }
  }

  .user-middle {
    .van-cell {
      padding-right: 4.26667vw;
    }
  }

  .navi-item-icon {
    display: block;
    width: 6.4vw;
    margin-right: 4.26667vw;
  }

  .user-logout {
    line-height: 14.93333vw;
    background: #fff;
    text-align: center;
    font-family: PingFang SC;
    font-style: normal;
    font-weight: normal;
    font-size: 4.26667vw;
    color: #f55a4c;

    span {
      display: flex;
      flex: 1;
      height: 100%;
      justify-content: center;
      align-items: center;
    }
  }
}

.h5template-404 {
  height: 100vh;
  background-color: #fff;
  overflow: hidden;

  .m404-image-wrap {
    margin-top: 37.33333vw;

    .m404-image {
      display: block;
      width: 160px;

      /* px-to-viewport-ignore */
      margin-left: auto;
      margin-right: auto;
    }

    .m404-image-text {
      margin-top: 16px;

      /* px-to-viewport-ignore */
      text-align: center;
      font-family: PingFang SC;
      font-style: normal;
      font-weight: normal;
      font-size: 14px;

      /* px-to-viewport-ignore */
      color: #999;
    }
  }
}

.h5template-401 {
  overflow: hidden;
  height: 100vh;
  background-color: #fff;

  .m401-image-wrap {
    margin-top: 37.33333vw;

    .m401-image {
      display: block;
      width: 160px;

      /* px-to-viewport-ignore */
      margin-left: auto;
      margin-right: auto;
    }

    .m401-image-text {
      margin-top: 16px;

      /* px-to-viewport-ignore */
      text-align: center;
      font-family: PingFang SC;
      font-style: normal;
      font-weight: normal;
      font-size: 14px;

      /* px-to-viewport-ignore */
      color: #999;
    }

    .m401-image-btn {
      // display: block;
      width: 96px;

      /* px-to-viewport-ignore */
      height: 32px;

      /* px-to-viewport-ignore */
      line-height: 32px;
      background: #337eff;
      border-radius: 4px;

      /* px-to-viewport-ignore */
      font-family: PingFang SC;
      font-style: normal;
      font-weight: normal;
      font-size: 14px;

      /* px-to-viewport-ignore */
      color: #fff;
      text-align: center;
      margin-left: auto;
      margin-right: auto;
      margin-top: 40px;

      /* px-to-viewport-ignore */
    }
  }
}
