/*
 排在 find.css 後面。規則來自疼痛問題區定下的卡片系統(設計系統.md 第 7 節)
 ① 卡片不加框:只用底色分;只有深色底(綠/深綠)上的卡片才加白框(治療方式綠帶三張卡、門診狀態卡裡的膠囊照舊)
 ② 卡片比所在底色跳一階:米色底上 = 白卡;白卡裡面的小卡 = 淡綠 #E8EEEA
 ③ 狀態用填色分:切換鈕/頁籤 = 沒選 #D8D2C6 底+#505150 字、選中 #3B5348 白字;「現在」這種進行中狀態 = 客戶綠 #577A6E 白字
 ④ 提醒卡:比所在底色跳一階 + 磚紅標題前加圖示(緊急就醫才用淺粉紅)
 ⑤ 線只有兩種:淺底 #CECAC1、深底白 20 趴
 盤點(10-19,所有頁籤與收合打開量):有框的卡片 3 種(常見問題、週班表日卡、休診格)、切換鈕 2 組(常見問題分類、醫師篩選)白底綠框、
 白卡裡的小卡用米色(評論卡、班表時段)、公告用米黃 #FBF3E4、深底線白 16 趴、品牌故事線深綠*/

/* ── ③ 切換鈕:常見問題分類、醫師篩選(跟疼痛問題頁籤同一套顏色,形狀維持膠囊)── */
html body .o-center :is(.faq-tabs .tab, .df) { border: 0; background: #D8D2C6; color: #505150; transition: background-color .2s, color .2s; }
html body .o-center :is(.faq-tabs .tab, .df):hover { background: #D8D2C6; color: var(--c-green-dk); }
html body .o-center :is(.faq-tabs .tab.on, .df.on), html body .o-center :is(.faq-tabs .tab.on, .df.on):hover { background: var(--c-green); color: #fff; }   
html body .o-center .faq-tabs .tab small { color: #96503C; }
html body .o-center .faq-tabs .tab.on small { color: #EAE5DA; }
html body .o-center .df.on .d { box-shadow: 0 0 0 2px #fff; }   /*吳的圓圈要有白框,要不然看不到」(選中鈕改客戶綠後,吳醫師的客戶綠圓圈融在一起);每位醫師選中時都加*/

/* ── ① 卡片不加框:常見問題、週班表的日卡 ── */
html body .o-center :is(.faq-i, .faq-i:hover, .faq-i[open], .day) { border-color: transparent; box-shadow: none; }

/* ── ② 白卡裡的小卡改淡綠:評論卡(在白色評論框裡)、班表時段(在白色日卡裡)── */
html body .o-center .rv-c figure { background: #E8EEEA; }
html body .o-center .day .sl:not(.sl-off) { background: #E8EEEA; }
/* 今天那一天:整張日卡淡綠、裡面的時段白(反過來),不加框 */
html body .o-center .day.today { background: #E8EEEA; border-color: transparent; box-shadow: none; }
html body .o-center .day.today .sl:not(.sl-off) { background: #fff; }
/* ③「現在」這一診(進行中):客戶綠、白字;裡面的「看診中」小標反白 */
html body .o-center .sl.now, html body .o-center .day.today .sl.now { background: var(--c-green); box-shadow: none; }
html body .o-center .sl.now :is(.sl-t, .sl-t small, .sl-d, .sl-n, .sl-n small, .sub-tag) { color: #fff; }
html body .o-center .sl.now .now-tag { background: #fff; color: var(--c-green-dk); }
/* 休診、停診的格子:不加虛線框,只留淡字 */
html body .o-center .sl-off { border: 0; background: transparent; }

/* ── ④ 門診公告:米黃 → 白卡(在米色底上跳一階)+ 磚紅「公告」前加廣播圖示
   (Font Awesome Free 6.5.2 solid/bullhorn,CC BY 4.0 by @fontawesome - https://fontawesome.com/license/free)── */
html body .o-center .hh-ann { padding: var(--s-5); border-radius: var(--r-card); background: #fff; color: #505150; font-size: var(--t-body); }
html body .o-center .hh-ann b { display: inline-flex; align-items: center; gap: var(--s-2); margin-right: var(--s-3); font-weight: 500; color: #96503C; }
html body .o-center .hh-ann b::before { content: ""; flex: none; width: 1em; height: 1em; background: currentColor; -webkit-mask: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"%3E%3Cpath d="M480 32c0-12.9-7.8-24.6-19.8-29.6s-25.7-2.2-34.9 6.9L381.7 53c-48 48-113.1 75-181 75H192 160 64c-35.3 0-64 28.7-64 64v96c0 35.3 28.7 64 64 64l0 128c0 17.7 14.3 32 32 32h64c17.7 0 32-14.3 32-32V352l8.7 0c67.9 0 133 27 181 75l43.6 43.6c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6V300.4c18.6-8.8 32-32.5 32-60.4s-13.4-51.6-32-60.4V32zm-64 76.7V240 371.3C357.2 317.8 280.5 288 200.7 288H192V192h8.7c79.8 0 156.5-29.8 215.3-83.3z"/%3E%3C/svg%3E') center / contain no-repeat; mask: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"%3E%3Cpath d="M480 32c0-12.9-7.8-24.6-19.8-29.6s-25.7-2.2-34.9 6.9L381.7 53c-48 48-113.1 75-181 75H192 160 64c-35.3 0-64 28.7-64 64v96c0 35.3 28.7 64 64 64l0 128c0 17.7 14.3 32 32 32h64c17.7 0 32-14.3 32-32V352l8.7 0c67.9 0 133 27 181 75l43.6 43.6c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6V300.4c18.6-8.8 32-32.5 32-60.4s-13.4-51.6-32-60.4V32zm-64 76.7V240 371.3C357.2 317.8 280.5 288 200.7 288H192V192h8.7c79.8 0 156.5-29.8 215.3-83.3z"/%3E%3C/svg%3E') center / contain no-repeat; }

/* ── ⑤ 線:交通區(綠底)資訊列的分隔線白 16 → 20 趴;品牌故事右欄頂線深綠 → 淺底細線 ── */
html body .o-center #visit .facts > div { border-top-color: var(--ln-dk); }
html body .o-center .rj-side { border-top-color: var(--ln); }

/* ── 圓形按鈕不加框——評論左右鈕、空間輪播暫停鈕
 白底綠框 → 跟切換鈕同一套:#D8D2C6 底、深綠圖示;滑過客戶綠白圖示*/
html body .o-center :is(.rv-prev, .rv-next, .s3g-pause) { border: 0; background: #D8D2C6; color: var(--c-green-dk); box-shadow: none; transition: background-color .2s, color .2s; }
html body .o-center :is(.rv-prev, .rv-next, .s3g-pause):hover:not(:disabled) { background: var(--c-green); color: #fff; }

/* ── 綠色帶「How We Care」三張卡——原本半透明白框卡 → 客戶深綠 #3B5348 實心卡、不加框
 進畫面時的亮起效果只留透明度與英文小字變金,底色不再變;滑過稍微提亮(深綠加 8% 白)。左邊 JJJ 標誌上下對齊文字見 opt2-band.js ──*/
html body .o-center .sl-3j a, html body .o-center .sl-3j li.lit a { border: 0; background: var(--c-green-dk); }   /* 框寬也拿掉(只設透明會多 1px,字會比頁籤卡偏 1px) */
/* (滑過見檔尾「滑過一律淡綠」) */
/* JJJ 標誌跟右邊文字的間距 40 → 56*/
@media (min-width: 768px) { html body .o-center .band .band-top { column-gap: var(--s-8); } }

/* ── 卡片滑過統一──
 淺色底上「可以點、或滑過會有反應」的卡片與列 → 滑過 = 淡綠 #E8EEEA(實色,不半透明)
 疼痛問題三個頁籤的項目列、常見問題每一題、醫療團隊三張醫師卡(滑到會換照片);選中的項目維持客戶綠。
 深色底上的卡片(綠帶三張)滑過 = 深綠提亮(淡綠在深綠上太跳、白字也看不到)。不能點的卡片不做滑過效果*/
html body #find :is(.fw-t, .lf-c):not([aria-expanded="true"]):hover { background: #E8EEEA; }
html body .o-center .faq-i > summary { transition: background-color .2s; border-radius: inherit; }
html body .o-center .faq-i:not([open]):hover { background: #E8EEEA; }
html body .o-center .sl-docs3 li { transition: background-color .2s; }
@media (hover: hover) and (min-width: 768px) { html body .o-center .sl-docs3 li:is(:hover, .on) { background: #E8EEEA; } }

/* ── 六張卡同一套文字樣式──
 疼痛問題三張頁籤卡 + 綠帶三張卡,結構都是「英文小標 → 中文標題 → 一句說明」
 內距 24;英文小標 Inter 12、字重 500、字距 .1em,下面 8;標題 32、行高 1.4、字距 .05em,下面空一行(24);說明 18、行高 1.75。
 顏色只看底色:深色底(選中的頁籤、綠帶卡)= 小標米白 #EAE5DA、標題與說明白;淺色底(沒選中的頁籤)= 都是 #505150。
 綠帶卡原本的英文小標淡綠 #B9CCBF、捲到時變金,改成跟頁籤一樣的米白;右上角編號同小標樣式*/
html body .o-center :is(#find .tabs-f .tab, .sl-3j a) { display: grid; align-content: start; row-gap: 0; padding: var(--s-5); }
html body .o-center :is(#find .tabs-f .tab em, .sl-3j .j-en) { margin: 0 0 var(--s-2); font: 500 12px/1.6 Inter, sans-serif !important; letter-spacing: .1em !important; text-transform: uppercase; }
html body .o-center :is(#find .tabs-f .tab b, .sl-3j .jt-h) { margin: 0 0 var(--s-5); font-size: var(--t-h3) !important; font-weight: 500; line-height: 1.4; letter-spacing: .05em; }   /* 標題與說明之間空一行*/
html body .o-center :is(#find .tabs-f .tab small, .sl-3j .jt-s) { margin: 0; font-size: var(--t-body) !important; font-weight: 400; line-height: 1.75; letter-spacing: .05em; opacity: 1; }
html body .o-center :is(#find .tabs-f .tab.on em, .sl-3j .j-en, .sl-3j li.lit .j-en) { color: #EAE5DA; }
html body .o-center :is(#find .tabs-f .tab.on :is(b, small), .sl-3j :is(.jt-h, .jt-s)) { color: #fff; }
html body .o-center .sl-3j .jt-n { top: var(--s-5); right: var(--s-5); font: 500 12px/1.6 Inter, sans-serif; letter-spacing: .1em; color: #EAE5DA; opacity: 1; }
@media (max-width: 767px) {   /* 手機:綠帶卡一張一排,標題 24;頁籤卡三張一排,維持疼痛問題的小切換鈕(內距 12/8、名稱 18、置中) */
  html body .o-center .sl-3j .jt-h { font-size: var(--t-lead) !important; }
  html body .o-center #find .tabs-f .tab { padding: calc(var(--s-3) - 1px) var(--s-2) calc(var(--s-3) + 1px); align-content: end; }   /* 上下量筆畫:英文大寫頂的字框留白比中文字底多 1.5 → 上 11、下 13(像素量 17.0/15.5 → 16/16.5) */
  html body .o-center #find .tabs-f .tab b { font-size: var(--t-body) !important; margin-bottom: 0; }   /*名稱下面還留著電腦版給小字的 24,底部比頂部多 24 → 拿掉*/
}

/* ── 滑過一律淡綠──
 全站狀態只有三種,顏色固定
 預設 = 比所在底色跳一階(米底上白卡、綠底上深綠卡;沒選中的頁籤反灰 #D8D2C6)
 滑過 = 一律淡綠 #E8EEEA(不管原本是白、反灰還是深綠)
 選中 = 深綠 #3B5348(頁籤)/客戶綠 #577A6E(清單項目)、白字
 字色照「看底色」的規則跟著換:淡綠底上標題深綠 #3B5348、英文小標與說明 #505150*/
html body .o-center #find .tabs-f .tab:not(.on):hover { background: #E8EEEA; }
html body .o-center #find .tabs-f .tab:not(.on):hover b { color: var(--c-green-dk); }
html body .o-center .sl-3j a { transition: background-color .2s; }
html body .o-center .sl-3j a :is(.j-en, .jt-h, .jt-s, .jt-n) { transition: color .2s; }
html body .o-center #adult .sl-3j li a:is(:hover, :focus-visible) { background: #E8EEEA; }   /* 加 #adult 與 li:要壓過「捲到時亮起」那條(.sl-3j li.lit a),不然底色不變、字先變深就看不到 */
html body .o-center #adult .sl-3j a:is(:hover, :focus-visible) .jt-h { color: var(--c-green-dk); }   /* 加 #adult:要壓過上面「六張卡同一套」那條含 #find 的顏色規則 */
html body .o-center #adult .sl-3j a:is(:hover, :focus-visible) :is(.j-en, .jt-s, .jt-n) { color: #505150; }

html body .o-center #adult .band .band-top { margin-bottom: 88px; }
html body .o-center #adult .band .sl-3j { margin-top: 0; }
@media (max-width: 767px) { html body .o-center #adult .band .band-top { margin-bottom: 72px; } }

/* ── 治療方式三張卡(超音波導引注射/物理治療與儀器/骨質疏鬆)照「六張卡」的文字邏輯──
 內距 24;英文小標 Inter 12/500/字距 .1em、下 8(原本磚紅 18);標題 32/行高 1.4、下面空一行 24(原本 24);說明 18/行高 1.75、下 24
 白卡在淺色底上 = 英文小標客戶指定磚紅 #96503C、標題深綠、說明 #505150。
 卡片多出來的兩段照同一套間距:細線 → 24 → 療程名稱 → 底部「看…說明 →」(三張卡的連結底部切齊)*/
html body .o-center .sl-tc .sl-tc-b { display: flex; flex-direction: column; gap: 0; padding: var(--s-5); }
html body .o-center #adult .sl-tc .tx-k { margin: 0 0 var(--s-2); font: 500 12px/1.6 Inter, sans-serif !important; letter-spacing: .1em !important; text-transform: uppercase; color: #96503C; }   /* 白底上的英文小標 = 客戶指定磚紅 #96503C*/
html body .o-center .sl-tc h3 { margin: 0 0 var(--s-5); font-size: var(--t-h3) !important; font-weight: 500; line-height: 1.4; letter-spacing: .05em; color: var(--c-green-dk); }
html body .o-center .sl-tc .sl-tc-b > p:not(.tx-k):not(.sl-tc-t) { margin: 0 0 var(--s-5); font-size: var(--t-body) !important; line-height: 1.75; letter-spacing: .05em; color: #505150; }   /* (三張卡的對齊改用下面的共用橫向格線,不再「預留兩行」) */
html body .o-center .sl-tc .sl-tc-t { margin: 0; padding-top: var(--s-5); border-top: 1px solid var(--ln); font-size: var(--t-body) !important; line-height: 1.75; color: var(--c-green-dk); }
html body .o-center .sl-tc .sl-more { margin-top: auto; padding-top: var(--s-5); align-self: flex-start; }

/*
 原本上列是自己的兩欄(圖 554|間距 56|文字 395),跟下列四欄(239×4、間距 16)兩套線打架
 改成:圖 = 第 1–2 張卡寬(對齊下列欄線);文字不對齊第 3 張卡(貼太近),跟圖保持 56 的距離、右緣對齊版邊
*/
@media (min-width: 1024px) {
  html body .o-center #kids > .wrap { grid-template-columns: calc((100% - 48px) / 2 + 16px) minmax(0, 1fr); column-gap: var(--s-8); }
}
/* 兒童早療插圖高度跟著右邊文字塊:插圖頂 = 文字頂、底 = 按鈕底
 寬螢幕本來就差不多高(1728:圖 363/文字 377),1440 文字比較高(443)時插圖從中間裁左右。
 高度設 0+最小 100%:插圖不參與撐高格線,只填滿文字撐出來的高度*/
@media (min-width: 1024px) {
  html body .o-center #kids .fig-wide { position: relative; align-self: stretch; height: 0; min-height: 100%; margin: 0; }
  html body .o-center #kids .fig-wide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
}

/* ── 兒童早療三張卡(該不該來?/怎麼開始?/會拿到什麼?)照卡片文字規格──
 內距 24;編號 01/02/03 當英文小標:Inter 12/500/字距 .1em、白底 = 客戶磚紅 #96503C,下 8
 標題 32/行高 1.4/字距 .05em 深綠、下面空一行 24;說明 18/行高 1.75 #505150。第一格實景小照不動*/
html body .o-center #kids .sl-kids > li:not(.o-kph) { display: grid; align-content: start; row-gap: 0; padding: var(--s-5); }
html body .o-center #kids .sl-kids > li:not(.o-kph)::before { margin: 0 0 var(--s-2); font: 500 12px/1.6 Inter, sans-serif; letter-spacing: .1em; color: #96503C; }
html body .o-center #kids .sl-kids > li:not(.o-kph) > b { margin: 0 0 var(--s-5); font-size: var(--t-h3) !important; font-weight: 500; line-height: 1.4; letter-spacing: .05em; color: var(--c-green-dk); }
html body .o-center #kids .sl-kids > li:not(.o-kph) > span { font-size: var(--t-body) !important; line-height: 1.75; letter-spacing: .05em; color: #505150; }

/* ── 區塊底色──
 早期 opt.css 把中間各區一律蓋成米色 #EAE5DA,吃掉了客戶原本有區別色的四區(兒童早療淡綠、評論淺米、第一次來與常見問題深一階米)。
 現在規則:一般區塊 = 米色 #EAE5DA;要跟鄰區做區別的區塊 = 客戶評論區那個淺米 #F3EFE6(不用淡綠當區塊底)。
 套在客戶原本有區別色的四區:兒童早療、評論、第一次來、常見問題*/
html body .o-center > :is(#kids, #voices, #first, #faq) { background: #F3EFE6; }
/* 兒童早療三張卡:標題組貼卡片頂、說明貼卡片底——
 「會拿到什麼?」在窄卡折兩行時,三張的標題頂與說明底仍各自切齊;標題到說明至少空 24*/
html body .o-center #kids .sl-kids > li:not(.o-kph) { display: flex; flex-direction: column; }
html body .o-center #kids .sl-kids > li:not(.o-kph) > span { margin-top: auto; }
/* 兒童早療三張卡:說明行數不一樣時,說明的「開頭」要對齊——
 電腦版四格一排共用同一組橫向格線(subgrid):編號列 / 標題列(取最高那張)/ 中間 auto space / 說明列(取最長那張)
 每張的說明都從同一高度開始,短的說明下面留空,不是上面。實景小照那格跨四列*/
@media (min-width: 1024px) {
  html body .o-center #kids .sl-kids { grid-template-rows: auto auto 1fr auto; row-gap: 0; }
  html body .o-center #kids .sl-kids > li { grid-row: span 4; }
  html body .o-center #kids .sl-kids > li:not(.o-kph) { display: grid; grid-template-rows: subgrid; row-gap: 0; }
  html body .o-center #kids .sl-kids > li:not(.o-kph)::before { grid-row: 1; }
  html body .o-center #kids .sl-kids > li:not(.o-kph) > b { grid-row: 2; }
  html body .o-center #kids .sl-kids > li:not(.o-kph) > span { grid-row: 4; margin-top: 0; }
}

/* ── 並排卡片逐類對齊──
 掃描 1440 找到三排沒對齊,都改成整排共用橫向格線(subgrid),每一類一列、列高取整排最高,行數不一的地方插 auto space(1fr)*/
/* ① 醫療團隊三張醫師卡:職稱 / 名字 / 引言(只有院長有,另兩張這列空著)/ 專長 / auto space / 看門診 → */
@media (min-width: 1024px) {
  html body .o-center #team .sl-docs3 { grid-template-rows: auto auto auto auto 1fr auto; row-gap: 0; }
  html body .o-center #team .sl-docs3 > li { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 2px; }
  html body .o-center #team .sl-docs3 > li > .sd-r { grid-row: 1; }
  html body .o-center #team .sl-docs3 > li > .sd-n { grid-row: 2; }
  html body .o-center #team .sl-docs3 > li > .sd-l { grid-row: 3; }
  html body .o-center #team .sl-docs3 > li > .sd-t { grid-row: 4; }
  html body .o-center #team .sl-docs3 > li > .sd-h { grid-row: 6; }
}
/* ② 門診週班表六天:日期列(今天/明天多一行標籤)/ 早診 / 午診 / 晚診 / 當日說明 / auto space——早午晚三列各自跨六天切齊 */
@media (min-width: 1025px) {
  html body .o-center .week { grid-template-rows: auto auto auto auto auto 1fr; row-gap: 0; }
  html body .o-center .week > .day { display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; align-content: stretch; }
  html body .o-center .week > .day > .day-h { grid-row: 1; }
  html body .o-center .week > .day > ul { grid-row: 2 / span 3; display: grid; grid-template-rows: subgrid; row-gap: var(--s-2); }
  html body .o-center .week > .day > .day-note { grid-row: 5; }
}
/* ③ 疼痛問題說明面板兩欄(常見的狀況|門診通常會先問、先看):小標列 / 內文列共用格線——原本差 3px(「、」的備用字型行框比較高) */
html body #find .fw-cond li { line-height: 1.75; }
@media (min-width: 768px) {
  html body #find :is(.fw-i, .lf-i) dl > div:not(.fw-ck) { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; align-content: start; }
}

/* ④ 治療方式三張照片卡:照片 / 英文小標 / 標題 / 說明 / 細線+療程名稱 / auto space / 看…說明 →(原本用「說明至少兩行高」湊,違反通則,改共用格線) */
@media (min-width: 901px) {
  html body .o-center .sl-tcs { grid-template-rows: auto auto auto auto auto 1fr auto; row-gap: 0; }
  html body .o-center .sl-tcs > .sl-tc { grid-row: span 7; grid-template-rows: subgrid; row-gap: 0; }
  html body .o-center .sl-tcs > .sl-tc > figure { grid-row: 1; }
  html body .o-center .sl-tcs > .sl-tc > .sl-tc-b { grid-row: 2 / span 6; display: grid; grid-template-rows: subgrid; row-gap: 0; }
  html body .o-center .sl-tcs .sl-tc .sl-more { grid-row: 6; align-self: end; margin-top: 0; }
}
/* 兒童早療「初診掛顏韻珊醫師的門診…」跟按鈕之間多空一行:原本字到按鈕 16 → 加一個行高(1lh);左邊插圖高度跟著文字塊自動變高*/
html body .o-center #kids .sl-cta > p { margin-bottom: 1lh; }

/* ── 卡片上方的英文小標/編號一律用客戶橘紅──
 淺底(白卡、反灰頁籤、滑過淡綠)= #96503C(客戶標籤磚紅);深綠底(選中頁籤、綠帶三張卡)試過 #B7664F 對比只有 2:1
 範圍:疼痛問題三張頁籤卡的 BY AREA…、綠帶三張卡的 JUST RIGHT…與 01/02/03(治療方式卡、兒童早療編號本來就是磚紅)*/
html body .o-center #find .tabs-f .tab:not(.on) em { color: #96503C; }
html body .o-center #find .tabs-f .tab.on em { color: #EAE5DA; }   /* 深綠底改回米白*/
html body .o-center #adult .sl-3j.sl-3j a :is(.j-en, .jt-n) { color: #EAE5DA; }   /* 深綠卡改回米白;滑過淡綠時仍是磚紅*/   /* .sl-3j 寫兩次:要壓過「六張卡同一套」那條含 #find 的顏色規則 */
html body .o-center #adult .sl-3j li a:is(:hover, :focus-visible) :is(.j-en, .jt-n) { color: #96503C; }

/* ── 還原客戶的區塊大字英文(Find Your Way / For Your Child / Our Team)──
 早期 opt.css 把它藏起來(.sec-en display:none),不是客戶 PDF 要求的,違反「客戶的文字不能刪、不能藏」。
 照客戶原本:標題列兩欄(標題|大字英文,底部切齊)、Inter 500、clamp(44–68)、客戶綠、不折行;1099 以下客戶自己就隱藏,照舊。
 兒童早療的文字只剩右半欄,放不下並排 → 大字英文改放在標題下面一行(左緣跟標題同一條)*/
@media (min-width: 1100px) {
  html body .o-center .sec-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: var(--s-5); }
  html body .o-center .sec-en { display: block; }
}
/* 區塊大字英文(Find Your Way / For Your Child / Our Team)改 Inter Tight*/
html body .o-center .sec-en { font-family: "Inter Tight", Inter, sans-serif; }

/* ── 標題系統(試做:疼痛問題第一區)──
 標題列 = 中文大標(左)+ 大字英文(右),兩邊「最後一行的基線」切齊(原本用各自的下邊距 20/30 湊)
 標題列下面空 24 → 灰線 #CECAC1 整排 → 空 24 → 引言*/
html body .o-center .sec-head { margin-bottom: var(--s-5); padding-bottom: var(--s-5); border-bottom: 1px solid var(--ln); }   
@media (min-width: 1100px) { html body .o-center .sec-head { align-items: last baseline; } }
html body .o-center .sec-head :is(.h2, .sec-en) { margin-bottom: 0; }
html body .o-center #find > .wrap > .lead { margin-top: 0; }   /* 標題列下面已有 24 */
/* 灰線開頭疊一小段綠線:客戶原本大標下 48×2 的綠線 → 48 長、1px(跟灰線同粗)、客戶綠,疊在灰線最左邊*/
html body .o-center .sec-head { position: relative; }
html body .o-center .sec-head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: calc(2 * var(--t-h2)); height: 2px; background: var(--c-green); }   /*長度 = 大標兩個中文字(2×42 = 84);底部跟灰線切齊*/

/* ── 全站只用三種綠──
 深綠 #3B5348 / 標準綠 #577A6E / 淡綠 #E8EEEA。掃所有樣式規則(含滑過、選中狀態),把其餘不透明的綠對應進來
 - 接近黑的綠、按鈕滑過的加深綠 → 深綠:首屏底、首屏捲動變暗層、頁尾底、提示浮層、醫師名字、週班表星期、各種按鈕滑過
 - 中間調的綠(#749986 系)→ 標準綠:頁首閱讀進度條、左側欄 J 滑過、大字英文(兒童早療原本另用淺綠 #8FAA9E)
 - 深底上的淡綠字(#C9D6CF、#B9CCBF)→ 淡綠:頁尾小標與英文
 頁首標誌圖另外換成標準綠版(build-opt2.py)。半透明的照片遮罩、陰影不算顏色,沒動*/
html body .hero { background-color: var(--c-green-dk); }
html body .hero .hero-veil { background: var(--c-green-dk); }
html body :is(.ft, .ft.ft2) { background-color: var(--c-green-dk); }
html body .sl-toast { background: var(--c-green); } 
html body .o-center .sd-n { color: var(--c-green-dk); }
html body .o-center .day-h b { color: var(--c-green-dk); }
html body :is(.hd-cta, .hero .door-go, .map-card .map-btn, .tx-back):is(:hover, :focus-visible) { background: var(--c-green-dk) !important; color: #fff; }
html body .jprog i { background: var(--c-green) !important; }   /* 客戶原本用 !important 指定 #749986 */
html body .h2::after { background: var(--c-green); }   /* 大標下的舊綠線(目前隱藏),顏色也收進標準綠 */
html body .o-center .sec-kids .sec-en { color: var(--c-green); }
@media (min-width: 1200px) { html body .o-body > .rail-l .rl-nav a:hover i { background: var(--c-green) !important; } }
html body .ft :is(.ft-h, .ft-en) { color: #E8EEEA; }

/* ── 標題系統推到各區後的版面調整(10-19)──
   標題列(小標+大標|大字英文)→ 下 24 → 灰線(開頭一段綠)→ 下 24 → 引言或內容。兒童早療欄窄,大字英文放大標下一行(上面已設)。
   ① 評論、門診時間:原本大標在左、說明/公告在右 → 標題列整排,說明/公告改放線下面(左邊,像引言) */
@media (min-width: 1024px) {
  html body .o-center :is(#voices, #hours) > .wrap > .sec-head { grid-column: 1 / -1; grid-row: 1; }
  html body .o-center #voices > .wrap > .sub, html body .o-center #hours > .wrap > .hh-ann { grid-column: 1 / -1; grid-row: 2; align-self: start; margin: 0 0 var(--s-7); max-width: 36em; }
}
/* ② 常見問題:標題原本在左欄 → 拿出來整排;左欄(說明+連結)仍跟著捲動停住,右欄是分類與問答 */
html body .o-center .faq-in > .sec-head { grid-column: 1 / -1; }
@media (min-width: 901px) {
  html body .o-center .faq-in > .sec-head { position: relative; top: auto; align-self: auto; }
  html body .o-center .faq-in > div:nth-child(2) { position: sticky; top: 104px; align-self: start; }
}
/* ③ 預約與交通(綠底):標題列整排;線用深底規則 = 白 20%,開頭那段改米白;大字英文米白 */
html body .o-center .visit > .sec-head { grid-column: 1 / -1; align-self: start; }
html body .o-center #visit .sec-head { border-bottom-color: var(--ln-dk); }
html body .o-center #visit .sec-head::after { background: #EAE5DA; }
html body .o-center #visit .sec-en { color: #EAE5DA; }
/* ④ 空間:標題列在 s3g-h 裡,下面接說明 */
html body .o-center .s3g-h > .sec-head { margin-bottom: var(--s-2); }
/* 線到內容統一 24:常見問題、預約交通的格線原本有 56 的上下間距、空間的 s3g-h 有 6 的間距,疊上標題列下面的 24 變成 80/16 */
html body .o-center :is(.faq-in, .visit) { row-gap: 0; }
html body .o-center .s3g-h { row-gap: 0; }
html body .o-center .s3g-h > .sec-head { margin-bottom: var(--s-5); }

/* ── 兒童早療標題列跟其他區一樣──
 原本標題擠在右半欄、大字英文只能放標題下面;改成標題列拉滿整排(標題|大字英文,線整排)
 線下面:左 = 插圖(寬 = 下方第 1–2 張卡),右 = 引言+按鈕;插圖頂 = 引言頂、底 = 按鈕底(沿用「圖片高度做 RWD」)*/
@media (min-width: 1024px) {
  html body .o-center #kids > .wrap > .sec-head { grid-column: 1 / -1; grid-row: 1; }
  html body .o-center #kids > .wrap > .fig-wide { grid-column: 1; grid-row: 2 / span 2; }
  html body .o-center #kids > .wrap > .lead { grid-column: 2; grid-row: 2; margin-top: 0; }
  html body .o-center #kids > .wrap > .sl-cta { grid-column: 2; grid-row: 3; }
  html body .o-center #kids > .wrap > .sl-kids { grid-row: 4; }
}
/* 插圖最低高度 = 寬的 3/4(4:3)
 標題搬出去後右邊字變少,插圖跟著縮到 502×292;改成「跟文字一樣高,但不低於 4:3」。
 做法:插圖跨第 2–4 列,第 4 列是空的伸縮列(1fr),插圖比文字高時多出來的高度只進這一列,引言和按鈕不會被撐開
 插圖用 ::before 的上內距撐出 4:3 的底(內距 % 以寬度計)*/
@media (min-width: 1024px) {
  html body .o-center #kids > .wrap { grid-template-rows: auto auto auto 1fr auto; }
  html body .o-center #kids > .wrap > .fig-wide { grid-row: 2 / span 3; height: auto; min-height: 0; }
  html body .o-center #kids > .wrap > .fig-wide::before { content: ""; display: block; padding-top: 75%; }
  html body .o-center #kids > .wrap > .sl-kids { grid-row: 5; }
}
/* 右邊文字塊(引言+按鈕)在插圖高度裡置中
 文字上下各一條伸縮的空列,平分插圖比文字多出來的高度;文字比插圖高時兩條空列 = 0,上下都切齊*/
@media (min-width: 1024px) {
  html body .o-center #kids > .wrap { grid-template-rows: auto 1fr auto auto 1fr auto; }
  html body .o-center #kids > .wrap > .fig-wide { grid-row: 2 / span 4; }
  html body .o-center #kids > .wrap > .lead { grid-row: 3; }
  html body .o-center #kids > .wrap > .sl-cta { grid-row: 4; }
  html body .o-center #kids > .wrap > .sl-kids { grid-row: 6; }
}

/* 標題列的中文大標一律兩行,在逗號後換行
 客戶每個大標都已經在逗號後放了換行點(原本只在手機打開),桌機打開後由逗號斷行
 不再靠欄寬自然折(疼痛問題、醫療團隊原本是被欄寬折在句子中間);維持一行*/
html body .o-center .sec-head .h2 .br-m { display: inline; }

/* ── 卡片內距三級──
 盤點時全站卡片內距有 14 種數字(客戶原本各寫各的),統一成三級
 - 一般卡片 24:頁籤、綠帶卡、治療方式卡、兒童早療卡、公告、提示框(本來就 24)+ 醫師卡(16/20)、評論綠色摘要卡(34/30/28)、
 評論卡(22/22/18)、第一次來步驟卡(20/22)、常見問題每一題(18/22,題號與箭頭離邊 22)
 - 大面板 40(1023 以下 24):疼痛問題白色面板(本來就是)+ 評論區白色大框(10/28/22,裡面再裝評論卡)、本週門診綠卡(32/40)
 - 小格子 16:週班表每一天(16/14)、裡面的時段(10)、空間照片圖說(10/14,離照片邊也從 14 改 16)
 不動:疼痛問題的部位列(清單列,上下 16 左右 24)、手機版三張小頁籤(12/8,一排擠三個)*/
html body .o-center #team .sl-docs3 > li { padding: var(--s-5); }
html body .o-center #voices .rv-sum { padding: var(--s-5); }
html body .o-center #voices .rv-c figure { padding: var(--s-5); }
html body .o-center .first-photo .steps4 h4 { padding: var(--s-5) var(--s-5) 6px; }
html body .o-center .first-photo .steps4 p { padding: 0 var(--s-5) var(--s-5); }
html body .o-center .faq-i summary { padding-top: var(--s-5); padding-bottom: var(--s-5); }
html body .o-center .faq-i summary::before { left: var(--s-5); }
html body .o-center .faq-i summary::after { right: var(--s-5); }
html body .o-center .faq-i p { padding-right: var(--s-5); padding-bottom: var(--s-5); }
@media (max-width: 767px) {
  html body .o-center .faq-i summary { padding-left: 60px; }   /* 題號往右 8 後,題目跟著右移,保持題號和題目的距離 */
  html body .o-center .faq-i p { padding-left: var(--s-5); }
}
html body .o-center #voices .rv-main { padding: var(--s-7); }
/* 頁籤上方 34 是客戶留給小綠人站的位置(小綠人 35 高、貼頂 2),還原*/
html body .o-center #hours .now-card { padding: var(--s-7); }
@media (max-width: 1023px) {
  html body .o-center #voices .rv-main, html body .o-center #hours .now-card { padding: var(--s-5); }
}
html body .o-center #hours .day { padding: var(--s-4); }
html body .o-center #hours .sl { padding: var(--s-4); }
html body .o-center .s3g figcaption { left: var(--s-4); bottom: var(--s-4); padding: var(--s-4); }

/* 區塊大字英文字距收緊:原本吃到全站文字字距 .05em(opt2.css 那條 !important
 本來是給中文的),66 號的 Inter Tight 字縫被撐開;大字標題改 -.01em*/
html body .o-center .sec-head .sec-en { letter-spacing: -.01em !important; }
/* 大字英文字重小一級 500 → 400*/
html body .o-center .sec-head .sec-en { font-weight: 400; }

/* 醫師卡:介紹句和專長之間加灰線
 線畫在專長(.sd-t)的頂邊:三張卡的專長在同一列(subgrid 第 4 列),沒有介紹句的兩張也在同一高度出現線。
 線上 24、線下 24,跟治療方式卡的分隔線同一套*/
html body .o-center #team .sl-docs3 > li > .sd-t { margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--ln); }

/* 醫師名字 24 → 32,跟其他卡片標題同一級(--t-h3,行高 1.4)
 卡片窄時只在名字和「醫師」之間的空格換行,不把「醫師」拆開(keep-all)*/
html body .o-center #team .sl-docs3 .sd-n { font-size: var(--t-h3) !important; line-height: 1.4; word-break: keep-all; }
html body .o-center #team .sl-docs3 .sd-n span { word-break: normal; }

/* 醫師卡介紹句上下等距
 量字的筆畫邊緣,原本上 16(專科那行字底 → 介紹句字頂)、下 31(介紹句字底 → 灰線)
 上方 4 → 19,補上專科那行與介紹句各自的行高空氣,筆畫邊緣上下都是 31*/
html body .o-center #team .sl-docs3 > li > .sd-l { margin-top: 19px; }

/* ── 評論卡照卡片系統──
 原本:「這則提到｜主題」一行磚紅 18、引文行高 1.9、各段間距 10/18/14/10 各寫各的、沒有共用格線。
 改成跟治療方式卡同一套:小標(這則提到,磚紅)下 8 → 標題下 24 → 引文 18/1.75 → 下 24 灰線 → 24 → 評論者 → 24 → 原文連結。
 整條輪播的卡共用橫向格線(subgrid):小標/標題/引文/auto space/評論者/連結,每一類同高開始,以最長那張為準*/
html body .o-center #voices .rv-tp { margin: 0 0 var(--s-2); }
html body .o-center #voices .rv-tt { margin: 0 0 var(--s-5); font-size: var(--t-lead) !important; font-weight: 500; line-height: 1.4; color: var(--c-green-dk); text-wrap: balance; }
html body .o-center #voices .rv-q { margin: 0 0 var(--s-5); }
html body .o-center #voices .rv-q p { line-height: 1.75; }
html body .o-center #voices .rv-f { padding-top: var(--s-5); }
html body .o-center #voices .rv-src { margin: var(--s-5) 0 0; }
html body .o-center #voices .rv-track { grid-template-rows: auto auto auto 1fr auto auto; row-gap: 0; }
html body .o-center #voices .rv-c { grid-row: span 6; display: grid; grid-template-rows: subgrid; row-gap: 0; }
html body .o-center #voices .rv-c figure { grid-row: 1 / -1; display: grid; grid-template-rows: subgrid; row-gap: 0; }
html body .o-center #voices .rv-c .rv-tp { grid-row: 1; }
html body .o-center #voices .rv-c .rv-tt { grid-row: 2; }
html body .o-center #voices .rv-c .rv-q { grid-row: 3; }
html body .o-center #voices .rv-c .rv-f { grid-row: 5; }
html body .o-center #voices .rv-c .rv-src { grid-row: 6; }

/* 評論左右鈕箭頭
圖示用格線置中在圓心;上一則水平翻轉。按鈕底色、大小照本站圓形鈕*/
html body .o-center :is(.rv-prev, .rv-next) { display: grid; place-items: center; padding: 0; }
html body .o-center :is(.rv-prev, .rv-next) svg { width: 16px; height: 16px; display: block; }
html body .o-center .rv-prev svg { transform: scaleX(-1); }

/* ── 評論區改上下排:分數卡在上、評論在下一次看 3 張──

你現在做的很奇怪,也太空了」
 ——我先前照完整版的兩欄排,左右各一堆字、中間大片空)
 第一列小標「Google 商家頁」;第二列一排:5.0+星星 | 直線 | 35 則公開評論 | 右邊一塊「數據更新至…」+ 看全部鈕 + 寫評論連結。
 內容用完整版的(按鈕、寫評論連結都保留,沒有刪字),排法、深綠底 #3B5348 照縮減版。
 內距 40(跟下面白框同級),兩塊間距 24;1024 以下改一欄直排、內距 24*/
@media (min-width: 1025px) {
  html body .o-center #voices .rv { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); }
  html body .o-center #voices .rv-track { grid-auto-columns: calc((100% - 2 * var(--s-5)) / 3); }
  /* 欄 = 5.0(跨兩列置中)| 35 則公開評論/下面一行更新日期(左邊一條直線)| 空 | 看全部鈕/下面一行寫評論連結(靠右)
     (先試過「更新日期+連結」放中間一欄、按鈕靠右:中間欄只剩 172 寬,兩行都被擠成兩行) */
  html body .o-center #voices .rv-sum { align-self: auto; display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "k k k k" "score n . btn" "score date . link"; align-items: center; column-gap: var(--s-7); row-gap: 0; padding: var(--s-7); }
  html body .o-center #voices .rv-k { grid-area: k; margin: 0 0 var(--s-2); }
  html body .o-center #voices .rv-score { grid-area: score; margin: 0; }
  html body .o-center #voices :is(.rv-n, .rv-date) { padding-left: var(--s-7); border-left: 1px solid var(--ln-dk); }
  html body .o-center #voices .rv-n { grid-area: n; margin: 0; align-self: end; }
  html body .o-center #voices .rv-date { grid-area: date; margin: 0; padding-top: var(--s-2); align-self: stretch; }   /* 列距 0、上下兩行的距離改用內距給,左邊直線才連成一條 */
  html body .o-center #voices .rv-btns { display: contents; }
  html body .o-center #voices .rv-btns .btn { grid-area: btn; width: 100%; }
  html body .o-center #voices .rv-btns .tlink { grid-area: link; justify-self: start; margin-top: var(--s-2); }
}
@media (max-width: 1024px) {
  html body .o-center #voices .rv-sum { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); }
  html body .o-center #voices .rv-sum > * { margin: 0; }
}
html body .o-center #voices .rv-sum { background: var(--c-green); }   
html body .o-center #voices .rv-k { color: #fff; }   /*米色字對比只剩 3.8 → 白(4.8)*/
html body .o-center #voices .rv-num { font: 500 64px/1 Inter, sans-serif; }
html body .o-center #voices .rv-n { display: flex; align-items: baseline; gap: var(--s-2); }
html body .o-center #voices .rv-n span { font: 500 44px/1 Inter, sans-serif; }
html body .o-center #voices .rv-sum::after { content: none; }   /* 右下角的淡 J 浮水印(縮減版)與完整版的淡色圓暈都拿掉*/

/* 評論頁籤旁的則數圓圈改正圓:原本左右內距 6 撐出 22×20 的膠囊
 改固定 22×22、數字用格線置中(兩位數也放得下)*/
html body .o-center #voices .t-n { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; line-height: 1; border-radius: 50%; }

/* ── 評論區小綠人重畫──
 造型:像紅綠燈的小綠人,側身朝右、身體挺直;手腳各一節,從肩/髖擺動;單色客戶綠(原本的 fill)。大小、位置照客戶(22×35、頁籤上方)。
 走路:兩腳前後交替、兩手反向擺,腳張最開時身體往下沉 1.5(兩腳交錯時最高),不再只是左右晃。
 轉身:往左走 → 整個人水平翻面朝左(.2 秒,看起來像轉身);到了點一下頭(頭往前下 1、2,.4 秒),再轉回朝右(opt2-gm.js)。
 減少動態偏好:客戶原本就不加 walking;這裡也不轉身不點頭*/
html body .o-center #voices .rv-gm .gm-flip { transform-box: view-box; transform-origin: 50% 50%; transition: transform .2s ease; }
html body .o-center #voices .rv-gm.gm-left .gm-flip { transform: scaleX(-1); }
html body .o-center #voices .rv-gm :is(.gm-leg, .gm-arm, .gm-head) { transform-box: fill-box; }
html body .o-center #voices .rv-gm .gm-leg { transform-origin: 50% 3px; }
html body .o-center #voices .rv-gm .gm-arm { transform-origin: 50% 2.5px; }
html body .o-center #voices .rv-gm .gm-head { transform-origin: 50% 50%; }
/*因為切換太快了;讓他側身的時候就可以看到兩條腿」
 ① 走慢:客戶的 .7 秒改 1.2 秒(只改小綠人,頁籤底下那條線維持 .7 秒),走路的手腳擺動改成「走多久擺多久」(gm-walk,opt2-gm.js 控制),0.4 秒兩步,一格約走 6 步
 ② 站著也看得到兩條腿:停著時前腳往前 12°、後腳往後 12°(手也微微前後),不再疊成一條
 擺動從 ±30° 來回,動畫往前偏 .07 秒起跑 = 剛好從站姿的角度開始擺,起步不會跳一下*/
@media (prefers-reduced-motion: no-preference) { html body .o-center #voices .rv-gm { transition: left 1.2s cubic-bezier(.35, 0, .65, 1); } }
html body .o-center #voices .rv-gm .gm-lf { transform: rotate(-12deg); }
html body .o-center #voices .rv-gm .gm-lb { transform: rotate(12deg); }
html body .o-center #voices .rv-gm .gm-af { transform: rotate(10deg); }
html body .o-center #voices .rv-gm .gm-ab { transform: rotate(-10deg); }
html body .o-center #voices .rv-gm.gm-walk .gm-fig { animation: gmBob .4s ease-in-out infinite -.07s; }
html body .o-center #voices .rv-gm.gm-walk .gm-lf { animation: gmSwing .4s ease-in-out infinite -.07s; --a: -30deg; }
html body .o-center #voices .rv-gm.gm-walk .gm-lb { animation: gmSwing .4s ease-in-out infinite -.07s; --a: 30deg; }
html body .o-center #voices .rv-gm.gm-walk .gm-af { animation: gmSwing .4s ease-in-out infinite -.07s; --a: 55deg; }   /* 手擺 ±35° → ±55°*/
html body .o-center #voices .rv-gm.gm-walk .gm-ab { animation: gmSwing .4s ease-in-out infinite -.07s; --a: -55deg; }
html body .o-center #voices .rv-gm.gm-arrive .gm-head { animation: gmNod .4s ease-in-out; }
@keyframes gmSwing { 0%, 100% { transform: rotate(var(--a)); } 50% { transform: rotate(calc(var(--a) * -1)); } }
@keyframes gmBob { 0%, 50%, 100% { transform: translateY(1.5px); } 25%, 75% { transform: translateY(0); } }
@keyframes gmNod { 0%, 100% { transform: translate(0, 0); } 45% { transform: translate(1px, 2px); } }
@media (prefers-reduced-motion: reduce) { html body .o-center #voices .rv-gm * { animation: none !important; transition: none !important; } }

/* ── 第一次來四張卡照治療方式卡的樣式──
 - 照片:下緣改直角(全站卡片圓角那條把照片自己也切了圓角),只留卡片外框的圓角(卡片 overflow hidden 切上面兩角)
 - 號碼:原本白圓圈疊在照片左上 → 移到文字區最上面,當小標:01/02/03/04,Inter 12/500/字距 .1em 磚紅 #96503C(同治療卡英文小標、兒童早療編號)
 - 文字:內距 24;小標下 8 → 標題 32/1.4 深綠、下 24 → 說明 18/1.75 #505150
 - 四張卡共用橫向格線(照片/小標/標題/說明),標題折行時說明也同高開始
 照片比例維持客戶的 4:5(直式人物照),沒有改成治療卡的 3:2*/
html body .o-center .first-photo .steps4 li .st-img { order: -1; margin: 0; border-radius: 0; }   /* 選擇器要比全站卡片圓角那條(含 .first-photo .steps4 li)更重才蓋得過 */
html body .o-center .first-photo .steps4 li::before { position: static; z-index: auto; width: auto; height: auto; display: block; margin: 0 0 var(--s-2); padding: var(--s-5) var(--s-5) 0; border-radius: 0; background: none; box-shadow: none; content: counter(k, decimal-leading-zero); font: 500 12px/1.6 Inter, sans-serif; letter-spacing: .1em; color: #96503C; text-align: left; place-items: initial; }
html body .o-center .first-photo .steps4 h4 { margin: 0 0 var(--s-5); padding: 0 var(--s-5); font-size: var(--t-h3) !important; font-weight: 500; line-height: 1.4; letter-spacing: .05em; color: var(--c-green-dk); }
html body .o-center .first-photo .steps4 p { margin: 0; padding: 0 var(--s-5) var(--s-5); font-size: var(--t-body) !important; line-height: 1.75; letter-spacing: .05em; color: #505150; }
@media (min-width: 561px) {
  html body .o-center .first-photo .steps4 { grid-template-rows: auto auto auto 1fr; row-gap: var(--s-5); }
  html body .o-center .first-photo .steps4 li { grid-row: span 4; display: grid; grid-template-rows: subgrid; row-gap: 0; }
}
@media (max-width: 560px) {
  /*號碼放字的最上面*/
  html body .o-center .first-photo .steps4 li { grid-template-areas: "photo num" "photo title" "photo copy"; row-gap: 0; }
  html body .o-center .first-photo .steps4 li::before { grid-area: num; padding: var(--s-4) var(--s-4) 0; }
  html body .o-center .first-photo .steps4 h4 { margin-bottom: var(--s-2); padding: 0 var(--s-4); }
  html body .o-center .first-photo .steps4 p { padding: 0 var(--s-4) var(--s-4); }
}

/* 第一次來、門診時間的下內距回到跟上方一樣
 客戶另外把這兩區的下內距寫小(第一次來 56、手機 40;門診時間 64),其他區都是上下同值(--o-pad);各區之間有縫隔開,看得出上下不等*/
html body .o-center :is(#first, #hours) { padding-bottom: var(--o-pad); }

/* ── 各區內容離上下邊緣等距──
 量法:各區最上面的字/最下面的字或卡片、按鈕外框,到區塊上下邊緣的距離(進場動畫關掉、位移歸零後量)。1440 時大部分是上 124(字頂,內距 120+行高空氣 4)/ 下 120(按鈕或卡片外框)
 不一樣的三處:①第一次來、門診時間下內距被客戶寫小(56/64)→ 上面那條已改回 --o-pad
內容下面空 176 → 拿掉
 ③ 治療方式(綠色帶下面的米色塊):上內距 96(opt.css 我先前給的)、下 120 → 上方也改 --o-pad*/
html body .o-center #space .s3g-w { margin-bottom: 0; }
html body .o-center .care-sec > .care-body { padding-top: var(--o-pad); }

/* ── 標題列那條線:線上、線下看起來一樣遠──
 量字的筆畫邊緣(不是字框):線上方 = 大標最後一行字底 → 線 = 32(內距 24 + 大標行高的空氣 8)。
 線下方原本一律留 24,但下面接「字」時會多出字自己的行高空氣(約 10)→ 34;接「照片/卡片外框」時沒有空氣 → 24。
 改成依下面接的東西給:接字 22(22+10≈32)、接外框 31.5(兒童早療插圖、第一次來卡片、門診時間公告框)。
 預約交通左欄的「成人門診」上面客戶另多 8 → 拿掉,讓它也是接字的 32*/
/*要改回一樣就把 --tl-ratio 設 1。
 接字要扣掉字的行高空氣 9.8、接外框扣線本身半格 .5*/
html body .o-center { --tl-gap: 31.8px; --tl-ratio: 2; }
html body .o-center .sec-head,
html body .o-center .s3g-h > .sec-head { margin-bottom: calc(var(--tl-gap) * var(--tl-ratio) - 9.8px); }
html body .o-center :is(#first, #hours) .sec-head { margin-bottom: calc(var(--tl-gap) * var(--tl-ratio) - .5px); }
@media (min-width: 1024px) { html body .o-center #kids .sec-head { margin-bottom: calc(var(--tl-gap) * var(--tl-ratio) - .5px); } }   /* 兒童早療只有並排時線下先接插圖;1023 以下先接引言字 */
html body .o-center #visit .paths { margin-top: 0; }
/* 線下面左邊接字、右邊接外框的兩區:外框往下移到跟左邊字頂同高(都是線下 32),線上下才一樣遠,左右也對齊 */
html body .o-center #team > .wrap > .sec-head { margin-bottom: calc(var(--tl-gap) * var(--tl-ratio) - 9.8px); }   /* opt2.css 用 #team 另寫了 24,要同樣有 id 才蓋得過 */
html body .o-center #team .sl-team { margin-top: 9.5px; }    /* 合照原本線下 24.5 → 32 */
html body .o-center #faq .faq-body { margin-top: 9.5px; }    /* 分類鈕原本線下 22.5 → 32 */
/* 大標字級會隨螢幕縮放(客戶 clamp 30–42),字越小、字底到線的空氣越少(1440 = 32、手機 = 30.2)。
   線上方內距跟著字級補:內距 = 29.85 − 0.1417 × 大標字級(量兩個字級推出來的直線),任何寬度線上都 ≈ 31.8 = 線下接字的距離 */
html body .o-center .sec-head { padding-bottom: calc(29.85px - .1417 * clamp(30px, 3.2vw, 42px)); }

/* 評論頁籤下面的綠色指示線,改成跟標題列那段綠線同一款
 原本 3px 粗、兩端圓角、底部貼齊灰線 → 往上多凸 2px、兩端圓圓的,跟 1px 的灰線看起來對不上。
 改成 2px、直角、底部貼齊灰線(= 標題列灰線開頭那段綠線的做法)*/
html body .o-center #voices .rv-tabs::after { height: 2px; border-radius: 0; bottom: -1px; }

/* 常見問題展開時,問題下面加一條灰線隔開問與答
 線畫在答案段落的頂邊;問題下 24 → 線 → 24 → 答案(問答同字級行高,兩邊空氣對稱:1440 量問題字底 → 線 27.8、線 → 答案字頂 27.5)*/
html body .o-center #faq details.faq-i[open] > p { padding-top: var(--s-5); background: linear-gradient(var(--ln), var(--ln)) no-repeat 0 calc(-1 * var(--s-5)) / 100% 1px; background-origin: content-box; }
/*不要對齊數字,數字下方空白」→ 線從答案文字的左緣(= 問題標題左緣 64)畫到右內距,題號底下留白
 (畫在內容框上:左右跟著答案文字走,上下往上移 24 回到段落頂邊)。手機原本答案不縮排(24)、題目從 60 開始 → 答案也縮到 60,標題、線、答案同一條左緣*/
@media (max-width: 767px) { html body .o-center #faq .faq-i p { padding-left: 60px; } }

/* 常見問題的收合箭頭換成 SVG:原本是 10×10 方塊只畫右下兩邊 2px 再轉 45°
 粗細跟其他 SVG 細線箭頭(1.4)不一致 → 改用同一套細線(16×16、線寬 1.4、往下的 V,幾何中心在 16 框正中)
 用遮罩畫在原本的位置(右 24、上下置中),顏色照舊客戶綠;展開時轉 180° 變成往上*/
html body .o-center #faq .faq-i summary::after { width: 16px; height: 16px; margin-top: -8px; border: 0; background: var(--c-green); transform: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 5.75l4.5 4.5 4.5-4.5' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 5.75l4.5 4.5 4.5-4.5' fill='none' stroke='%23000' stroke-width='1.4'/%3E%3C/svg%3E") center / contain no-repeat; }
html body .o-center #faq .faq-i[open] summary::after { transform: rotate(180deg); margin-top: -8px; }

/* 常見問題分類鈕不釘住
 客戶早期把所有分頁列(.tabs)做成「釘在頁首下面 76」+ 毛玻璃底,方便長內容裡隨時切換;後來常見問題的分類改成膠囊鈕、
 拿掉了底色,卻沒拿掉釘住和毛玻璃 → 捲動時鈕浮在題目卡上、後面的字被模糊。我們的頁首也不再釘住,76 的位置本身就不對*/
html body .o-center .faq-tabs { position: static; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* 收合箭頭加小圓圈:照本站圓形鈕 — 直徑 32、底 #D8D2C6、箭頭深綠
 滑過整題時圓變客戶綠、箭頭變白(同評論左右鈕)。箭頭仍是同款細線 SVG(16、線寬 1.4),畫在圓的正中;展開時整顆轉 180°。
 題目右內距 56 → 72(圓 32 + 右 24 + 與題目留 16)*/
html body .o-center #faq .faq-i summary { padding-right: 72px; }
html body .o-center #faq .faq-i summary::after { width: 32px; height: 32px; margin-top: -16px; border-radius: 50%; -webkit-mask: none; mask: none; transition: transform .3s, background-color .2s;
  background: #D8D2C6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 5.75l4.5 4.5 4.5-4.5' fill='none' stroke='%233B5348' stroke-width='1.4'/%3E%3C/svg%3E") center / 16px 16px no-repeat; }
html body .o-center #faq .faq-i[open] summary::after { margin-top: -16px; }
@media (hover: hover) { html body .o-center #faq .faq-i summary:hover::after { background-color: var(--c-green); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 5.75l4.5 4.5 4.5-4.5' fill='none' stroke='%23fff' stroke-width='1.4'/%3E%3C/svg%3E"); } }

/*
 ① 控制鈕三顆一組放右下:上一張 | 暫停 | 下一張(本站圓形鈕款 48、#D8D2C6、細線箭頭 SVG;上一張水平翻轉),間距 16 同評論區
 ② 照片說明從疊在照片左下的深色毛玻璃框,移到照片下面:名稱(18/500 深綠)+ 一句說明(18 #505150),照片下 16
 ③ 流動改由 opt2-space.js 控制(CSS 動畫關掉)*/
html body .o-center #space .s3g-run ul { animation: none; }
html body .o-center #space .s3g-run { touch-action: pan-y; cursor: grab; }
html body .o-center #space .s3g-run:active { cursor: grabbing; }
html body .o-center #space .s3g figure { overflow: visible; border-radius: 0; }
html body .o-center #space .s3g img { border-radius: var(--r-card); -webkit-user-drag: none; user-select: none; }
html body .o-center #space .s3g figcaption { position: static; display: grid; gap: var(--s-1); padding: var(--s-4) 0 0; border-radius: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: #505150; font-size: var(--t-body) !important; line-height: 1.6; }
html body .o-center #space .s3g figcaption b { font-size: var(--t-body) !important; font-weight: 500; letter-spacing: .05em; color: var(--c-green-dk); }
html body .o-center #space .s3g-ctl { display: flex; justify-content: flex-end; gap: var(--s-4); margin-top: var(--s-5); }
html body .o-center #space .s3g-ctl .s3g-pause { margin: 0; }
html body .o-center #space :is(.s3g-prev, .s3g-next) { display: grid; place-items: center; width: var(--btn-h); height: var(--btn-h); padding: 0; border: 0; border-radius: 50%; background: #D8D2C6; color: var(--c-green-dk); cursor: pointer; transition: background-color .2s, color .2s; }
html body .o-center #space :is(.s3g-prev, .s3g-next):hover { background: var(--c-green); color: #fff; }
html body .o-center #space :is(.s3g-prev, .s3g-next) svg { width: 16px; height: 16px; display: block; }
html body .o-center #space .s3g-prev svg { transform: scaleX(-1); }

/* 空間照片說明的名稱前加小 J:同疼痛問題清單的 J(.58em 寬、客戶綠)
 J 跟名稱間距 16;下面那句說明縮排到名稱的字下面(整塊左內距 = J 寬 + 16,J 掛在左邊、跟名稱那一行上下置中)*/
html body .o-center #space .s3g figcaption { position: relative; inset: auto; padding-left: calc(.58em + var(--s-4)); }   /* inset auto:舊的疊圖位置(左 16、下 16)在 relative 下會把說明往上推、壓到照片,要清掉 */
html body .o-center #space .s3g figcaption::before { content: ""; position: absolute; left: 0; top: calc(var(--s-4) + (1.6em - .94em) / 2); width: .58em; height: .94em; background: var(--c-green); -webkit-mask: var(--jmark) center / contain no-repeat; mask: var(--jmark) center / contain no-repeat; }

/* 「3D 設計示意,實際以現場為準」移到標題列下那句說明的下面
 註腳用 14,前面加 *(用 CSS 加,客戶原文不動),靠左,跟上面那句說明隔 8*/
html body .o-center #space .s3g-h .s3-cap { grid-column: 1 / -1; margin: var(--s-2) 0 0; text-align: left; font-size: 14px !important; line-height: 1.6; color: #5C5D5B; }
html body .o-center #space .s3g-h .s3-cap::before { content: "*"; margin-right: 2px; }
/* 空間輪播控制鈕置中、上方拉開:靠右 → 置中;照片說明到按鈕 24 → 40*/
html body .o-center #space .s3g-ctl { justify-content: center; margin-top: var(--s-7); }
/* 「*3D 設計示意…」下方拉開:原本到照片只有 18 → 48(= 其他區引言到內容的距離)*/
html body .o-center #space .s3g-h { margin-bottom: 48px; }

/* 空間照片比例:桌機維持客戶的寬圖(1200×619 ≈ 1.94:1),手機改 4:3
 手機原本 293×151 像一條細帶看不清;4:3 → 293×220,裁掉左右(主體在中間)。原圖只有 1200 寬,桌機再裁會糊,所以桌機不動*/
@media (max-width: 767px) { html body .o-center #space .s3g img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 50%; } }

/*
 - 三條路變成清單列:左 = 誰(成人門診/兒童早療/不確定掛哪裡),右 = 按鈕(三顆同寬、靠右);列的上下內距、灰線、列距都跟下面清單一樣
 - 左邊標籤欄兩份清單統一 120(放得下「不確定掛哪裡」;原本 88,手機 72),下面地址、電話的內容線跟著對齊
 - 三條路和下面的資訊之間多空一列= 列距 12 + 一列單行資訊列的高 58 + 列距 12*/
html body .o-center #visit .paths { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 12px; margin: 0 0 calc(12px + 58px + 12px); }
html body .o-center #visit .path { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; padding: 12px 0; border-top: 1px solid var(--ln-dk); }
html body .o-center #visit .path:first-child { border-top: 0; }
html body .o-center #visit .path-k { grid-column: 1; text-align: left; }
html body .o-center #visit .path .btn { grid-column: 3; width: 100%; }
html body .o-center #visit .facts > div { grid-template-columns: 120px minmax(0, 1fr); }

/*
只把各項換成全站系統的值
 - 上下內距 72 → --o-pad(1440 = 120、手機 64),跟其他區一樣;欄距 48 → 56(全站大欄距)
 - 大字英文:Inter 500、最大 88 → Inter Tight 400、字距 -.01em(全站英文大標)、最大 72(字級表最大一級)
 - 右欄:線 = 淺底不會動的線 #CECAC1;線到中文句 18 → 24;中文句 24(引言)、下距 16;嘉/誼 原本 24 夾在 18 的句子裡撐開行距 → 同 18、字重 500、深綠
 - 三個連結換全站元件:線上預約 = 主要按鈕、官方 LINE = 次要按鈕、品牌故事 = 文字連結(500、文字底線);按鈕與上面的字距 24*/
html body .o-center #story { padding: var(--o-pad) 0; }
html body .o-center #story .rj-in { column-gap: var(--s-8); row-gap: var(--s-7); align-items: start; }

html body .o-center #story .rj-en { font-family: "Inter Tight", Inter, sans-serif; font-weight: 400; font-size: clamp(44px, 6vw, 88px); line-height: 1; letter-spacing: -.01em !important; }

html body .o-center #story .rj-side { border-top: 0; padding-top: 0; }
html body .o-center #story .rj-zh { margin: 0 0 var(--s-4); }
html body .o-center #story .sl-name { margin: 0 0 var(--s-5); line-height: 1.85; }
html body .o-center #story .sl-name b { font-size: var(--t-body) !important; font-weight: 500; color: #3B5348; }
html body .o-center #story .rj-links { align-items: center; gap: var(--s-3) var(--s-3); }
html body .o-center #story .rj-links .btn-ghost:hover { border-color: var(--ln-act); }
/*跟上面文字左緣切齊*/
html body .o-center #story .rj-links .tlink { margin-left: 0; border-bottom: 0; padding-bottom: 0; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
/*再用筆畫頂端對齊
 英文字頂在行框下 0.114em(Inter Tight、行高 1),中文句字頂在行框下 16.5px(32 字、行高 59.2)→ 英文往下推 16.5px − 0.114em
 (中文句改字級時這個 16.5 要跟著重量)*/
@media (min-width: 768px) { html body .o-center #story .rj-en { margin-top: calc(16.5px - .114em); } }
/*走回生活的喜悅。改成 32px 看看」→ 24(引言)改 32(小標級)*/
html body .o-center #story .rj-zh { font-size: var(--t-h3) !important; }

html body .o-center #story .sl-name { margin-bottom: 1.85em; }

/*
 原本四邊框 + 圓角 8 + 左右內距 16 → 字比上下其他頁尾字往右縮 17。改成只留上下兩條線(深底白 20%)、左右內距 0、上下內距 12*/
html body .ft .ft-legal .legal-notice { border-width: 1px 0; border-radius: 0; padding: var(--s-3) 0; }
/*上方那條是頁尾上半部(.ft-top)的底線*/
html body .ft .ft-top { border-bottom: 0; }

/*
 ① 有框按鈕的箭頭:文字「→」換 SVG(標記在 build-opt2.py;全站 5 顆次要按鈕一起換),箭頭 16×16*/
html body .o-center .btn > svg { width: 16px; height: 16px; flex: none; }
/* ② 綠色面板「撥打電話」號碼原本換到第二行(按鈕 56 高)→ 放回同一行,跟「線上預約」一樣 48 */
html body .o-center .now-tel { flex-direction: row; gap: var(--s-2); white-space: nowrap; }
html body .o-center .now-tel span { white-space: nowrap; }
/* ③「休診/已結束」標籤:綠色面板 26、週班表 30 和 20 → 統一高 28、左右內距 12 */
html body .o-center :is(.nr-s, .sl .now-tag) { display: inline-flex; align-items: center; height: 28px; padding: 0 var(--s-3); line-height: 1; box-sizing: border-box; border-radius: 999px; }
/* ④ 門診時間與日期的數字改 Inter(系統:英文與數字用 Inter;電話號碼本來就是),大小照舊 15 */
html body .o-center :is(.nr-t small, .sl-t small, .day-date) { font-family: Inter, sans-serif; }
/* ⑤ 粗體 700 → 500(全站只用 400/500):下一診、復健狀態、今天/明天、看診中標籤 */
html body .o-center .now-next b, html body .o-center .rh-pill, html body .o-center .day-tag, html body .o-center .nr-now .nr-s { font-weight: 500; }
/*右緣不對齊任何東西 → 跟下面綠色門診面板左右切齊*/
html body .o-center #hours > .wrap > .hh-ann { max-width: none; }

/*分兩類
 - 左欄:今天- 週二 → 小標「門診」→ 下一診、早/午/晚三列、門診說明 → 一條線 → 小標「復健治療」→ 狀態標籤+下一個時段 → 規則三點(白圓點)
 - 兩個小標同樣式:18、字重 500、米白 #EAE5DA(深綠底上的小標用米白);小標到內容 8;兩類之間上下各 24、中間一條白 20% 線
 - 狀態標籤同「休診/已結束」:白框、高 28;手機標籤和句子上下排*/
html body .o-center #hours .now-card { grid-template-areas: "k btns" "cat btns" "next btns" "main btns" "note btns" "rehab btns"; }
@media (max-width: 1024px) { html body .o-center #hours .now-card { grid-template-areas: "k" "cat" "next" "main" "note" "rehab" "btns"; } }
html body .o-center #hours .now-card :is(.now-cat, .rh-k) { margin: 0 0 var(--s-2); font-size: var(--t-body); font-weight: 500; line-height: 1.85; color: #EAE5DA; }
html body .o-center #hours .now-card .now-cat { grid-area: cat; margin-top: var(--s-5); }
html body .o-center #hours .now-card .now-k { margin-bottom: 0; }   /* 原本 6:今天 → 小標「門診」才會跟線 → 小標「復健治療」一樣是 24 */
html body .o-center #hours .now-card .rehab-card { grid-area: rehab; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "k k" "pill main" "note note"; column-gap: var(--s-3); align-items: center; margin: var(--s-5) 0 0; padding: var(--s-5) 0 0; border: 0; border-top: 1px solid var(--ln-dk); border-radius: 0; background: none; color: #fff; }
html body .o-center #hours .now-card .rh-k { grid-area: k; }
html body .o-center #hours .now-card .rh-main { grid-area: main; margin: 0; color: #fff; }
html body .o-center #hours .now-card .rh-pill { grid-area: pill; justify-self: start; display: inline-flex; align-items: center; height: 28px; margin: 0; padding: 0 var(--s-3); border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; line-height: 1; color: #fff; white-space: nowrap; }
html body .o-center #hours .now-card .rh-pill.open { background: #EAE5DA; border-color: #EAE5DA; color: #3B5348; }
html body .o-center #hours .now-card .rh-note { grid-area: note; margin: var(--s-3) 0 0; padding: 0; list-style: none; color: #fff; }
html body .o-center #hours .now-card .rh-note li { position: relative; padding-left: var(--s-4); line-height: 1.85; }
html body .o-center #hours .now-card .rh-note li::before { content: ""; position: absolute; left: 0; top: calc(.925em - 2px); width: 4px; height: 4px; border-radius: 50%; background: #fff; }
@media (max-width: 767px) {
  html body .o-center #hours .now-card .rehab-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "k" "pill" "main" "note"; row-gap: var(--s-2); }
}

/*
 膠囊高 48、圓章 32 → 圓章離膠囊上/下/左都 = (48 − 32) ÷ 2 = 8(原本照文字內距 24,圓心偏右 16)*/
html body .o-center .df:has(> .d) { padding-left: calc((var(--btn-h) - 32px) / 2); }

/*
 虛線 1px、淺底不會動的線色 #CECAC1,圓角同時段小卡 8;沒有底色 → 跟有門診的小卡一眼分得出來*/
html body .o-center .day .sl-off { border: 1px dashed var(--ln); border-radius: 8px; background: transparent; }


html body .o-center .now-tip .nw { display: inline-block; white-space: nowrap; }

/*
 樣式同「已結束」:淡綠底深綠字、高 28;今天欄(淡綠底)改白底。同一格原本另有客戶程式加的「今日休診」,意思重複 → 不顯示,所有日子的休診格長一樣*/
html body .o-center .day .sl-off .off-tag { display: inline-flex; align-items: center; height: 28px; padding: 0 var(--s-3); border-radius: 999px; background: #E8EEEA; color: #3B5348; font-size: var(--t-body); line-height: 1; white-space: nowrap; }
html body .o-center .day .sl-off .now-tag { display: none; }

/*客戶程式加的),過去的時段改用變淡表示
 原因:只有今天欄的小卡多一行標籤,整列被撐高,其他五欄底下留白;今天的逐診狀態上面綠卡已經講了
 - 已結束的時段淡到 50%(= 已過去的日子整欄 50%,過去只有一種說法);正在看診的時段靠米白底凸顯*/
html body .o-center .week .sl .now-tag { display: none; }
html body .o-center .week .sl.done { opacity: .5; }

/*
 - 欄頭 = 卡片頂端一條客戶綠色帶:貼齊卡片上、左、右邊,圓角同卡片 12(貼邊、間距 0 → 同心);日期白字、「今天」米白實心膠囊 28
 - 色帶靠負邊距貼邊、內距補回,字的位置跟其他五欄一模一樣,各列照樣對齊
 - 卡片其餘照舊:淡綠底、白色時段小卡*/
/* 各天卡片的透明邊框拿掉(原本一般 1、今天 2,今天的字會多偏 1px,色帶也貼不到卡邊);欄頭到第一張小卡 10 → 24(間距階) */
html body .o-center #hours .day { border-width: 0; }
html body .o-center #hours .day .day-h { margin-bottom: var(--s-5); }
/* 今天的色帶:上/左/右貼卡邊(負邊距 16 = 卡片內距),內距 16 四邊一樣;色帶底到第一張小卡 8(= 小卡之間的距離),字和小卡位置跟其他五欄完全一樣 */
html body .o-center #hours .day.today .day-h { margin: calc(-1 * var(--s-4)) calc(-1 * var(--s-4)) var(--s-2); padding: var(--s-4); border-radius: 12px 12px 0 0; background: var(--c-green); }
html body .o-center #hours .day.today :is(.day-h b, .day-date) { color: #fff; }
html body .o-center #hours .day.today .day-tag { display: inline-flex; align-items: center; height: 28px; padding: 0 var(--s-3); border-radius: 999px; background: #EAE5DA; color: #3B5348; line-height: 1; }
/* 各天卡片的內容欄不准被撐寬:1100–1440 寬卡片只有 152–158,「圓章 32 + 醫師名字」那行放不下,原本把整欄撐寬,時段小卡和今天的色帶都超出卡片右緣 3–9 */
html body .o-center #hours .week > .day { grid-template-columns: minmax(0, 1fr); }

/*
 原本 1440:公告→綠卡 48、綠卡→篩選 28、篩選→週表 20、週表→說明 16 → 一律 40(間距階);手機一律 28。手機「左右滑動」提示算週表的一部分,跟週表維持 8*/
html body .o-center #hours { --hh-gap: var(--s-7); }
@media (max-width: 767px) { html body .o-center #hours { --hh-gap: var(--s-6); } }
html body .o-center #hours > .wrap > .hh-ann { margin-bottom: var(--hh-gap); }
html body .o-center #hours .now-pair { margin: 0 0 var(--hh-gap); }
html body .o-center #hours .docfilter { margin-bottom: var(--hh-gap); }
html body .o-center #hours > .wrap > .note { margin-top: var(--hh-gap); }
/*其餘跟其他五天一模一樣:白底卡、淡綠時段小卡、休診膠囊淡綠(原本今天卡淡綠底+白小卡,顏色反過來)*/
html body .o-center #hours .day.today { background: #fff; }
html body .o-center #hours .day.today .sl:not(.sl-off):not(.now) { background: #E8EEEA; }

/*
 原本過去的日子整張卡 50%(白卡透出米色底 → 卡和小卡都變灰),今天已結束的只有小卡 50%(疊在白卡上 → 很淺)
 → 一律卡片維持白底,只讓時段小卡(連同裡面的字)和日期字淡到 50%
*/

/*
 六欄要放得下,每天的卡至少 162(「圓章 32 + 醫師名字」那行 + 小卡內距 + 卡片內距)→ 整排 6×162 + 5×12 = 1032
 1025 以上但這區寬度不到 1032(螢幕約 1100–1440)→ 卡片固定 208(放得下「早診 40 + 等寬時間 101.6」+ 兩層內距 64,時間不換行)一排排開、可左右滑、停在卡片開頭;各列照樣對齊。1024 以下照舊(平板三欄兩排、手機一排滑)*/
html body .o-center #hours > .wrap { container: hours / inline-size; }
@media (min-width: 1025px) {
  @container hours (max-width: 1079px) {
    html body .o-center #hours .week { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 216px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding-bottom: var(--s-3); }
    html body .o-center #hours .week > .day { scroll-snap-align: start; }
    html body .o-center #hours .swipe-hint { display: block; margin: 0 0 var(--s-2); }
  }
}
/* 手機週表滑動的停靠點要算進週表左內距 16(原本停在週表外緣,卡片貼到螢幕邊 4,今天定位也被拉回去) */
@media (max-width: 767px) { html body .o-center #hours .week { scroll-padding-inline: 16px; } }

/*
 - 過去的日子:整張卡 50%(客戶原本的做法,白卡透出米色)
 - 今天已結束的時段:小卡疊在白卡上,直接 50% 只會透出白 → 底色直接調成「透出米色」那個色(小卡色與米色各半;休診格 = 白與米色各半)
 裡面的字、圓章、膠囊淡 50%,看起來跟過去日子的時段一樣*/
html body .o-center #hours .week .sl.done { opacity: 1; }
html body .o-center #hours .day:not(.past) .sl.done:not(.sl-off) { background: color-mix(in srgb, #E8EEEA 50%, #EAE5DA); }
html body .o-center #hours .day:not(.past) .sl.done.sl-off { background: color-mix(in srgb, #fff 50%, #EAE5DA); border-color: color-mix(in srgb, #CECAC1 50%, #EAE5DA); }
html body .o-center #hours .day:not(.past) .sl.done > * { opacity: .5; }
/*差在周圍:週一整張卡淡成米白、今天的卡是白 → 同色小卡放在不同底上看起來不同
 → 「淡」只發生在時段小卡上:過去的日子也維持白卡,日期字淡 50%,每張小卡用跟今天已結束一樣的「透出米色」淡法*/
html body .o-center #hours .day.past { opacity: 1; }
html body .o-center #hours .day.past .day-h { opacity: .5; }
html body .o-center #hours .day.past .sl:not(.sl-off) { background: color-mix(in srgb, #E8EEEA 50%, #EAE5DA); }
html body .o-center #hours .day.past .sl.sl-off { background: color-mix(in srgb, #fff 50%, #EAE5DA); border-color: color-mix(in srgb, #CECAC1 50%, #EAE5DA); }
html body .o-center #hours .day.past .sl > * { opacity: .5; }

/*
 - 「早診」包成固定寬一格 = 圓章 32 + 圓章到名字的間距 8 → 時間左緣 = 下面醫師名字左緣(放不下時時間整段換到下一行)
 - 「早診」18 與時間 15 照底線對齊時,時間的字心比中文低 1.4 → 時間往上提 .093em(= 1.4),兩者上下置中*/
html body .o-center .week .sl-t { display: flex; flex-wrap: wrap; align-items: baseline; }
html body .o-center .week .slot-k { flex: 0 0 calc(32px + var(--s-4)); margin: 0; }   /* class 原本叫 sl-k,跟區塊小標 .sl-k 撞名、吃到下距 24,時間那行被撐高 → 改名 slot-k */
html body .o-center .week .sl-t small { translate: 0 -.093em; }
/* 時間數字改等寬(每個時段的時間一樣寬):不然 08:30–12:00 和 14:00–17:00 寬度不同,卡片剛好在邊界時同一排有的換行、有的不換 */
html body .o-center .week .sl-t small { font-variant-numeric: tabular-nums; }
/*不要連續」→ 圓章到醫師名字 8 → 16,「午診」那格同步 48(= 32 + 16)
 時間仍對齊名字左緣,「午診」到時間空出約 10。滑動版卡寬跟著 208 → 216(48 + 時間 101.6 + 兩層內距 64);六欄門檻跟著變:每天至少 170 → 6×170 + 5×12 = 1080*/
html body .o-center .week .sl-d { gap: var(--s-4); }

/*
 - 已結束/過去的時段小卡 = 原本的淡綠 #E8EEEA 透明 50%;休診格沒有底色,虛線也 50%;裡面的字、圓章、膠囊照舊 50%
 - 過去的日子:白卡也透明 50%(米色透出來);今天這天還沒過完,白卡不透明*/
html body .o-center #hours .day.past { background: rgba(255, 255, 255, .5); }
html body .o-center #hours :is(.day.past .sl, .day:not(.past) .sl.done):not(.sl-off) { background: rgba(232, 238, 234, .5); }
html body .o-center #hours :is(.day.past .sl, .day:not(.past) .sl.done).sl-off { background: transparent; border-color: rgba(206, 202, 193, .5); }
/*
 條件:今天這張卡裡已經沒有「有醫師、還沒結束」的時段(客戶程式每分鐘更新 .done,這裡自動跟著切);綠色欄頭照舊標今天
 還沒結束的休診格也一起淡(整天門診已結束)*/
html body .o-center #hours .day.today:not(:has(.sl:not(.sl-off):not(.done))) { background: rgba(255, 255, 255, .5); }
html body .o-center #hours .day.today:not(:has(.sl:not(.sl-off):not(.done))) .sl:not(.sl-off) { background: rgba(232, 238, 234, .5); }
html body .o-center #hours .day.today:not(:has(.sl:not(.sl-off):not(.done))) .sl.sl-off { background: transparent; border-color: rgba(206, 202, 193, .5); }
html body .o-center #hours .day.today:not(:has(.sl:not(.sl-off):not(.done))) .sl > * { opacity: .5; }

/*讓我以為下方三個時段是週三的;其實是今天週二的」)
 原本:今天- 週二 → 門診 → 下一診 明天… → 早/午/晚三列(大字的「下一診」像是三列的標題)
 改成:今天- 週二 → 門診 → 早/午/晚三列 → 下一診 明天…(看完今天的狀態,再給下一步)→ 門診說明 → 復健*/
html body .o-center #hours .now-card { grid-template-areas: "k btns" "cat btns" "main btns" "next btns" "note btns" "rehab btns"; }
@media (max-width: 1024px) { html body .o-center #hours .now-card { grid-template-areas: "k" "cat" "main" "next" "note" "rehab" "btns"; } }
html body .o-center #hours .now-card .now-next { margin: var(--s-5) 0 0; }

/*
 時間過了的列一律淡,不管有沒有醫師(nr-past 由 build-opt2.py 替換客戶程式加上);只有還能去的列全亮。淡度跟週表一樣 50%(原本已結束列是 62%)*/
html body .o-center #hours .now-card :is(.nr-done, .nr-past) { opacity: .5; }
/*原本 18 比下面「下一診」24 還小 → 24、字重 500*/
html body .o-center #hours .now-card .now-k { font-size: var(--t-lead) !important; font-weight: 500; }
/*臨時休診與代診以官方 LINE 公告為準。」改 14、前面加 *
 改成註腳後貼著上面「下一診」:間距 14 → 8(註腳離它說明的句子 8,同 *3D 那條)*/
html body .o-center #hours .now-card .now-note { margin-top: var(--s-2); font-size: 14px !important; line-height: 1.6; }
html body .o-center #hours .now-card .now-note::before { content: "*"; margin-right: 2px; }

html body .o-center #hours .now-card .now-note { margin-top: var(--s-4); }
/*
 - 說明句離「撥打電話」12 + 2 → 24
 - 整組(第一顆按鈕頂 → 說明句最後一行字底)在灰線高度內上下置中:說明句行框底下多半個行距(7.5),用負下距扣掉,置中就以字為準*/
@media (min-width: 1025px) {
  html body .o-center #hours .now-btns .now-tip { margin: calc(var(--s-5) - 12px) 0 -7.5px; }
}

/*
 = Banner 下「今天」條的小標(本來就 700);門診綠卡的「門診」「復健治療」;門診區公告卡的「公告」*/
html body .o-center #hours .now-card :is(.now-cat, .rh-k) { font-weight: 700; }
html body .o-center .hh-ann b { font-weight: 700; }

/*同一行、同位置(對齊醫師名字),不多一行
 字是中文 → 18(中文地板)、不做數字的上提;跟整格一起淡 50%。休診格沒有時間,照舊*/
html body .o-center #hours .day.today .sl.done:not(.sl-off) .sl-t small { display: none; }
html body .o-center #hours .day.today .sl.done:not(.sl-off) .sl-t::after { content: "已結束"; font-size: var(--t-body); line-height: inherit; }

/*
 - 上排四欄(照客戶 v2 原本的骨架):標誌+兩顆按鈕 | 選單 | 診所 | 門診;按鈕不再獨立一排,上排底下保留一條線(= 原本「按鈕下方那條」)
 - 欄位小標(選單/診所/門診)粗體,同「門診/復健/公告」這組分類小標
 - 法律說明:寬螢幕兩欄並排(客戶 v2 原本就是兩欄);轉錄聲明上下線;最後一排左版權、右預覽版標記;線上下各 40*/
@media (min-width: 1025px) { html body .ft .ft-top { grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); } }
html body .ft .ft-top { column-gap: var(--s-7); padding-bottom: var(--s-7); border-bottom: 1px solid var(--ln-dk); }
html body .ft .ft-id { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-6); }
html body .ft .ft-id .ft-cta { display: grid; gap: var(--s-3); width: 100%; max-width: 280px; padding: 0; border: 0; }
html body .ft .ft-id .ft-cta .btn { width: 100%; }
html body .ft .ft-h { font-weight: 700; }
html body .ft .ft-nav nav { display: grid; gap: var(--s-2); }
html body .ft .ft-nav nav a { color: #fff; text-decoration: none; font-size: var(--t-body); line-height: 1.6; }
html body .ft .ft-nav nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
html body .ft .ft-legal { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s-7); padding-top: var(--s-7); }
html body .ft .ft-legal > ul { grid-column: 1 / -1; grid-row: 1; }
html body .ft .ft-legal > .legal-notice { grid-column: 1 / -1; grid-row: 2; margin-top: var(--s-5); }
html body .ft .ft-legal > .ft-c { grid-column: 1; grid-row: 3; margin-top: var(--s-5); }
html body .ft .ft-legal > .o-pv { grid-column: 2; grid-row: 3; margin-top: var(--s-5); text-align: right; }
@media (min-width: 901px) { html body .ft .ft-legal li.ft-wide { grid-column: auto !important; } }
@media (max-width: 767px) {
  html body .ft .ft-id .ft-cta { max-width: none; }
  html body .ft .ft-nav nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html body .ft .ft-legal { grid-template-columns: minmax(0, 1fr); }
  html body .ft .ft-legal > .o-pv { grid-column: 1; grid-row: 4; margin-top: var(--s-2); text-align: left; }
}
/* 頁尾選單手機也要顯示:客戶 v2 舊樣式在 767 以下把 .ft-nav 藏起來*/
@media (max-width: 767px) { html body .ft .ft-nav { display: block; } }

/* together.」:英文大字同全站英文標語(Inter Tight 400、-.01em、客戶綠),推到抽屜底部*/
html body .rr-drawer .rr-slogan { margin: auto 0 0; padding-top: var(--s-7); font: 400 32px/1.05 "Inter Tight", Inter, sans-serif; letter-spacing: -.01em !important; color: var(--c-green); }

/*
 不新增級數:在系統既有的「一般卡 24」和「大面板 40」之間平滑過渡 —— 1100 寬以下 24、1800 寬以上 40(1440 ≈ 32);同排卡片同寬 → 內距一定一樣*/
html body .o-center { --info-pad: clamp(24px, calc((100vw - 1100px) * 16 / 700 + 24px), 40px); }
html body .o-center #adult .sl-tc-b,
html body .o-center #voices .rv-c > figure,
html body .o-center #team .sl-docs3 > li { padding: var(--info-pad); }

/* together.」
字級 = 11.1cqw:字母各包一格後沒有字距微調,這句在 100px 時實寬 900.8 → 100/9.008),淺色實字米白 #EAE5DA
 - 位置:轉錄聲明之後、最底版權列之前;上距 80,到版權列 40(手機 40 / 24)
 - 動畫:字母依序從自己底下的隱形線升上來;離開畫面收回、再進來重播;減少動態時直接顯示*/
html body .ft .ft-legal > .ft-word { grid-column: 1 / -1; grid-row: 3; margin-top: var(--s-9); container-type: inline-size; overflow: hidden; }
html body .ft .ft-word-in { margin: 0; font: 400 11.1cqw/1.25 "Inter Tight", Inter, sans-serif; letter-spacing: -.02em !important; color: #EAE5DA; white-space: nowrap; }
html body .ft .ft-word .ftl { display: inline-block; letter-spacing: -.02em !important; transform: translateY(115%); transition: transform .95s cubic-bezier(.2, .85, .3, 1) calc(var(--i) * .06s); }
html body .ft .ft-word.is-in .ftl { transform: none; }
@media (prefers-reduced-motion: reduce) { html body .ft .ft-word .ftl { transform: none; transition: none; } }
html body .ft .ft-legal > :is(.ft-c, .o-pv) { grid-row: 4; margin-top: var(--s-7); }
@media (max-width: 767px) {
  html body .ft .ft-legal > .ft-word { margin-top: var(--s-7); }
  html body .ft .ft-legal > .ft-c { margin-top: var(--s-5); }
  html body .ft .ft-legal > .o-pv { grid-row: 5; margin-top: var(--s-2); }
}
/*標籤後面照樣接內容,跟其他條同寫法*/
html body .ft .ft-legal .ft-b2 { display: inline; }   /* 客戶樣式把標籤設成行內小方塊,換行會被包在方塊裡 → 改回一般行內字 */
html body .ft .ft-legal .ft-b2::before { content: "\A"; white-space: pre; }
/*只在按鈕跟選單並排的寬度(768 以上)
 選單欄:小標 32.4 + 下距 10 + 6 個連結 + 5 個間距 8;「交通位置」字底在最後一個連結行框底往上 (連結高 ÷ 2 − 9.08)
 → 字底離欄頂 = 91.48 + 5.5 × 連結高(1200 以上連結高 28.8 → 249.9;768–1199 客戶設成好點的 44 → 333.5,量過一致)
 標誌那欄做成這個高度,標誌在上、按鈕貼底;不靠「撐滿整排」,因為 1280 寬時「診所」那欄比選單高*/
@media (min-width: 768px) { html body .ft .ft-id { --ftl-h: 44px; height: calc(91.48px + 5.5 * var(--ftl-h)); justify-content: space-between; } }
@media (min-width: 1200px) { html body .ft .ft-id { --ftl-h: 28.8px; } }

/*
 1. 中文 16 → 18(中文地板):週表「左右滑動」提示、疼痛問題「回到依療程找」*/
html body :is(.o-center .swipe-hint, .tx-back) { font-size: var(--t-body) !important; }   /* 「回到依療程找」不在 .o-center 裡 */
/* 2. 色板外的字色:三段說明(.lead)藍灰 #4E535A → 內文灰 #505150;醫師卡職稱 #6B6C6A → 次要灰 #5C5D5B */
html body .o-center .lead { color: #505150; }
html body .o-center .sd-r { color: #5C5D5B; }
/* 3. 圓角收進 8/12/膠囊:右側欄按鈕與漢堡鈕 4 → 8;地圖的 P 小方塊 6 → 8 */
html body .o-body > .rail .rr-menu { border-radius: 8px; }   /* opt2.css 寫的 4 是 .o-body > .rail-r 起頭,要同樣明確才蓋得過 */
html body .o-center #visit :is(.mp-near, .mp-lg) .mp-p { border-radius: 8px; }   /* map.css 裡 1025/1440 那兩條 6px 也已直接改成 8 */
/* 4. 字距:中文 .05em、全大寫英文 .1em、其他英數 .05em */
html body .rail-l ol a span, html body .rail-r .rr-t { letter-spacing: .05em !important; }
html body .rail-r .rr-t small, html body .rail-l .rl-cur b { letter-spacing: .05em !important; }
html body .rail-r .rr-top-t { letter-spacing: .1em !important; }
html body .o-center #voices .rv-k { letter-spacing: .05em !important; }
/* 5. 字重只用 400/500(分類小標 700 例外):左側欄編號 600 → 500;首屏九格條編號 700 → 500 */
html body .rail-l .rl-cur b, html body .hero .hc-n b { font-weight: 500; }
/* 6. 評論綠卡大數字回字級表:「5.0」64 → 56(特大)、「35」44 → 42(大標) */
html body .o-center #voices .rv-num { font-size: var(--t-xl); }
html body .o-center #voices .rv-n span { font-size: var(--t-h2); }
/* 7. 深底上的線只用兩階(白 20% 不會動的、白 70% 可以按的):首屏九格條外框 14% → 20%;暫停鈕外框 60% → 70% */
html body .hero .hero-nav { border-color: var(--ln-dk); }
html body .hero .hn-pause { border-color: var(--ln-dk-act); }

/*
 主要:首屏「嘉義- 友忠路」那行、首屏英文標語、頁尾地址電話門診;次要:綠色帶英文副標、頁尾轉錄聲明、版權(法律說明本來就 72)*/
html body .hero :is(.hero-eyebrow, .hero-en), html body .ft .ft-col p { color: #fff; }
html body .o-center #adult .band-pair, html body .ft :is(.legal-notice, .ft-c) { color: rgba(255, 255, 255, .72); }
/*用深底「不會動的線」那階;70% 留給可以按的外框*/
html body .o-center #hours .now-card :is(.nr-s, .rh-pill) { border-color: var(--ln-dk); }
html body .o-center #hours .now-card .nr-now .nr-s { border-color: #EAE5DA; }   /* 「看診中」是米白實心標籤,框維持跟底同色 */

/*
 - 大小:螢幕寬 12.5%(1440 ≈ 180;最小 96、最大 240),原本 103(疼痛問題)/ 274(兒童早療)
 - 位置:都從區塊頂往下 40(手機 24),原本疼痛問題貼頂 0
 - 速度:兩區一樣快(流動時間依一半長度換算,寫在 --mq-t,下一條)*/
html body .o-center :is(#find, #kids) .bgw-mq .bgw-tr { top: var(--s-7); }
html body .o-center :is(#find, #kids) .bgw-mq .bgw-tr span { font-size: clamp(77px, 10vw, 192px); }   /*縮小一點,維持現在上下 padding」→ 12.5vw(96–240)整組 ×0.8;區塊版面不動,opt2-bgw.js 照舊把字放在區塊頂與灰線正中間*/
@media (max-width: 767px) { html body .o-center :is(#find, #kids) .bgw-mq .bgw-tr { top: var(--s-5); } }
/* 背景大字流動速度兩區一樣:1440 寬時每秒約 30px(= 兒童早療原本的速度)。8 份之後一半的長度(字距 −.02em):Just Right 20.4 × 字級、Just Joy 17.6 × 字級
   → 流一圈的時間 = 一半長度 ÷ 30:Just Right 122 秒、Just Joy 105 秒(字級跟螢幕寬一起變,兩區速度一直一樣) */
html body .o-center #find .bgw-mq .bgw-tr { animation-duration: 98s; }   /* 字縮 0.8 → 整條也短 0.8,時間跟著 ×0.8(122→98)速度才不變 */
html body .o-center #kids .bgw-mq .bgw-tr { animation-duration: 84s; }   /* 105→84 */

html body .o-center :is(#find, #kids) .bgw-mq .bgw-tr span { letter-spacing: -.02em !important; }

/* 全站入場動畫「階梯上滑」
 每一拍上滑 40 + 淡入,1 秒,一拍間隔 0.12 秒;進場跑完 JS 加 en-done,下面的規則就不再套用,元素回到原本樣子*/
.en-on .mo [data-reveal], .en-on [data-reveal] { opacity: 1 !important; transform: none !important; }   /* 原本 3 處淡入關掉,由這套接手 */
.en-on [data-en]:not(.en-done) { opacity: 0; transform: translateY(40px); transition: opacity 1s cubic-bezier(.33, 1, .68, 1) var(--en-d, 0s), transform 1s cubic-bezier(.33, 1, .68, 1) var(--en-d, 0s); }
.en-on [data-en].en-in:not(.en-done) { opacity: 1; transform: none; }

/*
 跑版原因:system.css 的按鈕規則把「線上預約」在手機也撐出來,擠得「主選單」折成兩行的橢圓
 → 手機藏掉「線上預約」(底部快捷列已經有「預約」);「主選單」改成跟桌機右欄同一顆漢堡鈕(綠底白線 48×48、圓角 8),平板也一樣*/
@media (max-width: 900px) {
  html body .hd .mnav summary { display: grid; place-items: center; width: var(--btn-h); height: var(--btn-h); min-height: 0; padding: 0; border: 0; border-radius: 8px; background: var(--c-green); transition: background-color .2s; }
  html body .hd .mnav summary:hover, html body .hd .mnav[open] summary { background: var(--c-green-dk); }
  .mnav-bars { display: grid; gap: 4px; }
  .mnav-bars i { display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff; transition: transform .3s, opacity .3s; }
  .mnav[open] .mnav-bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .mnav[open] .mnav-bars i:nth-child(2) { opacity: 0; }
  .mnav[open] .mnav-bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  html body .hd .mnav nav { top: calc(100% + 8px); }
}
@media (max-width: 767px) {
  html body .hd .hd-cta { display: none; }
  html body .hd .hd-logo img { width: auto; height: 32px; }   /* 原本 43 高 → 32 */
}


@media (max-width: 767px) {
  /* ① 綠色帶三張卡只剩英文:客戶手機樣式把號碼、中文標題、說明藏起來(他手機原本做成分頁鈕),改成卡片後要放回來 */
  html body .o-center .sl-3j :is(.jt-n, .jt-h, .jt-s) { display: block; }
  /* ② 疼痛問題分頁鈕「BY TREATMENT」整串放不下(107 > 95)→ 三顆都一個字一行(BY / AREA…),排法一致、中文標題對齊;內距左右 8 → 4,344 寬也放得下 TREATMENT */
  html body .o-center #find .tabs-f .tab { padding-inline: var(--s-1); }
  html body .o-center #find .tabs-f .tab em { word-spacing: 100vw; }
  /* ③ 評論分頁鈕中文 15 → 18(中文地板) */
  html body .o-center #voices .rv-tab { font-size: var(--t-body); }
  html body .o-center #voices .rv-tab .t-s { font-size: var(--t-body) !important; white-space: nowrap; }   /* 344 寬時格線把字欄算窄,「看診」會折成兩行 */
  /* ⑤ 綠卡中文標題手機 24(原本就這樣設計,但被「六張卡同一套」那條含 #find 的規則以 ID 權重蓋成 32,344 寬會折行)→ 加 #adult 壓回 */
  html body .o-center #adult .sl-3j li a .jt-h { font-size: var(--t-lead) !important; }
}
@media (max-width: 560px) {
  /* ④ 初診流程:客戶手機是左圖右文,字放大後右欄太窄、照片下面空一大塊 → 跟桌機同一張卡:照片在上、字在下;
     照片改正方形、取景偏上 30%(四張人物的頭都在畫面中上段,不會被切) */
  html body .o-center .first-photo .steps4 li { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: none; column-gap: 0; row-gap: 0; align-items: stretch; }
  html body .o-center .first-photo .steps4 li :is(.st-img, h4, p), html body .o-center .first-photo .steps4 li::before { grid-area: auto; }
  html body .o-center .first-photo .steps4 li::before { padding: var(--s-5) var(--s-5) 0; }
  html body .o-center .first-photo .steps4 h4 { margin-bottom: var(--s-5); padding: 0 var(--s-5); }
  html body .o-center .first-photo .steps4 p { padding: 0 var(--s-5) var(--s-5); font-size: var(--t-body) !important; }
  html body .o-center .first-photo .st-img img { aspect-ratio: 1 / 1; object-position: 50% 30%; }
}

/*看得出可以點*/
@media (min-width: 768px) { html body .o-center .sl-docs3 li[data-doc] { cursor: pointer; } }

/*
中文跟左側欄直排字同一套(18、字距 .28em、深綠);英文用全站英文小字(Inter 12、.1em、客戶綠)
 螢幕太矮放不下:先收英文、再收整組(門檻是量出來的,見下)*/
@media (min-width: 1200px) {
  html body .o-body > .rail-r .rr-brand { display: flex; flex-direction: column; align-items: center; gap: var(--s-5); margin: 0 0 var(--s-5); writing-mode: horizontal-tb !important; }
  html body .o-body > .rail-r .rr-brand .rb-zh { writing-mode: vertical-rl; font-size: var(--t-body); line-height: 1; letter-spacing: .28em; color: var(--c-green-dk); }
  html body .o-body > .rail-r .rr-brand .rb-en { writing-mode: vertical-rl; font: 400 var(--t-en-s)/1 Inter, sans-serif; letter-spacing: .1em !important; color: var(--c-green); }
}
/* 門檻量出來的(1440/1920 同):直排字底到聯絡按鈕頂要留 ≥ 24。整組(中 138 + 24 + 英 152)要螢幕高 ≥ 847;只留中文要 ≥ 671。漢堡鈕不准被擠扁*/
@media (min-width: 1200px) {
  html body .o-body > .rail-r :is(.rr-menu, .rr-brand, .rr-list) { flex-shrink: 0; }
}
@media (min-width: 1200px) and (max-height: 846px) { html body .o-body > .rail-r .rr-brand .rb-en { display: none; } }
@media (min-width: 1200px) and (max-height: 670px) { html body .o-body > .rail-r .rr-brand { display: none; } }

/*
 照客戶縮減版原樣,用客戶 v2.css 的 .inset(寬 34%、左 −24、下 −32、白框 7、影子;手機 44%、左 8、下 −28、框 4)——站規「不疊、不加影子」在這裡讓位給客戶
 外圓角 8(客戶),內圖圓角照同心鐵律 8 − 7 = 1(客戶原本 3);卡片列拿掉實景那格 → 3 欄。中間的「並排同高」版做過、換進主版後被這版取代*/
html body .o-center #kids.kv-inset .fig-wide { overflow: visible; }
html body .o-center #kids.kv-inset .fig-wide > .inset { z-index: 1; border-radius: 8px; box-shadow: 0 20px 40px -16px rgba(30, 40, 35, .45); }   /* 影子照客戶 v2.css(opt.css 早期把 .inset 影子拿掉了) */
html body .o-center #kids.kv-inset .fig-wide > .inset img { border-radius: 1px; }
@media (min-width: 768px) { html body .o-center #kids.kv-inset .sl-kids { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/*
 間距 2 → 客戶原本 8(2 是方塊排成一整條時的縫,圓形黏太近);上方漢堡鈕不在「下方」,維持圓角 8*/
@media (min-width: 1200px) {
  html body .o-body > .rail-r .rr-b { border-radius: 999px; }
  html body .o-body > .rail-r .rr-list { gap: var(--s-2); }
}
/*搬進綠卡對比只剩 1.26
 → 深底上的強調時間 = 白字 500 + 數字 Inter(同綠卡其他時間)*/
html body .o-center #hours .now-card .rh-main b { color: #fff; font-weight: 500; font-family: Inter, sans-serif; }

/*
 照站上評論卡/週班表的滑法:一張 85% 寬、露出下一張的邊、滑完一張停好(scroll-snap)、第一張左緣對齊內文(20)、不自動跑
 卡片同高,卡內各類照整排共用橫向格線(subgrid),滑動時標題、內文不會上下跳*/
@media (max-width: 767px) {
  html body .o-center :is(#first .steps4, #team .sl-docs3) { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(85%, 320px); column-gap: var(--s-4); row-gap: 0; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 20px; margin-inline: -20px; padding-inline: 20px; scrollbar-width: none; }
  html body .o-center :is(#first .steps4, #team .sl-docs3)::-webkit-scrollbar { display: none; }
  html body .o-center :is(#first .steps4, #team .sl-docs3) > li { scroll-snap-align: start; }
  html body .o-center #first .steps4 { grid-template-rows: auto auto auto 1fr; }
  html body .o-center #first .steps4 > li { grid-row: span 4; display: grid; grid-template-rows: subgrid; }
  html body .o-center #team .sl-docs3 { grid-template-rows: auto auto auto auto auto 1fr auto; }
  html body .o-center #team .sl-docs3 > li { grid-row: span 7; display: grid; grid-template-rows: subgrid; row-gap: 2px; }
  html body .o-center #team .sl-docs3 > li > .sd-ph { grid-row: 1; }
  html body .o-center #team .sl-docs3 > li > .sd-r { grid-row: 2; }
  html body .o-center #team .sl-docs3 > li > .sd-n { grid-row: 3; }
  html body .o-center #team .sl-docs3 > li > .sd-l { grid-row: 4; }
  html body .o-center #team .sl-docs3 > li > .sd-t { grid-row: 5; }
  html body .o-center #team .sl-docs3 > li > .sd-h { grid-row: 7; }
  html body .o-center #first .st-img img { aspect-ratio: 1 / 1; object-position: 50% 30%; }   /* 卡寬上限 320(大手機橫拿時卡片才不會寬到 476、高到 830);步驟照片整個手機範圍都正方形 */
}

/*確認單答案在 artifact db responses/jiayi-r2;HTML 改動在 build-opt2.py 同名段)══
 這段只有照改的部分*/

/* 第 1 條 首屏遮罩淡 20%:客戶左側、底部、上緣那幾層暗(::before)整層 ×0.8;手機底部那層(::after)同樣 ×0.8。
   電腦平板的 ::after 是四個圓角的疊角,不能動;捲動變暗的 .hero-veil 不動 */
html body .hero::before { opacity: .8; }
@media (max-width: 767px) { html body .hero::after { opacity: .8; } }
/* 第 1 條 首屏兩顆按鈕(自費療程治療、健保門診預約):同一個樣子並排,窄到放不下才折行 */
html body .hero .doors { display: flex; flex-wrap: wrap; gap: var(--s-3); }
html body .hero .doors .door-go { grid-column: auto; }
/* 第 1 條 手機首屏盡量整張:手機版首屏圖都是 4:5,首屏高 = 寬 × 1.25 圖就整張露出(內容放不下時才再長高);
   「01 / 09」圖說拿掉後,文字底部只要讓出九段細線(下 16 + 高 56)+ 間距 24 */
@media (max-width: 767px) {
  html body .hero, html body .hero .hero-in { min-height: 125vw; }
  html body .hero .hero-in { padding-bottom: 96px; }
}
/* 平板:圖說拿掉後,文字底部只讓出膠囊(下 24 + 高 72)+ 間距 40 */
@media (min-width: 768px) and (max-width: 1199px) { html body .hero .hero-in { padding-bottom: 136px; } }

/* 第 2 條 頁首「線上預約」拿掉後,平板手機的選單鈕自己推到最右邊 */
html body .hd .mnav { margin-left: auto; }

/* 第 3 條 今天條- 門診:狀態膠囊 + 醫師名字大字 + 一行補充(opt2-today.js 排)*/
html body .o-center [data-td-clinic] { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-2); }
html body .o-center .td-st { display: inline-flex; align-items: center; gap: var(--s-2); height: 28px; padding: 0 var(--s-3); border-radius: var(--r-pill); background: #E8EEEA; color: var(--c-green-dk); font-size: 14px; font-weight: 400; line-height: 1; white-space: nowrap; }   /*是膠囊嗎」→ 原本米底 = 今天條自己的底色,膠囊看不見只剩內距 → 先改反灰,再改「是不是應該跟休診同形式,淺綠底配深綠字?比較統一」→ 淡綠 #E8EEEA+深綠字*/
html body .o-center .td-st.on { background: var(--c-green); color: #fff; }
html body .o-center .td-st.on::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: td-pulse 1.6s ease-in-out infinite; }
@keyframes td-pulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { html body .o-center .td-st.on::before { animation: none; } }
html body .o-center .td-doc { display: flex; flex-direction: column; gap: 2px; }
html body .o-center .td-doc b { font-size: var(--t-lead); font-weight: 500; line-height: 1.35; color: var(--c-green-dk); }
html body .o-center .td-doc small, html body .o-center .td-nx { font-size: 16px; color: var(--c-ink); }
/* 第 3 條 今天條- 公告:每則一個連結,日期一行粗體;不只一則時疊在同一格輪播(opt2-today.js 加 .td-rot / .on)*/
html body .o-center .td-ann > span { display: grid; gap: var(--s-2); }
html body .o-center .td-an { display: block; color: var(--c-ink); text-decoration: none; }
html body .o-center .td-an-d { display: block; color: var(--c-green-dk); font-weight: 500; }
html body .o-center .td-an:is(:hover, :focus-visible) .td-an-t { text-decoration: underline; text-underline-offset: 3px; }
html body .o-center .td-ann > span.td-rot { gap: 0; }
html body .o-center .td-rot > .td-an { grid-area: 1 / 1; transition: opacity .4s, transform .4s; }
html body .o-center .td-rot > .td-an:not(.on) { opacity: 0; transform: translateY(8px); pointer-events: none; }

/* 第 8 條 背景大字不跑馬燈:只留一個字,置中不動(上下位置照舊由 opt2-bgw.js 算) */
html body .o-center .bgw-mq .bgw-tr.bgw-still { left: 50%; animation: none; transform: translateX(-50%); }
html body .o-center .bgw-mq .bgw-tr.bgw-still span { padding-right: 0; }

/* 第 10 條 評論數字從 0 跑上來時寬度不跳(opt2-count.js) */
html body .o-center .rv-sum :is(.rv-num, .rv-n > span, .rv-dist b) { font-variant-numeric: tabular-nums; }
html body .o-center .rv-n > span { display: inline-block; min-width: 2ch; text-align: right; }

/* 第 15 條 環境照片:滑鼠移到照片上,照片蓋一層黑、標題與說明置中出現(能滑過的電腦平板);手機沒有滑過,說明照舊放在照片下面 */
@media (hover: hover) and (min-width: 768px) {
  html body .o-center #space .s3g figure { position: relative; }
  html body .o-center #space .s3g figcaption { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; justify-items: center; gap: var(--s-2); padding: var(--s-5); border-radius: 12px;
    background: rgba(0, 0, 0, .55); color: #fff; text-align: center; opacity: 0; transition: opacity .3s; }
  html body .o-center #space .s3g figcaption::before { display: none; }
  html body .o-center #space .s3g figcaption b { font-size: var(--t-lead) !important; color: #fff; }
  html body .o-center #space .s3g figure:hover figcaption { opacity: 1; }
}

/* 第 16 條 預約與交通:綠底換成診所門面插畫 + 一層暗,白字照舊看得清楚;按鈕只剩自費、健保兩顆*/
html body .o-center #visit.vs-photo { background: linear-gradient(rgba(24, 30, 27, .74), rgba(24, 30, 27, .74)), #3b4a43; }   /*之前先只有深色底*/
html body .o-center #visit.vs-photo.vs-near { background: linear-gradient(rgba(24, 30, 27, .74), rgba(24, 30, 27, .74)), url("img/street-1600.webp") center 64% / cover no-repeat; }   /*老人家看不清楚」疊色 .62 → .74*/
html body .o-center #visit .paths2 { display: flex; flex-wrap: wrap; gap: var(--s-3); }

/* 第 5 條 手機快捷列 → 右下角可收合的浮動按鈕(opt2-fab.js):收起時只有一顆「預約- 聯絡」,點開往上展開五個連結
 頁面底部原本替快捷列留的 56 不用留了*/
.mbar-tg { display: none; }
@media (max-width: 767px) {
  html body { padding-bottom: 0; }
  html body .mbar, html body .mbar.kids-mode { left: auto; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: flex-end; gap: var(--s-2);
    padding: 0; background: none !important; box-shadow: none; }
  html body .mbar a, html body .mbar.kids-mode a { display: none; }
  html body .mbar.open a { display: inline-flex; align-items: center; justify-content: center; min-width: 112px; height: 48px; padding: 0 var(--s-5); border: 0; border-radius: var(--r-pill);
    background: #fff; color: var(--c-green-dk); font-weight: 500; box-shadow: 0 8px 24px -12px rgba(31, 42, 37, .45); }
  html body .mbar.open a:first-child { background: var(--c-green); color: #fff; }
  html body .mbar-tg { display: inline-flex; align-items: center; gap: var(--s-2); height: 56px; padding: 0 var(--s-5) 0 var(--s-4); border: 0; border-radius: var(--r-pill);
    background: var(--c-green); color: #fff; font-family: inherit; font-size: 16px; font-weight: 500; line-height: 1; letter-spacing: .05em; box-shadow: 0 10px 28px -12px rgba(31, 42, 37, .6); cursor: pointer; }
  html body .mbar-ic { position: relative; flex: none; width: 16px; height: 16px; }
  html body .mbar-ic i { position: absolute; left: 0; top: 7px; width: 16px; height: 2px; border-radius: 1px; background: currentColor; transition: transform .25s; }
  html body .mbar-ic i + i { transform: rotate(90deg); }
  html body .mbar.open .mbar-ic i { transform: rotate(45deg); }
  html body .mbar.open .mbar-ic i + i { transform: rotate(135deg); }
  /*以免擋到輪播 bar」:首屏在畫面上時藏到畫面下方(按不到、Tab 不會停),捲過首屏從下面升上來*/
  html body .mbar { transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .3s, visibility 0s; }
  html body .mbar.mbar-away { transform: translateY(calc(100% + 16px + env(safe-area-inset-bottom, 0px))); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .3s, visibility 0s .45s; }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) { html body .mbar, html body .mbar.mbar-away { transition: none; } }

/*HTML 改動在 build-opt2.py 同名段)══*/
/* 第 1 題 背景大字(Just Right/Just Joy)換有質感的英文字:Bodoni Moda 斜體 400*/
html body .o-center :is(#find, #kids) .bgw-mq .bgw-tr span { font-family: "Bodoni Moda", Georgia, serif !important; font-style: italic; font-weight: 400; letter-spacing: 0 !important; }
/* 第 6 題 醫療團隊只放團隊:醫師卡拿掉後,合照獨佔一整排 */
html body .o-center #team .sl-team { display: block; }
html body .o-center #team .sl-team .team3-img img { width: 100%; height: auto; aspect-ratio: 3 / 2; }   /*原本三醫師合照 16:9*/

/*提案頁 提案/疼痛問題重提-20261023/)══*/
html body #find .pw-box { display: block; }                                  /* 原本電腦版是「清單 | 面板」兩欄,改成一整塊 */
html body #find .pw { display: grid; grid-template-columns: calc(20.188% - 1.62px) minmax(0, 1fr); gap: var(--s-7); align-items: center; margin-top: var(--s-7); }   /*再縮小一點點」
 看得到的高 = 0.88 ×(第一排卡中線到第三排卡中線 = 2 ×(卡高 + 卡距 16));卡寬 =(內容寬 − 欄寬 − 72)÷ 3、卡高 = 卡寬 × 0.75
 → 欄寬 = 20.188% − 1.62px(1440 寬時 204 寬、看得到的高約 355,比上一刀小一成);垂直置中*/
/* 左:小綠人地圖,捲動時黏住;身上 6 個點(磚紅小圓+淡圈),選到的變深綠 */
html body #find .pw-gm { position: sticky; top: var(--s-7); }
html body #find .pw-fig { display: block; width: 100%; height: auto; }
html body #find .pw-dot { position: absolute; left: var(--x); top: var(--y); width: 32px; height: 32px; margin: -16px 0 0 -16px; padding: 0; border: 0; border-radius: 50%; background: rgba(150, 80, 60, .16); cursor: pointer; transition: background .2s; }
html body #find .pw-dot::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: #96503C; transition: transform .2s, background .2s; }
html body #find .pw-dot:is(:hover, :focus-visible, .hov)::after { transform: scale(1.35); }
html body #find .pw-dot.on { background: rgba(87, 122, 110, .2); } 
html body #find .pw-dot.on::after { background: var(--c-green); transform: scale(1.35); }
html body #find .pw-dot:focus-visible { outline: 2px solid var(--c-green); outline-offset: 2px; }
/* 右:生活照牆 3×3;照片下緣漸層壓一句生活裡的感覺+部位名 */
html body #find .pw-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
html body #find .pw-card { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; margin: 0; padding: 0; border: 0; border-radius: var(--r-card); overflow: hidden; background: #E8EEEA; font: inherit; text-align: left; cursor: pointer; }
html body #find .pw-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
html body #find .pw-card:hover img { transform: scale(1.04); }
html body #find .pw-t { position: absolute; left: 0; right: 0; bottom: 0; display: grid; padding: var(--s-7) var(--s-5) var(--s-5); background: linear-gradient(rgba(31, 42, 37, 0), rgba(31, 42, 37, .7)); color: #fff; }
/*平常只有部位名;那句生活描述滑過、鍵盤選到、或已選才浮出(手機沒有滑過,只看部位名,那句在說明面板裡)
現在太擠」→ 小字與部位名之間 0 → 8*/
html body #find .pw-say { margin-bottom: var(--s-2); font-size: 16px !important; line-height: 1.5; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
html body #find .pw-card:is(:hover, :focus-visible, .hov, [aria-expanded="true"]) .pw-say { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html body #find .pw-say { transition: none; } }
html body #find .pw-n { font-size: 20px !important; font-weight: 500; line-height: 1.4; word-break: keep-all; text-wrap: balance; }   /* 放不下才折,只在「- 」後面斷(build 在- 後加 <wbr>),兩行盡量平均*/
/*手機兩欄卡寬只有約 165,照小格子 16(在下方手機段)*/
html body #find .pw-noimg .pw-t { top: 0; align-content: end; background: none; color: var(--c-green-dk); }   /* 沒有照片的兩張(術後、運動傷害):淡綠底深綠字 */
/*選中的時候其他的卡片變暗」→ 選中的卡不加框,其他卡壓暗;滑過(或滑過小綠人身上的點)暗卡會亮回一大半,看得出點得到*/
/*文字要在遮罩上面」→ 壓暗改成一層綠蓋在照片上、部位名浮在遮罩上
 第三刀:「顏色怎麼跟品牌差這麼多,改成品牌顏色,透明度 -20% 左右」→ 深綠 #3B5348 × .78 改客戶綠 #577A6E × .6;第四刀「綠色太淡了,透明度減少一點」→ .7;第五刀「透明度調成 80%」→ .8
 沒照片的兩張(淡綠底深綠字)被蓋時字改白*/
html body #find .pw-card.hov img { transform: scale(1.04); }
html body #find .pw-card::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(87, 122, 110, .8); opacity: 0; transition: opacity .35s ease; pointer-events: none; }
html body #find .pw-t { z-index: 2; transition: color .35s ease; }
html body #find .pw-cards:has(.pw-card[aria-expanded="true"]) .pw-card:not([aria-expanded="true"])::before { opacity: 1; }
/*改成不要淡出」→ 滑過暗卡遮罩維持(原本退到 .4);滑過只剩照片微放大*/
html body #find .pw-cards:has(.pw-card[aria-expanded="true"]) .pw-noimg:not([aria-expanded="true"]) .pw-t { color: #fff; }
/*
 「變暗的卡片拿掉下方深色漸層,照片轉灰再蓋品牌綠」→ 被蓋的卡:漸層拿掉、照片轉黑白(滑過的暗卡也維持黑白,只是遮罩退到 .4)*/
html body #find .pw-card img { transition: transform .6s cubic-bezier(.2, .7, .2, 1), filter .35s ease; }
html body #find .pw-t { transition: color .35s ease, background .35s ease; }
html body #find .pw-cards:has(.pw-card[aria-expanded="true"]) .pw-card:not([aria-expanded="true"]) img { filter: grayscale(1); }
html body #find .pw-cards:has(.pw-card[aria-expanded="true"]) .pw-card:not([aria-expanded="true"]) .pw-t { background: none; }
html body #find .pw-card:focus-visible { outline: 3px solid #96503C; outline-offset: 3px; }
/* 說明面板插在那一排後面,整排寬 */
html body #find .pw-cards > .fw-out { grid-column: 1 / -1; margin: var(--s-2) 0; }
/* 下面第二個入口「從生活找」:跟照片牆拉開距離;這區的 J 記號都不放(10-23) */
html body #find .pw-life { margin-top: var(--s-9); }
html body #find .lf-c::before { display: none; }
html body #find .lf-c { grid-template-columns: minmax(0, 1fr); }
html body #find .lf-c-go { grid-template-columns: minmax(0, 1fr) auto; }
html body #find .lf-c-go span { grid-column: 2; }
/* 平板、手機:不放小綠人地圖(點太小),只有照片牆;手機兩欄 */
@media (max-width: 1023px) {
  html body #find .pw { grid-template-columns: 1fr; }
  html body #find .pw-gm { display: none; }
}
@media (max-width: 767px) {
  html body #find .pw-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
  html body #find .pw-t { padding: var(--s-7) var(--s-4) var(--s-4); }
  html body #find .pw-n { font-size: 16px !important; }   /* 內距 12→16 後,7 個字的部位名(手肘- 手腕- 手指)20px 放不下一行 → 16(390 寬以上一行;更窄才折,只在「- 」後面斷)*/
}
/*可以出現部位名稱」→ 點的上方浮出白色膠囊標籤;滑過照片卡、或已選的那個點也會顯示*/
html body #find .pw-tip { position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translate(-50%, 4px); padding: 4px 12px; border-radius: var(--r-pill); background: #fff; color: var(--c-green-dk); font-size: 16px; font-weight: 500; line-height: 1.5; white-space: nowrap; box-shadow: 0 6px 18px -8px rgba(31, 42, 37, .45); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
html body #find .pw-dot:is(:hover, :focus-visible, .hov, .on) .pw-tip { opacity: 1; transform: translate(-50%, 0); }
html body #find .pw-dot:is(:hover, :focus-visible, .hov, .on) { z-index: 2; }
/* 說明面板標題下那句生活描述 */
html body #find .pw-pq { margin: calc(-1 * var(--s-4)) 0 var(--s-5); font-size: var(--t-body) !important; color: #505150; }
/*200 高)收成每組一排膠囊:左邊組名、右邊膠囊;點了說明插在那一組後面*/
html body #find .pw-life .lf { display: block; }
html body #find .pw-life .lf-sub { margin-bottom: var(--s-5); }
html body #find .pw-life .lf-gs { gap: var(--s-4); }
html body #find .pw-life .lf-g { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--s-4); align-items: center; }
html body #find .pw-life .lf-q { margin: 0; }
html body #find .pw-life .lf-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
html body #find .pw-life .lf-c { display: inline-flex; align-items: center; width: auto; min-height: 44px; margin: 0; padding: 0 var(--s-5); border: 1px solid transparent; border-radius: var(--r-pill); background: #fff; color: var(--c-green-dk); font-size: 16px; line-height: 1.4; }   /*只剩白底*/
html body #find .pw-life .lf-c::after { display: none; }
html body #find .pw-life .lf-c:not([aria-expanded="true"]):hover { background: #E8EEEA; }
html body #find .pw-life .lf-c[aria-expanded="true"] { background: var(--c-green); border-color: var(--c-green); border-radius: var(--r-pill); color: #fff; }
html body #find .pw-life .lf-c-go span { margin-left: var(--s-1); color: inherit; }
html body #find .pw-life .lf-gs > .lf-out { margin: 0; }
@media (max-width: 767px) { html body #find .pw-life .lf-g { grid-template-columns: 1fr; gap: var(--s-2); } }



/*樓往右移,左邊多留給標題*/
@media (min-width: 768px) { html body .hero .hs:first-child picture img { object-position: 0% 50%; } }
/*
 每組逐格圖同一畫布(各組畫布尺寸 --cw/--ch 由 JS 帶入,頭都一樣大),疊在一起只顯示 .on 那張;大小 = 畫布 × --gm-s(.32 = 站姿身高約 103)*/
html body .gm2 { --gm-s: .32px; position: relative; display: inline-block; flex: none; width: calc(var(--cw, 229) * var(--gm-s)); height: calc(var(--ch, 335) * var(--gm-s)); pointer-events: auto; }
html body .gm2 img { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 100%; opacity: 0; }
html body .gm2 img.on { opacity: 1; }
/* 首屏:兩顆預約按鈕右邊,腳底跟按鈕底對齊 */
html body .hero .doors { align-items: flex-end; }
html body .hero .gm-greet { --gm-s: .36px; margin-left: var(--s-3); }
@media (max-width: 767px) { html body .hero .gm-greet { display: none; } }   /* 手機兩顆按鈕已占滿寬,擠下去會掉到首屏外 */
/* 標題列:站在英文大字左邊 24px(JS 算 --gm-r)、腳踩英文字基線(JS 算 --gm-b;英文大字不顯示時踩灰線) */
html body .o-center .sec-head .gm-sec { position: absolute; right: var(--gm-r, 0px); bottom: var(--gm-b, 0px); }
@media (max-width: 767px) { html body .o-center .sec-head .gm-sec { --gm-s: .24px; right: 0; } }
/* 頁尾:最底那一行,版權在左、小綠人在右 */
html body .ft .ft-legal { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-5); }
html body .ft .gm-bye { --gm-s: .36px; order: 2; }
/*
 文字與兩顆按鈕整段移到招牌上方的建築區:從頁首下 16 開始,按鈕緊接引言(間距 16,不再推到底);兩顆按鈕固定一行(360 寬原本會折成兩行)。
 電腦版維持:只壓到招牌板左段素面綠,沒壓到標誌*/
@media (max-width: 767px) {
  html body .hero .hero-in { padding-top: 16px; }
  html body .hero .doors { margin-top: 16px; flex-wrap: nowrap; }
  html body .hero .doors > a { flex: 1 1 0; min-width: 0; white-space: nowrap; }
}
@media (max-width: 389px) { html body .hero .hero-h1 { font-size: clamp(34px, 10.2vw, 40px); } }   /* 窄螢幕首屏跟著變矮(高 = 寬 × 1.25),大標小一號才放得進招牌上方 */
/*
 側身站(w0)平常顯示;走路時(opt2-gm.js 加 gm-walk)w1/w2 每 .2 秒交替 = 0.4 秒兩步
 往左走翻面(gm-left)、到了往下點一下(gm-arrive,用 translate 不跟翻面的 transform 打架)。
 大小:頁籤列上方留 34,高 36(人約 34)、寬照畫布 198:342*/
html body .o-center #voices .rv-gm { top: 0; width: 20.84px; height: 36px; left: calc(var(--i, 0) * 33.333% + 16.666% - 10.42px); }
@media (prefers-reduced-motion: no-preference) { html body .o-center #voices .rv-gm { transition: left 1.2s cubic-bezier(.35, 0, .65, 1), transform .2s ease; } }
html body .o-center #voices .rv-gm img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; }
html body .o-center #voices .rv-gm .w0 { opacity: 1; }
html body .o-center #voices .rv-gm.gm-walk .w0 { opacity: 0; }
html body .o-center #voices .rv-gm.gm-walk .w1 { animation: gmStep .4s linear infinite; }
html body .o-center #voices .rv-gm.gm-walk .w2 { animation: gmStep .4s linear infinite -.2s; }
html body .o-center #voices .rv-gm.gm-left { transform: scaleX(-1); }
html body .o-center #voices .rv-gm.gm-arrive { animation: gmBob2 .4s ease-in-out; }
@keyframes gmStep { 0%, 49.9% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes gmBob2 { 0%, 100% { translate: 0 0; } 45% { translate: 0 2px; } }
/*
 只是隱藏、不從頁面刪:上面「04 兒童早療」這個目前區塊標示,是客戶 v2.js 靠這排連結在換字的*/
html body .o-body > .rail-l .rl-nav { display: none; }
html body .o-body > .rail-l .rl-cur { margin-bottom: 0; }   /* 原本下面留 18 給那排 J;拿掉後歸 0,底邊跟右側欄最下面的「回到頂端」切齊 */
/*下面的按鈕本身已經寫了線上預約、LINE…*/
html body .o-body > .rail-r .rr-k { display: none; }
/*
 上:左引言+按鈕、右全體合照(3:2);下:四組團體卡一排,沿用治療方式卡(白卡、圓角 12、照片 3:2、內距 24、英文小標磚紅 12)
 卡上只有英文小標+組名(組名 20,同疼痛卡部位名)。內容寬 892 以上四欄、以下兩欄;手機內距 16*/
html body .o-center #team > .wrap > .tm-tcs { grid-column: 1 / -1; grid-row: 6; margin-top: var(--s-7); }
/* 同一排的卡共用格線(照片/英文小標/組名三列):英文小標在窄寬度會折兩行(OCCUPATIONAL THERAPY),共用格線組名才對齊 */
/* 四欄或兩欄看「這一區內容有多寬」(不是看視窗):1200–1319 寬有左右側欄、中間較窄,四欄時「物理治療團隊 →」放不下一行 → 兩欄*/
html body .o-center #team > .wrap { container-type: inline-size; }
html body .o-center #team .tm-tcs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: auto; gap: var(--s-5); }
@container (min-width: 892px) { html body .o-center #team .tm-tcs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
html body .o-center #team .tm-tcs > .sl-tc { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; }
html body .o-center #team .tm-tcs > .sl-tc > figure { grid-row: 1; margin: 0; aspect-ratio: 3 / 2; }
html body .o-center #team .tm-tcs > .sl-tc > .sl-tc-b { grid-row: 2 / span 2; display: grid; grid-template-rows: subgrid; row-gap: 0; }
html body .o-center #team .tm-tcs .tx-k { margin: 0 0 var(--s-2); font: 500 12px/1.6 Inter, sans-serif !important; letter-spacing: .1em !important; text-transform: uppercase; color: #96503C; }
html body .o-center #team .tm-tcs h3 { margin: 0; font-size: 20px !important; }
@media (max-width: 767px) {
  html body .o-center #team .tm-tcs { gap: var(--s-3); margin-top: var(--s-5); }
  html body .o-center #team .tm-tcs > .sl-tc > .sl-tc-b { padding: var(--s-4); }
}
/*滑過照片淡入換成同一組的另一張(b 版),滑走換回;手機沒有滑過只看第一張*/
html body .o-center #team .tm-a { color: inherit; text-decoration: none; }
html body .o-center #team .tm-a figure { position: relative; overflow: hidden; }
html body .o-center #team .tm-a .tm-b { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) { html body .o-center #team .tm-a:hover .tm-b { opacity: 1; } }
html body .o-center #team .tm-a:focus-visible { outline: 3px solid #96503C; outline-offset: 3px; }
html body .o-center #team .tm-a h3 span { color: var(--c-green); }
/*畫面不動:加上下內距、再用負外距抵掉 ══
 頁尾選單兩欄、每排間隔 37(連結 29 + 間距 8),加到 44 會跟上下排重疊 → 只加到 37 剛好填滿
 頁尾電話、「看本週門診時間 →」是行內連結,上下內距不會撐開行高 → 直接加到 44*/
@media (max-width: 767px) {   /* 只在手機:平板(768–1023)這些連結原本就有內距、選單間隔 52,不用加 */
  html body .ft .ft-nav a { padding-block: 4px; margin-block: -4px; }
  html body .ft .ft-col:not(.ft-nav) a { padding-block: 9px; }
  html body .o-center #voices .rv-btns .tlink-light { padding-block: 5.5px; margin-block: -5.5px; }
}
/*HTML 在 build-opt2.py 同名段)══*/
/* 第 7 條「特色治療」標題:三種治療方式那行上面,卡片標題級 32 深綠*/
html body .o-center #adult .sl-kt { margin: 0 0 var(--s-2); font-size: var(--t-h3) !important; font-weight: 500; line-height: 1.4; letter-spacing: .05em; color: var(--c-green-dk); }
/* 第 10 條 環境照片:標題一直壓在照片左下(漸層墊底、白字 20,同疼痛照片卡),簡要說明拿掉*/
html body .o-center #space .s3g figure { position: relative; }
html body .o-center #space .s3g figcaption { position: absolute; inset: auto 0 0 0; z-index: 1; display: block; padding: var(--s-7) var(--s-5) var(--s-5); border-radius: 0 0 var(--r-card) var(--r-card);
  background: linear-gradient(rgba(31, 42, 37, 0), rgba(31, 42, 37, .7)); color: #fff; text-align: left; opacity: 1; pointer-events: none; }
html body .o-center #space .s3g figcaption::before { display: none; }
html body .o-center #space .s3g figcaption b { font-size: 20px !important; font-weight: 500; color: #fff; }
@media (max-width: 767px) { html body .o-center #space .s3g figcaption { padding: var(--s-7) var(--s-4) var(--s-4); } }

/* 第 12 條 頁尾門診時間:一行一診,數字等寬 */
html body .ft .ft-hrs { font-variant-numeric: tabular-nums; }
/* 第 4 條 手機浮動按鈕加圖示(跟右側欄同一組;LINE 是實心) */
html body .mbar.open a { gap: var(--s-2); }
html body .mbar a svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
/* 第 9 條 門診綠卡突顯「這一診」(opt2-today.js 標 nr-focus):時段 24、醫師名 32(手機 20/24),墊一層白 10%、圓角 12;其他時段照舊小的一行 */
html body .o-center #hours .now-card .nr.nr-focus { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t s" "d s"; row-gap: var(--s-1); margin: var(--s-2) 0; padding: var(--s-5); border: 0; border-radius: var(--r-card); background: rgba(255, 255, 255, .1); opacity: 1; }
html body .o-center #hours .now-card .nr.nr-focus + .nr { border-top: 0; }
html body .o-center #hours .now-card .nr-focus .nr-t { grid-area: t; }
html body .o-center #hours .now-card .nr-focus .nr-d { grid-area: d; font-size: 32px !important; font-weight: 500; line-height: 1.4; }
html body .o-center #hours .now-card .nr-focus .nr-d small { font-size: var(--t-body) !important; }
html body .o-center #hours .now-card .nr-focus .nr-t :is(b, small) { font-size: 24px !important; }
html body .o-center #hours .now-card .nr-focus .nr-s { grid-area: s; }
@media (max-width: 767px) {
  html body .o-center #hours .now-card .nr.nr-focus { padding: var(--s-4); }
  html body .o-center #hours .now-card .nr-focus .nr-d { font-size: 24px !important; }
  html body .o-center #hours .now-card .nr-focus .nr-t :is(b, small) { font-size: 20px !important; }
  html body .o-center #hours .now-card .nr-focus .nr-t small { display: inline; }
}
/* 第 13 條 手機首屏(客戶很在意:「有壓深色底、照片無法完整呈現或是沒有置中」)→ 手機改成「文字在上、照片在下」
 - 大標、英文、引言、兩顆按鈕放在米色底上(不再疊在照片上),所以不用任何深色遮罩
 - 照片照原比例 16:9 整張放、滿版寬、置中(九張都用橫式,不再裁成 4:5)
 - 輪播膠囊移到照片下面,不壓照片
 電腦版不動。*/
@media (max-width: 767px) {
  html body .hero { display: flex; flex-direction: column; min-height: 0 !important; height: auto; background: transparent; }
  html body .hero::before, html body .hero::after, html body .hero .hero-veil { display: none; }
  html body .hero .hero-in { order: 1; min-height: 0 !important; padding: var(--s-5) 0 var(--s-5) !important; justify-content: flex-start; }   /*原本字從 40 起排,跟頁首 logo、輪播膠囊、下面每一區的 20 差一截*/
  html body .hero .hero-h1 { color: var(--c-green); }
  html body .hero :is(.hero-en, .hero-sub) { color: var(--c-green-dk); }
  html body .hero .hero-stage { order: 2; position: relative; inset: auto; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
  html body .hero .hs picture img { object-position: 50% 50% !important; }
  html body .hero .hero-nav { order: 3; position: static; margin: var(--s-3) 20px 0; background: var(--c-green); -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; }
}
/* 第 2 條 門診時間區上方的公告卡也改成連結(連到那則公告);樣式照全站文字連結:字色不變、底線 */
html body .o-center .hh-ann a { color: inherit; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
/*「從生活找」「依療程找」現在是頁籤面板,緊接頁籤*/
html body #find .tabp.pw-life { margin-top: 0; }
/*到切齊兩個頁籤左右兩端」→ 照片牆跟頁籤同一套三欄格線(間距 24)
 小綠人在第一欄(第一個頁籤下面)、照片牆跨第二、三欄,左右切齊後兩個頁籤。
 換算成第一欄寬的比例:卡寬 =(2 欄 + 24 − 2×16)÷ 3、卡高 = 卡寬 × ¾ → 小綠人寬 = 49.9% + 14px,在欄內置中*/
@media (min-width: 1024px) {
  html body #find .pw { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--s-5); }
  html body #find .pw-gm { grid-column: 1; width: calc(49.9% + 14px); justify-self: center; }
  html body #find .pw-cards { grid-column: 2 / -1; }
}
/* 頁籤放回後,照片牆上方原本接引言的 40 跟頁籤下方的 40 疊成 80 → 只留頁籤下方那 40(三個面板一樣) */
html body #find .tabp .pw { margin-top: 0; }
/*可以放大」→ 照片撐滿右半欄、4:3(原本固定 280×210)
 第二刀→ 整個說明面板改左右兩欄:左欄由上到下 = 英文小標、名稱、一句話 → 療法分類說明 → 線上預約／看說明 → 費用註記
 右欄只有照片,照片下面不留空。手機照舊照片在最上面、字往下排。
 第三刀→ 列高 auto auto 1fr auto auto:名稱與分類說明在頂、按鈕+費用推到底,費用那行對齊照片下緣;中間那列吸收多出來的高度。照片比左欄矮時(1440 以下常見)照片拉長到同高*/
@media (min-width: 768px) {
  html body #find .tf-out.on { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr auto auto; column-gap: var(--s-5); align-items: start; }
  html body #find .tf-out > .tf-i:not(.on) { display: none; }
  html body #find .tf-out > .tf-i.on, html body #find .tf-i.on > .tf-head { display: contents; }
  html body #find .tf-i.on > .tf-head > div { grid-column: 1; grid-row: 1; }
  html body #find .tf-i.on > .tf-head > img { grid-column: 2; grid-row: 1 / -1; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }   /* 至少 4:3;左欄比較高時照片跟著拉長(裁切),兩欄底部永遠切齊 */
  html body #find .tf-i.on > dl { grid-column: 1; grid-row: 2; margin-top: var(--s-5); }
  html body #find .tf-i.on > .fw-act { grid-column: 1; grid-row: 4; }
  html body #find .tf-out > .lf-foot { grid-column: 1; grid-row: 5; margin-bottom: -6px; }   /* 對齊量字底不量行框:字底比行框底高 6.3(半個行距+中文字面留白),往下補 6 */
}
/*橫跨整排
 上下距離一樣:頁籤 → 灰線 40(頁籤原本的下距)、灰線 → 照片牆 40。灰線跟另外兩個頁籤的那條同一高度,切換不跳*/
html body #find #p-f0 .pw { padding-top: var(--s-7); border-top: 1px solid var(--ln); }
/*
 - 每個時段一律兩行:上行 = 時段+時間,下行 = 醫師+科別,狀態標籤放在下行右邊(電腦版也是時間在上、醫師在下)
 「這一診」原本時間被右邊的標籤擠成兩行 → 標籤移到醫師那行,時間整行一排;科別不拆字,放不下就整個換行
 - 復健:「復健治療」跟狀態膠囊同一行(膠囊靠右,跟上面門診的狀態標籤同一條右邊線),間距照電腦版(小標 → 說明 8、說明 → 注意事項 12)
 - 復健注意事項一條折兩行時,行距 1.85 → 1.6、條與條之間 8(組內 < 組間,原本折行跟換條一樣寬,分不出是哪一條)*/
@media (max-width: 767px) {
  html body .o-center #hours .now-card .nr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t t" "d s"; row-gap: 0; column-gap: var(--s-3); }
  html body .o-center #hours .now-card .nr .nr-t { grid-area: t; }
  html body .o-center #hours .now-card .nr .nr-d { grid-area: d; }
  html body .o-center #hours .now-card .nr .nr-s { grid-area: s; }
  html body .o-center #hours .now-card .nr :is(.nr-t, .nr-d) small { display: inline-block; white-space: nowrap; }
  html body .o-center #hours .now-card .nr:not(.nr-off) .nr-d small { margin-left: var(--s-2); }
  html body .o-center #hours .now-card .nr.nr-focus { grid-template-areas: "t t" "d s"; row-gap: var(--s-1); }
  html body .o-center #hours .now-card .rehab-card { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "k pill" "main main" "note note"; row-gap: 0; }
  html body .o-center #hours .now-card .rh-pill { justify-self: end; }
  html body .o-center #hours .now-card .rh-note li { line-height: 1.6; }
  html body .o-center #hours .now-card .rh-note li + li { margin-top: var(--s-2); }
  html body .o-center #hours .now-card .rh-note li::before { top: calc(.8em - 2px); }
}
/*
 768–1199 寬的直式螢幕(iPad 直拿 768/820/1024)原本照片鋪滿整屏、裁掉一半以上,字疊在照片上還壓深色遮罩——跟客戶第 13 條講的手機問題一樣。
 照手機那套:字和按鈕放米色底、照片 16:9 整張、輪播膠囊移到照片下面(品牌綠底,不再是疊在照片上的毛玻璃)
 平板的尺寸照舊(膠囊高 72、左右對齊下面內容寬 = 離首屏邊 48),照片撐滿首屏寬、圓角 8 跟外框一致;上下內距照手機 24,768×1024 整組(字+照片+膠囊)放得進一屏。
 橫拿(寬 > 高)照片本來就露得完整,維持疊字的電腦版排法*/
@media (min-width: 768px) and (max-width: 1199px) and (orientation: portrait) {
  html body .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0 !important; height: auto; background: transparent; }
  html body .hero::before, html body .hero::after, html body .hero .hero-veil { display: none; }
  html body .hero .hero-in { order: 1; min-height: 0 !important; padding: var(--s-5) 0 !important; justify-content: flex-start; }
  html body .hero .hero-h1 { color: var(--c-green); }
  html body .hero :is(.hero-en, .hero-sub) { color: var(--c-green-dk); }
  html body .hero .hero-stage { order: 2; position: relative; inset: auto; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; }
  html body .hero .hs picture img { object-position: 50% 50% !important; }
  html body .hero .hero-nav { order: 3; position: static; width: auto; margin: var(--s-3) 48px 0; background: var(--c-green); -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; }
}
/* 首屏改成上下排之後(手機、平板直式),捲動時「照片往下沉、字淡出上移」的效果關掉:照片下沉會蓋到下面的輪播膠囊(最多 22%),字已經不疊在照片上,跟著頁面正常捲走就好 */
@media (max-width: 767px), (min-width: 768px) and (max-width: 1199px) and (orientation: portrait) {
  html.mo body .hero .hero-stage { transform: none; }
  html.mo body .hero .hero-in { opacity: 1; transform: none; filter: none; }
}
/*
 第 3 條「當日門診公告排版調整」:客戶在 iPad 截圖上畫——右邊公告畫箭頭往上、門診+復健框起來,下面一條「改為公告跑馬燈」+ 一行
 「10/24 週六|門診 [看診中] 蕭竣元醫師 早診 08:30|復健時段 [開放報到] 早診 08:30–12:00」= 上一輪確認單講的「像嘉韻首屏下那條細條」。
 - 公告:搬到米色面板上面,獨立一塊綠色面板
 - 日期、門診、復健收成「小標一行+內容一行」:今天/10/24 週六|門診/[看診中] 醫師 早診…|復健/[現在可報到] 最後報到…|完整門診時間
 門診、復健各兩欄:左欄小標在上、狀態膠囊在下;右欄時間或醫師在上(24)、補充在下(16),跟小標、膠囊同一條基準線(三格共用列 = subgrid)
 - 寬度不夠一行(.today 寬 < 1240)時兩排:日期+連結一排、門診|復健一排;手機(< 600)門診、復健各一列
 - 狀態膠囊顏色照草圖分兩色:門診看診中 = 客戶的磚紅 #96503C、復健可報到 = 客戶綠;沒在看診/報到 = 淡綠底深綠字(同原本)*/
html body .o-center .today.td-v3 { container: td / inline-size; }
/* 公告條
 米色面板上面獨立一塊客戶綠面板(中間欄面板之間本來就是 2px 縫、圓角跟著面板:電腦平板 8、手機直角);高 48,「公告」小標米色 700、日期與一句白字
 字一直往左跑(50px/秒、無縫接回、滑過或鍵盤移進來停住、兩端淡出;減少動態時不跑、折行全部列出);連結一直有底線(會動的字要看得出能點)。沒有公告的日子整塊不出現*/
html body .o-center > .td-bar { background: var(--c-green); color: #fff; }
html body .o-center > .td-bar:has([data-ann-top][hidden]) { display: none; }
html body .o-center .td-bar .td-ann { display: flex; align-items: center; gap: var(--s-4); min-height: var(--btn-h); margin: 0; padding: var(--s-2) 0; line-height: 1.6; }
html body .o-center .td-bar .td-ann > b { flex: none; font-weight: 700; color: #EAE5DA; }
html body .o-center .td-bar .td-ann > span { flex: 1; min-width: 0; overflow: hidden; }
html body .o-center .td-bar .td-ann > span { display: block; }   /* 蓋掉第一版公告格的 grid(會把軌道撐滿整條) */
html body .o-center .td-bar .td-trk { display: inline-flex; white-space: nowrap; }
html body .o-center .td-bar .td-grp { display: inline-flex; flex: none; gap: 64px; padding-right: 64px; }   /* 一組:每則之間 64,接到下一輪也是 64*/
html body .o-center .td-bar .td-an { display: inline-flex; align-items: baseline; gap: var(--s-2); color: #fff; text-decoration: none; }
html body .o-center .td-bar .td-an :is(.td-an-d, .td-an-t) { color: #fff; }
html body .o-center .td-bar .td-an .td-an-t { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
html body .o-center .td-bar .td-marq { -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--s-5), #000 calc(100% - var(--s-5)), transparent); mask-image: linear-gradient(90deg, transparent, #000 var(--s-5), #000 calc(100% - var(--s-5)), transparent); }
html body .o-center .td-bar .td-marq .td-trk { animation: td-marq var(--td-dur, 20s) linear infinite; }
html body .o-center .td-bar .td-ann:is(:hover, :focus-within) .td-trk { animation-play-state: paused; }
@keyframes td-marq { to { transform: translateX(calc(-1 * var(--td-set, 0px))); } }
@media (prefers-reduced-motion: reduce) { html body .o-center .td-bar .td-trk { display: block; white-space: normal; } html body .o-center .td-bar .td-grp { flex-wrap: wrap; gap: var(--s-1) 64px; padding: 0; } }

/* 一行:今天|門診|復健|連結,共用兩列(小標列/內容列,subgrid → 小標同一條基準線、膠囊和日期同一條基準線)
 門診看診中時的「下一診 14:00- 醫師」接在補充那行下面(只有那時候整條多一行)*/
html body .o-center .td-v3 .today-in { display: grid; grid-template-columns: auto auto auto minmax(max-content, 1fr); grid-template-rows: auto auto; grid-auto-flow: row; align-items: baseline; gap: var(--s-2) 0; padding: var(--s-5) 0; }
html body .o-center .td-v3 .today-in > :is(.td-k, .td-i) { grid-row: 1 / span 2; display: grid; grid-template-rows: subgrid; align-items: baseline; align-self: stretch; margin: 0; line-height: 1.6; }
html body .o-center .td-v3 .today-in > .td-k { grid-column: 1; grid-template-columns: auto; padding: 0 var(--s-5) 0 0; font-weight: 700; color: var(--c-green); }
html body .o-center .td-v3 .today-in > .td-i { grid-column: auto; grid-template-columns: auto minmax(0, auto); grid-template-areas: "k nm" "st sm"; column-gap: var(--s-4); padding: 0 var(--s-5); border-left: 1px solid var(--ln); }
html body .o-center .td-v3 .td-i > b { grid-area: k; margin: 0; }
html body .o-center .td-v3 .td-i > span, html body .o-center .td-v3 .td-i .td-doc { display: contents; }
html body .o-center .td-v3 .td-i .td-st { grid-area: st; justify-self: start; }
html body .o-center .td-v3 .td-i .td-doc b { grid-area: nm; line-height: 1.6; }   /* 字級照全站系統 18(system.css 鎖住 .td-i b) */
html body .o-center .td-v3 .td-i .td-doc small { grid-area: sm; }
html body .o-center .td-v3 .td-i .td-nx { display: block; }   /* 在補充那行裡另起一行 */
html body .o-center .td-v3 .td-k .td-date { grid-row: 2; display: flex; flex-direction: row; align-items: baseline; gap: var(--s-2); margin: 0; font-weight: 400; }
html body .o-center .td-v3 .td-k .td-date b { font: 500 var(--t-lead)/1.2 Inter, sans-serif; letter-spacing: 0; }
html body .o-center .td-v3 .td-k .td-date span { margin: 0; }
html body .o-center .td-v3 .today-in > .td-more { grid-column: -2 / -1; grid-row: 2; align-self: baseline; justify-self: end; margin: 0; padding: 0; line-height: 1.6; }
/* 一行放不下(.today 寬 < 1186:1366 以下的電腦、平板):上面一行「今天 10/24 週六 …… 完整門診時間 →」,下面門診|復健兩欄,中間一條線(線上下各 24) */
@container td (max-width: 1185px) {
  html body .o-center .td-v3 .today-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto; }
  html body .o-center .td-v3 .today-in > .td-k { grid-column: 1; grid-row: 1; display: flex; flex-direction: row; align-items: baseline; gap: var(--s-3); padding: 0; }
  html body .o-center .td-v3 .today-in > .td-more { grid-column: 2; grid-row: 1; }
  html body .o-center .td-v3 .today-in > .td-i { grid-row: 2 / span 2; margin-top: var(--s-4); padding: var(--s-5) var(--s-5) 0; border-top: 1px solid var(--ln); }
  html body .o-center .td-v3 .today-in > .td-i:nth-of-type(2) { grid-column: 1; padding-left: 0; border-left: 0; }
  html body .o-center .td-v3 .today-in > .td-i:nth-of-type(3) { grid-column: 2; padding-right: 0; }
}
/* 手機(.today 寬 < 600):日期+連結一排,門診、復健各一列,列與列之間一條線 */
@container td (max-width: 599px) {
  html body .o-center .td-v3 .today-in { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: repeat(5, auto); }
  html body .o-center .td-v3 .today-in > .td-i:nth-of-type(2) { grid-column: 1 / -1; grid-row: 2 / span 2; padding-right: 0; }
  html body .o-center .td-v3 .today-in > .td-i:nth-of-type(3) { grid-column: 1 / -1; grid-row: 4 / span 2; padding-left: 0; border-left: 0; }
}
html body .o-center .td-v3 [data-td-clinic] .td-st.on { background: var(--c-warm); }
html body .o-center .td-v3 [data-td-rehab] .td-st { display: inline-flex; align-items: center; gap: var(--s-2); height: 28px; padding: 0 var(--s-3); border-radius: var(--r-pill); font-size: 14px; line-height: 1; white-space: nowrap; }
html body .o-center .td-v3 [data-td-rehab] .td-st:not(.on) { background: #E8EEEA; color: var(--c-green-dk); }
html body .o-center .td-v3 [data-td-rehab] .td-st.on { background: var(--c-green); color: #fff; }
html body .o-center .td-v3 [data-td-rehab] .td-st.on::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: td-pulse 1.6s ease-in-out infinite; }
/*
 手機、平板直拿:首屏 = 一整屏(頁首下到畫面底;平板留外框 8),背景 = 目前這張照片放大 + 模糊 28 + 米色霧面 70%(字照舊品牌綠/深綠,不疊深色)
 換張時背景淡入 .8 秒(opt2-hero.js 檔尾)。清晰照片照舊 16:9 整張,放在字和輪播膠囊之間置中;輪播膠囊貼底、下面留 24,跟下面的公告綠條分開
 (原本膠囊就是首屏底,跟公告綠條黏在一起)。平板首屏圓角 8(上下排時角落要自己畫,原本是疊角的 ::after,已關)*/
html body .hero .hero-bl { display: none; }
@media (max-width: 767px), (min-width: 768px) and (max-width: 1199px) and (orientation: portrait) {
  html body .hero { position: relative; overflow: hidden; isolation: isolate; row-gap: var(--s-3); }   /* 矮螢幕放不下一屏時,照片和膠囊之間至少 12 */
  html body .hero .hero-bl { display: block; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
  html body .hero .hero-bl i { position: absolute; inset: -10%; background: center / cover no-repeat; filter: blur(28px); opacity: 0; transition: opacity .8s; }
  html body .hero .hero-bl i.on { opacity: 1; }
  html body .hero .hero-bl::after { content: ""; position: absolute; inset: 0; background: rgba(234, 229, 218, .7); }
  html body .hero .hero-stage { margin-block: auto; }
  html body .hero .hero-nav { margin-top: 0 !important; }   /* 照片上下的空白才會一樣(膠囊上面原本多 12) */
}
@media (max-width: 767px) {
  html body .hero { min-height: calc(100vh - 60px) !important; min-height: calc(100svh - 60px) !important; }   /* 頁首 60 黏在上面 */
  html body .hero .hero-nav { margin: 0 20px var(--s-5); }
}
@media (min-width: 768px) and (max-width: 1199px) and (orientation: portrait) {
  html body .hero { min-height: calc(100vh - 88px) !important; min-height: calc(100svh - 88px) !important; border-radius: 8px; }   /* 頁首 72 + 上下外框 8 */
  html body .hero .hero-nav { margin: 0 48px var(--s-5); }
}
@media (prefers-reduced-motion: reduce) { html body .hero .hero-bl i { transition: none; } }
/*怎麼區塊下緣兩角是圓角,下一個區塊的上緣是直角」→ 手機的面板一律直角(opt.css 本來就有這條
 但「治療方式」區裡的綠色橫幅與內層面板被更具體的圓角規則蓋過,手機上還是圓角 8)*/
@media (max-width: 767px) { html body .o-center #adult > * { border-radius: 0; } }
/*不是圓角」→ 這排頁籤的外框是透明的,圓角 12(system.css 全站頁籤組)只會在手機左右滑時把切到的膠囊切成圓角 → 直角*/
html body .o-center .faq-tabs { border-radius: 0; }
/*不要跟文字太近」→ 手機兩顆按鈕上下排、撐滿寬、間距 12
 上方 16 → 40(同電腦版「引言 → 按鈕」40)。平板、電腦不變*/
@media (max-width: 767px) {
  html body .hero .doors { display: grid; grid-template-columns: max-content; justify-content: start; gap: var(--s-3); margin-top: var(--s-7); }   /*一般 size 就好,但兩顆要一樣寬」→ 一欄、欄寬 = 比較寬那顆,兩顆撐滿同一欄*/
  html body .hero .doors > a { flex: none; width: auto; }
}
/*那就把標題做成 RWD」→ 手機大標跟著螢幕寬和高一起縮:最大 40(一般手機不變)、最小 28
 高 844 的手機 40、高 667(iPhone SE)約 30、高 640 約 28。只縮展示用的大標,內文、英文、按鈕不縮(排版憲法:塞不下先縮展示大字)*/
@media (max-width: 767px) {
  html body .hero .hero-h1 { font-size: clamp(28px, min(10.26vw, 5.65vh - 7.7px), 40px); font-size: clamp(28px, min(10.26vw, 5.65svh - 7.7px), 40px); }
}
/*
 手機、平板直拿:照片正上方一行名字(18、500、深綠,左緣跟上面的字同一條),跟照片隔 8,名字+照片這一組在字和膠囊中間置中;換張時淡入上移 6。
 程式 opt2-hero.js 檔尾。電腦版、平板橫拿不顯示(名字已寫在膠囊裡)*/
html body .hero .hero-pl { display: none; }
@media (max-width: 767px), (min-width: 768px) and (max-width: 1199px) and (orientation: portrait) {
  html body .hero .hero-pl { display: flex; align-items: center; gap: var(--s-4); order: 2; margin: auto auto calc(var(--s-2) - var(--s-3)); font-size: var(--t-body); font-weight: 500; line-height: 1.6; color: var(--c-green-dk); text-align: right; }   /*名字 → 照片 8(扣掉首屏列距 12 的 4):名字是照片的標題,要比上面按鈕 → 名字(最少 12)明顯近*/
  html body .hero .hero-pl span { display: inline-block; animation: hero-pl .5s cubic-bezier(.2, .8, .2, 1) both; }
  html body .hero .hero-stage { margin-block: 0 auto; }
  html body .hero .hero-in { padding-bottom: 0 !important; }   /* 名字行多占 41;字區下面那 24 跟彈性空白重複,拿掉補回來(按鈕 → 名字最少 12,一般手機有彈性空白) */
}
@keyframes hero-pl { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { html body .hero .hero-pl span { animation: none; } }
/*
 「按鈕上方的 padding 也可以縮小,或是其他的字再小一點到 21px,都可以接受」)══
 按鈕上方 40 → 24、英文與引言 24 → 21(引言行高 1.6)、頁首 → 大標 24 → 16、膠囊下方 24 → 16。一般手機不變*/
@media (max-width: 767px) and (max-height: 740px) {
  html body .hero .hero-in { padding-top: var(--s-4) !important; }
  html body .hero :is(.hero-en, .hero-sub) { font-size: 21px !important; }
  html body .hero .hero-sub { line-height: 1.6; }
  html body .hero .doors { margin-top: var(--s-5); }
  html body .hero .hero-nav { margin-bottom: var(--s-4); }
}
/*站名+灰線、按鈕上下排、右邊小綠人都要留)→ 矮手機整組上下節奏再收緊
 頁首 → 大標 12、大標跟高一起縮得更多(667 高約 27)、英文 → 引言間距 4/6、按鈕上方 16、兩顆之間 8、站名行高 1.2、膠囊下方 12*/
@media (max-width: 767px) and (max-height: 740px) {
  html body .hero .hero-in { padding-top: var(--s-3) !important; }
  html body .hero .hero-h1 { font-size: clamp(26px, min(10.26vw, 7.4vh - 22.5px), 40px); font-size: clamp(26px, min(10.26vw, 7.4svh - 22.5px), 40px); }
  html body .hero .hero-en { margin-top: var(--s-1) !important; }
  html body .hero .hero-sub { margin-top: 6px !important; }
  html body .hero .doors { margin-top: var(--s-4); gap: var(--s-2); }
  html body .hero .hero-pl { line-height: 1.2; }
  html body .hero .hero-nav { margin-bottom: var(--s-3); }
  html body .hero .gm-greet { --gm-s: .30px; }   /* 收緊後 .36 的頭頂會碰到引言字(只隔 2、左右疊 12)→ 矮手機縮小一號 */
}
/*要不然看起來很像 no design」+「右方空白處可以塞那個揮手小綠人看看」(手機)
 - 站名左邊一條灰線(1px var(--ln))從字區左緣拉到站名前 16,線在字的上下正中間
 - 揮手小綠人:手機原本藏起來(怕擠掉),現在放在兩顆按鈕右邊、靠字區右緣,腳跟下面那顆按鈕的底同一條;大小同電腦版首屏(.36),一樣循環揮手*/
@media (max-width: 767px), (min-width: 768px) and (max-width: 1199px) and (orientation: portrait) {
  html body .hero .hero-pl::before { content: ""; flex: 1; height: 1px; background: rgba(80, 81, 80, .5); }   /*改成看得清楚的顏色」→ 客戶立衡灰 #505150 的 50%(原本 --ln #CECAC1 在模糊米色上幾乎看不到)*/
}
@media (max-width: 767px) {
  html body .hero .doors { position: relative; }
  html body .hero .gm-greet { display: inline-block; position: absolute; right: 0; bottom: 0; margin: 0; }
}
/*
 點右上漢堡鈕(變成 ×)→ 頁首以下整個畫面一塊米色(同頁首、同電腦版抽屜),六個項目 24/500 深綠、每項上下 16、項與項之間一條線
 最下面「Recover joy, together.」收尾(同抽屜);背後的頁面不能捲;點項目自動收起(客戶 v2.js)。
 定位靠頁首:頁首有毛玻璃(backdrop-filter),fixed 的選單以頁首為準 → top 100% = 頁首底、左右 = 頁首左右(平板頁首內縮 8,選單跟著內縮、下兩角圓角 8)*/
@media (max-width: 1199px) {
  html body .hd .mnav nav { position: fixed; top: 100%; left: 0; right: 0; bottom: auto; width: auto; height: calc(100vh - 60px); height: calc(100svh - 60px); display: flex; flex-direction: column;
    margin: 0; padding: var(--s-4) 20px calc(var(--s-7) + env(safe-area-inset-bottom, 0px)); border-radius: 0; background: #EAE5DA; box-shadow: none; overflow-y: auto; overscroll-behavior: contain; animation: mnav-in .25s ease both; }
  html body .hd .mnav nav a { padding: var(--s-4) 0; border-bottom: 1px solid var(--ln); font-size: var(--t-lead); font-weight: 500; line-height: 1.4; color: var(--c-green-dk); text-decoration: none; }
  html body .hd .mnav nav a:is(:hover, :focus-visible) { color: var(--c-green); }
  html body .hd .mnav .mnav-slogan { font: 400 32px/1.05 "Inter Tight", Inter, sans-serif; letter-spacing: -.01em !important; color: var(--c-green); }
  html:has(.hd .mnav[open]) { overflow: hidden; }
}
@media (min-width: 768px) and (max-width: 1199px) {
  html body .hd .mnav nav { height: calc(100vh - 88px); height: calc(100svh - 88px); padding-inline: 56px; border-radius: 0 0 8px 8px; }   /* 頁首 72 + 上下外框 8;字左緣 = 頁首 logo 左緣 */
}
@keyframes mnav-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { html body .hd .mnav nav { animation: none; } }
/*
 打開 = 米色整片由上往下拉開(clip-path)0.9 秒 power3.inOut;六個項目與最下面一列跟著從下面滑上來,一列晚 .06 秒(同全站階梯上滑)
 點 × 關 = 由下往上收回 0.5 秒(opt2-menu.js 收完才關)。減少動態時都不播*/
@media (max-width: 1199px) {
  html body .hd .mnav[open] nav { animation: mnav-wipe .9s cubic-bezier(.645, .045, .355, 1) both; }
  html body .hd .mnav.is-closing nav { animation: mnav-wipe-out .5s cubic-bezier(.645, .045, .355, 1) both; }
  html body .hd .mnav[open] nav > * { animation: mnav-item .7s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(.3s + var(--i, 0) * .06s); }
  html body .hd .mnav.is-closing nav > * { animation: none; }
  html body .hd .mnav nav > :nth-child(2) { --i: 1; } html body .hd .mnav nav > :nth-child(3) { --i: 2; } html body .hd .mnav nav > :nth-child(4) { --i: 3; }
  html body .hd .mnav nav > :nth-child(5) { --i: 4; } html body .hd .mnav nav > :nth-child(6) { --i: 5; } html body .hd .mnav nav > :nth-child(7) { --i: 6; }
}
@keyframes mnav-wipe { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
@keyframes mnav-wipe-out { from { clip-path: inset(0); } to { clip-path: inset(0 0 100% 0); } }
@keyframes mnav-item { from { opacity: 0; transform: translateY(24px); } }
@media (prefers-reduced-motion: reduce) { html body .hd .mnav :is(nav, nav > *) { animation: none !important; } }
/*桌機的漢堡選單也可以加」→ 品牌英文那一列:英文靠左、揮手小綠人靠右,腳跟英文最後一行字底同一條;大小同首屏(.36)*/
html body :is(.hd .mnav, .rr-drawer) :is(.mnav-end, .rr-end) { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); margin: auto 0 0; padding-top: var(--s-7); }
html body :is(.hd .mnav, .rr-drawer) :is(.mnav-end, .rr-end) :is(.mnav-slogan, .rr-slogan) { margin: 0; padding: 0; }
html body :is(.hd .mnav, .rr-drawer) .gm-menu { --gm-s: .36px; flex: none; }

/*
 兒童早療插畫左下的實景小照「放兩個治療師(語言、職能)」→ 同一個白框疊圖樣式兩張並排,第二張接在第一張右邊、間距 16
 客戶原本一張寬 34%,兩張各 30% 才不會蓋掉插畫一大半;手機各 44%,一張靠左、一張靠右*/
@media (min-width: 768px) {
  html body .o-center #kids.kv-inset .fig-wide > .inset { width: 30%; }
  html body .o-center #kids.kv-inset .fig-wide > .inset.in-b { left: calc(30% - 24px + var(--s-4)); }
}
@media (max-width: 767px) {
  html body .o-center #kids.kv-inset .fig-wide > .inset.in-b { left: auto; right: 8px; }
}
/* 客戶「每個裝置不同,看不到 bar」:桌機首屏字區上下內距寫死 168/176(opt2.css、opt.css),字區總高 792
 畫面比 808 矮(1536×740、1280×720 這種筆電)首屏就被撐高
 畫面矮時上下內距照原本比例一起縮(最少:上 128 讓開頁首 logo、下 136 = 控制條 88 + 離底 32 + 16);808 以上跟原本一樣*/
@media (min-width: 1200px) {
  html body .hero .hero-in { padding-top: clamp(128px, calc(48.8svh - 226px), 168px); padding-bottom: clamp(136px, calc(51.2svh - 238px), 176px); }
}

/*HTML 在 build-opt2.py 同名段)══*/
/* 2. 依部位找小綠人換高解析版(img/pw-gm5.webp 寬高比 .553,原本 .567)→ 寬度縮 2%,看得到的高跟原本一樣(0.88 × 第一到第三排卡中線) */
@media (min-width: 1024px) {
  html body #find .pw-gm { width: calc(48.68% + 13.66px); }
}
/* 2. 依療程找:兩組名稱下面各一行簡短說明(18 內文灰),跟組名同一組、跟膠囊隔開 */
html body #find .lf-qs { margin: 0 0 var(--s-3); font-size: var(--t-body); line-height: 1.75; letter-spacing: .05em; color: #505150; }
html body #find .pw-life .lf-g:has(.lf-qs) { grid-template-columns: 1fr; gap: 0; }
html body #find .pw-life .lf-g:has(.lf-qs) .lf-q { margin: 0 0 var(--s-1); }
/* 5. 兒童早療:三個職類小標籤 = 不能按的標籤,用週班表「休診」那種淡綠底深綠字(全站「標籤」同一個樣子);說明、小字照內文 */
html body .o-center #kids .sl-cta .kd-tags { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0 0 var(--s-5); padding: 0; list-style: none; }
html body .o-center #kids .sl-cta .kd-tags li { display: inline-flex; align-items: center; height: 32px; padding: 0 var(--s-3); border-radius: 999px; background: #D7E2DA; font-size: var(--t-body); letter-spacing: .05em; color: #3B5348; }   
html body .o-center #kids .sl-cta .kd-desc { margin-bottom: var(--s-3); }   /* 說明 → 小字 12(同一組);小字 → 按鈕照原本空一行 */
html body .o-center #kids .sl-cta .kd-faq { flex: 1 1 100%; margin-top: var(--s-3); }
/* 9. 門診綠卡- 復健:一直寫著完整時間(白字內文),放在「現在可報到…」即時狀態下面*/
html body .o-center #hours .now-card .rehab-card { grid-template-areas: "k k" "pill main" "hrs hrs" "note note"; }   
html body .o-center #hours .now-card .rh-hrs { grid-area: hrs; margin: var(--s-3) 0 0; font-size: var(--t-body); line-height: 1.85; letter-spacing: .05em; color: #fff; }
@media (max-width: 767px) {
  html body .o-center #hours .now-card .rehab-card { grid-template-areas: "k pill" "main main" "hrs hrs" "note note"; }
  html body .o-center #hours .now-card .rh-hrs { margin: var(--s-2) 0 0; line-height: 1.6; }
}
/* 11. 預約與交通:新增引言(跟其他區引言同級 18/1.85,深底白字),接在標題列下、按鈕上 */
html body .o-center #visit .vs-lead { margin: 0 0 var(--s-7); max-width: 36em; font-size: var(--t-body); line-height: 1.85; letter-spacing: .05em; color: #fff; }
/* 12. 品牌結尾:文字變成四段,段與段之間 12*/
html body .o-center #story .sl-name { margin: 0 0 var(--s-3); }
/*這次新換的幾段內文避免最後一行只剩一兩個字(品牌結尾第一段原本剩「地方。」)*/
html body .o-center #hours .now-card .rh-hrs .nw { display: inline-block; white-space: nowrap; }
html body .o-center :is(#story .sl-name, #kids > .wrap > .lead, #team > .wrap > .lead, #kids .kd-desc, #kids .kd-note, #visit .vs-lead, #find .lf-qs) { text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; }   /* pretty 在中文不生效 → 平均分行 + 只在標點後換行(名字、詞不拆開;太窄放不下才任意斷) */
html body .o-center #story .sl-name:last-of-type { margin-bottom: var(--s-5); }   /* 最後一段 → 「品牌故事」連結 24(同原本) */
/*新照片原圖就是 16:9,整張放得下、兩邊的人不裁,版面不變*/
/*

但最重要的手機版傳達不出這個印象」
 - 照片鋪滿首屏(頁首下到畫面底),用直式版(img/<名>-m960/m1440:上半是補出來的天花板/天空,人都在下半),從底部對齊 → 矮螢幕裁掉的是上面的天花板,不裁人
 - 字照舊在上面(大標、英文、引言、兩顆按鈕、小綠人),直接疊在照片上半
 - 站名改成照片左下角的小字說明(白字、淡陰影);暫停鈕留在右下角(自動輪播要能停)
要不然字體顏色看不清楚」+ 大標、英文、引言「這些都改成白字」
 → 原本上半疊的淡米色漸層、門口那張單獨換白(data-dk)都拿掉;改成每張一樣:上緣一層淡深綠漸層(頂 50% → 一半高度 0)、下緣一層(底 45% → 往上 22% 處 0),字一律白
 - 〔同上〕下方加「最普通的圓形分頁圓點,外面有個計時的圓框線」→ 見下一段。平板、電腦不動*/
@media (max-width: 767px), (min-width: 768px) and (max-width: 1199px) and (orientation: portrait) {
  html body .hero { display: block; row-gap: 0; }
  html body .hero .hero-bl { display: none; }
  html body .hero .hero-stage { position: absolute; inset: 0; width: auto; aspect-ratio: auto; margin: 0; z-index: 0; }
  html body .hero .hs picture img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100% !important; }
  html body .hero .hero-stage::after { content: ""; position: absolute; inset: 0; z-index: 20; pointer-events: none;
    background: linear-gradient(to bottom, rgba(31, 42, 37, .5) 0, rgba(31, 42, 37, .3) 28%, rgba(31, 42, 37, 0) 50%), linear-gradient(to top, rgba(31, 42, 37, .45) 0, rgba(31, 42, 37, 0) 22%); }   /* 深綠 #1F2A25 = 客戶原本首屏遮罩的色 */
  html body .hero .hero-in { position: relative; z-index: 1; }
  html body .hero .hero-h1, html body .hero :is(.hero-en, .hero-sub) { color: #fff; text-shadow: 0 1px 12px rgba(31, 42, 37, .3); }
  html body .hero .hero-pl { display: block; position: absolute; left: 20px; bottom: 20px; z-index: 1; margin: 0; font-size: 15px; line-height: 1.4; color: #fff; text-align: left; text-shadow: 0 1px 8px rgba(0, 0, 0, .45); }
  html body .hero .hero-pl::before { display: none; }
  html body .hero .hero-nav { position: absolute; left: auto; right: 20px; bottom: 14px; z-index: 1; width: auto; margin: 0 !important; padding: 0; background: none; border: 0; }
  html body .hero .hero-nav .hn-k { display: none; }   /*十顆輪播鈕改成圓點*/
  html body .hero .hn-pause { width: 32px; height: 32px; border-color: rgba(255, 255, 255, .6); }
}
/*照片照寬度放、原照那段頂到首屏 272,字區到 329,疊 57)
 → 這種畫面兩顆按鈕改左右並排(各 161、間距 8,375 寬放得下)、揮手小綠人先藏,字區少 56,不壓到人。其他手機照舊上下排*/
@media (max-width: 767px) and (min-aspect-ratio: 3 / 5) {
  html body .hero .doors { grid-template-columns: repeat(2, max-content); gap: var(--s-2); }
  html body .hero .gm-greet { display: none; }
}
/*圓點外面有個計時的圓框線」(手機)
 - 十顆白點(6px、沒輪到的 50%)置中排在首屏底部,點了跳到那張(就是原本的十顆輪播鈕,名字留給讀屏)
 - 目前那顆外面一圈 18px 的細圓框(1.5px),白線順時針畫一圈 = 這張剩多少時間(跟原本進度條同一個 7 秒;按暫停就停在整圈)
 - 站名小字在圓點上面那一行靠左、暫停鈕同一行靠右(放在圓點那排右邊,360 寬的手機會貼到最後一顆圓點);最下面那排只有圓點,永遠正中*/
@property --hn-ring { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes hn-ring { from { --hn-ring: 0deg; } to { --hn-ring: 360deg; } }
@media (max-width: 767px), (min-width: 768px) and (max-width: 1199px) and (orientation: portrait) {
  html body .hero .hero-nav { left: 0; right: 0; bottom: 0; height: 56px; display: flex; align-items: center; justify-content: center; }
  html body .hero .hero-nav ol { display: flex; flex: none; gap: 6px; justify-content: center; }
  html body .hero .hero-nav li { flex: none; display: block; }
  html body .hero .hero-nav li + li::before { display: none; }
  html body .hero .hn-b { position: relative; display: block; width: 20px; height: 20px; min-width: 0; min-height: 0; padding: 0; }
  html body .hero .hn-b::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; opacity: .5; transition: opacity .3s; }
  html body .hero .hn-b.on::before { opacity: 1; }
  html body .hero .hn-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  html body .hero .hn-bar { display: none; }
  html body .hero .hn-b.on .hn-bar { display: block; position: absolute; inset: 1px; height: auto; border-radius: 50%; overflow: visible;
    background: conic-gradient(#fff var(--hn-ring, 360deg), rgba(255, 255, 255, .3) 0);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1.5px)); }
  html body .hero .hn-b.on .hn-bar i { display: none; }
  html body .hero:not(.run) .hn-b.on .hn-bar { --hn-ring: 360deg; }
  html body .hero.run .hn-b.on .hn-bar { animation: hn-ring var(--hdur, 7000ms) linear both; }
  html body .hero .hn-pause { position: absolute; right: 20px; top: auto; bottom: calc(100% - 5px); }   /* 跟站名那行(高 21)上下置中 */
  html body .hero .hero-pl { bottom: 56px; }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce), (min-width: 768px) and (max-width: 1199px) and (orientation: portrait) and (prefers-reduced-motion: reduce) { html body .hero .hn-b.on .hn-bar { animation: none !important; --hn-ring: 360deg; } }
/*改靠左:第一顆白點的左緣(按鈕 20 裡的 6px 點,離按鈕左邊 7)= 站名字的左緣 20 → 那排從 13 起。
 目前在第一張時,外圈計時框(18px)會比字多出去 6(圈比點大,點對齊是多數時候看到的狀態)*/
@media (max-width: 767px), (min-width: 768px) and (max-width: 1199px) and (orientation: portrait) {
  html body .hero .hero-nav { justify-content: flex-start; padding-left: 13px; }
  html body .hero .hero-nav ol { justify-content: flex-start; }
}
/*圓點已經靠左,不會撞到
 圓點那排固定 13–267,暫停鈕在 寬−52 到 寬−20 → 390 寬隔 71、375 隔 56、360 隔 41;最窄 320 只剩 1 → 340 以下圓點間距 6 → 4(隔 19)*/
@media (max-width: 767px), (min-width: 768px) and (max-width: 1199px) and (orientation: portrait) {
  html body .hero .hn-pause { top: 12px; bottom: auto; }
}
@media (max-width: 340px) {
  html body .hero .hero-nav ol { gap: 4px; }
}
/*
 這段只改平板的尺寸:左右對齊上面字欄(離首屏邊 56)、最下面那排高 72;揮手小綠人跟手機一樣浮在按鈕右邊、靠字欄右緣
 不佔高度(原本跟兩顆按鈕排同一行,把按鈕往下撐約 70,字區會壓到照片上緣 8)*/
@media (min-width: 768px) and (max-width: 1199px) and (orientation: portrait) {
  html body .hero .hero-nav { height: 72px; padding-left: 49px; }   /* 第一顆白點左緣 = 字欄左緣 56(點在 20 的按鈕裡離左邊 7) */
  html body .hero .hn-pause { right: 56px; top: 20px; }
  html body .hero .hero-pl { left: 56px; bottom: 72px; }
  html body .hero .doors { position: relative; }
  html body .hero .gm-greet { position: absolute; right: 0; bottom: 0; margin: 0; }
}

/*客戶回覆-20261031/LINE-142539.png)*/
@media (max-width: 767px) {
  /*字 12 → 10、字距 .1 → .06em,三顆都一行*/
  html body .o-center #find .tabs-f .tab em { word-spacing: normal; white-space: nowrap; font-size: 10px !important; letter-spacing: .06em !important; }
  /* 第 7 條「手機版的復健時間的文字縮小一級，目前會超過畫面」→ 18 → 16(站上次一級,跟今天條、週班表同級);不換行的那兩段原本把整頁撐到 400 寬。
     16 也要 405 寬才放得下週一至週五那段 → 手機上兩天各一行,太窄只在「、」後面換行,時段本身(.tr)不拆 */
  html body .o-center #hours .now-card .rh-hrs { font-size: 16px; }
  html body .o-center #hours .now-card .rh-hrs .nw { display: block; white-space: normal; word-break: keep-all; }
  html body .o-center #hours .now-card .rh-hrs .tr { white-space: nowrap; }
  /*「或是我可以試試看 5%左右的空間」
 → 標題上方 24 → 24 + 5% 螢幕高(390×844 約 66;矮手機原本 12 → 12 + 5%);只動手機,平板直拿不動。原本的 24/12 是 !important,這裡也要*/
  html body .hero .hero-in { padding-top: calc(var(--s-5) + 5svh) !important; }
}
@media (max-width: 767px) and (max-height: 740px) {
  html body .hero .hero-in { padding-top: calc(var(--s-3) + 5svh) !important; }
}
/*復健照留)。新照片都是 16:9 全員照,3:2 框會切到最旁邊的人
 → 四張卡的照片框一起改 16:9(跟上面大合照同比例);復健那張 AI 草稿 3:2,上下各裁一點,人頭都在框內*/
html body .o-center #team .tm-tcs > .sl-tc > figure { aspect-ratio: 16 / 9; }

/*首頁、子頁同一顆):往下捲縮成 56×56 圓鈕、往上捲或停住展開
 縮放 = 寬度上限+左內距一起過渡 0.25 秒(ease,不彈跳);字還在按鈕裡、只是被裁掉,讀屏照念「預約- 聯絡」;「＋」在圓裡置中(20 + 16 + 20)
 頁尾最下方多 88 留白══*/
@media (max-width: 767px) {
  html body .mbar-tg { max-width: 152px; overflow: hidden; white-space: nowrap; transition: max-width .25s ease, padding .25s ease; }
  html body .mbar.mbar-mini .mbar-tg { max-width: 56px; padding-left: 20px; }
  html body .ft > .wrap { padding-bottom: 88px; }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) { html body .mbar-tg { transition: none; } }
