/* 保存方案弹窗样式 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--modal-overlay-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-out;
}

.modal-content {
  background-color: var(--white-color);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  width: 85%;
  max-width: 400px;
  padding: 24px;
  position: relative;
  animation: slideUp 0.3s ease-out;
}

.modal-content h4 {
  color: var(--text-color);
  font-size: 18px;
  margin: 0 0 20px 0;
  text-align: center;
  font-weight: 500;
}

.modal-content input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 16px;
  margin-bottom: 24px;
  box-sizing: border-box;
  transition: border-color 0.3s;
  outline: none;
}

.modal-content input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

/* 成功提示框样式 */
.success-message {
  text-align: center;
  color: var(--text-color);
  font-size: 16px;
  margin: 0 0 24px 0;
  line-height: 1.5;
}

.modal-buttons {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.modal-buttons button {
  flex: 1;
  padding: 12px 0;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.modal-buttons button:first-child {
  background-color: var(--primary-bg-color);
  color: var(--text-color);
}

.modal-buttons button:first-child:hover {
  background-color: var(--border-color);
}

.modal-buttons button:last-child {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.modal-buttons button:last-child:hover {
  background-color: #0065d9;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 移动设备适配 */
@media (max-width: 480px) {
  .modal-content {
    width: 90%;
    padding: 20px;
  }
  
  .modal-content h4 {
    font-size: 16px;
  }
  
  .modal-content input {
    padding: 10px;
    font-size: 14px;
  }
  
  .success-message {
    font-size: 14px;
  }
  
  .modal-buttons button {
    padding: 10px 0;
    font-size: 14px;
  }
} 