@charset "UTF-8";
/**
 * YH-UI Sass Variables
 * 原具体的 CSS 变量输出规则 (:root, html.dark 等) 已移至 root.scss，以防止各组件样式编译时产生重复的全局变量 CSS 冗余。
 */
.yh-dialog {
  position: relative;
  margin: var(--yh-dialog-margin-top, 15vh) auto 50px;
  background: var(--yh-bg-color-overlay, #ffffff);
  border-radius: var(--yh-radius-lg, 16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  outline: none;
}
.yh-dialog--fullscreen {
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

.yh-dialog--align-center {
  margin: auto !important;
}

.yh-dialog--center {
  text-align: center;
}
.yh-dialog--center .yh-dialog__header {
  border-bottom: none;
}

.yh-dialog--center .yh-dialog__footer {
  border-top: none;
}

.yh-dialog--glass {
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
@media (prefers-color-scheme: dark) {
  .yh-dialog--glass {
    background: rgba(25, 25, 30, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.1);
  }
}

.yh-dialog.is-draggable .yh-dialog__header {
  cursor: move;
  user-select: none;
}

.yh-dialog__wrapper {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: auto;
  margin: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.yh-dialog__header {
  padding: 24px 24px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.yh-dialog__header.yh-dialog__header--center {
  justify-content: center;
}
.yh-dialog__header.yh-dialog__header--center .yh-dialog__title {
  width: 100%;
  text-align: center;
}

.yh-dialog__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--yh-text-color-primary, #1a1a1a);
  line-height: 1.4;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.yh-dialog__type-icon {
  font-size: 24px;
  flex-shrink: 0;
}
.yh-dialog__type-icon--success {
  color: var(--yh-color-success, #67c23a);
}

.yh-dialog__type-icon--warning {
  color: var(--yh-color-warning, #e6a23c);
}

.yh-dialog__type-icon--error {
  color: var(--yh-color-danger, #f56c6c);
}

.yh-dialog__type-icon--info {
  color: var(--yh-color-info, #909399);
}

.yh-dialog__headerbtn {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 22px;
  color: var(--yh-text-color-secondary, #909399);
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.yh-dialog__headerbtn:hover {
  background-color: var(--yh-border-color-light, rgba(0, 0, 0, 0.05));
  color: var(--yh-color-danger, #f56c6c);
}

.yh-dialog__body {
  padding: 8px 24px 32px;
  color: var(--yh-text-color-regular, #4a4a4a);
  font-size: 15px;
  line-height: 1.6;
  flex: 1;
  overflow-y: auto;
  position: relative;
}
.yh-dialog__body::-webkit-scrollbar {
  width: 6px;
}
.yh-dialog__body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}

.yh-dialog__loading {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  backdrop-filter: blur(2px);
}
@media (prefers-color-scheme: dark) {
  .yh-dialog__loading {
    background: rgba(0, 0, 0, 0.4);
  }
}

.yh-dialog__footer {
  padding: 16px 24px 24px;
  text-align: right;
  box-sizing: border-box;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.yh-dialog__footer.yh-dialog__footer--center {
  justify-content: center;
}

.yh-dialog-fade-enter-active {
  transition: opacity 0.3s ease-out;
}
.yh-dialog-fade-enter-active .yh-dialog {
  animation: yh-dialog-zoom-in 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}
.yh-dialog-fade-leave-active {
  transition: opacity 0.2s ease-in;
}
.yh-dialog-fade-leave-active .yh-dialog {
  animation: yh-dialog-zoom-out 0.2s cubic-bezier(0.6, -0.28, 0.735, 0.045);
}
.yh-dialog-fade-enter-from, .yh-dialog-fade-leave-to {
  opacity: 0;
}

@keyframes yh-dialog-zoom-in {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
@keyframes yh-dialog-zoom-out {
  from {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  to {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
}