// 层级与断点
$z-index-backdrop: 9990;
$z-index-modal: 9991;
$z-index-toast: 1050;

$mobile: 768px;
$tablet: 1024px;

.gp-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(2px);
  z-index: $z-index-backdrop;
}

.gp-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: $z-index-modal;
  width: min(560px, 90vw);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
  overflow: hidden;
}

.gp-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}

.gp-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  &.success { background: #10B981; }
  &.info { background: #3B82F6; }
  &.warning { background: #F59E0B; }
}

.gp-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

.gp-close {
  margin-left: auto;
  border: none;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
}

.gp-content {
  padding: 16px 20px;
  color: #374151;
  font-size: 14px;
}

.gp-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 20px 16px 20px;
}

.btn-primary {
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  background: #007aff;
  color: #fff;
  cursor: pointer;
}

.gp-toast {
  position: fixed;
  z-index: $z-index-toast;
  &.top-right { top: 16px; right: 16px; }
  &.bottom-right { bottom: 16px; right: 16px; }
}

.gp-toast-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  border-radius: 12px;
  padding: 12px 14px;
  min-width: 280px;
}

.gp-texts {
  display: flex;
  flex-direction: column;
  .gp-title { font-size: 14px; font-weight: 600; color: #111827; }
  .gp-content { font-size: 12px; color: #4b5563; padding: 0; }
}

@media (max-width: $mobile) {
  .gp-toast-inner { min-width: 240px; }
}