@charset "UTF-8";
/**
 * YH-UI Sass Variables
 * 原具体的 CSS 变量输出规则 (:root, html.dark 等) 已移至 root.scss，以防止各组件样式编译时产生重复的全局变量 CSS 冗余。
 */
.yh-upload {
  --yh-upload-dragger-bg: var(--yh-bg-color);
  --yh-upload-dragger-border: var(--yh-border-color-light);
  --yh-upload-item-bg: var(--yh-fill-color-blank);
  --yh-upload-progress-bg: var(--yh-color-primary);
  --yh-upload-error-bg: var(--yh-color-danger-light-9);
  --yh-upload-error-hover-bg: var(--yh-color-danger-light-7);
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}
.yh-upload--pos-bottom {
  flex-direction: column-reverse;
}

.yh-upload--pos-left {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.yh-upload--pos-right {
  flex-direction: row-reverse;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.yh-upload--picture-card {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
}
.yh-upload--picture-card .yh-upload__header {
  width: auto;
  margin-bottom: 0;
}
.yh-upload--picture-card .yh-upload__trigger {
  display: flex;
}

.yh-upload__input {
  display: none !important;
}

.yh-upload__header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  width: 100%;
  margin-bottom: 4px;
}
.yh-upload--picture-card .yh-upload__header {
  width: auto;
  margin-bottom: 0;
}
.yh-upload__header:has(.yh-upload__dragger) {
  flex-direction: column;
  align-items: flex-start;
}

.yh-upload__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
}

.yh-upload__tip {
  margin-top: 0;
  font-size: 12px;
  color: var(--yh-text-color-secondary);
}

.yh-upload__dragger {
  width: 100% !important;
  display: block;
  background-color: var(--yh-upload-dragger-bg);
  border: 1px dashed var(--yh-upload-dragger-border);
  border-radius: 12px;
  padding: 32px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}
.yh-upload__dragger > * {
  pointer-events: none;
}
.yh-upload__dragger:hover {
  border-color: var(--yh-color-primary);
  background-color: var(--yh-color-primary-light-9);
}
.yh-upload__dragger.is-dragover {
  border-color: var(--yh-color-primary);
  background-color: var(--yh-color-primary-light-8);
  border-width: 2px;
}
.yh-upload__icon {
  color: var(--yh-text-color-placeholder);
  margin-bottom: 12px;
}

.yh-upload__dragger:hover .yh-upload__icon {
  color: var(--yh-color-primary);
}
.yh-upload__text {
  color: var(--yh-text-color-regular);
  font-size: 14px;
}
.yh-upload__text em {
  color: var(--yh-color-primary);
  font-style: normal;
  margin: 0 4px;
  font-weight: 600;
}

.yh-upload__picture-card-plus {
  background-color: var(--yh-fill-color-light);
  border: 1px dashed var(--yh-border-color);
  border-radius: 12px;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  color: var(--yh-text-color-placeholder);
}
.yh-upload__picture-card-plus:hover {
  border-color: var(--yh-color-primary);
  color: var(--yh-color-primary);
}

.yh-upload__list {
  margin: 0;
  padding: 0;
  list-style: none !important;
  font-size: 14px;
}
.yh-upload__list li {
  list-style-type: none !important;
  margin: 0;
  padding: 0;
}
.yh-upload__list li::before {
  display: none !important;
}
.yh-upload__list--text {
  margin-top: 8px;
}

.yh-upload__list--picture {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.yh-upload__list--picture-card {
  display: contents;
}

.yh-upload__item {
  position: relative;
  box-sizing: border-box;
  list-style: none !important;
  transition: all 0.3s cubic-bezier(0.55, 0, 0.1, 1);
}
.yh-upload__item.is-success .yh-upload__name {
  color: var(--yh-color-success);
}
.yh-upload__item.is-fail {
  background-color: var(--yh-upload-error-bg) !important;
}
.yh-upload__item.is-fail .yh-upload__name {
  color: var(--yh-color-danger);
}
.yh-upload__item.is-fail:hover {
  background-color: var(--yh-upload-error-hover-bg) !important;
}
.yh-upload--text .yh-upload__item, .yh-upload--picture .yh-upload__item {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 6px;
  margin-bottom: 4px;
  gap: 12px;
}
.yh-upload--text .yh-upload__item:hover, .yh-upload--picture .yh-upload__item:hover {
  background-color: var(--yh-fill-color-light);
}
.yh-upload--picture .yh-upload__item {
  border: 1px solid var(--yh-border-color-lighter);
  background: var(--yh-bg-color);
  padding: 8px;
}
.yh-upload--picture .yh-upload__item:hover {
  box-shadow: var(--yh-shadow-sm);
  border-color: var(--yh-color-primary-light-5);
}
.yh-upload--picture-card .yh-upload__item {
  display: inline-flex;
  width: 120px;
  height: 120px;
  margin: 0;
  border: 1px solid var(--yh-border-color-lighter);
  border-radius: 8px;
  overflow: hidden;
  vertical-align: top;
}

.yh-upload__thumbnail {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.yh-upload__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yh-upload__thumbnail-box {
  width: 48px;
  height: 48px;
  background: var(--yh-fill-color-light);
  border-radius: var(--yh-radius-base);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.yh-upload__thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yh-upload__thumbnail-icon {
  color: var(--yh-text-color-placeholder);
}

.yh-upload__file-icon {
  color: var(--yh-text-color-secondary);
  flex-shrink: 0;
}

.yh-upload__actions {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transition: opacity 0.3s;
  color: #fff;
  z-index: 2;
}
.yh-upload__actions span {
  cursor: pointer;
}
.yh-upload__actions span:hover {
  color: var(--yh-color-primary-light-3);
}
.yh-upload__item:hover .yh-upload__actions {
  opacity: 1;
}

.yh-upload__info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.yh-upload__details {
  flex: 1;
  min-width: 0;
}

.yh-upload__name {
  font-size: 14px;
  color: var(--yh-text-color-regular);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: color 0.2s;
}
.yh-upload__name:hover {
  color: var(--yh-color-primary);
}

.yh-upload__status-icon-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.yh-upload__actions-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.2s;
}
.yh-upload__item:hover .yh-upload__actions-inline {
  opacity: 1;
}

.yh-upload__delete-btn {
  cursor: pointer;
  color: var(--yh-text-color-secondary);
  transition: color 0.2s;
}
.yh-upload__delete-btn:hover {
  color: var(--yh-color-primary);
}

.yh-upload__retry-btn {
  cursor: pointer;
  color: var(--yh-text-color-secondary);
  transition: color 0.2s;
}
.yh-upload__retry-btn:hover {
  color: var(--yh-color-primary);
}

.yh-upload__delete-btn:hover {
  color: var(--yh-color-danger) !important;
}

.yh-upload__bottom-progress {
  position: absolute;
  bottom: 0px;
  left: 0px;
  right: 0px;
  height: 2px;
  background: var(--yh-fill-color-light);
  z-index: 10;
}

.yh-upload__bottom-progress-bar {
  height: 100%;
  background: var(--yh-color-primary);
  transition: width 0.3s linear;
}

.yh-upload.is-disabled {
  cursor: not-allowed;
}
.yh-upload.is-disabled .yh-upload__dragger,
.yh-upload.is-disabled .yh-upload__picture-card-plus {
  cursor: not-allowed;
  border-color: var(--yh-border-color-lighter) !important;
  background-color: var(--yh-fill-color-lighter) !important;
}

.yh-list-enter-active,
.yh-list-leave-active {
  transition: all 0.5s cubic-bezier(0.55, 0, 0.1, 1);
}

.yh-list-enter-from,
.yh-list-leave-to {
  opacity: 0;
  transform: translateY(-30px);
}

.yh-list-leave-active {
  position: absolute;
}