@charset "UTF-8";
/**
 * YH-UI Sass Variables
 * 原具体的 CSS 变量输出规则 (:root, html.dark 等) 已移至 root.scss，以防止各组件样式编译时产生重复的全局变量 CSS 冗余。
 */
.yh-skeleton {
  width: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}
.yh-skeleton__header {
  margin-bottom: 20px;
}

.yh-skeleton__content {
  flex: 1;
}

.yh-skeleton-item {
  background: var(--yh-fill-color-dark);
  display: inline-block;
  vertical-align: middle;
  border-radius: var(--yh-radius-base);
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden !important;
  position: relative;
}
.yh-skeleton-item--circle {
  border-radius: 50% !important;
  overflow: hidden !important;
}

.yh-skeleton-item--rect {
  border-radius: 4px;
}

.yh-skeleton-item--h1 {
  height: 32px;
  margin-bottom: 24px;
}

.yh-skeleton-item--h3 {
  height: 24px;
  margin-bottom: 16px;
}

.yh-skeleton-item--text {
  height: 16px;
  border-radius: 8px;
  overflow: hidden !important;
}

.yh-skeleton-item--caption {
  height: 12px;
}

.yh-skeleton-item--button {
  height: 32px;
  width: 64px;
  border-radius: var(--yh-radius-base);
}

.yh-skeleton-item--image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  color: var(--yh-text-color-placeholder);
  overflow: hidden !important;
}
.yh-skeleton-item--image svg {
  opacity: 0.5;
}

.yh-skeleton-item.is-round {
  border-radius: 999px;
  overflow: hidden !important;
}
.yh-skeleton-item.is-sharp {
  border-radius: 0;
}
.yh-skeleton-item {
  /* 核心闪烁动画：极致平滑的线性位移 */
}
.yh-skeleton-item.is-animated {
  background: linear-gradient(90deg, var(--yh-fill-color-dark) 25%, var(--yh-fill-color-light) 37%, var(--yh-fill-color-dark) 63%);
  background-size: 400% 100%;
  animation: yh-skeleton-loading 1.4s ease infinite;
}

@keyframes yh-skeleton-loading {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}
/* YH-UI 自创高级：波浪模式 (可选) */
@keyframes yh-skeleton-wave {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    opacity: 1;
  }
}