@import './var.less';

.steps {
  &-first_step {
    position: relative;
    height: 80px;
  }
  &_step {
    box-sizing: border-box;
    position: relative;
    padding: 0 0 70px 50px;
    &_header {
      display: flex;
      justify-content: space-between;
      transform: translateY(-50%);
      &_title {
        color: rgba(0, 0, 0, 0.85);
        font-size: @steps-title-font-size;
        font-weight: 500;
      }
      &-extra {
        color: rgba(0, 0, 0, 0.45);
        font-size: @steps-extra-font-size;
      }
    }
    &_description {
      color: rgba(0, 0, 0, 0.65);
      padding-top: 2px;
      line-height: 1.44444;
      font-size: @steps-extra-font-size;
      text-align: left;
      transform: translateY(-10px);
    }
  }
  &_circle {
    box-sizing: border-box;
    position: absolute;
    left: 0;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: @brand-primary;
    z-index: 1;
    transform: translate(-50%, -50%);
  }
  &_circle_ahead {
    box-sizing: border-box;
    position: absolute;
    left: 0;
    top: 0;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.25);
    z-index: 1;
    transform: translate(-50%, -50%);
  }
  &_circle_current {
    box-sizing: border-box;
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fdfffd;
    z-index: 1;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    // box-shadow: 0 0 30px #99CCFF;
    &_icon {
      width: 40px;
      height: 40px;
      display: inline-block;
    }
  }
  &_line {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: @brand-primary;
    transform: translateX(-50%);
  }
  &_line_ahead {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #f0f0f0;
    transform: translateX(-50%);
  }
}

.steps_horizontal {
  width: 100%;
  display: flex;
  background-color: #fdfffd;
  overflow: hidden;
  &_step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    &:nth-child(1) {
      align-items: flex-start;
    }
    &:nth-last-child(1) {
      align-items: flex-end;
      .steps_horizontal-step-container {
        &_icon {
          &::after {
            background-color: #fdfffd;
          }
        }
      }
    }
    &_container {
      position: relative;
      z-index: 0;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      &_icon {
        position: relative;
        display: inline-block;
        background-color: #fdfffd;
        height: 40px;
        &::after {
          content: '';
          position: absolute;
          z-index: -1;
          height: 2px;
          background-color: #fdfffd;
          top: 50%;
          left: 50%;
          margin-top: -1px;
          width: 3000px;
        }
        &_default {
          display: flex;
          align-items: center;
          height: 40px;
          > view {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background-color: rgba(0, 0, 0, 0.25);
          }
          > div {
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background-color: rgba(0, 0, 0, 0.25);
          }
        }
      }
      &_content {
        &_title {
          color: rgba(0, 0, 0, 0.85);
          font-size: 28px;
          font-weight: 500;
          margin-top: 10px;
        }
      }
    }
  }
  &_step_finish {
    .steps_horizontal_step_container {
      &_icon {
        &::after {
          background-color: @brand-primary;
        }
      }
    }
  }
}
