$steps-prefix-cls: "#{$css-prefix}steps";
$steps-wait-description-color: $steps-wait-title-color;

.#{$steps-prefix-cls} {
  position: relative;
  width: 100%;
  line-height: $steps-line-height;
  font-size: 0;

  &-item {
    display: inline-block;
    position: relative;
    vertical-align: top;
    &.#{$steps-prefix-cls}-status-wait {
      .#{$steps-prefix-cls}-head-inner {
        background-color: $steps-item-head-inner-background-color;
        > .#{$steps-prefix-cls}-icon, span {
          color: $steps-wait-icon-color;
        }
      }
      .#{$steps-prefix-cls}-title {
        color: $steps-item-title-color;
      }
      .#{$steps-prefix-cls}-content {
        color: $steps-wait-description-color;
      }
      .#{$steps-prefix-cls}-tail > i {
        background-color: $steps-wait-tail-color;
      }
    }


    &.#{$steps-prefix-cls}-status-process {
      .#{$steps-prefix-cls}-head-inner {
        border-color: $primary-color;
        background-color: $primary-color;
        > .#{$steps-prefix-cls}-icon, span {
          color: $steps-item-process-head-inner-color;
          &.#{$steps-prefix-cls}-remark {
            color: $primary-color;
          }
        }
      }
      .#{$steps-prefix-cls}-title {
        color: $steps-item-process-title-color;
        font-weight: bold;
        font-size: $font-size-base;
        letter-spacing: 0;
        text-align: left;
        line-height: $steps-item-process-title-line-height;
      }
      .#{$steps-prefix-cls}-content {
        color: #666;//***************************
      }
      .#{$steps-prefix-cls}-tail > i {
        background-color: $steps-split-color;
      }
    }


    &.#{$steps-prefix-cls}-status-finish {
      .#{$steps-prefix-cls}-head-inner {
        background-color: $steps-item-finish-head-inner-background-color;
        border-color: $primary-color;
        > .#{$steps-prefix-cls}-icon, span {
          color: $primary-color;
        }
      }
      .#{$steps-prefix-cls}-tail > i:after {
        width: 100%;
        background: $primary-color;
        transition: all $transition-time $ease-in-out;
        opacity: 1;
      }
      .#{$steps-prefix-cls}-title {
        color: $steps-wait-title-color;
      }
      .#{$steps-prefix-cls}-content {
        color: $steps-wait-description-color;
      }
    }

    &.#{$steps-prefix-cls}-status-error {
      .#{$steps-prefix-cls}-head-inner {
        background-color: $steps-item-error-head-inner-background-color;
        border-color: $error-color;
        > .#{$steps-prefix-cls}-icon {
          color: $error-color;
        }
      }
      .#{$steps-prefix-cls}-title {
        color: $error-color;
        font-weight: bold;
      }
      .#{$steps-prefix-cls}-content {
        color: $error-color;
      }
      .#{$steps-prefix-cls}-tail > i {
        background-color: #d9d9d9;//******************************************8
      }
    }

    &.#{$steps-prefix-cls}-next-error {
      .#{$steps-prefix-cls}-tail > i,
      .#{$steps-prefix-cls}-tail > i:after {
        background-color: $error-color;
      }
    }

    &.#{$steps-prefix-cls}-custom {
      .#{$steps-prefix-cls}-head-inner {
        background: none;
        border: 0;
        width: auto;
        height: auto;
        text-align: left;
        > .#{$steps-prefix-cls}-icon {
          left: $steps-custom-head-inner-icon-left;
          font-size: $steps-custom-head-inner-icon-font-size;
          top: $steps-custom-head-inner-icon-top;
          width: $steps-custom-head-inner-icon-width;
          height: $steps-custom-head-inner-icon-height;
        }
      }
      &.#{$steps-prefix-cls}-status-process {
        .#{$steps-prefix-cls}-head-inner > .#{$steps-prefix-cls}-icon {
          color: $primary-color;
          font-weight: bold;
        }
      }
    }
  }

  &-item:last-child &-tail {
    display: none;
  }

  .#{$steps-prefix-cls}-head,
  .#{$steps-prefix-cls}-main {
    position: relative;
    // display: inline-block;
    vertical-align: top;
  }
  .#{$steps-prefix-cls}-head {
    // background: #fff;
  }
  .#{$steps-prefix-cls}-head-inner {
    display: block;
    width: $steps-head-inner-width;
    height: $steps-head-inner-height;
    line-height: $steps-head-inner-line-height;
    margin-right: $steps-head-inner-line-margin-right;
    text-align: center;
    border: 1px solid $steps-head-inner-border-color;
    border-radius: 50%;
    font-size: $steps-head-inner-line-font-size;
    transition: background-color $transition-time $ease-in-out;
    position: relative;
    > .#{$steps-prefix-cls}-icon {
      font-size: $steps-head-inner-icon-font-size;
      line-height: $steps-head-inner-icon-line-height;
      position: relative;
      &.#{$steps-prefix-cls}-remark {
        position: absolute;
        right: $steps-head-inner-icon-remark-right;
        top: $steps-head-inner-icon-remark-top;
        font-size: $steps-head-inner-icon-remark-font-size;
      }

      &.h-icon {
        font-size: 24px;

        &-ios-checkmark-empty,
        &-ios-close-empty {
          font-weight: bold;
        }
      }
    }
  }
  .#{$steps-prefix-cls}-main {
    margin-top: $steps-main-margin-top;
    // display: inline;
    .#{$steps-prefix-cls}-content {
      font-family: "Microsoft YaHei", "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "\5FAE\8F6F\96C5\9ED1", Arial, sans-serif;
      font-size: $steps-main-content-font-size;
      color: $steps-main-content-color;
      text-align: left;
      line-height: $steps-main-content-line-height;
    }
  }
  .#{$steps-prefix-cls}-custom .#{$steps-prefix-cls}-title {
    margin-top: $steps-custom-title-margin-top;
  }

  .#{$steps-prefix-cls}-title {
    display: inline-block;
    margin-bottom: $steps-title-margin-bottom;
    padding-right: $steps-title-padding-right;
    font-size: $steps-title-font-size;
    //   font-weight: bold;
    color: $steps-title-color;
    // background: #fff;

    > a:first-child:last-child {
      color: $steps-title-color;
    }
  }
  .#{$steps-prefix-cls}-item-last {
    .#{$steps-prefix-cls}-title {
      padding-right: 0;
      width: 100%;
    }
  }
  // .#{$steps-prefix-cls}-content {
  //     font-size: 12px;
  //     color: #999;
  //     padding-left: 35px;
  // }
  .#{$steps-prefix-cls}-tail {
    width: 100%;
    padding: $steps-tail-padding;
    position: absolute;
    left: $steps-tail-left;
    top: $steps-tail-top;

    > i {
      display: inline-block;
      width: 100%;
      height: 1px;
      vertical-align: top;
      background: $steps-split-color;
      border-radius: 1px;
      position: relative;

      &::after {
        content: "";
        width: 0;
        height: 100%;
        background: #d9d9d9;//******************************************8
        opacity: 0;
        position: absolute;
        top: 0;
      }
    }
  }

  &.#{$steps-prefix-cls}-small {
    .#{$steps-prefix-cls}-head-inner {
      width: $steps-small-head-inner-width;
      height: $steps-small-head-inner-height;
      line-height: $steps-small-head-inner-height;
      margin-right: $steps-small-head-margin-right;
      text-align: center;
      border-radius: 50%;

      > .#{$steps-prefix-cls}-icon {
        top: 0;
        font-size: $font-size-base;
        line-height: $steps-small-head-inner-height;
      }
    }
    .#{$steps-prefix-cls}-title {
      margin-bottom: $steps-small-title-margin-bottom;
      margin-top: 0;
      color: $steps-small-title-color;
      font-size: $font-size-small;
      font-weight: bold;
    }
    .#{$steps-prefix-cls}-content {
      font-size: $font-size-small;
      color: $steps-small-content-color;
      padding-left: $steps-small-content-padding-left;
    }
    .#{$steps-prefix-cls}-tail {
      top: $steps-small-tail-top;
      padding: $steps-small-tail-padding;

      > i {
        height: 1px;
        width: 100%;
        border-radius: 1px;
      }
    }
    .#{$steps-prefix-cls}-status-finish,
    .#{$steps-prefix-cls}-status-wait {
      .#{$steps-prefix-cls}-title {
        color: $steps-small-title-color;
      }
    }
  }

  &.#{$steps-prefix-cls}-small .#{$steps-prefix-cls}-item.#{$steps-prefix-cls}-custom .#{$steps-prefix-cls}-head-inner,
  .#{$steps-prefix-cls}-item.#{$steps-prefix-cls}-custom .#{$steps-prefix-cls}-head-inner {
    width: inherit;
    height: inherit;
    line-height: inherit;
    border-radius: 0;
    border: 0;
    background: none;
  }
}

.#{$steps-prefix-cls}-vertical {
  .#{$steps-prefix-cls}-item {
    display: block;
  }

  .#{$steps-prefix-cls}-tail {
    position: absolute;
    left: $steps-vertical-tail-left;
    top: $steps-vertical-tail-top;
    height: 100%;
    width: $steps-vertical-tail-width;
    padding: $steps-vertical-tail-padding;

    > i {
      height: 100%;
      width: 1px;

      &::after {
        height: 0;
        width: 100%;
      }
    }
  }

  .#{$steps-prefix-cls}-status-finish {
    .#{$steps-prefix-cls}-tail > i:after {
      height: 100%;
    }
  }

  .#{$steps-prefix-cls}-head {
    float: left;

    &-inner {
      margin-right: $steps-vertical-head-inner-margin-right;
    }
  }

  .#{$steps-prefix-cls}-main {
    margin-top: $steps-vertical-main-margin-top;
    min-height: $steps-vertical-main-min-height;
    overflow: hidden;
    display: block;
    .#{$steps-prefix-cls}-title {
      line-height: $steps-vertical-main-title-line-height;
    }
    .#{$steps-prefix-cls}-content {
      padding-bottom: $steps-vertical-main-content-padding-bottom;
      padding-left: $steps-vertical-main-content-padding-left;
    }
  }

  .#{$steps-prefix-cls}-custom .#{$steps-prefix-cls}-icon {
    left: 4px;
  }
  &.#{$steps-prefix-cls}-small .#{$steps-prefix-cls}-custom .#{$steps-prefix-cls}-icon {
    left: 0;
  }
}

.#{$steps-prefix-cls}-vertical.#{$steps-prefix-cls}-small {
  .#{$steps-prefix-cls}-tail {
    position: absolute;
    left: $steps-vertical-small-tail-left;
    top: $steps-vertical-small-tail-top;
    padding: $steps-vertical-small-tail-padding;

    > i {
      height: 100%;
    }
  }

  .#{$steps-prefix-cls}-title {
    line-height: $steps-vertical-small-title-line-height;
  }
}

