/* 用户评价区域 */
.testimonials-section {
  padding: 4rem 0 2rem;
  overflow: hidden;
}

.section-subtitle {
  text-align: center;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

/* 荣誉墙按钮 */
.honor-wall-cta {
  text-align: center;
  margin-bottom: 3rem;
}

.honor-wall-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 3rem;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 165, 0, 0.05));
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.honor-wall-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
  transition: left 0.6s;
}

.honor-wall-btn:hover::before {
  left: 100%;
}

.honor-wall-btn:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 215, 0, 0.6);
  box-shadow: 0 8px 32px rgba(255, 215, 0, 0.3);
}

.honor-wall-btn .btn-icon {
  font-size: 2rem;
  filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.5));
}

.honor-wall-btn .btn-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
}

.honor-wall-btn .btn-desc {
  font-size: 0.875rem;
  color: rgba(255, 215, 0, 0.9);
}

/* 轮播容器 */
.testimonials-carousel {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-bottom: 1.5rem;
  /* 给hover效果留出上下空间 */
  padding: 0.5rem 0;
  /* 边缘淡出效果 */
  mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );
}

.testimonials-carousel:last-of-type {
  margin-bottom: 0;
}

/* 轮播轨道 */
.testimonials-track {
  display: flex;
  gap: 1.5rem;
  width: fit-content;
}

/* 正向滚动 - 使用transform动画 */
.testimonials-carousel:not(.testimonials-carousel-reverse) .testimonials-track {
  animation: scroll-seamless 40s linear infinite;
}

/* 反向滚动 */
.testimonials-carousel-reverse .testimonials-track {
  animation: scroll-seamless-reverse 35s linear infinite;
}

/* 悬停时暂停 - 必须放在动画定义之后，以确保优先级 */
.testimonials-carousel:hover .testimonials-track {
  animation-play-state: paused !important;
}

/* 无缝滚动动画 - 向左滚动 */
@keyframes scroll-seamless {
  from {
    transform: translateX(0);
  }
  to {
    /* 移动恰好一半的距离（6张卡片），因为我们会复制6张来实现无缝 */
    transform: translateX(calc((-320px - 1.5rem) * 6));
  }
}

/* 无缝滚动动画 - 向右滚动 */
@keyframes scroll-seamless-reverse {
  from {
    transform: translateX(calc((-320px - 1.5rem) * 6));
  }
  to {
    transform: translateX(0);
  }
}

/* 单个评价卡片 */
.testimonial-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 320px;
  max-width: 320px;
  flex-shrink: 0;
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(0, 255, 163, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 255, 163, 0.15);
}

/* 评价卡片头部 */
.testimonial-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg,
    rgba(0, 255, 163, 0.25),
    rgba(0, 224, 255, 0.25)
  );
  border: 2px solid rgba(0, 255, 163, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--primary-green);
  flex-shrink: 0;
}

.testimonial-info {
  flex: 1;
  min-width: 0;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.testimonial-role {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 评分 */
.testimonial-rating {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stars {
  font-size: 0.875rem;
  color: #FFB800;
  letter-spacing: 1px;
}

.score {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

/* 评价内容 */
.testimonial-quote {
  font-size: 0.875rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  flex: 1;
}

/* 标签 */
.testimonial-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(0, 255, 163, 0.1);
  border: 1px solid rgba(0, 255, 163, 0.2);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--primary-green);
  font-weight: 600;
  width: fit-content;
}

/* 响应式布局 */
@media (max-width: 768px) {
  .testimonials-section {
    padding: 3rem 0 1.5rem;
  }

  .section-subtitle {
    font-size: 0.8125rem;
    margin-bottom: 2rem;
  }

  .testimonials-track {
    gap: 1rem;
  }

  .testimonial-card {
    min-width: 280px;
    max-width: 280px;
    padding: 1.25rem;
  }

  /* 调整滚动距离 */
  @keyframes scroll-seamless {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(calc((-280px - 1rem) * 6));
    }
  }

  @keyframes scroll-seamless-reverse {
    from {
      transform: translateX(calc((-280px - 1rem) * 6));
    }
    to {
      transform: translateX(0);
    }
  }
}

@media (max-width: 480px) {
  .testimonials-section {
    padding: 2.5rem 0 1rem;
  }

  .section-subtitle {
    font-size: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
  }

  .testimonials-track {
    gap: 0.75rem;
  }

  .testimonial-card {
    min-width: 260px;
    max-width: 260px;
    padding: 1rem;
    gap: 0.875rem;
  }

  .testimonial-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.9375rem;
  }

  .testimonial-name {
    font-size: 0.875rem;
  }

  .testimonial-role {
    font-size: 0.6875rem;
  }

  .testimonial-quote {
    font-size: 0.8125rem;
  }

  .stars {
    font-size: 0.8125rem;
  }

  .score {
    font-size: 0.75rem;
  }

  .testimonial-tag {
    font-size: 0.6875rem;
    padding: 0.2rem 0.6rem;
  }

  /* 调整滚动距离 */
  @keyframes scroll-seamless {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(calc((-260px - 0.75rem) * 6));
    }
  }

  @keyframes scroll-seamless-reverse {
    from {
      transform: translateX(calc((-260px - 0.75rem) * 6));
    }
    to {
      transform: translateX(0);
    }
  }
}
