﻿/* ================= 用户评价 Customer Reviews ================= */
/* 内容宽度基准 1200px（原 1600px × 0.75 等比缩放，字号 / 间距 / 图片同比例） */
#review-page {
  background: #fff;
  color: #333;
}

/* ---------- 数据统计 ---------- */
.rv-stats {
  width: 1200px;
  padding: 57px 0 26px;
  text-align: center;
}

.rv-stats-list {
  display: flex;
  justify-content: space-between;
}

.rv-stat {
  flex: 0 0 33.33%;
}

.rv-stat .num {
  font-size: 72px;
  font-weight: bold;
  line-height: 1;
  color: #004194;
  font-family: 'Graphie', Arial, 'Microsoft YaHei';
}

.rv-stat .num em {
  font-style: normal;
  font-size: 45px;
}

.rv-stat .label {
  margin-top: 15px;
  font-size: 25px;
  line-height: 1.4;
  color: #004194;
}

.rv-stats-note {
  margin-top: 42px;
  font-size: 12px;
  line-height: 1.3;
  color: #979797;
  text-align: center;
}

/* ---------- 通用标题 ---------- */
.rv-title {
  text-align: center;
  font-size: 44px;
  font-weight: bold;
  line-height: 1.3;
  color: #004194;
}

/* ---------- 查看用户评价 ---------- */
.rv-view {
  padding: 44px 0 22px;
}

.rv-tabs {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-top: 38px;
}

.rv-tab {
  /* 高度 33，line-height 31（33 - 上下边框 1px × 2）保证文字垂直居中 */
  height: 33px;
  width: 105px;
  margin: 0;
  border: 1px solid #004194;
  border-radius: 12px;
  background: #fff;
  color: #004194;
  font-size: 15px;
  line-height: 31px;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.rv-tab.on,
.rv-tab:hover {
  background: #004194;
  color: #fff;
}

/* 卡片区容器 1200：3 张 380px + 2 个 30px 间距 = 1200 */
.rv-view .section {
  width: 1200px;
  max-width: calc(100% - 48px);
}

.rv-cards {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 38px;
}

.rv-card {
  display: none;
  flex-direction: column;
  /* 设计尺寸 380 × 334；flex 允许在窄屏等比缩小，避免撑破容器 */
  flex: 1 1 380px;
  width: 380px;
  max-width: 380px;
  height: 334px;
  padding: 18px 25px 16px;
  box-sizing: border-box;
  border: 1px solid #004194;
  border-radius: 8px;
  background: #eaf0f6;
  text-align: center;
  overflow: hidden;
}

.rv-card.on {
  display: flex;
}

.rv-card h4 {
  font-size: 21px;
  font-weight: bold;
  line-height: 1.4;
  color: #004194;
}

/* 评价正文：位于标题与用户名之间，主题蓝 */
/* 注意：不要用 .text 作类名，mbh.css 里有同名的导航下拉菜单样式（display:none;opacity:0） */
.rv-card .rv-text {
  /* 距上方标题 26px，距下方用户名 30px（用户名自身不再额外留上边距） */
  margin-top: 26px;
  margin-bottom: 30px;
  font-size: 13.5px;
  line-height: 1.3;
  color: #004194;
  text-align: start;
  /* 最多 3 行，极端长文案不会把晒图顶出卡片 */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.rv-card .user {
  /* auto 外边距吃掉文案高度差，把「用户名 + 晒图 + 产品名」作为一整块压在底部，
     用户名行高固定 15px，因此三张卡片的用户名、图片顶边都水平对齐 */
  margin-top: auto;
  /* 与下方晒图保持 9px 间距 */
  margin-bottom: 9px;
  font-size: 12px;
  line-height: 15px;
  color: #004194;
}

/* 晒图区：多图统一 101 × 101、间距 4px，1 图 / 3 图都按此对齐 */
.rv-card .pics {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 0;
}

.rv-card .pics img {
  display: block;
  width: 101px;
  height: 101px;
  /* 原图比例不一（横图 / 竖图），用 cover 裁切保证视觉整齐 */
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
}

/* 4 图：卡片内宽 328px，4 × 78 + 3 × 4 = 324px，不挤出圆角边框 */
.rv-card .pics.pics-4 img {
  width: 78px;
  height: 101px;
}

.rv-card .goods {
  margin-top: 10px;
  /* 底部留白 20px：把「晒图 + 产品名」整体往上提，视觉重心不至于太贴卡片底边 */
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: bold;
  line-height: 1.5;
  color: #004194;
}

.rv-card .goods a {
  color: #004194;
}

.rv-card .goods a:hover {
  text-decoration: underline;
}

.rv-dots {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.rv-dots i {
  display: block;
  width: 9px;
  height: 9px;
  margin: 0 5px;
  border-radius: 50%;
  background: #c7c7c7;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.rv-dots i.on {
  background: #004194;
}

/* ---------- 更多真实评价 ---------- */
.rv-more {
  padding: 50px 0 15px;
  width: 1200px;
}

.rv-more-list {
  margin-top: 38px;
}

/* 三列栅格：用户名 | 产品名称 + 内容 | 日期 */
.rv-more-item {
  display: grid;
  grid-template-columns: 180px 1fr 82px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid #979797;
}

.rv-hide {
  display: none !important;
}

/* 更多真实评价：AJAX 分页时的加载态与空态 */
#rvMoreWrap {
  transition: opacity 0.2s ease;
}

#rvMoreWrap.rv-loading {
  opacity: 0.4;
  pointer-events: none;
}

.rv-more-empty {
  padding: 60px 0;
  text-align: center;
  font-size: 12px;
  color: #999;
}

/* 第一行：产品名称（内容列） */
.rv-more-item .goods {
  grid-column: 2;
  grid-row: 1;
  font-size: 14px;
  /* font-weight: bold; */
  line-height: 20px;
  color: #004194;
}

/* 第二行：用户名 | 评价内容 | 日期 */
.rv-more-item .nick {
  grid-column: 1;
  grid-row: 2;
  font-size: 12px;
  line-height: 20px;
  color: #004194;
}

.rv-more-item .date {
  grid-column: 3;
  grid-row: 2;
  text-align: right;
  font-size: 12px;
  line-height: 20px;
  color: #004194;
}

.rv-more-item .goods a {
  color: #004194;
}

.rv-more-item .goods a:hover {
  text-decoration: underline;
}

.rv-more-item .desc {
  grid-column: 2;
  grid-row: 2;
  /* 内容列宽约 938px，长评价会拉成超长行；限制到 720px（约 60 个汉字/行）更易读 */
  max-width: 720px;
  margin-top: 15px;
  font-size: 12px;
  line-height: 20px;
  color: #000;
  white-space: pre-line;
}

.rv-more-item .spec {
  grid-column: 2;
  grid-row: 3;
  margin-top: 3px;
  font-size: 10px;
  line-height: 16px;
  color: #999;
}

.rv-statement {
  margin-top: 26px;
  text-align: center;
}

.rv-statement img {
  max-width: 100%;
  height: auto;
}

/* 分页：不随 1200 版缩放，保持原尺寸 */
.rv-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 53px;
}

.rv-pager a,
.rv-pager span {
  display: inline-block;
  min-width: 24px;
  height: 24px;
  margin: 0 5px;
  padding: 0 4px;
  box-sizing: border-box;
  border-radius: 0;
  font-size: 13px;
  line-height: 24px;
  text-align: center;
  color: #999;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.rv-pager a:hover {
  background: #eef4fc;
}

.rv-pager a.on,
.rv-pager span.on {
  background: #004194;
  color: #fff;
}

.rv-pager a.disabled,
.rv-pager span.disabled {
  color: #d0d0d0;
  cursor: default;
  pointer-events: none;
}

.rv-more-note {
  margin-top: 35px;
  font-size: 12px;
  line-height: 16px;
  color: #979797;
  text-align: center;
  padding: 0 51px;
}

/* ---------- 真实用户故事 ---------- */
/* 底部留白：164px × 0.75 = 123px */
.rv-story-block {
  padding: 41px 0 123px;
  width: 1200px;
  margin: auto;
}

/* .section 全局默认 1200px，三张 360 卡 + 2 个 19 间距 = 1118px 可完整放下 */
.rv-story-block .section {
  width: 1200px;
  max-width: calc(100% - 48px);
}

/* 设计：视频 360×638、间距 19px */
.rv-stories {
  display: flex;
  justify-content: center;
  gap: 19px;
  margin-top: 38px;
}

.rv-story {
  /* flex:0 0 360px 锁死基准宽度，禁止被压缩，否则会被 .section 的宽度挤小 */
  flex: 0 0 360px;
  width: 360px;
  cursor: pointer;
}

/* 封面图与视频统一画幅（360×638），播放前后尺寸完全一致，不裁切不变形 */
.rv-story .cover {
  position: relative;
  width: 100%;
  height: 638px;
  overflow: hidden;
  background: #dfe4ea;
}

.rv-story .cover img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 封面右下角播放标志：圆形按钮 + CSS 三角形，不依赖图片资源 */
.rv-story .cover .play-btn {
  position: absolute;
  right: 13px;
  bottom: 13px;
  z-index: 2;
  width: 39px;
  height: 39px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, background-color 0.25s ease;
  /* 点击交给 .cover 处理，标志本身不拦事件 */
  pointer-events: none;
}

.rv-story .cover .play-btn::after {
  content: "";
  display: block;
  /* 三角形视觉重心偏左，向右偏移 3px 做光学居中 */
  margin-left: 3px;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent #fff;
}

.rv-story:hover .cover .play-btn {
  background: rgba(0, 65, 148, 0.92);
  border-color: #fff;
  transform: scale(1.08);
}

/* 就地播放的视频容器：高度与封面一致，切换时不跳动 */
.rv-story .j-video {
  position: relative;
  width: 100%;
  height: 638px;
  background: #000;
  overflow: hidden;
}

.rv-story .j-video video {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 全屏播放：素材是竖屏（约 3:4），全屏后画面比例与屏幕不一致，
   必须从 cover 改为 contain，否则会被放大裁切、只剩人脸局部 */
.rv-story .j-video video:fullscreen,
.rv-story .j-video video:-webkit-full-screen {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.rv-story .j-video video:fullscreen::backdrop,
.rv-story .j-video video:-webkit-full-screen::backdrop {
  background: #000;
}

.rv-story .tit {
  margin-top: 23px;
  font-size: 19px;
  /* font-weight: bold; */
  line-height: 1.5;
  color: #004194;
}

.rv-story .desc {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: #000;
}

@media screen and (max-width: 1260px) {
  .rv-stats,
  .rv-view,
  .rv-more,
  .rv-story-block {
    width: auto;
    max-width: 1200px;
    padding-left: 24px;
    padding-right: 24px;
  }
  /* 窄屏放不下整行：容器回到 100%，卡片允许等比缩小 */
  .rv-story-block .section {
    width: auto;
    max-width: 100%;
  }
  .rv-story {
    flex: 0 1 360px;
  }
}
