/* .banner {
    position: relative;
    border-radius: 20px;
    box-shadow: 0px 5px 20px 5px #000000c9;
    overflow: auto;
    margin-bottom: 20px;
}

.banner-img {
    position: relative;
}

.banner-item {
    position: absolute;
    top: 0;
    left: 0;
    height: auto;
    width: 100%;
} */

.lar-sli {
    border-radius: 20px;
    box-shadow: 0px 5px 20px 5px #000000c9;
    overflow: auto;
}

.home-banner-split {
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    margin-bottom: 0;
}

.home-banner-split .swiper-banner {
    margin-bottom: 0 !important;
}

/* BN 整塊禁止反白：文案是絕對定位疊在圖上的，滑鼠在 BN 上拖一下
   （不管是想翻頁還是隨手拖）就很容易把標題整段選起來。
   原本只有 `.img-item > img` 設了 user-select: none，`.banner-text` 沒有；
   而 .banner-text 雖然是 pointer-events: none，那只擋得住指標事件，
   擋不住文字選取——選取走的是文件的 Range，不看命中測試，所以照樣反白。
   掛在最外層容器上，固定那張與右邊輪播三格一起涵蓋。 */
.home-banner-split,
.banner-text {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.img-item {
    position: relative;
}

.img-item>img {
    width: 100%;
    height: auto;
    -webkit-user-drag: none;
    /* 禁止拖曳 (適用於 WebKit 瀏覽器：Chrome, Safari, Edge) */
    user-drag: none;
    /* 標準屬性 (部分瀏覽器支援) */
    -webkit-user-select: none;
    /* 禁止選取 (Chrome, Safari, Edge) */
    -moz-user-select: none;
    /* 禁止選取 (Firefox) */
    -ms-user-select: none;
    /* 禁止選取 (IE/Edge) */
    user-select: none;
    /* 標準屬性 */
    border-radius: 20px;

}

/* 懸浮不要提亮 banner 圖：避免本身就亮的圖過曝、刺眼破色
   （覆蓋 index_content.css 通用的 .swiper-slide img:hover 115%） */
.swiper-banner .swiper-slide img,
.swiper-banner .img-item>img {
    filter: none;
}

.swiper-banner .swiper-slide img:hover,
.swiper-banner .img-item>img:hover {
    filter: none;
}

/* 輪播文案 — 參考站比例：p 眉标最小 → h2 主標 → h3 約 h2 的 50% */
.banner-text {
  position: absolute;
  top: 10%;
  left: clamp(10px, 3vw, 20px);
  transform: none;
  width: min(58%, 320px);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  z-index: 2;
  pointer-events: none;

  & > p,
  & > h2,
  & > h3 {
    margin: 0;
    max-width: 100%;
  }

  /* 眉标（title） */
  & > p {
    color: var(--ref-secondary, #89c4f4);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  }

  /* 主標（subTitle） */
  & > h2 {
    color: #ffffff;
    font-size: 1.2rem;
    line-height: 1.08;
    letter-spacing: 0.02em;
    font-weight: 800;
    text-shadow:
      0 2px 4px rgba(0, 0, 0, 0.85),
      0 0 10px rgba(0, 0, 0, 0.55);
  }

  /* 副標（subInfo） */
  & > h3 {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: 0.06em;
    margin-top: 0.1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  }

  & > .btn {
    margin-top: 0.5rem;
    pointer-events: auto;
  }

  @media screen and (min-width: 768px) and (max-width: 1024px) {
    top: 12%;
    width: min(52%, 300px);

    & > p {
      font-size: 0.8rem;
    }

    & > h2 {
      font-size: 1.2rem;
    }

    & > h3 {
      font-size: 0.9rem;
    }
  }

  @media screen and (max-width: 767px) {
    top: 8%;
    left: 12px;
    width: calc(100% - 24px);
    max-width: none;
    gap: 0.18rem;

    & > p {
      font-size: 0.8rem;
      letter-spacing: 0.12em;
    }

    & > h2 {
      font-size: 1.2rem;
      letter-spacing: 0.02em;
    }

    & > h3 {
      font-size: 0.9rem;
      letter-spacing: 0.04em;
    }

    & > .btn {
      margin-top: 0.35rem;
    }
  }
}

/* 右欄三格輪播（手機／窄格）再略縮一級 */
.home-banner-split__carousel .banner-text {
  top: 8%;
  left: 8px;
  width: calc(100% - 16px);
}

.home-banner-split__carousel .banner-text > p {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.home-banner-split__carousel .banner-text > h2 {
  font-size: 1.35rem;
  line-height: 1.1;
}

.home-banner-split__carousel .banner-text > h3 {
  font-size: 1rem;
  margin-top: 0.05rem;
}

/* .banner-item.item1 {
    background: url("../img/banner-01.jpg") no-repeat;
    background-size: 100%;
}

.banner-item.item2 {
    background: url("../img/banner-02.jpg") no-repeat;
    background-size: 100%;
}

.banner-item.item3 {
    background: url("../img/banner-03.jpg") no-repeat;
    background-size: 100%;
}

.banner-item.item4 {
    background: url("../img/banner-04.jpg") no-repeat;
    background-size: 100%;
}

.banner-item.item5 {
    background: url("../img/banner-05.jpg") no-repeat;
    background-size: 100%;
}

.banner-item.item6 {
    background: url("../img/banner-06.jpg") no-repeat;
    background-size: 100%;
}

.banner-item.item7 {
    background: url("../img/banner-07.jpg") no-repeat;
    background-size: 100%;
}

.banner-item.item8 {
    background: url("../img/banner-08.jpg") no-repeat;
    background-size: 100%;
} 

.knobbox {
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
    bottom: 15px;
    z-index: 30;
    font-size: 0;
    line-height: 0;
}

.knobbox .knob {
    display: inline-block;
    margin: 0 5px;
    width: 30px;
    height: 7px;
    cursor: pointer;
    margin-bottom: 5px;
    background: var(--color-w65);
    border-radius: 15px;
}

.knobbox .knob.active {
    background: var(--color-btn);
}*/

.h5BN {
    display: none;
}

@media screen and (max-width:767px) {
    /* .banner {
        height: auto;
        margin-top: 15px;
    } */

    .pcBN {
        display: none;
    }

    .h5BN {
        display: block;
    }
}

/* 首頁 bets.io 風格：左 1:1 固定圖 + 右三格輪播（RWD 巢狀於同一區塊） */
.home-banner-split {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;

  @media screen and (min-width: 768px) {
    display: grid;
    grid-template-columns: minmax(0, 430fr) minmax(0, 868fr);
    gap: 16px;
    align-items: stretch;
  }

  /* ⚠ 以下 `&__xxx` 整段是死碼，實際沒有套用到任何元素。
     原生 CSS 巢狀的 `&` 是選擇器代換，不像 Sass 會做字串串接：
     `&__static` 被解析成「同時符合 & 且型別為 __static 的元素」，永遠比對不到。
     真正生效的是本區塊下方那幾條攤平寫法的規則。
     保留是為了留住原始意圖；要復活請逐條改成完整 class 名並個別驗證外觀，
     不要整段直接還原 —— 其中「桌機隱藏輪播 banner-text」等規則與現行版型相衝。 */
  &__static {
    @media screen and (max-width: 767px) {
      display: none;
    }
  }

  &__static-link {
    display: block;
    width: 100%;
    height: 100%;
  }

  &__static-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f1420 0%, #1a2030 100%);
  }

  &__static-img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    border-radius: 16px;
  }

  &__carousel {
    position: relative;
    min-width: 0;
    width: 100%;

    & .swiper-banner {
      width: 100%;
      overflow: hidden;
      border-radius: 16px;
      margin-bottom: 0;
    }

    & .swiper-pagination-banner {
      position: relative;
      margin: 0;
      padding: 0;
    }

    & .home-banner-split__slide {
      @media screen and (min-width: 768px) {
        height: 100%;
        border-radius: 16px;
        overflow: hidden;
        background: linear-gradient(135deg, #0f1420 0%, #1a2030 100%);
      }
    }

    & .home-banner-split__slide-img {
      @media screen and (min-width: 768px) {
        width: 100% !important;
        height: 100% !important;
        max-height: none !important;
        object-fit: cover !important;
        object-position: top right !important;
        border-radius: 16px !important;
      }
    }

    & .banner-text {
      @media screen and (min-width: 768px) {
        display: none;
      }
    }

    & .img-item > img.h5BN {
      @media screen and (min-width: 768px) {
        display: none !important;
      }
    }

    & .img-item > img.pcBN {
      @media screen and (min-width: 768px) {
        display: block !important;
      }
    }
  }
}

/* 輪播容器要是定位起點。上面 `&__carousel` 那條 position: relative 是死碼，
   缺了它，分頁（swiper 預設 position: absolute; bottom: 8px）會往上找到
   `.tab-content`（position: relative）當包含區塊，於是跑到整個主欄的最底部
   ——手機版就會在「熱門遊戲商」下面浮出一條分頁。 */
.home-banner-split__carousel {
  position: relative;
  min-width: 0;
  width: 100%;
}

/* 分頁一律排在輪播下方（不再疊在圖上）：手機的長條圓點是深藍實色，
   壓在深色主視覺上看不出選中位置，排到淺色頁面底上才讀得出來，也與桌機一致。
   swiper 的 CSS 在本檔之後載入，故需 !important。 */
.home-banner-split__carousel .swiper-pagination-banner {
  position: static !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  flex: 0 0 auto;
  margin: 10px 0 0 !important;
  padding: 0;
  line-height: 0;
  text-align: center;
  z-index: 3;
}

/* 左欄固定圖僅桌機顯示（扁平選擇器，避免被 lux-layout 的 .img-item > .h5BN 蓋掉） */
@media screen and (max-width: 767px) {
  .home-banner-split__static {
    display: none !important;
  }
}

@media screen and (min-width: 768px) {
  .home-banner-split__static-inner .pcBN {
    display: block !important;
  }
}

/* 桌機：右欄「輪播 + 下方分頁」整體高度對齊左欄 1:1 固定圖（欄寬 430:868 → 同高 aspect-ratio 868/430）。
   比例掛在外層容器，輪播本身讓出下方分頁的高度，所以右邊三格會比左欄矮一截。 */
@media screen and (min-width: 768px) {
  .home-banner-split__carousel {
    display: flex;
    flex-direction: column;
    align-self: start;
    aspect-ratio: 868 / 430;
  }

  .home-banner-split__carousel .swiper-banner {
    aspect-ratio: auto;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
  }

  .home-banner-split__carousel .swiper-wrapper {
    height: 100% !important;
  }

  .home-banner-split__carousel .swiper-slide.home-banner-split__slide {
    height: 100% !important;
  }

  .home-banner-split__carousel .home-banner-split__slide.img-item {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .home-banner-split__carousel .home-banner-split__slide-img,
  .home-banner-split__carousel .swiper-slide.home-banner-split__slide img.pcBN {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: top right !important;
  }

}

/* 左欄固定張的文字：區塊比右側單格大得多，字級同步放大（右側三格不受影響）。
   用兩個 class 提高特異性，確保蓋過 .banner-text 的基礎字級。 */
.banner-text.home-banner-split__static-text {
  width: min(90%, 400px);
}

.banner-text.home-banner-split__static-text > p {
  font-size: 1.1rem;
}

.banner-text.home-banner-split__static-text > h2 {
  font-size: 1.7rem;
}

.banner-text.home-banner-split__static-text > h3 {
  font-size: 1.2rem;
}

/* 分頁圓點改長條 */
.home-banner-split__carousel .swiper-pagination-banner .swiper-pagination-bullet {
  width: 22px;
  height: 4px;
  border-radius: 999px;
  background: var(--color-w25);
  opacity: 1;
  margin: 0 4px !important;
  transition: width .25s ease, background .25s ease;
}

.home-banner-split__carousel .swiper-pagination-banner .swiper-pagination-bullet-active {
  width: 34px;
  background: var(--color-btn);
}

/* 手機：分頁疊回圖塊內的下緣（桌機仍排在三格下方，那裡要靠它讓出高度對齊左欄）。
   容器已是 position: relative，所以 absolute 會定位到輪播本身而不是整個主欄。 */
@media screen and (max-width: 767px) {
  .home-banner-split__carousel .swiper-pagination-banner {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 10px !important;
    width: 100% !important;
    margin: 0 !important;
    z-index: 3;
  }

  /* 疊在主視覺上，深藍的選中點會沉進暗色圖裡看不出在第幾張，改白色系並補陰影墊底 */
  .home-banner-split__carousel .swiper-pagination-banner .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.45);
    box-shadow: 0 1px 3px rgba(0, 12, 28, 0.45);
  }

  .home-banner-split__carousel .swiper-pagination-banner .swiper-pagination-bullet-active {
    background: #ffffff;
  }
}

@media screen and (min-width:768px) and (max-width: 1024px) {
    /* .banner {
        height: auto;
    } */

    .h5BN {
        display: none;
    }
}