/* ═══════════════════════════════════════════════════════════════
   Section 6 - Customer Reviews (背景图 + 右侧奶油色面板)
   自适应高度与宽度
   ═══════════════════════════════════════════════════════════════ */

.section-testimonials {
  position: relative;
  width: 100%;
  min-height: 100vh;
  box-sizing: border-box;
  background: #ece6da url('../images/bg6-1.png') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: clamp(40px, 6vw, 96px);
  padding-bottom: clamp(40px, 6vw, 96px);
  padding-left: clamp(16px, 4vw, 80px);
  /* 大屏时把面板限制在居中的 1500px 舞台内，避免一直贴到最右边 */
  padding-right: max(clamp(16px, 4vw, 80px), calc((100% - 1500px) / 2));
}

/* 奶油色内容面板（设计稿 1010×772，这里做成自适应） */
.rv-panel {
  width: 100%;
  max-width: 1010px;
  background: #f7f1e8;
  box-sizing: border-box;
  padding: clamp(28px, 3.4vw, 56px) clamp(24px, 3vw, 60px);
  box-shadow: 0 30px 70px rgba(25, 42, 68, 0.14);
}

/* ───────── 面板头部 ───────── */
.rv-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.rv-tag {
  margin: 0;
  color: #bc994b;
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: 4px;
}

.rv-title {
  margin: 14px 0 0;
  color: #192a44;
  font-family: 'Merriweather', serif;
  font-weight: 900;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.26;
}

.rv-head__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.rv-score {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rv-score img {
  width: clamp(26px, 2vw, 34px);
  height: clamp(26px, 2vw, 34px);
  object-fit: contain;
}

.rv-score span {
  color: #bc994b;
  font-family: 'Merriweather', serif;
  font-weight: 400;
  font-size: clamp(40px, 4vw, 60px);
  line-height: 1;
}

.rv-write {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #bc994b;
  border-radius: 4px;
  color: #bc994b;
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  text-decoration: none;
  padding: 13px 22px;
  white-space: nowrap;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.rv-write:hover { background: #bc994b; color: #fff; }
.rv-write__arrow { font-size: 16px; line-height: 1; }

/* ───────── 评价卡片列表 ───────── */
.rv-list {
  margin-top: clamp(26px, 2.8vw, 42px);
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.6vw, 24px);
}

.rv-card {
  background: #fff;
  border-radius: 8px;
  padding: clamp(20px, 2vw, 28px) clamp(20px, 2.2vw, 32px);
  box-shadow: 0 6px 20px rgba(25, 42, 68, 0.06);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s ease;
}
.rv-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(25, 42, 68, 0.12);
}

.rv-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.rv-card__person {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rv-card__avatar {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #2c4a6e;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.rv-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.rv-card__avatar .rv-card__avatar-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.rv-card__name {
  display: block;
  color: #192a44;
  font-family: 'Merriweather', serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.25;
}
.rv-card__loc {
  color: rgba(25, 42, 68, 0.55);
  font-family: 'Roboto', sans-serif;
  font-size: 13px;
  line-height: 1.4;
}

.rv-card__meta { text-align: right; flex-shrink: 0; }
.rv-card__stars {
  display: block;
  color: #bc994b;
  font-size: 15px;
  letter-spacing: 2px;
}
.rv-card__time {
  color: rgba(25, 42, 68, 0.45);
  font-family: 'Roboto', sans-serif;
  font-size: 12px;
}

.rv-card__tag {
  display: inline-block;
  margin-top: 16px;
  background: #f3ead6;
  color: #bc994b;
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 7px 12px;
  border-radius: 4px;
}

.rv-card__text {
  margin: 14px 0 0;
  color: rgba(25, 42, 68, 0.7);
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   入场动效
   ═══════════════════════════════════════════════════════════════ */
.js .section-testimonials [data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s ease;
}
.section-testimonials [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.section-testimonials .rv-head { transition-delay: 0.05s; }
.section-testimonials .rv-list .rv-card:nth-child(1) { transition-delay: 0.16s; }
.section-testimonials .rv-list .rv-card:nth-child(2) { transition-delay: 0.26s; }
.section-testimonials .rv-list .rv-card:nth-child(3) { transition-delay: 0.36s; }
.section-testimonials .rv-card:hover { transition-delay: 0s; }

@media (prefers-reduced-motion: reduce) {
  .section-testimonials [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   响应式
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .section-testimonials { justify-content: center; }
  .rv-panel { max-width: 760px; }
}

@media (max-width: 768px) {
  .section-testimonials {
    padding: clamp(32px, 8vw, 56px) 16px;
    background-position: top center;
  }
  .rv-head__right {
    align-items: flex-start;
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;
  }
  .rv-card__top { flex-wrap: wrap; }
  .rv-card__meta { text-align: left; }
}

@media (max-width: 480px) {
  .rv-card__person { gap: 10px; }
  .rv-write { padding: 11px 16px; }
}
