/* subject */
.subject-list {
  position: relative;
  z-index: 9;
  overflow: hidden;
  margin: 0 auto;
  width: 760px;
  padding: 30px;
  border-radius: 3px;
}
.subject-list ul {
  font-size: 0;
  text-align: center;
}
.subject-list li {
  width: 200px;
  height: 200px;
  font-size: 32px;
  line-height: 200px;
  margin: 0 15px;
  display: inline-block;
  vertical-align: top;
  cursor: pointer;
  color: hsl(0, 0%, 22%);
  background-color: rgba(255, 255, 255, 0.7);
}
.subject-list li:hover {
  background-color: rgba(255, 255, 255, 1);
}

/* camera */
.camera {
  padding: 0 137px;
  text-align: center;
}
.camera-form {
  padding: 80px 135px 103px;
  border-radius: 10px;
  background: @backgroundGray;
}
.camera-form .ivu-input {
  text-align: center;
  padding: 20px;
  height: 60px;
  border-radius: 30px;
}
.camera-write {
  width: 100px;
  margin: 0 auto;
  color: #5a99e6;
  cursor: pointer;
}
.camera-write:hover {
  color: @subColor;
}
.camera-btn {
  width: 220px;
  margin: 80px auto 0;
}

/* setting-steps */
.scan-area-steps {
  .step-ctrl {
    text-align: center;

    > button {
      width: 100px;
    }
  }
}
/* code-area */
.code-area {
  padding: 0 40px;
}
.code-area-main {
  background: @backgroundGray;
  position: relative;
  margin-bottom: 60px;
  min-height: 400px;
}
.code-area-cont {
  position: relative;
  width: 600px;
}
.code-area-cont-disabled::before {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 99;
}
.code-area-cont-disabled .cropper-container > .cropper-modal,
.code-area-cont-disabled .cropper-container > .cropper-crop-box {
  display: none;
}
.code-area-cont img {
  display: block;
  width: 100%;
}
.code-area-preview {
  position: absolute;
  width: 300px;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}
.code-area-spin {
  height: 300px;
  position: relative;
}
.code-area-spin-img {
  position: absolute;
  width: 300px;
  height: 200px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  overflow: hidden;
}
.code-area-icon {
  width: 60px;
  height: 60px;
  border: 1px solid @borderGray;
  padding: 18px;
  border-radius: 50%;
  cursor: pointer;
  margin: 20px auto 0;
}
.code-area-icon:hover {
  border-color: @boldBorderGray;
  background: #fff;
}
.code-area-btn {
  width: 300px;
  margin: 0 auto;
}
/* tailor-area */
.tailor-area .code-area-cont {
  width: 100%;
  height: 400px;
  overflow: hidden;
}
/* image-orientation */
.image-orientation {
  padding: 0 40px;
}
.image-orient-main {
  background: @backgroundGray;
  position: relative;
  margin-bottom: 60px;
  height: 600px;
  border-radius: 10px;
}
.image-orient-cont {
  width: 670px;
  height: 100%;
  margin: 0 auto;
  position: relative;
}
.image-orient-cont img {
  display: block;
  max-width: 600px;
  max-height: 600px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.image-orient-icon {
  position: absolute;
  width: 60px;
  height: 60px;
  top: 50%;
  margin-top: -30px;
  padding: 18px;
  border: 1px solid @borderGray;
  cursor: pointer;
  border-radius: 50%;
}
.image-orient-icon:first-child {
  left: 72px;
}
.image-orient-icon:last-child {
  right: 72px;
}
.image-orient-icon:hover {
  border-color: @boldBorderGray;
  background: #fff;
}
.image-orient-btn {
  width: 300px;
  margin: 0 auto;
}
/* waiting */
.waiting {
  padding: 50px 20px;
  text-align: center;
  font-size: 24px;

  > i {
    font-size: 40px;
  }
}

/* check-info */
.check-info {
  .check-form {
    padding: 50px 0;
    width: 300px;
    margin: 0 auto;
  }
  .check-action {
    margin-top: 30px;
    text-align: center;
  }
}

/* task */
.task {
  padding: 0 137px;
}
.task-main {
  height: 474px;
  padding: 10px;
  border-radius: 10px;
  background: @backgroundGray;
}
.task-main li {
  position: relative;
  margin: 30px 0;
  font-size: 24px;
  height: 32px;
}
.task-main li span {
  position: absolute;
  line-height: 32px;
  left: 50%;
}
.task-main li span:first-child {
  margin-left: -60px;
  color: @midDark;
}
.task-main li span:last-child {
  margin-left: 10px;
  color: @dark;
}
.task-btn {
  width: 300px;
  margin: 60px auto 0;
}
/* task-infos */
.task-infos {
  color: @fontMain;
  font-size: 0;
  li {
    display: inline-block;
    vertical-align: top;
    width: 50%;
    margin-bottom: 10px;
    font-size: 16px;
    &:first-child {
      width: 100%;
      padding: 0 !important;
    }
    &:nth-of-type(odd) {
      padding-left: 10px;
    }
    &:nth-of-type(even) {
      padding-right: 10px;
    }
    > p {
      background: @backgroundGray;
      height: 48px;
      padding: 10px 25px;
      line-height: 28px;
      border-radius: 25px;
    }
    span {
      margin-right: 20px;
    }
    span:first-child {
      color: @midDark;
    }
  }
}

/* scan */
.scan {
  &-task {
    position: fixed;
    top: 64px;
    width: 240px;
    bottom: 0;
    left: 0;
    z-index: 99;
    padding: 15px;
    font-size: 16px;
    overflow-y: auto;
    overflow-x: hidden;

    .task-item {
      line-height: 30px;
      color: @gray;

      &.task-over {
        color: @success-color;
      }

      > span:first-child {
        margin-right: 10px;
      }
    }
    &-action {
      margin-top: 15px;

      > button {
        margin: 0 5px;
      }
    }
  }

  &-history {
    position: fixed;
    top: 64px;
    width: 240px;
    bottom: 0;
    right: 0;
    z-index: 99;
    padding: 15px;
    overflow-y: auto;
    overflow-x: hidden;
    .history-item {
      margin-bottom: 10px;

      &-title {
        margin-bottom: 10px;
        text-align: center;
        > span {
          margin: 0 5px;
          font-size: 16px;
        }
      }
      &-body img {
        display: block;
        width: 100%;
        height: auto;
      }
    }
  }

  &-image {
    margin: 0 240px;
    padding: 20px 0;
  }

  &-main {
    height: 500px;
    background: @backgroundGray;
    margin-bottom: 30px;
    position: relative;
  }

  /* scan-wariting */
  &-waiting {
    padding-top: 140px;
    border: 2px dashed rgb(221, 222, 224);
    &-icon {
      width: 240px;
      height: 187px;
      background-image: url(../images/bg-camera.png);
      background-repeat: no-repeat;
      background-size: 100% 100%;
      box-shadow: 0px 15px 25px 0px rgba(81, 175, 235, 0.3);
      margin: 0 auto 32px;
    }
    &-tips {
      font-size: 20px;
      font-weight: 500;
      color: rgba(90, 153, 230, 1);
      line-height: 28px;
      text-align: center;
    }
  }

  /* scan-picture */
  &-picture {
    box-shadow: 0px 20px 30px 0px rgba(0, 0, 0, 0.1);
    img {
      display: block;
      position: absolute;
      max-width: 100%;
      max-height: 100%;
      left: 50%;
      top: 50%;
      transform: translate(-50%, -50%);
    }
  }
  // scan-progress
  &-progress {
    position: absolute;
    width: 300px;
    height: 22px;
    line-height: 22px;
    top: 34px;
    right: 40px;
    color: #fff;
    font-size: 16px;
    > span {
      display: inline-block;
      vertical-align: middle;
    }
  }
}

/* scan-input */
.scan-input .ivu-modal-header {
  display: none;
}
.scan-input .ivu-modal-footer {
  padding: 0;
}
.scan-input .ivu-modal-body {
  padding-bottom: 30px;
}
.scan-input-title {
  color: @pink;
  padding: 0 0 30px;
  font-size: 24px;
  text-align: center;
  position: relative;
  margin-bottom: 10px;
}
.scan-input-reset {
  position: absolute;
  bottom: 0;
  right: 0;
}
.scan-input-main {
  background: @backgroundGray;
  position: relative;
  margin-bottom: 20px;
  min-height: 280px;
}
.scan-input-cont {
  position: relative;
  width: 420px;
  min-height: 280px;
}
.scan-input-cont img {
  display: block;
  width: 100%;
}

.scan-input-preview {
  width: 240px;
}
.scan-input-spin {
  height: 240px;
}
.scan-input-spin-img {
  width: 240px;
  height: 180px;
}
.scan-input-form {
  padding: 20px 20px 0;
  text-align: center;
}
.scan-input-footer {
  height: 88px;
  padding: 19px;
  background: rgba(230, 234, 242, 1);
  text-align: center;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}
.scan-input-btn {
  display: inline-block;
  vertical-align: middle;
  width: 240px;
}
.scan-input-btn:first-child {
  margin-right: 20px;
}

/* hand-input */
.hand-input .ivu-modal-header {
  background: rgba(71, 195, 233, 1);
}
.hand-input-body {
  width: 944px;
  margin: 0 auto;
}
.hand-input-main {
  background: @backgroundGray;
  position: relative;
  margin-bottom: 20px;
  min-height: 280px;
}
.hand-input-cont {
  width: 600px;
  min-height: 400px;
}
.hand-input-cont img {
  display: block;
  width: 100%;
}
.hand-input-spin {
  position: absolute;
  width: 300px;
  height: 200px;
  background: #fff;
  top: 50%;
  right: 20px;
  margin-top: -100px;
  overflow: hidden;
}
.hand-input-form {
  padding: 20px 20px 0;
  text-align: center;
  background: @backgroundGray;
}

/* progress-bar */
.progress-bar {
  position: relative;
  height: 12px;
  width: 200px;
}
.progress-line {
  display: block;
  height: 100%;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}
.progress-rate {
  display: inline-block;
  vertical-align: top;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 132, 1) 0%,
    rgba(255, 209, 69, 1) 100%
  );
}
.progress-num {
  position: absolute;
  bottom: -22px;
  right: 0;
  color: #fff;
  font-size: 14px;
}
.progress-num i:first-child {
  font-size: 16px;
  color: rgba(255, 252, 111, 1);
}

/* scan-footer */
.scan-footer {
  position: relative;
  height: 60px;
}
.scan-footer-nums {
  position: absolute;
  height: 20px;
  top: 20px;
  left: 0;
  line-height: 20px;
  color: @midDark;
}
.scan-footer-nums span {
  margin-right: 5px;
}
.scan-footer-nums span i:last-child {
  color: @dark;
  margin-left: 5px;
}
.scan-fonter-task-btn {
  position: absolute;
  left: 50%;
  top: 0;
  height: 60px;
  width: 200px;
  margin-left: -100px;
  box-shadow: 0px 10px 10px 0px rgba(237, 81, 90, 0.3);
  border-radius: 30px;
}
.scan-fonter-task-btn .ivu-btn-large {
  padding: 0 15px;
}
.scan-footer-btn {
  position: absolute;
  top: 10px;
  right: 0;
}
.scan-footer-btn .ivu-btn {
  background: rgba(92, 158, 238, 0.2);
  color: rgba(90, 153, 230, 1);
}

/* input-append */
.input-append {
  position: relative;
}
.input-append .ivu-input {
  padding-right: 40px;
}

.input-append-icon {
  height: 100%;
  width: 40px;
  position: absolute;
  top: 0;
  right: 0;
  z-index: auto;
  font-size: 20px;
  cursor: pointer;
}
.input-append-icon > i {
  position: absolute;
  display: block;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* layout-container confirm */
.layout-container {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
}
.layout-content {
  position: absolute;
  width: 360px;
  left: 50%;
  top: 50%;
  margin-top: -200px;
  margin-left: -180px;
  overflow: hidden;
  text-align: center;
  border-radius: 10px;
  background: rgba(245, 247, 251, 1);
  box-shadow: 0px 20px 30px 0px rgba(0, 0, 0, 0.1);
}
/* .layout-main {
  border-radius: 10px;
} */
.layout-message {
  padding: 60px 40px;
  font-size: 18px;
  color: rgba(119, 125, 138, 1);
  line-height: 30px;
  min-height: 170px;
}
.layout-message > span:first-child {
  margin-right: 10px;
  vertical-align: middle;
}
.layout-title {
  height: 40px;
  line-height: 40px;
  overflow: hidden;
  border-bottom: 1px solid #e0e0e0;
}
.layout-btns {
  height: 44px;
  font-size: 16px;
}
.layout-btns span {
  display: block;
  float: left;
  width: 50%;
  line-height: 44px;
  cursor: pointer;
  box-sizing: border-box;
  background: rgba(235, 239, 247, 1);
}
.layout-btns span.btn-bold {
  font-weight: bold;
}
.layout-btns span:last-child {
  background: rgba(92, 158, 238, 1);
  color: #fff;
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }

  50% {
    opacity: 1;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }
}

.zoomIn {
  animation-name: zoomIn;
  animation-duration: 0.2s;
}
.fadeIn {
  animation-name: fadeIn;
  animation-duration: 0.2s;
}
