// 带按钮的对话框
.modal-alert {
  width: auto;
  width: 75%;
  max-height: 70%;
  margin: 0 auto;
  overflow: hidden;
  background: rgba(255, 255, 255, 96%);
  backdrop-filter: blur(10px); /* 背景模糊效果，可以根据需求调整模糊半径 */
  border-radius: 16px;
  // 动画使用.modal-animation
}
// 身体
.modal-body {
  display: flex;
  flex-direction: column;
  max-height: 300px;
  padding: 20px 12px;
  overflow: auto;
  line-height: 1.2em;
  text-align: center;
}
// 身体-标题
.modal-title {
  font-weight: 500;
  font-size: 18px;
  color: #1a1c1f;
}

.modal-title + .modal-content {
  margin-top: 10px;
}
// 身体-内容区域
.modal-content {
  display: block;
  flex: 1;
  overflow: auto;
  font-size: 15px;
  color: #35393e;
  text-align: center;
  line-height: 20px;
  font-weight: 400;
  word-wrap: break-word;
}
// 底部
.modal-footer {
  font-weight: 500;
  display: flex;
  border-top: 1px solid var(--border);
  box-sizing: border-box;

  // 垂直排列按钮
  &.vertical {
    flex-direction: column;

    .modal-cancel + .modal-ok {
      border-left: 0;
      border-top: 1px solid var(--border);
    }
  }
}

// 确定和取消按钮
.modal-cancel,
.modal-ok {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
  font-size: 18px;
  text-align: center;
  line-height: 22px;
  padding: 12px 0;
  font-weight: 400;

  * {
    pointer-events: none;
  }
}

.modal-cancel {
  color: #36383a;

  * {
    pointer-events: none;
  }
}

.modal-ok {
  color: var(--primary);

  * {
    pointer-events: none;
  }
}

.modal-cancel + .modal-ok {
  border-left: 1px solid var(--border);
}
