/* 打开弹窗时锁滚动 */
body.modal-open {
  overflow: hidden;
}

/* 基础遮罩 + 渐变淡入淡出 */
.popup-layer{
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, rgba(30,60,90,.55), rgba(0,0,0,.75));
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
  z-index: 9999;
}

.popup-layer.is-open{
  opacity: 1;
  visibility: visible;
}

/* 基础对话框容器 */
.popup-dialog{
  width: min(92vw, 760px);
  max-height: min(85vh, 900px);
  overflow: auto;
  background: #fff;
  color: #111;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  transform: translateY(10px) scale(.98);
  transition: transform .2s ease;
}

/* 打开时向上平移一点，带轻微缩放 */
.popup-layer.is-open .popup-dialog{
  transform: translateY(0) scale(1);
}

/* 右上角基础关闭按钮样式（你角色弹窗里也用的是这个类名） */
.popup-close{
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: .25rem .5rem;
  font-size: 1.5rem;
  line-height: 1;
}
