/* V5.8 — 首页用户评价扩充：保留原有视觉风格，优化卡片密度与响应式布局 */
#reviews .testimonials {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 16px;
}

#reviews .testimonial {
  display: flex;
  flex-direction: column;
  min-height: 178px;
  margin: 0;
  padding: 22px;
  transform: none;
}

#reviews .testimonial:nth-child(2) {
  margin-top: 0;
}

#reviews .testimonial blockquote {
  flex: 1;
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.78;
}

#reviews .testimonial .user {
  margin-top: auto;
}

#reviews .testimonial .avatar {
  flex: 0 0 42px;
}

#reviews .testimonial:nth-child(5n + 2) .avatar {
  background: linear-gradient(145deg, #f0c6d8, #bb83bf);
}

#reviews .testimonial:nth-child(5n + 3) .avatar {
  background: linear-gradient(145deg, #c5d7f5, #8c9fe1);
}

#reviews .testimonial:nth-child(5n + 4) .avatar {
  background: linear-gradient(145deg, #f3d9b4, #d6a16d);
}

#reviews .testimonial:nth-child(5n) .avatar {
  background: linear-gradient(145deg, #c5e4d9, #77b6a0);
}

@media (max-width: 1100px) {
  #reviews .testimonials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  #reviews .testimonials {
    grid-template-columns: minmax(0, 1fr);
  }

  #reviews .testimonial {
    min-height: 0;
    padding: 20px;
  }
}
