/* 官网业务线索提交浮层 */

.lead-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 999;
  background: #2ec27e;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  box-shadow: 0 6px 20px -4px rgba(46, 194, 126, 0.55),
    0 0 0 4px rgba(46, 194, 126, 0.12);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lead-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -4px rgba(46, 194, 126, 0.65),
    0 0 0 6px rgba(46, 194, 126, 0.15);
  background: #1f9a63;
}
.lead-fab svg { width: 18px; height: 18px; }
@media (max-width: 640px) {
  .lead-fab { right: 16px; bottom: 16px; padding: 12px 16px; font-size: 13px; }
  .lead-fab span { display: none; }
}

/* Modal */
.lead-modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(8, 4, 32, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: lead-fade-in 0.2s ease;
}
@keyframes lead-fade-in { from { opacity: 0; } to { opacity: 1; } }

.lead-modal {
  background: #ffffff;
  border-radius: 18px;
  width: min(480px, 100%);
  max-height: 92vh;
  overflow: auto;
  box-shadow: 0 20px 60px -10px rgba(10, 4, 32, 0.45),
    0 0 0 1px rgba(46, 194, 126, 0.15);
  animation: lead-pop-in 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.2);
}
@keyframes lead-pop-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }

.lead-modal-head {
  padding: 22px 26px 0;
}
.lead-modal-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #1a2332;
}
.lead-modal-head p {
  margin: 6px 0 0;
  font-size: 13px;
  color: #8a9bb3;
  line-height: 1.6;
}
.lead-modal-close {
  position: absolute;
  top: 16px; right: 18px;
  background: transparent; border: none;
  font-size: 24px; line-height: 1;
  color: #8a9bb3; cursor: pointer;
  padding: 4px 8px; border-radius: 8px;
}
.lead-modal-close:hover { background: #f6f8fa; color: #1a2332; }

.lead-modal-body { padding: 20px 26px 10px; position: relative; }
.lead-modal { position: relative; }

.lead-field { margin-bottom: 14px; }
.lead-field label {
  display: block;
  font-size: 12px;
  color: #4b5d76;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.lead-field label .req { color: #ff5f7a; }
.lead-field label .opt { color: #a0b1c8; font-weight: 400; font-size: 11px; margin-left: 4px; }
.lead-field input,
.lead-field select,
.lead-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e4eaf1;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  background: #ffffff;
  color: #1a2332;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.lead-field input:focus,
.lead-field select:focus,
.lead-field textarea:focus {
  outline: none;
  border-color: #2ec27e;
  box-shadow: 0 0 0 3px rgba(46, 194, 126, 0.15);
}
.lead-field textarea {
  resize: vertical; min-height: 90px;
}

.lead-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { .lead-row2 { grid-template-columns: 1fr; } }

.lead-field-row {
  display: flex; gap: 6px;
  border: 1px solid #e4eaf1;
  border-radius: 10px; padding: 4px;
  background: #fbfcfe;
}
.lead-field-row label {
  flex: 0 0 auto; margin: 0;
  padding: 6px 12px; font-size: 12px;
  border-radius: 7px; cursor: pointer;
  font-weight: 500; color: #8a9bb3;
  transition: all 0.15s;
}
.lead-field-row input[type="radio"] { display: none; }
.lead-field-row input[type="radio"]:checked + span {
  background: #2ec27e; color: #fff;
}
.lead-field-row span {
  display: inline-block; padding: 6px 12px;
  border-radius: 7px; font-size: 12px;
  font-weight: 500; color: #8a9bb3;
  transition: all 0.15s;
  cursor: pointer;
}

.lead-modal-foot {
  padding: 14px 26px 22px;
  display: flex; justify-content: space-between; align-items: center;
}
.lead-hint { font-size: 12px; color: #8a9bb3; line-height: 1.5; }
.lead-submit {
  background: #2ec27e; color: #fff;
  border: 0; border-radius: 10px;
  padding: 11px 26px; font-size: 14px; font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px -2px rgba(46, 194, 126, 0.4);
  transition: background 0.18s, box-shadow 0.18s, transform 0.15s;
}
.lead-submit:hover:not(:disabled) {
  background: #1f9a63;
  box-shadow: 0 6px 18px -2px rgba(46, 194, 126, 0.5);
  transform: translateY(-1px);
}
.lead-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.lead-err {
  background: #fff1f3; color: #c43c55;
  border: 1px solid #ffd6dc; border-radius: 8px;
  padding: 10px 14px; font-size: 13px;
  margin-bottom: 10px;
}
.lead-ok {
  background: #d9f5e7; color: #146240;
  border: 1px solid #b8e6cc; border-radius: 10px;
  padding: 22px 18px; text-align: center;
  line-height: 1.8;
}
.lead-ok .ok-icon {
  width: 48px; height: 48px;
  background: #2ec27e; color: #fff;
  border-radius: 50%; margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
