

/* ==========================================================================
   body (文字)
   ========================================================================== */
body {
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

/* ==========================================================================
   Product Search Header (top.php)
   ========================================================================== */

.section-product-search-header {
  background-color: #ffffff;
}

/* 頂部橫幅圖片高與定位 */
.section-product-search-header .header-hero-banner {
  height: 280px;
  overflow: hidden;
}

.section-product-search-header .hero-img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* 圖片右下角標註文字 */
.section-product-search-header .photo-credit {
  position: absolute;
  bottom: 12px;
  right: 16px;
  color: #ffffff;
  font-size: 11px;
  background-color: rgba(0, 0, 0, 0.4);
  padding: 2px 8px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 2;
}

/* 左側重疊卡片定位 */
.section-product-search-header .header-content-container {
  margin-top: -80px; /* 向上重疊至 Banner 上 */
  z-index: 3;
}

.section-product-search-header .search-header-card {
  border-top-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  margin-left: 0;
}

/* 頂部膠囊 Badge */
.section-product-search-header .search-badge {
  background-color: #0096a4;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 6px 18px;
  border-radius: 50px;
  display: inline-block;
}

/* 主標題 & 內文 */
.section-product-search-header .search-title {
  font-size: 36px;
  line-height: 1.25;
  color: #061838;
  letter-spacing: 0.5px;
}

.section-product-search-header .search-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #4a5568 !important;
}

/* --------------------------------------------------------------------------
   RWD 響應式切換
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .section-product-search-header .header-hero-banner {
    height: 220px;
  }

  .section-product-search-header .header-content-container {
    margin-top: -50px;
  }

  .section-product-search-header .search-title {
    font-size: 28px;
  }
}

/* 響應式微調 */
@media (max-width: 767.98px) {
  .section-product-search-header .search-header-card {
    margin-left: 0;
    border-top-right-radius: 16px !important;
  }
}

@media (max-width: 575.98px) {
  .section-product-search-header .header-hero-banner {
    height: 180px;
  }

  .section-product-search-header .header-content-container {
    margin-top: -30px;
  }

  .section-product-search-header .search-title {
    font-size: 24px;
  }

  .section-product-search-header .search-header-card {
    border-radius: 16px !important;
  }
}

/* ==========================================================================
   Section Search1 (Product Search & Filter) - 依設計圖比例與字級精準調校
   ========================================================================== */

.section-product-search {
  background-image: url('../img/chinesebrand/search1/search1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 桌機版控制內容最大寬度為 960px，重現設計圖緊湊比例 */
@media (min-width: 992px) {
  .section-product-search .maker-search-container {
    max-width: 960px;
  }
}

.text-teal {
  color: #0096a4 !important;
}

/* 1. 頂部「ピックアップ LEDメーカー」區塊與底部分隔線 */
.type-search-wrapper {
  /* border-bottom: 1px solid rgba(6, 24, 56, 0.12); */
}

.type-search-heading {
  font-size: 15px;
  color: #061838;
  white-space: nowrap;
  line-height: 1.4;
  flex-shrink: 0;
}

.type-cards-grid {
  flex: 1;
}

.type-card {
  flex: 1;
  min-width: 0;
  transition: transform 0.2s ease;
}

.type-card:hover {
  transform: translateY(-4px);
}

/* 頂部 5 個品牌 Logo 容器尺寸與圓角 */
.type-img-box {
  width: 100%;
  height: 96px;
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.type-name {
  font-size: 12px;
  font-weight: 600;
  color: #061838;
  white-space: nowrap;
  display: block;
}

/* RWD 平板適應 */
@media (max-width: 991.98px) {
  .type-search-wrapper .d-flex {
    flex-direction: column;
    align-items: flex-start !important;
  }
  
  .type-search-heading {
    margin-bottom: 15px;
  }

  .type-cards-grid {
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .type-card {
    min-width: 130px;
  }
}

/* 2. 左側邊欄與右側列表頂部標題列對齊 */
.filter-header-bar,
.product-list-header {
  min-height: 34px;
}

.filter-title,
.maker-count-text {
  font-size: 15px;
  color: #061838;
  letter-spacing: 0.3px;
}

.sort-label {
  font-size: 12px;
  color: #475569;
}

.product-sort-box .form-select {
  font-size: 12.5px;
  color: #061838;
  padding-top: 6px;
  padding-bottom: 6px;
  min-width: 130px;
}

/* 左側白色篩選卡片 */
.filter-sidebar {
  border: 1px solid #e2e8f0;
  padding: 22px 18px;
}

.filter-subtitle {
  font-size: 13px;
  color: #061838;
}

.filter-sidebar .form-check-label {
  font-size: 12px;
  color: #334155;
  cursor: pointer;
}

.filter-sidebar .form-check-input {
  width: 14px;
  height: 14px;
  margin-top: 0.25em;
}

.filter-sidebar .form-check-input:checked {
  background-color: #0096a4;
  border-color: #0096a4;
}

/* 關鍵字輸入框 */
.filter-keyword-input {
  font-size: 12px;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}

.filter-keyword-input::placeholder {
  color: #94a3b8;
}

/* 搜尋提交按鈕 */
.btn-search-submit {
  background-color: #051937;
  border: none;
  font-size: 12.5px;
  padding: 10px 12px;
  transition: background-color 0.2s ease;
}

.btn-search-submit:hover {
  background-color: #0096a4;
}

/* 3. 右側製造商卡片 (對齊設計圖比例) */
.product-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px !important;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
  transform: translateY(-2px);
}

@media (min-width: 768px) {
  .maker-card-img-col {
    width: 44%;
    flex: 0 0 44%;
  }
  .product-card-body {
    width: 56%;
    flex: 0 0 56%;
    padding: 20px 24px !important;
  }
  .product-img-box {
    min-height: 196px;
  }
}

.product-meta {
  font-size: 11px;
  margin-bottom: 4px;
}

.product-title {
  font-size: 17px;
  color: #061838;
  margin-bottom: 8px;
}

.product-desc {
  font-size: 12.5px;
  color: #334155;
  line-height: 1.65;
  max-width: 82%;
}

/* 右側圓角膠囊標籤 */
.badge-tag {
  background-color: #f0f9fa;
  color: #0096a4;
  border: 1px solid #bce3e8;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
}

/* 底部「比較リストに追加」淺灰藍方框 (桌機與手機共用設計圖風格) */
.compare-check-box {
  background-color: #f4f7fa;
  border-radius: 6px;
  padding: 6px 14px 6px 32px !important;
  display: inline-flex;
  align-items: center;
}

.compare-check-box .form-check-input {
  margin-top: 0;
  width: 14px;
  height: 14px;
  margin-right: 6px;
}

.compare-check-box .form-check-label {
  font-size: 12px;
  cursor: pointer;
}

/* 右下角圓形箭頭按鈕 */
.btn-circle-arrow {
  width: 32px;
  height: 32px;
  background-color: #f0f9fa;
  border: 1px solid #bce3e8;
  color: #0096a4;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
}

#than {
  filter: brightness(0) invert(1);
}

.btn-circle-arrow:hover {
  background-color: #0096a4;
  border-color: #0096a4;
  color: #ffffff;
}

.btn-circle-arrow:hover .fourShirushi {
  filter: brightness(0) invert(1);
}

/* RWD 平板與手機版適應 */
@media (max-width: 991.98px) {
  .type-search-wrapper .d-flex {
    flex-direction: column;
    align-items: flex-start !important;
  }
  
  .type-search-heading {
    margin-bottom: 15px;
  }

  .type-cards-grid {
    overflow-x: auto; /* 手機版保持橫向滑動 */
    padding-bottom: 8px;
  }

  .type-card {
    min-width: 130px; /* 手機版保持合適尺寸 */
  }
}

/* 2. 左側邊欄 (Sidebar) */
.filter-sidebar {
  border: 1px solid #e2e8f0;
}

.filter-title {
  font-size: 18px;
  color: #061838;
}

.filter-subtitle {
  font-size: 14px;
  color: #061838;
}

.filter-sidebar .form-check-label {
  font-size: 13px;
  color: #475569;
  cursor: pointer;
}

.filter-sidebar .form-check-input:checked {
  background-color: #0096a4;
  border-color: #0096a4;
}

/* 搜尋提交按鈕 */
.btn-search-submit {
  background-color: #081d3c; /* 深藍色 */
  border: none;
  font-size: 12px;
  transition: background-color 0.2s ease;
}

#submitImg{
  width: 15px;
}

.btn-search-submit:hover {
  background-color: #0096a4;
}

/* 3. 右側產品卡片 */
.product-card {
  border: 1px solid #e2e8f0;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.product-card:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
  transform: translateY(-2px);
}

.product-img-box {
  /* height: 200px; */
}

.product-title {
  font-size: 21px;
}

.badge-tag {
  background-color: #f1f5f9;
  color: #0096a4;
  border: 1px solid #e2e8f0;
  font-size: 11px;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 50px;
}

/* 圓形箭頭按鈕 */
.btn-circle-arrow {
  width: 32px;
  height: 32px;
  background-color: #e6f4f6;
  color: #0096a4;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
}
#than{
    filter: brightness(0) invert(1);
    }

.btn-circle-arrow:hover {
  background-color: #0096a4;
  color: #ffffff;
}

.btn-circle-arrow:hover .fourShirushi {
  filter: brightness(0) invert(1);
}

/* 加載更多按鈕 */
.btn-load-more {
  font-size: 14px;
  transition: all 0.2s ease;
}

.btn-load-more:hover {
  border-color: #0096a4 !important;
  color: #0096a4 !important;
}

.btn-load-more .btn-arrow {
  width: 20px;
  height: 20px;
  background-color: #0096a4;
  color: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

/* --------------------------------------------------------------------------
   RWD 響應式切換
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  .product-img-box {
    /* height: 180px; */
  }
}

/* ==========================================================================
   Section Search2 (Product Comparison Table)
   ========================================================================== */

.section-product-compare {
  background-color: #ffffff;
}

/* 膠囊標籤 */
.compare-badge {
  display: inline-block;
  background-color: #0096a4;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 20px;
  border-radius: 50px;
}

/* 主標題 */
.compare-title {
  color: #081d3c;
  font-size: 28px;
  letter-spacing: 0.5px;
}

/* 表格容器 */
.compare-table-wrapper {
  max-width: 1050px;
  border: 1px solid #dbe6f2;
  border-radius: 8px;
  overflow: hidden;
}

.compare-table {
  border-collapse: collapse;
  width: 100%;
}

/* 表格單元格通則 */
.compare-table th,
.compare-table td {
  border: 1px solid #dbe6f2;
  padding: 18px 24px;
  font-size: 14px;
  color: #081d3c;
  vertical-align: middle;
}

/* 左側第一欄（標題欄）背景色 */
.compare-table .th-label,
.compare-table .td-label {
  background-color: #f2f7fc !important;
  font-weight: 700;
  width: 18%;
  min-width: 120px;
}

/* 產品標題列（第一行）背景色 */
.compare-table thead th {
  background-color: #f2f7fc;
  font-weight: normal;
}

/* 產品欄位寬度與對齊 */
.compare-table .th-product {
  width: 27.33%;
  min-width: 220px;
}

.compare-table .product-name {
  font-size: 15px;
  color: #081d3c;
}

/* 產品縮圖大小 */
.compare-table .product-thumb {
  width: 80px;
  height: 55px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* 底部諮詢按鈕 */
.btn-compare-consult {
  background-color: #0096a4;
  font-size: 15px;
  transition: all 0.2s ease;
  min-width: 280px;
}

.btn-compare-consult:hover {
  background-color: #077d89;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 150, 164, 0.25);
}

.btn-compare-consult .btn-circle-icon {
  width: 22px;
  height: 22px;
  background-color: #ffffff;
  color: #0096a4;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

/* 響應式微調 */
@media (max-width: 767.98px) {
  .compare-title {
    font-size: 22px;
  }
  .compare-table th,
  .compare-table td {
    padding: 12px 14px;
    font-size: 13px;
  }
  .compare-table .product-thumb {
    width: 60px;
    height: 42px;
  }
}

/* ==========================================================================
   Section Search3 (Specialty Search Section)
   ========================================================================== */

.section-specialty-search {
   background-image: url('../img/chinesebrand/search3/search3.png'); 
}

/* 膠囊標籤 */
.specialty-badge {
  display: inline-block;
  background-color: #0096a4;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 4px 18px;
  border-radius: 50px;
}

/* 主標題 */
.specialty-title {
  color: #081d3c;
  font-size: 28px;
  letter-spacing: 0.5px;
}

/* 容器限制最大寬度 */
.specialty-cards-wrapper {
  max-width: 960px;
}

/* 分類大卡片 (深藍底) */
.specialty-category-card {
  background-color: #073875;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Banner 圖片區域 */
.category-banner {
  height: 240px;
}

.category-banner-overlay {
  background: linear-gradient(180deg, rgba(7, 24, 48, 0.1) 0%, rgba(7, 24, 48, 0.75) 100%);
}

.category-banner-title {
  font-size: 22px;
  letter-spacing: 0.5px;
}

/* 深藍色內部 Padding */
.category-body {
  background-color: #073875;
}

/* 白色品牌小卡片 */
.brand-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
}

.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Logo 容器框 (黑/深藍底) */
.brand-logo-box {
  background-color: #0b1e38;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

/* 文字樣式 */
.text-dark-navy {
  color: #081d3c;
}

.brand-name {
  font-size: 15px;
}

.brand-desc {
  font-size: 12px;
  line-height: 1.5;
  color: #64748b !important;
}

/* 青綠色圓形箭頭 */
.brand-card .btn-circle-arrow {
  width: 24px;
  height: 24px;
  border: 1px solid #0096a4;
  color: #0096a4;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  transition: all 0.2s ease;
}

.brand-card:hover .btn-circle-arrow {
  background-color: #0096a4;
  color: #ffffff;
}

.brand-card:hover .fourShirushi {
  filter: brightness(0) invert(1);

}

/* 響應式調整 */
@media (max-width: 767.98px) {
  .specialty-title {
    font-size: 22px;
  }
  .category-banner {
    height: 180px;
  }
  .category-banner-title {
    font-size: 18px;
  }
}

/* ==========================================================================
   UP-Vision 品牌風格分頁導覽列 (Pagination)
   ========================================================================== */

.up-pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.up-pagination ul.page-numbers li {
  margin: 0;
}

/* 頁碼按鈕基礎外觀 (白底卡片 + 淺藍灰細邊框 + 深海軍藍文字) */
.up-pagination .page-numbers:not(ul) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  background-color: #ffffff;
  color: #061838;
  border: 1px solid #dbe6f2;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(6, 24, 56, 0.04);
  transition: all 0.2s ease;
}

/* 滑鼠移入效果 */
.up-pagination a.page-numbers:hover {
  border-color: #0096a4;
  color: #0096a4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 150, 164, 0.15);
}

/* 當前所在頁碼 (Active 狀態：品牌青綠實心底色) */
.up-pagination .page-numbers.current {
  background-color: #0096a4;
  border-color: #0096a4;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 150, 164, 0.25);
}

/* 省略號 (...) 樣式 */
.up-pagination .page-numbers.dots {
  background-color: transparent;
  border-color: transparent;
  box-shadow: none;
  min-width: 24px;
  padding: 0;
  color: #64748b;
}

/* 上一頁 / 下一頁 文字按鈕加寬內距 */
.up-pagination .prev.page-numbers,
.up-pagination .next.page-numbers {
  padding: 0 18px;
}

/* 按鈕內的青綠色圓圈箭頭 Icon (呼應設計圖按鈕風格) */
.up-pagination .page-btn-circle {
  width: 20px;
  height: 20px;
  background-color: #0096a4;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.up-pagination a.prev.page-numbers:hover .page-btn-circle {
  transform: translateX(-2px);
  background-color: #007d89;
}

.up-pagination a.next.page-numbers:hover .page-btn-circle {
  transform: translateX(2px);
  background-color: #007d89;
}

/* 手機版響應式微調 */
@media (max-width: 767.98px) {
  .up-pagination ul.page-numbers {
    gap: 6px;
  }

  .up-pagination .page-numbers:not(ul) {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
    padding: 0 10px;
  }

  .up-pagination .prev.page-numbers,
  .up-pagination .next.page-numbers {
    padding: 0 14px;
  }
}

/* ==========================================================================
   Section Search1 (Chinese Maker Search & Filter) 手機版專用樣式
   (僅在 767.98px 以下生效，PC 版完全不變)
   ========================================================================== */
@media (max-width: 767.98px) {
  .section-product-search {
    padding-top: 32px !important;
    padding-bottom: 40px !important;
  }

  /* 1. 頂部「ピックアップLEDメーカー」改為 2欄 網格 */
  .section-product-search .type-search-wrapper {
    margin-bottom: 32px !important;
  }

  .section-product-search .type-search-heading {
    font-size: 16px !important;
    margin-bottom: 12px !important;
  }

  .section-product-search .type-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    overflow-x: visible !important;
    padding-bottom: 0 !important;
  }

  .section-product-search .type-card {
    min-width: 0 !important;
    width: 100% !important;
  }

  /* 覆寫行內 170x120px 設定，讓手機版 2 欄卡片等比例填滿 */
  .section-product-search .type-img-box {
    height: 104px !important;
    padding: 0 !important;
    border-radius: 12px !important;
  }

  .section-product-search .type-img-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 12px !important;
  }

  .section-product-search .type-name {
    font-size: 12px !important;
    white-space: normal !important;
    line-height: 1.35 !important;
  }

  /* 2. 手機版「条件で絞り込む」下拉選單卡片 */
  .section-product-search .filter-mobile-heading {
    font-size: 16px;
    color: #061838;
  }

  .section-product-search .filter-mobile-card {
    border: 1px solid #e2e8f0;
  }

  .section-product-search .mobile-filter-select {
    font-size: 13px;
    color: #061838;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 36px 12px 14px;
    background-color: #ffffff;
    box-shadow: none !important;
  }

  .section-product-search .mobile-filter-select:focus {
    border-color: #0096a4;
  }

  /* 藍綠色搜尋提交按鈕 + 右側白底圓形箭頭 */
  .section-product-search .btn-mobile-search-submit {
    background-color: #0096a4;
    border: none;
    font-size: 14px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .section-product-search .btn-mobile-search-submit:hover {
    background-color: #007d89;
  }

  .section-product-search .btn-submit-arrow {
    width: 20px;
    height: 20px;
    background-color: #ffffff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 16px;
  }

  /* 3. 製造商列表頂部「該当するメーカー」與「並び替え」改為上下兩行靠左 */
  .section-product-search .product-list-header {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    margin-top: 8px;
  }

  .section-product-search .product-sort-box {
    width: auto;
  }

  .section-product-search .product-sort-box .form-select {
    min-width: 140px;
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 13px;
  }

  /* 4. 製造商卡片手機版細節調整 */
  .section-product-search .product-img-box {
    height: 170px !important;
  }

  .section-product-search .product-card-body {
    padding: 16px !important;
  }

  /* 依照設計圖，將製造商卡片的特色標籤靠右對齊 */
  .section-product-search .product-tags {
    justify-content: flex-end !important;
    margin-bottom: 14px !important;
  }

  /* 底部「比較リストに追加」淺色背景方框 + 右側圓形箭頭 */
  .section-product-search .product-card-footer {
    gap: 12px;
  }

  .section-product-search .compare-check-box {
    /* flex: 1; */
    background-color: #f4f7fa;
    border-radius: 6px;
    padding: 8px 12px 8px 34px !important;
    display: flex;
    align-items: center;
  }

  .section-product-search .compare-check-box .form-check-input {
    margin-top: 0;
    margin-right: 6px;
  }

  .section-product-search .btn-circle-arrow {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }
}

/* ==========================================================================
   手機版圖片與品牌 LOGO 完整顯示覆寫（僅在 767.98px 以下生效，不影響 PC 版）
   ========================================================================== */
@media (max-width: 767.98px) {

  /* 1. 頂部主視覺 Banner (top.php)：依原圖比例完整顯示，避免左右被裁切 */
  .section-product-search-header .header-hero-banner {
    height: auto !important;
  }

  .section-product-search-header .header-hero-banner .hero-img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    display: block;
  }

  /* 避免白色標題卡片往上重疊太多而蓋住 Banner 底部 */
  .section-product-search-header .header-content-container {
    margin-top: 0 !important;
  }

  /* 2. 頂部「ピックアップ LEDメーカー」品牌 LOGO (search1.php) */
  .section-product-search .type-img-box {
    height: 104px !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    background-color: #ffffff;
  }

  .section-product-search .type-img-box img {
    width: 100% !important;
    height: 100% !important;

    border-radius: 12px !important;
  }

  /* 3. 製造商列表卡片圖片 / LOGO (search1.php) */
  .section-product-search .product-img-box {
    height: auto !important;
    min-height: 140px;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
  }

  .section-product-search .product-img-box img {
    width: 100% !important;
    height: auto !important;
    max-height: 220px;

  }

  /* 4. 比較表格內的品牌 LOGO 縮圖 (search2.php) */
  .section-product-compare .compare-table .product-thumb {
    background-color: #ffffff;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .section-product-compare .compare-table .product-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

  /* 5. 得意分野分類大圖 Banner 與品牌 LOGO (search3.php) */
  .section-specialty-search .category-banner {
    height: auto !important;
  }

  .section-specialty-search .category-banner img {
    width: 100% !important;
    height: auto !important;

    display: block;
  }

  .section-specialty-search .category-banner-overlay {
    padding: 12px 16px !important;
  }

  .section-specialty-search .category-banner-title {
    font-size: 16px;
  }

  .section-specialty-search .brand-logo-box {
    height: 150px !important;
    padding: 12px !important;
  }

  .section-specialty-search .brand-logo-box img {
    width: 100% !important;
    height: 100% !important;
  
  }
}