/* =====================================================
   表格横向滚动提示（移动端）
   由 /assets/table-hint.js 自动包裹 .fw-table-scroll / .table-scroll
   ===================================================== */

.fw-scroll-wrap {
  position: relative;
}

.fw-scroll-frame {
  position: relative;
}

/* 右侧渐隐遮罩：暗示右边还有内容，滚到最右端自动淡出 */
.fw-scroll-frame::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 1px;
  right: 1px;
  bottom: 1px;
  width: 46px;
  border-radius: 0 12px 12px 0;
  background: linear-gradient(
    to left,
    rgba(255, 255, 255, .96),
    rgba(255, 255, 255, .72) 45%,
    rgba(255, 255, 255, 0)
  );
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}

.fw-scroll-wrap.is-scrollable:not(.is-end) .fw-scroll-frame::after {
  opacity: 1;
}

/* 文字提示：仅移动端、且确实溢出时才显示 */
.fw-scroll-hint {
  display: none;
  margin: 8px 2px 0;
  color: #61766a;
  font-size: 12px;
  line-height: 1.5;
  text-align: right;
}

@media (max-width: 900px) {
  .fw-scroll-wrap.is-scrollable > .fw-scroll-hint {
    display: block;
  }
}

.fw-scroll-hint > span {
  display: inline-block;
  animation: fw-swipe-nudge 1.8s ease-in-out infinite;
}

@keyframes fw-swipe-nudge {
  0%, 100% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
}

@media (prefers-reduced-motion: reduce) {
  .fw-scroll-hint > span { animation: none; }
}
