  /**
  * VSW Adv Dual Swiper — 主屏全幅 + 底部拇指条
  */

  /* ─── 外层容器 ─── */
  .vsw-adv.section {
    width: 100%;
  }

  .vsw-adv .vsw-adv__box.adv-box {
    position: relative;
    width: 100%;
    min-height: 420px;
    box-sizing: border-box;
    overflow: hidden;
  }

  /* ─── 主图区（绝对铺满整个容器）─── */
  .vsw-adv .box-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
  }

  .vsw-adv .adv-txt-swiper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    touch-action: pan-y;
  }

  /* 水平滑动轨道 */
  .vsw-adv .adv-track {
    display: flex;
    align-items: stretch; /* 每张主图拉满轨道高度，文字才能相对整屏垂直居中 */
    width: 100%;
    height: 100%;
    min-height: 100%;
    transform: translate3d(0, 0, 0);
    transition: transform 0.45s ease;
    will-change: transform;
  }

  /* “百叶窗”分区覆盖层（透明，可选显示分隔线） */
  .vsw-adv .vsw-adv__hitgrid {
    position: absolute;
    inset: 0;
    z-index: 8; /* 低于缩略图条(10)，高于主图 */
    display: grid;
    grid-template-columns: repeat(var(--vsw-adv-count, 4), 1fr);
    pointer-events: none; /* 事件由父容器监听，这层只用于视觉 */
  }

  .vsw-adv .vsw-adv__hitcell {
    border-left: 0;
  }

  .vsw-adv .vsw-adv__hitcell:first-child {
    border-left: 0;
  }

  /* 每张主图：宽=父容器100%，不收缩，所以4张合计400%宽 */
  .vsw-adv .adv-track > [data-vsw-adv-main-item],
  .vsw-adv .adv-txt-item {
    position: relative;
    flex: 0 0 100%;
    width: 100%;
    min-height: 100%;
    height: 100%;
    align-self: stretch;
    box-sizing: border-box;
    /* 子元素 img / .item-wrap 多为绝对定位，必须显式高度否则父级会塌成 0 */
  }

  .vsw-adv .adv-txt-item .item-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
  }

  .vsw-adv .adv-txt-item .item-wrap {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 24px 6%;
    max-width: 720px;
    width: min(720px, calc(100% - 12%));
    box-sizing: border-box;
    text-align: center;
    pointer-events: none; /* 百叶窗/滑动在父层；文字默认不可选点穿 */
  }

  .vsw-adv .adv-txt-item .item-wrap .item-title,
  .vsw-adv .adv-txt-item .item-wrap .item-desc {
    pointer-events: auto;
  }

  .vsw-adv .adv-txt-item .item-title {
    width: 100%;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 16px;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
  }

  .vsw-adv .adv-txt-item .item-title span {
    display: block;
  }

  .vsw-adv .adv-txt-item .item-desc {
    font-size: clamp(0.9rem, 1.5vw, 1.05rem);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
    max-width: 560px;
    width: 100%;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
  }

  /* ─── 拇指条（绝对贴底，z-index高于主图区）─── */
  .vsw-adv[data-vsw-adv-root] .adv-swiper {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch;
    box-sizing: border-box;
    min-height: 88px;
    /* 叠在主图上：给两侧一点内边距（如不需要可删除） */
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .vsw-adv[data-vsw-adv-root] .adv-item {
    flex: 0 0 auto;
    width: calc(100% / var(--vsw-adv-count, 4)) !important;
    max-width: calc(100% / var(--vsw-adv-count, 4)) !important;
    min-width: 0;
    height: auto;
    cursor: pointer;
    box-sizing: border-box;
  }

  /* Mobile: show 2 thumbs per view (still horizontally scrollable) */
  @media (max-width: 767px) {
    .vsw-adv[data-vsw-adv-root] .adv-swiper {
      scroll-snap-type: x mandatory;
      scroll-padding: 0;
    }

    .vsw-adv[data-vsw-adv-root] .adv-item {
      width: 50% !important;
      max-width: 50% !important;
      min-width: 50% !important;
      scroll-snap-stop: always;
    }

    /* Snap by "pages" of 2 items: only odd items are snap points */
    .vsw-adv[data-vsw-adv-root] .adv-item:nth-child(2n + 1) {
      scroll-snap-align: start;
    }
    .vsw-adv[data-vsw-adv-root] .adv-item:nth-child(2n) {
      scroll-snap-align: none;
    }
  }

  /* ─── 拇指卡片 ─── */
  .vsw-adv .adv-item .item-wrap {
    height: 100%;
    padding: 0;
  }

  .vsw-adv .adv-item .caption {
    position: relative;
    /* 未选中：颜色 / 背景图由 Elementor「Thumb appearance」写入根节点 CSS 变量 */
    background-color: var(--vsw-adv-thumb-inactive-bg, rgba(255, 255, 255, 0.95));
    background-image: var(--vsw-adv-thumb-inactive-image, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0;
    overflow: hidden;
    min-height: 88px;
    height: 100%;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.25s ease, background-color 0.25s ease;
    box-sizing: border-box;
  }

  .vsw-adv .adv-item.is-active .caption,
  .vsw-adv .adv-item:first-child:not(.is-active-overridden) .caption {
    background-color: var(
      --vsw-adv-thumb-active-bg,
      var(--vsw-adv-thumb-inactive-bg, rgba(255, 255, 255, 0.95))
    );
    background-image: var(
      --vsw-adv-thumb-active-image,
      var(--vsw-adv-thumb-inactive-image, none)
    );
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
    /* 深色描边在自定义背景图上会像一块灰；改用浅色描边作选中提示 */
    outline: 2px solid rgba(255, 255, 255, 0.55);
    outline-offset: -2px;
  }

  .vsw-adv .adv-item .caption-wrap {
    padding: 16px 18px;
    transition: opacity 0.2s ease;
  }

  .vsw-adv .adv-item .caption-wrap .item-name {
    font-size: 1rem;
    font-weight: 700;
    color: #FFFFFF;
  }

  .vsw-adv .adv-item .caption-wrap .item-ename {
    font-size: 0.8rem;
    color: #666;
    margin-top: 4px;
  }

  /* 悬停展开覆盖层 */
  .vsw-adv .adv-item .caption-overlay {
    display: none;
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.92), rgba(50, 50, 50, 0.88));
    color: #fff;
    padding: 14px 16px;
    box-sizing: border-box;
  }

  .vsw-adv .adv-item:hover .caption-overlay {
    display: flex;
    align-items: center;
  }

  .vsw-adv .adv-item.is-active .caption-overlay {
    display: flex;
    align-items: center;
    /* 选中时不再铺深色底，否则会盖住你在「Thumb appearance」里设的选中背景图 */
    background: transparent;
  }

  /* 透明 overlay 上保证白字可读 */
  .vsw-adv .adv-item.is-active .caption-overlay .overlay-left .item-name,
  .vsw-adv .adv-item.is-active .caption-overlay .overlay-left .item-desc {
    text-shadow:
      0 0 10px rgba(0, 0, 0, 0.85),
      0 1px 3px rgba(0, 0, 0, 0.9);
  }

  .vsw-adv .adv-item:hover .caption-wrap {
    opacity: 0;
    pointer-events: none;
  }

  .vsw-adv .adv-item.is-active .caption-wrap {
    opacity: 0;
    pointer-events: none;
  }

  .vsw-adv .overlay-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
  }

  .vsw-adv .overlay-left {
    flex: 1 1 auto;
    min-width: 0;
  }

  .vsw-adv .overlay-left .item-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
  }

  .vsw-adv .overlay-left .item-desc {
    font-size: 0.75rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.88);
    margin-top: 6px;
  }

  .vsw-adv .overlay-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
  }

  .vsw-adv .overlay-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* ─── 响应式 ─── */
  @media (max-width: 767px) {
    .vsw-adv .adv-txt-item .item-wrap {
      width: min(720px, calc(100% - 10%));
      padding: 16px 5%;
    }
  }
