/* ===== Review Section Overall ===== */
.review-section {
  background: #fff;
  padding: 80px 20px;
  text-align: center;
}

.review-section__header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
}

.review-section__header .highlight {
  color: #FBCA19;
}

.review-section__header p {
  color: #4b5563;
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

/* ===== Carousel Container ===== */
.carousel {
  width: 100%;
  overflow-x: scroll;
  overflow-y: hidden;
  background: #fff;
  border-radius: 10px;
  padding: 20px 0;
  margin-top: 30px;
  box-sizing: border-box;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  user-select: none;
  touch-action: pan-y; /* ⭐ 防止横向滑动整页 */
  overscroll-behavior-x: contain;
  cursor: grab;

  /* 隐藏滚动条 */
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE 10+ */
}
.carousel::-webkit-scrollbar {
  display: none;                /* Chrome, Safari */
}


.carousel.dragging {
  cursor: grabbing;
}

.carousel {
  cursor: grab;
}

/* ===== Track ===== */
.carousel-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 20px;
  padding: 0 10px;
  min-width: 100%;
  box-sizing: border-box;
}

/* ===== Card Slide Item ===== */
.carousel-slide {
  flex: 0 0 auto;
  width: 340px;
  box-sizing: border-box;
}

/* ===== Review Card ===== */
.review-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  min-height: 240px;      /* 防止高度太小 */
  max-height: 280px;      /* 可控 */
}

.review-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.review-card img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 2px solid #ddd;
}

.review-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
}

.review-date {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 12px;
}

.review-text {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.5;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stars {
  font-size: 1.2rem;
  color: #facc15;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .carousel-slide {
    width: 80%;
    max-width: 360px;
  }

  .review-card {
    padding: 20px;
  }
}
