/* ====================================================
   🎬 精選推薦輪播
   ==================================================== */
.featured-carousel {
  width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
  margin-top: 2%;
  background: #fff;
}
.featured-carousel .section-header {
  display: flex;
  align-items: center;
  padding: 12px 6px 8px;
}
.featured-carousel .section-header .iLine {
  width: 3px;
  height: 16px;
  border-radius: 3px;
  background-color: #3097fd;
  margin-right: 6px;
}
.featured-carousel .section-header .sMark {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333;
}
.featured-swiper-outer {
  position: relative;
  width: 100%;
}
.featured-swiper {
  width: 100%;
  overflow: hidden;
  padding: 6px 2px 16px;
}
.featured-swiper .swiper-slide {
  width: 150px;
  flex-shrink: 0;
}
.featured-card {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  display: block;
  text-decoration: none;
}
.featured-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.featured-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}
.featured-card .card-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 10px 8px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  border-radius: 0 0 12px 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 箭頭導航 */
.featured-nav {
  position: absolute;
  top: 50%;
  width: 40px;
  height: 40px;
  background: rgba(0,0,0,0.7);
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  transform: translateY(-50%);
  z-index: 10;
  color: #fff;
}
.featured-nav:hover {
  background: #E50914;
  transform: translateY(-50%) scale(1.1);
}
.featured-nav.prev { left: -8px; }
.featured-nav.next { right: -8px; }
.featured-nav svg {
  width: 22px;
  height: 22px;
}

/* 手機版：隱藏箭頭 */
@media screen and (max-width: 767px) {
  .featured-nav { display: none !important; }
  .featured-swiper .swiper-slide { width: 150px; }
  .featured-card { height: 220px; }
}

/* ====================================================
   💻 平板 (768px ~ 1023px)：3 列
   ==================================================== */
@media screen and (min-width: 768px) {

  html { font-size: 16px !important; }
  body { background: #eef0f4 !important; text-align: left !important; }
  .wrapper {
    max-width: 960px !important;
    margin: 0 auto !important;
    background: #fff !important;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    min-height: 100vh;
    text-align: left !important;
  }
  .header {
    max-width: 960px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  .featured-carousel { padding: 0 20px; }
  .featured-swiper .swiper-slide { width: 175px; }
  .featured-card { height: 260px; }
  .featured-card .card-title { font-size: 13px; }

  ul.globalPicList.threeList {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 16px !important;
    padding: 16px !important;
    margin: 0 !important;
    list-style: none !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }
  ul.globalPicList.threeList.clearfix::before,
  ul.globalPicList.threeList.clearfix::after {
    display: none !important;
  }
  ul.globalPicList.threeList > li,
  ul.globalPicList.threeList > li:nth-child(3n+2) {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    display: block !important;
    box-sizing: border-box !important;
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
    overflow: hidden !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
  }
  ul.globalPicList.threeList > li:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
  }
  ul.globalPicList.threeList > li .pic {
    width: 100% !important;
    overflow: hidden !important;
    position: relative !important;
  }
  ul.globalPicList.threeList > li .pic img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 4 !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 0 !important;
    transition: transform 0.4s ease !important;
  }
  ul.globalPicList.threeList > li .pic:hover img {
    transform: scale(1.08) !important;
  }
  ul.globalPicList.threeList > li .pic .sBottom {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 20px 8px 6px !important;
    background: linear-gradient(transparent, rgba(0,0,0,0.7)) !important;
    color: #fff !important;
    font-size: 12px !important;
    text-align: left !important;
  }
  ul.globalPicList.threeList > li .sTit {
    text-align: center !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    height: auto !important;
    padding: 10px 8px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .mod_a .th_a { height: auto !important; line-height: normal !important; padding: 16px !important; }
  .mod_a .th_a .iLine { width: 4px !important; height: 20px !important; margin: 2px 8px 0 0 !important; }
  .mod_a .th_a .sMark { font-size: 20px !important; }
  .mod_a .th_a .aMore { font-size: 14px !important; }
  .mod_a .th_a .aMore .moreArrow { margin-top: 5px !important; }

  .pGlobalList.threeList {
    display: flex !important;
    flex-wrap: wrap !important;
    padding: 10px 16px 20px !important;
    margin: 0 !important;
  }
  .pGlobalList.threeList > a,
  .pGlobalList.threeList > a:nth-child(3n+2) {
    width: 25% !important;
    box-sizing: border-box !important;
    font-size: 14px !important;
    padding: 10px 0 !important;
    text-align: center !important;
    float: none !important;
    border: none !important;
    transition: color 0.2s, background 0.2s !important;
  }
  .pGlobalList.threeList > a:hover {
    background: #f5b554 !important;
    color: #fff !important;
    border-radius: 5px !important;
  }
  .sortRecommended { border-bottom: none !important; }
  .sortRecommended a { border: none !important; height: auto !important; line-height: normal !important; }
  .footer { position: relative !important; }
}

/* ====================================================
   💻 小桌面 (1024px ~ 1439px)：5 列
   ==================================================== */
@media screen and (min-width: 1024px) {
  .wrapper { max-width: 1200px !important; }
  .header { max-width: 1200px !important; }

  .featured-swiper .swiper-slide { width: 200px; }
  .featured-card { height: 290px; }
  .featured-card .card-title { font-size: 14px; }

  ul.globalPicList.threeList {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 20px !important;
    padding: 20px !important;
  }
  ul.globalPicList.threeList > li .sTit { font-size: 15px !important; padding: 12px 10px !important; }
  ul.globalPicList.threeList > li .pic .sBottom { font-size: 13px !important; padding: 24px 10px 8px !important; }

  .mod_a .th_a .sMark { font-size: 22px !important; }
  .mod_a .th_a .aMore { font-size: 15px !important; }

  .pGlobalList.threeList > a,
  .pGlobalList.threeList > a:nth-child(3n+2) {
    width: 16.66% !important;
    font-size: 15px !important;
    padding: 12px 0 !important;
  }
}

/* ====================================================
   💻 大桌面 (1440px 以上)：6 列
   ==================================================== */
@media screen and (min-width: 1440px) {
  .wrapper { max-width: 1400px !important; }
  .header { max-width: 1400px !important; }

  .featured-swiper .swiper-slide { width: 220px; }
  .featured-card { height: 320px; }

  ul.globalPicList.threeList {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 24px !important;
    padding: 24px !important;
  }
  ul.globalPicList.threeList > li .sTit { font-size: 16px !important; padding: 14px 10px !important; }
  ul.globalPicList.threeList > li .pic .sBottom { font-size: 14px !important; padding: 28px 10px 8px !important; }

  .mod_a .th_a .sMark { font-size: 24px !important; }
  .mod_a .th_a .aMore { font-size: 16px !important; }

  .pGlobalList.threeList > a,
  .pGlobalList.threeList > a:nth-child(3n+2) {
    width: 12.5% !important;
    font-size: 16px !important;
  }
}
