/* dr_ajax_member：Toast / 模态提示（需与 member-ajax.js 同页引入） */
.dr-cmf-tip {
  position: fixed;
  left: 50%;
  top: 22%;
  transform: translate(-50%, -8px) scale(0.96);
  z-index: 110000;
  max-width: min(88vw, 360px);
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  color: #fff;
  background: rgba(33, 33, 33, 0.92);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.dr-cmf-tip--show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
  pointer-events: auto;
}

.dr-cmf-tip--ok {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.dr-cmf-tip--info {
  background: rgba(33, 33, 33, 0.92);
}

/* 替代 alert 的模态框 */
.dr-alert-overlay {
  position: fixed;
  inset: 0;
  z-index: 110010;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  opacity: 0;
  animation: dr-alert-in 0.2s ease forwards;
}

@keyframes dr-alert-in {
  to {
    opacity: 1;
  }
}

.dr-alert-box {
  width: 100%;
  max-width: 340px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  transform: translateY(10px) scale(0.98);
  animation: dr-alert-box-in 0.24s ease forwards;
}

@keyframes dr-alert-box-in {
  to {
    transform: translateY(0) scale(1);
  }
}

.dr-alert-icon {
  display: flex;
  justify-content: center;
  padding: 22px 20px 0;
}

.dr-alert-icon span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fef3c7, #fde68a);
  color: #d97706;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}

.dr-alert-body {
  margin: 0;
  padding: 14px 22px 22px;
  font-size: 15px;
  line-height: 1.65;
  color: #334155;
  text-align: center;
  word-break: break-word;
}

.dr-alert-footer {
  padding: 0 16px 16px;
}

.dr-alert-btn {
  width: 100%;
  height: 44px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.dr-alert-btn:hover {
  filter: brightness(1.05);
}

.dr-alert-btn:active {
  transform: scale(0.99);
}
