/* 第14轮CTA优化样式 */
/* 优化时间：2026-04-04 10:00 */

/* 渐进式表单样式 */
.form-step-1, .form-step-2 {
  animation: fadeIn 0.3s ease-out;
}

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

.form-back {
  display: inline-block;
  margin-left: 10px;
  padding: 10px 20px;
  background: #f5f5f7;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.form-back:hover {
  background: #e8e8ea;
  border-color: #ccc;
}

/* A/B测试变体样式 */
.variant-a, .variant-b {
  transition: all 0.3s ease;
}

.variant-b {
  background: linear-gradient(135deg, #C9A961, #a8864d);
}

/* 成功反馈优化 */
.feedback-icon.success {
  font-size: 60px;
  color: #27ae60;
}

.feedback-benefits {
  list-style: none;
  padding: 0;
  margin: 15px 0;
  text-align: left;
}

.feedback-benefits li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  color: #27ae60;
  font-weight: 500;
}

.feedback-benefits li:before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: bold;
}

.feedback-cta {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}

.feedback-cta .btn-primary {
  flex: 1;
}

.feedback-close {
  padding: 10px 20px;
  background: transparent;
  color: #666;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.feedback-tips {
  margin-top: 20px;
  padding: 15px;
  background: #fff3cd;
  border-radius: 8px;
  font-size: 14px;
  text-align: left;
}

.feedback-tips strong {
  color: #856404;
}

/* 移动端CTA折叠优化 */
.mobile-cta-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: #C9A961;
  border-radius: 50%;
  position: fixed;
  bottom: 20px;
  right: 20px;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.mobile-cta-toggle.active {
  background: #a8864d;
  transform: rotate(45deg);
}

.mobile-cta-toggle .toggle-icon {
  font-size: 24px;
}

.mobile-cta-toggle .toggle-text {
  font-size: 10px;
  color: white;
  margin-top: 2px;
}

.mobile-cta-expanded {
  position: fixed;
  bottom: 90px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9998;
  animation: slideUp 0.3s ease-out;
}

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

/* 表单可见时，折叠按钮样式调整 */
.mobile-cta-fixed.form-visible .mobile-cta-toggle {
  opacity: 0.5;
}

.mobile-cta-fixed.form-visible .mobile-cta-toggle:hover {
  opacity: 1;
}

/* 第15轮CTA优化样式 - 2026-04-09 */
/* 强化紧迫感、视觉冲击力、社会认同 */

/* 主CTA按钮增强 */
.pulse-cta {
  animation: pulse-urgent 1.5s infinite, glow-effect 2s infinite;
  box-shadow: 0 4px 20px rgba(201, 169, 97, 0.4), 0 0 30px rgba(255, 100, 50, 0.2);
  position: relative;
  overflow: hidden;
}

.pulse-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shine-effect 3s infinite;
}

@keyframes pulse-urgent {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

@keyframes glow-effect {
  0%, 100% { box-shadow: 0 4px 20px rgba(201, 169, 97, 0.4), 0 0 30px rgba(255, 100, 50, 0.2); }
  50% { box-shadow: 0 4px 25px rgba(201, 169, 97, 0.6), 0 0 40px rgba(255, 100, 50, 0.3); }
}

@keyframes shine-effect {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

/* 紧迫感徽章样式 */
.urgency-badge {
  background: linear-gradient(135deg, #ff4444, #ff6b6b);
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 700;
  animation: badge-flash 2s infinite;
  display: inline-block;
}

@keyframes badge-flash {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.02); }
}

/* 社会认同数字动态效果 */
.cta-social-proof {
  position: relative;
  padding-left: 30px;
}

.cta-social-proof::before {
  content: '⚡';
  position: absolute;
  left: 0;
  animation: pulse-icon 1s infinite;
}

@keyframes pulse-icon {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.8; }
}

/* 表单提交按钮增强 */
.form-submit.pulse-cta {
  background: linear-gradient(135deg, #C9A961, #a8864d);
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 剩余名额高亮样式 */
.count-urgent, .count-highlight {
  font-size: 1.2em;
  font-weight: 800;
  color: #e74c3c;
  animation: number-pulse 1s infinite;
}

@keyframes number-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* 移动端CTA增强 */
.mobile-cta-main {
  background: linear-gradient(135deg, #C9A961, #a8864d);
  animation: mobile-pulse 2s infinite;
}

@keyframes mobile-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 2px 10px rgba(201, 169, 97, 0.3); }
  50% { transform: scale(1.02); box-shadow: 0 2px 15px rgba(201, 169, 97, 0.5); }
}

/* 粘性CTA桌面端增强 */
.sticky-cta-desktop.show {
  animation: slide-in-down 0.5s ease-out;
}

@keyframes slide-in-down {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.sticky-cta-buttons .btn-primary {
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 12px 28px;
}

/* CTA区域背景增强 */
.cta-section {
  background: linear-gradient(135deg, #f8f9fa, #fff3e6);
  border-top: 3px solid #C9A961;
  position: relative;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #C9A961, #ff6b6b, #C9A961);
  animation: gradient-flow 3s linear infinite;
}

@keyframes gradient-flow {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}

/* 表单标题动态效果 */
.form-title {
  position: relative;
  padding-bottom: 10px;
}

.form-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #C9A961, transparent);
  animation: underline-pulse 2s infinite;
}

@keyframes underline-pulse {
  0%, 100% { width: 60%; opacity: 1; }
  50% { width: 70%; opacity: 0.8; }
}

/* 步骤流程增强 */
.cta-steps .step {
  position: relative;
  padding: 10px 20px;
  background: rgba(201, 169, 97, 0.1);
  border-radius: 8px;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.cta-steps .step:hover {
  background: rgba(201, 169, 97, 0.2);
  transform: translateY(-2px);
}

.cta-steps .step::before {
  content: '→';
  position: absolute;
  right: -10px;
  color: #C9A961;
  font-weight: 700;
}

.cta-steps .step:last-child::before {
  content: '✓';
  right: 10px;
  color: #27ae60;
}

/* 响应式优化 */
@media (max-width: 768px) {
  .pulse-cta {
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 700;
  }
  
  .urgency-badge {
    font-size: 14px;
    padding: 6px 15px;
  }
  
  .cta-steps .step {
    padding: 8px 12px;
    font-size: 13px;
    margin: 0 3px;
  }
}

