
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 20px auto 0;
  padding: 20px;
  width: 30%;
  border-radius: 8px;
  border: none; /* 去掉边框 */
}
@media screen and (max-width: 768px) {
  .modal-content {
    width: 90%;
  }
}

#exitButton {
  background-color: #e53e3e;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  border: 0;
}

#closeModal {
  font-size: 24px;
  cursor: pointer;
  float: right;
  line-height: 1; /* 使关闭图标垂直居中 */
}

.modal-content p {
  font-size: 18px;
  line-height: 24px;
  font-weight: bold;
  display: inline; /* 使文字和关闭图标在同一行 */
}

.button-group {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 16px;
}

#cancelButton {
  background-color: #cbd5e0;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  border: 0;
}

#confirmButton {
  background-color: #e53e3e;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  border: 0;
}