/* 遮罩层 */
.jquery-alert-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: jqueryAlertFadeIn 0.3s ease forwards;
}

/* 弹窗容器 */
.jquery-alert {
  position: relative;
  width: 400px;
  max-width: 90vw;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  border-left: 4px solid;
  padding: 5px;
  border: 0;
}

/* 垂直水平居中 */
.jquery-alert-backdrop,
.jquery-alert {
  align-items: center;
  justify-content: center;
}

/* 动画 */
@keyframes jqueryAlertFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes jqueryAlertFadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes jqueryAlertScaleIn {
  from {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }

  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

@keyframes jqueryAlertScaleOut {
  from {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }

  to {
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
  }
}

/* 内容 */
.jquery-alert-content {
  font-size: 14px;
  line-height: 22px;
  width: 90%;
  color: #e14e34;
}

/* 关闭按钮 */
.jquery-alert-close {
  position: absolute;
  top: -2px;
  right: 0px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.3);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

/* 按钮组 */
.jquery-alert-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.jquery-alert-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.jquery-alert-btn-primary {
  background-color: #007ae5;
  color: white;
}

.jquery-alert-btn-primary:hover {
  background-color: #005cb2;
}

.jquery-alert-btn-secondary {
  background-color: #6c757d;
  color: white;
}

.jquery-alert-btn-secondary:hover {
  background-color: #545b62;
}