/* ===========================================================
   手機版視覺調整 (home_mobile_fix.css)
   讓首頁接近 meepshop 手機版風格
   =========================================================== */

@media (max-width: 767.98px) {

  /* 整體留白一致 */
  body {
    background: #fff;
  }

  main, #main, .main, #meepshop main {
    padding: 12px 0 60px;
  }

  /* 每個 section 間距一致 */
  section, .section {
    margin: 0 12px 16px 12px !important;
  }

  /* 所有圖片統一樣式 */
  img {
    display: block;
    width: 100% !important;
    height: auto !important;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0,0,0,.08);
  }

  /* 影片容器統一比例 */
  iframe, video {
    width: 100%;
    border: 0;
    border-radius: 14px;
    aspect-ratio: 16 / 9;
    box-shadow: 0 8px 22px rgba(0,0,0,.08);
  }

  /* Banner 輪播區（透過 JS 控制 active） */
  .home-banner {
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: 0;
    margin: 0 0 20px 0;
  }

  .home-banner .slide {
    width: 100%;
    height: auto;
    display: none;
    transition: opacity .5s;
  }

  .home-banner .slide.active {
    display: block;
    opacity: 1;
  }

  /* 點點指示器 */
  .home-banner .dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
  }

  .home-banner .dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 3px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
  }

  .home-banner .dot.active {
    background: #fff;
  }

  /* 主要內容卡片感 */
  .section img {
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(0,0,0,.1);
    background: #fff;
  }

  /* 影片區 */
  .video-section {
    margin-top: 20px;
  }
}

.home-banner .slide { display: none; }
.home-banner .slide.active { display: block; }
/* Banner 容器疊圖 */
.home-banner{
  position: relative;
  overflow: hidden;
}
.home-banner .slide{
  /* position: absolute; */
  inset: 0;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: none;            /* 先全部隱藏 */
}
.home-banner .slide.active{
  display: block;           /* 只有作用中的顯示 */
}

/* 左右箭頭 */
.banner-arrow{
  position: absolute;
  top: 0;
  bottom: 0;
  width: 15%;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,.8);
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;               /* 在圖片上方 */
  cursor: pointer;
  pointer-events: auto;     /* 可點擊 */
}

/* Banner 容器 */
.home-banner{
  position: relative;
  overflow: hidden;
}

/* 每張圖：預設隱藏，active 才顯示。
   不要 absolute，讓容器依圖高撐開 */
.home-banner .slide{
  display: none;
  width: 100%;
  height: auto;
}
.home-banner .slide.active{
  display: block;
}

/* 左右箭頭保持疊在最上層可點 */
.banner-arrow{
  /* position: absolute; */
  top: 0;
  bottom: 0;
  width: 15%;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,.85);
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  pointer-events: auto;
}
.banner-arrow.prev{ left: 0; }
.banner-arrow.next{ right: 0; }
.banner-arrow:hover{ color:#fff; }