/* =====================================================
   HsScroller — 横向滑动卡片列表样式
   ===================================================== */

/* ---------- 容器 ---------- */
.hs-scroller {
  position: relative;
  user-select: none;
  -webkit-user-select: none;
}

/* ---------- 视口 ---------- */
.hs-viewport {
  overflow: hidden;
  /*border-radius: 12px;*/
}

/* ---------- 轨道 ---------- */
.hs-track {
  display: flex;
  gap: var(--hs-gap, 16px);
  will-change: transform;
  padding: 10px 0;
}
.hs-track.dragging {
  cursor: grabbing !important;
}
.hs-track :not(.dragging) {
  cursor: grab;
}
.hs-track.smooth {
  transition: transform var(--hs-duration, 0.45s) var(--hs-easing, cubic-bezier(0.25, 0.46, 0.45, 0.94));
}
.hs-track.no-transition {
  transition: none !important;
}

/* ---------- 多排 grid 布局 ---------- */
.hs-track.is-grid {
  display: grid;
  grid-template-rows: repeat(var(--hs-rows, 1), auto);
  grid-auto-flow: column;
  grid-auto-columns: var(--hs-card-width-px);
}
.hs-track.is-grid .hs-card {
  width: auto;            /* 让 grid 控制列宽，卡片自适应 */
  flex-shrink: none;      /* flex 属性在 grid 中无效，显式重置 */
}
.hs-track :not(.dragging) {
  cursor: grab;
}
.hs-track.smooth {
  transition: transform var(--hs-duration, 0.45s) var(--hs-easing, cubic-bezier(0.25, 0.46, 0.45, 0.94));
}
.hs-track.no-transition {
  transition: none !important;
}

/* ---------- 卡片 ---------- */
.hs-card {
  flex-shrink: 0;
  width: var(--hs-card-width);
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.hs-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.10);
}

/* ---- 卡片内部的链接（覆盖整张卡片） ---- */
.hs-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.hs-card-link:hover {
  color: inherit;
}

.hs-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #e8e8e8;
}

.hs-card-body {
  padding: 12px 14px 16px;
}

.hs-card-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hs-card-desc {
  font-size: 14px;
  color: #888;
  margin-top: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 18px;
}

/* ---------- 左右箭头 ---------- */
.hs-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 8px rgba(0,0,0,0.13);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.25s, transform 0.25s, box-shadow 0.25s;
  opacity: 0;
  pointer-events: none;
  color: #555;
  font-size: 20px;
  line-height: 1;
}
/* 桌面端 hover 时显示 */
.hs-scroller:hover .hs-btn,
.hs-btn.show {
  opacity: 1;
  pointer-events: auto;
}
.hs-btn:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,0.18);
  color: #222;
}
.hs-btn:active {
  transform: translateY(-50%) scale(0.93);
}
.hs-btn--prev { left: calc(var(--hs-btn-offset, -18px)); }
.hs-btn--next { right: calc(var(--hs-btn-offset, -18px)); }
.hs-btn.is-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* 移动端隐藏箭头按钮 */
@media (max-width: 768px) {
  .hs-btn {
    display: none !important;
  }
  .hs-btn--prev { --hs-btn-offset: -10px; }
  .hs-btn--next { --hs-btn-offset: -10px; }
}

/* ---------- 圆点指示器 ---------- */
.hs-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}
.hs-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ccc;
  transition: background 0.3s, width 0.3s;
  cursor: pointer;
  flex-shrink: 0;
}
.hs-dot.active {
  background: #333;
  width: 18px;
  border-radius: 3px;
}

/* ---------- 可滑动提示 ---------- */
.hs-hint {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #999;
  margin-bottom: 10px;
  opacity: 0;
  transition: opacity 0.5s;
}
.hs-hint.show {
  opacity: 1;
}
.hs-hint svg {
  animation: hs-hint-slide 1.4s ease-in-out infinite;
}
@keyframes hs-hint-slide {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(4px); }
}

/* ---------- 移动端适配 ---------- */
@media (max-width: 768px) {
  .hs-card-body { padding: 10px 12px 14px; }
  .hs-card-title { font-size: 14px; }
  .hs-card-desc { font-size: 12px; }
  .hs-hint { display: none; }
}

/* ---------- 全屏幻灯 ---------- */
.hs-banner-card {
    flex-shrink: 0;
    width: var(--hs-card-width);
    background: #fff;
    overflow: hidden;
}
.hs-banner-card-img {
    width: 100%;
    display: block;
    background: #e8e8e8;
}
.hs-banner-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.hs-banner-card-link:hover {
    color: inherit;
}
  /* Banner 幻灯自定义样式 */
.banner-scroller .hs-banner-card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    padding: 40px 24px 20px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.banner-scroller .hs-banner-card-body-info{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
}
.banner-scroller .hs-banner-card {
    position: relative;
}
.banner-scroller .hs-banner-card-title {
    font-size: 30px;
    color: #fff;
    font-weight: bold;
}
.banner-scroller .hs-banner-card-desc {
    color: rgba(255,255,255,0.8);
    font-size: 20px;
}
.banner-scroller .hs-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
}
.banner-scroller .hs-dot {
    background: rgba(255,255,255,0.4);
}
.banner-scroller .hs-dot.active {
    background: #fff;
}
@media (max-width : 768px) {
.banner-scroller .hs-banner-card-title {
    font-size: 20px;
}
.banner-scroller .hs-banner-card-desc {
    font-size: 13px;
}
.banner-scroller .hs-banner-card-body-info{
    gap: 8px;
}
.block.type-1 .banner-scroller .hero-badges .badges i {
    font-size: 18px;
}
.block.type-1 .banner-scroller .hero-badges .badges span{
    font-size: 13px;
}
.block.type-1 .banner-scroller .hero-badges {
    gap: 20px;
    margin-top: 1px;
}
.banner-scroller .hs-dots {
    bottom: -12px;
}
.banner-scroller .hs-dot.active{
    background: #c3a359;
}
.banner-scroller .hs-dot{
    background: rgb(216 187 124);
}
}