/* CTA优化样式 - 第13轮优化 */

/* Pulse CTA 动画 */
.pulse-cta {
  position: relative;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  box-shadow: 0 0 0 0 rgba(201, 169, 97, 0.4);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(201, 169, 97, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(201, 169, 97, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(201, 169, 97, 0);
  }
}

/* 主按钮增强 */
.btn-primary {
  display: inline-block; 
  background: linear-gradient(135deg, #D4AF37, #C9A961); 
  color: #fff;
  padding: 14px 36px; 
  border-radius: 50px; 
  font-size: 16px;
  font-weight: 600; 
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  position: relative; 
  overflow: hidden;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
}

.btn-primary::after {
  content: ''; 
  position: absolute; 
  inset: 0; 
  background: rgba(255,255,255,0.15);
  transform: translateX(-100%); 
  transition: transform 0.4s;
}

.btn-primary:hover::after { 
  transform: translateX(0); 
}

.btn-primary:hover { 
  transform: translateY(-2px) scale(1.02); 
  color: #fff; 
  box-shadow: 0 8px 25px rgba(201, 169, 97, 0.3);
  background: linear-gradient(135deg, #E5C85C, #D4AF37);
}

/* 次级按钮增强 */
.btn-secondary {
  display: inline-block; 
  color: #D4AF37; 
  padding: 12px 30px; 
  font-size: 16px; 
  font-weight: 500;
  background: transparent;
  border: 2px solid #D4AF37;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}

.btn-secondary:hover { 
  background: #D4AF37;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* 表单提交按钮增强 */
.form-submit {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #D4AF37, #C9A961);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-submit:hover {
  background: linear-gradient(135deg, #E5C85C, #D4AF37);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.form-submit:active {
  transform: translateY(-1px);
}

/* 一键拨号按钮移动端优化 */
.btn-phone {
  background: linear-gradient(135deg, #27AE60, #2ECC71);
  color: white;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-phone:hover {
  background: linear-gradient(135deg, #2ECC71, #27AE60);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
}

/* 紧迫感标签增强 */
.urgency-badge {
  background: linear-gradient(135deg, #E74C3C, #C0392B);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  display: inline-block;
  animation: urgencyGlow 2s ease-in-out infinite alternate;
}

@keyframes urgencyGlow {
  from {
    box-shadow: 0 0 10px rgba(231, 76, 60, 0.5);
  }
  to {
    box-shadow: 0 0 20px rgba(231, 76, 60, 0.8);
  }
}

/* 移动端CTA优化 */
@media (max-width: 768px) {
  .btn-primary, .btn-secondary {
    padding: 12px 24px;
    font-size: 14px;
    min-width: 150px;
  }
  
  .form-submit {
    padding: 16px;
    font-size: 1.1rem;
  }
  
  .pulse-cta {
    animation: pulseMobile 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  }
  
  @keyframes pulseMobile {
    0% {
      box-shadow: 0 0 0 0 rgba(201, 169, 97, 0.3);
    }
    70% {
      box-shadow: 0 0 0 8px rgba(201, 169, 97, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(201, 169, 97, 0);
    }
  }
}

/* 表单输入框增强 */
.form-group input[type=text],
.form-group input[type=tel],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #E0E0E0;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: #FAFAFA;
}

.form-group input[type=text]:focus,
.form-group input[type=tel]:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #D4AF37;
  background: #FFF;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* 表单组间距优化 */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  display: block;
}

/* 成功提示样式 */
.form-success {
  background: linear-gradient(135deg, #27AE60, #2ECC71);
  color: white;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  margin-top: 16px;
  font-weight: 600;
  display: none;
}

/* 错误提示样式 */
.form-error {
  background: linear-gradient(135deg, #E74C3C, #C0392B);
  color: white;
  padding: 12px;
  border-radius: 8px;
  margin-top: 8px;
  font-size: 14px;
  display: none;
}

/* ==================== 第13轮CTA优化样式 ==================== */

/* 移动端底部固定CTA按钮 */
.mobile-cta-fixed {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  padding: 10px 15px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  gap: 10px;
}

.mobile-cta-main {
  flex: 1;
  background: linear-gradient(135deg, #D4AF37, #C9A961);
  color: white;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 25px;
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.mobile-cta-phone {
  background: linear-gradient(135deg, #27AE60, #2ECC71);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 20px;
  transition: transform 0.3s ease;
}

.mobile-cta-phone:hover {
  transform: scale(1.1);
}

.mobile-cta-form {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 20px;
  transition: transform 0.3s ease;
}

.mobile-cta-form:hover {
  transform: scale(1.1);
}

/* PC端粘性CTA按钮 */
.sticky-cta-desktop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  padding: 16px 20px;
  z-index: 9998;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 380px;
  display: none;
}

.sticky-cta-desktop.show {
  opacity: 1;
  transform: translateY(0);
  display: block;
}

.sticky-cta-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sticky-cta-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sticky-cta-title {
  font-size: 14px;
  font-weight: 600;
  color: #E74C3C;
}

.sticky-cta-count {
  font-size: 12px;
  color: #666;
}

.count-highlight {
  color: #D4AF37;
  font-weight: 700;
  font-size: 14px;
}

.count-urgent {
  color: #E74C3C;
  font-weight: 700;
  font-size: 14px;
}

.sticky-cta-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.sticky-cta-buttons .btn-primary {
  flex: 1;
  padding: 10px 20px;
  font-size: 14px;
}

.sticky-cta-buttons .btn-phone {
  white-space: nowrap;
  padding: 10px 16px;
  font-size: 13px;
}

/* 返回顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9997;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: none;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  display: block;
}

.back-to-top-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 50%;
  text-decoration: none;
  font-size: 24px;
  font-weight: 300;
  transition: all 0.3s ease;
}

.back-to-top-link:hover {
  background: #D4AF37;
  transform: scale(1.1);
}

/* 表单反馈弹窗 */
.form-feedback-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.form-feedback-box {
  background: white;
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.feedback-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #27AE60, #2ECC71);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  margin: 0 auto 20px;
}

.form-feedback-box.error .feedback-icon {
  background: linear-gradient(135deg, #E74C3C, #C0392B);
}

.feedback-title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
}

.feedback-message {
  font-size: 16px;
  color: #666;
  margin-bottom: 24px;
  line-height: 1.6;
}

.feedback-close {
  background: linear-gradient(135deg, #D4AF37, #C9A961);
  color: white;
  border: none;
  padding: 12px 32px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.feedback-close:hover {
  background: linear-gradient(135deg, #E5C85C, #D4AF37);
  transform: translateY(-2px);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .mobile-cta-fixed {
    display: flex;
  }

  .sticky-cta-desktop {
    display: none !important;
  }

  .back-to-top {
    bottom: 80px;
    left: 15px;
  }

  .form-feedback-box {
    padding: 30px 20px;
  }

  .feedback-icon {
    width: 60px;
    height: 60px;
    font-size: 36px;
  }

  .feedback-title {
    font-size: 20px;
  }

  .feedback-message {
    font-size: 14px;
  }
}

@media (min-width: 769px) {
  .mobile-cta-fixed {
    display: none;
  }
}

/* PC端滚动超过首屏后显示粘性CTA */
@media (min-width: 769px) {
  .sticky-cta-desktop.show {
    display: block;
  }
}

/* 信任徽章样式 - 文案优化第13轮 */
.trust-badges {
  padding: 60px 20px;
  background: #faf8f5;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.trust-badge:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(201, 169, 97, 0.15);
}

.badge-icon {
  font-size: 48px;
  line-height: 1;
}

.badge-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.badge-content strong {
  font-size: 18px;
  color: #2a2520;
  font-weight: 600;
}

.badge-content span {
  font-size: 14px;
  color: #666;
}

@media (max-width: 768px) {
  .trust-badges {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 40px 20px;
  }

  .trust-badge {
    padding: 20px;
  }

  .badge-icon {
    font-size: 36px;
  }

  .badge-content strong {
    font-size: 16px;
  }
}

/* 客户见证增强样式 - 文案优化第13轮 */
.testimonial-highlight {
  background: #f8f8f8;
  border-left: 4px solid #C9A961;
  padding: 20px;
  margin: 15px 0;
  border-radius: 8px;
}

.highlight-badge {
  display: inline-block;
  background: #C9A961;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
}

.testimonial-card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
}

.testimonial-card:hover {
  box-shadow: 0 8px 24px rgba(201, 169, 97, 0.15);
}

.project-type {
  display: block;
  font-size: 12px;
  color: #666;
  margin: 2px 0;
}

.comment {
  display: block;
  font-size: 13px;
  color: #C9A961;
  font-style: italic;
  margin-top: 5px;
}

.testimonials {
  padding: 60px 0;
  background: #faf8f5;
}

.testimonials h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .testimonial-card {
    padding: 20px;
  }
  
  .testimonial-highlight {
    padding: 15px;
  }
}
