/* ============================================
   全局板块手工设计优化
   ============================================ */

/* ============ 1. 客户评价板块优化 ============ */

.testimonials-section {
  padding: 100px 0 80px;
  background: white;
  position: relative;
}

.testimonials-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(21, 101, 192, 0.15) 50%,
    transparent 100%
  );
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 28px;
  margin-top: 60px;
}

/* 评价卡片优化 */
.testimonial-card {
  background: white;
  border: 1px solid rgba(21, 101, 192, 0.1);
  border-radius: 18px 16px 20px 14px;
  padding: 32px 28px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 24px;
  font-size: 80px;
  font-family: Georgia, serif;
  line-height: 1;
  color: rgba(21, 101, 192, 0.08);
  z-index: 0;
}

.testimonial-card:hover {
  transform: translateY(-8px) rotate(0.5deg);
  box-shadow: 0 12px 32px rgba(21, 101, 192, 0.12);
  border-color: rgba(21, 101, 192, 0.2);
}

/* 错落布局 */
.testimonials-grid .testimonial-card:nth-child(3n+1) {
  margin-top: 12px;
}

.testimonials-grid .testimonial-card:nth-child(3n+2) {
  margin-top: -6px;
}

.testimonials-grid .testimonial-card:nth-child(3n+3) {
  margin-top: 8px;
}

.testimonials-grid .testimonial-card:hover {
  margin-top: 0;
}

.testimonial-rating {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.testimonial-rating svg {
  width: 18px;
  height: 18px;
  color: #ffc107;
  filter: drop-shadow(0 1px 2px rgba(255, 193, 7, 0.3));
  transition: transform 0.3s ease;
}

.testimonial-card:hover .testimonial-rating svg {
  transform: scale(1.1);
}

.testimonial-text {
  font-size: 16px;
  line-height: 1.8;
  color: #616161;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px dashed rgba(21, 101, 192, 0.2);
  position: relative;
  z-index: 1;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1565c0 0%, #42a5f5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: white;
  box-shadow: 0 3px 10px rgba(21, 101, 192, 0.25);
  border: 2px solid white;
}

.author-name {
  font-size: 16px;
  font-weight: 700;
  color: #1565c0;
  margin-bottom: 3px;
}

.author-title {
  font-size: 13px;
  color: #757575;
  font-weight: 500;
}

/* ============ 2. FAQ板块优化 ============ */

.faq-section {
  padding: 100px 0 80px;
  background: linear-gradient(180deg, #f8fafc 0%, white 100%);
  position: relative;
}

.faq-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(21, 101, 192, 0.2) 50%,
    transparent 100%
  );
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 24px;
  margin-top: 60px;
}

.faq-item {
  background: white;
  border: 1px solid rgba(21, 101, 192, 0.1);
  border-radius: 14px 16px 14px 16px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
}

.faq-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg,
    rgba(21, 101, 192, 0.4) 0%,
    rgba(66, 165, 245, 0.4) 100%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 14px 0 0 14px;
}

.faq-item:hover {
  transform: translateX(6px);
  box-shadow: 4px 12px 24px rgba(21, 101, 192, 0.08);
  border-color: rgba(21, 101, 192, 0.2);
}

.faq-item:hover::before {
  opacity: 1;
}

.faq-question {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
}

.faq-number {
  font-size: 32px;
  font-weight: 900;
  background: linear-gradient(135deg, #1565c0 0%, #42a5f5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  opacity: 0.85;
  flex-shrink: 0;
  font-family: 'Arial', sans-serif;
}

.faq-question h3 {
  flex: 1;
  font-size: 17px;
  font-weight: 700;
  color: #1565c0;
  line-height: 1.5;
  margin: 0;
  padding-top: 6px;
}

.faq-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 8px;
  stroke: #42a5f5;
  stroke-width: 2.5;
  transition: transform 0.4s ease, stroke 0.3s ease;
}

.faq-item:hover .faq-icon {
  transform: translateY(3px);
  stroke: #1565c0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.23, 1, 0.32, 1),
              opacity 0.4s ease,
              margin-top 0.4s ease;
  opacity: 0;
  margin-top: 0;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  opacity: 1;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed rgba(21, 101, 192, 0.2);
}

.faq-answer p {
  font-size: 15px;
  line-height: 1.8;
  color: #616161;
  margin: 0;
  padding-left: 48px;
}

/* ============ 3. 团队板块优化 ============ */

.team-section {
  padding: 100px 0 80px;
  background: white;
  position: relative;
}

.team-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(21, 101, 192, 0.15) 50%,
    transparent 100%
  );
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 32px;
  margin-top: 60px;
}

.team-card {
  background: white;
  border-radius: 22px 18px 20px 24px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(21, 101, 192, 0.08);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.team-card:hover {
  transform: translateY(-12px) rotate(-0.3deg);
  box-shadow: 0 16px 40px rgba(21, 101, 192, 0.14);
  border-color: rgba(21, 101, 192, 0.18);
}

.team-photo {
  position: relative;
  height: 240px;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  overflow: hidden;
}

.team-avatar {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1565c0 0%, #42a5f5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  font-weight: 700;
  color: white;
  box-shadow: 0 8px 24px rgba(21, 101, 192, 0.3);
  border: 3px solid white;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.team-card:hover .team-avatar {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 12px 32px rgba(21, 101, 192, 0.4);
}

.team-info {
  padding: 24px 20px;
  text-align: center;
}

.team-info h3 {
  font-size: 21px;
  font-weight: 700;
  color: #1565c0;
  margin-bottom: 6px;
}

.team-role {
  display: inline-block;
  padding: 5px 16px;
  background: rgba(21, 101, 192, 0.08);
  color: #1565c0;
  font-size: 13px;
  font-weight: 600;
  border-radius: 16px 18px 18px 16px;
  margin-bottom: 14px;
  border: 1px solid rgba(21, 101, 192, 0.12);
  transition: all 0.3s ease;
}

.team-card:hover .team-role {
  background: rgba(21, 101, 192, 0.15);
  transform: translateY(-2px);
}

.team-desc {
  font-size: 14px;
  line-height: 1.7;
  color: #757575;
  margin: 0;
}

/* ============ 4. 表单板块优化 ============ */

.consultation-section {
  padding: 100px 0 80px;
  background: linear-gradient(180deg, white 0%, #f8fafc 100%);
  position: relative;
}

.consultation-wrapper {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  margin-top: 60px;
}

.info-card {
  background: white;
  padding: 32px 28px;
  border-radius: 18px 16px 20px 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(21, 101, 192, 0.1);
  transition: all 0.4s ease;
}

.info-card:hover {
  transform: translateX(8px);
  box-shadow: 6px 16px 32px rgba(21, 101, 192, 0.1);
  border-color: rgba(21, 101, 192, 0.2);
}

.info-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: transform 0.4s ease;
  border: 2px solid rgba(21, 101, 192, 0.1);
}

.info-card:hover .info-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, #1565c0 0%, #42a5f5 100%);
}

.info-icon svg {
  width: 28px;
  height: 28px;
  stroke: #1565c0;
  transition: stroke 0.4s ease;
}

.info-card:hover .info-icon svg {
  stroke: white;
}

.info-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1565c0;
  margin-bottom: 8px;
}

.info-card p {
  font-size: 19px;
  font-weight: 700;
  color: #0d47a1;
  margin-bottom: 4px;
  line-height: 1.3;
}

.info-card span {
  font-size: 13px;
  color: #757575;
}

.consultation-form {
  background: white;
  padding: 40px 36px;
  border-radius: 24px 20px 22px 26px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(21, 101, 192, 0.1);
  position: relative;
  overflow: hidden;
}

.consultation-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg,
    rgba(21, 101, 192, 0.6) 0%,
    rgba(66, 165, 245, 0.6) 50%,
    rgba(21, 101, 192, 0.6) 100%
  );
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #1565c0;
  margin-bottom: 8px;
}

.form-group label svg {
  width: 18px;
  height: 18px;
  stroke: #42a5f5;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(21, 101, 192, 0.15);
  border-radius: 10px 12px 12px 10px;
  font-size: 14px;
  color: #424242;
  background: #fafafa;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(21, 101, 192, 0.4);
  background: white;
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.08);
}

.submit-btn {
  width: 100%;
  padding: 14px 32px;
  background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
  color: white;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 10px 12px 12px 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.25);
  margin-top: 8px;
}

.submit-btn:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 8px 20px rgba(21, 101, 192, 0.3);
}

/* 响应式优化 */
@media (max-width: 1024px) {
  .testimonials-grid,
  .faq-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .consultation-wrapper {
    grid-template-columns: 1fr;
  }

  .testimonials-grid .testimonial-card,
  .faq-grid .faq-item {
    margin-top: 0 !important;
  }
}

@media (max-width: 768px) {
  .testimonials-grid,
  .faq-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-section,
  .faq-section,
  .team-section,
  .consultation-section {
    padding: 70px 0 60px;
  }

  .consultation-form {
    padding: 32px 24px;
  }

  .form-row {
    grid-template-columns: 1fr !important;
  }
}
