@import '../../styles/basis.less';
.yk-progress {
  &-line-wrapper {
    display: flex;
    align-items: center;
    min-width: 480px;
  }
  &-inner {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 6px;
    border-radius: @radius-s;
    background: @bg-color-s;
    &::before {
      position: absolute;
      top: 0;
      left: 0;
      width: var(--progress-inner-w);
      height: 100%;
      border-radius: @radius-s;
      transition: width 0.3s linear;
      content: '';
    }
    &--custom {
      &::before {
        background-color: var(--progress-inner--custom);
      }
    }
    &--success {
      &::before {
        background-color: @scolor;
      }
    }
    &--error {
      &::before {
        background-color: @ecolor;
      }
    }
    &--normal {
      &::before {
        background-color: @pcolor;
      }
    }
  }
  &-text {
    display: flex;
    align-items: center;
    margin-left: 16px;
    min-width: 60px;
    font-family: PingFangSC-Regular;
    color: @font-color-m;
  }
  &-icon {
    margin-left: 8px;
  }

  &--s {
    .yk-progress-inner {
      height: 4px;
    }
    .yk-progress-text {
      .font-ss();
    }
  }
  &--m {
    .yk-progress-inner {
      height: 6px;
    }
  }
  &--l {
    .yk-progress-inner {
      height: 8px;
    }
    .yk-progress-text {
      .font-m();
    }
  }

  &-svg {
    position: relative;
    transform: rotate(-90deg);
  }
  &-circle {
    stroke-linecap: round;
    transition: all 0.3s linear;
    &--custom {
      stroke: var(--progress-circle--custom);
    }
    &--success {
      stroke: @scolor;
    }
    &--error {
      stroke: @ecolor;
    }
    &--normal {
      stroke: @pcolor;
    }
  }
  &-circle-wrappe {
    position: relative;
  }
  &-circle-text {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    font-family: PingFangSC-Regular;
    text-align: center;
    color: @font-color-m;
    transform: translate(-50%, -50%);
  }
}

.yk-progress-circle,
.yk-progress-circle-bg {
  &--s {
    width: 64px;
    height: 64px;
    .yk-progress-circle-text {
      .font-s();
    }
  }
  &--m {
    width: 80px;
    height: 80px;
    .yk-progress-circle-text {
      .font-m();
    }
  }
  &--l {
    width: 108px;
    height: 108px;
    .yk-progress-circle-text {
      .font-l();
    }
  }
}
.yk-progress-circle-bg {
  stroke: @bg-color-s;
}

// icon状态颜色clsss
.yk-progress-icon,
.yk-progress-circle-icon {
  &--success {
    color: @scolor;
  }
  &--error {
    color: @ecolor;
  }
  &--normal {
    color: @pcolor;
  }
}
