﻿/* 全屏遮罩 */
.mask {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 9999;
  animation: fadeIn 0.2s ease;
}

/* 居中浮动层 */
.dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

  width: 360px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, "Helvetica Neue", Arial, sans-serif;
  animation: slideUp 0.25s ease;
}

/* 标题区域 */
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  background-color: #fafafa;
}

.dialog-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

/* 关闭按钮 */
.close-btn {
  font-size: 18px;
  color: #999;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

.close-btn:hover {
  color: #333;
}

/* 提示内容 */
.dialog-body {
  padding: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #666;
}

/* 动画 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translate(-50%, -45%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}