body {
  font-family: 'Noto Sans TC', sans-serif;
  background-color: #ffffff; /* 幾乎白，但有感受到氣氛 */
  color: #333;

}

a {
  text-decoration: none;
}

.header {
  /* border-bottom: 1px solid; */
}


section .title {
  text-align: center;
    font-size: 32px;
    font-weight: 700;
 
    white-space: nowrap;
  margin-bottom: 1em;
}

.radius-30 {
  padding: 0;
  overflow: hidden;
  border-radius: 30px;
}

.news {
  background: #eeeff4;
}

footer {
    background: #eeeff4;
}

/* goToTop */
#goTopBtn {
  position: fixed;
  right: 20px;
  bottom: 25px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1f4e99;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  opacity: 0;
  /* 預設透明 */
  pointer-events: none;
  /* 不可點 */
  transition: opacity .4s;
  /* 淡入淡出 */
}

/* 顯示時的 class */
#goTopBtn.show {
  opacity: 1;
  pointer-events: auto;
  /* 可點擊 */
}

#goTopBtn:hover {
  background: #143a73;
  transform: translateY(-3px);
  transition: 0.25s;
}


 /* ========================
       16:9 主頁廣告
       ======================== */
  .banner-16x9 {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 */
    overflow: hidden;
    border-radius: 50px;
    margin-bottom: 0.5rem;
  }

  .banner-16x9 .swiper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .banner-16x9 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* ========================
       21:9 品牌頁廣告
       ======================== */
  .banner-21x9 {
    position: relative;
    width: 100%;
    padding-top: 42.857%;
    /* 21:9 */
    overflow: hidden;
    border-radius: 50px;
    margin-bottom: 0.5rem;
  }

  .banner-21x9 .swiper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .banner-21x9 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* ========================
       隱藏箭頭但保留 DOM
       ======================== */
  .banner-16x9 .swiper-button-next,
  .banner-16x9 .swiper-button-prev,
  .banner-21x9 .swiper-button-next,
  .banner-21x9 .swiper-button-prev {
    display: none;
  }

  /* ========================
       Brands Swiper (360x150px)
       ======================== */
  .brands-swiper {
    width: 100%;
    padding: 1rem 0;
  }

  .brands-swiper .swiper-slide {
    width: 360px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .brands-swiper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  /* ========================
       自定義 pagination 外部位置 + 圓點大 + 間距大 + active 深灰/非 active 淺灰
       ======================== */
  .swiper-custom-pagination {
    text-align: center;
    margin: 1rem 0;
  }

  .swiper-custom-pagination .swiper-pagination-bullet {
    width: 16px;
    height: 16px;
    background-color: #ccc;
    /* 非 active 淺灰 */
    opacity: 1;
    display: inline-block;
    /* ✅ 強制生效 margin */
    margin: 0 20px;
    /* 圓點間距大 */
    border-radius: 50%;
    transition: background-color 0.3s;
  }

  .swiper-custom-pagination .swiper-pagination-bullet-active {
    background-color: #616161ff;
    /* active 深灰 */
  }
  


  
/* --- 卡片基本 --- */
.good-card {
  border: none;
  border-radius: 18px;
  overflow: hidden;
  transition: .3s ease;
  display: flex;
  flex-direction: column;
  /* 高度自適應，不固定 */
}

.good-card:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* --- 圖片區域 --- */
.good-img {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  /* ★ 自動維持正方形 */
  overflow: hidden;
  border-radius: 15px;
}

/* 圖片本體 */
.good-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  transition: .35s ease;
  /* 放大動畫 */
}

/* --- 遮罩 (hover 顯示) --- */
.good-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: .35s ease;
}

/* 加入詢價單按鈕（由下滑入） */
.good-btn {
  position: absolute;
  left: 50%;
  bottom: -20%;
  /* ★ 初始隱藏在圖片下方 */
  transform: translateX(-50%);
  background: #f7a55a;
  color: white;
  padding: 2% 5%;
  /* ★ 隨圖片縮放 */
  border-radius: 30px;
  font-weight: 700;
  transition: bottom 0.35s ease, opacity 0.35s ease;
  z-index: 10;
  opacity: 0;
  /* ★ 初始透明 */
}

.good-btn a {
  text-decoration: none;
  color: #fff;
  font-size: clamp(0.7rem, 2vw, 1rem);
  /* 自適應字體大小 */
  white-space: nowrap;
  /* ★ 禁止換行 */
  overflow: hidden;
  text-overflow: ellipsis;
  /* ★ 超出部分顯示省略號 */
  transition: color 0.35s ease;
}

/* hover 時滑入並顯示 */
.good-card:hover .good-btn {
  bottom: 5%;
  /* ★ 移到圖片底部內側 */
  opacity: 1;
}

/* --------------------------- */
/* HOVER 效果開始 */
/* --------------------------- */
.good-img:hover img {
  transform: scale(1.05);
}

.good-card:hover .good-overlay {
  opacity: 1;
}

.good-card:hover .good-btn {
  bottom: 20px;
}

.good-img:hover .good-heart {
  opacity: 1;
}

/* --- 商品名/代號 --- */
.good-title {
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  color: #6e6e6eff;
  line-height: 1.4;
  height: calc(1.4em * 2);
  letter-spacing: 1.5px;
  overflow: hidden;
}

.good-model {
  font-size: 0.85rem;
  text-align: center;
  color: #5d5d5d;
}

/* --- tag --- */
.tag {
  display: inline-block;
  background: #d3d3d3;
  color: #333;
  border-radius: 30px;
  padding: 3px 10px;
  font-size: 0.75rem;
  margin-right: 5px;
}