@charset "UTF-8";
/**
 * YH-UI Sass Variables
 * 原具体的 CSS 变量输出规则 (:root, html.dark 等) 已移至 root.scss，以防止各组件样式编译时产生重复的全局变量 CSS 冗余。
 */
/* 
  YH-Popover 深度布局优化与主题自适应
  自动感知 html.dark 环境变色
*/
.yh-popover__popper.yh-tooltip__popper {
  border-radius: var(--yh-radius-lg);
  box-shadow: var(--yh-shadow-lg);
  max-width: 400px;
  /* 自动感应暗黑模式阴影 */
}
:root.dark .yh-popover__popper.yh-tooltip__popper, html.dark .yh-popover__popper.yh-tooltip__popper, body.dark .yh-popover__popper.yh-tooltip__popper {
  box-shadow: var(--yh-shadow-xl);
}
.yh-popover__popper.yh-tooltip__popper .yh-tooltip__content {
  padding: 0;
}

.yh-popover__content {
  display: block;
  box-sizing: border-box;
  padding: 24px 28px;
  min-width: 240px;
  color: inherit;
}

.yh-popover__main {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.yh-popover__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.yh-popover__icon {
  font-size: 22px;
  line-height: 1.4;
  flex-shrink: 0;
  margin-top: 2px;
}

.yh-popover__header {
  margin-bottom: 8px;
}

.yh-popover__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: inherit;
}

.yh-popover__body {
  font-size: 14px;
  line-height: 1.65;
  opacity: 0.9;
  color: inherit;
}

.yh-popover__footer {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* 动画系统同步 */
.yh-popover-fade-enter-active,
.yh-popover-fade-leave-active {
  transition: opacity 0.2s cubic-bezier(0.23, 1, 0.32, 1), transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.yh-popover-fade-enter-from,
.yh-popover-fade-leave-to {
  opacity: 0;
  transform: scale(0.97) translateY(6px);
}