/** Shopify CDN: Minification failed

Line 579:0 All "@import" rules must come first
Line 580:0 All "@import" rules must come first
Line 581:0 All "@import" rules must come first

**/
/* =============================================================
   文件: assets/tablefunny-unified.css
   描述: 统一管理 TableFunny 系列功能的样式 (Badge, Product Display, Reviews Page)
   ============================================================= */

/* 
   -------------------------------------------------------------
   1. 公共变量与工具类
   -------------------------------------------------------------
*/
:root {
  --tf-star-color: #ffb303;     /* 统一星星颜色 */
  --tf-star-off-color: #e0e0e0; /* 统一未点亮星星颜色 */
  --tf-text-color: #333;
}

/* 
   -------------------------------------------------------------
   2. Collection Badge (列表页产品星级徽章)
   -------------------------------------------------------------
*/
.tf-collection-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1;
}
.tf-c-stars { 
  display: flex; 
  color: var(--tf-star-color); 
  font-size: 14px; /* 默认大小 */
}
.tf-c-star { 
  width: 1em; 
  height: 1em; 
  fill: currentColor; 
}
.tf-c-star.off { 
  color: var(--tf-star-off-color); 
}
.tf-c-text { 
  font-size: 13px; 
  color: #666; 
  margin-left: 2px; 
}

/* 
   -------------------------------------------------------------
   3. Custom Review Badge (自定义评论星级徽章)
   -------------------------------------------------------------
*/
.tablefunny-badge {
  display: inline-block;
  cursor: pointer;
}
.tablefunny-badge:hover .tf-badge-text { 
  opacity: 0.8; 
}
.tf-badge-wrapper { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  line-height: 1; 
}
.tf-badge-stars { 
  display: flex; 
  color: var(--tf-star-color); 
  /* font-size 由 inline style 控制 */
}
.tf-star-icon { 
  display: inline-block; 
  width: 1em; 
  height: 1em; 
  fill: currentColor; 
  margin-right: 1px; 
}
.tf-star-icon.off { 
  color: var(--tf-star-off-color); 
}
.tf-badge-text { 
  text-decoration: none; 
  /* color, font-size 由 inline style 控制以支持 block settings */
}

/* 
   -------------------------------------------------------------
   4. Judge.me 样式强力覆盖 (核心需求)
   -------------------------------------------------------------
   原理：使用 .tf-force-override 父级类增加权重
*/

/* 强制隐藏 Judge.me 可能自带的边框或背景 */
.tf-force-override .jdgm-prev-badge{
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
}
.tf-force-override .jdgm-star::before{
    content:"★";
    font-size: 14px !important;
}
/* 2. 星星容器设置 */
.tf-force-override  .jdgm-prev-badge__stars {
  display: flex;
  align-items: center;
  margin-right: 10px;
}
/* 强制统一星星颜色 */
.tf-force-override .jdgm-star.jdgm--off::before{
  color: var(--tf-star-off-color)  !important;
}
.tf-force-override .jdgm-star::before, 
.tf-force-override .jdgm-star:after {
  color: var(--tf-star-color) !important; 
  font-family: 'Judge.me Stars' !important; /* 防止字体图标丢失 */
}
/* 如果你想调整 Judge.me 文字样式 */
.tf-force-override .jdgm-prev-badge__text {
  color: #666 !important;
  font-size: 13px !important; 
  font-weight: normal !important;
   line-height: 1; /* 设置行高为 1，防止文字自带的高度导致对齐偏差 */
}

/* 
   -------------------------------------------------------------
   5. 自定义产品展示列表
   -------------------------------------------------------------
*/
.tablefunny-products-display {
  padding: 48px 0;
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  box-sizing: border-box;
}
.tablefunny-products-display .tablefunny-products-display-content {
  max-width: 1600px;
  padding: 0 20px; /* var(--rpp) 通常未定义，建议给个默认值 */
  margin: auto;
}
.tablefunny-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}
.tablefunny-section-header h2 {
  margin: 0;
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
}
.tablefunny-view-all {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 2px;
  transition: all 0.3s ease;
}
.tablefunny-view-all:hover {
  border-color: #000;
}
.tablefunny-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.tablefunny-product-item {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #f0f0f0;
  position: relative;
  z-index: 1;
}
.tablefunny-product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}
/* 图片与轮播 */
.tablefunny-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%;
  overflow: hidden;
  background: #f7f7f7;
}
/* Slide 样式 */
.tf-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
  z-index: 1;
}
.tf-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.tf-slide-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.tablefunny-product-item:hover .tf-slide.active .tf-slide-img {
  transform: scale(1.06);
}
/* 箭头按钮 */
.tf-arrow {
  position: absolute;
  padding:0;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.4);
  border: none;
  min-width: auto; min-height: auto;
  width: 30px; height: 30px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  font-size: 12px;
  color: #1a1a1a;
  opacity: 0;
  transition: all 0.2s ease;
  backdrop-filter: blur(2px);
}
.tf-arrow::before{
 content: none;
}
.tablefunny-product-item:hover .tf-arrow { opacity: 1; }
.tf-arrow:hover {
  background: #fff;
  color: #000 !important;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
  transform: translateY(-50%) scale(1.2) !important;
}
.tf-prev { left: 4px; padding-right: 2px; }
.tf-next { right: 4px; padding-left: 2px; }

/* 内容区域 */
.tablefunny-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.tablefunny-product-item h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 8px 0;
  line-height: 1.4;
  min-height: 44px;
}
.tablefunny-price {
  font-size: 16px;
  color: #444;
  margin-bottom: 15px;
  font-weight: 500;
}
.tablefunny-price .product-current-price{
  padding-inline-end: 5px;
  font-size: 20px;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
}
.tablefunny-price .product-compare-price{
  text-decoration: line-through;
}
.tablefunny-price .product-saved-amount{
  display:flex;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  padding: 4px 8px;
  background: #f04f36;
  color: #fff;
  font-size: 13px;
}
.tablefunny-price .product-saved-amount .icon--discount{
  margin-right: 6px;
}
.tablefunny-desc {
  font-size: 13px;
  color: #777;
  margin-bottom: 20px;
  line-height: 1.5;
  flex-grow: 1;
}
.tablefunny-product-btn {
  display: block;
  width: 100%;
  background-color: #000;
  color: #fff;
  padding: 12px 0;
  border-radius: 50px;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, opacity 0.3s;
}
.tablefunny-product-btn:hover { background-color: #333; }
.tablefunny-product-btn:disabled { background-color: #eee; color: #aaa; cursor: not-allowed; }
.tablefunny-products-display .jdgm-prev-badge__text{visibility:visible}
/* 抽屉样式 (Drawer) */
.tf-drawer-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 2147483647;
  opacity: 0; visibility: hidden; transition: 0.3s;
  backdrop-filter: blur(4px);
  display: block;
}
.tf-drawer-overlay.active { opacity: 1; visibility: visible; }
.tf-drawer {
  position: absolute; top: 0; right: -450px; width: 100%; max-width: 420px; height: 100%;
  background: #fff; transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex; flex-direction: column;
  box-shadow: -5px 0 20px rgba(0,0,0,0.1);
}
.tf-drawer.active { right: 0; }
.tf-drawer-header { padding: 20px; display: flex; justify-content: space-between; border-bottom: 1px solid #eee; }
.tf-drawer-body { padding: 20px; flex: 1; overflow-y: auto; }
.tf-drawer-footer { padding: 20px; border-top: 1px solid #eee; }
.tf-drawer-product-row { display: flex; gap: 20px; margin-bottom: 24px; align-items: flex-start; }
.tf-drawer-img-link { flex-shrink: 0; }
.tf-drawer-img {
  width: 120px !important; height: 120px !important;
  object-fit: cover; border-radius: 8px; border: 1px solid #eee; display: block;
}
.tf-drawer-info { display: flex; flex-direction: column; justify-content: flex-start; }
.tf-drawer-title { font-weight: 700; font-size: 16px; line-height: 1.3; margin-bottom: 5px; }
.tf-drawer-price { font-size: 15px; color: #444; font-weight: 500; }
.tf-drawer-policy {
  margin-top: 8px; font-size: 12px; color: #666; line-height: 1.4;
  background: #f5f5f5; padding: 4px 8px; border-radius: 4px;
}
.tf-drawer-link { display: inline-block; margin-top: 8px; font-size: 13px; text-decoration: underline; color: #1a1a1a; cursor: pointer; }
.tf-option-group { margin-bottom: 20px; }
.tf-option-name { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.tf-values { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.tf-values label {
  border: 1px solid #ddd; padding: 8px 16px; border-radius: 20px; cursor: pointer; font-size: 14px;
}
.tf-values input:checked + label { background: #000; color: #fff; border-color: #000; }
.tf-values input { display: none; }

@media (max-width: 768px) {
  .tablefunny-section-header { gap: 10px; }
  .tablefunny-products-grid { padding: 0; gap: 20px; }
  .tablefunny-product-item .tf-arrow {
    opacity: 1 !important; visibility: visible !important;
    background: rgba(255, 255, 255, 0.7); width: 32px !important; height: 32px;
  }
  .tf-prev { left: 8px; }
  .tf-next { right: 8px; }
}

/* 
   -------------------------------------------------------------
   6. 所有瀑布流评论页
   -------------------------------------------------------------
*/
.mr-container { max-width: 1600px; margin: 0 auto; padding: 20px 20px; }
.mr-header { text-align: center; margin-bottom: 40px; }
.mr-header h1 { font-size: 32px; font-weight: 700; margin-bottom: 5px; }
.mr-masonry-wrapper { column-count: 1; column-gap: 15px; }
@media(min-width: 600px) { .mr-masonry-wrapper { column-count: 2; } } 
@media(min-width: 1000px) { .mr-masonry-wrapper { column-count: 3; } } 
@media(min-width: 1400px) { .mr-masonry-wrapper { column-count: 4; } } 

.mr-card {
  background: #fff; border: 1px solid #e0e0e0; border-radius: 12px;
  margin-bottom: 15px; break-inside: avoid; overflow: hidden;
  display: block; box-sizing: border-box; transition: transform 0.2s;
}
.mr-card:hover { box-shadow: 0 6px 15px rgba(0,0,0,0.08); transform: translateY(-2px); }

.mr-imgs-single img, .mr-img-item img {
  width: 100%; height: auto; display: block; object-fit: cover;
  cursor: zoom-in; transition: opacity 0.2s;
}
.mr-imgs-single img:hover, .mr-img-item img:hover { opacity: 0.9; }
.mr-imgs-single img { max-height: 500px; }
.mr-imgs-waterfall { column-count: 2; column-gap: 4px; padding: 4px; }
.mr-img-item { break-inside: avoid; margin-bottom: 4px; }
.mr-img-item img { border-radius: 4px; background-color: #f4f4f4; }

.mr-content { padding: 12px 15px 15px; }
.mr-title { font-size: 15px; font-weight: 700; color: #000; margin-bottom: 6px; line-height: 1.3; }
.mr-meta-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.mr-author { font-size: 12px; color: #333; font-weight: 600; }
.mr-date { font-size: 11px; color: #999; font-weight: normal; }
.mr-stars { color: var(--tf-star-color); font-size: 14px; margin-bottom: 8px; display: flex; align-items: center; }
.mr-text { font-size: 13px; color: #333; line-height: 1.5; margin-bottom: 12px; word-wrap: break-word; }
.mr-btn { display: inline-block; background: #000; color: #fff; padding: 6px 14px; font-size: 12px; font-weight: 700; text-transform: uppercase; text-decoration: none; border-radius: 4px; transition: opacity 0.2s; width: 100%; text-align: center; }
.mr-btn:hover { opacity: 0.8; }
.mr-pagination { text-align: center; margin-top: 50px; }
.mr-page-link { display: inline-block; padding: 8px 14px; border: 1px solid #ddd; margin: 0 4px; color: #333; text-decoration: none; border-radius: 4px; }
.mr-page-link.current { background: #000; color: #fff; border-color: #000; }

/* Lightbox (画廊) */
#mr-lightbox {
  position: fixed; z-index: 2147483647; top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  display: none; justify-content: center; align-items: center;
  opacity: 0; transition: opacity 0.3s ease;
  user-select: none; touch-action: pan-y;
}
#mr-lightbox.active { display: flex; opacity: 1; }
#mr-lightbox img {
  max-width: 100%; max-height: 85vh;
  object-fit: contain; border-radius: 0;
  box-shadow: 0 0 30px rgba(0,0,0,0.8);
  transform: scale(0.98); transition: transform 0.4s cubic-bezier(0.2, 0, 0.2, 1), opacity 0.3s ease; opacity: 0;
}
@media(min-width: 768px) { #mr-lightbox img { max-width: 85vw; border-radius: 4px; } }
#mr-lightbox.active img.loaded { transform: scale(1); opacity: 1; }
.mr-loader {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 40px; height: 40px; border: 4px solid rgba(255,255,255,0.3);
  border-radius: 50%; border-top: 4px solid #fff; animation: spin 1s linear infinite; z-index: -1;
}
@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }
.mr-lb-btn {
  position: absolute; color: #fff; cursor: pointer;
  background: rgba(255,255,255,0.1); border-radius: 50%;
  width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; z-index: 2147483648;
}
.mr-lb-btn:hover { background: rgba(255,255,255,0.3); }
.mr-close-btn { top: 20px; right: 20px; font-size: 30px; }
.mr-prev-btn { left: 20px; top: 50%; transform: translateY(-50%); font-size: 24px; }
.mr-next-btn { right: 20px; top: 50%; transform: translateY(-50%); font-size: 24px; }
.mr-lb-counter {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.8); font-size: 14px; letter-spacing: 1px;
  background: rgba(0,0,0,0.5); padding: 5px 12px; border-radius: 20px;
}
@media (max-width: 768px) {
  .mr-prev-btn, .mr-next-btn { display: none !important; }
}

/* 
   -------------------------------------------------------------
   7. 详情页混合评论列表
   -------------------------------------------------------------
*/
.hybrid-review-section {
  /* padding 由 inline style 控制 */
}
/* 先调整真实评论的样式 */
.smart-review-wrapper select.jdgm-sort-dropdown:focus{
  background-image:none;
  border: 1px solid;
  border-radius: 20px;
}
.smart-review-wrapper .jdgm-sort-dropdown{
  height:40px;
  padding: 0 20px;
}
/* Verified Badge (购买认证) */
.hybrid-review-section .jdgm-rev__buyer-badge { 
  padding: 2px 9px;
  font-size: 12px;
}
.hybrid-review-section .jdgm-rev__buyer-badge::before { 
  content: 'Verified'; 
}
/* 国旗 */
.smart-review-wrapper .jdgm-row-extra img{
  height: 10px!important;
}
/* 隐藏真实 Widget (保留功能但隐藏界面) */
.hidden-list-judgeme { 
  margin: 0 !important; padding: 0 !important;
  overflow: hidden; /* 增强隐藏效果，防止占位 */
}
.hidden-list-judgeme .jdgm-rev-widg__header .jdgm-rev-widg__title,
.hidden-list-judgeme .jdgm-rev-widg__header .jdgm-row-stars,
.hidden-list-judgeme .jdgm-row-actions,
.hidden-list-judgeme .jdgm-rev-widg__body {
  display: none !important;
}

/* 统计头部样式覆盖 */
.hybrid-review-section .jdgm-rev-widg__header { margin-bottom: 20px; }
.hybrid-review-section .jdgm-star.jdgm--on::before { color: var(--tf-star-color); }

/* 分页样式 */
.custom-pagination {
  display: flex; justify-content: center; align-items: center; gap: 10px;
  margin-top: 30px; padding-top: 20px; border-top: 1px solid #f0f0f0;
}
.pagination-btn {
  background: #fff; border: 1px solid #ddd; padding: 8px 14px; cursor: pointer;
  border-radius: 4px; font-size: 14px; color: #fff; transition: all 0.2s;
  min-width: 32px;max-width: 50px;
}
.pagination-btn:hover:not(:disabled) { background-color: #f9f9f9; border-color: #999; }
.pagination-btn:disabled { color: #ccc; cursor: not-allowed; border-color: #eee; background-color: #f5f5f5; }

/* 评论卡片样式微调 */
.hybrid-review-section .jdgm-rev {
  margin-bottom: 20px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}
.hybrid-review-section .jdgm-rev:first-child { border-top: none; }

/* 图片列表样式 */
.jdgm-rev__pics { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.jdgm-rev__pic-img {
  border-radius: 4px; border: 1px solid #f0f0f0; transition: opacity 0.2s;
}
.jdgm-rev__pic-img:hover { opacity: 0.8; }

/* 【关键】默认隐藏所有评论项 (JS 控制显示) */
.custom-review-item { display: none; }

/* 弹窗遮罩层 */
.tf-lightbox-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 2147483647; /* 保证最高层级 */
  display: none; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s ease;
}
.tf-lightbox-overlay.active { display: flex; opacity: 1; }

/* 弹窗图片 */
.tf-lightbox-img {
  max-width: 90vw; max-height: 90vh;
  object-fit: contain;
  transform: scale(0.95); transition: transform 0.3s ease;
}
.tf-lightbox-overlay.active .tf-lightbox-img { transform: scale(1); }

/* 关闭按钮 */
.tf-lightbox-close {
  position: absolute; top: 20px; right: 30px;
  color: #fff; font-size: 40px; cursor: pointer; z-index: 2147483648;
}

/* 
   -------------------------------------------------------------
   8. 首页评论展示
   -------------------------------------------------------------
*/

/* @import 必须放在文件的最顶端，不能放在类名里面 */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Courgette&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Chonburi&display=swap");

/* --- 全局重置 (仅限本板块内) --- */
.review-section-wrapper * {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* --- 主容器 --- */
.review-section-wrapper {
  position: relative;
  background: var(--rv-bg); /* 使用变量 */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  margin-bottom: 48px;
}

/* --- 顶部标题栏 --- */
.review-section-wrapper .review-section-header {
  width: 100%;
  max-width: 1600px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  position: relative;
  z-index: 5;
  flex-wrap: wrap;
  gap: 20px;
}

.review-section-wrapper .review-title-group p {
  margin-top: 15px;
  font-size: 1rem;
  opacity: 0.8;
  color: var(--rv-text);
  max-width: 600px;
  line-height: 1.6;
}

/* --- 查看全部按钮 --- */
.review-section-wrapper .review-view-all {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  font-size: 1rem;
  color: var(--rv-text);
  text-decoration: none;
  border-bottom: 2px solid var(--rv-highlight);
  padding-bottom: 2px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.review-section-wrapper .review-view-all:hover {
  color: var(--rv-highlight);
  padding-right: 10px;
}

.review-section-wrapper .review-view-all svg {
  margin-left: 8px;
  width: 18px;
  height: 18px;
  stroke: currentColor;
  transition: transform 0.3s;
}

.review-section-wrapper .review-view-all:hover svg {
  transform: translateX(5px);
}

/* --- 核心布局容器 --- */
.review-section-wrapper .review-split-wrapper {
  display: flex;
  flex-direction: column-reverse;
  gap: 0;
  width: 100%;
  max-width: 1600px;
  align-items: center;
  position: relative;
  z-index: 2;
}

@media screen and (min-width: 1024px) {
  .review-section-wrapper .review-split-wrapper {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 5%;
  }
  .review-section-wrapper .review-section-header {
     padding-inline: 0;
  }
}

/* --- 左侧内容容器 (Grid Stack 布局) --- */
.review-section-wrapper .review-content-container {
  width: 100%;
  /* Grid 布局让子元素重叠 */
  display: grid;
  grid-template-columns: 1fr;
  /* 垂直居中，视觉重心更稳 */
  align-items: center; 
  position: relative;
  z-index: 3;
  min-height: 350px; 
}

@media screen and (min-width: 1024px) {
  .review-section-wrapper .review-content-container {
    width: 45%;
    max-width: 550px; 
    padding-right: 0;
  }
}

/* 每一个评论项 */
.review-section-wrapper .review-content-item {
  /* 让所有 Item 叠在同一个格子里，高度由最高的内容撑开 */
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  width: 100%;
  /* 隐藏状态 */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* 激活状态 */
.review-section-wrapper .review-content-item.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  z-index: 2;
}
@media screen and (max-width: 1023px) {
  .review-section-wrapper .review-content-item{
    display:none;
  }
  .review-section-wrapper .review-content-item.active {
    display:block;
  }
}  

.review-section-wrapper .review-content-item h3 {
  font-family: "Chonburi", serif;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--rv-highlight);
}

/* --- 限制文字高度并添加滚动条 --- */
.review-section-wrapper .review-content-item p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--rv-text);
  opacity: 0.85;
}
@media screen and (min-width: 1024px) {
  .review-section-wrapper .review-content-item p {
    /* 限制最大高度，超过显示滚动条 */
    max-height: 150px; 
    overflow-y: auto;
    padding-right: 10px;
    /* Firefox 滚动条 */
    scrollbar-width: thin;
    scrollbar-color: var(--rv-highlight) transparent;
  }
  /* Webkit (Chrome/Safari) 滚动条美化 */
  .review-section-wrapper .review-content-item p::-webkit-scrollbar {
    width: 4px;
  }
  .review-section-wrapper .review-content-item p::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
  }
  .review-section-wrapper .review-content-item p::-webkit-scrollbar-thumb {
    background-color: var(--rv-highlight);
    border-radius: 4px;
  }
}
/* --- 计数器列表 --- */
.review-section-wrapper .review-counter {
  display: flex;
  align-items: flex-start;
  margin: 2em 0 2.5em 0;
  gap: 2em;
  flex-wrap: wrap;
  color: var(--rv-text);
  list-style: none;
}

.review-section-wrapper .review-counter li h4 {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  margin-bottom: 6px;
  font-weight: 600;
}

.review-section-wrapper .review-counter svg {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  color: var(--rv-highlight);
}

/* --- 按钮 --- */
.review-section-wrapper .review-product-btn {
  background-color: var(--rv-highlight);
  border: none;
  color: #fff;
  padding: 14px 32px;
  font-size: 16px;
  border-radius: 50px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.review-section-wrapper .review-product-btn:hover { 
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  filter: brightness(1.1);
}
.review-section-wrapper .review-product-btn svg { margin-left: 10px; width: 18px; transition: transform 0.3s; }
.review-section-wrapper .review-product-btn:hover svg { transform: translateX(3px); }

/* --- 右侧 Swiper 容器 --- */
.review-section-wrapper .review-swiper-wrapper {
 width: 100%;
  position: relative;
  min-height: 450px; /* 给足高度 */
  display: flex;
  align-items: center;
  justify-content: center; /* 强制 Flex 居中 */
  overflow: hidden; /* 防止溢出干扰 */
}

@media screen and (min-width: 1024px) {
  .review-section-wrapper .review-swiper-wrapper {
    width: 55%; 
  }
}

.review-section-wrapper .review-swiper {
  width: 100% !important;
  height: 100%;
  padding: 0px 0 80px 0 !important; /* 上下给空间放阴影和分页器，左右必须是 0 */
  overflow: visible !important; /* 让 3D 效果溢出显示 */
}

/* --- Swiper Slide 样式 (加上前缀防止影响其他轮播) --- */
.review-section-wrapper .swiper-slide {
   /* 桌面端固定宽度 */
  width: 300px; 
  height: 400px;
  
  background-size: cover; 
  background-repeat: no-repeat;
  background-position: center;
  background-color: #fff; 
  border-radius: 12px;
  
  /* 初始状态：透明度低一点 */
  opacity: 0.5;
  
  /* 边框和阴影 */
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  
  /* 关键：平滑过渡 */
  transition: transform 0.4s ease, opacity 0.4s ease, box-shadow 0.4s ease;
  
  position: relative; 
  display: block;
}

@media screen and (max-width: 768px) {
  .review-section-wrapper .swiper-slide {
   width: 240px;
    height: 340px;
  }
}

.review-section-wrapper .swiper-slide-active {
  opacity: 1;
  z-index: 10;
  /* 激活时放大一点点阴影，不要用 scale，交给 coverflow 处理 */
  box-shadow: 0 20px 50px rgba(0,0,0,0.2);
  border: 2px solid var(--rv-highlight);
}

.review-section-wrapper .review-swiper .swiper-pagination { 
  bottom: 20px !important; 
}

/* 同样给分页器加前缀，防止影响全局 Swiper 样式 */
.review-section-wrapper .review-swiper .swiper-pagination-bullet {
  min-width: 10px; height: 10px;
  background: var(--rv-text);
  opacity: 0.2;
  transition: all 0.3s;
}

.review-section-wrapper .review-swiper .swiper-pagination-bullet-active { 
  background: var(--rv-highlight); 
  width: 24px; 
  border-radius: 5px;
  opacity: 1;
}

/* --- 背景圆 --- */
.review-section-wrapper .review-bg-circle {
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: var(--rv-highlight);
  border-radius: 50%;
  opacity: 0.04;
  z-index: 1;
  pointer-events: none;
  filter: blur(80px);
}