/* 弹框 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
}

/* 弹框遮罩层 */
.alert-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px); /* 毛玻璃效果 */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9999; /* 确保最上层 */
}

/* 弹框显示状态 */
.alert-mask.show {
  opacity: 1;
  visibility: visible;
}

/* 弹框主体 */
.alert-box {
  width: 90%;
  max-width: 450px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 25px;
  text-align: center;
  transform: translateY(-20px) scale(0.95);
  transition: all 0.3s ease;
}

.alert-mask.show .alert-box {
  transform: translateY(0) scale(1);
}

/* 弹框图标容器 */
.alert-icon {
  font-size: 40px;
  margin-bottom: 15px;
  display: inline-block;
}

/* 不同类型的图标颜色 */
.alert-icon.success {
  color: #67c23a;
}

/* 成功-绿色 */
.alert-icon.error {
  color: #f56c6c;
}

/* 错误-红色 */
.alert-icon.info {
  color: #409eff;
}

/* 信息-蓝色 */
.alert-icon.warning {
  color: #e6a23c;
}

/* 警告-黄色 */
.alert-icon.confirm {
  color: #409eff;
}

/* 确认-蓝色 */

/* 弹框标题 */
.alert-title {
  font-size: 18px;
  font-weight: 600;
  color: #333333;
  margin-bottom: 10px;
}

/* 弹框内容 */
.alert-content {
  font-size: 15px;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 25px;
}

/* 按钮容器（适配单按钮/双按钮） */
.alert-btn-group {
  display: flex;
  justify-content: center;
  gap: 15px; /* 按钮间距 */
}

/* 通用按钮样式 */
.alert-btn {
  padding: 10px 25px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1; /* 按钮等分宽度 */
  max-width: 120px;
}

/* 主按钮（确认/是） */
.alert-btn.primary {
  background: #409eff;
  color: #ffffff;
}

.alert-btn.primary:hover {
  background: #66b1ff;
}

.alert-btn.primary:active {
  background: #337ecc;
}

/* 次要按钮（取消/否） */
.alert-btn.secondary {
  background: #f5f7fa;
  color: #666666;
  border: 1px solid #e4e7ed;
}

.alert-btn.secondary:hover {
  background: #eef2f7;
}

.alert-btn.secondary:active {
  background: #e4e7ed;
}
