/* 全站前台轻提示 / 确认弹层（替代原生 alert / confirm） */
.site-tip-mask {
  position: fixed;
  inset: 0;
  z-index: 19891020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  box-sizing: border-box;
}

.site-tip-mask.is-open {
  opacity: 1;
  visibility: visible;
}

.site-tip-dialog {
  width: 420px;
  max-width: 100%;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0, 40, 90, 0.22), 0 8px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transform: translateY(12px) scale(0.96);
  transition: transform 0.22s ease;
}

.site-tip-mask.is-open .site-tip-dialog {
  transform: translateY(0) scale(1);
}

.site-tip-dialog__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 22px 0;
}

.site-tip-dialog__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a4ea3 0%, #004080 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 6px 16px rgba(10, 78, 163, 0.28);
}

.site-tip-dialog__icon--warn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.28);
}

.site-tip-dialog__icon--ok {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.28);
}

.site-tip-dialog__icon--danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.28);
}

.site-tip-dialog__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.site-tip-dialog__body {
  margin: 0;
  padding: 14px 22px 8px 68px;
  font-size: 14px;
  line-height: 1.7;
  color: #475569;
  word-break: break-word;
}

.site-tip-dialog__foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 22px 20px;
}

.site-tip-dialog__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  height: 40px;
  padding: 0 22px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #0a4ea3 0%, #004080 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 64, 128, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.site-tip-dialog__btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 64, 128, 0.34);
}

.site-tip-dialog__btn:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.site-tip-dialog__btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(10, 78, 163, 0.22), 0 8px 20px rgba(0, 64, 128, 0.28);
}

.site-tip-dialog__btn--ghost {
  background: #e2e8f0;
  color: #334155;
  box-shadow: none;
}

.site-tip-dialog__btn--ghost:hover {
  filter: brightness(0.97);
  box-shadow: none;
  background: #dbe3ee;
}

.site-tip-dialog__btn--ghost:focus {
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.35);
}
