/**
 * 客户咨询弹窗 — 对齐 demo ContactModal.tsx + 迅睿网站表单 kehuzixun
 */
.demo-contact-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  box-sizing: border-box;
}
.demo-contact-modal.is-open {
  display: flex;
}
.demo-contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.demo-contact-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: min(92vh, 720px);
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 24px;
  box-shadow: 0 30px 80px -20px rgba(37, 99, 235, 0.15);
  overflow: hidden;
}
.demo-contact-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: rgba(241, 245, 249, 0.9);
  color: #64748b;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.demo-contact-modal__close:hover {
  background: #e2e8f0;
  color: #475569;
}
.demo-contact-modal__head {
  position: relative;
  padding: 40px 32px 16px;
  text-align: center;
}
.demo-contact-modal__glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 128px;
  background: rgba(59, 130, 246, 0.1);
  filter: blur(40px);
  border-radius: 999px;
  pointer-events: none;
}
.demo-contact-modal__icon-wrap {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid rgba(191, 219, 254, 0.8);
  color: #2563eb;
  font-size: 24px;
}
.demo-contact-modal__title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.02em;
}
.demo-contact-modal__desc {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
}
.demo-contact-modal__body {
  position: relative;
  z-index: 1;
  padding: 0 32px 28px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
.demo-contact-modal__form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}
.demo-contact-modal__field {
  position: relative;
}
.demo-contact-modal__field--textarea .demo-contact-modal__field-icon {
  top: 14px;
  transform: none;
}
.demo-contact-modal__field-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 16px;
  pointer-events: none;
  z-index: 1;
}
.demo-contact-modal__field:focus-within .demo-contact-modal__field-icon {
  color: #2563eb;
}
.demo-contact-modal__input,
.demo-contact-modal__textarea {
  width: 100%;
  padding: 0 16px 0 44px;
  box-sizing: border-box;
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.6);
  font-size: 14px;
  color: #1e293b;
  outline: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.demo-contact-modal__input {
  height: 46px;
}
.demo-contact-modal__textarea {
  min-height: 96px;
  padding: 12px 16px 12px 44px;
  resize: none;
  line-height: 1.45;
}
.demo-contact-modal__input::placeholder,
.demo-contact-modal__textarea::placeholder {
  color: #94a3b8;
}
.demo-contact-modal__input:focus,
.demo-contact-modal__textarea:focus {
  border-color: #3b82f6;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}
/* 验证码行：左输入约 72% + 右验证码图约 28%，双胶囊 */
.demo-contact-modal__row--captcha {
  display: flex;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}
.demo-contact-modal__row--captcha .demo-contact-modal__field--captcha {
  flex: 1 1 0;
  min-width: 0;
}
.demo-contact-modal__input--captcha {
  height: 48px;
  border-radius: 999px;
  padding: 0 18px 0 44px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  box-shadow: none;
}
.demo-contact-modal__row--captcha .demo-contact-modal__field--captcha .demo-contact-modal__field-icon {
  color: #94a3b8;
}
.demo-contact-modal__row--captcha .demo-contact-modal__field--captcha:focus-within .demo-contact-modal__field-icon {
  color: #64748b;
}
.demo-contact-modal__input--captcha::placeholder {
  color: #94a3b8;
}
.demo-contact-modal__input--captcha:focus {
  border-color: #93c5fd;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.demo-contact-modal__captcha-img {
  flex: 0 0 28%;
  min-width: 100px;
  max-width: 124px;
  width: auto;
  height: 48px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-sizing: border-box;
}
.demo-contact-modal__captcha-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}
.demo-contact-modal__submit {
  width: 100%;
  height: 48px;
  margin-top: 4px;
  border: none;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 20px -6px rgba(37, 99, 235, 0.4);
  transition: background 0.15s, box-shadow 0.15s;
}
.demo-contact-modal__submit:hover {
  background: #1d4ed8;
  box-shadow: 0 12px 24px -6px rgba(37, 99, 235, 0.5);
}
.demo-contact-modal__hint {
  margin: 4px 0 0;
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
}
.demo-contact-modal__hint a {
  color: #3b82f6;
  text-decoration: none;
}
.demo-contact-modal__hint a:hover {
  text-decoration: underline;
}
/* 成功态 */
.demo-contact-modal__success {
  display: none;
  position: relative;
  padding: 48px 32px 40px;
  text-align: center;
}
.demo-contact-modal.is-success .demo-contact-modal__head,
.demo-contact-modal.is-success .demo-contact-modal__body {
  display: none;
}
.demo-contact-modal.is-success .demo-contact-modal__success {
  display: block;
}
.demo-contact-modal__success-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 192px;
  height: 192px;
  background: rgba(16, 185, 129, 0.12);
  filter: blur(50px);
  border-radius: 999px;
  pointer-events: none;
}
.demo-contact-modal__success-icon {
  position: relative;
  z-index: 1;
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #ecfdf5;
  color: #10b981;
  font-size: 40px;
}
.demo-contact-modal__success-title {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
}
.demo-contact-modal__success-text {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 15px;
  color: #64748b;
  line-height: 1.55;
}
