/* ============================================================
   大陶匠 · 确认弹窗组件
   说明：二次确认弹窗，支持自定义标题、内容、按钮
   调用：window.ConfirmModal.show({title, message, confirmText, cancelText, onConfirm})
   ============================================================ */

.confirm-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 50000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.confirm-modal-overlay.show {
  display: flex;
}

.confirm-modal {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  animation: confirmModalIn 0.2s ease;
}

@keyframes confirmModalIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.confirm-modal-title {
  font-size: 17px;
  font-weight: 600;
  color: #3d2c1e;
  text-align: center;
  margin-bottom: 12px;
}

.confirm-modal-message {
  font-size: 14px;
  color: #666;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 24px;
}

.confirm-modal-buttons {
  display: flex;
  gap: 12px;
}

.confirm-modal-btn {
  flex: 1;
  padding: 11px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
  border: none;
}

.confirm-modal-btn:active {
  opacity: 0.8;
}

.confirm-modal-cancel {
  background: #f5f0e8;
  color: #8B7355;
}

.confirm-modal-confirm {
  background: linear-gradient(135deg, #8B4513, #A0522D);
  color: #fff;
}

.confirm-modal-confirm.danger {
  background: linear-gradient(135deg, #d32f2f, #f44336);
}
