/* 前台樣式：暖白底、Logo 藍綠做標題與重點、暖黃只給 LINE 按鈕與提醒 */
:root {
  --brand: #0b87a0;
  --accent: #f7b641;
  --brand-ink: color-mix(in oklab, var(--brand), #000 30%);
  --brand-soft: color-mix(in oklab, var(--brand), #fff 88%);
  --accent-soft: color-mix(in oklab, var(--accent), #fff 78%);
  --ground: #faf7f0;
  --surface: #fff;
  --ink: #1f3036;
  --ink-2: #33454b;
  --line: color-mix(in oklab, var(--brand), var(--ground) 82%);
  --r: 18px;
  --r-card: 24px;
  /* Logo 原色（取樣自 logo-mark.png）。裝飾只用這組，後台改主色也不會跟著變 */
  --logo-teal: #048ca4;
  --logo-gold: #fcb43c;
  /* 淡色用較白的暖白去混：直接混 --ground 的黃會把藍綠拉成灰綠 */
  --warm-white: color-mix(in oklab, var(--ground), #fff 60%);
  --tint-teal: color-mix(in oklab, var(--logo-teal) 10%, var(--warm-white));
  --tint-teal-2: color-mix(in oklab, var(--logo-teal) 6%, var(--warm-white));
  --tint-gold: color-mix(in oklab, var(--logo-gold) 16%, var(--warm-white));
  --edge-teal: color-mix(in oklab, var(--logo-teal) 24%, var(--warm-white));
  --edge-gold: color-mix(in oklab, var(--logo-gold) 45%, var(--warm-white));
  --deco-opacity: .08;
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  /* ---------- 字級規範（2026-11-18）：全用 rem／clamp，跟著瀏覽器字級設定與放大；改字級改這裡 ----------
     首頁主標 30–48px、頁面主標 28–40px、區塊標題 24–32px、卡片標題 18–20px、
     一般內文 17px、文章正文 17–18px、選單與按鈕 17px、輔助資訊至少 14px */
  --fs-display: clamp(1.875rem, 1.2rem + 2.2vw, 3rem);
  --fs-h1: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  --fs-h2: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  --fs-h3: clamp(1.125rem, 1.05rem + .3vw, 1.25rem);
  --fs-lead: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  --fs-body: 1.0625rem;
  --fs-article: clamp(1.0625rem, 1rem + .25vw, 1.125rem);
  --fs-ui: 1.0625rem;
  --fs-small: .875rem;
  --lh-body: 1.75;
  --lh-head: 1.3;
  /* 間距：元件內 8／12／16，卡片內距 20–28，區塊上下 40–72 */
  --sp-1: .5rem;
  --sp-2: .75rem;
  --sp-3: 1rem;
  --sp-4: 1.5rem;
  --sp-5: 2rem;
  --pad-card: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  --pad-sec: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
  --measure: 40em;
}
/* 英文頁用西文字型：Noto Sans TC 的 ’ 是全形，會變成「Taiwan’ s」 */
:root:lang(en) {
  --font: system-ui, "Segoe UI", Roboto, "Noto Sans TC", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
/* rem 跟著使用者瀏覽器字級（預設 16px）；內文也用 rem，瀏覽器放大字級時整頁一起變大 */
html { font-size: 100%; -webkit-text-size-adjust: 100%; scroll-padding-top: 150px; }
body { margin: 0; font-family: var(--font); font-size: var(--fs-body); line-height: var(--lh-body); font-weight: 400; -webkit-font-smoothing: antialiased; color: var(--ink); background: var(--ground); }
img { max-width: 100%; display: block; }
a { color: var(--brand-ink); text-underline-offset: .2em; }
::selection { background: var(--accent-soft); color: var(--ink); }
:focus-visible { outline: 3px solid var(--brand-ink); outline-offset: 2px; border-radius: 6px; }
/* 中文標題只在標點、空白處換行，不把「疑問」這類詞拆開；真的放不下才硬斷 */
h1, h2, .tagline { word-break: keep-all; overflow-wrap: anywhere; }
h1, h2, h3 { line-height: var(--lh-head); color: var(--brand-ink); text-wrap: balance; font-weight: 700; }
h1 { font-size: var(--fs-h1); margin: .2em 0 .4em; }
h2 { font-size: var(--fs-h2); margin: 0; }
h3 { font-size: var(--fs-h3); font-weight: 600; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--brand-ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }
.ic { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* 公告、預覽 */
.notice { background: var(--accent); color: #2b2205; }
.notice a { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 0; color: inherit; text-decoration: none; }
.notice a span { margin-left: auto; text-decoration: underline; white-space: nowrap; }
.notices { display: grid; gap: 12px; margin: 20px 0; }
.notice-card { display: flex; gap: 12px; padding: 16px 18px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 22%, #fff); border: 2px solid var(--accent); color: #2b2205; }
.notice-card .ic { flex: none; width: 28px; height: 28px; margin-top: 2px; }
.notice-card h2 { margin: 0 0 4px; font-size: var(--fs-h3); }
.notice-card p { margin: 4px 0 0; }
.preview-bar { background: #2b2205; color: #fff; text-align: center; padding: 8px 16px; font-size: .9375rem; position: sticky; top: 0; z-index: 30; }
.todo { display: inline-block; margin: 6px 0; padding: 4px 12px; border: 2px dashed #c98a00; border-radius: 8px; background: #fff7e2; color: #6b4800; font-size: .9375rem; font-weight: 700; }

/* 頁首 */
/* 頁首（狀態條＋選單）往下捲也固定在頂端 */
.site-head { position: sticky; top: 0; z-index: 30; }
/* 最上方狀態條：Logo、標語、電話，右邊直接放 LINE 諮詢與導航到店 */
.top-bar { color: var(--ink-2); font-size: .9375rem; padding: 8px 0; letter-spacing: .02em; border-bottom: 1px solid var(--line); }
.top-bar .wrap { display: flex; align-items: center; gap: 8px 20px; }
.top-bar p { margin: 0; }
.top-bar a { color: var(--brand-ink); font-weight: 700; text-decoration: none; }
.top-bar .brand { display: flex; align-items: center; min-height: 44px; gap: 10px; font-size: 1.375rem; white-space: nowrap; }
.top-bar .brand img { width: 44px; height: 44px; border-radius: 50%; background: #fff; padding: 2px; }
.top-info { display: flex; align-items: center; gap: 16px; }
.top-bar .top-info { margin-right: auto; }
.top-slogan { color: var(--ink-2); }
.top-actions { display: flex; gap: 8px; }
.top-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 4px 16px; border-radius: 999px; border: 1.5px solid var(--line); transition: background-color .2s; white-space: nowrap; }
.top-btn:hover { background: var(--brand-soft); }
.top-bar .top-line { background: var(--accent); border-color: var(--accent); color: #2b2205; }
.top-bar .top-line:hover { background: color-mix(in oklab, var(--accent), #fff 25%); }
@media (max-width: 960px) { .top-slogan { display: none; } }
/* 手機：電話和導航在底部按鈕列，狀態條只留 Logo 與 LINE；按鈕至少 44px 高 */
@media (max-width: 760px) { .top-info, .top-bar .top-map { display: none; } .top-bar .top-actions { margin-left: auto; } .top-btn { min-height: 44px; } .top-bar .brand { font-size: 1.25rem; } .top-bar .brand img { width: 40px; height: 40px; } }
/* 選單列 */
.head-row { display: flex; justify-content: center; padding: 8px 0; }
.site-head { background: var(--ground); border-bottom: 1px solid var(--line); }
.site-head nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-head nav a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-size: var(--fs-ui); font-weight: 500; white-space: nowrap; }
.site-head nav a:hover { color: var(--brand-ink); background: var(--brand-soft); }
.site-head nav a[aria-current] { color: var(--brand-ink); background: var(--brand-soft); }
/* 下拉選單（參考信男藥局）：桌機滑過或鍵盤移入時展開；觸控與手機點一下展開（.open，motion.js） */
.site-head nav li.has-sub { position: relative; }
.site-head nav .sub { display: none; position: absolute; top: 100%; left: 50%; translate: -50% 0; z-index: 35; flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; align-items: stretch; gap: 0; min-width: 180px; padding: 8px; background: var(--surface); border-radius: 12px; box-shadow: 0 16px 32px -16px rgb(0 0 0 / .3); }
.site-head nav .sub::before { content: ""; position: absolute; inset: -10px 0 auto; height: 10px; }
.site-head nav .sub a { border-radius: 8px; padding: 10px 14px; }
@media (hover: hover) and (min-width: 761px) { .site-head nav li.has-sub:hover > .sub, .site-head nav li.has-sub:focus-within > .sub { display: flex; } }
.site-head nav .open > .sub { display: flex; }
.site-head nav li.has-sub.open > a { color: var(--brand-ink); background: var(--brand-soft); }
@media (min-width: 761px) {
  .site-head nav li.has-sub > a { display: flex; align-items: center; gap: 8px; }
  .site-head nav li.has-sub > a::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 2px 2px 0; rotate: 45deg; translate: 0 -2px; }
}
/* 第二層（保健營養、輔具醫材、依品牌分類）：寬螢幕往右展開，窄螢幕在原地往下展開 */
.site-head nav li.has-sub2 { position: relative; }
.site-head nav .sub-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 10px 14px; border: 0; border-radius: 8px; background: none; font: inherit; font-weight: 500; color: var(--ink-2); text-align: left; white-space: nowrap; cursor: pointer; }
.site-head nav .sub-head::after { content: ""; flex: none; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; rotate: -45deg; }
.site-head nav .sub-head:hover, .site-head nav .open > .sub-head { color: var(--brand-ink); background: var(--brand-soft); }
@media (min-width: 1001px) {
  .site-head nav .sub2 { top: -8px; left: 100%; translate: none; }
  .site-head nav .sub2::before { inset: 0 auto 0 -10px; width: 10px; height: auto; }
}
@media (hover: hover) and (min-width: 1001px) { .site-head nav li.has-sub2:hover > .sub2 { display: flex; } }
@media (max-width: 1000px) {
  .site-head nav .sub2 { position: static; translate: none; min-width: 0; padding: 0 0 4px 12px; box-shadow: none; }
  .site-head nav .sub-head::after { rotate: 45deg; }
  .site-head nav .open > .sub-head::after { rotate: -135deg; }
}
/* 手機：五格平分一排，長名稱換成短名稱（.nav-full 留給讀屏軟體） */
.nav-short { display: none; }
@media (max-width: 760px) {
  .head-row { padding: 6px 0; }
  .site-head nav { flex: 1; }
  .site-head nav ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; align-items: center; }
  /* 一格放不下（約 4 個字）就平均折成兩行，不然會壓到隔壁 */
  .site-head nav a { padding: 6px 0; border-radius: 12px; text-align: center; font-size: 1rem; line-height: 1.25; white-space: normal; text-wrap: balance; }
  .nav-full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .nav-short { display: inline; }
  /* 下拉在手機是選單列底下一整片，太長就在裡面捲 */
  .head-row { position: relative; }
  .site-head nav li.has-sub { position: static; }
  .site-head nav .sub { left: 0; right: 0; translate: none; top: calc(100% - 4px); max-height: min(70dvh, 560px); overflow-y: auto; overscroll-behavior: contain; }
  .site-head nav .sub a, .site-head nav .sub-head { padding: 12px 14px; text-align: left; font-size: 1rem; }
}

/* 按鈕 */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 24px; border-radius: 999px; font: inherit; font-weight: 600; font-size: var(--fs-ui); line-height: 1.4; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .2s cubic-bezier(.22, 1, .36, 1), background-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand-ink); color: #fff; }
.btn-primary:hover { background: color-mix(in oklab, var(--brand-ink), #000 15%); }
.btn-line { background: var(--accent); color: #2b2205; }
.btn-line:hover { background: color-mix(in oklab, var(--accent), #fff 25%); }
.btn-secondary { background: var(--surface); color: var(--brand-ink); border-color: var(--brand); }
.btn-secondary:hover { background: var(--brand-soft); }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }

/* 首屏 */
.hero { padding: clamp(32px, 5vw, 64px) 0; position: relative; overflow: clip; }
/* Logo 裝飾層：aria-hidden、不吃點擊，透明度只設在裝飾本身 */
.deco { position: absolute; z-index: 0; pointer-events: none; }
.hero-grid > :not(.deco) { position: relative; z-index: 1; }
.deco-hero { width: 760px; aspect-ratio: 1; top: -240px; right: -200px; background: url(/assets/logo-mark.png) center / contain no-repeat; opacity: var(--deco-opacity); }
@media (max-width: 1000px) { .deco-hero { width: 420px; top: auto; bottom: -140px; right: -150px; } }
.hero .lead { color: var(--ink-2); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: var(--fs-display); line-height: 1.25; font-weight: 700; margin-top: 0; }
.lead { font-size: var(--fs-lead); line-height: 1.7; color: var(--ink); max-width: 34em; margin: 0; text-wrap: pretty; }
.hero-sub-actions { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 16px 0 0; }
.hero-media { border-radius: var(--r); overflow: hidden; }
/* 櫃台實拍是直式：桌機 4:5 幾乎不裁，手機橫裁時對準藥師與客人 */
.hero-photo { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 60%; }
.hero-mark { background: var(--surface); border-radius: 50%; padding: 12%; box-shadow: 0 24px 60px -28px color-mix(in oklab, var(--brand), transparent 30%); max-width: 360px; margin-inline: auto; }
.hero-mark img { width: 100%; height: auto; aspect-ratio: 1; }
@media (max-width: 1000px) { .hero-grid { grid-template-columns: 1fr; } .hero-photo { aspect-ratio: 4 / 3; } }
@media (max-width: 760px) {
  .hero-mark { max-width: 200px; }
  .hero-photo { aspect-ratio: 4 / 3; }
}

/* 區塊 */
.sec { padding: var(--pad-sec) 0; }
.sec-tint { background: var(--tint-teal-2); }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: var(--sp-4); }
.sec-sub { margin: -12px 0 var(--sp-4); color: var(--ink-2); max-width: var(--measure); }
.page { padding: clamp(24px, 4vw, 48px) 0 72px; }
.page > h1 { margin-top: 0; }
.back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 500; color: var(--ink-2); margin-bottom: 12px; }
.meta { color: var(--ink-2); font-size: .9375rem; line-height: 1.6; margin: 0 0 12px; }
.empty { padding: 32px; background: var(--surface); border-radius: var(--r); color: var(--ink-2); }
.chip { display: inline-block; padding: 2px 12px; border-radius: 999px; background: var(--accent-soft); color: #5c3d00; font-size: .9375rem; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 12px 0; }
.plain { padding-left: 1.2em; margin: 8px 0; }

/* 首頁服務區（2026-11-18 改版）：四項服務是主角（白卡），LINE 與藥品查詢縮成下方輔助列，不再和服務搶寬度 */
.home-svc { padding: var(--pad-sec) 0 calc(var(--pad-sec) * .6); }
.tagline { font-weight: 700; font-size: var(--fs-h2); line-height: var(--lh-head); color: var(--brand-ink); margin: 0 0 var(--sp-4); max-width: 18em; }
.svc-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.svc-cards li { min-width: 0; }
.svc-cards a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: var(--pad-card); border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.svc-cards a:hover { border-color: var(--brand); box-shadow: 0 10px 24px -18px rgb(31 48 54 / .5); }
.svc-cards h3 { margin: 4px 0 0; font-size: var(--fs-h3); line-height: 1.4; color: var(--brand-ink); }
.svc-cards p { margin: 0; color: var(--ink-2); font-size: 1rem; line-height: 1.7; }
.svc-go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--brand-ink); }
.svc-cards a:hover .svc-go { text-decoration: underline; text-underline-offset: .2em; }
/* 圖示色塊：藍綠、金黃交替 */
.feat-ic { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 6px; border-radius: 16px; background: var(--tint-teal); border: 1px solid var(--edge-teal); }
.svc-cards li:nth-child(even) .feat-ic { background: var(--tint-gold); border-color: var(--edge-gold); }
.feat-ic img { width: 36px; height: 36px; }
.feat-name { font-size: var(--fs-small); font-weight: 600; color: var(--ink-2); }
/* 輔助列：LINE（桌機顯示 QR Code，手機可展開）、藥品查詢 */
.home-aux { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.aux { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 20px 24px; border-radius: var(--r-card); }
.aux-line { background: var(--tint-teal); }
.aux-drug { background: var(--surface); border: 1px solid var(--line); }
.aux-text { flex: 1 1 14em; min-width: 0; }
.aux-h { margin: 0; font-size: var(--fs-h3); line-height: 1.4; color: var(--brand-ink); font-weight: 700; }
.aux-text p { margin: 2px 0 0; color: var(--ink-2); font-size: 1rem; }
.aux-line .btn { min-height: 48px; padding: 8px 20px; }
.aux-qr { width: 104px; height: auto; border-radius: 12px; background: #fff; padding: 6px; }
.aux-qr-m { display: none; flex-basis: 100%; }
.aux-qr-m summary { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--brand-ink); cursor: pointer; }
.aux-qr-m img { width: 160px; height: auto; margin-top: 4px; border-radius: 12px; background: #fff; padding: 8px; }
.aux-drug .search { flex: 1 1 18em; min-width: 0; margin: 0; max-width: none; }
.aux-drug .search input { min-height: 48px; }
.aux-drug .search .btn { min-height: 48px; padding: 8px 18px; }
@media (max-width: 1000px) {
  .svc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-aux { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .aux-qr { display: none; }
  .aux-qr-m { display: block; }
}
@media (max-width: 560px) {
  .svc-cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  /* 手機：圖示在左、文字在右，四張卡不會滑不完 */
  .svc-cards a { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 16px; border-radius: 20px; }
  .svc-cards a > * { grid-column: 2; }
  .svc-cards .feat-ic { grid-column: 1; grid-row: 1 / span 4; width: 48px; height: 48px; border-radius: 14px; margin: 2px 0 0; }
  .feat-ic img { width: 30px; height: 30px; }
  .svc-cards h3 { margin: 0; }
  .aux { padding: 18px; border-radius: 20px; }
  .aux-line .btn { flex: 1 1 100%; }
}
/* 精選商品：獨立一區、淡青綠底，用滿內容寬度 */
.home-prod .products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
@media (max-width: 1000px) { .home-prod .products { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .home-prod .products { gap: 24px 12px; } }

/* 服務列 */
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rows li { background: var(--surface); border-radius: 12px; }
.row-link { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; text-decoration: none; color: var(--ink); border-radius: 12px; transition: background-color .2s; }
.row-link > * { min-width: 0; overflow-wrap: anywhere; }
.row-link:hover { background: var(--brand-soft); }
.row-main { display: grid; gap: 4px; }
.row-main strong { font-size: var(--fs-h3); line-height: 1.45; color: var(--brand-ink); }
.row-main span { color: var(--ink-2); }
.row-side { display: flex; align-items: center; gap: 12px; color: var(--brand-ink); flex: none; }
.chip { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.row-link:hover .ic { transform: translateX(4px); }
.row-side .ic { transition: transform .2s; }

/* 藥局介紹 */
.about-teaser { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.about-teaser.no-photo { grid-template-columns: minmax(0, 760px); }
.about-teaser .lead { margin-top: 0; }
.about-photo, .about-cover { width: 100%; object-fit: cover; border-radius: var(--r); }
.about-photo { aspect-ratio: 4 / 3; }
.about-cover { aspect-ratio: 16 / 9; max-height: 480px; margin: 8px 0 32px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 320px); gap: clamp(24px, 4vw, 56px); align-items: start; }
.about-grid:has(> .prose:empty) { grid-template-columns: 1fr; }
.about-grid > .prose:empty { display: none; }
.features { padding: 24px; border-radius: var(--r); background: var(--brand-soft); }
.features h2 { font-size: var(--fs-h3); margin: 0 0 12px; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feature-list li { display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; align-items: center; }
.feature-list img { width: 48px; height: 48px; grid-row: span 2; }
.feature-list h3 { margin: 0; font-size: 1.125rem; }
.feature-list p { margin: 0; grid-column: 2; color: var(--ink-2); font-size: .9375rem; }
.gallery { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 16px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.about-store { margin: 56px 0 16px; }
.review-box { margin-top: 28px; padding: 20px; border-radius: var(--r); background: var(--ground); }
.review-box h3 { margin: 0 0 4px; font-size: 1.125rem; }
.review-box p { margin: 0; color: var(--ink-2); }
.review-box .actions { margin-top: 14px; }
@media (max-width: 760px) { .about-teaser, .about-grid { grid-template-columns: 1fr; } }

/* Google 評論（內容由 /assets/reviews.js 填入） */
.g-reviews { margin-top: clamp(40px, 6vw, 64px); }
.g-reviews h2 { margin: 0 0 8px; }
.g-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 20px; }
.g-score { font-size: 2.4rem; line-height: 1; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
/* 星等：五顆星形遮罩，底色依分數（--r，0–5）由左填到右 */
.stars { --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 5.9 6.5.9-4.7 4.6 1.1 6.5L12 17.3l-5.8 3.1 1.1-6.5-4.7-4.6 6.5-.9z'/%3E%3C/svg%3E");
  display: inline-block; flex: none; width: 5.5em; height: 1.1em; vertical-align: -.15em;
  -webkit-mask: var(--star) 0 0 / 1.1em 1.1em repeat-x; mask: var(--star) 0 0 / 1.1em 1.1em repeat-x;
  background: linear-gradient(90deg, color-mix(in oklab, var(--accent), #000 12%) calc(var(--r, 0) / 5 * 100%), var(--line) 0); }
.review-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; align-items: start; }
.review { padding: 20px; border-radius: var(--r); background: var(--surface); }
.review-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.review-head img, .avatar { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.avatar { display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; }
.review-name { display: block; font-weight: 700; color: var(--ink); }
.review-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin: 0; color: var(--ink-2); font-size: .9375rem; }
.review-text { margin: 0; white-space: pre-line; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden; }
.review-text.open { display: block; }
.review-more { padding: 8px 0; border: 0; background: none; color: var(--brand-ink); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; }
.review-links { margin-top: 10px; }
.review-links a { padding-block: 4px; }
.g-note { margin: 16px 0 0; font-size: .9375rem; color: var(--ink-2); }

/* 商品 */
/* 參考電商列表：照片方格、無卡片框，品名＋價格直接排在照片下 */
.products { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 36px 20px; }
/* 卡片：照片固定 1:1、整張照片不裁切不變形；名稱、特色往下排，價格貼底，同一排的價格對齊 */
.product { display: flex; flex-direction: column; min-width: 0; }
.product a { display: flex; flex-direction: column; flex: 1; text-decoration: none; color: var(--ink); }
.product-img { aspect-ratio: 1; background: var(--surface); border-radius: 14px; overflow: hidden; display: grid; place-items: center; position: relative; }
/* 直式書籤標籤，掛在照片左上角 */
.tag { position: absolute; top: 0; left: 12px; z-index: 1; writing-mode: vertical-rl; padding: 8px 6px 14px; background: var(--brand-ink); color: #fff; font-size: .875rem; font-weight: 700; letter-spacing: .12em; line-height: 1; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 7px), 0 100%); }
.tag-sale { background: var(--accent); color: #2b2205; }
.product-img img { width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: transform .4s; }
.product a:hover .product-img img { transform: scale(1.04); }
.product a:hover strong { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.no-img { width: 34%; aspect-ratio: 1; font-size: 0; background: url(/assets/logo-mark.png) center / contain no-repeat; opacity: .35; }
.product-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 2px 0; }
.product-body strong { font-size: var(--fs-body); font-weight: 600; line-height: 1.5; }
.product-body .price, .product-body .price-ask { margin-top: auto; padding-top: 4px; }
.product-feat { color: var(--ink-2); font-size: .9375rem; line-height: 1.6; }
.spec { color: var(--ink-2); font-size: .9375rem; }
.price { font-weight: 700; color: var(--brand-ink); font-variant-numeric: tabular-nums; font-size: 1.1875rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.price s { order: 1; font-weight: 400; font-size: .8em; color: var(--ink-2); }
/* 建議售價＋會員價（schema.js 的 priceDual；各款價格表、比較表共用 .p-sug／.p-mem）：建議售價刪除線、會員價放大加粗 */
.price-sug, .price-mem { order: 2; flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
.price-sug small, .price-mem small { font-size: var(--fs-small); font-weight: 600; color: var(--ink-2); }
s.p-sug { order: 0; font-weight: 400; font-size: .85em; color: var(--ink-2); text-decoration-thickness: 1px; }
.p-mem { font-weight: 800; font-size: 1.2em; color: var(--brand-ink); }
.price-table s.p-sug { font-size: 1em; }
.price-table .p-mem { font-size: 1.1em; }
.price-table { margin: -4px 0 16px; font-size: 1rem; }
.dims-table.price-table tbody th { white-space: normal; overflow-wrap: anywhere; }
.price-ask { color: var(--ink-2); font-size: 1rem; font-weight: 600; }
.price-lg { font-size: 1.8rem; margin: 8px 0 16px; }
.product-detail > * { min-width: 0; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: start; }
.product-photo { background: var(--surface); border-radius: var(--r); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; position: relative; }
.product-photo img { width: 100%; height: 100%; object-fit: contain; }
.product-detail h1 { margin-top: 0; font-size: clamp(1.625rem, 1.3rem + 1vw, 2.25rem); }
@media (max-width: 760px) { .product-detail { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .products { grid-template-columns: 1fr 1fr; gap: 28px 12px; } }

/* 搜尋與分類 */
.search { display: flex; gap: 8px; max-width: 560px; margin-bottom: 16px; }
.lead + .search, .lead + .filter, .lead + .meta { margin-top: 24px; }
.rx-sec > h2 + .feature-list { margin-top: 16px; }
.search input { flex: 1; min-width: 0; min-height: 52px; padding: 0 18px; font: inherit; border: 2px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); }
.search input:focus { border-color: var(--brand); outline: none; }
.filter { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; }
.filter a { display: block; padding: 8px 16px; border-radius: 999px; background: var(--surface); text-decoration: none; color: var(--ink-2); font-weight: 500; min-height: 44px; }
.filter a[aria-current] { background: var(--brand-ink); color: #fff; border-color: transparent; }
/* 商品列表：麵包屑 → 標題 → 分類鈕 → 搜尋／件數／排序 → 商品格 */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .9375rem; color: var(--ink-2); margin-bottom: 4px; }
.crumbs a { color: inherit; text-underline-offset: 3px; min-height: 24px; }
.chip-row { display: grid; grid-template-columns: 3em minmax(0, 1fr); align-items: start; gap: 12px; margin-bottom: 12px; }
.chip-row-h { padding-top: 10px; font-weight: 700; color: var(--brand-ink); }
.cat-row { margin: 0; }
.chip-row + form { margin-top: 20px; }
.cat-row a:hover:not([aria-current]) { background: var(--brand-soft); color: var(--brand-ink); }
.shop-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-bottom: 20px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.shop-bar .search { margin: 0; flex: 0 1 360px; }
.shop-bar .search input { min-height: 48px; }
.shop-bar .search .btn { min-width: 48px; min-height: 48px; padding: 0; justify-content: center; }
.shop-count { margin: 0 auto 0 0; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sort { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: .9375rem; }
.sort select { min-height: 44px; padding: 0 36px 0 14px; font: inherit; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2333454b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 10px center / 16px no-repeat; appearance: none; cursor: pointer; }
.sort select:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (max-width: 760px) {
  /* 手機分類鈕排成一列左右滑，不佔滿第一屏 */
  .cat-row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .cat-row a { white-space: nowrap; }
  .shop-bar .search { flex: 1 1 100%; order: -1; }
}
/* 商品列表（/products）：搜尋 → 大類 → 分類 → 品牌（收合）→ 目前條件／件數／排序 → 商品 → 分頁
   篩選區是原生 popover：桌機強制攤開在頁面上，手機變成從下方拉起的抽屜（Esc、點外面都會關，焦點回到「篩選」鈕） */
.plist h1 { margin-bottom: 16px; }
.pl-search { max-width: 640px; margin: 0 0 20px; }
.pl-search .btn { min-height: 52px; padding: 0 20px; }
.pl-filter-btn { display: none; }
.pl-filters .filter { margin: 0 0 12px; }
.filter .n { margin-left: 6px; font-size: .875rem; font-weight: 400; opacity: .8; font-variant-numeric: tabular-nums; }
.grp-row a { font-size: var(--fs-ui); font-weight: 600; padding: 10px 20px; min-height: 48px; border: 1px solid var(--line); }
.grp-row a:hover:not([aria-current]) { border-color: var(--brand); color: var(--brand-ink); }
.pl-filters .cat-row { padding-left: 14px; border-left: 3px solid var(--edge-teal); }
.brand-filter { margin: 0 0 12px; }
.brand-filter summary { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--brand-ink); cursor: pointer; }
.brand-filter .filter { margin: 4px 0 0; }
.pl-drawer-head, .pl-done { display: none; }
@media (min-width: 761px) {
  .pl-filters[popover] { display: block; position: static; inset: auto; width: auto; height: auto; max-height: none; margin: 0; padding: 0; border: 0; background: none; color: inherit; overflow: visible; }
}
.pl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 0 20px; margin: 8px 0 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pl-bar .shop-count { margin: 0; font-weight: 600; color: var(--ink); }
.pl-bar .active-chips { flex: 1 1 auto; }
.pl-bar .sort-form { margin-left: auto; }
.clear-all { background: none !important; text-decoration: underline !important; text-underline-offset: .2em; }
.pl-at-intro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 0 0 24px; padding: 20px 24px; border-radius: var(--r); background: var(--tint-teal); }
.pl-at-intro p { margin: 0; flex: 1 1 20em; }
.pl-at-intro .actions { margin: 0; }
.empty-box .actions { margin-top: 16px; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 40px 0 8px; }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.pager a:hover { border-color: var(--brand); color: var(--brand-ink); }
.pager [aria-current] { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
@media (max-width: 760px) {
  .pl-filter-btn { display: inline-flex; min-height: 48px; margin: 0 0 4px; }
  .pl-filters { position: fixed; inset: auto 0 0 0; width: 100%; max-width: none; max-height: 85dvh; margin: 0; padding: 0 16px 16px; border: 0; border-radius: 20px 20px 0 0; background: var(--ground); color: var(--ink); overflow-y: auto; box-shadow: 0 -16px 40px -20px rgb(0 0 0 / .45); }
  .pl-filters::backdrop { background: rgb(20 30 34 / .45); }
  .pl-drawer-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 1; margin: 0 -16px 12px; padding: 8px 8px 8px 16px; background: var(--ground); border-bottom: 1px solid var(--line); }
  .pl-drawer-head p { margin: 0; font-weight: 700; font-size: var(--fs-h3); color: var(--brand-ink); }
  .pl-close { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 12px; background: none; color: var(--ink); cursor: pointer; }
  .pl-close .ic { width: 24px; height: 24px; }
  .pl-done { display: flex; width: 100%; justify-content: center; position: sticky; bottom: 0; margin-top: 8px; }
  .pl-filters .cat-row { flex-wrap: wrap; overflow: visible; margin-right: 0; padding-right: 0; }
  .pl-filters .cat-row a { white-space: normal; }
  .pl-bar .sort-form { margin-left: 0; }
  .pl-at-intro { padding: 18px; }
  .pl-at-intro .actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* 處方箋領藥 */
.rx-sec { margin-top: 48px; }
.rx-steps { list-style: none; counter-reset: step; margin: 16px 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.rx-steps li { counter-increment: step; padding: 24px; background: var(--surface); border-radius: var(--r); }
.rx-steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 12px; border-radius: 50%; background: var(--brand-ink); color: #fff; font-weight: 700; font-size: 1.25rem; }
.rx-steps h3 { margin: 0 0 8px; font-size: 1.125rem; }
.rx-steps p { margin: 0; }
.rx-qa { display: grid; gap: 8px; margin: 16px 0; max-width: 820px; }
.rx-qa details { background: var(--surface); border-radius: 12px; padding: 0 20px; }
.rx-qa summary { cursor: pointer; padding: 16px 0; font-weight: 700; min-height: 44px; }
.rx-qa summary, .pd-full > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rx-qa summary::-webkit-details-marker, .pd-full > summary::-webkit-details-marker { display: none; }
.rx-qa summary::after, .pd-full > summary::after { content: ""; flex: none; width: 9px; height: 9px; border: solid var(--brand-ink); border-width: 0 2.5px 2.5px 0; rotate: 45deg; translate: 0 -3px; transition: rotate .2s; }
.rx-qa details[open] > summary::after, .pd-full[open] > summary::after { rotate: 225deg; translate: 0 3px; }
.rx-qa details[open] { padding-bottom: 8px; }

/* 文章 */
.articles { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.article-row { display: flex; gap: 20px; align-items: center; padding: 18px 8px; text-decoration: none; color: var(--ink); }
.article-row:hover strong { text-decoration: underline; }
.article-row img { width: 120px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; flex: none; }
.article-row > span { display: grid; gap: 4px; }
.article-row strong { font-size: var(--fs-h3); line-height: 1.45; color: var(--brand-ink); }
.summary { color: var(--ink-2); }
.article-row .meta { margin: 0; font-size: .9375rem; }
.article-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 28px 24px; }
.article-card { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink); }
.article-cover { aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--brand-soft); display: grid; place-items: center; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.22, 1, .36, 1); }
.article-cover .cover-mark { width: 28%; height: auto; object-fit: contain; opacity: .55; }
.article-card:hover .article-cover img:not(.cover-mark) { transform: scale(1.04); }
.article-body { display: grid; gap: 4px; padding-top: 14px; }
.article-body .meta { margin: 0; font-size: .9375rem; }
.article-body .meta > span { white-space: nowrap; }
/* 首頁固定三篇：平板也排三欄，不留第三篇單獨一行 */
@media (min-width: 561px) and (max-width: 1000px) { .home .article-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; } }
.article-body strong { font-size: var(--fs-h3); line-height: 1.45; color: var(--brand-ink); }
.article-card:hover strong { text-decoration: underline; }
.article-body .summary { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
@media (max-width: 560px) {
  .article-cards { gap: 16px; }
  .article-card { flex-direction: row; gap: 14px; align-items: flex-start; }
  .article-cover { flex: none; width: 104px; aspect-ratio: 1; border-radius: 12px; }
  .article-body { padding-top: 0; min-width: 0; }
  .article-body strong { font-size: 1.125rem; }
  .article-body .summary { display: none; }
}
.cover { width: 100%; border-radius: var(--r); margin: 24px 0; }
.prose { max-width: var(--measure); }
.prose h2 { margin: 1.8em 0 .5em; font-size: clamp(1.375rem, 1.25rem + .5vw, 1.625rem); scroll-margin-top: 150px; }
.prose h3 { margin: 1.5em 0 .4em; font-size: var(--fs-h3); }
.prose img { border-radius: 12px; margin: 1em 0; }
.prose li { margin: .3em 0; }
.prose blockquote { margin: 1.4em 0; padding: 14px 20px; background: var(--accent-soft); border-left: 4px solid var(--logo-gold); border-radius: 0 12px 12px 0; }
.prose blockquote > :first-child { margin-top: 0; }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: inherit; }
.prose :is(th, td) { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }

/* 衛教文章：正文 17–18px、閱讀寬約 40 字；標題比列表頁小一號，摘要和正文的大小落差收小 */
.art { max-width: 760px; }
.art h1 { font-size: clamp(1.625rem, 1.3rem + 1.1vw, 2.25rem); margin-bottom: .3em; }
.art .lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: var(--measure); }
.art .prose { font-size: var(--fs-article); line-height: 1.8; }
.art .prose p { margin: 0 0 1.1em; }
.art .prose :is(ul, ol) { padding-left: 1.4em; margin: 0 0 1.1em; }
.byline { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 16px; color: var(--ink-2); font-size: .9375rem; }
.byline b { color: var(--ink); font-weight: 600; }
.keypts { margin: 24px 0; padding: 18px 22px; border-radius: var(--r); background: var(--tint-teal); border: 1px solid var(--edge-teal); max-width: var(--measure); }
.keypts h2 { margin: 0 0 8px; font-size: var(--fs-h3); }
.keypts ol { margin: 0; padding-left: 1.4em; font-size: var(--fs-article); }
.keypts li + li { margin-top: 4px; }
.toc { margin: 24px 0; padding: 4px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); max-width: var(--measure); }
.toc summary { min-height: 48px; display: flex; align-items: center; font-weight: 700; color: var(--brand-ink); cursor: pointer; }
.toc ol { margin: 0 0 14px; padding-left: 1.4em; }
.toc li { margin: 2px 0; }
.toc a { display: inline-block; padding: 4px 0; }
.org-info summary { min-height: 48px; display: flex; align-items: center; font-weight: 700; color: var(--brand-ink); cursor: pointer; }
.review-box { margin-top: 40px; color: var(--ink-2); }
.review-box h2 { font-size: 1.125rem; color: var(--ink); margin: 28px 0 8px; }
.review-box .facts { margin: 8px 0 24px; }
.review-badge { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; padding: 4px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; }
.review-badge svg { width: 18px; height: 18px; }
.review-note p { font-size: .9375rem; }

/* 詳情頁資訊 */
.facts { display: grid; gap: 0; margin: 32px 0; border-top: 2px solid var(--brand); }
.facts > div { display: grid; grid-template-columns: 8em 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-weight: 700; color: var(--brand-ink); }
.facts dd { margin: 0; }
.facts .plain { margin: 0; }
.cta-box { margin-top: 40px; padding: 28px; border-radius: var(--r); background: var(--brand-soft); }
.cta-box p { margin: 0; font-weight: 700; font-size: 1.125rem; }
.cta-box .actions { margin-top: 16px; }

/* 門市資訊 */
.sec-store { background: var(--tint-teal-2); }
.sec-store .store-grid > * { background: var(--surface); border-radius: var(--r-card); padding: clamp(20px, 3vw, 32px); }
.sec-store .map { border-radius: 12px; }
.store-nav { margin: 4px 0 0; }
@media (max-width: 1000px) { .sec-store .store-grid { grid-template-columns: minmax(0, 1fr); } }
/* 藥師聊健康：右上角一段淡金弧線，只在兩側留白夠寬時出現 */
.store-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.info { margin: 0; display: grid; }
.info > div { display: grid; grid-template-columns: 6em 1fr; gap: 16px; padding: 12px 0; }
.info dt { font-weight: 700; color: var(--brand-ink); }
.info dd { margin: 0; }
.info dd p { margin: 0; }
.hours { border-collapse: collapse; font-variant-numeric: tabular-nums; margin: 0 0 4px -8px; }
.hours th { text-align: left; font-weight: 500; padding: 2px 20px 2px 8px; color: var(--ink-2); }
.hours td { padding: 2px 10px 2px 0; }
/* 營業時間亮燈（hours.js）：今天那一列點亮，營業中的綠燈會呼吸 */
.open-now { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; padding: 4px 14px 4px 10px; border-radius: 999px;
  font-weight: 700; background: color-mix(in oklab, var(--ground), var(--ink) 6%); color: var(--ink-2); animation: pop-in .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.open-now[hidden] { display: none; }
.open-now::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: color-mix(in oklab, var(--ink), #fff 55%); }
.open-now.is-open { background: #e3f5ea; color: #17663d; }
.open-now.is-open::before { background: #2fb36d; animation: glow 1.8s ease-out infinite; }
.hours tr.today th, .hours tr.today td { background: var(--accent-soft); color: var(--ink); animation: light-up .9s ease-out both; }
.hours tr.today th { border-radius: 10px 0 0 10px; }
.hours tr.today td { border-radius: 0 10px 10px 0; }
.hours tr.today td::after { content: '今天'; margin-left: 8px; padding: 0 8px; border-radius: 999px; font-size: .8em; font-weight: 700; background: var(--accent); color: #5a3d00; }
@keyframes pop-in { from { opacity: 0; transform: scale(.8); } }
@keyframes glow { from { box-shadow: 0 0 0 0 #2fb36d99; } to { box-shadow: 0 0 0 8px #2fb36d00; } }
@keyframes light-up { 0% { background: transparent; } 40% { background: var(--accent); } }
@media (prefers-reduced-motion: reduce) { .open-now, .open-now::before, .hours tr.today th, .hours tr.today td { animation: none !important; } }
.map { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; border: 0; border-radius: var(--r); }
.map-note { margin: 0 0 8px; }
@media (max-width: 760px) { .store-grid { grid-template-columns: minmax(0, 1fr); } .info > div { grid-template-columns: 1fr; gap: 4px; } }
/* 桌機：地圖撐滿左欄高度，不留空白 */
@media (min-width: 761px) { .store-grid { align-items: stretch; } .store-grid > div:last-child { display: flex; flex-direction: column; } .store-grid .map { flex: 1; aspect-ratio: auto; min-height: 320px; } }

/* 頁尾 */
/* 頁尾用頁面底色，和白底的門市資訊分開 */
.site-foot { background: var(--ground); color: var(--ink); padding: 56px 0 0; }
.site-foot a { color: var(--ink); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 32px; }
.foot-h { font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.foot-qr { display: grid; justify-items: center; gap: 6px; font-weight: 700; text-decoration: none; }
.foot-bottom { margin-top: 40px; background: color-mix(in oklab, var(--ground), var(--ink) 6%); padding: 14px 0; text-align: center; font-size: .9375rem; }
.foot-bottom p { margin-block: 0; }
@media (max-width: 760px) { .site-foot { padding-top: 40px; } .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > div:first-child { grid-column: 1 / -1; } .foot-qr { display: none; } }
.foot-grid p { margin: 0 0 4px; }
.foot-name { font-weight: 700; font-size: 1.375rem; letter-spacing: .02em; color: var(--brand-ink); }
.foot-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }

/* 手機底部快捷列 */
.action-bar { display: none; }
@media (max-width: 760px) {
  .action-bar:has(a) { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; inset: auto 0 0 0; z-index: 40; background: var(--surface); box-shadow: 0 -8px 24px -12px rgb(0 0 0 / .2); padding-bottom: env(safe-area-inset-bottom); }
  .action-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; text-decoration: none; font-weight: 700; font-size: .9375rem; color: var(--brand-ink); }
  .action-bar a[data-link="line"] { background: var(--accent); color: #2b2205; }
  .action-bar .ic { width: 22px; height: 22px; }
  body:has(.action-bar a) { padding-bottom: 64px; }
}

/* 動態：只動 transform／opacity */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.06); } }
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .lead, .hero .actions, .hero-sub-actions, .hero-media { animation: rise .7s cubic-bezier(.22, 1, .36, 1) both; }
  .hero-media { animation-delay: .1s; }
  .hero .lead { animation-delay: .08s; }
  .hero .actions { animation-delay: .16s; }
  .hero-sub-actions { animation-delay: .22s; }
  .hero-photo { animation: drift 18s ease-in-out infinite alternate; }
  /* 捲動帶入：/assets/motion.js 只對一開始在畫面外的元素加 .reveal，捲到時加 .in；沒有 JS 就照常顯示 */
  .reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s cubic-bezier(.22, 1, .36, 1) var(--d, 0s), transform .9s cubic-bezier(.22, 1, .36, 1) var(--d, 0s); }
  .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* 首頁評論：左邊評分，右邊第一則放大，其餘小字列在下面 */
.quotes-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px clamp(32px, 6vw, 80px); align-items: start; }
.quotes-rating { display: flex; align-items: center; gap: 16px; margin: 24px 0 16px; color: var(--ink-2); }
.quotes-rating b { font-size: 3.75rem; line-height: 1; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.quotes-rating > span { display: grid; gap: 4px; }
.quotes-links { display: grid; justify-items: start; gap: 4px; margin: 0; }
.quote-main { margin: 0; }
.quote-main p { margin: 0 0 16px; font-size: clamp(1.25rem, 1.05rem + .8vw, 1.625rem); line-height: 1.6; font-weight: 500; color: var(--ink); text-wrap: pretty; }
.quote-main cite, .quotes cite { font-style: normal; font-size: .9375rem; color: var(--ink-2); }
.quotes { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 24px 32px; }
.quotes li { display: grid; gap: 8px; align-content: start; }
.quotes li p { margin: 0; color: var(--ink); font-size: 1rem; }
@media (max-width: 960px) { .quotes-grid { grid-template-columns: minmax(0, 1fr); } }


/* 藥局服務（沒有已發布服務時，用藥局特色列出） */
.svc-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.svc { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 20px; align-items: start; padding: clamp(20px, 3vw, 32px); border-radius: var(--r); background: var(--surface); }
.svc img { width: 72px; height: 72px; }
.svc h2 { margin: 0 0 8px; font-size: var(--fs-h3); }
.svc p { margin: 0 0 12px; }
.svc p:last-child { margin-bottom: 0; }
.svc-prep { padding: 12px 16px; border-radius: 12px; background: var(--brand-soft); }
.svc-prep strong { display: block; color: var(--brand-ink); }
@media (max-width: 760px) { .svc-list { grid-template-columns: minmax(0, 1fr); } .svc { grid-template-columns: 1fr; gap: 12px; } .svc img { width: 56px; height: 56px; } }

/* 認識藥師（藥局介紹頁上半部） */
.pharmacist { display: flex; gap: clamp(20px, 4vw, 40px); align-items: center; margin: clamp(24px, 4vw, 40px) 0; padding: clamp(24px, 4vw, 40px); border-radius: var(--r); background: var(--surface); scroll-margin-top: 16px; }
.pharmacist-photo { flex: none; width: clamp(120px, 20vw, 200px); height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.pharmacist-kicker { margin: 0; color: var(--brand-ink); font-weight: 700; }
.pharmacist h2 { margin: 4px 0 12px; }
.pharmacist p { margin: 0 0 8px; }
.pharmacist:target { outline: 3px solid var(--accent); outline-offset: 4px; }
@media (max-width: 760px) { .pharmacist { flex-direction: column; align-items: flex-start; } }
.drug-photos img { object-fit: contain; background: #fff; }

/* 語言選單（中文／English／Tiếng Việt／Bahasa Indonesia）：狀態條一顆按鈕，手機只留地球圖示 */
.lang-btn { font: inherit; font-weight: 700; color: var(--brand-ink); background: none; cursor: pointer; anchor-name: --lang; }
.lang-menu { position: fixed; inset: 64px 16px auto auto; margin: 0; list-style: none; min-width: 200px; padding: 8px; border: 0; border-radius: 12px; background: var(--surface); color: var(--ink); box-shadow: 0 16px 32px -16px rgb(0 0 0 / .35); }
@supports (position-anchor: --lang) { .lang-menu { position-anchor: --lang; inset: auto; top: anchor(bottom); right: anchor(right); margin-top: 8px; } }
.lang-menu a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 500; }
.lang-menu a:hover { background: var(--brand-soft); color: var(--brand-ink); }
.lang-menu a[aria-current] { color: var(--brand-ink); font-weight: 700; }
@media (max-width: 760px) {
  .top-bar .wrap { gap: 8px; }
  .top-langs { margin-left: auto; }
  .top-bar .top-actions { margin-left: 0; }
  .lang-btn { min-width: 44px; padding: 4px 10px; }
  .lang-cur { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
/* 很窄的手機（320px）：LINE 按鈕拿掉圖示、縮內距，才不會壓到店名 */
@media (max-width: 359px) { .top-bar .brand { gap: 6px; } .top-bar .top-line { padding-inline: 10px; } .top-bar .top-line svg { display: none; } .article-body .meta > span { white-space: normal; } }
/* 給店員看的中文句子 */
.phrases { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.phrases li { padding: 20px; background: var(--surface); border-radius: var(--r); }
.phrases p { margin: 0; }
.phrase-zh { font-size: 1.375rem; font-weight: 700; color: var(--brand-ink); margin-bottom: 6px !important; }

/* 輔具頁：版型參考鄰近健康長照登記頁（標籤、編號步驟、虛線提醒、分步登記卡），配色換成本站藍綠＋暖黃 */
.at-eyebrow { display: inline-block; margin: 0 0 12px; padding: 4px 16px; border-radius: 999px; background: var(--brand-ink); color: #fff; font-size: .9375rem; font-weight: 700; letter-spacing: .06em; }
.at-promise { margin: 20px 0 0; padding: 2px 0 2px 14px; border-left: 3px solid var(--brand); }
.at-h { margin: 48px 0 16px; font-size: var(--fs-h2); }
.at-steps { list-style: none; counter-reset: at; margin: 0; padding: 0; display: grid; gap: 16px; }
.at-steps li { counter-increment: at; display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; }
.at-steps li::before { content: counter(at); grid-row: 1 / span 2; display: grid; place-items: center; width: 28px; height: 28px; margin-top: 2px; border-radius: 50%; background: var(--brand-ink); color: #fff; font-size: .9375rem; font-weight: 700; }
.at-steps li > * { grid-column: 2; }
.at-steps b { font-size: 1.0625rem; }
.at-steps span { color: var(--ink-2); font-size: 1rem; }
.at-remind { margin: 24px 0 0; padding: 14px 18px; border: 1.5px dashed var(--edge-gold); border-radius: 14px; background: var(--tint-gold); color: #5c3d00; font-size: 1rem; }
.at-remind p { margin: 0; }
.at-remind p + p { margin-top: 4px; }
.at-remind strong { color: #2b2205; }

/* 卡片、選項卡（試算清單、挑選引導共用） */
.ltc-card { padding: clamp(22px, 4vw, 32px) clamp(18px, 4vw, 32px); border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 2px rgb(31 48 54 / .05), 0 8px 28px rgb(31 48 54 / .07); }
.ltc-kicker { margin: 0; color: var(--brand-ink); font-size: .9375rem; font-weight: 700; letter-spacing: .08em; }
.ltc-card h2 { margin: 4px 0 0; font-size: 1.5rem; }
.ltc-card .ltc-sub { margin: 8px 0 24px; font-size: 1rem; font-weight: 400; color: var(--ink-2); }
.ltc-q { min-width: 0; margin: 0 0 24px; padding: 0; border: 0; }
.ltc-q legend, .ltc-qt { display: block; margin-bottom: 6px; padding: 0; font-weight: 700; font-size: 1.0625rem; }
.ltc-hint { margin: -2px 0 12px; color: var(--ink-2); font-size: .9375rem; }
.ltc-opts { display: grid; gap: 10px; }
.ltc-opts.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ltc-opt { position: relative; display: flex; gap: 12px; align-items: flex-start; min-height: 56px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; line-height: 1.55; transition: border-color .15s, background-color .15s; }
.ltc-opt:hover, .ltc-opt:has(:checked) { border-color: var(--brand); background: var(--brand-soft); }
.ltc-opt input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ltc-opt small { display: block; color: var(--ink-2); font-size: .9375rem; }
/* 自製勾選框：勾選時填藍綠、白勾；鍵盤焦點畫在框上 */
.ltc-mark { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 2px; border: 2px solid color-mix(in oklab, var(--ink), #fff 68%); border-radius: 6px; background: #fff; transition: background-color .15s, border-color .15s; }
.ltc-mark::after { content: ""; width: 11px; height: 6px; margin-top: -3px; border: solid #fff; border-width: 0 0 2.5px 2.5px; rotate: -45deg; scale: 0; transition: scale .15s; }
.ltc-radio { border-radius: 50%; }
.ltc-radio::after { width: 10px; height: 10px; margin: 0; border: 0; border-radius: 50%; background: #fff; rotate: none; }
.ltc-opt input:checked + .ltc-mark { background: var(--brand); border-color: var(--brand); }
.ltc-opt input:checked + .ltc-mark::after { scale: 1; }
.ltc-opt input:focus-visible + .ltc-mark { outline: 3px solid var(--accent); outline-offset: 3px; }
.ltc-q :is(input:not([type=checkbox], [type=radio]), select, textarea) { display: block; width: 100%; min-height: 54px; padding: 12px 15px; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; }
.ltc-q textarea { min-height: 96px; resize: vertical; }
.ltc-q select { appearance: none; padding-right: 44px; cursor: pointer; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2333454b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; }
.ltc-q :is(input:not([type=checkbox], [type=radio]), select, textarea):focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand), transparent 80%); }
.ltc-q-err { margin: 8px 0 0; color: #b3261e; font-size: .9375rem; font-weight: 700; }
.ltc-q-err:empty { display: none; }
.ltc-q.bad :is(.ltc-opt, input, select) { border-color: #e39a8f; }
.ltc-nav { display: flex; gap: 12px; margin-top: 28px; }
.ltc-nav .btn { flex: 1; }
.ltc-req { margin-left: 8px; color: var(--brand-ink); font-size: .875rem; }
.ltc-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.ltc-note { margin: 12px 0 0; padding: 12px 16px; border-radius: 12px; font-size: .9375rem; }
.ltc-note.info { background: var(--brand-soft); color: var(--brand-ink); }
.ltc-note.tip { background: var(--tint-gold); color: #5c3d00; font-weight: 700; }
.ltc-nav [data-back] { flex: none; }
@media (max-width: 480px) { .ltc-row2 { grid-template-columns: minmax(0, 1fr); } .ltc-nav [data-back] { padding-inline: 18px; } }
/* 「直接聯繫服務人員」的表單（ltc-form.js）：對話框裡上方進度條，下面一步一頁 */
.pk-dlg.ltc-dlg > .ltc { overflow-y: auto; margin: 0; padding: 4px 20px 24px; }
.ltc-dlg .ltc-card { padding: 0; border: 0; box-shadow: none; }
.ltc-dlg .ltc-done { padding-top: 16px; }
.ltc-walk { padding: 0 2px 14px; }
.ltc-walk-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 10px; font-weight: 700; }
.ltc-walk-top span:last-child { font-weight: 400; font-size: .9375rem; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ltc-walk-top b { color: var(--brand-ink); }
.ltc-track { position: relative; display: flex; justify-content: space-between; align-items: center; height: 14px; margin: 0; padding: 0; list-style: none; }
.ltc-track::before, .ltc-track::after { content: ""; position: absolute; left: 5px; top: 50%; height: 3px; margin-top: -1.5px; border-radius: 3px; }
.ltc-track::before { right: 5px; background: var(--edge-teal); }
.ltc-track::after { width: calc(var(--p, 0) * (100% - 10px)); background: var(--brand); transition: width .4s cubic-bezier(.4, 0, .2, 1); }
.ltc-track li { position: relative; z-index: 1; width: 10px; height: 10px; border-radius: 50%; background: var(--edge-teal); transition: background-color .3s, scale .3s; }
.ltc-track .on { background: var(--brand); }
.ltc-track .now { background: var(--brand-ink); scale: 1.35; box-shadow: 0 0 0 3px var(--ground), 0 0 0 5px color-mix(in oklab, var(--brand), transparent 65%); }
/* 送出後的完成畫面 */
.ltc-done { text-align: center; padding-block: 40px 28px; }
.ltc-done > p { max-width: 30em; margin: 10px auto 22px; color: var(--ink-2); text-wrap: balance; }
.ltc-done .btn { width: min(100%, 360px); }
.ltc-done .ltc-small { margin: 16px auto 0; font-size: .9375rem; }
.ltc-summary { margin-top: 24px; padding: 14px 18px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--ground); text-align: left; }
.ltc-summary-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 6px; }
.ltc-summary pre { margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font: inherit; font-size: .9375rem; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); }
.ltc-done > .ltc-link { margin-top: 12px; }
/* 完成打勾（購物試版的訂單完成也用） */
.ltc-tick { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); }
.ltc-tick .ic { width: 40px; height: 40px; stroke-width: 2.5; }
.ltc-link { min-height: 44px; padding: 0 4px; border: 0; background: none; font: inherit; font-weight: 700; color: var(--brand-ink); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }

/* ---------- 挑選引導、規格卡、商品比較（picker.js；第一版只有助行器・助步車） ---------- */
.tbd { color: #8a5d00; }
/* 這些元件有自己的 display，hidden 要蓋過去（picker.js 靠 hidden 切換） */
:where(.pk, .pc-list, .pk-dlg, .cmp-bar, .pd-sec, .pd-acts) [hidden] { display: none !important; }
.pk { margin: 4px 0 28px; }
.pk-intro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: clamp(20px, 3vw, 28px); border-radius: var(--r-card); background: var(--tint-teal); border: 1px solid var(--edge-teal); }
.pk-intro h2 { font-size: clamp(1.375rem, 1.2rem + .6vw, 1.75rem); }
.pk-intro p { margin: 6px 0 0; color: var(--ink-2); max-width: 34em; }
.pk-intro-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.pk-intro:has(p[hidden]) { padding-block: 14px; }
[data-pk-body]:not(:empty) { margin-top: 16px; }
.pk-q legend h3 { margin: 0; font-size: 1.375rem; outline: none; }
.pk-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.pk-opt { align-items: center; }
.pk-opt b { display: block; font-size: 1.0625rem; }
.pk-cat-options { grid-template-columns: repeat(auto-fill, minmax(min(100%, 295px), 1fr)); }
.pk-cat-card { gap: 10px; min-height: 112px; }
.pk-cat-card b { font-size: 1.125rem; }
.pk-cat-card .ltc-mark { align-self: flex-start; }
.pk-cat-photo { display: grid; place-items: center; flex: 0 0 76px; height: 76px; border-radius: 18px; background: #e5f2ed; }
.pk-cat-photo[data-photo="commode"] { background: #fce7d8; }
.pk-cat-photo[data-photo="shower"] { background: #e3eef9; }
.pk-cat-photo[data-photo="home-care"] { background: #f5e8f6; }
.pk-cat-photo img { width: 88%; height: 88%; object-fit: contain; mix-blend-mode: multiply; }
.pk-cat-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.pk-cat-heading h3 { margin-block: 4px; }
.pk-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--tint-teal); color: var(--brand-ink); }
.pk-ic .ic { width: 26px; height: 26px; }
.pk-opt:has(:checked) .pk-ic { background: var(--surface); }
.pk-opt input:focus-visible + .pk-ic { outline: 3px solid var(--accent); outline-offset: 3px; }
.pk-size { margin-top: 18px; padding: 16px; border-radius: 14px; background: var(--ground); }
.pk-size .ltc-hint { margin: 8px 0 0; }
.pk-unit { display: flex; align-items: center; gap: 8px; max-width: 14em; }
.pk-unit > span { font-weight: 700; color: var(--ink-2); }
.pk-unit3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pk-unit3 label { display: grid; gap: 4px; font-size: .9375rem; }
.pk-note { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--tint-gold); color: #5c3d00; font-size: .9375rem; }
.pk-nav { align-items: center; }
.pk-nav .ltc-link { margin-right: auto; }
.pk-small { font-size: .9375rem; color: var(--ink-2); }

.pk-result { padding: clamp(20px, 3vw, 28px); border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.pk-res-head h3 { margin: 0 0 12px; font-size: 1.5rem; outline: none; }
.pk-conds { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 12px; }
.pk-conds li { display: inline-flex; align-items: center; gap: 2px; padding: 2px 4px 2px 14px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; font-size: .9375rem; }
.pk-conds button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: inherit; font-size: 1.25rem; cursor: pointer; }
.pk-conds button:hover { background: var(--surface); }
.pk-res-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.pk-res-acts .btn { min-height: 44px; padding: 8px 18px; font-size: 1rem; }
.pk-sub { margin: 20px 0 12px; font-weight: 700; }
.pk-unknown { display: flex; gap: 8px; align-items: flex-start; margin: 16px 0 0; color: #5c3d00; }
.pk-unknown .ic { margin-top: .3em; }
.pk-zero { margin-top: 20px; padding: 20px; border-radius: 14px; background: var(--ground); }
.pk-zero p { margin: 0 0 14px; }
.pk-more { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.pk-why { margin: 0; padding: 10px 12px; border-radius: 12px; font-size: .9375rem; }
.pk-why p { margin: 0 0 4px; font-weight: 700; }
.pk-why ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pk-why li { display: flex; gap: 6px; align-items: flex-start; }
.pk-why .ic { margin-top: .3em; width: 1em; height: 1em; }
.pk-why-yes { background: var(--brand-soft); color: var(--brand-ink); }
.pk-why-unknown { background: var(--tint-gold); color: #5c3d00; }
.pk-grid-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; margin: -12px 0 20px; padding: 10px 16px; border-radius: 12px; background: var(--brand-soft); }
.pk-grid-head p { margin: 0; font-weight: 700; color: var(--brand-ink); }
.pk-divider { grid-column: 1 / -1; padding-top: 8px; border-top: 2px dashed var(--edge-gold); }
.pk-divider p { margin: 0; font-weight: 700; color: #5c3d00; }
.pk-flag { margin: 0; padding: 4px 10px; border-radius: 8px; font-size: .875rem; font-weight: 700; }
.pk-flag-yes { background: var(--brand-soft); color: var(--brand-ink); }
.pk-flag-unknown { background: var(--tint-gold); color: #5c3d00; }

/* 規格卡 */
.pc-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 28px 20px; }
.pk-top { margin-top: 4px; }
.pc { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pc-main { display: grid; gap: 12px; text-decoration: none; color: var(--ink); }
.pc-main strong { font-size: 1.0625rem; line-height: 1.5; }
.pc-main:hover strong { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
.pc-main:hover .product-img img { transform: scale(1.04); }
.pc-model { margin-top: -8px; font-size: .9375rem; color: var(--ink-2); }
.pc-tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.pc-tags li { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px 2px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-size: .875rem; font-weight: 700; }
.pc-tags .ic { width: 1em; height: 1em; stroke-width: 2.6; }
.pc-tbd { margin: 0; font-size: .875rem; color: #8a5d00; }
.pc-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-block: 1px solid var(--line); }
.pc-nums div { padding: 8px 4px; text-align: center; }
.pc-nums div + div { border-left: 1px solid var(--line); }
.pc-nums dt { font-size: .875rem; color: var(--ink-2); }
.pc-nums dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pc-nums dd.tbd { font-weight: 500; font-size: .875rem; }
.pc-note { margin: -4px 0 0; font-size: .875rem; color: var(--ink-2); }
.pc-acts, .pd-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pc-acts { margin-top: auto; }
.pc-acts .text-link { flex-basis: 100%; min-height: 32px; }
.pc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--brand); background: var(--surface); color: var(--brand-ink); font: inherit; font-size: .9375rem; font-weight: 700; cursor: pointer; }
.pc-btn:hover { background: var(--brand-soft); }
.pc-btn.on { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.pc-btn.on::before { content: "\2713"; }
.pd-acts { margin-top: 14px; }

/* 比較列：固定在畫面底部；手機疊在快捷列上面 */
.cmp-bar { position: fixed; inset: auto 0 0 0; z-index: 45; background: var(--surface); border-top: 2px solid var(--brand); box-shadow: 0 -10px 30px -14px rgb(31 48 54 / .35); }
.cmp-in { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 10px 0 calc(10px + env(safe-area-inset-bottom)); }
.cmp-top { display: flex; align-items: center; gap: 12px; flex: 1 1 320px; min-width: 0; }
.cmp-h { margin: 0; display: grid; line-height: 1.3; white-space: nowrap; }
.cmp-h span { font-size: .875rem; color: var(--ink-2); }
.cmp-picks { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0; overflow-x: auto; min-width: 0; }
.cmp-picks li { display: flex; align-items: center; gap: 4px; flex: none; padding: 2px 2px 2px 4px; border: 1px solid var(--line); border-radius: 10px; font-size: .875rem; font-weight: 700; }
.cmp-picks img { width: 32px; height: 32px; object-fit: cover; border-radius: 6px; }
.cmp-picks button { width: 32px; height: 32px; border: 0; background: none; font-size: 1.125rem; cursor: pointer; border-radius: 50%; color: var(--ink-2); }
.cmp-msg { margin: 0; font-size: .875rem; color: var(--brand-ink); font-weight: 700; }
.cmp-msg:empty { display: none; }
.cmp-acts { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.cmp-acts .btn { min-height: 44px; padding: 8px 16px; font-size: 1rem; }
.cmp-acts .btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
body.has-cmp { padding-bottom: 120px; }
@media (max-width: 760px) {
  .cmp-bar { bottom: calc(60px + env(safe-area-inset-bottom)); }
  .cmp-in { padding-bottom: 10px; }
  .cmp-acts { width: 100%; }
  .cmp-acts .btn { flex: 1; padding-inline: 10px; font-size: .9375rem; }
  body.has-cmp:has(.action-bar a) { padding-bottom: 230px; }
}

/* 對話框（比較表、問藥師）：手機滿版 */
.pk-dlg { width: min(1040px, 100% - 32px); max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: var(--r-card); background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgb(0 0 0 / .25); }
.pk-dlg[open] { display: flex; flex-direction: column; }
.pk-dlg::backdrop { background: rgb(31 48 54 / .5); }
.ask-dlg { width: min(640px, 100% - 32px); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 8px; }
.dlg-head h2 { font-size: 1.5rem; }
.dlg-x { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ground); font-size: 1.5rem; cursor: pointer; color: var(--ink); }
.pk-dlg > :not(.dlg-head, .cmp-scroll) { margin-inline: 20px; }
.cmp-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding-bottom: 8px; }
.pk-switch { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; cursor: pointer; }
.pk-switch input { width: 22px; height: 22px; accent-color: var(--brand-ink); }
.cmp-who { display: grid; gap: 6px; font-size: .9375rem; }
.pk-seg, .pd-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.pk-seg button, .pd-tabs button { min-height: 44px; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-2); font: inherit; font-weight: 700; cursor: pointer; }
.pk-seg [aria-pressed="true"], .pd-tabs [aria-pressed="true"] { border-color: var(--brand-ink); background: var(--brand-ink); color: #fff; }
.cmp-same { margin-top: 0; font-weight: 700; color: var(--brand-ink); }
.cmp-scroll { overflow: auto; flex: 1 1 auto; min-height: 0; border-block: 1px solid var(--line); }
.cmp-table { width: 100%; min-width: calc(7em + var(--cols, 2) * 11em); border-collapse: collapse; table-layout: fixed; font-variant-numeric: tabular-nums; }
.cmp-table th, .cmp-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.cmp-table tbody th { width: 7em; position: sticky; left: 0; z-index: 1; background: var(--warm-white); color: var(--brand-ink); font-size: .9375rem; }
.cmp-table thead td { width: 7em; position: sticky; left: 0; z-index: 1; background: var(--surface); }
.cmp-table thead th { font-weight: 500; }
.cmp-table.diff tr.same { display: none; }
.cmp-table tbody tr:not(.same) td { background: color-mix(in oklab, var(--brand-soft) 45%, transparent); }
.cmp-prod { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; justify-items: start; }
.cmp-prod img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; background: var(--ground); }
.cmp-prod a { font-weight: 700; color: var(--ink); }
.cmp-prod span { font-size: .875rem; color: var(--ink-2); }
.cmp-prod select { max-width: 100%; min-height: 40px; font: inherit; font-size: .9375rem; padding: 4px 8px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--surface); }
.cmp-prod .ltc-link { min-height: 32px; font-size: .875rem; font-weight: 500; }
/* 每款底下的試算入口（picker.js 的 trialAct） */
.cmp-trial { display: grid; gap: 4px; justify-items: start; }
.cmp-trial .btn { min-height: 44px; padding: 8px 16px; }
.cmp-done { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-weight: 700; color: var(--brand-ink); }
.cmp-done[hidden] { display: none; }
.cmp-added { margin: 0; font-size: var(--fs-small); font-weight: 700; color: var(--brand-ink); }
.dlg-foot { padding: 12px 0 16px; }
.ask-dlg textarea { display: block; width: calc(100% - 40px); min-height: 14em; padding: 12px 14px; font: inherit; font-size: 1rem; line-height: 1.7; border: 1.5px solid var(--line); border-radius: 12px; resize: vertical; }
.ask-dlg textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand), transparent 80%); }
.ask-msg { margin-top: 8px; font-weight: 700; color: var(--brand-ink); }
.ask-msg:empty { display: none; }
.ask-dlg .actions { margin-top: 12px; }
.ask-dlg > .pk-small:last-child { margin-bottom: 20px; }
@media (max-width: 640px) {
  .pk-dlg, .ask-dlg { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .cmp-table { min-width: 0; }
  .cmp-table tbody th, .cmp-table thead td { width: 5.5em; }
  .cmp-prod img { width: 72px; height: 72px; }
  .pk-unit3 { grid-template-columns: minmax(0, 1fr); }
  .pk-unit3 .pk-unit { max-width: none; }
  /* 手機的規格卡：小圖在左、名稱在右，20 張卡不會滑不完 */
  .pc-list { gap: 0; }
  .pc { padding-block: 18px; border-bottom: 1px solid var(--line); }
  .pc-main { grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 14px; }
  .pc-model { margin-top: -2px; }
}

/* 商品頁的規格區塊 */
.pd-tags { margin: 4px 0 12px; }
.pd-sec { margin-top: clamp(40px, 6vw, 64px); }
.pd-sec > h2 { font-size: clamp(1.5rem, 1.3rem + .6vw, 1.875rem); margin-bottom: 16px; }
.feat-cards, .num-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.fc, .num-cards li { display: grid; gap: 4px; align-content: start; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.fc-ic, .nc-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--tint-teal); color: var(--brand-ink); margin-bottom: 4px; }
.fc-ic .ic, .nc-ic .ic { width: 26px; height: 26px; }
.fc-k, .nc-k { font-size: .9375rem; color: var(--ink-2); }
.fc strong { font-size: 1.125rem; line-height: 1.4; }
.fc-no .fc-ic { background: var(--ground); color: var(--ink-2); }
.fc-unknown, .num-cards li.tbd { border-style: dashed; border-color: var(--edge-gold); background: var(--warm-white); }
.fc-unknown .fc-ic, .num-cards li.tbd .nc-ic { background: var(--tint-gold); color: #5c3d00; }
.fc-unknown strong, .num-cards li.tbd strong { color: #8a5d00; font-size: 1rem; }
.num-cards strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; color: var(--brand-ink); line-height: 1.3; }
.pd-tabs { margin-bottom: 16px; }
.pd-v-h { margin: 0 0 12px; font-size: 1.25rem; }
.pd-variant + .pd-variant { margin-top: 32px; }
.pd-tabs:not([hidden]) ~ .pd-variant { margin-top: 0; }
.pd-tabs:not([hidden]) ~ .pd-variant .pd-v-h { display: none; }
.pd-dims { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px 32px; align-items: start; margin-top: 20px; }
.pd-dia { margin: 0; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.dia-views { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 760px) { .dia-views { grid-template-columns: 1fr; } }
.dims-table td { white-space: nowrap; }
.dia { width: 100%; height: auto; font-family: var(--font); }
.dia-f { fill: none; stroke: var(--ink-2); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.dia-g { stroke: var(--line); stroke-width: 3; }
.dia-d { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dia-v { fill: var(--brand-ink); font-size: 15px; font-weight: 700; }
.dia-t { fill: var(--ink-2); font-size: 14px; font-weight: 700; letter-spacing: .1em; }
.pd-dia figcaption { margin-top: 8px; font-size: .875rem; color: #5c3d00; background: var(--tint-gold); padding: 6px 10px; border-radius: 8px; }
.dims-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; background: var(--surface); }
.dims-table caption { text-align: left; font-weight: 700; color: var(--brand-ink); padding-bottom: 6px; }
.dims-table th, .dims-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.dims-table thead th { font-size: .9375rem; color: var(--ink-2); }
.dims-table tbody th { color: var(--brand-ink); white-space: nowrap; }
.dims-table td.tbd { font-size: .9375rem; }
.pd-src, .pd-note { font-size: .9375rem; color: var(--ink-2); margin: 16px 0 0; }
.pd-full { margin-top: 32px; padding: 4px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.pd-full > summary { cursor: pointer; min-height: 52px; display: flex; align-items: center; font-weight: 700; font-size: 1.125rem; color: var(--brand-ink); }
.pd-full[open] { padding-bottom: 20px; }
.pd-full .dims-table { margin-bottom: 16px; }
.pd-full h3 { font-size: 1.125rem; }
@media (max-width: 760px) {
  .feat-cards, .num-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .num-cards strong { font-size: 1.25rem; }
  .pd-full { padding-inline: 14px; }
  .dims-table th, .dims-table td { padding: 8px 6px; }
  .pd-full .dims-table, .pd-dims .dims-table { display: block; overflow-x: auto; }
}
/* 平板：尺寸表擠在右欄會超出畫面，改成上下排 */
@media (max-width: 1000px) { .pd-dims { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 輔具試算清單（/ltc-list，ltc-list.js）；「加入試算清單」按鈕與右下角入口（ltc-cart.js） ---------- */
:where(.lt-layout, .lt-page) [hidden] { display: none !important; }
.lt-page h1 { margin-bottom: 8px; }
.lt-scope { max-width: 46em; margin: 16px 0 28px; padding: 12px 16px; border-radius: 12px; background: var(--tint-teal-2); border: 1px solid var(--edge-teal); color: var(--ink-2); font-size: .9375rem; }
.lt-warn { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: var(--tint-gold); color: #5c3d00; font-weight: 700; }
.lt-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); grid-template-areas: "main side"; gap: 24px 32px; align-items: start; }
.lt-layout.empty { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main"; }
.lt-cls { margin-bottom: 24px; }
.lt-cls .ltc-q:last-child { margin-bottom: 0; }
.lt-cls .ltc-opts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.lt-amt { display: flex; align-items: center; gap: 8px; max-width: 280px; margin-top: 12px; }
.lt-side { grid-area: side; display: grid; gap: 16px; }
@media (min-width: 961px) and (min-height: 860px) { .lt-side { position: sticky; top: 150px; } }
.lt-main { grid-area: main; min-width: 0; }
@media (max-width: 960px) {
  /* 手機：額度＋身分別兩題移到最上面，先填再看金額 */
  .lt-layout, .lt-layout.empty { display: flex; flex-direction: column; align-items: stretch; }
  .lt-main { display: contents; }
  .lt-main > * { min-width: 0; }
  .lt-cls { order: -1; margin-bottom: 0; }
}

/* 試算結果 */
.lt-dash { padding: 22px 22px 20px; border-radius: var(--r); background: var(--surface); border: 1.5px solid var(--brand); box-shadow: 0 8px 28px rgb(31 48 54 / .08); }
.lt-dash h2 { margin: 0; font-size: 1.375rem; }
.lt-basis { margin: 2px 0 12px; color: var(--ink-2); font-size: .9375rem; }
.lt-assume { margin: 0 0 12px; padding: 8px 12px; border-radius: 10px; background: var(--tint-gold); color: #5c3d00; font-weight: 700; font-size: .9375rem; }
.lt-big { display: grid; gap: 0; margin: 0; font-variant-numeric: tabular-nums; }
.lt-big > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lt-big dt { color: var(--ink-2); }
.lt-big dd { margin: 0; font-weight: 700; font-size: 1.25rem; }
.lt-big .gov dd { color: var(--brand-ink); }
.lt-big .self dd { font-size: 1.75rem; color: var(--ink); }
.lt-extra { margin: 10px 0 0; font-size: .9375rem; color: #8a5300; }
.lt-quota { margin-top: 18px; }
.lt-quota-h { display: flex; justify-content: space-between; margin: 0 0 6px; font-size: .9375rem; }
.lt-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--tint-teal); box-shadow: inset 0 0 0 1px var(--edge-teal); }
.lt-bar span { display: block; height: 100%; transition: width .3s; }
.lt-bar .u, .lt-legend i.u { background: color-mix(in oklab, var(--ink), #fff 55%); }
.lt-bar .n, .lt-legend i.n { background: var(--brand); }
.lt-legend { display: grid; gap: 2px; list-style: none; margin: 10px 0 0; padding: 0; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.lt-legend li { display: flex; align-items: center; gap: 8px; }
.lt-legend b { margin-left: auto; }
.lt-legend i { flex: none; width: 12px; height: 12px; border-radius: 4px; }
.lt-legend i.l { background: var(--tint-teal); box-shadow: inset 0 0 0 1px var(--edge-teal); }
.lt-pend-sum { margin: 14px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); font-size: .9375rem; color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .lt-bar span { transition: none; } }

/* 傳給藥師 */
.lt-send { padding: 18px 20px; border-radius: var(--r); background: var(--tint-gold); border: 1px solid var(--edge-gold); }
.lt-send h2 { margin: 0 0 4px; font-size: 1.125rem; }
.lt-send p { margin: 0 0 12px; font-size: .9375rem; color: var(--ink-2); }
.lt-send .actions { display: grid; gap: 8px; margin: 0; }
.lt-send .btn { width: 100%; justify-content: center; }
.lt-send [role=status]:not(:empty) { margin: 10px 0 0; color: var(--brand-ink); font-weight: 700; }
.lt-manual { margin-top: 10px; }
.lt-manual label { display: block; font-size: .9375rem; font-weight: 700; margin-bottom: 4px; }
.lt-manual textarea { width: 100%; min-height: 200px; padding: 10px 12px; font: .875rem/1.6 var(--font); border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }

/* 清單 */
.lt-changes { margin: 0 0 20px; padding: 16px 18px; border-radius: var(--r); background: var(--tint-gold); border: 1px solid var(--edge-gold); }
.lt-changes p { margin: 0 0 4px; }
.lt-changes ul { margin: 0 0 12px; padding-left: 1.2em; }
.lt-sec { margin-bottom: 28px; }
.lt-sec h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 4px; font-size: 1.375rem; }
.lt-sec h2 span { font-size: 1rem; font-weight: 500; color: var(--ink-2); }
.lt-hint { margin: 0 0 12px; color: var(--ink-2); font-size: .9375rem; }
.lt-items { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; list-style: none; margin: 0; padding: 0; }
.lt-item { padding: 16px 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 2px rgb(31 48 54 / .05); scroll-margin-top: 150px; }
.lt-pend .lt-item { background: color-mix(in oklab, var(--surface), var(--ground) 50%); border-style: dashed; }
.lt-top { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.lt-img { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 12px; background: var(--ground); overflow: hidden; color: var(--brand-ink); }
.lt-img img { width: 100%; height: 100%; object-fit: contain; }
.lt-img .ic { width: 28px; height: 28px; stroke-width: 1.8; }
.lt-name { min-width: 0; }
.lt-name h3 { margin: 0; font-size: 1.125rem; line-height: 1.45; color: var(--ink); }
.lt-name h3 a { color: inherit; }
.lt-n { display: inline-block; margin-bottom: 2px; padding: 0 8px; border-radius: 999px; background: var(--brand-ink); color: #fff; font-size: .875rem; font-weight: 700; }
.lt-code { margin: 0; font-size: .875rem; font-weight: 700; color: var(--brand-ink); }
.lt-model { margin: 0; font-size: .875rem; color: var(--ink-2); }
.lt-tools { display: flex; gap: 2px; }
.lt-icon { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--ink-2); cursor: pointer; }
.lt-icon:hover:not(:disabled) { background: var(--brand-soft); color: var(--brand-ink); }
.lt-icon:disabled { opacity: .3; cursor: default; }
.lt-icon .ic { width: 20px; height: 20px; }
.lt-fields { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; margin-top: 14px; }
.lt-price { margin: 0; display: grid; }
.lt-price span, .lt-field label { font-size: .875rem; font-weight: 700; color: var(--ink-2); }
.lt-price b { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.lt-price small, .lt-field small { font-size: .875rem; color: var(--ink-2); }
.lt-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; min-width: 0; max-width: 100%; }
.lt-money { display: flex; align-items: center; gap: 6px; }
.lt-field select { max-width: 100%; min-height: 44px; padding: 8px 12px; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; }
.lt-field input, .lt-alt-p input { width: 9em; min-height: 44px; padding: 8px 12px; font: inherit; font-variant-numeric: tabular-nums; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 10px; }
.lt-qty input { width: 6em; }
.lt-field input:focus, .lt-alt-p input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand), transparent 80%); }
.lt-field input[aria-invalid], .lt-alt-p input[aria-invalid] { border-color: #b3261e; }
.lt-err { color: #b3261e; }
.lt-check { display: flex; align-items: flex-start; gap: 10px; flex-basis: 100%; min-height: 44px; padding: 8px 0; font-size: .9375rem; cursor: pointer; }
.lt-check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--brand-ink); }
.lt-check small { display: block; color: var(--ink-2); font-size: .875rem; }
.lt-seg { min-width: 0; margin: 0; padding: 0; border: 0; }
.lt-seg legend { padding: 0; margin-bottom: 4px; font-size: .875rem; font-weight: 700; color: var(--ink-2); }
.lt-seg > div { display: flex; flex-wrap: wrap; gap: 6px; }
.lt-opt { position: relative; }
.lt-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lt-opt span { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-size: .9375rem; cursor: pointer; }
.lt-opt input:checked + span { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; font-weight: 700; }
.lt-opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.lt-calc { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 1px; margin: 14px 0 0; border-radius: 12px; overflow: hidden; background: var(--line); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.lt-calc > div { padding: 8px 12px; background: var(--warm-white); }
.lt-calc dt { font-size: .875rem; color: var(--ink-2); }
.lt-calc dd { margin: 0; font-weight: 700; }
.lt-calc .gov dd { color: var(--brand-ink); }
.lt-calc .self { background: var(--tint-teal); }
.lt-first { margin: 0 0 16px; }
.lt-page > .at-more { margin-bottom: 16px; }
.lt-wait { margin: 0; padding: 16px 20px; border: 1px dashed var(--line); border-radius: 12px; color: var(--ink-2); }
.lt-notes-d { margin-top: 12px; }
.lt-notes-d summary { cursor: pointer; color: var(--ink-2); font-size: .9375rem; padding: 6px 0; }
.lt-notes-d .lt-notes { margin-top: 4px; }
.lt-why, .lt-notes { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: .9375rem; }
.lt-why li, .lt-notes li { position: relative; padding-left: 20px; }
.lt-why li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.lt-why li { font-weight: 700; color: #5c3d00; }
.lt-notes li { color: var(--ink-2); }
.lt-notes li::before { content: ""; position: absolute; left: 5px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--edge-teal); }
.lt-notes li.warn { color: #8a5300; font-weight: 700; }
.lt-notes li.warn::before { background: var(--accent); }
.lt-alts { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.lt-alts-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
.lt-alts-h p { margin: 0; font-size: .9375rem; color: var(--ink-2); }
.lt-alts ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.lt-alts li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 8px 12px; border-radius: 12px; background: var(--ground); }
.lt-alt-name { display: grid; min-width: 0; }
.lt-alt-p { margin-top: 4px; }
.lt-alt-p input { width: 7em; min-height: 40px; padding: 6px 10px; }
.lt-alt-name small { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lt-alt-acts { display: flex; align-items: center; gap: 4px; }
.lt-assess { margin-bottom: 28px; padding: 16px 18px; border-radius: var(--r); background: var(--brand-soft); }
.lt-assess h2 { margin: 0 0 4px; font-size: 1.125rem; }
.lt-assess p { margin: 0 0 6px; font-size: .9375rem; }
.lt-assess ul { margin: 0; padding-left: 1.2em; }
.lt-empty { padding: 28px 24px; border-radius: var(--r); background: var(--surface); border: 1.5px dashed var(--edge-teal); text-align: center; }
.lt-empty-h { margin: 0; font-size: 1.25rem; font-weight: 700; color: var(--brand-ink); }
.lt-empty .filter { justify-content: center; margin: 16px 0 0; }
.lt-empty .filter a { background: var(--tint-teal); }
.lt-empty-s { color: var(--ink-2); }
.lt-clear { margin: 16px 0 0; text-align: right; }
.lt-rules { max-width: 52em; margin-top: 48px; }
.lt-rules h2 { font-size: 1.375rem; }
.lt-rules ul { padding-left: 1.2em; }
.lt-rules li + li { margin-top: 6px; }
.lt-src { font-size: .875rem; color: var(--ink-2); }
.lt-src a { overflow-wrap: anywhere; }
.lt-dlg .cmp-table td { background: none !important; }
.lt-dlg .cmp-table img { width: 72px; height: 72px; object-fit: contain; margin-bottom: 6px; }
.lt-dlg .cmp-table small { display: block; color: var(--ink-2); font-size: .875rem; }
.lt-chosen { display: inline-block; margin-top: 4px; padding: 0 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-size: .875rem; font-weight: 700; }
.lt-tbd { color: #8a5300; font-size: .875rem; }
.lt-dlg > .pk-small { margin-block: 12px 20px; }
@media (max-width: 560px) {
  .lt-top { grid-template-columns: 52px minmax(0, 1fr); }
  .lt-img { width: 52px; height: 52px; }
  .lt-tools { grid-column: 1 / -1; justify-content: flex-end; margin: -6px -8px -10px 0; }
  .lt-item { padding: 14px; }
  .lt-calc .self:nth-child(5) { grid-column: 1 / -1; }
}

/* 商品卡、商品頁的「加入試算清單」與右下角入口 */
.product > .ltc-add { margin-top: 10px; min-height: 40px; padding: 4px 12px; font-size: .875rem; }
.ltc-sub { margin: 10px 0 0; font-size: .9375rem; color: var(--brand-ink); font-weight: 700; }
.ltc-dock { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 42; display: flex; align-items: center; gap: 8px; }
.ltc-clear { min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--brand-ink); background: var(--surface); color: var(--brand-ink); font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 10px 28px -8px rgb(31 48 54 / .5); }
.ltc-clear:hover { background: var(--ground); }
.ltc-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 8px 6px 18px; border-radius: 999px; background: var(--brand-ink); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 10px 28px -8px rgb(31 48 54 / .5); }
.ltc-dock[hidden] { display: none; }
.ltc-pill b { display: grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; border-radius: 999px; background: #fff; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.ltc-pill:hover { background: color-mix(in oklab, var(--brand-ink), #000 15%); }
.ltc-pill.bump b { animation: ltc-bump .4s cubic-bezier(.22, 1, .36, 1); }
@keyframes ltc-bump { 40% { scale: 1.35; } }
body.has-cmp .ltc-dock { display: none; }
body:not(.has-cmp):has(.ltc-dock:not([hidden])) { padding-bottom: 80px; }
@media (max-width: 760px) { body:has(.action-bar a) .ltc-dock { bottom: calc(72px + env(safe-area-inset-bottom)); } body:not(.has-cmp):has(.action-bar a):has(.ltc-dock:not([hidden])) { padding-bottom: 132px; } }
@media (prefers-reduced-motion: reduce) { .ltc-pill.bump b { animation: none; } }

/* ---------- 輔具諮詢兩頁（/assistive 挑選試算、/assistive/apply 申請流程；at-pick.js） ---------- */
:where(.at-page) [hidden] { display: none !important; }
.at-page .lead { max-width: 40em; }
/* 輔具第一頁的四個入口（pages.js 的 go）：實色大按鈕，--c 底色、--fg 字色；白字底色都要 4.5:1 以上 */
.at-start { margin-top: 24px; }
.at-start h2 { margin-bottom: 12px; font-size: 1.375rem; }
.at-start ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.at-go { --c: var(--brand-ink); --fg: #fff; position: relative; display: grid; align-content: start; gap: 6px; height: 100%; padding: 20px 20px 22px; border-radius: var(--r); background: var(--c); color: var(--fg); text-decoration: none; box-shadow: 0 3px 0 color-mix(in oklab, var(--c), #000 28%), 0 12px 24px -14px color-mix(in oklab, var(--c), #000 20%); transition: transform .2s cubic-bezier(.22, 1, .36, 1), box-shadow .2s; }
.at-go:hover { transform: translateY(-2px); }
.at-go:active { transform: translateY(1px); box-shadow: 0 1px 0 color-mix(in oklab, var(--c), #000 28%); }
.at-go:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.at-go strong { padding-right: 44px; font-size: var(--fs-h3); line-height: var(--lh-head); text-wrap: balance; }
.at-go > span:not([class]) { font-size: .9375rem; line-height: 1.6; text-wrap: pretty; }
@media (min-width: 1000px) { .at-start ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.at-go-ic { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 6px; border-radius: 14px; background: color-mix(in oklab, var(--fg), transparent 82%); }
.at-go-ic .ic { width: 26px; height: 26px; }
.at-go-arrow { position: absolute; top: 20px; right: 18px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--fg); color: var(--c); transition: transform .2s; }
.at-go:hover .at-go-arrow { transform: translateX(3px); }
.at-go.teal { --c: color-mix(in oklab, var(--brand), #000 12%); }
.at-go.home { --c: #b5522a; }
.at-go.line { --c: var(--accent); --fg: #2b2205; }
/* 手機：一列一個，圖示在左、箭頭在右，四個入口不用捲太久 */
@media (max-width: 640px) {
  .at-start ul { grid-template-columns: minmax(0, 1fr); }
  .at-go { grid-template-columns: auto 1fr; align-items: center; gap: 2px 14px; padding: 16px 60px 16px 16px; }
  .at-go-ic { grid-row: span 2; margin: 0; }
  .at-go strong { padding-right: 0; }
  .at-go-arrow { top: calc(50% - 18px); right: 16px; }
}
.at-stage-nav { margin-top: 24px; }
.at-stage-nav h2 { margin-bottom: 12px; font-size: 1.375rem; }
.at-stage-nav ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.at-stage-nav a { display: grid; align-content: start; gap: 4px; height: 100%; padding: 14px 16px; border: 1px solid var(--edge-teal); border-radius: var(--r); background: var(--tint-teal); color: var(--brand-ink); text-decoration: none; }
.at-stage-nav a:hover { border-color: var(--brand); text-decoration: underline; }
.at-stage-nav span { color: var(--ink-2); font-size: .9375rem; }
.at-page :is(.at-steps li[id], #ap-help, #at-ask, #at-home) { scroll-margin-top: 24px; }
.at-steps .actions { margin-top: 8px; }
/* 頁首步驟列：目前頁用實心編號＋粗底線，不只靠顏色 */
.at-nav { margin: 8px 0 24px; }
.at-nav ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; max-width: 640px; }
.at-nav a { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.at-nav a:hover { border-color: var(--brand); }
.at-nav small { display: block; font-size: .875rem; }
.at-nav-n { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--brand-ink); color: var(--brand-ink); font-weight: 700; }
.at-nav [aria-current] { border: 2px solid var(--brand-ink); background: var(--tint-teal); color: var(--brand-ink); font-weight: 700; box-shadow: inset 0 -4px 0 var(--brand-ink); }
.at-nav [aria-current] .at-nav-n { background: var(--brand-ink); color: #fff; }
.at-sec { position: relative; margin-top: 56px; scroll-margin-top: 24px; }
.at-sec > h2 { font-size: clamp(1.5rem, 1.3rem + .7vw, 1.875rem); margin: 0 0 8px; outline: none; }
.at-sec > h2 small { margin-left: 10px; font-size: .875rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--tint-gold); color: #5c3d00; vertical-align: middle; }
.at-sub { margin: 0 0 20px; color: var(--ink-2); max-width: 44em; }
/* 補助重點：淺藍綠卡片＋金色上緣 */
.at-keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; list-style: none; margin: 16px 0; padding: 0; }
.at-keys li { padding: 16px 18px; border-radius: var(--r); background: var(--tint-teal); border: 1px solid var(--edge-teal); border-top: 4px solid var(--logo-gold); }
.at-keys b { display: block; font-size: 1.1875rem; color: var(--brand-ink); }
.at-keys span { color: var(--ink-2); font-size: .9375rem; }
.at-more { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.at-more summary { min-height: 52px; padding: 12px 18px; font-weight: 700; color: var(--brand-ink); cursor: pointer; }
.at-more .prose { padding: 0 18px 18px; }
.at-more h3 { font-size: 1.125rem; margin: 16px 0 4px; }
.at-jump { display: flex; flex-wrap: wrap; gap: 0 24px; margin: 16px 0 0; }
.at-jump .text-link { min-height: 44px; }
.at-entry { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.at-guide { margin-bottom: 32px; scroll-margin-top: 16px; }
.pk-q legend h4 { margin: 0; font-size: 1.1875rem; color: var(--ink); }
.pk-step h3, .pk-result h3 { margin: 4px 0 8px; font-size: 1.5rem; outline: none; }
.pk-result .al-group-h { margin-top: 16px; }
.pk-result .al-group-h h4 { margin: 0; font-size: 1.125rem; }
.pk-why { display: flex; gap: 6px; align-items: flex-start; margin: 6px 0; }
.at-cats .filter { margin: 0; }
.at-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin: 56px 0 40px; padding: clamp(20px, 3vw, 28px); border-radius: var(--r-card); background: var(--tint-gold); border: 1px solid var(--edge-gold); }
.at-next h2 { margin: 0; font-size: 1.375rem; }
.at-next p { margin: 4px 0 0; color: var(--ink-2); }
.at-back { margin-top: 40px; }
#ltc { scroll-margin-top: 16px; }

/* 列表工具列 */
.al-tools { padding: 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); margin-bottom: 20px; scroll-margin-top: 16px; }
.al-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.al-q, .al-code { grid-column: span 2; }
@media (max-width: 480px) { .al-q, .al-code { grid-column: auto; } }
.al-field { display: grid; gap: 4px; font-size: .9375rem; font-weight: 700; color: var(--ink-2); }
.al-field :is(select, input) { min-height: 48px; padding: 8px 12px; font: inherit; font-weight: 400; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; width: 100%; }
.al-feats { margin: 14px 0 0; padding: 0; border: 0; }
.al-feats legend { padding: 0; margin-bottom: 6px; font-size: .9375rem; font-weight: 700; color: var(--ink-2); }
.al-feats div { display: flex; flex-wrap: wrap; gap: 8px; }
.al-chk { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 14px; border-radius: 999px; border: 1.5px solid var(--line); cursor: pointer; }
.al-chk:has(:checked) { border-color: var(--brand-ink); background: var(--brand-soft); font-weight: 700; }
.al-chk input { width: 18px; height: 18px; accent-color: var(--brand-ink); }
.al-sum { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; margin-top: 12px; }
.al-sum p { margin: 0; font-weight: 700; color: var(--brand-ink); }
.al-group { margin-bottom: 28px; }
.al-group-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin: 0 0 8px; }
.al-group-h h3 { margin: 0; font-size: 1.25rem; }
.al-group-h h3 span { margin-left: 8px; font-size: 1rem; font-weight: 500; color: var(--ink-2); }
.al-unknown { padding-top: 12px; border-top: 2px dashed var(--edge-gold); }

/* 商品列：桌機橫列、欄位對齊；手機直式卡片，完整規格可展開 */
.ar-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ar { display: grid; grid-template-columns: 96px minmax(0, 1.6fr) minmax(0, 1.1fr) minmax(150px, .9fr) 148px; grid-template-areas: "img main nums buy acts" "img more more more more"; gap: 4px 18px; align-items: start; padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.ar-img { grid-area: img; width: 96px; border-radius: 12px; }
.ar-main { grid-area: main; min-width: 0; display: grid; gap: 4px; justify-items: start; }
.ar-name { font-weight: 700; font-size: 1.0625rem; line-height: 1.45; color: var(--ink); text-decoration: none; }
.ar-name:hover { color: var(--brand-ink); text-decoration: underline; }
.ar .pc-model { margin: 0; }
.ar-plain { margin: 0; color: var(--ink-2); font-size: .9375rem; }
.ar-nums { grid-area: nums; display: grid; gap: 2px; margin: 0; font-size: .9375rem; }
.ar-nums div { display: flex; gap: 8px; }
.ar-nums dt { color: var(--ink-2); min-width: 2.5em; }
.ar-nums dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.ar-buy { grid-area: buy; display: grid; gap: 6px; justify-items: start; }
.ar-buy .price { font-size: 1.125rem; }
.ar-ltc { display: inline-flex; gap: 4px; align-items: flex-start; font-size: .875rem; font-weight: 700; line-height: 1.45; }
.ar-ltc .ic { flex: none; width: 1.1em; height: 1.1em; margin-top: .15em; }
.ar-ltc.ok { color: var(--brand-ink); }
.ar-ltc.tbd { color: #7a5200; }
.ar-acts { grid-area: acts; display: grid; gap: 6px; }
.ar-acts .pc-btn { width: 100%; text-decoration: none; }
.ar-more { grid-area: more; margin-top: 6px; font-size: .9375rem; }
.ar-more summary { min-height: 40px; padding: 8px 0; font-weight: 700; color: var(--brand-ink); cursor: pointer; }
.ar-more table { border-collapse: collapse; width: 100%; max-width: 560px; }
.ar-more :is(th, td) { padding: 6px 8px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.ar-more th { width: 9em; color: var(--ink-2); font-weight: 500; }
@media (max-width: 1000px) {
  .ar { grid-template-columns: 88px minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "img main main" "img nums buy" "acts acts acts" "more more more"; }
  .ar-img { width: 88px; }
  .ar-acts { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
}
@media (max-width: 560px) {
  .ar { grid-template-columns: 80px minmax(0, 1fr); grid-template-areas: "img main" "nums nums" "buy buy" "acts acts" "more more"; gap: 10px 14px; }
  .ar-img { width: 80px; }
  .ar-nums { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 8px 0; border-block: 1px solid var(--line); }
  .ar-nums div { display: grid; gap: 0; text-align: center; }
}
.pk-link { margin: 0 0 20px; padding: 12px 16px; border-radius: 12px; background: var(--tint-teal); }

/* 商品頁的網路評價摘要 */
.pd-rev-meta { color: var(--ink-2); font-size: .9375rem; }

/* 首頁輪播：左邊橫幅圖（桌機 1760×800、手機 1200×800），右邊白底 HTML 文字。投影片疊在同一格，高度取最高的一張。
   1200px 以上左右排，以下上圖下文（761–1199 用桌機圖，760 以下換手機圖） */
.hs { padding: clamp(12px, 2vw, 24px) 0 clamp(20px, 3vw, 36px); }
.hs-in { position: relative; width: min(1440px, 100% - 32px); margin-inline: auto; display: flex; flex-direction: column; gap: 8px; }
.hs-track { display: grid; touch-action: pan-y; }
.hs-slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; border-radius: var(--r-card); overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s .7s; }
.hs-slide.is-on { opacity: 1; visibility: visible; transition: opacity .7s ease; }
/* 圖片區：底下一律墊品牌示意圖（底色＋Logo＋圓弧），沒圖或圖片壞掉時看到的就是它 */
.hs-media { position: relative; aspect-ratio: 11 / 5; overflow: hidden; background: color-mix(in oklab, var(--logo-teal) 18%, var(--warm-white)); }
.hs-gold .hs-media { background: color-mix(in oklab, var(--logo-gold) 32%, var(--warm-white)); }
.hs-cream .hs-media { background: var(--tint-teal); }
.hs-mark { position: absolute; inset: 0; background: url(/assets/logo-mark.png) center / min(32%, 200px) no-repeat; }
.hs-mark::after { content: ""; position: absolute; width: 60%; aspect-ratio: 1; left: -18%; bottom: -40%; border-radius: 50%; border: 18px solid var(--logo-gold); opacity: .35; }
.hs-gold .hs-mark::after { border-color: var(--logo-teal); opacity: .2; }
.hs-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hs-broken picture { display: none; }
.hs-text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; padding: clamp(20px, 3vw, 44px); }
.hs-text h2 { font-size: var(--fs-display); line-height: 1.25; margin: 0; color: var(--brand-ink); }
.hs-text p { margin: 0; font-size: var(--fs-lead); line-height: 1.7; color: var(--ink-2); max-width: 26em; text-wrap: pretty; }
.hs-text .btn { margin-top: 6px; }
.hs-text .todo { margin: 0; }
/* 控制列在卡片下方（桌機靠右，其餘置中），不佔文字區高度，橫幅才不會被裁。上一張／下一張是暖金實心圓 */
.hs-ctrl { order: 2; display: flex; align-items: center; justify-content: center; gap: 6px; }
.hs-ctrl[hidden] { display: none; }
.hs-btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 2px solid var(--brand); background: var(--surface); color: var(--brand-ink); cursor: pointer; }
.hs-btn:hover { background: var(--brand-soft); }
.hs-prev, .hs-next { width: 48px; height: 48px; border: 0; background: var(--logo-gold); color: var(--ink); }
.hs-prev:hover, .hs-next:hover { background: color-mix(in oklab, var(--logo-gold), #000 12%); }
.hs-play { margin-right: 4px; }
.hs-play .i-play { fill: currentColor; stroke-width: 1.5; }
.hs-play:not(.is-paused) .i-play, .hs-play.is-paused .i-pause { display: none; }
.hs-dots { display: flex; }
.hs-dot { display: grid; place-items: center; width: 30px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; }
.hs-dot::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: color-mix(in oklab, var(--brand) 35%, var(--warm-white)); transition: width .3s ease, background-color .3s; }
.hs-dot[aria-current="true"]::before { width: 24px; background: var(--brand-ink); }
.hs-count { min-width: 3.6em; text-align: center; font-size: .9375rem; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (min-width: 1200px) {
  .hs-slide { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); grid-template-rows: none; }
  .hs-media { aspect-ratio: auto; min-height: calc((min(1440px, 100vw - 32px)) * .6 / 2.2); }
  .hs-ctrl { justify-content: flex-end; }
}
/* 平板上下排時限制寬度，橫幅不會大到把下方內容推出第一屏 */
@media (min-width: 761px) and (max-width: 1199px) { .hs-in { width: min(800px, 100% - 32px); } }
@media (max-width: 760px) {
  .hs-media { aspect-ratio: 3 / 2; }
  .hs-text { justify-content: flex-start; gap: 10px; padding: 18px 20px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .hs-slide, .hs-slide.is-on, .hs-dot::before { transition: none; }
}

/* 已選條件（商品列表與購物試版共用） */
.active-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.active-chips a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 4px 8px 4px 14px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 700; text-decoration: none; }
.active-chips .ic { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.5; fill: none; }

/* 輔具條列（商品列表的輔具分類、購物試版共用）：每列同樣欄位、同樣順序 */
.at-rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.at-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) 200px; gap: 20px; padding: 16px; background: var(--surface); border-radius: var(--r); border: 1px solid var(--line); }
.at-row-img { position: relative; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border-radius: 12px; background: var(--ground); }
.at-row-img img { width: 100%; height: 100%; object-fit: contain; }
.at-row-h { font-size: 1.25rem; margin: 0; }
.at-row-h a { color: inherit; text-decoration: none; }
.at-row-h a:hover { text-decoration: underline; }
.at-row-meta, .at-row-plain { margin: 2px 0; }
.at-row-meta { color: var(--ink-2); font-size: .9375rem; }
.at-row-more summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; color: var(--brand-ink); }
.at-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 8px 0 0; }
.at-nums div { background: var(--ground); border-radius: 10px; padding: 6px 10px; }
.at-nums dt { font-size: .875rem; color: var(--ink-2); }
.at-nums dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.at-nums dd.tbd { color: var(--ink-2); font-weight: 400; }
.at-row-side { display: grid; gap: 8px; align-content: start; justify-items: start; }
.at-row-acts { display: grid; gap: 8px; width: 100%; }
.at-row-acts .btn { min-height: 44px; font-size: 1rem; padding: 8px 16px; }
@media (min-width: 641px) { .at-row-more summary { display: none; } }
@media (max-width: 900px) { .at-row { grid-template-columns: 110px minmax(0, 1fr); } .at-row-side { grid-column: 1 / -1; grid-template-columns: 1fr auto; align-items: center; } .at-row-acts { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); } }
@media (max-width: 640px) { .at-row { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 12px; } .at-nums { grid-template-columns: 1fr; } .at-nums div { display: flex; justify-content: space-between; } }
