@charset "UTF-8";
/**
 * YH-UI Sass Variables
 * 原具体的 CSS 变量输出规则 (:root, html.dark 等) 已移至 root.scss，以防止各组件样式编译时产生重复的全局变量 CSS 冗余。
 */
.yh-progress {
  position: relative;
  line-height: 1;
  display: flex;
  align-items: center;
}
.yh-progress__text {
  font-size: 14px;
  color: var(--yh-text-color-regular);
  margin-left: 10px;
  min-width: 40px;
  flex-shrink: 0;
}

.yh-progress {
  /* 线型布局 */
}
.yh-progress--line {
  width: 100%;
}
.yh-progress--line.is-without-text .yh-progress__bar {
  padding-right: 0;
  margin-right: 0;
}

.yh-progress--line.is-without-text .yh-progress__text {
  display: none;
}

.yh-progress--line.is-text-inside .yh-progress__bar {
  padding-right: 0;
  margin-right: 0;
}

.yh-progress__bar {
  flex: 1;
  margin-right: -45px;
  padding-right: 45px;
  box-sizing: border-box;
}

.yh-progress__outer {
  width: 100%;
  background-color: var(--yh-fill-color-darker);
  border-radius: 100px;
  overflow: hidden;
  position: relative;
  vertical-align: middle;
}

.yh-progress__inner {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background-color: var(--yh-color-primary);
  border-radius: 100px;
  transition: width 0.6s ease;
  text-align: right;
  line-height: normal;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  z-index: 1;
  /* 条纹模式 */
}
.yh-progress__inner.is-striped {
  background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
  background-size: 40px 40px;
}
.yh-progress__inner {
  /* 条纹流动动画 (自创极致优化) */
}
.yh-progress__inner.is-striped-flow {
  animation-name: yh-progress-stripes;
  animation-duration: var(--yh-progress-duration, 2s);
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.yh-progress__inner {
  /* 未确定状态 (左右滑动) */
}
.yh-progress__inner.is-indeterminate {
  animation-name: yh-progress-indeterminate;
  animation-duration: var(--yh-progress-duration, 3s);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.yh-progress__secondary-inner {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background-color: var(--yh-fill-color-dark);
  opacity: 0.5;
  border-radius: 100px;
  transition: width 0.6s ease;
}

.yh-progress__innerText {
  display: inline-block;
  vertical-align: middle;
  color: #fff;
  font-size: 12px;
  margin: 0 5px;
}

.yh-progress__steps {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 2;
}

.yh-progress__step-item {
  position: absolute;
  top: 0;
  width: 2px;
  height: 100%;
  background: var(--yh-bg-color, #fff);
  transform: translateX(-50%);
  opacity: 0.3;
}

.yh-progress {
  /* 环型/仪表盘 */
}
.yh-progress--circle {
  display: inline-block;
}
.yh-progress--circle .yh-progress__text {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  text-align: center;
  margin-left: 0;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.yh-progress--dashboard {
  display: inline-block;
}
.yh-progress--dashboard .yh-progress__text {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  text-align: center;
  margin-left: 0;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.yh-progress__circle {
  position: relative;
}

.yh-progress__svg {
  display: block;
  width: 100%;
  height: 100%;
}

.yh-progress__icon {
  vertical-align: middle;
  font-size: 1.2em;
}

.yh-progress {
  /* 动画效果 (Animated) */
}
.yh-progress.is-animated .yh-progress__circle-path {
  animation: yh-progress-rotate var(--yh-progress-duration, 3s) linear infinite;
  transform-origin: center;
}

.yh-progress.is-animated .yh-progress__text {
  animation: yh-progress-pulse 2s ease-in-out infinite;
}

.yh-progress {
  /* 语义化状态颜色覆盖 */
}
.yh-progress.is-success .yh-progress__inner {
  background-color: var(--yh-color-success);
}

.yh-progress.is-success .yh-progress__circle-path {
  stroke: var(--yh-color-success);
}

.yh-progress.is-success .yh-progress__text {
  color: var(--yh-color-success);
}

.yh-progress.is-exception .yh-progress__inner {
  background-color: var(--yh-color-danger);
}

.yh-progress.is-exception .yh-progress__circle-path {
  stroke: var(--yh-color-danger);
}

.yh-progress.is-exception .yh-progress__text {
  color: var(--yh-color-danger);
}

.yh-progress.is-warning .yh-progress__inner {
  background-color: var(--yh-color-warning);
}

.yh-progress.is-warning .yh-progress__circle-path {
  stroke: var(--yh-color-warning);
}

.yh-progress.is-warning .yh-progress__text {
  color: var(--yh-color-warning);
}

/* 动效关键帧 */
@keyframes yh-progress-stripes {
  from {
    background-position: 40px 0;
  }
  to {
    background-position: 0 0;
  }
}
@keyframes yh-progress-indeterminate {
  0% {
    left: -35%;
    width: 35%;
  }
  100% {
    left: 100%;
    width: 35%;
  }
}
@keyframes yh-progress-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@keyframes yh-progress-pulse {
  0% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translateY(-50%) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}