/* 培育鑽石藍皮書：由老站 globals.css + motion.css 轉換（build.mjs 自動產生，唔好手改） */
/*
 * 培育鑽石藍皮書 · 設計系統
 * 方向：印刷報告（Taste「The printed annual」）—— 一條 42% 的欄線、整頁實色。
 * 暖色版：顏色取自首飾本身——帶粉的瓷白、珍珠灰、玫瑰金的裸粉；藍色只留給「藍皮書」的封面（頁頭名牌、頁腳、問師傅）。
 * 玫瑰金只用在行動按鈕。圖片和面板一律 12px 圓角，按鈕一律全圓。
 */

  :root {
    /* 角色 */
    --paper: #fbf7f6;
    --ink: #2a2326;
    --ink-soft: #66595d;
    --blue: #34508f;
    --blue-ink: #ffffff;
    --pale: #f4e4de;
    --steel: #f0e9e7;
    --rose: #ead3c9;
    --white: #fbf7f6;
    --gold: #dfae97;
    --gold-hover: #e9c1ae;
    --gold-ink: #2a2326;
    --line: #e6d9d0;
    --radius-panel: 18px;
    --radius-img: 12px;
    --hairline: rgba(42, 35, 38, 0.1);
    --glass: rgba(251, 247, 246, 0.72);
    --press: scale(0.96);
    /* 插圖：手（膚色、指甲、戒圈嘅漸變喺組件 SVG 入面） */
    --hand-bg: #f3ede9;

    /* 字體 */
    /* Apple 式：標題同正文同一套無襯線字。蘋果機用 SF Pro + 蘋方，其他機用思源黑體 */
    /* 全部用系統字：蘋果機 SF Pro + 蘋方，Android 思源黑體，Windows Segoe UI + 微軟正黑體。唔使下載字型 */
    --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang HK", "PingFang TC", "Noto Sans CJK HK", "Noto Sans CJK TC", "Source Han Sans HK", "Noto Sans HK", "Segoe UI", "Microsoft JhengHei", sans-serif;
    --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "PingFang HK", "PingFang TC", "Noto Sans CJK HK", "Noto Sans CJK TC", "Source Han Sans HK", "Noto Sans HK", "Segoe UI", "Microsoft JhengHei", sans-serif;

    /* 字號：導覽 14 · 說明 16 · 正文 17–18 · 引言 19–24 · 段標題 30–56 · 大標題 40–80 */
    --step-caption: 0.875rem;
    --step-small: 1rem;
    --step-body: clamp(1.0625rem, 1.03rem + 0.15vw, 1.125rem);
    --step-lead: clamp(1.1875rem, 1.1rem + 0.4vw, 1.5rem);
    --step-head: clamp(1.875rem, 1.3rem + 2.4vw, 3.5rem);
    --step-display: clamp(2.5rem, 1.4rem + 4.6vw, 5rem);

    /* 版面 */
    --m: clamp(16px, 2.2vw, 32px);
    --axis: 42%;
    /* 內容最大寬度：大屏幕左右留邊，色塊背景照樣鋪滿 */
    --max: 1360px;
    --pad: max(var(--m), calc((100% - var(--max)) / 2));
    /* 段與段之間：同一底色嘅段只留一份空位；有色段內上下各一份 */
    /* 段落之間留白（參考蘋果官網：電腦約 100–130px，手機約 64px）；相鄰段落底色交替，每段上下同一份留白 */
    --gap-section: clamp(72px, 8.5vw, 128px);
    /* 動效曲線：UI 回饋用 ease-out（快出慢停）；進場、碌動、換頁用蘋果官網常用嘅 ease-apple */
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-apple: cubic-bezier(0.28, 0.11, 0.32, 1);

    /* shadcn 元件沿用的變數（對應到上面的角色） */
    --background: 12 50% 98%;
    --foreground: 337 9% 15%;
    --card: 0 0% 100%;
    --card-foreground: 226 42% 9%;
    --popover: 0 0% 100%;
    --popover-foreground: 226 42% 9%;
    --primary: 222 67% 33%;
    --primary-foreground: 0 0% 100%;
    --secondary: 220 17% 92%;
    --secondary-foreground: 226 42% 9%;
    --muted: 220 17% 92%;
    --muted-foreground: 225 19% 34%;
    --accent: 41 79% 57%;
    --accent-foreground: 226 42% 9%;
    --destructive: 0 70% 45%;
    --destructive-foreground: 0 0% 100%;
    --border: 220 17% 86%;
    --input: 220 17% 86%;
    --ring: 222 67% 33%;
    --radius: 0px;
  }

  html {
    background: var(--paper);
    color: var(--ink);
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
  }
  body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-text);
    font-size: var(--step-body);
    line-height: 1.7;
    letter-spacing: 0.01em;
    font-feature-settings: "palt" 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  ::selection {
    background: var(--blue);
    color: var(--blue-ink);
  }
  :focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
  }
  img {
    max-width: 100%;
    display: block;
  }


/* ---------- 共用 ---------- */
.bb-display, .bb-hero__stand, .bb-secsub, .bb-close__foot p, .bb-how__intro p {
  text-wrap: balance;
}
/* 標題斷行只喺意思完整嘅位置 */
.bb-nobreak { display: inline-block; }
.bb-display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.12;
}
.bb-wrap {
  padding-inline: var(--m);
}
.bb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  min-height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-text);
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 200ms var(--ease-out), background-color 200ms, color 200ms, box-shadow 200ms;
}
.bb-btn:active {
  transform: var(--press);
}
/* 主要行動：玫瑰金（品牌粉） */
.bb-btn--accent {
  background: var(--gold);
  color: var(--gold-ink);
}
.bb-btn--accent:hover {
  background: var(--gold-hover);
}
/* 次要行動：品牌藍實心 */
.bb-btn--ink, .bb-btn--blue {
  background: var(--blue);
  color: var(--blue-ink);
}
.bb-btn--ink:hover, .bb-btn--blue:hover {
  background: #3e5ea3;
}
/* 第二個按鈕：藍色線框膠囊 */
.bb-btn--ghost {
  background: transparent;
  color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue); /* taste-skill-ignore: Apple 線框膠囊 */
}
.bb-btn--ghost:hover {
  background: var(--blue);
  color: var(--blue-ink);
}
.bb-link {
  color: var(--blue);
  font-weight: 400;
  text-decoration: none;
  transition: color 200ms;
}
.bb-link::after {
  content: "›";
  display: inline-block;
  margin-left: 0.3em;
  transition: transform 200ms var(--ease-out);
}
.bb-link:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.bb-link:hover::after { transform: translateX(3px); }
/* 獨立一行嘅文字連結：撳得到嘅範圍上下加闊到約 44px（手指易撳），用負 margin 抵銷，版面位置唔變 */
.bb-link { padding-block: 12px; margin-block: -12px; }
.bb-sr {
  position: absolute;
  width: 1px;
  height: 1px; /* taste-skill-ignore: screen-reader-only text */
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- 頁頭 ---------- */
.bb-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: stretch;
  min-height: 52px;
  padding-inline: var(--pad);
  background: var(--paper);
  box-shadow: inset 0 -1px 0 var(--hairline); /* taste-skill-ignore: Apple 式毛玻璃頁頭的分隔線 */
}
.bb-header__mark {
  display: flex;
  align-items: center;
  padding: 0 8px 0 0;
  text-decoration: none;
}
.bb-header__logo { display: block; width: auto; height: 32px; }
.bb-header__logo-mark { display: none; width: auto; height: 27px; }
.bb-header__tab {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  flex: 0 0 auto;
  padding: 0 24px;
}
.bb-header__tab a {
  color: var(--ink);
  opacity: 0.86;
  transition: opacity 200ms;
  font-size: var(--step-caption);
  font-weight: 400;
  text-decoration: none;
  white-space: nowrap;
}
.bb-header__tab a:hover { opacity: 1; }
.bb-header__spacer {
  flex: 1;
}
.bb-header__action {
  align-self: center;
  min-height: 32px;
  padding: 0 14px;
  font-size: var(--step-caption);
}
.bb-header__menu {
  display: none;
  white-space: nowrap;
}
.bb-header__mark, .bb-header__action { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 860px) {
  .bb-header__tab {
    display: none;
  }
  .bb-header__menu {
    display: flex;
    align-items: center;
    padding: 0 16px;
    color: var(--ink);
    font-weight: 400;
    font-size: var(--step-caption);
    text-decoration: none;
  }
  .bb-header { padding-inline: 0; }
  .bb-header__action {
    padding: 0 14px;
    margin-right: 10px;
  }
  .bb-header__mark { padding: 0 8px 0 16px; }
  .bb-header__logo { height: 24px; }
  .bb-header__menu { padding: 0 12px; }
}
@media (max-width: 420px) {
  .bb-header__logo { height: 21px; }
}

/* ---------- 首頁：刊頭拼貼 ---------- */
.bb-mosaic {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: 1fr 1fr;
  height: clamp(280px, 38vh, 360px);
  height: clamp(280px, 38svh, 360px);
}
.bb-mosaic > * {
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.bb-mosaic img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 手機刊頭：文字先出，相 0.3 秒後淡入（is-late → is-in）；電腦即刻 is-in，同以前一樣 */
.bb-mosaic img.is-late { opacity: 0; transition: opacity 600ms var(--ease-apple); }
.bb-mosaic img.is-late.is-in { opacity: 1; }
.t-blue { background: var(--blue); }
.t-pale { background: var(--pale); }
.t-steel { background: var(--steel); }
.t-white { background: var(--white); }
.t-ink { background: var(--ink); }
.t-rose { background: var(--rose); }
.bb-mosaic .span2c { grid-column: span 2; }
.bb-mosaic .span2r { grid-row: span 2; }

@media (max-width: 760px) {
  .bb-mosaic {
    grid-template-columns: repeat(3, 1fr);
    height: 210px;
  }
  .bb-mosaic .hide-sm { display: none; }
  .bb-mosaic .span2c { grid-column: span 1; }
}

.bb-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(56px, 7vw, 104px) var(--pad) clamp(64px, 7vw, 104px);
}
.bb-hero__title {
  margin: 0;
  font-size: var(--step-display);
}
.bb-hero__stand {
  max-width: 26em;
  margin: 20px 0 0;
  font-size: var(--step-lead);
  line-height: 1.5;
}
.bb-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 16px;
  margin-top: 32px;
}
.bb-hero .bb-continue { margin-top: 24px; }
@media (min-width: 761px) {
  .bb-hero__title .bb-line { display: inline-block; }
}

/* 標題逐行從基線升起 */
.bb-line {
  display: block;
  vertical-align: top;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.bb-line > span {
  display: block;
}


/* ---------- 首頁：宣言拼貼 ---------- */
.bb-tiles {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, clamp(220px, 38vh, 420px)) auto;
  grid-template-rows: repeat(2, clamp(220px, 38svh, 420px)) auto;
  gap: 8px;
  max-width: calc(var(--max) + 2 * var(--m));
  margin-inline: auto;
  padding: 8px;
}
.bb-tiles > * { position: relative; overflow: hidden; min-width: 0; border-radius: var(--radius-panel); }
.bb-tiles__a {
  grid-column: 1 / 9;
  grid-row: 1 / 3;
  display: flex;
  align-items: flex-end;
  padding: 20px 20px 28px;
  background: var(--blue);
  color: var(--blue-ink);
}
.bb-tiles__a p, .bb-tiles__b p {
  margin: 0;
  font-size: var(--step-display);
}
.bb-tiles__b {
  grid-column: 9 / 13;
  grid-row: 1;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  background: var(--pale);
  color: var(--ink);
}
.bb-tiles__c {
  grid-column: 9 / 13;
  grid-row: 2;
  background: var(--steel);
}
.bb-tiles__c img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bb-tiles__d {
  grid-column: 1 / 13;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  padding: clamp(48px, 6vw, 88px) 0 clamp(24px, 3vw, 40px);
}
.bb-tiles__d div {
  grid-column: 3 / 11;
  max-width: 34em;
  margin: 0 auto;
  font-size: var(--step-lead);
  line-height: 1.65;
}
.bb-tiles__d p { margin: 0 0 1em; }
@media (max-width: 760px) {
  .bb-tiles {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 46vh auto auto;
    grid-template-rows: 46svh auto auto;
    gap: 6px;
    padding: 6px;
  }
  .bb-tiles__a { grid-column: 1 / 3; grid-row: 1; }
  .bb-tiles__b { grid-column: 1; grid-row: 2; aspect-ratio: 1; }
  .bb-tiles__c { grid-column: 2; grid-row: 2; aspect-ratio: 1; }
  .bb-tiles__d { grid-column: 1 / 3; display: block; padding: 24px 14px; }
  .bb-tiles__d div { padding: 0; }
}

/* ---------- 首頁：目錄 ---------- */
.bb-contents {
  position: relative;
  padding: var(--gap-section) var(--pad);
  /* 同上下段落（手寸工具、工坊）分開底色，好似蘋果白／灰段落交替 */
  background: var(--steel);
}
.bb-sechead {
  margin: 0 auto;
  max-width: 20em;
  text-align: center;
  font-size: var(--step-head);
}
.bb-secsub {
  margin: 16px auto 0;
  max-width: 30em;
  text-align: center;
  color: var(--ink-soft);
  font-size: var(--step-lead);
  line-height: 1.5;
}
/* ---------- 首頁目錄：用代碼畫嘅一本精裝書 ----------
   打開咗嘅狀態係預設（冇 JS／減少動畫／手機都係咁）；電腦有動效時由 motion-layer 先合埋（is-closed），
   書斜斜擺、見到書脊同厚度，碌到就自己轉正、揭開封面。
   質感：藍色布面書板（比書頁大一圈）、書脊有厚度同書名、書口一層層紙、書縫弧度陰影、枱面影；全部用代碼畫，唔載圖。 */
.bb-book {
  --ov: 10px; /* 書板比書頁大幾多 */
  --th: 34px; /* 書嘅厚度 */
  --board: #26467f;

  --board-dark: #1c365f;
  --book-blue: var(--board);
  --book-paper: #fffcf6;
  --book-serif: "Songti TC", "STSong", "Noto Serif CJK TC", "Noto Serif TC", "Source Han Serif TC", "PMingLiU", "MingLiU", serif;
  width: min(100% - 2 * var(--ov), 1020px);
  margin: clamp(40px, 5vw, 72px) auto 0;
  padding: var(--ov) 0 calc(var(--ov) + 40px);
  perspective: 1900px;
}
.bb-book__gutter { grid-column: 1; pointer-events: none; }
.bb-contents__anchor { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }
.bb-book__spread {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  transform-style: preserve-3d;
  transform-origin: 75% 50%;
}
/* 右頁：九章目錄 */
.bb-book__page {
  grid-column: 2;
  position: relative;
  padding: clamp(28px, 3.4vw, 48px) clamp(24px, 3vw, 44px) clamp(24px, 3vw, 40px);
  border-radius: 2px 3px 3px 2px;
  background: var(--book-paper);
}
.bb-book__curve { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.bb-book__page > :not(.bb-book__curve), .bb-book__leaf > :not(.bb-book__curve) { position: relative; }
.bb-book__running { margin: 0 0 14px; color: var(--ink-soft); font: 400 var(--step-caption)/1 var(--book-serif); letter-spacing: 0.4em; text-align: center; }
.bb-book__toc { margin: 0; padding: 0; list-style: none; }
.bb-book__toc li + li { border-top: 1px dotted rgba(42, 35, 38, 0.2); }
.bb-book__toc a {
  display: grid;
  grid-template-columns: 4em auto minmax(0, 1fr) 1em;
  align-items: baseline;
  gap: 2px 10px;
  padding: 9px 4px;
  color: var(--ink);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.bb-book__toc a::after { content: "›"; grid-column: 4; grid-row: 1; color: var(--ink-soft); text-align: right; }
.bb-book__num { grid-column: 1; color: var(--ink-soft); font: 400 var(--step-caption)/1.4 var(--book-serif); }
.bb-book__title { grid-column: 2; font: 600 var(--step-body)/1.4 var(--book-serif); }
.bb-book__title .bb-tag { margin-left: 8px; font-family: var(--font-text); font-weight: 400; vertical-align: 1px; }
/* 每章解答：闊嘅時候同章名同一行靠右（書矮啲，一屏睇得晒）；窄啲就落第二行 */
.bb-book__ans { grid-column: 3; justify-self: end; color: var(--ink-soft); font-size: var(--step-caption); line-height: 1.5; text-align: right; }
@media (max-width: 1380px) {
  .bb-book__toc a { grid-template-columns: 4em minmax(0, 1fr) 1em; }
  .bb-book__toc a::after { grid-column: 3; }
  .bb-book__ans { grid-column: 2 / 4; justify-self: start; text-align: left; }
}
@media (hover: hover) {
  .bb-book__toc a:hover .bb-book__title { color: var(--blue); }
}


/* 底板（封底）：喺書頁後面，四邊露出一圈藍 */
.bb-book__back {
  position: absolute;
  top: calc(var(--ov) * -1 - 4px);
  bottom: calc(var(--ov) * -1 - 4px);
  left: 50%;
  right: calc(var(--ov) * -1 - 7px);
  border-radius: 2px 5px 5px 2px;
  background: var(--board-dark);
  transform: translateZ(calc(var(--th) * -1));
}
/* 書脊：一塊有厚度嘅面，以中線為軸企起；合埋斜擺時見到，印住書名 */
.bb-book__spineface {
  position: absolute;
  top: calc(var(--ov) * -1);
  bottom: calc(var(--ov) * -1);
  left: 50%;
  width: calc(var(--th) + 2px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 18% 0 8%;
  overflow: hidden;
  border-radius: 3px;
  background: var(--board-dark);
  color: #e9eef7;
  font-family: var(--book-serif);
  transform-origin: left center;
  transform: translateZ(calc(var(--th) * -1)) rotateY(-90deg);
}
.bb-book__spineface > span, .bb-book__spineface > small, .bb-book__band { position: relative; }
.bb-book__spineface > span, .bb-book__spineface > small { writing-mode: vertical-rl; letter-spacing: 0.25em; }
/* 書脊上下兩對燙銀橫線 */
.bb-book__band { display: block; width: 70%; height: 5px; border-top: 1px solid rgba(233, 238, 247, 0.55); border-bottom: 1px solid rgba(233, 238, 247, 0.55); }
.bb-book__spineface span { font-size: 0.95rem; font-weight: 700; }
.bb-book__spineface small { font-size: 0.6rem; opacity: 0.8; }
/* 書頁頂面：一疊紙（橫紋），喺兩塊書板之間；平放打開時係側面，見唔到 */
.bb-book__top {
  position: absolute;
  top: 0;
  left: 50%;
  width: calc(50% - 2px);
  height: calc(var(--th) - 2px);
  background-color: #f4ede2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='3' height='3'%3E%3Crect width='3' height='1' fill='%23dcd1c1'/%3E%3C/svg%3E");
  transform-origin: top center;
  transform: translateZ(calc(var(--th) * -1 + 1px)) rotateX(90deg);
}
/* 堵頭布：書縫頂同底一小段間條布 */
.bb-book__headband {
  position: absolute;
  left: calc(50% - 5px);
  width: 10px;
  height: 4px;
  border-radius: 2px;
  background: #c9b9a6;
  border-left: 3px solid #a23f45;
  border-right: 3px solid #a23f45;
  transform: translateZ(1px);
}
.bb-book__headband--top { top: -3px; }
.bb-book__headband--foot { bottom: -3px; }
/* 絲帶書籤：由書縫頂垂落右頁，尾端燕尾剪口，露出書底 */
.bb-book__ribbon {
  position: absolute;
  top: -6px;
  left: calc(50% + 16px);
  width: 7px;
  height: calc(100% + 40px);
  background: #a23f45;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 7px), 0 100%);
  transform: translateZ(1.5px);
  pointer-events: none;
}
/* 書口：書頁一層層嘅紙邊（右邊同底邊），喺書板入面 */
.bb-book__edge { position: absolute; pointer-events: none; background-color: #f4ede2; }
.bb-book__edge--side, .bb-book__edge--iside { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2'%3E%3Crect width='1' height='2' fill='%23dcd1c1'/%3E%3C/svg%3E"); }
.bb-book__edge--foot, .bb-book__edge--ifoot { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2' height='2'%3E%3Crect width='2' height='1' fill='%23dcd1c1'/%3E%3C/svg%3E"); }
.bb-book__edge--side { top: 3px; bottom: -5px; left: 100%; width: 6px; border-radius: 0 2px 2px 0; transform: translateZ(-1px); }
.bb-book__edge--foot { top: 100%; left: calc(50% + 3px); right: -6px; height: 6px; border-radius: 0 0 2px 2px; transform: translateZ(-1px); }
/* 枱面影 */
.bb-book__floor {
  position: absolute;
  left: -3%;
  width: 106%;
  bottom: calc(var(--ov) * -1 - 34px);
  height: 44px;
  pointer-events: none;
  transform: translateZ(calc(var(--th) * -1));
}

/* 封面書板：喺右半邊，以書脊（左邊）為軸揭開 180°，揭開後內側（連第一頁）喺左邊 */
.bb-book__cover {
  position: absolute;
  top: calc(var(--ov) * -1);
  bottom: calc(var(--ov) * -1);
  left: 50%;
  width: calc(50% + var(--ov));
  transform-origin: left center;
  /* 打開咗：Z 保持 0，唔好有透視放大，內頁字先清晰（左邊空格已設 pointer-events: none，連結照撳得到） */
  transform: translateZ(0px) rotateY(-180deg);
  transform-style: preserve-3d;
}
.bb-book__front, .bb-book__inside {
  position: absolute;
  inset: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.bb-book__front {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10% 10% 8% 15%;
  border-radius: 2px 5px 5px 2px;
  color: #eef2f9;
  text-align: center;
  font-family: var(--book-serif);
  overflow: hidden;
  /* 封面背面朝上時（打開咗）唔可以擋住內頁連結 */
  pointer-events: none;
  background: var(--board);
}
.bb-book__front > * { position: relative; }
.bb-book__cloth { position: absolute !important; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.bb-book__facets { position: absolute !important; inset: 0; width: 100%; height: 100%; }
/* 書脊旁嘅壓坑：一條深色帶 + 一條淺線 + 一條深線（精裝書翻開嗰條摺位） */
.bb-book__hinge { position: absolute !important; top: 0; bottom: 0; left: 0; width: 5.5%; background: rgba(0, 0, 0, 0.2); border-right: 1px solid rgba(255, 255, 255, 0.16); box-sizing: border-box; }
.bb-book__hinge::after { content: ""; position: absolute; top: 0; bottom: 0; left: calc(100% + 5px); width: 2px; background: rgba(0, 0, 0, 0.18); }
/* 封面壓印框線 */
.bb-book__frame { position: absolute !important; top: 4.5%; bottom: 4.5%; left: 11%; right: 5.5%; border: 1px solid rgba(233, 238, 247, 0.22); border-radius: 2px; pointer-events: none; }
.bb-book__name { margin-top: 0.4em; font-size: clamp(2rem, 1rem + 2.6vw, 3.4rem); font-weight: 700; line-height: 1.12; letter-spacing: 0.06em; }
.bb-book__sub { margin-top: 0.8em; font-size: var(--step-small); opacity: 0.9; }
.bb-book__gem { width: 46%; margin: auto 0; }
.bb-book__topics { font-size: var(--step-small); letter-spacing: 0.2em; opacity: 0.9; }
.bb-book__imprint { margin-top: 1em; font-size: var(--step-caption); letter-spacing: 0.2em; opacity: 0.75; }


/* 封面內側：藍色書板，第一頁（書名頁 + 最新文章）黐喺上面，四邊（書脊嗰邊除外）露出書板 */
.bb-book__inside {
  transform: rotateY(180deg);
  border-radius: 5px 2px 2px 5px;
  background: var(--board-dark);
}
.bb-book__edge--iside { top: calc(var(--ov) + 3px); bottom: calc(var(--ov) - 5px); left: calc(var(--ov) - 6px); width: 6px; border-radius: 2px 0 0 2px; }
.bb-book__edge--ifoot { left: calc(var(--ov) - 6px); right: 3px; bottom: calc(var(--ov) - 6px); height: 6px; border-radius: 0 0 2px 2px; }
.bb-book__leaf {
  position: absolute;
  top: var(--ov);
  bottom: var(--ov);
  left: var(--ov);
  right: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.4vw, 48px) clamp(24px, 3vw, 44px) clamp(24px, 3vw, 40px);
  border-radius: 3px 2px 2px 3px;
  background: var(--book-paper);
}
.bb-book__ititle { margin: 8% 0 0; font: 700 clamp(1.6rem, 1rem + 1.6vw, 2.4rem)/1.2 var(--book-serif); letter-spacing: 0.08em; text-align: center; color: var(--book-blue); }
.bb-book__isub { margin: 12px 0 0; color: var(--ink-soft); font: 400 var(--step-small)/1.6 var(--book-serif); text-align: center; }
.bb-book__latest { margin-top: auto; }
.bb-book__latest h3 { margin: 0 0 6px; padding-bottom: 8px; border-bottom: 1px solid rgba(42, 35, 38, 0.14); font: 600 var(--step-small)/1.4 var(--book-serif); }
.bb-book__latest ul { margin: 0; padding: 0; list-style: none; }
.bb-book__latest a { display: flex; flex-direction: column; gap: 2px; padding: 9px 0; color: var(--ink); text-decoration: none; }
.bb-book__latest li + li { border-top: 1px dotted rgba(42, 35, 38, 0.2); }
.bb-book__latest a span { font-size: var(--step-small); line-height: 1.5; }
.bb-book__latest a small { color: var(--ink-soft); font-size: var(--step-caption); }
@media (hover: hover) {
  .bb-book__latest a:hover span { color: var(--blue); }
}
.bb-book__iimprint { margin: 18px 0 0; color: var(--ink-soft); font: 400 var(--step-caption)/1 var(--book-serif); letter-spacing: 0.2em; text-align: center; }

/* 手機、細平板：唔做立體書，直接目錄（先）+ 最新文章（後） */
@media (max-width: 960px) {
  .bb-book { width: auto; padding: 0; perspective: none; }
  .bb-book__spread { grid-template-columns: 1fr; gap: 12px; transform: none; }
  .bb-book__gutter, .bb-book__front, .bb-book__back, .bb-book__spineface, .bb-book__edge, .bb-book__floor, .bb-book__curve, .bb-book__top, .bb-book__headband, .bb-book__ribbon { display: none; }
  .bb-book__page { grid-column: 1; border-radius: var(--radius-panel); padding: 20px 18px; }
  .bb-book__cover { position: static; width: auto; transform: none; }
  .bb-book__inside { position: static; transform: none; background: none; }
  .bb-book__leaf { position: static; border-radius: var(--radius-panel); padding: 20px 18px; }
  .bb-book__ititle, .bb-book__isub, .bb-book__iimprint { display: none; }
  .bb-book__latest { margin-top: 0; }
}

/* Apple 式分組清單：白底圓角，一行一項，右邊 › */
.bb-group {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  border-radius: var(--radius-panel);
  background: #ffffff;
}
.bb-group li + li > a { box-shadow: inset 0 1px 0 var(--hairline); } /* taste-skill-ignore: 清單行之間的細分隔 */
.bb-group a {
  display: grid;
  grid-template-columns: 4.5em minmax(0, 1fr) auto 1em;
  align-items: center;
  gap: 4px 16px;
  min-height: 64px;
  padding: 14px 24px;
  color: var(--ink);
  text-decoration: none;
  transition: background-color 200ms;
}
.bb-group a:hover { background: var(--paper); }
.bb-group a:active { background: var(--steel); }
.bb-group a::after {
  content: "›";
  justify-self: end;
  color: var(--ink-soft);
  font-size: 1.25em;
  line-height: 1;
  transition: transform 200ms var(--ease-out);
}
.bb-group a:hover::after { transform: translateX(3px); color: var(--blue); }
.bb-toc__num { color: var(--ink-soft); font-size: var(--step-caption); }

.bb-toc__title { font-weight: 600; font-size: var(--step-body); }
.bb-toc__ans { color: var(--ink-soft); font-size: var(--step-caption); text-align: right; }
.bb-latest { margin-top: 32px; }
.bb-latest h3 { margin: 0 0 12px 8px; font-size: var(--step-body); font-weight: 600; }
.bb-latest .bb-group a { grid-template-columns: minmax(0, 1fr) auto 1em; }
.bb-latest__title { font-weight: 400; }
.bb-latest__meta { color: var(--ink-soft); font-size: var(--step-caption); }
@media (max-width: 960px) {
  .bb-group a { grid-template-columns: 3.6em minmax(0, 1fr) 1em; gap: 2px 8px; padding: 12px 18px; }
  .bb-group a::after { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
  .bb-toc__ans { grid-column: 2; text-align: left; }
  .bb-latest .bb-group a > span { grid-column: 1; }
  .bb-latest .bb-group a { grid-template-columns: minmax(0, 1fr) 1em; }
  .bb-latest .bb-group a::after { grid-column: 2; }
}

/* ---------- 首頁：多變一流程 ---------- */
.bb-how {
  padding: var(--gap-section) var(--pad);
  background: var(--steel);
  color: var(--ink);
}
.bb-how__intro {
  max-width: 32em;
  margin: 0 auto;
  text-align: center;
}
.bb-how__head {
  margin: 0 0 0.5em;
  font-size: var(--step-head);
  line-height: 1.12;
}
.bb-how__intro p { margin: 0; font-size: var(--step-body); }
/* 方塊（SVG 裝飾層）同三張寫實示意圖共用 .bb-how__stage 定位；三張圖中心對正方塊三個區。
   靜態（冇 JS／減少動畫／播完）只見三張圖，方塊層收埋；排隊動畫見 motion.css */
.bb-how__layout { max-width: 1080px; margin: clamp(24px, 3vw, 48px) auto 0; }
.bb-how__stage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.bb-how__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  visibility: hidden;
}
.bb-how__svg--v { display: none; }
.bb-how__pic {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 300 / 270;
}
/* 三張主體大細唔同：書最闊、戒指最窄，略縮略放令視覺分量接近 */
.bb-how__pic img { display: block; width: calc(90% * var(--s, 1)); height: auto; }
.bb-how__pic--learn { --s: 0.94; }
.bb-how__pic--finished { --s: 1.06; }
.bb-how__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.bb-how__steps li { text-align: center; }
.bb-how__steps strong { display: block; font-size: var(--step-lead); font-weight: 600; margin-bottom: 6px; }
.bb-how__steps p { margin: 0 auto; font-size: var(--step-small); line-height: 1.7; max-width: 20em; }
.bb-how__note { margin: 28px 0 0; text-align: center; font-size: var(--step-caption); color: var(--ink-soft); }
@media (max-width: 760px) {
  .bb-how__layout { display: grid; grid-template-columns: min(46vw, 240px) minmax(0, 1fr); column-gap: 16px; margin-top: 40px; }
  .bb-how__stage { grid-template-columns: 1fr; }
  .bb-how__svg--h { display: none; }
  .bb-how__svg--v { display: block; }
  .bb-how__pic { aspect-ratio: 1 / 1.1; }
  .bb-how__pic img { width: calc(94% * var(--s, 1)); }
  .bb-how__steps { grid-template-columns: 1fr; grid-template-rows: repeat(3, 1fr); margin: 0; gap: 0; }
  .bb-how__steps li { align-self: center; text-align: left; }
  .bb-how__steps p { margin: 0; }
  .bb-how__note { grid-column: 1 / -1; margin-top: 20px; }
}

/* ---------- 卡數戴喺手上（首頁工具、文章邊碌邊變） ---------- */
.bb-hand { position: relative; display: block; width: 100%; aspect-ratio: 380 / 440; }
.bb-hand svg { display: block; width: 100%; height: 100%; }
.bb-hand__fingers {
  transform-origin: 200px 0;
  transition: transform 500ms var(--ease-out);
}
.bb-hand__stone {
  position: absolute;
  max-width: none;
  /* 好輕嘅落影，令主石似坐喺戒指上；唔會改變輪廓大小 */
  filter: drop-shadow(0 1px 1.5px rgba(70, 45, 35, 0.28));
  transition: transform 500ms var(--ease-out);
  will-change: transform;
}
.bb-hand__read {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 18px;
  margin: 0;
  font-size: var(--step-small);
}
.bb-hand__read strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-head);
  line-height: 1.1;
  margin-right: 4px;
}
.bb-hand__controls { display: grid; gap: 10px; }
.bb-hand__label { font-size: var(--step-small); font-weight: 600; }
.bb-hand__range {
  --track: #e6dedb;
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}
/* 拉桿：iOS 式圓把手，已填部分係硬邊色段 */
.bb-hand__range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(to right, var(--blue) var(--p, 27%), var(--track) var(--p, 27%)); /* taste-skill-ignore */
}
.bb-hand__range::-moz-range-track { height: 6px; border-radius: 999px; background: var(--track); }
.bb-hand__range::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--blue); }
.bb-hand__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  margin-top: -11px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0.5px 4px rgba(0, 0, 0, 0.12), 0 6px 13px rgba(0, 0, 0, 0.12); /* taste-skill-ignore: 拉桿把手係浮起嘅控制 */
  transition: transform 160ms var(--ease-out);
}
.bb-hand__range::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0.5px 4px rgba(0, 0, 0, 0.12), 0 6px 13px rgba(0, 0, 0, 0.12); /* taste-skill-ignore */
}
.bb-hand__range:active::-webkit-slider-thumb { transform: scale(1.12); }
.bb-hand__range:focus-visible { outline-offset: 4px; border-radius: 999px; }
.bb-hand__ticks {
  position: relative;
  height: 1.6em;
  margin: -6px 14px 0;
  color: var(--ink-soft);
  font-size: var(--step-small);
  font-variant-numeric: tabular-nums;
}
.bb-hand__ticks span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.bb-hand__ticks span:first-child { transform: translateX(-30%); }
.bb-hand__ticks span:last-child { transform: translateX(-70%); }
.bb-hand__fingers-pick { margin-top: 8px; }

/* 首頁 */
.bb-tool {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  padding: var(--gap-section) var(--pad);
  background: var(--paper);
}
.bb-tool__plate {
  align-self: start;
  overflow: hidden;
  border-radius: var(--radius-panel);
  /* 淺暖灰底 + 極淡邊線：讓主石同手做主角，唔再用大面積深藍 */
  background: var(--hand-bg);
  box-shadow: inset 0 0 0 1px var(--hairline); /* taste-skill-ignore: 示意圖底板嘅細邊 */
}
.bb-tool__plate .bb-hand { max-width: 560px; margin: 0 auto; }
.bb-tool__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
}
.bb-tool__title { margin: 0 0 0.6em; font-size: var(--step-head); }
.bb-tool__desc { margin: 16px 0 0; max-width: 30em; }
.bb-tool__links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
@media (max-width: 860px) {
  /* 手機：標題 → 手 → 拉桿 → 連結，拉動時手同數字都喺畫面內 */
  .bb-tool { grid-template-columns: 1fr; gap: 20px; padding-inline: var(--m); }
  .bb-tool__panel { display: contents; }
  .bb-tool__panel > :nth-child(1) { order: 0; }
  .bb-tool__plate { order: 1; }
  .bb-tool__panel > :nth-child(2) { order: 2; }
  .bb-tool__panel > :nth-child(3) { order: 3; margin-top: 8px; }
  .bb-tool__plate .bb-hand { width: min(100%, 46vh * 380 / 440); width: min(100%, 46svh * 380 / 440); }
  .bb-tool__desc { margin-top: 12px; }
}

/* 文章：手固定喺一邊，文字逐段經過 */
.bb-story {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 48px);
  margin: 0 0 56px;
}
.bb-story__sticky {
  position: sticky;
  top: 80px;
  display: grid;
  gap: 12px;
  padding: 16px 16px 20px;
  border-radius: var(--radius-panel);
  background: var(--hand-bg);
  box-shadow: inset 0 0 0 1px var(--hairline); /* taste-skill-ignore: 示意圖底板嘅細邊 */
  color: var(--ink);
}
.bb-story__steps, .bb-prose .bb-story__steps { margin: 0; padding: 0; list-style: none; }
.bb-story__steps li {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 70vh;
  min-height: 70svh;
  transition: opacity 400ms var(--ease-out);
}
/* 未到嘅步驟淡啲：0.66 仍然夠對比度（WCAG 4.5:1），睇得清 */
.bb-story.is-live .bb-story__steps li { opacity: 0.66; }
/* 「自己試」嗰步有拉桿同按鈕，唔好淡化（可以撳嘅嘢要清楚） */
.bb-story.is-live .bb-story__steps li.bb-story__tool { opacity: 1; }
.bb-story__steps li:first-child { min-height: 50vh; justify-content: flex-start; padding-top: 24px; }
.bb-story.is-live .bb-story__steps li.is-active { opacity: 1; }
.bb-story__steps h2, .bb-prose .bb-story__steps h2 { margin: 0 0 0.4em; padding: 0; border: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--step-lead); line-height: 1.3; }
.bb-story__steps p { margin: 0 0 1em; }
.bb-story__tool { min-height: 0; padding-bottom: 24px; }
@media (max-width: 960px) {
  .bb-story { display: block; }
  .bb-story__fig {
    position: sticky;
    top: 56px;
    z-index: 2;
    padding: 8px 0;
    background: var(--paper);
  }
  .bb-story__sticky { position: static; padding: 8px 12px 12px; gap: 4px; }
  .bb-story__sticky .bb-hand { width: min(100%, 36vh * 380 / 440); width: min(100%, 36svh * 380 / 440); margin: 0 auto; }
  .bb-story__steps li { min-height: 60vh; min-height: 60svh; justify-content: flex-end; padding-bottom: 12vh; }
  .bb-story__steps li:first-child { min-height: 40vh; padding-top: 24px; justify-content: flex-start; }
  .bb-hand__read strong { font-size: var(--step-lead); }
}
@media (prefers-reduced-motion: reduce) {
  .bb-hand__fingers, .bb-hand__stone, .bb-story__steps li, .bb-seg > button, .bb-seg > a, .bb-seg__ind { transition: none !important; }
}

/* ---------- 首頁：問答 ---------- */
.bb-faq {
  padding: var(--gap-section) var(--pad);
}
.bb-faq__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(32px, 5vw, 80px);
  max-width: 1080px;
  margin: clamp(40px, 5vw, 64px) auto 0;
}
.bb-faq__item {
  padding: 24px 0 28px;
  box-shadow: inset 0 1px 0 var(--hairline); /* taste-skill-ignore: 問答之間的細分隔 */
}
.bb-faq__item dt {
  margin: 0 0 8px;
  font-size: var(--step-lead);
  font-weight: 600;
  line-height: 1.4;
}
.bb-faq__item dd { margin: 0; }
.bb-faq__item p { margin: 0 0 10px; line-height: 1.7; }
@media (max-width: 860px) {
  .bb-faq__list { grid-template-columns: 1fr; }
}
/* 首頁問答：每條可以開合（頭幾條預設打開）。問題一行就係掣，成行都撳得 */
.bb-faq__list--fold { align-items: start; }
.bb-faq__fold { padding: 0; }
.bb-faq__fold summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 20px 0;
  font-size: var(--step-lead);
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.bb-faq__fold summary::-webkit-details-marker { display: none; }
.bb-faq__fold summary::after {
  content: "›";
  flex: none;
  color: var(--ink-soft);
  font-size: 1.25em;
  font-weight: 400;
  line-height: 1;
  transition: transform 200ms var(--ease-out);
}
.bb-faq__fold[open] summary::after { transform: rotate(90deg); }
.bb-faq__fold summary:hover { color: var(--blue); }
.bb-faq__fold summary:focus-visible { outline-offset: 4px; border-radius: 4px; }
.bb-faq__ans { padding: 0 0 26px; }
.bb-faq__ans .bb-faq__more { display: inline-block; padding-block: 12px; margin-block: -12px; }
@media (prefers-reduced-motion: reduce) {
  .bb-faq__fold summary::after { transition: none; }
}

/* ---------- 結尾反白 ---------- */
.bb-close {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: calc(var(--gap-section) * 1.4) var(--pad);
  background: var(--ink);
  color: var(--paper);
  text-align: center;
}
.bb-close h2 {
  margin: 0;
  font-size: var(--step-display);
}
.bb-close__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.bb-close__foot p { margin: 0; max-width: 24em; font-size: var(--step-lead); line-height: 1.5; color: rgba(251, 247, 246, 0.82); }
@media (max-width: 760px) {

}

/* ---------- 頁腳 ---------- */
.bb-footer {
  background: var(--blue);
  color: var(--blue-ink);

  padding: clamp(80px, 8vw, 128px) var(--pad) 32px;
}
.bb-footer__mark {
  margin: 0;
  font-size: var(--step-display);
  line-height: 1;
  white-space: nowrap;
}
.bb-footer__row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 16px;
  margin-top: 72px;
}
.bb-footer__places {
  grid-column: 1 / 6;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bb-footer__places li { font-size: var(--step-lead); font-weight: 600; line-height: 1.6; }
.bb-footer__places a { color: var(--blue-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.bb-footer__cols {
  grid-column: 7 / 13;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.bb-footer__cols ul { margin: 0; padding: 0; list-style: none; }
.bb-footer__cols li { margin-bottom: 10px; font-size: var(--step-small); }
.bb-footer__cols a { color: var(--blue-ink); text-decoration: none; }
.bb-footer__cols a:hover { text-decoration: underline; text-underline-offset: 5px; }
.bb-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 96px;
  font-size: var(--step-small);
}
.bb-footer__legal p { margin: 0; max-width: 36em; }
.bb-footer__legal a { color: var(--blue-ink); display: inline-flex; align-items: center; min-height: 44px; align-self: flex-end; }
@media (max-width: 760px) {
  .bb-footer__row { grid-template-columns: 1fr; row-gap: 40px; margin-top: 40px; }
  .bb-footer__places, .bb-footer__cols { grid-column: 1; }
  .bb-footer__cols { grid-template-columns: 1fr 1fr; }
  .bb-footer__legal { margin-top: 56px; }
}

/* ---------- 章節頁、文章頁 ---------- */
/* 章節頁、文章頁：側欄 240px，正文最闊 760px，整組置中 */
.bb-page {
  display: grid;
  grid-template-columns: 240px minmax(0, 760px);
  justify-content: center;
  column-gap: clamp(32px, 4vw, 72px);
  padding: clamp(32px, 4vw, 64px) var(--pad) var(--gap-section);
}
/* 側欄整欄黏住（文章目錄 + 全書目錄一齊），太長就喺側欄入面自己碌，唔會同正文或者彼此重疊 */
.bb-page__side {
  position: sticky;
  top: 72px;
  align-self: start;
  max-height: calc(100vh - 88px);
  max-height: calc(100dvh - 88px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding-bottom: 24px;
  font-size: var(--step-small);
  color: var(--ink-soft);
}
.bb-page__main { min-width: 0; }
.bb-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
  font-size: var(--step-small);
}
.bb-crumbs a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 4px; }
.bb-crumbs li + li::before { content: "›"; margin-right: 10px; color: var(--ink-soft); }
.bb-page__title {
  margin: 0 0 0.5em;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  line-height: 1.2;
}
.bb-page__lead { margin: 0 0 2em; max-width: 30em; font-size: var(--step-lead); line-height: 1.7; }
/* 文章頁：標題係一句問題或者長句，唔使用章節頁咁大嘅展示字；電腦約 38px、手機約 26px，換行時兩行平均 */
.bb-page__title--article { font-size: clamp(1.625rem, 1.25rem + 1.3vw, 2.375rem); line-height: 1.28; letter-spacing: 0; text-wrap: balance; }
.bb-page__lead--article { max-width: 36em; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.75; text-wrap: pretty; }
.bb-meta { margin: 0 0 24px; }
.bb-meta dt { font-weight: 600; color: var(--ink); }
.bb-meta dd { margin: 0 0 12px; }
.bb-side-toc { position: static; }
.bb-side-toc p { margin: 0 0 8px; font-weight: 600; color: var(--ink); }
.bb-side-toc ol { margin: 0; padding: 0; list-style: none; }
.bb-side-toc li { margin-bottom: 8px; line-height: 1.5; }
.bb-side-toc li.lvl3 { padding-left: 1em; }
.bb-side-toc a { color: var(--ink-soft); text-decoration: none; }
.bb-side-toc a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.bb-draft {
  margin: 0 0 32px;
  border-radius: var(--radius-panel);
  padding: 16px 20px;
  background: var(--steel);
  font-size: var(--step-small);
  line-height: 1.7;
}
.bb-list { margin: 0; padding: 0; list-style: none; }
.bb-list li + li { margin-top: 28px; }
.bb-list a { display: block; color: var(--ink); text-decoration: none; }
.bb-list a strong { display: block; font-size: var(--step-lead); line-height: 1.5; }
.bb-list a span { display: block; color: var(--ink-soft); font-size: var(--step-small); margin-top: 4px; }
.bb-list a:hover strong { color: var(--blue); text-decoration: underline; text-underline-offset: 6px; }
.bb-list .pending { color: var(--ink-soft); }
.bb-list .pending strong { color: var(--ink); font-weight: 400; font-size: var(--step-body); }
.bb-subhead { margin: 64px 0 20px; font-size: var(--step-lead); font-weight: 600; }
.bb-ask {
  margin-top: 72px;
  border-radius: var(--radius-panel);
  padding: clamp(28px, 4vw, 48px);
  background: var(--blue);
  color: var(--blue-ink);
}
.bb-ask h2 { margin: 0 0 0.4em; font-size: var(--step-lead); }
.bb-ask p { margin: 0 0 24px; max-width: 32em; }
.bb-author {
  margin-top: 56px;
  border-radius: var(--radius-panel);
  padding: 24px;
  background: var(--steel);
  font-size: var(--step-small);
  line-height: 1.8;
}
.bb-author strong { display: block; font-size: var(--step-body); }
.bb-chapnav { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 16px 32px; }
@media (max-width: 960px) {
  .bb-page { grid-template-columns: 1fr; }
  .bb-page__side { position: static; max-height: none; overflow: visible; padding: 0 0 8px; margin-bottom: 32px; }
  .bb-side-toc { position: static; padding: 16px 20px; background: var(--steel); border-radius: var(--radius-panel); }
  .bb-prose table { min-width: 600px; }
}

/* 文章正文 */
.bb-prose { font-size: var(--step-body); line-height: 1.85; color: var(--ink); }
.bb-prose > :not(.bb-story) { max-width: 36em; }
.bb-prose > :first-child { margin-top: 0; }
.bb-prose h2 {
  margin: 2.2em 0 0.7em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-lead);
  line-height: 1.4;
  scroll-margin-top: 80px;
}
.bb-prose h3 { margin: 1.8em 0 0.5em; font-size: var(--step-body); font-weight: 600; line-height: 1.5; scroll-margin-top: 80px; }
.bb-prose p { margin: 0 0 1.1em; }
.bb-prose ul, .bb-prose ol { margin: 0 0 1.2em; padding-left: 1.6em; }
.bb-prose ul { list-style: disc; }
.bb-prose ol { list-style: decimal; }
.bb-prose li::marker { color: var(--blue); font-weight: 600; }
.bb-prose li { margin-bottom: 0.4em; }
.bb-prose strong { font-weight: 600; }
.bb-prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.bb-prose .bb-table { margin: 1.6em 0; overflow-x: auto; }
.bb-prose .bb-table:focus-visible { outline-offset: 4px; }
/* 窄螢幕：表格一定闊過螢幕（最少 600px），喺表格上面寫明可以左右掃，唔好等人以為右邊嗰欄冇嘢 */
@media (max-width: 620px) {
  .bb-prose .bb-table::before {
    content: "表格較闊，可以左右掃";
    display: block;
    position: sticky;
    left: 0;
    width: max-content;
    margin-bottom: 8px;
    color: var(--ink-soft);
    font-size: var(--step-caption);
    line-height: 1.4;
  }
}
.bb-prose table { width: 100%; border-collapse: collapse; font-size: var(--step-small); line-height: 1.6; }
.bb-prose th { text-align: left; font-weight: 600; padding: 10px 12px; background: var(--pale); white-space: nowrap; }
.bb-prose td { padding: 10px 12px; vertical-align: top; border-bottom: 1px solid var(--line); }
.bb-prose blockquote { margin: 1.6em 0; padding: 0 0 0 20px; border-left: 4px solid var(--blue); font-size: var(--step-lead); }
.bb-note {
  margin: 1.8em 0;
  border-radius: var(--radius-panel);
  padding: 20px 24px;
  background: var(--pale);
}
.bb-note > p:last-child { margin-bottom: 0; }
.bb-note__label { font-weight: 600; color: var(--blue); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal].is-pending { opacity: 1; transform: none; transition: none; }
  .bb-btn, .bb-toc__arrow { transition: none; }
}

@media (max-width: 760px) {
  .bb-hero__toc-link { display: none; }
  :root {
    --gap-section: 64px;
  }
}

/* ---------- 首頁：閱讀路線 ---------- */
.bb-routes {
  padding: var(--gap-section) var(--pad);
  background: var(--pale);
}
.bb-routes__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0;
  list-style: none;
}
.bb-routes__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 28px;
  border-radius: var(--radius-panel);
  background: #ffffff;
}
.bb-routes__card h3 {
  margin: 0 0 8px;
  font-size: var(--step-lead);
  font-weight: 600;
  line-height: 1.35;
}
.bb-routes__card > p { margin: 0 0 20px; color: var(--ink-soft); }
.bb-routes__path { margin: auto 0 0; padding: 0; list-style: none; }
.bb-routes__path li + li { margin-top: 6px; }
.bb-routes__path a { color: var(--blue); text-decoration: none; }
.bb-routes__path a::after { content: "›"; display: inline-block; margin-left: 0.3em; transition: transform 200ms var(--ease-out); }
.bb-routes__path a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.bb-routes__path a:hover::after { transform: translateX(3px); }
.bb-routes__step { display: inline-block; min-width: 1.6em; color: var(--ink-soft); font-size: var(--step-caption); }
@media (max-width: 860px) {
  .bb-routes__list { grid-template-columns: 1fr; }
}

.bb-faq__more { color: var(--blue); font-weight: 600; text-decoration: none; white-space: nowrap; }
.bb-faq__more::after { content: "›"; display: inline-block; margin-left: 0.25em; transition: transform 200ms var(--ease-out); }
.bb-faq__more:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.bb-faq__more:hover::after { transform: translateX(3px); }
.bb-continue { margin: 24px 0 0; font-size: var(--step-small); }
.bb-continue span { color: var(--ink-soft); }

/* ---------- 全書目錄、上一篇／下一篇 ---------- */
.bb-booknav { margin-top: 40px; }
.bb-booknav > p { margin: 0 0 10px; font-weight: 600; color: var(--ink); }
.bb-booknav ol { margin: 0; padding: 0; list-style: none; }
.bb-booknav li { margin-bottom: 6px; line-height: 1.5; }
.bb-booknav a { color: var(--ink-soft); text-decoration: none; }
.bb-booknav a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.bb-booknav li.is-open > a { color: var(--ink); font-weight: 600; }
.bb-booknav ol ol { margin: 6px 0 10px; padding-left: 1em; }
.bb-booknav a[aria-current="page"] { color: var(--blue); font-weight: 600; }
.bb-booknav__count { margin-left: 0.5em; color: var(--ink-soft); font-weight: 400; }
.bb-prevnext {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 56px;
}
.bb-prevnext a {
  display: block;
  padding: 20px;
  border-radius: var(--radius-panel);
  background: var(--steel);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 160ms;
}
.bb-prevnext a:hover { background: var(--pale); }
.bb-prevnext a:active { transform: scale(0.98); }
.bb-prevnext a { transition: background-color 200ms, transform 200ms var(--ease-out); }
.bb-prevnext a.is-next { text-align: right; }
.bb-prevnext span { display: block; color: var(--ink-soft); font-size: var(--step-small); }
.bb-prevnext strong { display: block; margin-top: 4px; line-height: 1.5; }
.bb-only-narrow { display: none; }
@media (max-width: 960px) {
  .bb-only-wide { display: none; }
  .bb-only-narrow { display: block; margin-top: 56px; }
  .bb-prevnext { grid-template-columns: 1fr; }
}

/* ---------- 章節封面、文章題圖 ---------- */
.bb-chapfig { margin: 0 0 32px; max-width: 240px; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-img); background: var(--steel); }
.bb-chapfig img { width: 100%; height: 100%; object-fit: cover; }
.bb-artfig { margin: 0 0 32px; max-width: 36em; }
.bb-artfig img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-img); background: var(--steel); }
.bb-artfig figcaption { margin-top: 8px; color: var(--ink-soft); font-size: var(--step-small); }
.bb-artfig figcaption:empty { display: none; }
@media (max-width: 960px) {

  .bb-chapfig { max-width: none; aspect-ratio: 16 / 9; }
}

/* ---------- 首屏快答 ---------- */
.bb-answers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 1080px;
  margin: clamp(40px, 5vw, 64px) 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.bb-answers a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 22px 24px;
  border-radius: var(--radius-panel);
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
  transition: transform 200ms var(--ease-out);
}
.bb-answers a:hover em { text-decoration: underline; text-underline-offset: 4px; }
.bb-answers a:active { transform: var(--press); }
.bb-answers strong { font-size: var(--step-body); font-weight: 600; }
.bb-answers span { color: var(--ink-soft); font-size: var(--step-small); line-height: 1.6; }
.bb-answers em { margin-top: auto; padding-top: 4px; color: var(--blue); font-style: normal; font-size: var(--step-small); }
.bb-answers em::after { content: " ›"; }
@media (max-width: 860px) {
  .bb-answers { grid-template-columns: 1fr; gap: 10px; }
  .bb-answers a { padding: 16px 18px; }
}

/* 撰寫中／篇數標籤 */
.bb-tag {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--steel);
  color: var(--ink-soft);
  font-size: var(--step-caption);
  font-weight: 400;
  line-height: 1.6;
  vertical-align: 0.1em;
}

/* 文章、章節：一行元資料、手機摺埋目錄 */
.bb-metaline {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: var(--step-small);
}
.bb-metaline strong { color: var(--ink); font-weight: 600; }
.bb-tocfold { display: none; }
@media (max-width: 960px) {
  .bb-tocfold {
    display: block;
    margin: 0 0 24px;
    border-radius: var(--radius-panel);
    background: #ffffff;
  }
  .bb-tocfold summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 0 18px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
  }
  .bb-tocfold summary::-webkit-details-marker { display: none; }
  .bb-tocfold summary::after { content: "›"; color: var(--ink-soft); font-size: 1.25em; transition: transform 200ms var(--ease-out); }
  .bb-tocfold[open] summary::after { transform: rotate(90deg); }
  .bb-tocfold ol { margin: 0; padding: 0 18px 16px; list-style: none; }
  .bb-tocfold li { padding: 6px 0; line-height: 1.5; }
  .bb-tocfold li.lvl3 { padding-left: 1em; }
  .bb-tocfold a { color: var(--blue); text-decoration: none; }
  .bb-page { grid-template-columns: minmax(0, 1fr); }
  .bb-page__lead { margin-bottom: 1em; }
}
.bb-note--plain { background: var(--steel); }
.bb-list--compact li + li { margin-top: 10px; }
.bb-list--compact a strong { font-size: var(--step-body); }

/* ---------- 作品案例頁 ---------- */
.bb-cases-page { max-width: 1120px; margin: 0 auto; padding: clamp(32px, 4vw, 64px) var(--m) var(--gap-section); }
.bb-cases-empty { max-width: 40em; }
.bb-cases-empty .bb-link::after { content: none; }

/* 手機主要按鈕至少 44px 高 */
@media (max-width: 860px) {
  .bb-header__action { min-height: 44px; }
}

.bb-link--prev::after { content: none; }
.bb-link--prev::before { content: "‹"; display: inline-block; margin-right: 0.3em; transition: transform 200ms var(--ease-out); }
.bb-link--prev:hover::before { transform: translateX(-3px); }
.bb-ask--quiet { background: var(--steel); color: var(--ink); }
@media (max-width: 960px) {
  .bb-draft { padding: 12px 16px; margin-bottom: 20px; }
}

/* 好窄嘅手機（≤380px）：頁頭按鈕縮短，唔會撐闊頁面 */
/* 手機頁頭：作品、目錄、問師傅三樣都要放得落，按鈕淨係寫「問師傅」 */
@media (max-width: 460px) {
  .bb-hide-xs { display: none; }
}
@media (max-width: 380px) {
  .bb-header__mark { padding: 0 6px 0 12px; }
}
/* 極窄手機（≤340px）放唔落完整標誌，淨係顯示圖形 */
@media (max-width: 340px) {
  .bb-header__logo { display: none; }
  .bb-header__logo-mark { display: block; }
  .bb-header__menu { padding: 0 8px; }
  .bb-header__action { padding: 0 12px; margin-right: 8px; }
}

/* ---------- 開頁速度：畫面以外嘅大段落，等碌到附近先排版同繪製 ---------- */
.bb-routes, .bb-tool, .bb-related, .bb-contents, .bb-why, .bb-how, .bb-close, .bb-footer,
.bb-author, .bb-prevnext, .bb-ask, .bb-only-narrow, .bb-subhead, .bb-list {
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}
.bb-prose > :nth-child(n + 6):not(.bb-story) {
  content-visibility: auto;
  contain-intrinsic-size: auto 240px;
}

/* ---------- 示例內容標籤（SITE.demo） ---------- */
.bb-demo {
  display: inline-block;
  margin-left: 8px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--gold-ink);
  font-size: var(--step-caption);
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.02em;
  vertical-align: 0.15em;
  white-space: nowrap;
}
.bb-footer__social { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-weight: 400; }
.bb-footer__social a, .bb-footer__social span:not(.bb-demo) { color: var(--blue-ink); font-size: var(--step-body); }

/* 關於本書：師傅介紹、工坊資料 */
.bb-master {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin: 8px 0 8px;
}
.bb-master img, .bb-master__ph {
  width: 160px;
  aspect-ratio: 1;
  border-radius: var(--radius-panel);
  object-fit: cover;
}
.bb-master__ph {
  display: grid;
  place-items: center;
  background: var(--steel);
  color: var(--ink-soft);
  font-size: var(--step-small);
  text-align: center;
  line-height: 1.6;
}
.bb-master p { margin: 0 0 8px; }
.bb-master__name { font-size: var(--step-lead); font-weight: 600; }
.bb-master__title { color: var(--ink-soft); }
.bb-studio { display: grid; gap: 10px; margin: 8px 0 0; }
.bb-studio div { display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 12px; }
.bb-studio dt { color: var(--ink-soft); }
.bb-studio dd { margin: 0; }
@media (max-width: 560px) {
  .bb-master { grid-template-columns: 1fr; }
  .bb-studio div { grid-template-columns: 1fr; gap: 0; }
}

/* =====================================================================
   Apple 式動效（首屏部分；其餘喺 src/components/motion.css，開頁後先載，唔拖慢首屏）
   ===================================================================== */
@keyframes bb-settle { from { transform: scale(1.22); } }
@keyframes bb-raise { from { transform: scaleY(0); } }
@keyframes bb-fadeup { from { opacity: 0; transform: translate3d(0, 28px, 0); } }

@media (prefers-reduced-motion: no-preference) {
  /* 1. 刊頭：開頁時每格圖由近拉遠「落位」，藍、粉色塊由下升起；第一張圖照常即刻顯示，唔影響首屏速度 */
  .bb-mosaic img { animation: bb-settle 1800ms var(--ease-apple) both; }
  .bb-mosaic .t-blue, .bb-mosaic .t-rose { transform-origin: 50% 100%; animation: bb-raise 1200ms var(--ease-apple) both; }
  .bb-mosaic > :nth-child(2) { animation-delay: 60ms; }
  .bb-mosaic > :nth-child(3) img { animation-delay: 90ms; }
  .bb-mosaic > :nth-child(4) img { animation-delay: 140ms; }
  .bb-mosaic > :nth-child(5) img { animation-delay: 190ms; }
  .bb-mosaic > :nth-child(6) img { animation-delay: 120ms; }
  .bb-mosaic > :nth-child(7) img { animation-delay: 230ms; }
  .bb-mosaic > :nth-child(8) { animation-delay: 260ms; }
  .bb-mosaic > :nth-child(9) img { animation-delay: 280ms; }
  .bb-mosaic > :nth-child(10) img { animation-delay: 170ms; }

  /* 2. 首屏：標題同引言即刻顯示（首屏速度）；按鈕、快答隨後升起 */
  .bb-hero__actions { animation: bb-fadeup 1000ms var(--ease-apple) 180ms both; }
  .bb-hero .bb-continue { animation: bb-fadeup 1000ms var(--ease-apple) 260ms both; }
  .bb-answers > li { animation: bb-fadeup 1000ms var(--ease-apple) both; }
  .bb-answers > li:nth-child(1) { animation-delay: 300ms; }
  .bb-answers > li:nth-child(2) { animation-delay: 380ms; }
  .bb-answers > li:nth-child(3) { animation-delay: 460ms; }

}

/* 8. 頁頭毛玻璃：底下內容碌過時透出朦朧色彩 */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .bb-header {
    background: rgba(251, 247, 246, 0.78);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
  }
}

/* =====================================================================
   作品貨架（蘋果官網式）：上面分類左右滑，下面卡片左右滑、自動對齊
   ===================================================================== */
.bb-works {
  padding: var(--gap-section) 0 calc(var(--gap-section) * 0.75);
  background: var(--steel);
}
.bb-works__head { padding-inline: var(--pad); margin-bottom: clamp(24px, 3vw, 40px); }
.bb-shelf { --card-w: clamp(264px, 78vw, 400px); position: relative; }
.bb-shelf--inset { --card-w: clamp(220px, 62vw, 260px); }
.bb-shelf__stage { position: relative; }

/* 作品分類：蘋果式分段選擇器（樣式見下面 .bb-seg） */
.bb-shelf__tabs { margin: 0 auto 28px; max-width: calc(100% - 2 * var(--m)); }
.bb-shelf__tabs--links { margin: 8px 0 28px; max-width: 100%; }

.bb-shelf__track {
  display: flex;
  gap: 16px;
  margin: 0;
  /* 上下留位俾投影，唔好俾捲動區切走 */
  padding: 16px var(--pad) 32px;
  margin-top: -12px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
  scrollbar-width: none;
}
.bb-shelf__track::-webkit-scrollbar { display: none; }
.bb-shelf__track > li { flex: 0 0 var(--card-w); scroll-snap-align: start; }
.bb-shelf__track > .bb-shelf__end { flex-basis: calc(var(--card-w) * 0.62); }
.bb-shelf--inset .bb-shelf__track { padding: 16px 8px 28px; margin-inline: -8px; scroll-padding-inline: 8px; }

.bb-shelf__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius-panel);
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  /* 學蘋果配件卡：白卡浮喺底色上面（淡淡投影），唔同背景溶埋一齊 */
  box-shadow: 2px 4px 12px rgba(42, 35, 38, 0.08); /* taste-skill-ignore: 蘋果式浮卡投影 */
}
.bb-shelf__img { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--paper); }
/* 第二張相（戴喺手上）：疊喺封面上面，平時透明；只有滑鼠裝置先載入同顯示（手機 display:none，lazy 圖唔會下載） */
.bb-shelf__img .bb-shelf__alt { position: absolute; inset: 0; display: none; opacity: 0; }
@media (hover: hover) {
  .bb-shelf__img .bb-shelf__alt { display: block; }
  .bb-shelf__card:hover .bb-shelf__alt, .bb-shelf__card:focus-visible .bb-shelf__alt { opacity: 1; }
}
.bb-shelf__img img { width: 100%; height: 100%; object-fit: cover; }
/* 相片下面嘅字：三行分層，字細啲、行距穩定，唔再每張重複「睇主石…」 */
.bb-shelf__body { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 16px 20px 20px; }
.bb-shelf__cat { display: flex; align-items: center; color: var(--ink-soft); font-size: var(--step-caption); }
.bb-shelf__cat .bb-demo { margin-left: 6px; }
.bb-shelf__body strong { font-size: var(--step-body); font-weight: 600; line-height: 1.4; text-wrap: pretty; }
.bb-shelf__variant { color: var(--ink-soft); font-size: var(--step-small); line-height: 1.4; }
.bb-shelf__card--all {
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 16px;
  background: transparent;
  color: var(--blue);
  text-align: center;
  box-shadow: inset 0 0 0 1px var(--hairline); /* taste-skill-ignore: 最尾「睇全部」卡細邊 */
}
.bb-casegrid .bb-shelf__card { height: 100%; }
.bb-shelf__card--all strong { font-size: var(--step-small); font-weight: 600; line-height: 1.5; }
.bb-shelf__card--all span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--blue-ink);
  font-size: 1.4rem;
  line-height: 1;
}


@media (max-width: 760px) {
  .bb-shelf__tabs { margin-bottom: 20px; }
  .bb-shelf__track { gap: 12px; }
  .bb-shelf__body { padding: 14px 16px 18px; }
}
.bb-shelf--inset .bb-shelf__body { padding: 14px 16px 18px; }

/* 左右箭咀：圓形毛玻璃，浮喺卡片兩邊；同蘋果官網一樣一直顯示，去到盡頭嗰邊變淡（停用）。手機一樣顯示，細少少 */
.bb-shelf__paddle {
  position: absolute;
  top: calc(50% - 14px);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(214, 208, 206, 0.66);
  color: rgba(42, 35, 38, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(12px);

  backdrop-filter: saturate(180%) blur(12px);
  transform: translateY(-50%);
  cursor: pointer;
  transition: opacity 280ms var(--ease-apple), background-color 240ms var(--ease-apple);
}
.bb-shelf__paddle--prev { left: 16px; }
.bb-shelf__paddle--next { right: 16px; }
.bb-shelf--inset .bb-shelf__paddle--prev { left: 8px; }
.bb-shelf--inset .bb-shelf__paddle--next { right: 8px; }
.bb-shelf__paddle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bb-shelf__paddle:disabled { opacity: 0.36; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .bb-shelf__paddle:hover:not(:disabled) { background: rgba(214, 208, 206, 0.86); }
}
@media (max-width: 760px) {
  .bb-shelf__paddle { width: 44px; height: 44px; }
  .bb-shelf__paddle svg { width: 18px; height: 18px; }
  .bb-shelf__paddle--prev { left: 10px; }
  .bb-shelf__paddle--next { right: 10px; }
}

/* 章節、文章、作品頁入面嘅「相關作品」 */
.bb-related { margin-top: 64px; }
.bb-related__head { margin-bottom: 16px; }
.bb-related__head h2 { margin: 0; font-family: var(--font-display); font-size: var(--step-lead); font-weight: 600; line-height: 1.35; }
.bb-related__head p { margin: 4px 0 0; color: var(--ink-soft); font-size: var(--step-small); }
@media (max-width: 960px) {
  /* 手機：貨架貼到螢幕邊，可以見到下一張露出少少 */
  .bb-related .bb-shelf__track { margin-inline: calc(-1 * var(--m)); padding-inline: var(--m); scroll-padding-inline: var(--m); }
}

/* 作品列表頁、分類頁 */
.bb-casegrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 248px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 760px) {
  .bb-casegrid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .bb-casegrid .bb-shelf__body { padding: 10px 12px 14px; gap: 2px; }
  .bb-casegrid .bb-shelf__body strong { font-size: var(--step-small); }
  .bb-casegrid .bb-shelf__variant { font-size: var(--step-caption); }
}
.bb-guides { margin-top: 56px; padding: 24px; border-radius: var(--radius-panel); background: var(--steel); }
.bb-guides h2 { margin: 0 0 10px; font-size: var(--step-body); font-weight: 600; }
.bb-guides ul { margin: 0; padding: 0; list-style: none; }
.bb-guides li + li { margin-top: 6px; }
.bb-guides--inline { margin-top: 32px; padding: 0; background: transparent; }

/* 作品詳情頁 */
.bb-case-page { max-width: 1120px; margin: 0 auto; padding: clamp(24px, 3vw, 48px) var(--m) var(--gap-section); }
.bb-case-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.bb-case-page__media { position: sticky; top: 76px; }
.bb-case-page__cat { display: flex; align-items: center; margin: 0 0 8px; color: var(--ink-soft); font-size: var(--step-small); }
.bb-case-page__cat a { color: inherit; text-underline-offset: 4px; }
/* 作品頁標題：產品名唔係文章大標題，用蘋果產品頁咁嘅中號字，電腦一兩行就講完 */
.bb-case-page__info .bb-page__title { margin-bottom: 20px; font-size: clamp(1.375rem, 1.1rem + 0.9vw, 2rem); line-height: 1.3; letter-spacing: 0; text-wrap: balance; }
.bb-specs { margin: 0 0 24px; overflow: hidden; border-radius: var(--radius-panel); background: #ffffff; }
.bb-specs div { display: grid; grid-template-columns: 5em minmax(0, 1fr); gap: 12px; padding: 14px 18px; }
.bb-specs div + div { box-shadow: inset 0 1px 0 var(--hairline); } /* taste-skill-ignore: 規格行之間的細分隔 */
.bb-specs dt { color: var(--ink-soft); }
.bb-specs dd { margin: 0; }
.bb-case-page__story { margin: 0 0 24px; max-width: 34em; line-height: 1.8; }
.bb-case-page__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) {
  .bb-case-page__grid { grid-template-columns: minmax(0, 1fr); }
  .bb-case-page__media { position: static; margin-inline: calc(-1 * var(--m)); }
  .bb-case-page__media .bb-gallery__track { border-radius: 0; }
}
/* 作品正文、常見問題（按上架標準寫嘅真作品先有）：文字段 720 闊方便讀，小卡、流程、問答用返全闊 */
.bb-case-body { max-width: 1120px; margin: clamp(56px, 7vw, 96px) auto 0; }
.bb-case-body__sec { max-width: 720px; margin-inline: auto; }
.bb-case-body__sec:has(.bb-case-cards), .bb-case-steps, .bb-case-faq { max-width: none; }
.bb-case-body__sec + .bb-case-body__sec { margin-top: clamp(56px, 7vw, 88px); }
.bb-case-body h2 { margin: 0 0 18px; font-size: clamp(1.375rem, 1.15rem + 0.7vw, 1.75rem); line-height: 1.3; }
.bb-case-body p { margin: 0 0 14px; line-height: 1.85; }

/* 標題下面一排重點規格 */
.bb-case-hl { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 20px; padding: 0; list-style: none; }
.bb-case-hl li { padding: 6px 14px; border-radius: 999px; background: #ffffff; font-size: var(--step-small); font-weight: 600; line-height: 1.4; }

/* 揀呢款要諗嘅嘢：三張小卡 */
.bb-case-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; margin: 8px 0 0; }
.bb-case-cards div { padding: 24px; border-radius: var(--radius-panel); background: #ffffff; }
.bb-case-cards dt { margin: 0 0 8px; font-size: var(--step-body); font-weight: 600; }
.bb-case-cards dd { margin: 0; color: var(--ink-soft); line-height: 1.75; }

/* 等比例尺寸圖 */
.bb-size { margin: 24px 0 8px; padding: 24px 16px 20px; border-radius: var(--radius-panel); background: #ffffff; }
.bb-size svg { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 auto; font-family: inherit; }
.bb-size__finger { fill: #f3e6df; }
.bb-size__halo { fill: #ffffff; stroke: #b9aeb2; stroke-width: 3; stroke-dasharray: 2 5; stroke-linecap: round; }
.bb-size__stone { fill: #eef1f6; stroke: var(--ink); stroke-width: 2; }
.bb-size__dim line { stroke: var(--ink-soft); stroke-width: 1.5; }
.bb-size__dim text, .bb-size__ruler text { fill: var(--ink); font-size: 15px; }
.bb-size__ruler line { stroke: var(--ink-soft); stroke-width: 1.5; }
.bb-size__ruler text { fill: var(--ink-soft); font-size: 13px; }
.bb-size figcaption { max-width: 34em; margin: 16px auto 0; color: var(--ink-soft); font-size: var(--step-small); line-height: 1.7; text-align: center; }

/* 由落單到交貨：五步，電腦橫排、手機直排 */
.bb-case-steps ol { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 8px 0 20px; padding: 0; list-style: none; }
.bb-case-steps li { display: flex; flex-direction: column; gap: 6px; padding: 22px 20px; border-radius: var(--radius-panel); background: #ffffff; }
.bb-case-steps__n { display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 6px; border-radius: 50%; background: var(--blue); color: var(--blue-ink); font-size: var(--step-caption); font-weight: 600; }
.bb-case-steps li strong { font-size: var(--step-body); line-height: 1.4; }
.bb-case-steps li span:last-child { color: var(--ink-soft); font-size: var(--step-small); line-height: 1.6; }
@media (max-width: 960px) {
  .bb-case-steps ol { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .bb-case-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 16px 18px; }
  .bb-case-steps__n { grid-row: span 2; margin: 0; }
}

/* 常見問題：電腦兩欄 */
.bb-case-faq__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 64px); margin: 0; }
.bb-case-faq__list .bb-faq__item dt { font-size: var(--step-body); }
@media (max-width: 860px) { .bb-case-faq__list { grid-template-columns: 1fr; } }

/* 手機：底部常駐「問類似款」（學蘋果產品頁），電腦唔顯示 */
.bb-buybar { display: none; }
@media (max-width: 860px) {
  .bb-buybar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: flex; align-items: center; gap: 12px;
    padding: 10px var(--m) calc(10px + env(safe-area-inset-bottom));
    background: rgba(251, 247, 246, 0.94);
    -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
    box-shadow: inset 0 1px 0 var(--hairline); /* taste-skill-ignore: 底欄頂部細線 */
  }
  .bb-buybar__t { flex: 1; min-width: 0; overflow: hidden; font-size: var(--step-small); font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
  .bb-buybar .bb-btn { flex: none; }
  .bb-case-page { padding-bottom: calc(var(--gap-section) + 72px); }
}

/* 作品相：左右滑 */
.bb-gallery__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-radius: var(--radius-panel);
  background: var(--steel);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.bb-gallery__track::-webkit-scrollbar { display: none; }
.bb-gallery__slide { flex: 0 0 100%; margin: 0; aspect-ratio: 1; scroll-snap-align: start; }
.bb-gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.bb-gallery__slide { position: relative; }
/* 主圖角落「▶ 實拍影片」：撳咗跳去影片格 */
.bb-gallery__vidbtn {
  position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px;
  background: rgba(251, 247, 246, 0.92); color: var(--ink); font: inherit; font-size: var(--step-small); cursor: pointer;
}
.bb-gallery__vidbtn svg, .bb-gallery__play svg { width: 14px; height: 14px; fill: currentColor; }
.bb-gallery__slide--video { background: #141214; }
.bb-gallery__slide--video iframe { display: block; width: 100%; height: 100%; border: 0; }
.bb-gallery__poster { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.bb-gallery__play {
  position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 72px; height: 72px; margin: -36px 0 0 -36px;
  border-radius: 50%; background: rgba(251, 247, 246, 0.92); color: var(--ink);
}
.bb-gallery__play svg { width: 22px; height: 22px; margin-left: 3px; }
.bb-gallery__vlabel { position: absolute; left: 16px; bottom: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(20, 18, 20, 0.6); color: #fbf7f6; font-size: var(--step-caption); }
.bb-gallery__slide--ph { display: grid; place-items: center; color: var(--ink-soft); font-size: var(--step-small); }
.bb-gallery__slide--ph > span { display: flex; align-items: center; }
/* 作品相嘅箭咀：置中喺相嘅高度 */
.bb-gallery__stage .bb-shelf__paddle { top: 50%; }
.bb-gallery__dots { display: none; justify-content: center; gap: 2px; margin-top: 8px; }
.bb-gallery__dots button { display: grid; place-items: center; width: 24px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.bb-gallery__dots button::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: rgba(42, 35, 38, 0.22); transition: background-color 240ms; }
.bb-gallery__dots button[aria-current="true"]::before { background: var(--ink); }
/* 縮圖列：取代頁碼點，撳邊格去邊格；放唔晒就左右滑 */
.bb-gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; padding: 4px; overflow-x: auto; scrollbar-width: none; }
.bb-gallery__thumbs::-webkit-scrollbar { display: none; }
.bb-gallery__thumb { position: relative; flex: 0 0 64px; width: 64px; height: 64px; padding: 0; overflow: hidden; border: 0; border-radius: 10px; background: var(--steel); cursor: pointer; opacity: 0.6; transition: opacity 200ms; }
.bb-gallery__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bb-gallery__thumb[aria-current="true"] { opacity: 1; outline: 2px solid var(--ink); outline-offset: 2px; }
.bb-gallery__thumbplay { position: absolute; inset: 0; display: grid; place-items: center; color: #fbf7f6; background: rgba(20, 18, 20, 0.28); }
.bb-gallery__thumbplay svg { width: 16px; height: 16px; fill: currentColor; }
@media (hover: hover) { .bb-gallery__thumb:hover { opacity: 1; } }
@media (max-width: 860px) { .bb-gallery__thumbs { padding-inline: var(--m); } }
/* 主圖可以撳嚟放大 */
.bb-gallery__zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }

/* 放大睇：全螢幕，左右滑或者撳箭咀 */
.bb-lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: #faf6f4; color: var(--ink); }
.bb-lightbox::backdrop { background: rgba(20, 18, 20, 0.5); }

.bb-lightbox__track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.bb-lightbox__track::-webkit-scrollbar { display: none; }
.bb-lightbox__slide { display: grid; flex: 0 0 100%; place-items: center; margin: 0; scroll-snap-align: start; }
.bb-lightbox__slide img { width: auto; max-width: 100%; height: auto; max-height: 100dvh; aspect-ratio: 1; object-fit: contain; }
.bb-lightbox__count { position: absolute; left: 50%; bottom: 20px; margin: 0; padding: 6px 14px; border-radius: 999px; background: rgba(251, 247, 246, 0.9); font-size: var(--step-small); transform: translateX(-50%); }
.bb-lightbox__close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%; background: rgba(42, 35, 38, 0.08); color: var(--ink); cursor: pointer; }
.bb-lightbox__close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.bb-lightbox .bb-lightbox__nav { top: 50%; }
.bb-lightbox .bb-shelf__paddle--prev { left: 16px; }
.bb-lightbox .bb-shelf__paddle--next { right: 16px; }

/* 跳至主要內容：平時收埋，鍵盤聚焦先出現 */
.bb-skip {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--blue-ink);
  font-size: var(--step-small);
  text-decoration: none;
}
.bb-skip:focus { top: 8px; }
main:focus { outline: none; }

/* =====================================================================
   蘋果式分段選擇器：淺灰長膠囊底，揀中嗰格係深色膠囊，換選項時膠囊滑過去
   用喺：首頁作品分類、作品列表分類、尺寸工具手指粗幼
   ===================================================================== */
.bb-seg {
  position: relative;
  display: flex;
  gap: 2px;
  width: max-content;
  padding: 4px;
  border-radius: 999px;
  background: rgba(42, 35, 38, 0.07);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.bb-seg::-webkit-scrollbar { display: none; }
.bb-seg > button, .bb-seg > a {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 400 var(--step-small)/1 var(--font-text);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.bb-seg > button span, .bb-seg > a span { color: var(--ink-soft); font-size: var(--step-caption); }
/* 已選：冇 JS 時自己有底色；有 JS 時由滑動膠囊負責 */
.bb-seg > [aria-pressed="true"], .bb-seg > [aria-current="page"] { background: var(--blue); color: var(--blue-ink); }
/* 有 JS 時：新選項嘅底色等滑動膠囊到埗先出現（480ms），舊選項即刻冇底色；靜止時已選項目本身有底色，對比清楚 */
.bb-seg.is-ready > button, .bb-seg.is-ready > a { transition: color 360ms var(--ease-apple), background-color 0s; }
.bb-seg.is-ready > [aria-pressed="true"], .bb-seg.is-ready > [aria-current="page"] { transition: color 360ms var(--ease-apple), background-color 0s linear 480ms; }
.bb-seg > [aria-pressed="true"] span, .bb-seg > [aria-current="page"] span { color: rgba(255, 255, 255, 0.72); }
.bb-seg__ind {
  position: absolute;
  z-index: 0;
  top: 4px;
  bottom: 4px;
  left: 0;
  width: 0;
  border-radius: 999px;
  background: var(--blue);
  opacity: 0;
}
.bb-seg.is-live .bb-seg__ind { opacity: 1; }
@media (hover: hover) {
  .bb-seg > button:hover:not([aria-pressed="true"]), .bb-seg > a:hover:not([aria-current="page"]) { background: rgba(255, 255, 255, 0.6); }
}
@media (max-width: 760px) {
  .bb-seg > button, .bb-seg > a { padding: 0 15px; }
}

/* =====================================================================
   工坊承諾
   ===================================================================== */
/* 首屏四個小承諾（亦用喺問師傅區塊、作品頁） */
.bb-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-soft);
  font-size: var(--step-small);
}
.bb-trust li { display: inline-flex; align-items: center; gap: 6px; }
.bb-trust svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bb-trust--on-dark { justify-content: flex-start; margin: 0 0 24px; color: rgba(255, 255, 255, 0.86); }
.bb-trust--on-dark svg { stroke: var(--gold); }
.bb-trust--list { flex-direction: column; align-items: flex-start; gap: 8px; margin: 24px 0 0; padding: 18px 20px; border-radius: var(--radius-panel); background: var(--steel); color: var(--ink); }
.bb-trust__more { margin-top: 2px; }
@media (max-width: 560px) {
  .bb-hero .bb-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; justify-items: start; text-align: left; font-size: var(--step-caption); }
}

/* 首頁：點解揀鄒三山工坊 */
.bb-why { padding: var(--gap-section) var(--pad); }
.bb-why__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 12px;
  max-width: var(--max);
  margin: clamp(32px, 4vw, 56px) auto 0;
}
.bb-why__a {
  grid-column: 1 / 8;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  min-height: clamp(360px, 40vw, 520px);
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-panel);
  background: var(--blue);
  color: var(--blue-ink);
}
.bb-why__foot { display: flex; flex-direction: column; gap: 14px; }
.bb-why__a h3 { margin: 0; font-size: var(--step-display); line-height: 1.1; }
.bb-why__a p { margin: 0; max-width: 34em; font-size: var(--step-body); line-height: 1.75; color: rgba(255, 255, 255, 0.86); }
.bb-link--on-dark { color: var(--blue-ink); }
.bb-why__img { position: relative; grid-column: 8 / 13; margin: 0; overflow: hidden; border-radius: var(--radius-panel); background: var(--steel); }
.bb-why__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bb-why__img figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  padding: 4px 6px 4px 12px;
  border-radius: 999px;
  background: rgba(251, 247, 246, 0.86);
  color: var(--ink);
  font-size: var(--step-caption);
}
.bb-why__card {
  position: relative;
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--radius-panel);
  background: var(--steel);
}
.bb-why__card--price { background: var(--pale); }
.bb-why__card--delivery { background: var(--rose); }
.bb-why__card h3 { margin: 0; font-size: var(--step-lead); font-weight: 600; line-height: 1.35; }
.bb-why__card p { margin: 0; color: var(--ink-soft); font-size: var(--step-small); line-height: 1.75; }
.bb-why__card--delivery p { color: var(--ink); }
/* 下面三張卡嘅示意圖：保持完整 3:2，唔裁；貼卡底對齊，文字自然撐開。圖說放喺圖下面，唔遮證書示意聲明、人面或戒指盒 */
.bb-why__fig { margin: auto 0 0; padding-top: 8px; }
.bb-why__fig img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; border-radius: var(--radius-img); background: var(--steel); }
.bb-why__fig figcaption { display: flex; align-items: center; margin-top: 10px; color: var(--ink-soft); font-size: var(--step-caption); }
.bb-why__card--delivery .bb-why__fig figcaption { color: var(--ink); }
/* 條款連結併入副標題句尾（蘋果段落副標題常見做法），唔再孤零零吊喺卡片下面 */
.bb-why__terms { margin-left: 0.4em; white-space: nowrap; }
@media (max-width: 860px) {
  .bb-why__grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .bb-why__a, .bb-why__img, .bb-why__card { grid-column: 1; }
  .bb-why__a { min-height: 0; }
  .bb-why__a h3 { font-size: var(--step-head); }
  /* 手機主圖：4:3 由正方形裁上下，睇得到師傅同前面工作台 */
  .bb-why__img { aspect-ratio: 4 / 3; }
  .bb-why__img img { object-position: 50% 40%; }
}

/* 章節頁：「鄒三山工坊嘅做法」 */
.bb-ourway { margin-top: 40px; }
.bb-ourway p:not(.bb-note__label) { margin: 6px 0 10px; }

/* 關於本書：條款、相片 */
.bb-terms { margin: 0 0 1.4em; padding-left: 1.4em; }
.bb-terms li { margin-bottom: 0.9em; line-height: 1.8; }
/* 關於本書：兩張示意圖並排，統一 3:2（正方形工坊圖略裁上下），圖說喺圖下面 */
.bb-about__figs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 620px; margin: 0 0 1.6em; }
.bb-about__figs figure { margin: 0; }
.bb-about__figs img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-img); }
.bb-about__figs figcaption { display: flex; align-items: center; margin-top: 6px; color: var(--ink-soft); font-size: var(--step-small); }
@media (prefers-reduced-motion: reduce) {
  .bb-mosaic img.is-late { transition: none; }
}

/* ---------- 文章：內嵌真實作品卡、文末常見問題 ---------- */
.bb-works-inline { margin: 2em 0; padding: 18px 20px; background: var(--steel); border-radius: 14px; }
.bb-works-inline__label { margin: 0 0 12px !important; font-size: var(--step-caption); color: var(--ink-soft); }
.bb-works-inline ul { list-style: none !important; margin: 0 !important; padding: 0 !important; display: grid; gap: 12px; }
.bb-works-inline li::marker { content: none; }
.bb-works-inline a { display: flex; gap: 14px; align-items: center; color: var(--ink); text-decoration: none; }
.bb-works-inline img { flex: 0 0 auto; width: 76px; height: 76px; border-radius: 10px; object-fit: cover; background: var(--paper); }
.bb-works-inline span { display: flex; flex-direction: column; gap: 2px; line-height: 1.45; min-width: 0; }
.bb-works-inline small { font-size: 0.8125rem; color: var(--ink-soft); }
.bb-works-inline strong { font-weight: 600; font-size: var(--step-caption); }
.bb-works-inline em { font-style: normal; font-size: 0.8125rem; color: var(--ink-soft); }
.bb-works-inline a:hover strong { color: var(--blue); }
.bb-artfaq dl { margin: 0; }
.bb-artfaq dl > div { padding: 16px 0; border-top: 1px solid var(--hairline); }
.bb-artfaq dl > div:last-child { border-bottom: 1px solid var(--hairline); }
.bb-artfaq dt { font-weight: 600; margin-bottom: 6px; }
.bb-artfaq dd { margin: 0; color: var(--ink-soft); }

/* ---------- 文章：形狀總覽輪廓圖 ---------- */
.bb-shapes { margin: 2em 0; max-width: none !important; }
.bb-shapes ul { list-style: none !important; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 8px; }
.bb-shapes li { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.bb-shapes li::marker { content: none; }
.bb-shapes svg { width: 100%; max-width: 104px; aspect-ratio: 1; background: var(--steel); border-radius: 12px; }
.bb-shapes__stone { fill: #ffffff; stroke: var(--blue); stroke-width: 1.4; }
.bb-shapes__facet { fill: none; stroke: var(--blue); stroke-width: 0.8; opacity: 0.45; }
.bb-shapes strong { font-size: var(--step-caption); font-weight: 600; margin-top: 4px; }
.bb-shapes span { font-size: 0.75rem; color: var(--ink-soft); }
.bb-shapes figcaption { margin-top: 12px; font-size: var(--step-caption); color: var(--ink-soft); }
@media (max-width: 560px) { .bb-shapes ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Apple 式動效（開頁後先載入）：進場、按鈕卡片回饋、相片落位、流程圖排隊、目錄展開。
   原則：內容預設係顯示嘅；動畫只用 transform / opacity / scale；揀咗「減少動畫」就取消移動。 */

/* ---------- 進場動畫：碌到先升起淡入（蘋果官網做法：一次性、按時間播，唔會碌動時逐格計） ----------
   只限開頁時喺畫面以下嘅內容，由 JS 加 is-pending；冇 JS 時全部照常顯示 */
[data-reveal].is-pending {
  opacity: 0;
  transform: translate3d(0, 48px, 0);
  transition: opacity 1000ms var(--ease-apple), transform 1000ms var(--ease-apple), filter 1000ms var(--ease-apple);
  transition-delay: calc(var(--i, 0) * 110ms);
}
[data-reveal="panel"].is-pending { transform: scale(0.92); }
[data-reveal="light"].is-pending { opacity: 0.08; transform: translate3d(0, 32px, 0); filter: blur(10px); }
[data-reveal].is-pending.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}


@media (prefers-reduced-motion: no-preference) {
  /* 3. 按鈕：按落即刻縮（90ms），放手慢慢彈返；顏色變化柔和 */
  .bb-btn {
    transition: transform 420ms var(--ease-out), background-color 240ms var(--ease-apple), color 240ms var(--ease-apple), box-shadow 240ms var(--ease-apple);
  }

  .bb-btn:active { transform: var(--press); transition-duration: 90ms; }

  /* 4. 卡片：滑鼠移上去輕輕浮起、影子變深（只限有滑鼠嘅裝置）；手機按落輕縮 */
  .bb-answers a, .bb-routes__card, .bb-shelf__card, .bb-prevnext a {
    transition: transform 480ms var(--ease-out), box-shadow 480ms var(--ease-out), background-color 240ms var(--ease-apple);
  }
  .bb-shelf__img img { transition: transform 900ms var(--ease-out); }
  .bb-shelf__img .bb-shelf__alt { transition: transform 900ms var(--ease-out), opacity 560ms var(--ease-apple); }
  .bb-shelf__paddle:active:not(:disabled) { transform: translateY(-50%) scale(0.92); transition: transform 90ms var(--ease-out); }
  /* 分段選擇器：深色膠囊滑去新選項，字色同步轉 */
  .bb-seg.is-ready .bb-seg__ind { transition: transform 480ms var(--ease-apple), width 480ms var(--ease-apple), opacity 200ms; }
  .bb-seg > button:active, .bb-seg > a:active { transform: scale(0.96); }
  /* 換分類：卡片由右邊逐張滑入。郁嘅係 li 入面張卡，唔郁 li 本身——
     li 係左右滑嘅對齊點，佢一郁，手機瀏覽器會跟住成排捲 32px 再捲返，睇落就係抖 */
  .bb-shelf__track[data-picked] > li > .bb-shelf__card { animation: bb-shelfin 620ms var(--ease-apple) backwards; animation-delay: calc(var(--n, 0) * 45ms); }
  @media (hover: hover) {
    .bb-answers a:hover, .bb-routes__card:hover, .bb-prevnext a:hover {
      transform: translate3d(0, -4px, 0);
      box-shadow: 0 22px 44px -24px rgba(42, 35, 38, 0.3);
    }
    /* 作品卡：同蘋果一樣，移上去輕輕放大、投影加深，唔向上飄 */
    .bb-shelf__card:not(.bb-shelf__card--all):hover {
      transform: scale(1.01);
      box-shadow: 2px 4px 16px rgba(42, 35, 38, 0.16);
    }
    .bb-shelf__card:hover .bb-shelf__img img { transform: scale(1.05); }
  }
  .bb-answers a:active, .bb-routes__card:active, .bb-shelf__card:active, .bb-prevnext a:active { transform: scale(0.98); transition-duration: 120ms; }

  /* 5. 清單行、文字連結：底色同箭咀過渡順滑啲 */
  .bb-group a { transition: background-color 240ms var(--ease-apple); }
  .bb-group a::after, .bb-link::after, .bb-routes__path a::after, .bb-faq__more::after, .bb-link--prev::before {
    transition: transform 360ms var(--ease-out), color 240ms var(--ease-apple);
  }

  /* 6. 文章逐段：而家讀緊嗰段光啲，過渡慢啲 */
  .bb-story__steps li { transition: opacity 700ms var(--ease-apple); }
}

/* 7. 相片：所在卡片升起時，相片同時由近拉遠「落位」（用 scale，唔會同滑鼠移上去嘅放大打交） */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal].is-pending .bb-tiles__c img, [data-reveal].is-pending.bb-tiles__c img,
  .bb-contents__fig.is-pending img, .bb-casegrid > li.is-pending .bb-shelf__img img {
    scale: 1.16;
    transition: scale 1800ms var(--ease-apple);
    transition-delay: calc(var(--i, 0) * 110ms);
  }
  [data-reveal].is-pending.is-in .bb-tiles__c img, [data-reveal].is-pending.is-in.bb-tiles__c img,
  .bb-contents__fig.is-pending.is-in img, .bb-casegrid > li.is-pending.is-in .bb-shelf__img img {
    scale: 1;
  }

  /* 首頁目錄：學蘋果 iPhone Duo 頁面嘅折疊屏——書碌到畫面就自己打開，唔使跟住碌。
     合埋時書斜斜擺喺中間（見到書脊同厚度）→ 先轉正、移返原位 → 封面以書脊為軸揭開 → 右頁九章逐行浮現。只郁 transform／opacity */
  .bb-book.is-closed .bb-book__spread { transform: translateX(-25%) scale(0.8) rotateY(30deg) rotateX(-16deg); }
  .bb-book.is-closed .bb-book__cover { transform: translateZ(2px) rotateY(0deg); }
  .bb-book.is-closed .bb-book__floor { transform: translateZ(calc(var(--th) * -1)) translateX(24%) scaleX(0.56); }
  .bb-book.is-closed .bb-book__toc li, .bb-book.is-closed .bb-book__running { opacity: 0; }
  .bb-book.is-closed .bb-book__inside { visibility: hidden; }
  .bb-book.is-opening .bb-book__spread { transition: transform 1500ms cubic-bezier(0.6, 0, 0.25, 1) 150ms; }
  .bb-book.is-opening .bb-book__floor { transition: transform 1500ms cubic-bezier(0.6, 0, 0.25, 1) 150ms; }
  .bb-book.is-opening .bb-book__cover { transition: transform 2000ms cubic-bezier(0.6, 0, 0.25, 1) 650ms; }
  /* 封面翻過一半先見到內側，避免字疊喺封面下面 */
  .bb-book.is-opening .bb-book__inside { transition: visibility 0s linear 1550ms; }
  .bb-book.is-opening .bb-book__toc li, .bb-book.is-opening .bb-book__running {
    transition: opacity 600ms var(--ease-apple);
    transition-delay: calc(1900ms + var(--r, 0) * 70ms);
  }

  /* 「資料好亂？收窄成一隻戒指」：去到畫面時，方塊由左邊亂堆逐粒排隊、排成方陣；
     方塊去到邊區，嗰區寫實圖就升起淡入，該區方塊隨即淡出（只郁 transform／opacity） */
  .bb-how__stage.is-ready .bb-how__svg { visibility: visible; }
  .bb-how__stage.is-ready:not(.is-sorting) .m {
    transform: translate(var(--fx), var(--fy));
    fill: var(--f0);
  }
  .bb-how__stage.is-ready .bb-how__pic img { opacity: 0; translate: 0 10px; scale: 0.97; }
  .bb-how__stage.is-sorting .bb-how__pic img {
    opacity: 1;
    translate: 0 0;
    scale: 1;
    transition: opacity 700ms var(--ease-apple) var(--pd), translate 700ms var(--ease-apple) var(--pd), scale 700ms var(--ease-apple) var(--pd);
  }
  .bb-how__pic--learn { --pd: 250ms; }
  .bb-how__pic--consult { --pd: 1450ms; }
  .bb-how__pic--finished { --pd: 2100ms; }
  .bb-how__stage.is-sorting rect {
    opacity: 0;
    transition: opacity 500ms var(--ease-apple) var(--o, 450ms);
  }
  .bb-how__stage.is-sorting .m {
    transition: transform 1300ms var(--ease-apple) var(--d), fill 700ms var(--ease-apple) calc(var(--d) + 700ms), opacity 500ms var(--ease-apple) var(--o, 450ms);
  }
}

/* 9. 手機文章目錄：展開收起有高度過渡（新瀏覽器） */
@supports selector(::details-content) {
  @media (prefers-reduced-motion: no-preference) {
    .bb-tocfold { interpolate-size: allow-keywords; }
    .bb-tocfold::details-content {
      block-size: 0;
      overflow-y: clip;
      transition: block-size 460ms var(--ease-apple), content-visibility 460ms allow-discrete;
    }
    .bb-tocfold[open]::details-content { block-size: auto; }
  }
}

@keyframes bb-shelfin { from { opacity: 0; transform: translate3d(32px, 0, 0); } }

/* ---------- 遷移補充 ---------- */
/* 貨架按分類篩選時用 hidden 收起卡片 */
.bb-shelf__track > li[hidden] { display: none; }
/* 分段選擇器：script.js 定位好先顯示滑動底色 */
.bb-seg.is-ready .bb-seg__ind { opacity: 1; }
/* 作品相：影片播放時收起封面 */
.bb-gallery__poster[hidden] { display: none; }

/* =====================================================================
   珠寶精緻比例覆蓋層（2026-11-20 老闆拍板試行）
   目標：適配 14–16 吋高分屏筆記本（150%–175% 系統縮放，瀏覽器可視高度約 660–740px），
   收緊老站「蘋果發佈會海報」超大字號與留白，對齊國際高級珠寶站精緻克制感，
   做到首屏、作品貨架、閱讀路線、手寸工具、九章精裝書、三步流程各自一屏完整呈現。
   ===================================================================== */

/* 補回老站 @tailwind base 的全局 border-box（避免 height: 100% 卡片被 padding 撐高溢出捲動容器） */
*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  /* 字號收緊約 20%–35%：大標題 48px 封頂、段標題 34px 封頂、導語 18–19px、正文 16–16.8px */
  --step-caption: 0.8125rem;
  --step-small: 0.9375rem;
  --step-body: clamp(1rem, 0.97rem + 0.08vw, 1.05rem);
  --step-lead: clamp(1.0625rem, 1rem + 0.18vw, 1.1875rem);
  --step-head: clamp(1.5rem, 1.2rem + 1.15vw, 2.125rem);
  --step-display: clamp(1.875rem, 1.45rem + 1.8vw, 3rem);

  /* 版心收斂、段落上下留白由 124px 收緊至 52–64px */
  --max: 1240px;
  --gap-section: clamp(48px, 4.4vw, 64px);
}

@media (max-width: 760px) {
  :root {
    --step-caption: 0.84375rem;
    --gap-section: 48px;
  }
}

.bb-shelf__track { overflow-y: hidden; }

/* 1. 頁頭：更纖巧精緻 */
@media (min-width: 861px) {
  .bb-header { min-height: 48px; }
  .bb-header__logo { height: 26px; }
  .bb-btn { min-height: 40px; padding: 0 20px; font-size: 0.96875rem; }
  .bb-header__action { min-height: 30px; padding: 0 14px; font-size: var(--step-caption); }
}

/* 2. 首屏（刊頭拼貼 + 大標題 + 四項承諾 + 三條快答）：筆記本一屏完整睇晒 */
@media (min-width: 761px) {
  .bb-mosaic {
    height: clamp(200px, 28vh, 250px);
    height: clamp(200px, 28svh, 250px);
  }
  .bb-mosaic > :not(.span2c) img:not([style]) {
    object-position: 50% 32%;
  }
  .bb-hero {
    padding: clamp(26px, 3.6vh, 42px) var(--pad) clamp(28px, 4vh, 46px);
  }
  .bb-hero__stand { margin-top: 12px; max-width: 30em; }
  .bb-hero__actions { margin-top: 18px; gap: 10px 14px; }
  .bb-trust { margin-top: 14px; gap: 6px 20px; }
  .bb-answers {
    max-width: 1000px;
    gap: 14px;
    margin-top: clamp(20px, 2.8vh, 32px);
  }
  .bb-answers a { padding: 15px 18px; gap: 5px; }
}

/* 3. 各段標題與副標題間距收緊 */
.bb-secsub { margin-top: 8px; max-width: 32em; }

/* 4. 工坊作品貨架：卡片設為 328px 黃金甜點位，16 吋屏一排展示「4 張完整大圖 + 第 5 張露 1/3」，整段依然一屏睇晒 */
@media (min-width: 761px) {
  .bb-works {
    padding: clamp(42px, 4.2vw, 56px) 0 clamp(36px, 3.6vw, 48px);
  }
  .bb-works__head { margin-bottom: 18px; }
  .bb-shelf { --card-w: clamp(260px, 22.5vw, 328px); }
  .bb-shelf--inset { --card-w: clamp(220px, 19vw, 256px); }
  .bb-shelf__tabs { margin-bottom: 24px; }
  .bb-shelf__tabs--links { margin: 4px 0 24px; }
  .bb-seg > button, .bb-seg > a { min-height: 36px; padding: 0 15px; }
  .bb-shelf__track { overflow-y: hidden; margin-top: -12px; padding: 16px var(--pad) 26px; gap: 16px; }
  .bb-shelf__body { padding: 14px 16px 16px; gap: 3px; }
  .bb-shelf__paddle { width: 48px; height: 48px; }
  .bb-shelf__paddle svg { width: 20px; height: 20px; }
}

/* 5. 閱讀路線：三卡緊湊一屏 */
@media (min-width: 861px) {
  .bb-routes__list { margin-top: 28px; gap: 16px; }
  .bb-routes__card { padding: 22px 24px; }
  .bb-routes__card > p { margin-bottom: 14px; font-size: var(--step-small); }
}

/* 6. 手寸互動工具：左手右控制置中對齊，整段約 540px，筆記本一屏完整操作 */
@media (min-width: 861px) {
  .bb-tool {
    max-width: 1080px;
    margin-inline: auto;
    align-items: center;
    gap: clamp(24px, 3.6vw, 52px);
    padding: clamp(40px, 4.2vw, 56px) var(--pad);
  }
  .bb-tool__plate {
    max-width: 380px;
    width: 100%;
    justify-self: center;
    align-self: center;
  }
  .bb-tool__panel { gap: 22px; }
  .bb-tool__title { margin-bottom: 0.4em; }
  .bb-tool__desc { margin-top: 10px; font-size: var(--step-small); }
}

/* 7. 九章精裝立體書：等比同步收窄書闊與書高（單頁保持約 3:4 豎版真書比例，唔壓扁變形），同時令「標題 + 整本翻開藍皮書」一屏完整睇晒 */
@media (min-width: 961px) {
  .bb-contents {
    content-visibility: visible;
    padding: clamp(28px, 3.2vh, 42px) var(--pad) clamp(32px, 3.6vh, 46px);
  }
  .bb-book {
    --ov: 9px;
    --th: 30px;
    width: min(100% - 2 * var(--ov), 820px);
    margin: clamp(14px, 2vh, 20px) auto 0;
    padding: var(--ov) 0 calc(var(--ov) + 22px);
  }
  .bb-book__page {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: clamp(504px, 63vh, 536px);
    padding: 26px 24px 22px;
  }
  .bb-book__leaf {
    box-sizing: border-box;
    padding: 26px 28px 22px;
  }
  .bb-book__running { margin-bottom: 8px; font-size: 0.75rem; }
  .bb-book__toc {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  .bb-book__toc a {
    grid-template-columns: 3.3em auto minmax(0, 1fr) 0.8em;
    gap: 2px 10px;
    padding: 7px 2px;
  }
  .bb-book__toc a::after { grid-column: 4; }
  .bb-book__num { font-size: 0.78125rem; }
  .bb-book__title { font-size: 0.9375rem; }
  .bb-book__title .bb-tag { margin-left: 6px; padding: 0 6px; font-size: 0.75rem; }
  .bb-book__ans {
    grid-column: 3;
    justify-self: end;
    text-align: right;
    font-size: 0.78125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .bb-book__name { font-size: clamp(1.75rem, 1.1rem + 1.6vw, 2.5rem); }
  .bb-book__gem { width: 42%; }
  .bb-book__ititle { margin-top: 22px; font-size: clamp(1.45rem, 1rem + 1vw, 1.7rem); }
  .bb-book__isub { margin-top: 8px; font-size: 0.84375rem; }
  .bb-book__latest h3 { margin-bottom: 4px; padding-bottom: 6px; font-size: 0.875rem; }
  .bb-book__latest a { padding: 6.5px 0; gap: 1px; }
  .bb-book__latest a span { font-size: 0.875rem; line-height: 1.4; }
  .bb-book__latest a small { font-size: 0.75rem; }
  .bb-book__iimprint { margin-top: 14px; font-size: 0.75rem; }
  .bb-book__ribbon { height: calc(100% + 24px); }
  .bb-book__floor { bottom: calc(var(--ov) * -1 - 24px); height: 34px; }
}

/* 8. 點解揀鄒三山工坊：收緊橫幅高度與三張承諾卡內邊距 */
@media (min-width: 861px) {
  .bb-why__grid { margin-top: 26px; gap: 12px; }
  .bb-why__a {
    min-height: 280px;
    padding: 28px 32px;
    gap: 20px;
  }
  .bb-why__a h3 { font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem); }
  .bb-why__card { padding: 20px 22px; gap: 8px; }
  .bb-why__card p { line-height: 1.65; }
}

/* 9. 多變一訂造流程：縮小三圖舞台最大寬度，令標題 + 三張示意圖 + 步驟文字一屏完整睇完 */
@media (min-width: 761px) {
  .bb-how__layout { max-width: 860px; margin-top: 20px; }
  .bb-how__steps { margin-top: 14px; gap: 20px; }
  .bb-how__steps p { line-height: 1.6; }
  .bb-how__note { margin-top: 18px; }
}

/* 10. 常見問題、結尾 CTA、頁腳：收緊巨型字號與上下空白 */
.bb-faq__list { margin-top: 28px; }
.bb-faq__fold summary { padding: 14px 0; font-size: var(--step-body); }
.bb-faq__ans { padding-bottom: 18px; font-size: var(--step-small); }
.bb-close { padding: clamp(52px, 5.5vw, 76px) var(--pad); gap: 18px; }
.bb-close__foot { gap: 18px; }
.bb-footer { padding: clamp(48px, 5vw, 68px) var(--pad) 28px; }
.bb-footer__mark { font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.375rem); }
.bb-footer__row { margin-top: 36px; }
.bb-footer__legal { margin-top: 44px; }

/* 11. 內頁統一：作品詳情頁（.bb-case-page）保留原版 560px 大圖 + 64px 縮圖 + 32px 產品名 + 規格表行距，同時統一全站字號尺、麵包屑、按鈕、示例標籤、底部推薦卡與小標題字重 */
@media (min-width: 861px) {
  .bb-cases-page { max-width: var(--max); padding-top: clamp(24px, 2.6vw, 36px); }
  .bb-case-page { padding-top: clamp(24px, 2.6vw, 36px); }
  .bb-casegrid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr)); gap: 16px; }
  .bb-page { padding-top: clamp(24px, 2.8vw, 40px); column-gap: clamp(28px, 3.5vw, 56px); }
  .bb-crumbs { margin-bottom: 20px; }
  .bb-page .bb-page__title, .bb-cases-page .bb-page__title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); }
  .bb-page .bb-page__title--article { font-size: clamp(1.4375rem, 1.2rem + 0.95vw, 1.9375rem); }
  .bb-page .bb-page__lead, .bb-cases-page .bb-page__lead { margin-bottom: 1.5em; }
  .bb-prose { line-height: 1.8; }
}

.bb-case-body h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 1.1rem + 0.4vw, 1.375rem);
}
.bb-case-steps li strong { font-weight: 600; }
@media (min-width: 761px) {
  .bb-case-page .bb-gallery__stage .bb-shelf__paddle { width: 56px; height: 56px; }
  .bb-case-page .bb-gallery__stage .bb-shelf__paddle svg { width: 22px; height: 22px; }
}

/* 12. 分段膠囊選擇器修復：JS 就緒後底色全權交俾滑動膠囊 .bb-seg__ind，避免點擊懸停項時殘留 480ms 半透明白底 */
.bb-seg.is-ready > [aria-pressed="true"],
.bb-seg.is-ready > [aria-current="page"] {
  background: transparent;
  transition: color 360ms var(--ease-apple);
}
