/* ============================================================
   比比昂 Bibian — 共用元件層（所有頁面模板共用）
   相依：tokens.css（必須先載入）
   這裡只放跨模板重複出現的東西：外框、按鈕、會員條、
   導覽塊、商品卡、右側工具列、頁尾、Cookie 條、Toast。
   單一頁面才有的版面請寫在該頁自己的 <style>。
   ============================================================ */
/* ============================================================
   比比昂 Bibian — 首頁（密集電商入口版型）
   淺色為預設，深灰會員條當定錨；深色主題仍可用。
   只讀 tokens.css 的 semantic token，這裡不出現裸色碼。
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bb-surface-sunken);
  color: var(--bb-text);
  font-family: var(--bb-font-sans);
  font-size: var(--bb-text-base);
  line-height: var(--bb-leading-snug);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
/* [hidden] 要真的藏得住。任何自己設了 display 的元件（.cmini、.product…）
   都會蓋掉瀏覽器預設的 [hidden]{display:none}，加了屬性卻還看得到。
   2026-08-28 突變測試發現：給右欄小 banner 加 hidden，它照樣畫出來。 */
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }

.wrap { max-width: var(--bb-container); margin-inline: auto; padding-inline: var(--bb-gutter); }
.row { display: flex; align-items: center; gap: var(--bb-space-3); }
.push { margin-left: auto; }
.num { font-variant-numeric: tabular-nums; }

/* ============================================================
   7. 優惠券中心 + 公告中心
   ============================================================ */
.two-col { display: grid; gap: var(--bb-space-4); margin-top: var(--bb-space-4); }
@media (min-width: 992px) { .two-col { grid-template-columns: minmax(0, 1fr) 380px; } }

.panel { background: var(--bb-surface); border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-md); overflow: hidden; }
.panel__head {
  display: flex; align-items: center; gap: var(--bb-space-2);
  padding: var(--bb-space-3) var(--bb-space-4);
  border-bottom: 1px solid var(--bb-border);
}
.panel__head h2 { font-size: var(--bb-text-md); font-weight: var(--bb-weight-bold); }
.panel__head .more { margin-left: auto; font-size: var(--bb-text-xs);
  color: var(--bb-text-muted); }
.panel__head .more:hover { color: var(--bb-brand-ink); }
.panel__body { padding: var(--bb-space-4); }

/* ---------- 按鈕 ---------- */
.btn {
  --_bg: transparent; --_fg: var(--bb-text); --_bd: var(--bb-border);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: var(--bb-control-md); padding-inline: var(--bb-space-4);
  border: 1px solid var(--_bd); border-radius: var(--bb-radius-lg);
  background: var(--_bg); color: var(--_fg);
  font-size: var(--bb-text-base); white-space: nowrap; cursor: pointer;
  transition: var(--bb-transition-fast);
}
/* flat 之後 hover 不能再靠陰影，改用亮度位移——四種按鈕變體通吃 */
.btn:hover { filter: brightness(0.94); }
.btn:active { transform: translateY(1px); filter: brightness(0.90); }
.btn--brand { --_bg: var(--bb-brand); --_fg: var(--bb-text-on-brand); --_bd: var(--bb-brand);
  font-weight: var(--bb-weight-medium); }
.btn--brand:hover { --_bg: var(--bb-brand-hover); --_bd: var(--bb-brand-hover); }
.btn--hot { --_bg: var(--bb-hot); --_fg: var(--bb-text-on-hot); --_bd: var(--bb-hot);
  font-weight: var(--bb-weight-medium); }
.btn--hot:hover { --_bg: var(--bb-hot-hover); --_bd: var(--bb-hot-hover); }
.btn--outline:hover { --_bd: var(--bb-brand); --_fg: var(--bb-brand-ink); }
/* 深灰條／頁尾上的按鈕：文字與框線改用 bar 的色階 */
.cookie .btn { --_fg: var(--bb-bar-text); --_bd: var(--bb-bar-border); }
.cookie .btn:hover { --_bd: var(--bb-bar-muted); }
.cookie .btn--brand { --_fg: var(--bb-text-on-brand); --_bd: var(--bb-brand); }
.btn--block { width: 100%; }
/* 庫存列的次要連結（倉庫與只付運費結帳共用） */
.item__link { font-size: 11px; color: var(--bb-link); text-decoration: underline; }
.btn--xl { height: var(--bb-control-xl); font-size: var(--bb-text-md); }
.btn--sm { height: var(--bb-control-sm); padding-inline: var(--bb-space-3); font-size: var(--bb-text-xs); }

.tag { display: inline-block; padding: 1px 5px; border-radius: var(--bb-radius-xs);
  font-size: 11px; font-weight: var(--bb-weight-medium); }
.tag--hot { background: var(--bb-hot); color: var(--bb-text-on-hot); }
.tag--brand { background: var(--bb-brand); color: var(--bb-text-on-brand); }
.tag--ghost { background: var(--bb-surface-sunken); color: var(--bb-text-muted);
  border: 1px solid var(--bb-border); }

/* ============================================================
   1. 促銷橫幅
   ============================================================ */
.promo {
  position: relative;
  background: linear-gradient(96deg, var(--bb-amber-300), var(--bb-amber-500) 46%, var(--bb-amber-600));
  color: var(--bb-text-on-brand);
  overflow: hidden;
}
.promo__inner { display: flex; align-items: center; justify-content: center;
  gap: var(--bb-space-4); height: 64px; flex-wrap: wrap; }
.promo__mark { font-size: var(--bb-text-xl); font-weight: var(--bb-weight-bold);
  letter-spacing: 0.14em; }
.promo__msg { font-size: var(--bb-text-md); font-weight: var(--bb-weight-medium); }
.promo__msg b { font-size: var(--bb-text-xl); }
.promo__cta {
  height: var(--bb-control-md); padding-inline: var(--bb-space-4);
  border: 0; border-radius: var(--bb-radius-pill);
  background: var(--bb-text-on-brand); color: var(--bb-brand);
  font-size: var(--bb-text-sm); font-weight: var(--bb-weight-medium); cursor: pointer;
  transition: var(--bb-transition-fast);
}
.promo__cta:hover { transform: translateY(-1px); box-shadow: var(--bb-shadow-hover); }
.promo__close {
  position: absolute; right: var(--bb-space-3); top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border: 0; border-radius: var(--bb-radius-circle);
  background: var(--bb-scrim-weak); color: var(--bb-text-on-brand);
  cursor: pointer; line-height: 1;
}
.promo__close:hover { background: var(--bb-scrim-strong); }
@media (max-width: 767px) { .promo__mark { display: none; } }

/* ============================================================
   2. 深灰會員條
   ============================================================ */
.bar { background: var(--bb-bar); color: var(--bb-bar-text); }
.bar__inner { display: flex; align-items: center; gap: var(--bb-space-5); height: 64px; }
.bar__logo {
  display: block;
  width: 132px; height: 40px; flex: none;
  background: url("assets/logo-on-dark.png") center left / contain no-repeat;
}
.bar__slogan {
  font-size: 11px; letter-spacing: 0.34em; color: var(--bb-bar-muted);
  margin-top: 2px;
}
@media (max-width: 991px) { .bar__slogan { display: none; } }
.bar__item {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--bb-text-sm); color: var(--bb-bar-muted);
  cursor: pointer; background: none; border: 0; padding: 0;
  transition: color var(--bb-duration-fast) var(--bb-ease);
}
.bar__item:hover { color: var(--bb-bar-text); }
.bar__item--brand { color: var(--bb-brand); }
.bar__ship { line-height: 1.15; text-align: left; }
.bar__ship small { display: block; font-size: 11px; color: var(--bb-bar-muted); }
.bar__ship b { font-size: var(--bb-text-sm); font-weight: var(--bb-weight-medium);
  color: var(--bb-bar-text); }
.bar__sep { width: 1px; height: 24px; background: var(--bb-bar-border); flex: none; }
.bar__icon { position: relative; font-size: var(--bb-text-lg); }
.bar__badge {
  position: absolute; top: -6px; right: -10px;
  min-width: 17px; height: 17px; padding-inline: 4px;
  display: grid; place-items: center; border-radius: var(--bb-radius-pill);
  background: var(--bb-hot); color: var(--bb-text-on-hot);
  font-size: 11px; font-weight: var(--bb-weight-medium);
}
.bar__avatar {
  width: 28px; height: 28px; border-radius: var(--bb-radius-circle);
  background: var(--bb-brand); color: var(--bb-text-on-brand);
  display: grid; place-items: center; font-size: var(--bb-text-xs);
  font-weight: var(--bb-weight-bold);
}
@media (max-width: 1199px) { .bar__hide-lg { display: none; } }
@media (max-width: 767px) { .bar__hide-md { display: none; } }

/* ============================================================
   3. 平台列 + 4. 搜尋 + 5. 分類列（白色主導覽塊）
   ============================================================ */
.nav { background: var(--bb-surface); border-bottom: 1px solid var(--bb-border);
  box-shadow: var(--bb-shadow-subtle); }

.shops { display: flex; gap: var(--bb-space-1); overflow-x: auto; padding-block: var(--bb-space-3); }
.shops::-webkit-scrollbar { height: 4px; }
.shops::-webkit-scrollbar-thumb { background: var(--bb-border); border-radius: var(--bb-radius-pill); }
.shop {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-width: 92px; padding: var(--bb-space-2) var(--bb-space-2) var(--bb-space-3);
  border-bottom: 2px solid transparent;
  color: var(--bb-text-muted); font-size: var(--bb-text-xs); white-space: nowrap;
  transition: var(--bb-transition-fast);
}
.shop:hover { color: var(--bb-text); }
.shop.is-active { color: var(--bb-brand-ink); border-bottom-color: var(--bb-brand);
  font-weight: var(--bb-weight-medium); }
.shop__logo {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--bb-border); border-radius: var(--bb-radius-md);
  background: var(--bb-surface); font-size: var(--bb-text-sm);
  font-weight: var(--bb-weight-bold); letter-spacing: -0.02em;
  transition: var(--bb-transition-fast);
}
.shop:hover .shop__logo { border-color: var(--bb-brand); transform: translateY(-2px); }
.shop.is-active .shop__logo { background: var(--bb-brand); border-color: var(--bb-brand);
  color: var(--bb-text-on-brand); }

/* 搜尋 */
.search:focus-within { border-color: var(--bb-focus);
  box-shadow: 0 0 0 3px var(--bb-brand-soft); }
.search {
  display: flex; align-items: center; margin-bottom: var(--bb-space-3);
  border: 2px solid var(--bb-brand); border-radius: var(--bb-radius-lg);
  background: var(--bb-field); overflow: hidden;
}
.search__cat {
  flex: none; height: 44px; padding-inline: var(--bb-space-4) var(--bb-space-6);
  border: 0; border-right: 1px solid var(--bb-border); background: transparent;
  color: var(--bb-text); font: inherit; font-size: var(--bb-text-base); cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%),
                    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 19px) 20px, calc(100% - 14px) 20px;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.search__input { flex: 1; min-width: 0; height: 44px; padding-inline: var(--bb-space-4);
  border: 0; background: transparent; color: var(--bb-text); font: inherit;
  font-size: var(--bb-text-base); }
.search__input::placeholder { color: var(--bb-text-faint); }
.search__input:focus { outline: none; }
.search__tool {
  display: inline-flex; align-items: center; gap: 5px; height: 28px;
  padding-inline: var(--bb-space-2); margin-right: var(--bb-space-2);
  border: 1px solid var(--bb-border); border-radius: var(--bb-radius-md);
  background: transparent; color: var(--bb-text-muted);
  font-size: var(--bb-text-xs); cursor: pointer; white-space: nowrap;
  transition: var(--bb-transition-fast);
}
.search__tool:hover { border-color: var(--bb-brand); color: var(--bb-brand-ink); }
.search__go {
  flex: none; width: 56px; height: 44px; border: 0;
  background: var(--bb-brand); color: var(--bb-text-on-brand);
  font-size: var(--bb-text-md); cursor: pointer;
  transition: background var(--bb-duration-fast) var(--bb-ease);
}
.search__go:hover { background: var(--bb-brand-hover); }
@media (max-width: 991px) { .search__tool { display: none; } }
@media (max-width: 640px) { .search__cat { display: none; } }

/* 分類列 */
.cats { display: flex; align-items: center; gap: 0; overflow-x: auto;
  padding-bottom: var(--bb-space-3); }
.cats::-webkit-scrollbar { height: 4px; }
.cats::-webkit-scrollbar-thumb { background: var(--bb-border); border-radius: var(--bb-radius-pill); }
.cat {
  display: inline-flex; align-items: center; gap: 5px;
  padding-inline: var(--bb-space-3); white-space: nowrap;
  border-right: 1px solid var(--bb-border);
  color: var(--bb-text-muted); font-size: var(--bb-text-sm);
  transition: color var(--bb-duration-fast) var(--bb-ease);
}
.cat:first-child { padding-left: 0; }
.cat:last-child { border-right: 0; margin-left: auto; padding-right: 0;
  color: var(--bb-brand-ink); }
.cat:hover { color: var(--bb-brand-ink); }

/* ============================================================
   10. 商品
   ============================================================ */
.products { display: grid; gap: var(--bb-space-3);
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.product { display: flex; flex-direction: column; background: var(--bb-surface);
  border: 1px solid var(--bb-border); border-radius: var(--bb-radius-md);
  overflow: hidden; transition: var(--bb-transition-fast); }
.product:hover { border-color: var(--bb-brand); box-shadow: var(--bb-shadow-hover);
  transform: translateY(-2px); }
.product__media { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center;
  background: var(--bb-surface-sunken); border-bottom: 1px solid var(--bb-border);
  font-size: 34px; }
.product__flags { position: absolute; top: 6px; left: 6px; display: flex; gap: 4px; }
.product__watch { position: absolute; top: 6px; right: 6px;
  width: 24px; height: 24px; display: grid; place-items: center;
  border: 1px solid var(--bb-border); border-radius: var(--bb-radius-sm);
  background: var(--bb-surface); color: var(--bb-text-muted);
  font-size: 12px; cursor: pointer; transition: var(--bb-transition-fast); }
.product__watch:hover, .product__watch.is-on { color: var(--bb-hot); border-color: var(--bb-hot); }
.product__body { padding: var(--bb-space-2) var(--bb-space-3) var(--bb-space-3);
  display: flex; flex-direction: column; gap: 5px; flex: 1; }
.product__title { font-size: var(--bb-text-xs); line-height: var(--bb-leading-snug);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product__price { margin-top: auto; display: flex; align-items: baseline; gap: 5px; }
.product__jpy { font-size: var(--bb-text-md); font-weight: var(--bb-weight-bold);
  color: var(--bb-hot); font-variant-numeric: tabular-nums; white-space: nowrap; }
.product__twd { font-size: 11px; color: var(--bb-text-muted); font-variant-numeric: tabular-nums; }
/* 直購價（日拍的「即決価格」）。約四成的拍賣同時掛了它，沒掛就不印這一行
   ——留一條空的佔位比沒有更糟，客人會以為所有拍賣都能直接買。
   2026-08-28：A1 商品卡 3→8 欄位，這是第 7 格。 */
.product__buy { font-size: 11px; color: var(--bb-text-muted);
  font-variant-numeric: tabular-nums; }
.product__buy b { color: var(--bb-success-ink); font-weight: var(--bb-weight-medium); }
.product__foot { display: flex; align-items: center; justify-content: space-between;
  padding: 5px var(--bb-space-3); border-top: 1px solid var(--bb-border);
  background: var(--bb-surface-sunken); font-size: 11px; color: var(--bb-text-muted); }
.countdown { color: var(--bb-hot); font-weight: var(--bb-weight-medium);
  font-variant-numeric: tabular-nums; }
.countdown--calm { color: var(--bb-text-muted); font-weight: var(--bb-weight-regular); }

/* 代標流程 4 步（首頁「怎麼買」與日本拍賣網頻道頁共用）。
   is-pay 標的是要付錢的那兩步，客人最在意的就是「什麼時候要付錢」。 */
.flow { display: grid; gap: var(--bb-space-3); counter-reset: step;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.flow li {
  position: relative; padding: var(--bb-space-4) var(--bb-space-3);
  border: 1px solid var(--bb-border); border-radius: var(--bb-radius-md);
  background: var(--bb-surface-sunken);
}
.flow li b { display: block; font-size: var(--bb-text-sm);
  font-weight: var(--bb-weight-medium); margin-top: var(--bb-space-2); }
.flow li span { display: block; margin-top: 4px; font-size: var(--bb-text-xs);
  color: var(--bb-text-muted); line-height: var(--bb-leading-snug); }
.flow__n {
  counter-increment: step;
  width: 22px; height: 22px; display: grid; place-items: center;
  border-radius: var(--bb-radius-sm);
  background: var(--bb-brand); color: var(--bb-text-on-brand);
  font-size: var(--bb-text-xs); font-weight: var(--bb-weight-bold);
}
.flow__n::before { content: counter(step); }
.flow li.is-pay { background: var(--bb-hot-soft); border-color: var(--bb-hot); }
.flow li.is-pay .flow__n { background: var(--bb-hot); color: var(--bb-text-on-hot); }

/* ============================================================
   10c. 會員開箱牆與話題卡（2026-08-28 第二輪從 index.html 提上來）
   ------------------------------------------------------------
   真站 auction.php 上這兩塊都有：會員開箱 y6,846 h318、Blog 4 篇 y7,176 h482。
   五家對照：UGC 開箱五家有三家（比比昂／樂淘／Doorzo），Blog 五家有兩家。
   量測留在 docs/bench-auction-2026-08-28.md。
   ============================================================ */
/* ============================================================
   會員開箱牆（真站有，改版稿原本沒有）
   ============================================================ */
.unbox { display: flex; gap: var(--bb-space-3); overflow-x: auto;
  padding-bottom: var(--bb-space-2); scrollbar-width: thin; }
.ub { flex: 0 0 232px; display: flex; flex-direction: column;
  border: 1px solid var(--bb-border); border-radius: var(--bb-radius-md);
  background: var(--bb-surface); overflow: hidden; }
.ub__pic { position: relative; aspect-ratio: 4 / 3;
  border-bottom: 1px solid var(--bb-border); }
.ub__b { padding: var(--bb-space-3); display: flex; flex-direction: column; gap: 5px; }
.ub__who { display: flex; align-items: center; gap: 6px;
  font-size: var(--bb-text-xs); color: var(--bb-text-muted); }
.ub__av { width: 20px; height: 20px; flex: none; display: grid; place-items: center;
  border-radius: var(--bb-radius-circle); background: var(--bb-brand-soft);
  font-size: 10px; color: var(--bb-brand-ink); }
.ub__msg { font-size: var(--bb-text-xs); line-height: var(--bb-leading-snug); }
.ub__item { font-size: 11px; color: var(--bb-text-faint); }

.topics { display: grid; gap: var(--bb-space-3);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.topic { border: 1px solid var(--bb-border); border-radius: var(--bb-radius-md);
  background: var(--bb-surface); overflow: hidden; transition: var(--bb-transition-fast); }
.topic:hover { border-color: var(--bb-brand); box-shadow: var(--bb-shadow-hover); }
.topic__cover { position: relative; aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--bb-border); }
.topic__body { padding: var(--bb-space-3); }
.topic__body b { font-size: var(--bb-text-sm); font-weight: var(--bb-weight-medium); }
.topic__body p { margin-top: 5px; font-size: var(--bb-text-xs); color: var(--bb-text-muted);
  line-height: var(--bb-leading-normal); }
.topic__body time { display: block; margin-top: var(--bb-space-2); font-size: 11px;
  color: var(--bb-text-faint); }

/* ============================================================
   10b. 商品圖磚（2026-08-28）
   ------------------------------------------------------------
   規矩 5 禁外連任何圖片，所以商品圖一直是「灰底放一個 emoji」——
   那正是整站看起來像線框稿而不像電商的頭號原因。
   這一層把它換成 CSS 畫的商品剪影：分類色 ＋ 攝影棚底光 ＋ 落地投影。
   每個剪影只有三個可畫的部件（.tile > i 與它的兩個 pseudo），
   夠畫出「認得出是什麼」的輪廓，再多就變成在 CSS 裡畫插畫了。

   刻意做成 1:1 插槽：日後若改用真照片，換掉 .tile 內層即可，版面不動。
   沒有 .tile 的頁面（channel／search／fleamarket…）維持 emoji fallback，不受影響。
   ============================================================ */
.tile { position: absolute; inset: 0; overflow: hidden;
  /* --tv-h/-r/-z 由產生器逐件給值。真實商品牆不會有兩件長得一模一樣，
     同一分類十幾張同剪影排成一列，比原本的 emoji 更假。 */
  filter: hue-rotate(var(--tv-h, 0deg)) saturate(var(--tv-s, 1))
          brightness(var(--tv-b, 1));
  background:
    radial-gradient(ellipse 72% 56% at 50% 34%,
      color-mix(in srgb, var(--tile) 22%, transparent), transparent 74%),
    linear-gradient(168deg, color-mix(in srgb, var(--tile) 6%, var(--bb-surface)),
      color-mix(in srgb, var(--tile) 17%, var(--bb-surface-sunken))); }
/* 落地投影：讓剪影像站在桌上，而不是浮在色塊裡。這一道是「像照片」的關鍵 */
.tile::after { content: ""; position: absolute; left: 50%; bottom: 15%;
  width: 46%; height: 6%; transform: translateX(-50%);
  border-radius: 50%; background: color-mix(in srgb, var(--tile) 30%, transparent);
  filter: blur(3px); }
.tile > i { position: absolute; left: 50%; bottom: 18%;
  transform: translateX(-50%) rotate(var(--tv-r, 0deg))
             scale(var(--tv-z, 1)) scaleX(var(--tv-x, 1));
  background: var(--tile); font-style: normal; }
.tile > i::before, .tile > i::after { content: ""; position: absolute; }

.tile--figure { --tile: var(--bb-tile-figure); }
.tile--card   { --tile: var(--bb-tile-card); }
.tile--camera { --tile: var(--bb-tile-camera); }
.tile--watch  { --tile: var(--bb-tile-watch); }
.tile--model  { --tile: var(--bb-tile-model); }
.tile--disc   { --tile: var(--bb-tile-disc); }
.tile--apparel{ --tile: var(--bb-tile-apparel); }
.tile--game   { --tile: var(--bb-tile-game); }

/* 公仔：頭 ＋ 身 ＋ 底座 */
.tile--figure > i { width: 30%; height: 30%; border-radius: 44% 44% 26% 26%; }
.tile--figure > i::before { left: 50%; top: -78%; width: 68%; aspect-ratio: 1;
  transform: translateX(-50%); border-radius: 50%; background: var(--tile); }
.tile--figure > i::after { left: 50%; bottom: -16%; width: 148%; height: 16%;
  transform: translateX(-50%); border-radius: 3px;
  background: color-mix(in srgb, var(--tile) 68%, transparent); }

/* 卡牌：斜放的卡 ＋ 後面壓一張 ＋ 一道鐳射斜光 */
.tile--card > i { width: 34%; height: 48%; bottom: 22%; border-radius: 3px;
  transform: translateX(-50%) rotate(calc(-7deg + var(--tv-r, 0deg)))
             scale(var(--tv-z, 1)) scaleX(var(--tv-x, 1));
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--bb-surface) 55%, transparent); }
.tile--card > i::before { left: 12%; top: 9%; width: 76%; height: 55%;
  border-radius: 2px;
  background: linear-gradient(138deg,
    color-mix(in srgb, var(--bb-surface) 66%, transparent) 0 46%,
    color-mix(in srgb, var(--bb-surface) 22%, transparent) 58%); }
.tile--card::before { content: ""; position: absolute; left: 50%; bottom: 22%;
  width: 34%; height: 48%; border-radius: 3px;
  transform: translateX(-76%) rotate(calc(-20deg + var(--tv-r, 0deg)))
             scale(var(--tv-z, 1)) scaleX(var(--tv-x, 1));
  background: color-mix(in srgb, var(--tile) 42%, transparent); }

/* 相機：機身 ＋ 同心圓鏡頭 ＋ 頂部軍艦部 */
.tile--camera > i { width: 54%; height: 34%; bottom: 26%; border-radius: 5px; }
.tile--camera > i::before { left: 50%; top: 50%; width: 46%; aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: color-mix(in srgb, var(--bb-surface) 30%, var(--tile));
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--bb-surface) 62%, transparent); }
.tile--camera > i::after { left: 22%; top: -26%; width: 30%; height: 28%;
  border-radius: 4px 4px 0 0; background: var(--tile); }

/* 鐘錶：錶面 ＋ 上下錶帶 */
.tile--watch > i { width: 38%; aspect-ratio: 1; bottom: 32%; border-radius: 50%;
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--bb-surface) 58%, transparent); }
.tile--watch > i::before { left: 30%; top: -64%; width: 40%; height: 66%;
  border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--tile) 72%, transparent); }
.tile--watch > i::after { left: 30%; bottom: -64%; width: 40%; height: 66%;
  border-radius: 0 0 4px 4px; background: color-mix(in srgb, var(--tile) 72%, transparent); }

/* 模型盒：等角三面 */
.tile--model > i { width: 42%; height: 33%; bottom: 22%; border-radius: 2px; }
.tile--model > i::before { left: 5%; top: -23%; width: 90%; height: 25%;
  transform: skewX(-34deg);
  background: color-mix(in srgb, var(--bb-surface) 32%, var(--tile)); }
.tile--model > i::after { left: 12%; top: 20%; width: 62%; height: 48%;
  border-radius: 2px;
  background: color-mix(in srgb, var(--bb-surface) 50%, transparent); }

/* 唱片／CD：同心圓溝紋 */
.tile--disc > i { width: 46%; aspect-ratio: 1; bottom: 24%; border-radius: 50%;
  background: repeating-radial-gradient(circle,
    var(--tile) 0 3px, color-mix(in srgb, var(--bb-surface) 26%, var(--tile)) 3px 5px); }
.tile--disc > i::before { left: 50%; top: 50%; width: 34%; aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: color-mix(in srgb, var(--bb-surface) 55%, var(--tile)); }
.tile--disc > i::after { left: 50%; top: 50%; width: 9%; aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%; background: var(--bb-surface); }

/* 服飾：衣身 ＋ 兩袖 */
.tile--apparel > i { width: 34%; height: 40%; bottom: 24%;
  border-radius: 4px 4px 6px 6px; }
.tile--apparel > i::before { left: -46%; top: 0; width: 48%; height: 46%;
  transform: rotate(15deg); border-radius: 4px; background: var(--tile); }
.tile--apparel > i::after { right: -46%; top: 0; width: 48%; height: 46%;
  transform: rotate(-15deg); border-radius: 4px; background: var(--tile); }

/* 遊戲卡匣：本體 ＋ 標籤 ＋ 底部接點缺口 */
.tile--game > i { width: 40%; height: 42%; bottom: 24%; border-radius: 4px 4px 2px 2px; }
.tile--game > i::before { left: 16%; top: 14%; width: 68%; height: 42%;
  border-radius: 2px; background: color-mix(in srgb, var(--bb-surface) 60%, transparent); }
.tile--game > i::after { left: 26%; bottom: 0; width: 48%; height: 12%;
  border-radius: 2px 2px 0 0;
  background: color-mix(in srgb, var(--bb-canvas) 45%, transparent); }

/* 日文原名。channel／fleamarket 本來各自 inline style 抄了一份（規矩 4：收進來） */
.product__ja { font-size: 11px; color: var(--bb-text-faint);
  line-height: var(--bb-leading-snug); overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
/* 社會證明。momo 的卡有「總銷量>5萬」，我們有追蹤數與瀏覽數 */
.product__soc { font-size: 11px; color: var(--bb-text-faint);
  font-variant-numeric: tabular-nums; }
/* 已結標／已售出：整張退到背景，但還讀得到，因為真實的列表本來就混著這種 */
.product--done { opacity: .55; }
.product--done .product__jpy { color: var(--bb-text-muted); }

/* ============================================================
   12. 右側浮動工具列
   ============================================================ */
.rail { display: none; }
@media (min-width: 1400px) {
  .rail {
    display: block; position: fixed; right: var(--bb-space-4); top: 50%;
    transform: translateY(-50%); z-index: var(--bb-z-sticky);
    width: 76px; padding: var(--bb-space-2) 0;
    background: var(--bb-surface); border: 1px solid var(--bb-border);
    border-radius: var(--bb-radius-md); box-shadow: var(--bb-shadow-lg);
  }
}
.rail a {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: var(--bb-space-2) 4px; font-size: 11px; color: var(--bb-text-muted);
  text-align: center; transition: var(--bb-transition-fast);
}
.rail a:hover { color: var(--bb-brand-ink); background: var(--bb-brand-soft); }
.rail a + a { border-top: 1px solid var(--bb-border); }
.rail span:first-child { font-size: 17px; }

/* ============================================================
   區塊外殼
   ============================================================ */
.block { margin-top: var(--bb-space-6); }
.block__head { display: flex; align-items: baseline; gap: var(--bb-space-3);
  margin-bottom: var(--bb-space-3); }
.block__head h2 { font-size: var(--bb-text-lg); font-weight: var(--bb-weight-bold);
  letter-spacing: -0.01em; }
.block__head p { font-size: var(--bb-text-xs); color: var(--bb-text-muted); }
.block__head .more { margin-left: auto; font-size: var(--bb-text-xs);
  color: var(--bb-text-muted); }
.block__head .more:hover { color: var(--bb-brand-ink); }

/* ============================================================
   頁尾
   ============================================================ */
.footer { margin-top: var(--bb-space-10); background: var(--bb-bar);
  color: var(--bb-bar-muted); padding-block: var(--bb-space-8) var(--bb-space-5); }
.footer__grid { display: grid; gap: var(--bb-space-6);
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.footer__brand { max-width: 260px; }
.footer__brand .bar__logo { margin-bottom: var(--bb-space-3); }
.footer__brand p { font-size: var(--bb-text-xs); line-height: var(--bb-leading-normal); }
.footer h4 { font-size: var(--bb-text-xs); color: var(--bb-bar-text);
  font-weight: var(--bb-weight-medium); margin-bottom: var(--bb-space-3);
  letter-spacing: var(--bb-tracking-caps); text-transform: uppercase; }
.footer li { margin-bottom: 6px; font-size: var(--bb-text-sm); }
.footer li a:hover { color: var(--bb-brand); }
.footer__bar { margin-top: var(--bb-space-8); padding-top: var(--bb-space-4);
  border-top: 1px solid var(--bb-bar-border); display: flex; flex-wrap: wrap;
  gap: var(--bb-space-3); justify-content: space-between; font-size: 11px; }

/* ---------- Cookie 條 ---------- */
.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--bb-z-modal);
  background: var(--bb-bar); color: var(--bb-bar-text);
  border-top: 1px solid var(--bb-bar-border);
}
.cookie__inner { display: flex; align-items: center; gap: var(--bb-space-3);
  padding-block: var(--bb-space-3); flex-wrap: wrap; font-size: var(--bb-text-sm); }
.cookie a { color: var(--bb-brand); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 12px);
  z-index: var(--bb-z-tooltip);
  padding: var(--bb-space-2) var(--bb-space-4);
  background: var(--bb-brand); color: var(--bb-text-on-brand);
  border-radius: var(--bb-radius-lg); box-shadow: var(--bb-shadow-lg);
  font-size: var(--bb-text-sm); font-weight: var(--bb-weight-medium);
  opacity: 0; pointer-events: none;
  transition: opacity var(--bb-duration-fast) var(--bb-ease-out),
              transform var(--bb-duration-fast) var(--bb-ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   麵包屑（所有內頁共用）
   ============================================================ */
.crumbs { display: flex; align-items: center; gap: var(--bb-space-2); flex-wrap: wrap;
  padding-block: var(--bb-space-3); font-size: var(--bb-text-xs); color: var(--bb-text-muted); }
.crumbs a:hover { color: var(--bb-brand-ink); }
.crumbs .sep { color: var(--bb-text-faint); }
.crumbs [aria-current] { color: var(--bb-text); }

/* ============================================================
   會員中心側欄 .mside（會員類頁面共用，index 的 .side 是另一個東西）
   ============================================================ */
.mside { background: var(--bb-surface); border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-md); overflow: hidden; }
@media (min-width: 992px) { .mside { position: sticky; top: var(--bb-space-3); } }
.mside__me { display: flex; align-items: center; gap: var(--bb-space-3);
  padding: var(--bb-space-4); border-bottom: 1px solid var(--bb-border); }
.mside__avatar { width: 40px; height: 40px; flex: none; border-radius: var(--bb-radius-circle);
  background: var(--bb-brand); color: var(--bb-text-on-brand);
  display: grid; place-items: center; font-weight: var(--bb-weight-bold); }
.mside__me b { display: block; font-size: var(--bb-text-sm);
  font-weight: var(--bb-weight-medium); }
.mside__me span { font-size: 11px; color: var(--bb-text-muted); }
.mside nav a {
  display: flex; align-items: center; gap: var(--bb-space-2);
  padding: var(--bb-space-3) var(--bb-space-4);
  border-left: 2px solid transparent;
  font-size: var(--bb-text-sm); color: var(--bb-text-muted);
  transition: var(--bb-transition-fast);
}
.mside nav a:hover { background: var(--bb-surface-sunken); color: var(--bb-text); }
.mside nav a.is-active { border-left-color: var(--bb-brand); color: var(--bb-brand-ink);
  background: var(--bb-brand-soft); font-weight: var(--bb-weight-medium); }
.mside nav a .n { margin-left: auto; font-size: 11px; color: var(--bb-text-faint);
  font-variant-numeric: tabular-nums; }
.mside__group { padding: var(--bb-space-2) var(--bb-space-4) var(--bb-space-1);
  font-size: 10px; letter-spacing: var(--bb-tracking-caps); color: var(--bb-text-faint);
  border-top: 1px solid var(--bb-border); margin-top: var(--bb-space-1); }

/* ============================================================
   狀態頁籤（訂單／券／工單共用）
   ============================================================ */
.statustabs { display: flex; gap: var(--bb-space-4); overflow-x: auto;
  border-bottom: 1px solid var(--bb-border); margin-bottom: var(--bb-space-4); }
.stab { background: none; border: 0; padding: 0 0 var(--bb-space-3); margin-bottom: -1px;
  border-bottom: 2px solid transparent; color: var(--bb-text-muted);
  font-size: var(--bb-text-sm); white-space: nowrap; cursor: pointer;
  transition: var(--bb-transition-fast); }
.stab:hover { color: var(--bb-text); }
.stab[aria-pressed="true"], .stab[aria-selected="true"] { color: var(--bb-text); border-bottom-color: var(--bb-brand);
  font-weight: var(--bb-weight-medium); }
.stab .n { color: var(--bb-text-faint); font-variant-numeric: tabular-nums; }

/* ============================================================
   會員頁通用：兩欄版面、區塊標題、表單控制項
   ============================================================ */
.layout { display: grid; grid-template-columns: minmax(0, 1fr);
  gap: var(--bb-space-4); align-items: start;
  padding-bottom: var(--bb-space-10); }
@media (min-width: 992px) { .layout { grid-template-columns: 208px minmax(0, 1fr); } }

.field { display: block; margin-bottom: var(--bb-space-3); }
.field > span { display: block; margin-bottom: 4px; font-size: var(--bb-text-xs);
  color: var(--bb-text-muted); }
.field input, .field select, .field textarea {
  width: 100%; height: var(--bb-control-md); padding: 0 var(--bb-space-3);
  border: 1px solid var(--bb-border-strong); border-radius: var(--bb-radius-sm);
  background: var(--bb-field); color: var(--bb-text); font: inherit;
  font-size: var(--bb-text-sm); transition: var(--bb-transition-fast); }
.field textarea { height: auto; padding: var(--bb-space-2) var(--bb-space-3);
  line-height: var(--bb-leading-normal); resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--bb-brand); box-shadow: 0 0 0 3px var(--bb-brand-soft); }
.field small { display: block; margin-top: 4px; font-size: 11px; color: var(--bb-text-faint); }
.fieldrow { display: grid; gap: var(--bb-space-3); }
@media (min-width: 640px) { .fieldrow { grid-template-columns: 1fr 1fr; } }

.empty { padding: var(--bb-space-12) var(--bb-space-4); text-align: center;
  color: var(--bb-text-muted); }
.empty__glyph { font-size: 40px; opacity: .5; }
.empty b { display: block; margin: var(--bb-space-3) 0 var(--bb-space-1);
  font-size: var(--bb-text-base); color: var(--bb-text); }
.empty p { font-size: var(--bb-text-xs); margin-bottom: var(--bb-space-4); }

/* ============================================================
   狀態小標（訂單卡右上角）
   ============================================================ */
.e-status { padding: 1px 7px; border-radius: var(--bb-radius-xs);
  font-size: 11px; background: var(--bb-surface-sunken); color: var(--bb-text-muted); }
.e-status--warn { background: var(--bb-hot-soft); color: var(--bb-hot); }
.e-status--ok { background: var(--bb-brand-soft); color: var(--bb-brand-ink); }

/* ============================================================
   五大保證：信任帶（.gbar）與賣家資格徽章（.gseal）
   ------------------------------------------------------------
   .gbar  首頁、結帳頁用的五枚承諾橫排。純文字＋CSS，不外連圖示。
   .gseal 商品頁賣家區塊的資格徽章。五大保證裡有四條的第一項排除
          條件都是「賣家好評 <50 個 或 綜合評價 <98% 或 負評 >50 個」，
          條款頁寫在最底下等於出價當下看不到，所以拉到賣家旁邊講。
          完整條文與門檻見 guarantee.html#seller。
   ============================================================ */
.gbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--bb-space-3);
  padding: var(--bb-space-5); background: var(--bb-surface); border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-md); box-shadow: var(--bb-shadow-subtle); }
@media (min-width: 560px) { .gbar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .gbar { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.gbar__item { display: flex; gap: var(--bb-space-3); align-items: flex-start;
  min-width: 0; color: inherit; }
.gbar__n { flex: none; width: 26px; height: 26px; display: grid; place-items: center;
  border-radius: var(--bb-radius-circle); background: var(--bb-brand-soft);
  color: var(--bb-brand-ink); font-size: var(--bb-text-xs);
  font-weight: var(--bb-weight-bold); font-variant-numeric: tabular-nums; }
.gbar__t { min-width: 0; }
.gbar__t b { display: block; font-size: var(--bb-text-sm);
  font-weight: var(--bb-weight-bold); line-height: var(--bb-leading-snug); }
.gbar__t span { display: block; margin-top: 2px; font-size: 11px;
  color: var(--bb-text-muted); line-height: var(--bb-leading-snug); }
a.gbar__item:hover .gbar__t b { color: var(--bb-brand-ink); }

.gseal { display: inline-flex; align-items: center; gap: 6px; max-width: 100%;
  padding: 4px 9px; border-radius: var(--bb-radius-sm); font-size: var(--bb-text-xs);
  line-height: var(--bb-leading-snug); border: 1px solid transparent; }
.gseal--ok { background: var(--bb-success); color: var(--bb-text-on-success); }
.gseal--warn { background: var(--bb-warning); color: var(--bb-warning-ink); }
.gseal__mark { flex: none; font-weight: var(--bb-weight-bold); }
/* 徽章通常接在賣家資訊下面，上邊距收進元件，免得每頁各寫一種 */
.gseal { margin-top: var(--bb-space-3); }
.gseal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   2026-08-25 依 Figma 現行站規格比對新增的共用元件
   規格與理由見 CLAUDE.md「費用模型」與 docs/figma-gap-2026-08.md
   ⚠️ 這五組只有主 session 能改。頁面要用就用，不要在單頁重新定義。
   ============================================================ */

/* --- 風險警語清單：商品注意事項／交易提醒／系統偵測 ---------
   現行站是規則引擎條件式插入，所以每一條都要能單獨拿掉，
   而且「一條都沒有」時整塊不出現（頁面自己判斷，不是靠 CSS 藏）。 */
.warnlist {
  border: 1px solid var(--bb-warning);
  border-radius: var(--bb-radius-md);
  background: var(--bb-warning-soft);
  padding: var(--bb-space-4);
}
.warnlist__t {
  display: block;
  margin-bottom: var(--bb-space-2);
  font-size: var(--bb-text-sm);
  font-weight: 700;
  color: var(--bb-warning-ink);
}
.warnlist ul { margin: 0; padding-left: 1.1em; }
.warnlist li {
  font-size: var(--bb-text-xs);
  line-height: var(--bb-leading-normal);
  color: var(--bb-text);
}
.warnlist li + li { margin-top: var(--bb-space-2); }

/* --- 出價狀態列：等待出價中／最高出價／出價被超過 -------------
   第四態「無」＝整塊不 render，沒有對應的 class。 */
.bidstate {
  display: flex;
  align-items: center;
  gap: var(--bb-space-2);
  flex-wrap: wrap;
  padding: var(--bb-space-2) var(--bb-space-3);
  border: 1px solid var(--bb-border);
  border-left-width: 3px;
  border-radius: var(--bb-radius-sm);
  font-size: var(--bb-text-xs);
  line-height: var(--bb-leading-snug);
}
.bidstate__t { font-weight: 700; }
.bidstate__cap { color: var(--bb-text-muted); }
.bidstate .push { margin-left: auto; }
.bidstate--wait { border-left-color: var(--bb-border-strong); }
.bidstate--wait .bidstate__t { color: var(--bb-text); }
.bidstate--lead { border-left-color: var(--bb-success); }
.bidstate--lead .bidstate__t { color: var(--bb-success-ink); }
.bidstate--out  { border-left-color: var(--bb-hot); }
.bidstate--out  .bidstate__t { color: var(--bb-hot); }

/* --- 交易紀錄 ledger：支付／刷退／退款 -----------------------
   金額欄用 tabular-nums，否則位數不同會跳來跳去對不齊。 */
.ledger { width: 100%; border-collapse: collapse; font-size: var(--bb-text-xs); }
.ledger th,
.ledger td {
  padding: var(--bb-space-2) var(--bb-space-3);
  border-bottom: 1px solid var(--bb-border);
  text-align: left;
  white-space: nowrap;
}
.ledger th { color: var(--bb-text-muted); font-weight: 600; }
.ledger td.r,
.ledger th.r { text-align: right; font-variant-numeric: tabular-nums; }
.ledger tr:last-child td { border-bottom: 0; }
.ledger .is-out { color: var(--bb-hot); }   /* 刷退／退款：錢回到會員 */

/* --- 付款方式標章列 ----------------------------------------- */
.paylist { display: flex; flex-wrap: wrap; gap: var(--bb-space-2); }
.paylist span {
  padding: 3px 8px;
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-sm);
  font-size: var(--bb-text-xs);
  line-height: var(--bb-leading-snug);
  color: var(--bb-text-muted);
}

/* --- 流程四步（得標→第一階段付款→第二階段付款→安心收件）------ */
.flow4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--bb-space-2); }
.flow4 div {
  padding: var(--bb-space-2);
  border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-sm);
  font-size: var(--bb-text-xs);
  line-height: var(--bb-leading-snug);
  text-align: center;
}
.flow4 b { display: block; color: var(--bb-text-muted); font-size: 10px; }

/* ============================================================
   館別入口頁共用層（2026-08-28 抽出）
   channel.html（日本拍賣網）與 fleamarket.html（挖寶市集）逐字相同的部分。
   兩頁差別只有館別色，所以這裡一律讀 --ch / --ch-ink / --ch-soft，
   由 main 上的 .ch.ch--auction 或 .ch--flea 決定實際的值。
   （掛在 main 而不是 body 是刻意的：這樣把單頁抽出來嵌到別的殼裡，館別色還在。
   2026-08-28 之前的理由是「build_artifact.py 只取 body 內層」，那條線已廢除，
   但結論不變，所以不要把 class 搬回 body——搬了要同時改兩頁，是白工。）
   ⚠️ 只有主 session 能改。頁面要用就用，不要在單頁重新定義。
   （原本兩頁各抄一份，33 個選擇器逐字重複，2026-08-28 審查抓到。）
   ============================================================ */
.ch--auction { --ch: var(--bb-ch-auction); --ch-ink: var(--bb-ch-auction-ink);
  --ch-soft: var(--bb-ch-auction-soft); }
.ch--flea { --ch: var(--bb-ch-flea); --ch-ink: var(--bb-ch-flea-ink);
  --ch-soft: var(--bb-ch-flea-soft); }
.ch--buy { --ch: var(--bb-ch-buy); --ch-ink: var(--bb-ch-buy-ink);
  --ch-soft: var(--bb-ch-buy-soft); }

.chero { position: relative; overflow: hidden; padding: var(--bb-space-6);
  border: 1px solid var(--bb-border); border-radius: var(--bb-radius-md);
  background: var(--bb-surface); }
.chero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(52% 130% at 8% 0%, var(--ch-soft), transparent 62%),
              radial-gradient(46% 120% at 92% 100%, var(--bb-brand-soft), transparent 62%); }
.chero::after { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px;
  background: var(--ch); }
.chero__top { position: relative; display: flex; align-items: center;
  gap: var(--bb-space-3); flex-wrap: wrap; }
.chero__logo { width: 56px; height: 56px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--ch); border-radius: var(--bb-radius-md);
  background: var(--ch); color: var(--ch-ink); font-size: var(--bb-text-lg);
  font-weight: var(--bb-weight-bold); }
.chero h1 { font-size: var(--bb-text-2xl); font-weight: var(--bb-weight-bold);
  letter-spacing: -0.02em; }
.chero__ja { margin-top: 2px; font-size: var(--bb-text-xs); color: var(--bb-text-muted); }
.chero__lead { position: relative; margin-top: var(--bb-space-3); max-width: 62ch;
  font-size: var(--bb-text-sm); color: var(--bb-text-muted);
  line-height: var(--bb-leading-normal); }

.cstats { position: relative; display: grid; gap: var(--bb-space-4);
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  margin-top: var(--bb-space-5); padding-top: var(--bb-space-4);
  border-top: 1px solid var(--bb-border); }
.cstats b { display: block; font-size: var(--bb-text-xl); font-weight: var(--bb-weight-bold);
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cstats span { font-size: var(--bb-text-xs); color: var(--bb-text-muted); }
.cstats .ok { color: var(--bb-success-ink); }

/* 窄螢幕的館別頭要縮。2026-08-28 驗收量到：500px 下館別頭 626px，
   把第一張商品卡推到 1,034px，第一屏（B1 的目標）看不到商品；
   1440 下同一塊只有 441px。四項數據攤成 2×2 佔掉 125px 是主因。
   ⚠️ 這是「不要讓桌機版面在窄螢幕爆開」的止血，不是 RWD——
   真正的 RWD 是 C 級，Carlson 說等桌機版定案後再做。 */
@media (max-width: 600px) {
  .chero { padding: var(--bb-space-4); }
  .cstats { grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--bb-space-2); margin-top: var(--bb-space-4);
    padding-top: var(--bb-space-3); }
  .cstats b { font-size: var(--bb-text-md); }
  .cstats span { font-size: 11px; }
  .chero__logo { width: 40px; height: 40px; font-size: var(--bb-text-sm); }
  .chero h1 { font-size: var(--bb-text-xl); }
  .chero__lead { margin-top: var(--bb-space-2); }
}

/* 搜尋列的 CTA 一律 --bb-brand，不吃館別色——契約「館別色」那一列寫死的 */
.csearch { position: relative; display: flex; margin-top: var(--bb-space-5);
  max-width: 660px; border: 2px solid var(--bb-brand);
  border-radius: var(--bb-radius-lg); background: var(--bb-field); overflow: hidden; }
.csearch input { flex: 1; min-width: 0; height: 44px; padding-inline: var(--bb-space-4);
  border: 0; background: transparent; color: var(--bb-text); font: inherit;
  font-size: var(--bb-text-base); }
.csearch input:focus { outline: none; }
.csearch button { flex: none; width: 96px; border: 0; background: var(--bb-brand);
  color: var(--bb-text-on-brand); font: inherit;
  font-weight: var(--bb-weight-medium); cursor: pointer; }
.csearch button:hover { filter: brightness(.94); }
.cscope { position: relative; margin-top: var(--bb-space-2); font-size: var(--bb-text-xs);
  color: var(--bb-text-muted); }
.cscope a { color: var(--bb-link); text-decoration: underline; }
.crate { position: relative; display: flex; align-items: center; gap: var(--bb-space-2);
  flex-wrap: wrap; margin-top: var(--bb-space-3); font-size: var(--bb-text-xs);
  color: var(--bb-text-muted); }
.crate b { font-variant-numeric: tabular-nums; color: var(--bb-text);
  font-weight: var(--bb-weight-medium); }

.rules { display: grid; gap: var(--bb-space-3);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.rule { padding: var(--bb-space-4); background: var(--bb-surface);
  border: 1px solid var(--bb-border); border-radius: var(--bb-radius-md); }
.rule__glyph { width: 32px; height: 32px; display: grid; place-items: center;
  border-radius: var(--bb-radius-sm); background: var(--ch-soft);
  font-size: 16px; margin-bottom: var(--bb-space-3); }
.rule b { font-size: var(--bb-text-sm); font-weight: var(--bb-weight-medium); }
.rule p { margin-top: 5px; font-size: var(--bb-text-xs); color: var(--bb-text-muted);
  line-height: var(--bb-leading-normal); }

.switch { display: grid; gap: var(--bb-space-2);
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); }
.switch a { display: flex; align-items: center; gap: var(--bb-space-2);
  padding: var(--bb-space-3); border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-md); background: var(--bb-surface);
  font-size: var(--bb-text-sm); transition: var(--bb-transition-fast); }
.switch a:hover { border-color: var(--ch); transform: translateY(-2px); }
.switch a.is-current { background: var(--ch-soft); border-color: var(--ch);
  font-weight: var(--bb-weight-medium); }
.switch__logo { width: 30px; height: 30px; flex: none; display: grid; place-items: center;
  border: 1px solid var(--bb-border); border-radius: var(--bb-radius-sm);
  background: var(--bb-surface); font-size: var(--bb-text-xs);
  font-weight: var(--bb-weight-bold); }
.switch small { display: block; font-size: 11px; color: var(--bb-text-muted);
  font-weight: var(--bb-weight-regular); }

.hotwords { display: flex; flex-wrap: wrap; gap: var(--bb-space-2); }
.hotwords a { display: inline-flex; align-items: center; gap: 5px;
  height: var(--bb-control-md); padding-inline: var(--bb-space-3);
  border: 1px solid var(--bb-border); border-radius: var(--bb-radius-pill);
  background: var(--bb-surface); font-size: var(--bb-text-xs);
  color: var(--bb-text-muted); }
.hotwords a:hover { border-color: var(--ch); background: var(--ch-soft);
  color: var(--bb-text); }
.hotwords a i { font-style: normal; color: var(--bb-text-faint);
  font-variant-numeric: tabular-nums; }

/* 館別頁的活動卡。刻意不叫 .promo——那個名字是首頁的琥珀漸層促銷橫幅 */
.chpromos { display: grid; gap: var(--bb-space-3);
  grid-template-columns: repeat(auto-fit, minmax(184px, 1fr)); }
.chpromo { position: relative; display: block; overflow: hidden;
  padding: var(--bb-space-4); min-height: 96px; border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-md); background: var(--bb-surface); }
.chpromo:hover { border-color: var(--ch); transform: translateY(-2px); }
.chpromo b { display: block; font-size: var(--bb-text-sm);
  font-weight: var(--bb-weight-medium); }
.chpromo p { margin-top: 4px; font-size: var(--bb-text-xs); color: var(--bb-text-muted); }
.chpromo .tag { position: absolute; inset-block-start: var(--bb-space-3);
  inset-inline-end: var(--bb-space-3); }
.chpromo em { position: absolute; inset-block-end: -6px; inset-inline-end: 4px;
  font-style: normal; font-size: 44px; opacity: 0.16; }

/* ============================================================
   精簡模式（2026-08-28）
   Carlson：「你產出面頁東西文字超多」。他說得對——這份稿一直有兩個身分：
   給人對規則的「規格書」，和給人看版面的「設計稿」。
   說明文字是前者需要的，卻會蓋掉後者。

   所以不做兩份檔案（36 頁複製一份，第二天就開始漂移），
   做成一個模式：根元素掛上 .lean 這個 class，說明性文字整批收起來，
   剩下版面骨架與真站上會出現的內容。切回來一個字都沒少。

   **收起來的是「說明」，不是「資料」**——判準是：
   這句話在真站上會不會出現？不會，就是我加的旁白，精簡模式收掉。
   ⚠️ 只有主 session 能改。要讓某個元素在精簡模式消失，
   在它身上加 data-lean="hide"，不要在單頁另外寫 .lean 規則。
   ============================================================ */
.lean [data-lean="hide"] { display: none !important; }
/* 反向開關：共用 class 被拿來當「內容」的地方，用 keep 退出精簡模式。
   2026-08-28 驗收抓到：states.html 借 .rule 當文案規則卡，
   全域的 .lean .rule p 把它的 good／bad 例句收掉了——那是那一頁的內容本體。 */
.lean [data-lean="keep"],
.lean [data-lean="keep"] p { display: revert !important; }

/* 每個區塊的副標：解釋這一區在幹嘛，真站沒有 */
.lean .block__head p { display: none; }
/* 館別頭的導言段：整段是我寫的介紹 */
.lean .chero__lead { display: none; }
/* 「只搜這一館…」這種操作提示 */
.lean .cscope { display: none; }
/* 卡片標題下面的三行說明：規則卡、特色卡、步驟卡、文章摘要 */
/* .post p 刻意不收：規格 C9 逐字寫「日本選物情報（標題／簡介／作者／日期／瀏覽人次）」，
   簡介是真站有的內容。收掉會跟規格檔互相打架，而且卡片只剩標題＋meta（2026-08-28 審查抓到）。 */
.lean .rule p,
.lean .perk p,
.lean .step p { display: none; }
/* 五大保證的第二行小字 */
.lean .gbar__t span { display: none; }

/* 說明收掉之後，卡片會剩一行字卻還撐著原本的高度 */
.lean .rule,
.lean .perk,
.lean .step { padding-block: var(--bb-space-3); }
.lean .rule__glyph,
.lean .perk__glyph { margin-bottom: var(--bb-space-2); }
.lean .block { margin-top: var(--bb-space-6); }

/* 開關本身。放在會員條，全站同一個位置 */
.bar__lean[aria-pressed="true"] { background: var(--bb-brand);
  color: var(--bb-text-on-brand); }

/* --- 最新公告與快速功能：channel / buy 兩頁都在用，2026-08-28 驗收抓到兩份已經漂移
       （.quick 的 minmax 146px vs 160px、hover 邊框 --bb-brand vs --ch、
       .notices__head 底色 --bb-ch-auction-soft vs --ch-soft）。收成一份，走 --ch。 --- */
.notices { border: 1px solid var(--bb-border); border-radius: var(--bb-radius-md);
  background: var(--bb-surface); overflow: hidden; }
.notices__head { display: flex; align-items: center; gap: var(--bb-space-2);
  padding: var(--bb-space-3) var(--bb-space-4);
  border-bottom: 1px solid var(--bb-border); background: var(--ch-soft);
  font-size: var(--bb-text-sm); font-weight: var(--bb-weight-medium); }
.notices__head .more { margin-left: auto; font-size: var(--bb-text-xs);
  color: var(--bb-link); }
.noticelist { max-height: 190px; overflow-y: auto; }
.noticelist li { display: flex; gap: var(--bb-space-3); align-items: baseline;
  padding: var(--bb-space-2) var(--bb-space-4);
  border-bottom: 1px solid var(--bb-border); font-size: var(--bb-text-xs); }
.noticelist li:last-child { border-bottom: 0; }
.noticelist li a { color: var(--bb-text); }
.noticelist li a:hover { color: var(--bb-brand-ink); text-decoration: underline; }
.notices time { flex: none; width: 62px; color: var(--bb-text-faint);
  font-variant-numeric: tabular-nums; }
.notices .tag { flex: none; }

.quick { display: grid; gap: var(--bb-space-2);
  grid-template-columns: repeat(auto-fit, minmax(152px, 1fr)); }
.quick a { display: flex; align-items: center; gap: var(--bb-space-2);
  padding: var(--bb-space-3); border: 1px solid var(--bb-border);
  border-radius: var(--bb-radius-md); background: var(--bb-surface);
  font-size: var(--bb-text-xs); }
.quick a:hover { border-color: var(--ch); transform: translateY(-1px); }
.quick a span:first-child { font-size: 17px; }
