/* ==================== 留资表单组件样式 ==================== */

.lead-row { display: flex; justify-content: center; margin-bottom: 14px; }
.lead-card {
  width: 92%; max-width: 420px;
  background: linear-gradient(145deg, #ffffff 0%, #f8fffb 100%);
  border-radius: 14px; border: 1px solid rgba(45,179,102,0.15);
  box-shadow: 0 3px 16px rgba(45,179,102,0.10); overflow: hidden;
  animation: leadSlideIn 0.35s ease-out;
}
.page[data-theme="dark"] .lead-card {
  background: linear-gradient(145deg, #2a2a2a 0%, #1f3028 100%);
  border-color: rgba(74,222,128,0.12); box-shadow: 0 3px 16px rgba(0,0,0,0.3);
}
@keyframes leadSlideIn {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.lead-header { padding: 16px 18px 12px; text-align: center; }
.lead-icon-text { font-size: 22px; margin-bottom: 6px; }
.lead-title { font-size: 13.5px; font-weight: 600; color: var(--text-primary); line-height: 1.55; }
.lead-body { padding: 0 18px 16px; }
.lead-field { margin-bottom: 10px; }
.lead-label {
  display: block; font-size: 11.5px; font-weight: 500;
  color: var(--text-secondary); margin-bottom: 5px;
}
.lead-input {
  width: 100%; height: 36px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--border-color); background: var(--bg-input);
  color: var(--text-primary); font-size: 13.5px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s; box-sizing: border-box; font-family: inherit;
}
.lead-input::placeholder { color: var(--text-muted); font-size: 12.5px; }
.lead-input:focus { border-color: var(--primary); box-shadow: 0 0 0 2.5px rgba(45,179,102,0.1); }
textarea.lead-input { height: auto; min-height: 52px; max-height: 80px; padding: 9px 12px; resize: none; line-height: 1.5; }

.lead-submit-btn {
  width: 100%; height: 40px; margin-top: 4px; border-radius: 10px;
  border: none; background: linear-gradient(135deg, #2DB366 0%, #1A924D 100%);
  color: #fff; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: opacity 0.15s, transform 0.1s; letter-spacing: 0.3px;
}
.lead-submit-btn:hover:not(.disabled) { opacity: 0.88; }
.lead-submit-btn:active:not(.disabled) { transform: scale(0.97); }
.lead-submit-btn.disabled { opacity: 0.5; cursor: not-allowed; }

/* 提交成功状态 */
.lead-success-body { padding: 24px 20px; text-align: center; }
.lead-success-icon { font-size: 32px; margin-bottom: 8px; }
.lead-success-text { font-size: 13.5px; color: var(--text-primary); line-height: 1.65; }
.lead-success-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 6px; line-height: 1.5; }

/* 需求描述文本域 */
.lead-textarea { min-height: 52px !important; max-height: 80px; resize: none; }

/* 系统消息（居中提示） */
.msg-row.center { display: flex; justify-content: center; margin: 8px 0; }
.system-msg {
  display: inline-block; max-width: 85%; padding: 6px 14px;
  border-radius: 10px; font-size: 12.5px; color: #6b7280;
  background: rgba(107,114,128,0.06); text-align: center;
  line-height: 1.4;
}
