/* ══ 首頁品牌列「選購指南」展開（2026-10-16 從樣本頁併入正式站） ══
   依使用者網頁版 ChatGPT 審查全面重做。獨立成一支檔案、不併進 styles.css——
   styles.css 的 .brand-strip / .brand-strip-card / .brand-strip-tagline 等類名
   仍被 next.html（next.js）的舊版選購區塊共用，直接改 styles.css 會連動改壞那頁。
   這支只在 index.html 載入，用同類名在 cascade 後段覆寫首頁的樣式，不影響 next.html。

   手機／平板（<1024px）：品牌列下緣內嵌抽屜，垂直列出全部工具。
   桌機（≥1024px）：三張品牌卡高度固定，工具顯示在整排卡片下方的共用面板。 */

:root{
  --bst-ink: #292929;
  --bst-muted: #777777;
  --bst-line: #E6E5E2;
  --bst-line-2: #E8E5E0;
  --bst-surface: #F8F8F7;
  --bst-drawer-bg: #FAF9F7;
  --bst-piaa: #3d8bff;
  --bst-amon: #ff5a5f;
  --bst-diax: #D4BA8B;
}

.brand-strip-wrap{ margin-bottom: 28px; }

/* ── 品牌列：米白底、細框、左側品牌色條縮到 2–3px，拿掉灰底大卡與膠囊按鈕 ── */
.brand-strip{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 0;
}
@media (min-width:1024px){
  .brand-strip{ grid-template-columns: repeat(3,1fr); gap: 16px; }
}

.brand-strip-card{
  display: block;
  padding: 14px 18px;
  background: var(--bst-surface);
  border: 1px solid var(--bst-line);
  border-left: 2px solid var(--bst-line-2);
  border-radius: 9px;
  min-width: 0;
}
.brand-strip-piaa{ border-left-color: var(--bst-piaa); }
.brand-strip-amon{ border-left-color: var(--bst-amon); }
.brand-strip-diax{ border-left-color: var(--bst-diax); }

.brand-strip-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 60px;
}
@media (min-width:1024px){
  .brand-strip-card{ min-height: 120px; display: flex; align-items: center; padding: 18px 20px; }
  .brand-strip-row{ width: 100%; align-items: center; }
}

.brand-strip-main{ display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.brand-strip-tagline{
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--bst-ink);
}
@media (min-width:1024px){
  .brand-strip-tagline{ font-size: 16px; }
}

.brand-strip-sublinks{
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.brand-strip-intro,
.brand-strip-guide-trigger{
  font-size: 13px;
  font-weight: 500;
  color: var(--bst-muted);
  padding: 4px 0;
  min-height: 44px;
  margin: -12px 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color .15s var(--ease);
}
.brand-strip-intro:hover{ color: var(--bst-ink); text-decoration: underline; text-decoration-color: var(--bst-line-2); }
.brand-strip-guide-trigger{
  cursor: pointer;
  color: var(--bst-ink);
  font-weight: 600;
}
.bst-chevron{
  display: inline-block;
  transition: transform .18s var(--ease);
  font-size: 11px;
}
.brand-strip-guide-trigger[aria-expanded="true"] .bst-chevron{ transform: rotate(180deg); }

/* 「看商品」保留明確導覽的視覺重量，其餘降為文字連結 */
.brand-strip-cta{
  flex: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--bst-ink);
  padding: 10px 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--bst-line-2);
  border-radius: 100px;
  white-space: nowrap;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.brand-strip-cta:hover{ background: #fff; border-color: var(--bst-ink); }

/* ── 手機／平板：內嵌抽屜，垂直列出全部工具，無內框無白卡 ── */
.brand-strip-tools{
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  transition: max-height .22s ease-out, opacity .16s ease-out .03s, margin-top .22s ease-out;
}
.brand-strip-tools.is-open{
  max-height: 400px;
  opacity: 1;
  margin-top: 10px;
}
.brand-strip-tools-list{
  background: var(--bst-drawer-bg);
  border-radius: 8px;
  overflow: hidden;
}

.bst-tool-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--bst-line-2);
  text-decoration: none;
}
.bst-tool-row:last-child{ border-bottom: none; }
.bst-tool-text{ display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bst-tool-name{ font-size: 14px; font-weight: 600; color: var(--bst-ink); line-height: 1.3; }
.bst-tool-desc{ font-size: 12px; font-weight: 400; color: var(--bst-muted); line-height: 1.35; }
.bst-tool-go{ flex: none; font-size: 12px; color: var(--bst-muted); }

@media (min-width:1024px){
  /* 桌機：品牌卡固定高度，不展開內嵌抽屜——工具挪到整排卡片下方的共用面板 */
  .brand-strip-tools{ display: none !important; }
}

/* ── 桌機：共用展開面板，位於整排品牌卡下方 ── */
.brand-tools-shared{
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  transition: max-height .25s ease-out, opacity .18s ease-out .03s, margin-top .25s ease-out;
}
.brand-tools-shared.is-open{
  max-height: 260px;
  opacity: 1;
  margin-top: 12px;
}
.brand-tools-shared-list{
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px 24px;
  padding: 22px 24px;
  background: var(--bst-drawer-bg);
  border: 1px solid var(--bst-line);
  border-radius: 9px;
}
.brand-tools-shared-list.cols-2{ grid-template-columns: repeat(2,1fr); }
.brand-tools-shared-list.cols-3{ grid-template-columns: repeat(3,1fr); }
.brand-tools-shared-list.cols-4{ grid-template-columns: repeat(4,1fr); }
/* 只有一個工具（目前是 AMON）時不要撐滿整排留一大片空白，面板本身縮到內容寬 */
.brand-tools-shared-list.cols-1{
  display: inline-grid;
  grid-template-columns: minmax(0,320px);
  width: fit-content;
  max-width: 100%;
}

.bst-shared-item{
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  padding-right: 12px;
  border-right: 1px solid var(--bst-line-2);
}
.bst-shared-item:last-child{ border-right: none; padding-right: 0; }
.bst-shared-item .bst-tool-name{ font-size: 14px; }
.bst-shared-item .bst-tool-desc{ font-size: 12.5px; }
.bst-shared-item .bst-tool-go{ margin-top: 2px; font-size: 12px; }

@media (max-width:1023px){
  .brand-tools-shared{ display: none !important; }
}

@media (prefers-reduced-motion: reduce){
  .brand-strip-tools,
  .brand-tools-shared,
  .bst-chevron{ transition: none; }
}
