/* =====================================================================
   REVIEW PAGE — Mobile-first (xs < 576px)
   Design references:
   - XS (<576): 1582_148963 (480px)
   - SM (>=576): 1582_146521 (576px)
   - MD (>=768): 1582_143343 (768px)
   - LG (>=992): 1582_141665 (992px)
   - XL (>=1200): 1582_139959 (1200px)
   - XXL (>=1400): 1582_138246 (1400px)
   - XXXL (>=1920): 1556_101863 (1920px)
   ===================================================================== */

:root {
  --r-blue: #26a7fe;
  --r-green: #02cb64;
  --r-orange: #ff8026;
  --r-t-1: #000000e5;
  --r-t-2: #000000b2;
  --r-t-3: #00000080;
  --r-title: #132a3f;
  --r-card-border: #d6d6d6;
  --r-gradient: linear-gradient(180deg, #26a7fe 0%, #02cb64 100%);
}

.review-page {
  background: #ffffff;
  font-family: Figtree, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", SimHei, Arial, Helvetica, sans-serif;
}

/* =====================================================================
   HERO — XS (<576px)
   ===================================================================== */
.r-hero {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 20px;
  overflow: hidden;
}

.r-hero-bg {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  border-radius: 20px;
  background-color: #ffffff;
  padding: 80px 0;
  overflow: hidden;
  background-image: url(../images/common/review-bg.svg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.r-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  row-gap: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.r-hero-title {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  text-align: center;
  line-height: 1.3;
  color: var(--r-title);
  font-size: clamp(40px, 11vw, 60px);
  font-weight: 800;
  margin: 0;
  padding: 0 20px;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
}

.r-hero-breadcrumb {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  justify-content: center;
  margin: 0 176px;
}

.r-breadcrumb-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: 4px;
  border-radius: 4px;
  padding: 4px;
  height: 32px;
}

.r-breadcrumb-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.r-breadcrumb-text {
  font-size: 18px;
  line-height: 29px;
  color: var(--r-t-3);
}

.r-breadcrumb-arrow {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.r-breadcrumb-active {
  background: var(--r-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  padding: 2px 4px;
  font-size: 18px;
  line-height: 29px;
  color: transparent;
}

.r-hero-breadcrumb a.r-breadcrumb-text:hover {
  background: var(--r-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =====================================================================
   REVIEWS SECTION — XS (<576px)
   ===================================================================== */
.r-reviews {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  justify-content: center;
  padding: 100px 20px;
  row-gap: 40px;
}

.r-reviews-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: stretch;
  row-gap: 12px;
}

.r-reviews-title {
  flex-shrink: 0;
  align-self: stretch;
  text-align: center;
  font-size: 46px;
  font-weight: 700;
  line-height: 67px;
  color: var(--r-t-1);
  margin: 0;
}

.r-reviews-subtitle {
  text-align: center;
  font-size: 24px;
  line-height: 36px;
  color: var(--r-t-2);
  margin: 0;
  padding: 0 20px;
}

/* Review cards list */
.r-reviews-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  justify-content: center;
  row-gap: 20px;
}

/* Review card */
.r-review-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  justify-content: center;
  border: 1px solid var(--r-card-border);
  border-radius: 40px;
  padding: 39px;
  row-gap: 20px;
}

.r-review-top {
  display: flex;
  align-items: center;
  align-self: stretch;
  gap: 20px;
}

/* <480px — 头部(头像+星级)改为纵向排列，避免长用户名把星级挤出卡片 */
@media (max-width: 479.98px) {
  .r-review-top {
    flex-direction: column;
    align-items: stretch;
  }
}

.r-review-user {
  display: flex;
  flex-grow: 1;
  align-items: center;
  column-gap: 12px;
  min-width: 0;
}

.r-review-avatar {
  flex-shrink: 0;
  border-radius: 50%;
  width: 58px;
  height: 58px;
}

.r-review-user-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  align-items: flex-start;
  row-gap: 4px;
  min-width: 0;
}

.r-review-name {
  flex-shrink: 0;
  align-self: stretch;
  font-size: 18px;
  font-weight: 700;
  line-height: 29px;
  color: var(--r-t-1);
  margin: 0;
  overflow-wrap: anywhere;
}

.r-review-date {
  flex-shrink: 0;
  align-self: stretch;
  font-size: 14px;
  line-height: 22px;
  color: var(--r-t-3);
  margin: 0;
}

.r-review-stars {
  display: inline-flex;
  flex-shrink: 0;
  align-items: flex-start;
  column-gap: 8px;
}

.r-star {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.r-review-text {
  flex-shrink: 0;
  align-self: stretch;
  font-size: 18px;
  line-height: 29px;
  color: var(--r-t-2);
  margin: 0;
}

/* Pagination */
.r-pagination {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  justify-content: center;
  column-gap: 12px;
}

.r-pagination-prev,
.r-pagination-next {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--r-card-border);
  border-radius: 4px;
  padding: 7px;
  background: transparent;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, opacity .2s ease;
}

.r-pagination-prev:hover,
.r-pagination-next:hover {
  border-color: var(--r-blue);
  background: rgba(38, 167, 254, 0.08);
}

.r-pagination-prev.is-disabled,
.r-pagination-next.is-disabled {
  opacity: 0.3;
  pointer-events: none;
}

.r-pagination-arrow {
  width: 24px;
  height: 24px;
}

.r-pagination-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--r-card-border);
  border-radius: 4px;
  height: 40px;
  width: 40px;
  padding: 0;
  background: transparent;
  font-size: 16px;
  line-height: 22px;
  color: var(--r-t-2);
  font-family: "Nunito Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", SimHei, Arial, Helvetica, sans-serif;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}

.r-pagination-page:hover {
  border-color: var(--r-blue);
  color: var(--r-blue);
}

.r-pagination-active {
  border-color: var(--r-blue);
  background: var(--r-blue);
  color: #ffffff;
}

.r-pagination-active:hover {
  color: #ffffff;
}

.r-pagination-ellipsis {
  flex-shrink: 0;
  padding: 9px 0;
  width: 40px;
  height: 40px;
  text-align: center;
  font-size: 16px;
  line-height: 22px;
  color: var(--r-t-2);
  font-family: "Nunito Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", SimHei, Arial, Helvetica, sans-serif;
}

/* =====================================================================
   SM (>=576px)
   ===================================================================== */
@media (min-width: 576px) {
  .r-hero-title {
    font-size: 56px;
  }
  .r-reviews-list {
    padding:0 20px;
  }
}

/* =====================================================================
   MD (>=768px) — Hero shorter, trust badges 2x2 grid
   ===================================================================== */
@media (min-width: 768px) {
  .r-reviews {
    padding: 100px 20px;
  }

  .r-review-text {
    width: auto;
  }

  .r-pagination {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* =====================================================================
   LG (>=992px)
   ===================================================================== */
@media (min-width: 992px) {
  .r-reviews-subtitle {
    align-self: center;
  }
}

/* =====================================================================
   XL (>=1200px) — Trust badges 4-in-a-row, hero bg changes
   ===================================================================== */
@media (min-width: 1200px) {
  .r-reviews {
    padding: 100px 40px;
  }

  .r-review-text {
    width: auto;
  }
}

/* =====================================================================
   XXL (>=1400px)
   ===================================================================== */
@media (min-width: 1400px) {
  .r-reviews {
    padding: 100px 60px;
  }
}

/* =====================================================================
   XXXL (>=1920px) — Hero shortest, title single line, max-width container
   ===================================================================== */
@media (min-width: 1600px) {
  .r-reviews {
    padding: 100px 240px;
    margin: 0 auto;
  }
}

@media (min-width: 1920px) {
  .r-hero-bg {
    padding: 80px 220px;
  }

  .r-reviews {
    padding: 100px 320px;
    margin: 0 auto;
  }
}

/* Mobile (<420px) */
@media (max-width: 420px) {
  .r-hero-breadcrumb {
    margin: 0;
  }
}