@charset "UTF-8";
/**
 * YH-UI Sass Variables
 * 原具体的 CSS 变量输出规则 (:root, html.dark 等) 已移至 root.scss，以防止各组件样式编译时产生重复的全局变量 CSS 冗余。
 */
.yh-drawer {
  position: fixed;
  background: var(--yh-bg-color-overlay);
  box-shadow: var(--yh-shadow-lg);
  display: flex;
  flex-direction: column;
  transition: all var(--yh-duration-base) ease;
  overflow: hidden;
  z-index: var(--yh-z-index-modal);
}
.yh-drawer__wrapper {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  margin: 0;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  background: transparent;
}
.yh-drawer__wrapper.is-active {
  opacity: 1;
  visibility: visible;
}
.yh-drawer__wrapper.is-with-modal {
  background: rgba(0, 0, 0, 0.45);
}
.yh-drawer__wrapper.is-inner {
  position: absolute;
}

.yh-drawer.is-inner {
  position: absolute;
}
.yh-drawer--left {
  left: 0;
  top: 0;
  bottom: 0;
  transform: translateX(-100%);
}
.yh-drawer--left.is-round {
  border-radius: 0 16px 16px 0;
}

.yh-drawer--right {
  right: 0;
  top: 0;
  bottom: 0;
  transform: translateX(100%);
}
.yh-drawer--right.is-round {
  border-radius: 16px 0 0 16px;
}

.yh-drawer--top {
  top: 0;
  left: 0;
  right: 0;
  transform: translateY(-100%);
}
.yh-drawer--top.is-round {
  border-radius: 0 0 16px 16px;
}

.yh-drawer--bottom {
  bottom: 0;
  left: 0;
  right: 0;
  transform: translateY(100%);
}
.yh-drawer--bottom.is-round {
  border-radius: 16px 16px 0 0;
}

.yh-drawer.is-open {
  transform: translate(0, 0);
}
.yh-drawer--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-drawer--glass {
    background: rgba(25, 25, 30, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.1);
  }
}

.yh-drawer__header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--yh-border-color-lighter);
}

.yh-drawer__title {
  font-size: var(--yh-font-size-lg);
  font-weight: 600;
  color: var(--yh-text-color-primary);
  margin: 0;
}

.yh-drawer__close {
  padding: 0;
  background: transparent;
  border: none;
  outline: none;
  cursor: pointer;
  color: var(--yh-text-color-secondary);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--yh-radius-md);
  transition: all 0.2s;
}
.yh-drawer__close:hover {
  background: var(--yh-fill-color-light);
  color: var(--yh-color-danger);
}

.yh-drawer__body {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  color: var(--yh-text-color-regular);
  font-size: var(--yh-font-size-base);
  line-height: 1.6;
}

.yh-drawer__footer {
  padding: 16px 24px;
  border-top: 1px solid var(--yh-border-color-lighter);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.yh-drawer__handle {
  position: absolute;
  z-index: 10;
  background: transparent;
  transition: background 0.2s;
}
.yh-drawer__handle:hover, .yh-drawer__handle:active {
  background: var(--yh-color-primary-light-5);
}
.yh-drawer__handle--left {
  right: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  cursor: col-resize;
}

.yh-drawer__handle--right {
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  cursor: col-resize;
}

.yh-drawer__handle--top {
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  cursor: row-resize;
}

.yh-drawer__handle--bottom {
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  cursor: row-resize;
}

.yh-drawer-fade-enter-active,
.yh-drawer-fade-leave-active {
  transition: opacity 0.3s ease;
}

.yh-drawer-fade-enter-from,
.yh-drawer-fade-leave-to {
  opacity: 0;
}