@charset "UTF-8";
/**
 * YH-UI Sass Variables
 * 原具体的 CSS 变量输出规则 (:root, html.dark 等) 已移至 root.scss，以防止各组件样式编译时产生重复的全局变量 CSS 冗余。
 */
.yh-back-top {
  position: fixed;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--yh-bg-color-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--yh-color-primary);
  user-select: none;
}
.yh-back-top:hover {
  background-color: var(--yh-fill-color-light);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.yh-back-top__content {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.yh-back-top__progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  pointer-events: none;
}
.yh-back-top__progress circle {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
}
.yh-back-top__progress-bg {
  stroke: var(--yh-border-color-lighter);
  opacity: 0.3;
}

.yh-back-top__progress-bar {
  stroke: currentColor;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 0.1s linear;
}

/* 动画效果适配命名空间 */
.yh-fade-in-enter-active,
.yh-fade-in-leave-active {
  transition: opacity 0.3s, transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.yh-fade-in-enter-from,
.yh-fade-in-leave-to {
  opacity: 0;
  transform: scale(0.5) translateY(20px);
}