/* ============================================================
   客户评价滚动墙 · 三行双向循环（2026-11-18）
   ------------------------------------------------------------
   一块玻璃质感背景卡（宽度与大段正文的 .wrap 限位一致），
   三行评论卡在卡内流动：上下两行向右、中间向左，恒速、无缝、悬停暂停。
   每张卡：顶部五星 + 用户名 + 月份，下方整段评论不省略。
   评论内容来自天猫旗舰店肠胃线与泌尿线的真实评价。
   节奏参考 Motion Prompt #094 Marquee：一周期平移一整组宽度，
   按组宽取模回绕，接缝处不跳。

   删掉本文件引用 + assets/reviews-wall.js 引用即回退到无此模块。
   类名一律 rw- 前缀，不与站点已有组件重名。
   ============================================================ */

/* ---------- 一、整段底色 + 玻璃后方的两团柔光 ---------- */
.rw-sec{
  position:relative;
  padding:66px 0 74px;
  background:var(--navy);
  color:#fff;
  overflow:hidden;
  isolation:isolate;
}
.rw-sec::before{
  content:"";position:absolute;inset:0;z-index:-1;
  background:
    radial-gradient(110% 140% at 84% -30%,rgba(59,85,156,.78) 0%,rgba(59,85,156,0) 62%),
    linear-gradient(180deg,#16304f 0%,#36549c 52%,#142a47 100%);
}
/* 玻璃要透出点东西才像玻璃：暖黄与冷蓝两团光压在卡后面 */
.rw-sec::after{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:
    radial-gradient(42% 56% at 18% 24%,rgba(120,164,236,.15) 0%,rgba(120,164,236,0) 64%),
    radial-gradient(48% 62% at 84% 76%,rgba(86,148,255,.2) 0%,rgba(86,148,255,0) 66%);
}

/* ---------- 二、背景卡：磨砂玻璃 ---------- */
.rw-panel{
  position:relative;
  /* 与 .wrap 同一套限位公式，玻璃卡左右边缘和上下正文对齐 */
  width:min(var(--max),calc(100% - var(--gutter) * 2));
  margin-inline:auto;
  padding:28px 0 24px;
  overflow:hidden;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.17);
  /* 镜面斜光 + 玻璃本体，两层都压在最底，不遮内容 */
  background:
    linear-gradient(118deg,rgba(255,255,255,.13) 0%,rgba(255,255,255,.04) 28%,rgba(255,255,255,0) 52%),
    linear-gradient(160deg,rgba(255,255,255,.075) 0%,rgba(255,255,255,.028) 48%,rgba(255,255,255,.05) 100%);
  -webkit-backdrop-filter:blur(30px) saturate(120%);
  backdrop-filter:blur(30px) saturate(120%);
  box-shadow:
    0 50px 110px -58px rgba(0,0,0,.92),
    inset 0 1px 0 rgba(255,255,255,.26),
    inset 0 -1px 0 rgba(255,255,255,.06);
}
/* 上沿一道极细的冷暖过渡高光，玻璃切口 */
.rw-panel::before{
  content:"";position:absolute;left:26px;right:26px;top:0;height:1px;
  background:linear-gradient(90deg,rgba(120,164,236,0),rgba(120,164,236,.55) 28%,rgba(150,196,255,.5) 72%,rgba(120,164,236,0));
}

/* ---------- 三、卡内标题 ---------- */
.rw-head{position:relative;padding:0 30px}
.rw-head .eyebrow{color:rgba(255,255,255,.6)}
.rw-head .eyebrow .num{color:var(--yellow)}
/* lint-ok: 版面专用字号，随区块排版走 */
.rw-head h2{
  margin-top:13px;
  color:#fff;
  font-size:var(--fs-h1);
  line-height:1.28;
  text-shadow:0 2px 18px rgba(4,12,26,.35);
}
.rw-head .lede{
  margin:11px 0 0;
  max-width:540px;
  font-size:var(--fs-note);line-height:var(--lh-note);
  color:rgba(230,240,252,.72);
}

/* ---------- 四、行与轨道 ---------- */
.rw-wall{
  margin-top:22px;
  display:flex;flex-direction:column;gap:10px;
  /* 网格只铺在卡片区背后，标题区保持干净 */
  background:
    linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px) 0 0/56px 56px,
    linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px) 0 0/56px 56px;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 6%,#000 94%,transparent 100%);
  mask-image:linear-gradient(90deg,transparent 0,#000 6%,#000 94%,transparent 100%);
}
.rw-row{
  overflow-x:auto;overflow-y:hidden;
  scrollbar-width:none;
  overscroll-behavior-x:contain;
}
.rw-row::-webkit-scrollbar{display:none}
.rw-track{
  display:flex;
  width:max-content;
  will-change:transform;
}
.rw-row.is-live .rw-track{
  animation-name:rw-go-left;
  animation-duration:var(--rw-dur,30s);
  animation-timing-function:linear;
  animation-iteration-count:infinite;
}
.rw-row.is-live.rw-row--right .rw-track{animation-name:rw-go-right}
/* 2026-11-26：悬停不再暂停，改成减速（时长由 reviews-wall.js 重算接手）；
   键盘聚焦仍暂停，离屏仍暂停。 */
.rw-wall:focus-within .rw-track,
.rw-row.is-off .rw-track{animation-play-state:paused}

/* 一周期平移一整组（组宽 = 轨道总宽 ÷ 组数），组数由 JS 写入 --rw-n */
@keyframes rw-go-left{
  from{transform:translate3d(0,0,0)}
  to{transform:translate3d(calc(-100% / var(--rw-n,2)),0,0)}
}
@keyframes rw-go-right{
  from{transform:translate3d(calc(-100% / var(--rw-n,2)),0,0)}
  to{transform:translate3d(0,0,0)}
}

/* ---------- 五、评论卡：上排元信息，下方整段评论 ---------- */
.rw-set{display:flex}
.rw-card{
  position:relative;
  flex:0 0 auto;
  width:auto;
  margin-right:12px;
  padding:12px 16px 14px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.11);
  background:linear-gradient(160deg,rgba(6,15,30,.62) 0%,rgba(11,24,44,.5) 100%);
  box-shadow:
    0 14px 30px -22px rgba(0,0,0,.92),
    inset 0 1px 0 rgba(255,255,255,.14);
  color:#fff;
}
.rw-card:hover{
  border-color:rgba(120,164,236,.3);
  background:linear-gradient(160deg,rgba(9,20,38,.7) 0%,rgba(15,31,55,.58) 100%);
}
.rw-top{
  display:flex;align-items:center;gap:9px;
  white-space:nowrap;
}
.rw-stars{
  flex:none;
  color:var(--yellow);
  font-size:var(--fs-micro);
  letter-spacing:1.4px;
  line-height:1;
  text-shadow:0 0 10px rgba(120,164,236,.42);
}
.rw-name{
  flex:none;
  font-size:var(--fs-micro);
  letter-spacing:.04em;
  color:rgba(255,255,255,.62);
}
.rw-src{
  margin-left:2px;
  font-size:var(--fs-micro);
  letter-spacing:.04em;
  color:rgba(255,255,255,.38);
}
.rw-src::before{content:"·";margin-right:4px;opacity:.75}
.rw-date{
  flex:none;
  font-size:var(--fs-micro);
  letter-spacing:.05em;
  color:rgba(255,255,255,.36);
}
.rw-text{
  margin:7px 0 0;
  font-size:var(--fs-note);
  line-height:1.4;
  color:rgba(255,255,255,.9);
  white-space:nowrap;
}

/* ---------- 六、窄屏 ---------- */
@media (max-width:900px){
  .rw-sec{padding:40px 0 46px}
  .rw-panel{padding:20px 0 18px;border-radius:16px}
  .rw-head{padding:0 18px}
  .rw-head .lede{font-size:var(--fs-note)}
  .rw-wall{margin-top:16px;gap:8px}
  .rw-card{padding:11px 14px 12px;margin-right:10px;border-radius:11px}
  .rw-text{font-size:var(--fs-small)}
}

/* ---------- 七、减少动效：停播，改为可横向拖动 ---------- */
/* 2026-11-30 强制动效：原 @media (prefers-reduced-motion:reduce) 降级块（animation:none +
   mask 取消）已移除，评价墙在任何设备上都滚动。回退见
   D:\ramical.com-改动备份\20261130-1058-强制动效\reviews-wall.css */

/* 窄屏与 .wrap 同步收成左右各 20 */
@media (max-width:820px){
  .rw-panel{width:calc(100% - 40px)}
}
