/* ============================================
   乐宸官网 Phase 0 - 智能线索捕获 & 预约演示 样式
   三流归一 · 站点即枢纽
   ============================================ */

/* ========== 浮动 CTA 按钮 ========== */
.rc-cta-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.rc-cta-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.rc-cta-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.rc-cta-btn:hover::after {
  opacity: 1;
}

.rc-cta-btn:active {
  transform: scale(0.96);
}

.rc-cta-primary {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  color: white;
}

.rc-cta-primary::after {
  background: linear-gradient(135deg, #6d28d9, #8b5cf6);
}

.rc-cta-primary:hover {
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.4);
  transform: translateY(-2px);
}

.rc-cta-secondary {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
}

.rc-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(167, 139, 250, 0.4);
  color: white;
  transform: translateY(-2px);
}

.rc-cta-icon {
  font-size: 16px;
  line-height: 1;
}

.rc-cta-text {
  line-height: 1;
}

/* ========== 弹窗遮罩 ========== */
.rc-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: rcFadeIn 0.2s ease;
}

.rc-modal-overlay.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.rc-modal {
  background: #121218;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  width: 90%;
  max-width: 560px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  animation: rcSlideUp 0.3s ease;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.rc-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #94a3b8;
  font-size: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
  line-height: 1;
}

.rc-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.rc-modal-body {
  padding: 36px 32px 32px;
}

/* ========== 表单头部 ========== */
.rc-form-header {
  text-align: center;
  margin-bottom: 28px;
}

.rc-form-steps {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}

.rc-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transition: all 0.3s;
}

.rc-step-dot.active {
  background: #a78bfa;
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.4);
  width: 28px;
  border-radius: 5px;
}

.rc-step-dot.done {
  background: #6d28d9;
}

.rc-form-title {
  font-size: 22px;
  font-weight: 700;
  color: white;
  margin: 0;
}

.rc-form-subtitle {
  font-size: 14px;
  color: #94a3b8;
  margin-top: 8px;
}

/* ========== 表单字段 ========== */
.rc-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.rc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rc-label {
  font-size: 13px;
  font-weight: 500;
  color: #cbd5e1;
}

.rc-required {
  color: #ff4444;
}

.rc-input {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px 16px;
  color: white;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.2s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.rc-input:focus {
  border-color: #a78bfa;
  background: rgba(167, 139, 250, 0.06);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1);
}

.rc-input::placeholder {
  color: #475569;
}

.rc-input option {
  background: #1a1a24;
  color: white;
}

.rc-textarea {
  min-height: 80px;
  resize: vertical;
}

select.rc-input {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* ========== 按钮 ========== */
.rc-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.rc-btn {
  flex: 1;
  padding: 12px 24px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.rc-btn-primary {
  background: linear-gradient(135deg, #7c3aed, #a78bfa);
  color: white;
}

.rc-btn-primary:hover {
  background: linear-gradient(135deg, #6d28d9, #8b5cf6);
  transform: translateY(-1px);
}

.rc-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.rc-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.rc-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

/* ========== 确认页 ========== */
.rc-confirm {
  text-align: left;
}

.rc-summary-table {
  width: 100%;
  border-collapse: collapse;
}

.rc-summary-table td {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
}

.rc-summary-table td:first-child {
  color: #64748b;
  width: 80px;
  font-weight: 500;
}

.rc-summary-table td:last-child {
  color: #e2e8f0;
}

.rc-form-note {
  font-size: 12px;
  color: #64748b;
  margin-top: 16px;
  text-align: center;
}

/* ========== 成功页 ========== */
.rc-success {
  text-align: center;
  padding: 20px 0;
}

.rc-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #059669, #34d399);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  margin: 0 auto 20px;
  animation: rcScaleIn 0.3s ease;
}

.rc-success h3 {
  font-size: 20px;
  color: white;
  margin: 0 0 12px;
}

.rc-success p {
  font-size: 14px;
  color: #94a3b8;
  margin: 0 0 24px;
  line-height: 1.6;
}

/* ========== 错误提示 ========== */
.rc-form-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  text-align: center;
  animation: rcFadeIn 0.2s ease;
}

/* ========== 动画 ========== */
@keyframes rcFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes rcSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes rcScaleIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

/* ========== 滚动条 ========== */
.rc-modal::-webkit-scrollbar {
  width: 6px;
}

.rc-modal::-webkit-scrollbar-track {
  background: transparent;
}

.rc-modal::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.rc-modal::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ========== 响应式 ========== */
@media (max-width: 640px) {
  .rc-modal {
    width: 96%;
    max-height: 90vh;
    border-radius: 12px;
  }

  .rc-modal-body {
    padding: 28px 20px 24px;
  }

  .rc-cta-container {
    bottom: 16px;
    left: 16px;
    gap: 8px;
  }

  .rc-cta-btn {
    padding: 10px 16px;
    font-size: 13px;
  }

  .rc-cta-text {
    display: none;  /* 移动端只显示图标 */
  }

  .rc-cta-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    justify-content: center;
    padding: 0;
  }

  .rc-cta-icon {
    font-size: 20px;
  }

  .rc-form-actions {
    flex-direction: column;
  }

  .rc-form-title {
    font-size: 18px;
  }
}
