/* email-modal.css — 图片邮件发送弹窗样式 */
.img-email-overlay {
  position: fixed;
  inset: 0;
  z-index: 99997;
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.img-email-overlay.active { opacity: 1; }
.img-email-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
  width: 100%;
  max-width: 420px;
  margin: 16px;
  transform: translateY(12px) scale(0.97);
  transition: transform 0.2s ease;
  overflow: hidden;
}
.img-email-overlay.active .img-email-modal {
  transform: translateY(0) scale(1);
}
.img-email-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 0;
}
.img-email-modal-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.img-email-modal-brand img {
  width: auto;
  height: 1em;
  object-fit: contain;
}
.img-email-modal-brand span {
  font-size: 14px;
  font-weight: 700;
  color: #2563EB;
  letter-spacing: 0.2px;
}
.img-email-modal-close {
  width: 28px;
  height: 28px;
  border: none;
  background: #F3F4F6;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6B7280;
  transition: background 0.15s;
  flex-shrink: 0;
}
.img-email-modal-close:hover { background: #E5E7EB; color: #111827; }
.img-email-modal-body {
  padding: 16px 24px 24px;
}
.img-email-modal-preview {
  width: 100%;
  max-height: 140px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 16px;
  display: block;
  background: #F9FAFB;
}
.img-email-modal-title {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 4px;
}
.img-email-modal-desc {
  font-size: 13px;
  color: #6B7280;
  margin: 0 0 18px;
}
.img-email-input-wrap {
  position: relative;
  margin-bottom: 14px;
}
.img-email-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: #111827;
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.img-email-input:focus { border-color: #2563EB; }
.img-email-input.error { border-color: #EF4444; }
.img-email-error {
  font-size: 12px;
  color: #EF4444;
  margin-top: 4px;
  display: none;
}
.img-email-send-btn {
  width: 100%;
  padding: 12px;
  background: #2563EB;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s, transform 0.1s;
}
.img-email-send-btn:hover:not(:disabled) { background: #1D4ED8; }
.img-email-send-btn:active:not(:disabled) { transform: scale(0.98); }
.img-email-send-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.img-email-send-btn .btn-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: talkme-spin 0.7s linear infinite;
  display: none;
}
.img-email-send-btn.loading .btn-spinner { display: block; }
.img-email-send-btn.loading .btn-label { display: none; }
.img-email-success {
  text-align: center;
  padding: 8px 0 8px;
  display: none;
}
.img-email-success-icon {
  width: 48px;
  height: 48px;
  background: #ECFDF5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: #10B981;
}
.img-email-success h4 {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 6px;
}
.img-email-success p {
  font-size: 13px;
  color: #6B7280;
  margin: 0;
}
