/* 自定义弹窗组件 */
.toast-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  pointer-events: none;
}

.toast {
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  min-width: 200px;
  max-width: 300px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transform: translateY(-20px) scale(0.9);
  transition: all 0.3s ease-out;
  pointer-events: auto;
}

.toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast.hide {
  opacity: 0;
  transform: translateY(-20px) scale(0.9);
  transition: all 0.3s ease-in;
}

/* 不同类型的提示样式 */
.toast.success {
  background-color: rgba(40, 167, 69, 0.9);
}

.toast.error {
  background-color: rgba(220, 53, 69, 0.9);
}

.toast.warning {
  background-color: rgba(255, 193, 7, 0.9);
  color: #333;
}

.toast.info {
  background-color: rgba(0, 154, 255, 0.9);
}

/* 响应式设计 */
@media (max-width: 480px) {
  .toast {
    min-width: 150px;
    max-width: 250px;
    font-size: 13px;
    padding: 10px 16px;
  }
}

/* 确认弹窗样式 */
.confirm-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirm-dialog {
  background-color: #fff;
  border-radius: 15rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  max-width: 500rem;
  width: 90%;
  overflow: hidden;
  animation: confirmDialogShow 0.3s ease-out;
}

@keyframes confirmDialogShow {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.confirm-dialog-content {
  padding: 40rem 30rem;
  text-align: center;
}

.confirm-dialog-title {
  font-size: 36rem;
  font-weight: bold;
  color: #2A4545;
  margin-bottom: 20rem;
  line-height: 1.3;
}

.confirm-dialog-message {
  font-size: 28rem;
  color: #666;
  margin-bottom: 40rem;
  line-height: 1.5;
}

.confirm-dialog-buttons {
  display: flex;
  gap: 20rem;
  justify-content: center;
  flex-direction: row;
}

.confirm-btn-back,
.confirm-btn-stay {
  flex: 1;
  height: 70rem;
  border: none;
  border-radius: 10rem;
  font-size: 28rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirm-btn-back {
  background-color: #7D8C8C;
  color: #fff;
}

.confirm-btn-back:hover {
  background-color: #6A7575;
  transform: translateY(-2px);
}

.confirm-btn-stay {
  background-color: #2A4545;
  color: #fff;
}

.confirm-btn-stay:hover {
  background-color: #1A2F2F;
  transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 480px) {
  .confirm-dialog {
    width: 95%;
    margin: 0 10px;
  }
  
  .confirm-dialog-content {
    padding: 30rem 20rem;
  }
  
  .confirm-dialog-title {
    font-size: 32rem;
  }
  
  .confirm-dialog-message {
    font-size: 26rem;
  }
  
  .confirm-dialog-buttons {
    flex-direction: row;
    gap: 15rem;
  }
  
  .confirm-btn-back,
  .confirm-btn-stay {
    height: 60rem;
    font-size: 26rem;
  }
}