/* 首頁產品分類選單(11-13 V13 Eric 從五版成品選 A:大框一台換一台 + 下面五顆膠囊可點;原本 menu-a.html,比較頁已清)。
   接在影片轉場(PRODUCT 產品分類 + 優良機器品質那句)後面,這塊只放五類(圖、名稱、說明、MORE),不重複標題。
   說明 = content.json 每類的 copy_list(條列 4 點,11-14 我們依舊站原文改寫,Eric 選條列版);洗碗機只放關蓋那張(Eric「不用兩個圖片切換」)。
   設計系統照 ct.css:單位 --ct-shr、版邊 --ct-x、灰線 --ct-rule、英文數字 Inter Tight(--ct-en)、MORE = .ct-pill、大框圓角 16。
   產生:build.py「產品分類選單」那段;程式 ct-prodmenu.js。 */

#top .ctm { position: relative; background: #fff; color: #000; }
#top .ctm h3 { margin: 0; }
#top .ctm-no { margin: 0; font-family: var(--ct-en) !important; font-size: max(calc(1.4 * var(--ct-shr)), 12px); font-weight: 500; letter-spacing: .12em; color: rgba(0, 0, 0, .55); }
#top .ctm-no b { font-weight: 500; color: var(--ct-red, #EA2326); }
#top .ctm-a__t { --nfs: max(calc(3.6 * var(--ct-shr)), 28px); }   /* 產品名字級(條列圓點對齊名稱字墨要用)*/
#top .ctm-name { font-size: var(--nfs, max(calc(3.6 * var(--ct-shr)), 28px)); font-weight: 700; line-height: 1.25; letter-spacing: .04em; }
/* 11-14 Eric「作成條列式 前面有項目圓點」→「用條列版 然後把紅色圓點 改黑色 不用縮排 圓點對齊標題左邊即可」:
   圓點 = 黑色 6px 正圓,左緣對齊產品名第一個字的字墨左緣(每個字自帶的左留白不同:--ink 是那個字的字墨離字框左緣幾 em,
   build.py PM_INK 用 canvas 量的,× 產品名字級 --nfs);字接在圓點後面空 .625em。垂直置中在第一行(行高 1.8 的一半) */
#top .ctm-list { margin: calc(1.6 * var(--ct-shr)) 0 0; padding: 0; list-style: none; max-width: 22em;
  font-size: max(calc(1.6 * var(--ct-shr)), 16px); line-height: 1.8; letter-spacing: .06em; color: rgba(0, 0, 0, .78); }
#top .ctm-list li { position: relative; padding-left: calc(var(--ink, 0) * var(--nfs) + 6px + .625em); }
#top .ctm-list li + li { margin-top: max(calc(.4 * var(--ct-shr)), 4px); }
#top .ctm-list li::before { content: ""; position: absolute; left: calc(var(--ink, 0) * var(--nfs)); top: .9em; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #000; }
#top .ctm .ct-pill { margin-top: calc(3.2 * var(--ct-shr)); }
#top .ctm img { display: block; }

/* 機器圖:放在一個大小固定的框裡(.ctm-a__fig 絕對定位,高度確定),高度照 --s 縮、寬度不超過框,底部置中對齊 */
/* 11-13 Eric「每台機器的圖片高度都要一樣」:五台用同一個高度 = 框高,但不超過「最寬那台(分子料理機連配件,寬:高 ≈ 1.01)放得下」的高度,
   所以五台一定一樣高(--s 只給洗碗機:關蓋圖頂上原本留了掀蓋的空白,放大 1.04 讓機身一樣高)。機器框設 container-type: size,用框的寬高(cqw/cqh)算 */
#top .ctm-a__fig { container-type: size; }
#top .ctm-m { position: relative; width: 100%; height: calc(min(100cqh, 100cqw / 1.01) * var(--s, 1)); display: flex; align-items: flex-end; justify-content: center; }
/* 11-14 V15 機器自己動起來:圖外面多包一層 .ctm-pic = 照片本身的大小(寬高比 --ar 照原圖,build.py 讀檔量),特效用照片的 % 座標疊上去 */
#top .ctm-pic { position: relative; flex: none; height: 100%; aspect-ratio: var(--ar, 1); max-width: 100%; }
#top .ctm-pic > img, #top .mo-wrap > img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
/* 11-14 滑鼠移到產品才動:五台疊在同一格,只讓目前那台的機器圖吃滑鼠(其他台透明但疊在上面,會擋住) */
#top .ctm-a__fig { pointer-events: none; }
#top .ctm-a__fig.is-on .ctm-pic { pointer-events: auto; }

/* ── 釘住一個大框,一台換一台,下面一排膠囊可以直接點(動法來自 GoodBytz)───────────────────────────── */
#top .ctm-a { height: calc(var(--n) * 100svh); }
#top .ctm-a__stick { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; box-sizing: border-box;
  padding: max(calc(9 * var(--ct-shr)), 72px) var(--ct-x) calc(3.2 * var(--ct-shr)); }
#top .ctm-a__panel { position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
  border-radius: 16px; background: #f3f3f3; overflow: hidden; }
/* 11-14 V14 Eric「卡片的padding值改一樣 但是還要再多一點點 有點太靠近卡片邊緣了」:原本上、左都寫 4.8 單位,但編號字的行框上方有空白,
   看得見的字上 62 / 左 55(1645)→ 上、左都量字墨 = 6 單位(1645 約 68px,+24%)。
   上:padding 扣掉編號字墨頂離行框頂那段(編號行高設 1,這段 = --no-k × 編號字級);名稱字墨頂 = 編號字墨頂 + 4.8 單位(原本的距離),
   名稱字墨頂離框頂 = --nm-k × 名稱字級。兩個係數是 Inter Tight / Noto Sans TC 實測 */
#top .ctm-a__text { --no-k: .14; --nm-k: .178; position: relative;
  padding: calc(6 * var(--ct-shr) - var(--no-k) * max(calc(1.4 * var(--ct-shr)), 12px)) calc(4.8 * var(--ct-shr)) calc(4.8 * var(--ct-shr)) calc(6 * var(--ct-shr)); }
@media (min-width: 768px) { #top .ctm-a .ctm-no { line-height: 1; } }
#top .ctm-a__t { position: absolute; left: calc(6 * var(--ct-shr)); right: calc(2.4 * var(--ct-shr)); top: calc(10.8 * var(--ct-shr) - var(--nm-k) * max(calc(3.6 * var(--ct-shr)), 28px));
  opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .7s var(--ct-ease, ease); pointer-events: none; }
#top .ctm-a__t.is-on { opacity: 1; transform: none; transition-delay: .18s; pointer-events: auto; }
#top .ctm-a__stage { position: relative; }
/* 11-14 V14 Eric「背景加一個很淡的中央廚房的圖庫圖片 然後左邊淡出」:圖鋪滿右邊舞台,灰階、淡,往左邊文字欄淡出(遮罩從透明漸到不透明)。
   三個旋鈕:--ctm-bg-op 淡度、--ctm-bg-f0 / --ctm-bg-f1 淡出從哪裡開始到哪裡全顯(舞台寬的 %);拉桿頁 tune-bg.html 可以調 */
#top .ctm-a__stage { --ctm-bg-op: .15; --ctm-bg-f0: 0%; --ctm-bg-f1: 48%; }   /* 11-14 Eric 拉桿定:淡度 .32 → .15、全顯 55% → 48% */
#top .ctm-a__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; pointer-events: none;
  opacity: 0; filter: grayscale(1); transition: opacity .8s;
  -webkit-mask-image: linear-gradient(90deg, transparent var(--ctm-bg-f0), #000 var(--ctm-bg-f1)); mask-image: linear-gradient(90deg, transparent var(--ctm-bg-f0), #000 var(--ctm-bg-f1)); }
/* 11-14 Eric「圖片 上面padding要一樣 以上面的padding為主」:機器上下留白一樣,照原本上面的 14%(原本下面只有 7%);
   機器在框裡上下置中(框比機器寬、機器高度被寬度限住時也一樣等距)。洗碗機那張圖頂上有掀蓋留白(--s 1.04),往上補回一半,機身才置中 */
#top .ctm-a__fig { position: absolute; inset: 14% 8% 14% 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(10%); transition: opacity .5s, transform .9s var(--ct-ease, ease); }
#top .ctm-a__fig .ctm-m { transform: translateY(calc((1 - var(--s, 1)) / (2 * var(--s, 1)) * 100%)); }
#top .ctm-a__fig.is-on { opacity: 1; transform: none; transition-delay: .1s; }
#top .ctm-a__fig.is-past { opacity: 0; transform: translateY(-8%); }
#top .ctm-a__tabs { display: flex; justify-content: center; gap: calc(1 * var(--ct-shr)); margin: calc(2.4 * var(--ct-shr)) 0 0; padding: 0; list-style: none; }
#top .ctm-a__tab { --h: max(calc(4.4 * var(--ct-shr)), 44px); height: var(--h); padding: 0 calc(var(--h) / 2); border: var(--ct-rule); border-radius: 999px;
  background: transparent; color: rgba(0, 0, 0, .55); font: inherit; font-size: max(calc(1.5 * var(--ct-shr)), 14px); font-weight: 500; letter-spacing: .06em;
  cursor: pointer; transition: background-color .3s, border-color .3s, color .3s; white-space: nowrap; }
#top .ctm-a__tab:hover { color: #000; border-color: #000; }
#top .ctm-a__tab.is-on { background: #000; border-color: #000; color: #fff; }
/* 11-14 後面三段拿掉後,選單直接接最新消息(白接白):膠囊鈕底 → NEWS 字墨頂 = 全站區塊間距 --ct-gap。
   = 選單底內距 3.2 單位 + 最新消息(11-14 起是新的 .ct-nw)上內距 + NEWS 字墨上方空白(Inter Tight 行高 1.43em → .371em);原本 1440 寬差 3(123 對 120)*/
#top .ctm-a ~ .ct-nw { padding-top: calc(var(--ct-gap) - 3.2 * var(--ct-shr) - .371 * max(calc(1.4 * var(--ct-shr)), 12px)); }

@media (max-width: 767px) {
  /* 中央廚房背景:手機文字在機器下面 → 改成往下淡出(接文字那邊),數字同一組 */
  #top .ctm-a__bg { -webkit-mask-image: linear-gradient(0deg, transparent var(--ctm-bg-f0), #000 var(--ctm-bg-f1)); mask-image: linear-gradient(0deg, transparent var(--ctm-bg-f0), #000 var(--ctm-bg-f1)); }
  #top .ctm-a__stick { padding: 70px var(--ct-x) 68px; }   /* 手機頁首 62、底部「立即來電」條 56 → 上下讓開 */
  #top .ctm-a__panel { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  /* 11-13 V13 說明換成舊站正式原文後變長(炒菜機器人 375 寬 5 行),原本文字區固定 236 高、說明絕對定位 → 會被框切掉,編號也跟名稱疊在一起。
     改成五段疊在同一格(grid 同一個位置):文字區高度 = 最長那段,不會切、切換時也不跳;編號在第一列 */
  #top .ctm-a__text { order: 2; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; row-gap: 8px; padding: 0 20px 20px; }
  #top .ctm-a__t { position: relative; left: auto; right: auto; top: auto; grid-area: 2 / 1; }
  #top .ctm-a__t { --nfs: max(calc(2.6 * var(--ct-shr)), 24px); }
  #top .ctm-a .ct-pill { margin-top: 16px; }
  #top .ctm-a__fig { inset: 10% 0; }   /* 上下一樣,照原本上面的 10% */
  #top .ctm-a .ctm-list { margin-top: 8px; }
  /* 11-14 後面三段拿掉後,選單直接接最新消息(白接白):選單底為了讓開「立即來電」條留的 68 + 最新消息(11-14 起是新的 .ct-nw)上內距 136 → 膠囊鈕到 NEWS 空 209,
     全站區塊間距手機只有 --ct-gap(57)→ 最新消息往上疊 68(疊在選單底的空白上),上內距改成 --ct-gap 減 NEWS 字墨上方的空白 5 */
  #top .ctm-a ~ .ct-nw { margin-top: -68px; }   /* 中間夾著藏起來的承泰食堂 p-promise,用 ~ 不用 + */
  #top .ctm-a ~ .ct-nw { padding-top: calc(var(--ct-gap) - 5px); }
  #top .ctm-a__tabs { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 10px calc(-1 * var(--ct-x)) 0; padding: 0 var(--ct-x); }
  #top .ctm-a__tab { --h: 40px; font-size: 14px; }
  #top .ctm-a__tab { flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  #top .ctm *, #top .ctm *::before, #top .ctm *::after { transition: none !important; animation: none !important; }
}

/* 11-14 V14 動效加強版:背景每台一張(影片或廚房照),只有目前那台的顯示,換台時交疊淡換 */
#top .ctm-a__bg.is-on { opacity: var(--ctm-bg-op); }

/* ── 11-14 V15 動效加強版・機器自己動起來(提案頁第 1 版)──────────────────────────────────────────────
   ct-prodmenu.js 在 .ctm-a__fig 加 .is-act(動作做到底)+ .is-mo(蒸氣動畫在跑):有滑鼠的電腦 = 滑鼠在機器圖上才做、移開就收回
   (11-14 Eric「產品卡片改成hover的時候出現動效」→「hover改成 hover到產品才有動效」);手機平板 = 大框釘住、停在那台 .7 秒後自己做。換台、整塊捲出畫面就拿掉(捲回來重播)。
   收回:螢幕淡回黑、蓋子反向蓋回去、蒸氣整層先淡掉(.6 秒)才停動畫。等使用者時蒸氣慢慢一直飄,不停成靜止圖。
   座標 = 原圖像素 ÷ 原圖寬高(build.py「機器自己動起來」那段有量法)。系統設「減少動態」:上面那條 reduced-motion 把動畫都關掉,直接停在最後的樣子(螢幕亮、蓋子開、沒有蒸氣)。 */
#top .mo-scr { position: absolute; display: block; opacity: 1; pointer-events: none; transition: opacity .5s; }
#top .ctm-a__fig.is-act .mo-scr { opacity: 0; animation: mo-on .7s ease-out; }
@keyframes mo-on { 0% { opacity: 1; } 28% { opacity: .2; } 40% { opacity: .7; } 100% { opacity: 0; } }
/* 蒸氣:同一張透明蒸氣圖(img/fx/steam.webp),幾片錯開時間往上飄、變大、淡掉;--i = 第幾片 */
#top .mo-st { position: absolute; display: block; pointer-events: none; opacity: 0; transition: opacity .6s; }
#top .ctm-a__fig.is-act .mo-st { opacity: 1; transition: opacity .2s; }
#top .mo-st > img { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; opacity: 0; transform-origin: 50% 100%; will-change: transform, opacity;
  -webkit-mask-image: linear-gradient(to top, transparent 0, #000 28%, #000 42%, transparent 92%); mask-image: linear-gradient(to top, transparent 0, #000 28%, #000 42%, transparent 92%); }
/* 上下兩端都淡掉:上端飄出大框時不會被框邊硬切;下端 = 蒸氣圖(steam.webp)最下面一列本來就是滿的,升起來會露出一條直直的切口
   (11-14 Eric 熱鍵 16:44「蒸汽圖片漏餡了 升起來的蒸汽圖片 最下方被截斷了」,框在炒菜機器人鍋口)→ 下面 28% 從透明淡進來,像從鍋裡冒出來 */
#top .mo-st > img:nth-child(2) { --dx: -12%; }
#top .mo-st > img:nth-child(3) { --dx: 10%; }
@keyframes mo-rise { 0% { opacity: 0; transform: translate3d(0, 12%, 0) scale(.7); } 30% { opacity: var(--op, .8); }
  100% { opacity: 0; transform: translate3d(var(--dx, 4%), -42%, 0) scale(1.3); } }

/* 萬能蒸烤箱(oven-icombi101 915×1108):面板螢幕(x 84–234、y 173–418)先黑著 → 閃一下亮起;
   玻璃門裡(x 444–795、y 44–860)起霧慢慢翻滾(門頂縫往上飄的蒸氣 11-14 Eric 熱鍵「這邊的蒸汽刪掉」→ 拿掉) */
#top [data-mo="oven"] .mo-scr { left: 9.18%; top: 15.61%; width: 16.39%; height: 22.11%; border-radius: 3px; background: linear-gradient(160deg, #10161d, #040608 70%); }
#top [data-mo="oven"] .mo-fog { left: 48.6%; top: 3.97%; width: 38.4%; height: 73.65%; overflow: hidden; border-radius: 2px; }
/* 11-14 逐格看:玻璃裡是亮的不鏽鋼,白霧只到 .6 幾乎看不到 → 加濃到 .95,並給一點灰陰影(淺底上的蒸氣要靠陰影才有體積) */
#top [data-mo="oven"] .mo-fog > img { left: -30%; width: 160%; bottom: -20%; --op: .95; filter: drop-shadow(0 0 10px rgba(0, 0, 0, .22)); }
#top .ctm-a__fig.is-mo [data-mo="oven"] .mo-fog > img { animation: mo-fog 6s calc(.3s + var(--i) * 3s) ease-in-out infinite; }
@keyframes mo-fog { 0% { opacity: 0; transform: translate3d(0, 30%, 0) scale(1); } 18% { opacity: var(--op); } 100% { opacity: 0; transform: translate3d(0, -30%, 0) scale(1.15); } }

/* 智能炒菜機器人(wok-robot-hd 678×1200):側邊螢幕(x 538–633、y 265–395)黑著 → 亮起 BOT KIT;鍋口(y 約 200)冒熱氣,往上穿過黑色投料架 */
/* 11-14 Eric 熱鍵 16:57「這個遮罩沒量對 他是斜的畫面」:螢幕在照片裡是往右下斜的平行四邊形,原本正長方形蓋到右上、左下的灰框 →
   四個角放大 5 倍逐格量(原圖像素)左上 (538, 265)、右上 (617.6, 265)、右下 (632.6, 394.6)、左下 (551.2, 394.6),框 = 外接長方形,clip-path 切成斜的 */
#top [data-mo="wok"] .mo-scr { left: 79.351%; top: 22.083%; width: 13.953%; height: 10.8%; background: #000;
  clip-path: polygon(0 0, 84.14% 0, 100% 100%, 13.95% 100%); }
#top [data-mo="wok"] .mo-heat { left: 26%; width: 50%; bottom: 82.5%; height: 40%; }
#top [data-mo="wok"] .mo-heat > img { --op: .9; }
#top .ctm-a__fig.is-mo [data-mo="wok"] .mo-heat > img { animation: mo-rise 3.2s calc(.6s + var(--i) * 1.05s) ease-out infinite; }

/* 多功能分子料理機(pacojet4 634×629):11-14 Eric「分子料理機 是不是螢幕也可以做螢幕亮起來的動效」→ 只做螢幕亮起。
   螢幕亮區(藍底)略往右下斜,四個角放大 3 倍量 + 顏色逐列量(原圖像素):左上 (85.5, 40)、右上 (271, 43)、右下 (283, 134)、左下 (96, 131);
   關機時邊上透出一條細藍邊 → 四邊各往外擴 1px(外框本來就是黑的,看不出來):左上 (84.5, 39)、右上 (272, 42)、右下 (284, 135)、左下 (95, 132) */
#top [data-mo="paco"] .mo-scr { left: 13.328%; top: 6.2%; width: 31.467%; height: 15.262%; background: #050505;
  clip-path: polygon(0 0, 93.98% 3.125%, 100% 100%, 5.26% 96.875%); }

/* 商用洗碗機(關蓋照 509×1057 = .ctm-pic 的框;開蓋照 509×1200 底對齊、往右 6px → 往上多 13.529%、往右 1.179%)。
   四層:開蓋機身 mo-ob(最底)、關蓋機身 mo-cb、開蓋蓋子 mo-oh、關蓋蓋子 mo-ch(最上),clip-path 沿蓋子下緣切開。
   掀蓋:關蓋的蓋子(頂 38、底 505)以左下角為基準縮成開蓋蓋子的大小(高 424/467 = .908、寬 452/466 = .970)往上移 224px(−21.19%)同時淡出;
   開蓋的蓋子反過來從關蓋位置(下移 224px = 18.667%、放大 1.1014 / 1.031)移到原位 → 頭尾兩張都是真的照片。
   兩張的把手角度不同,交接慢了會看到兩支把手疊影(11-14 逐格看到)→ 交接只用 .12 秒、放在上升到約 3/4(開蓋 .5 秒淡入、關蓋 .6 秒淡出,開蓋在下面先蓋滿) */
#top [data-mo="dish"] .mo-ob, #top [data-mo="dish"] .mo-oh { left: 1.179%; top: -13.529%; height: 113.529%; }
#top [data-mo="dish"] .mo-ob { clip-path: polygon(0 25%, 5.3% 25%, 5.3% 35.33%, 100% 35.33%, 100% 100%, 0 100%); opacity: 0; transition: opacity .2s .8s; }
#top [data-mo="dish"] .mo-oh { clip-path: polygon(0 0, 100% 0, 100% 35.33%, 5.3% 35.33%, 5.3% 25%, 0 25%); opacity: 0;
  transform-origin: .589% 35.33%; transform: translate(-.786%, 18.667%) scale(1.031, 1.1014); transition: transform .9s cubic-bezier(.6, 0, .3, 1), opacity .12s .35s; }
#top [data-mo="dish"] .mo-cb { clip-path: polygon(0 43.24%, 7.86% 44.28%, 34.38% 48.82%, 92.93% 46.17%, 100% 45.98%, 100% 100%, 0 100%); transition: opacity .3s .1s; }
#top [data-mo="dish"] .mo-ch { clip-path: polygon(0 0, 100% 0, 100% 45.98%, 92.93% 46.17%, 34.38% 48.82%, 7.86% 44.28%, 0 43.24%); transform-origin: .98% 47.78%;
  transition: transform .9s cubic-bezier(.6, 0, .3, 1), opacity .12s .25s; }
/* 蓋回去(移開滑鼠)= 掀蓋倒過來:關蓋的蓋子 .25 秒先在上面淡入蓋滿、開蓋的蓋子 .35 秒才在下面淡出,關蓋機身 .1 秒先回來、開蓋機身最後(.8 秒)才收 */
#top .ctm-a__fig.is-act [data-mo="dish"] .mo-ob { opacity: 1; transition: opacity .2s; }
#top .ctm-a__fig.is-act [data-mo="dish"] .mo-cb { opacity: 0; transition: opacity .3s .45s; }
#top .ctm-a__fig.is-act [data-mo="dish"] .mo-oh { opacity: 1; transform: none; transition: transform .9s cubic-bezier(.6, 0, .3, 1), opacity .12s .5s; }
#top .ctm-a__fig.is-act [data-mo="dish"] .mo-ch { opacity: 0; transform: translate(.786%, -21.19%) scale(.97, .908); transition: transform .9s cubic-bezier(.6, 0, .3, 1), opacity .12s .6s; }
/* 開蓋後整台比關蓋高 13.5%,蓋頂會頂到大框上緣(11-14 量:1440 只剩 6px、手機 375/390 被切 8–17px)
   → 掀蓋同時整台以腳為基準縮到 .9(手機 .86),像鏡頭往後退一步;關蓋時照舊跟其他四台同高 */
/* 縮放放在裡面一層 .mo-wrap(.ctm-pic 是滑鼠判定範圍,不能跟著縮,否則游標在機器邊緣會「縮小 → 變成在外面 → 收回 → 又碰到」來回閃) */
#top [data-mo="dish"] .mo-wrap { position: absolute; inset: 0; transform-origin: 50% 100%; transition: transform .9s cubic-bezier(.6, 0, .3, 1); }
#top .ctm-a__fig.is-act [data-mo="dish"] .mo-wrap { transform: scale(.9); }
@media (max-width: 767px) { #top .ctm-a__fig.is-act [data-mo="dish"] .mo-wrap { transform: scale(.86); } }
/* 開蓋那刻從洗槽(關蓋照 y 281–507)冒一大陣蒸氣,之後架子上一直有細蒸氣往上飄 */
#top [data-mo="dish"] .mo-burst { left: -25%; width: 150%; bottom: 52%; height: 60%; }
#top .ctm-a__fig.is-mo [data-mo="dish"] .mo-burst > img { animation: mo-burst 1.9s .7s ease-out both; }
@keyframes mo-burst { 0% { opacity: 0; transform: translate3d(0, 25%, 0) scale(.55); } 22% { opacity: .95; } 100% { opacity: 0; transform: translate3d(0, -30%, 0) scale(1.15); } }
#top [data-mo="dish"] .mo-rack { left: 8%; width: 80%; bottom: 54%; height: 50%; }
#top [data-mo="dish"] .mo-rack > img { --op: .7; filter: drop-shadow(0 0 8px rgba(0, 0, 0, .15)); }
#top .ctm-a__fig.is-mo [data-mo="dish"] .mo-rack > img { animation: mo-rise 4.6s calc(1.8s + var(--i) * 1.5s) ease-out infinite; }

/* ── 11-14 V15 條列指示線:做過又拔掉(Eric「不是很好看 拔掉好了」,樣式備份 ct-prodmenu.css.bak-20261114-leader-done)──

/* ── 11-14 V15 產品熱點(Eric「做成 產品上面有那種 脈衝紅點」「熱點應該一直在產品上面」「應該要寫產品特色吧」)──────────
   機器圖上每個有部位的條列一顆紅點(button.ctm-hs,build.py _pts;--hx/--hy = 部位 %),一直在產品上:
   · 那台換上來時紅點依序彈出,之後外圈一圈圈往外擴散淡掉(錯開時間,不同時閃)= 等你來碰
   · 滑鼠移上機器、機器開始動(.is-act)→ 紅點停止擴散、只剩實心點,主角交給機器,也比較好對準
   · 滑到紅點(手機點一下、鍵盤 Tab)→ 旁邊跳出那個部位的特色(客戶文案或原廠官網,跟左邊條列不同句;Eric「應該要寫產品特色吧」
     「去原本生產這些產品的官網上找有沒有現有資料可以抄」)
   · 紅點在蒸氣上面一層;洗碗機蓋子上的兩顆開蓋時跟著蓋子走(--hx2/--hy2 × 整台縮放 --hs-sc,跟掀蓋同一條曲線)
   顏色:品牌紅小點 8px + 外描 1px 白邊(11-14 V17 Eric「熱點改成紅圓圈外描細細的白框」,拉桿定 1px,蓋過 V15 的不加白框);字卡樣式見下面「字卡」
   脈衝(11-14 V17 Eric「脈衝在產品深色的地方看不太清楚」):量過 18 顆底下的照片,5 顆在很深的部位(亮度 24–64/255)、6 顆中灰,
   紅色淡掉的擴散圈在深色上看不到 → 擴散圈改成跟紅點同一個結構:紅色填色 + 白色細邊一起往外擴(淺底靠紅、深底靠白邊)。
   擴散圈用寬高放大、不用 scale,白邊才會一直細細的不跟著變粗。旋鈕 --hs-*(下面這行),拉桿頁 tune-hs.html(四種做法 + 細調) */
#top .ctm-hs { --hs-ring: 1px; --hs-pf: 1; --hs-pbw: 0px; --hs-prw: 1px; --hs-pg: 0px; --hs-pwo: 1; --hs-po: .9; --hs-pr: 30px; --hs-pd: 2.4s; --hs-hv: 1.2;   /* 11-14 V17 Eric 拉桿定:紅填 + 白細邊,白邊 1px;--hs-hv = 滑過放大倍數 */
  position: absolute; left: var(--hx); top: var(--hy); z-index: 4; width: 32px; height: 32px; margin: -16px 0 0 -16px; padding: 0;
  border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; font: inherit;
  transition: left .9s cubic-bezier(.6, 0, .3, 1), top .9s cubic-bezier(.6, 0, .3, 1); }
#top .ctm-hs:focus { outline: none; }
#top .ctm-hs:focus-visible::after { box-shadow: 0 0 0 var(--hs-ring) #fff, 0 0 0 calc(var(--hs-ring) + 2px) #000; }
#top .ctm-hs::before, #top .ctm-hs::after { content: ""; position: absolute; left: 50%; top: 50%; box-sizing: border-box; width: 8px; height: 8px; margin: -4px 0 0 -4px;
  border-radius: 50%; }
#top .ctm-hs::after { background: var(--ct-red, #EA2326); box-shadow: 0 0 0 var(--hs-ring) #fff; transform: scale(0); transition: transform .2s; }
#top .ctm-hs::before { background: rgb(234 35 38 / var(--hs-pf)); border: var(--hs-pbw) solid var(--ct-red, #EA2326);
  box-shadow: 0 0 var(--hs-pg) var(--hs-prw) rgb(255 255 255 / var(--hs-pwo)); }
#top .ctm-a__fig.is-on .ctm-hs::after { transform: scale(1); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1) calc(.45s + var(--i) * .08s); }
/* 滑過放大:11-14 V17 Eric「hover的時候 圓點便太大了 縮小一點」→ 1.5 倍(8 → 12px)改 1.2 倍(8 → 9.6px,滑過時小兩成),拉桿頁可調 */
#top .ctm-a__fig.is-on .ctm-hs:hover::after, #top .ctm-a__fig.is-on .ctm-hs.is-pt::after { transform: scale(var(--hs-hv)); transition-delay: 0s; }
#top .ctm-hs::before { opacity: 0; }
#top .ctm-a__fig.is-on .ctm-hs::before { animation: hs-pulse var(--hs-pd) calc(.9s + var(--i) * .5s) ease-out infinite; }
#top .ctm-a__fig.is-act .ctm-hs::before { animation: none; opacity: 0; }
/* 11-14 Eric「把色點的脈衝透明度降低 讓脈衝看起來明顯一點」:擴散圈起始不透明度 .9、前段保持較濃再淡掉(V17 改成寬高放大,直徑 8 → 30px ≈ 原本 scale 3.6) */
@keyframes hs-pulse { 0% { width: 8px; height: 8px; margin: -4px 0 0 -4px; opacity: var(--hs-po); } 45% { opacity: calc(var(--hs-po) * .5); }
  100% { width: var(--hs-pr); height: var(--hs-pr); margin: calc(var(--hs-pr) / -2) 0 0 calc(var(--hs-pr) / -2); opacity: 0; } }
/* 字卡(11-14 Eric「字卡不要用黑底的用淺底 熱點變小一點 然後字卡不要檔到產品 字卡文字可以用16px」):
   白底 + 灰線框、圓角 8;小標 16px 700 黑、特色 16px 黑 78%;小標前不加紅點(11-14 V17 Eric「字卡不要紅色bullet」)。
   位置由程式算(left/top 是相對熱點的 px),一律不蓋機器、不碰左邊說明字(11-14 V17 Eric「字卡不要釘在左下角…要在熱點附近」):
   ①桌機:機器左右各試一個位置(跟熱點同高、貼著機器;左邊的空白從說明字實際右緣算,不從文字欄邊界算),
     寬度 ≥ 160 且放得下這張最長的不可斷字的裡面,挑離熱點最近的;窄螢幕兩邊都塞不下 → 機器左邊、說明字下面;
   ②(上面都放不下才用,目前量不到)左邊文字欄下方;③手機(機器在文字上面)→ 放大框最下面(暫時蓋住說明字,不蓋機器)。
   換行(11-14 V17 Eric「有的字卡內容跑版了」):小標、特色都只在 build.py 標的 <wbr>(詞和詞之間)、空格、標點後換行,
   數字和單位用不換行空格黏住;每行長度平均分配(balance),不會剩兩個字自己一行。 */
#top .ctm-hs__t { position: absolute; left: 0; top: 0; z-index: 1; display: block; box-sizing: border-box; width: 18em; max-width: none;
  padding: 14px 16px; border: var(--ct-rule); border-radius: 8px; background: #fff; color: rgba(0, 0, 0, .78);
  font-size: 16px; font-weight: 400; line-height: 1.6; letter-spacing: .04em; white-space: normal; text-align: left; cursor: default;
  opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .15s, transform .2s; }
#top .ctm-hs__t b { display: block; margin-bottom: 4px; color: #000; font-weight: 700; letter-spacing: .06em; }
#top .ctm-hs__t b > span { font-weight: 700; }
#top .ctm-hs__t, #top .ctm-hs__t b { word-break: keep-all; overflow-wrap: break-word; text-wrap: balance; }
/* 字卡要疊在文字上面:手機文字欄 order 2 排在機器後面、畫的順序也在後面,會壓住字卡(11-14 測到)→ 機器那層固定比文字高一層 */
#top .ctm-a__text { z-index: 1; }
#top .ctm-a__stage { z-index: 2; }
#top .ctm-hs.is-pt .ctm-hs__t { opacity: 1; transform: none; transition: opacity .2s, transform .3s cubic-bezier(.2, .8, .2, 1); }
#top .ctm-hs.is-pt { z-index: 5; }
/* 洗碗機開蓋時,蓋子上的紅點移到開蓋位置(開蓋座標 × 整台縮放,以腳為基準) */
#top [data-mo="dish"] { --hs-sc: .9; }
@media (max-width: 767px) { #top [data-mo="dish"] { --hs-sc: .86; } }
#top .ctm-a__fig.is-act [data-mo="dish"] .ctm-hs[data-open] { left: calc(50% + (var(--hx2) - 50%) * var(--hs-sc)); top: calc(100% - (100% - var(--hy2)) * var(--hs-sc)); }
@media (max-width: 767px) { #top .ctm-hs { width: 40px; height: 40px; margin: -20px 0 0 -20px; } #top .ctm-hs__t { padding: 12px 14px; } }
