.modal {
  display: none;
  position: fixed;
  z-index: 2;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  width: 500px;
  border-radius: 20px;
  text-align: center;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

.modal-content p{
  display: block;
  margin-block-start: 1em;
  margin-block-end: 1em;
  margin-inline-start: 0px;
  margin-inline-end: 0px;
}

.close {
  color: #aaa;
  position: absolute;
  top: 3px;
  right: 10px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
}

/* 新的退出确认modal样式 */
#exitModal .modal-content {
  width: 600px;
  padding: 0;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  border: none;
  border-radius: 12px;
  overflow: hidden;
}

#exitModal .modal-header {
  background-color: #00616f;
  color: white;
  padding: 20px;
  margin: 0;
}

#exitModal .modal-header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: bold;
}

#exitModal .modal-body {
  padding: 30px;
  background-color: #fff;
}

#exitModal .warning-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

#exitModal .warning-text {
  font-size: 18px;
  margin-bottom: 25px;
  line-height: 1.6;
}

#exitModal .warning-text .chinese {
  font-weight: 600;
  color: #333;
}

#exitModal .warning-text .english {
  color: #666;
  font-size: 16px;
  font-style: italic;
}

#exitModal .consequences {
  text-align: left;
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
}

#exitModal .consequence-item {
  margin-bottom: 15px;
  line-height: 1.5;
}

#exitModal .consequence-item:last-child {
  margin-bottom: 0;
}

#exitModal .consequence-item .bullet {
  color: #dc3545;
  font-weight: bold;
  margin-right: 8px;
}

#exitModal .consequence-item .chinese {
  color: #333;
  font-weight: 500;
}

#exitModal .consequence-item .english {
  color: #666;
  font-size: 14px;
  display: block;
}

#exitModal .modal-footer {
  padding: 20px 30px;
  background-color: #f8f9fa;
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  border-top: 1px solid #dee2e6;
}

#exitModal .modal-footer button {
  padding: 10px 25px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

#exitModal .btn-secondary {
  background-color: #6c757d;
  color: white;
}

#exitModal .btn-secondary:hover {
  background-color: #5a6268;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#exitModal .btn-danger {
  background-color: #dc3545;
  color: white;
}

#exitModal .btn-danger:hover {
  background-color: #c82333;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(220,53,69,0.4);
}

#exitModal .btn-secondary .chinese,
#exitModal .btn-secondary .english,
#exitModal .btn-danger .chinese,
#exitModal .btn-danger .english {
  font-size: 15px;
}
