/* 天康淨水前台新設計（2026-11-19；首頁、商品頁共用）
   霧藍天空＋雲霧、白色細字、霧玻璃膠囊；顏色從 Logo 藍 #2E64A4 延伸 */

.th-site .site-content,
.th-site .site-content > .container,
.th-site .content-wrapper { padding: 0 !important; margin: 0 !important; max-width: none !important; }
.th-site .site-main { padding: 0 !important; }
.th-site { background: #f6f9fc; padding-top: 0 !important; }
/* 新設計的按鈕底：透明、字跟外層同色；用 :where 壓低權重，各元件自己的顏色（含滑過）一定蓋得過（佈景的藍底規則已排除 .th，style.css） */
:where(.th) button { background-color: transparent; color: inherit; box-shadow: none; text-transform: none; }
.th button.th-icon { background-color: rgba(255, 255, 255, .16) !important; color: #fff !important; }
.th button.th-icon:hover { background-color: rgba(255, 255, 255, .3) !important; }
.th .th-tabs button { color: var(--ink-2) !important; }
.th .th-tabs button:hover { background-color: var(--mist) !important; color: var(--ink) !important; }
.th .th-tabs button[aria-selected="true"], .th .th-tabs button[aria-pressed="true"] { background-color: var(--blue) !important; color: #fff !important; }

.th {
  --ink: #0f2340;
  --ink-2: #40536d;
  --soft: #56697f;      /* 小字用，白底對比 5:1 以上 */
  --soft-head: #7385a0; /* 大標第二行用，只給大字 */
  --blue: #2e64a4;
  --sky: #5d89b9;
  --sky-deep: #3f6d9f;
  --mist: #e9f0f7;
  --paper: #f6f9fc;
  --line: rgba(15, 35, 64, .09);
  --glass: rgba(255, 255, 255, .16);
  --glass-line: rgba(255, 255, 255, .42);
  --r-xl: 32px;
  --r-lg: 24px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4vw, 56px);
  position: relative;
  width: 100vw;
  margin: 0 calc(50% - 50vw);
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font-family: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
.th *, .th *::before, .th *::after { box-sizing: border-box; }
/* 蓋掉佈景的全域字型與間距；用 :where 讓特異度歸零，元件自己的樣式才贏得過 */
.th :where(h1, h2, h3, p, a, button, li, dt, dd, span, time, small, strong) { font-family: inherit; letter-spacing: inherit; text-align: inherit; }
.th :where(h1, h2, h3, p, ul, dl, dd, figure) { margin: 0; padding: 0; }
.th :where(ul) { list-style: none; }
.th :where(img) { display: block; max-width: 100%; height: auto; }
.th :where(a) { color: inherit; text-decoration: none; }
.th ::selection { background: var(--blue); color: #fff; }
.th a:focus-visible, .th button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.th [hidden] { display: none !important; }
.th-num { font-family: 'Sora', 'Noto Sans TC', sans-serif; font-feature-settings: 'tnum'; }
.th-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.th-wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- 共用：按鈕 ---------- */
.th-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 1.5em; border-radius: 999px;
  font-size: .9375rem; font-weight: 500; letter-spacing: .04em; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.th-pill svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.th-pill--white { background: #fff; color: var(--ink); }
.th-pill--white:hover { background: var(--mist); color: var(--ink); }
.th-pill--glass { background: var(--glass); color: #fff; border-color: var(--glass-line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.th-pill--glass:hover { background: rgba(255, 255, 255, .28); color: #fff; }
.th-pill--line { border-color: rgba(46, 100, 164, .35); color: var(--blue); background: transparent; }
.th-pill--line:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.th-pill--ink { background: var(--ink); color: #fff; }
.th-pill--ink:hover { background: var(--blue); color: #fff; }

.th-round {
  display: inline-grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), background-color .35s var(--ease), color .35s var(--ease);
}
.th-round svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.th-round--white { background: #fff; color: var(--ink); }
.th-round--blue { background: var(--blue); color: #fff; }
.th-round--line { border-color: var(--line); color: var(--ink); }
a:hover > .th-round, .th-round:hover { transform: rotate(45deg); }
.th-pair { display: inline-flex; align-items: center; gap: 8px; }
.th-pair:hover .th-round { transform: rotate(45deg); }
.th-pair--center { justify-content: center; flex-wrap: wrap; }

.th-icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--glass); border: 1px solid var(--glass-line); color: #fff; cursor: pointer; padding: 0;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: background-color .3s var(--ease);
}
.th-icon:hover { background: rgba(255, 255, 255, .3); color: #fff; }
.th-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 共用：標題 ---------- */
.th-sec { padding: clamp(72px, 10vw, 140px) 0 0; }
.th-h2 {
  font-size: clamp(1.75rem, 3vw, 2.75rem); font-weight: 500; line-height: 1.3; letter-spacing: .02em; color: var(--ink);
}
.th-h2 > span { display: block; }
.th-h2 .th-soft { color: var(--soft-head); font-weight: 400; }
.th-h2--white, .th-h2--white .th-soft { color: #fff; }
.th-head { display: grid; gap: 20px; margin-bottom: clamp(32px, 4vw, 56px); }
.th-head p { max-width: 34em; color: var(--ink-2); line-height: 1.9; }
.th-head--row { grid-template-columns: 1fr auto; align-items: end; }

.th-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 999px; background: #fff; border: 1px solid var(--line); width: max-content; max-width: 100%; }
.th-tabs button {
  min-height: 40px; padding: 0 1.2em; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font-size: .9375rem; color: var(--ink-2); transition: background-color .3s var(--ease), color .3s var(--ease);
}
.th-tabs button:hover { color: var(--ink); background: var(--mist); }
.th .th-tabs [aria-selected="true"], .th .th-tabs [aria-pressed="true"] { background: var(--blue); color: #fff; }

/* ---------- ① 主視覺 ---------- */
.th-hero {
  position: relative; margin: 12px; border-radius: var(--r-xl); overflow: hidden; isolation: isolate;
  min-height: max(640px, calc(100svh - 24px)); /* 永遠填滿第一個畫面；原本上限 940px，大螢幕會變得又扁又矮（2026-11-20） */
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto;
  color: #fff; background: var(--sky);
}
.th-hero__bg, .th-hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.th-hero__bg { z-index: -1; }
.th-hero__bg img { object-fit: cover; object-position: 62% 30%; filter: saturate(.72) brightness(.84) contrast(1.04); max-width: none; }
.th-hero::after { /* 文字那一側壓暗一點，白字才讀得清楚；用 ::after 才會疊在照片上面 */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, rgba(18, 45, 82, .58) 0%, rgba(18, 45, 82, .4) 34%, rgba(18, 45, 82, 0) 60%);
}

/* 分店的地區線條插畫主視覺：圖本身就是藍底白線，不再調暗；左側文字區本來就深，遮罩減半 */
.th-hero--line { background: #183a66; }
.th-hero--line .th-hero__bg img { filter: none; object-position: 100% 60%; }
.th-hero--line::after { opacity: .9; }

.th-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px clamp(20px, 2.6vw, 40px); }
.th-nav__logo { flex: none; }
.th-nav__logo img { width: clamp(150px, 13vw, 200px); }
.th-nav__menu {
  position: relative; z-index: 40; padding: 5px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.th-nav__menu > ul { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.th-nav__menu li { position: relative; margin: 0; list-style: none; }
.th-nav__menu > ul > li > a { display: block; line-height: 1.6; padding: 9px 12px; font-size: .8125rem; }
.th-nav__menu a { padding: 9px 14px; border-radius: 999px; font-size: .875rem; letter-spacing: .04em; color: rgba(255, 255, 255, .92); white-space: nowrap; transition: background-color .3s var(--ease), color .3s var(--ease); }
.th-nav__menu a:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.th-nav__menu a[aria-current] { background: #fff; color: var(--ink); }
.th-nav__tools { display: flex; align-items: center; gap: 8px; }
.th-mob { display: none; }
/* 淺色頁面上的選單（商品頁等）：深色字、白底膠囊 */
.th-nav--light { padding-left: max(var(--gutter), calc((100vw - 1440px) / 2 + var(--gutter))); padding-right: max(var(--gutter), calc((100vw - 1440px) / 2 + var(--gutter))); } /* 和內容區（.th-wrap 1440）對齊 */
.th-nav--light .th-nav__menu { background: #fff; border-color: var(--line); }
.th-nav--light .th-nav__menu > ul > li > a { padding: 9px 11px; font-size: .8125rem; color: var(--ink-2); }
.th-nav--light .th-nav__menu > ul > li > a:hover { background: var(--mist); color: var(--ink); }
.th-nav--light .th-nav__menu > ul > li > a[aria-current] { background: var(--blue); color: #fff; }
.th-nav--light .th-icon { background: #fff; border-color: var(--line); color: var(--ink); }
.th .th-nav--light button.th-icon { background-color: #fff !important; color: var(--ink) !important; }
.th .th-nav--light button.th-icon:hover, .th-nav--light .th-icon:hover { background-color: var(--mist) !important; color: var(--ink); }
.th-nav--light .th-pill--glass { background: var(--ink); border-color: var(--ink); color: #fff; }
.th-nav--light .th-pill--glass:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* 選單跟著捲動：捲過原本的選單後固定在畫面頂端（front.js 加 is-stuck） */
.th-nav.is-stuck { position: fixed; top: var(--wp-admin--admin-bar--height, 0px); left: 0; right: 0; z-index: 9990; padding-top: 10px; padding-bottom: 10px; background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line), 0 10px 28px rgba(20, 45, 80, .07); animation: th-navin .35s var(--ease); }
.th-nav.is-stuck .th-nav__logo img { width: clamp(130px, 11vw, 168px); }
@keyframes th-navin { from { transform: translateY(-100%); } }
@media (prefers-reduced-motion: reduce) { .th-nav.is-stuck { animation: none; } }
html { scroll-padding-top: calc(var(--th-navh, 76px) + 12px); }
.th-hero.has-stuck-nav { z-index: 9990; } /* 首頁選單在主視覺裡，主視覺自成一層；選單固定時整層提高，才不會被下面的區塊蓋住 */

.th-hero__copy { align-self: center; padding: 0 clamp(20px, 6vw, 96px); max-width: 760px; }
.th-hero__title { font-size: clamp(2.5rem, 4.2vw, 4.5rem); font-weight: 300; text-shadow: 0 2px 24px rgba(10, 30, 60, .18); line-height: 1.18; letter-spacing: .03em; color: #fff; margin-bottom: .5em; }
.th-hero__title > span { display: flex; align-items: center; gap: .3em; white-space: nowrap; }
.th-hero__title > span + span { padding-left: .1em; }
.th-drop { width: .5em; height: .66em; flex: none; fill: none; stroke: #fff; stroke-width: 1.4; stroke-linecap: round; }
.th-hero__lead { max-width: 25em; font-size: clamp(.9375rem, .3vw + .85rem, 1.0625rem); line-height: 1.95; letter-spacing: .04em; color: rgba(255, 255, 255, .95); margin-bottom: 2em; text-shadow: 0 1px 12px rgba(10, 30, 60, .25); }
.th-hero__lead span { white-space: nowrap; }
.th-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.th-hero__actions .th-pill--glass { margin-left: 8px; }

.th-hero__store { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 8px 16px 8px 12px; border-radius: 999px; font-size: .9375rem; color: #fff; background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.th-hero__store svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
/* 分店首頁：本店資訊 */
.th-branch__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.th-branch__photo { margin: 0; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; display: grid; place-items: center; background: linear-gradient(160deg, var(--sky) 0%, var(--sky-deep) 100%); }
.th-branch__photo img { width: 100%; height: 100%; object-fit: cover; }
.th-branch__photo .th-store__logo { width: 50%; height: auto; object-fit: contain; }
.th-branch__info { display: grid; gap: 24px; }
.th-branch__map { margin-top: clamp(28px, 4vw, 48px); }
.th-branch__map iframe { display: block; width: 100%; height: clamp(280px, 30vw, 420px); border: 0; border-radius: var(--r-lg); background: var(--mist); }
.th-branch__info .th-h2 { margin: 0; }
.th-branch__info dl { display: grid; gap: 14px; margin: 0; }
.th-branch__info dl > div { display: grid; grid-template-columns: 6em 1fr; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.th-branch__info dt { color: var(--soft); font-size: .9375rem; }
.th-branch__info dd { margin: 0; min-width: 0; color: var(--ink); line-height: 1.7; }
.th-hero__proof {
  justify-self: start; display: flex; align-items: center; gap: 14px;
  margin: 0 0 clamp(24px, 4vw, 44px) clamp(20px, 6vw, 96px);
  padding: 8px 20px 8px 8px; border-radius: 999px; /* 底下是白雲，白字要墊一層深色霧玻璃 */
  background: rgba(15, 35, 64, .38); border: 1px solid rgba(255, 255, 255, .28); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-size: .875rem; line-height: 1.5; color: #fff;
}
.th-hero__proof strong { font-size: 1.375rem; font-weight: 500; }
.th-hero__proof small { font-size: .8125rem; color: rgba(255, 255, 255, .85); }
.th-faces { display: flex; }
.th-faces img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255, 255, 255, .9); }
.th-faces img + img { margin-left: -12px; }

/* 手機選單 */
.th-drawer {
  position: fixed; inset: 8px; z-index: 9999; border-radius: var(--r-lg); padding: 88px 28px 32px;
  background: rgba(63, 109, 159, .86); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  overflow-y: auto;
}
.th-drawer nav { display: grid; gap: 2px; }
.th-drawer nav > a, .th-drawer summary { display: block; padding: 14px 4px; font-size: 1.25rem; font-weight: 300; color: #fff; border-bottom: 1px solid rgba(255, 255, 255, .18); cursor: pointer; list-style: none; }
.th-drawer summary::-webkit-details-marker { display: none; }
.th-drawer summary::after { content: "+"; float: right; font-weight: 300; }
.th-drawer details[open] summary::after { content: "−"; }
.th-drawer__sub { display: grid; padding: 6px 0 12px 12px; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.th-drawer__sub a { padding: 10px 4px; font-size: 1rem; color: rgba(255, 255, 255, .9); }
/* 電腦版下拉：滑過或用鍵盤移到大分類時出現子分類 */
.th-nav__sub { position: absolute; top: 100%; left: 50%; padding-top: 12px; opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; }
.th-nav__has:hover > .th-nav__sub, .th-nav__has:focus-within > .th-nav__sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.th-nav__sub ul { display: grid; gap: 2px; min-width: 210px; margin: 0; padding: 8px; list-style: none; border-radius: 20px; background: #fff; border: 1px solid var(--line); box-shadow: 0 24px 48px -24px rgba(10, 30, 60, .35); }
.th-nav__menu .th-nav__sub a { display: block; padding: 10px 14px; border-radius: 12px; font-size: .875rem; letter-spacing: .02em; color: var(--ink-2); background: none; }
.th-nav__menu .th-nav__sub a:hover { background: var(--mist); color: var(--ink); }
.th-drawer__close { position: absolute; top: 20px; right: 20px; }

/* ---------- ② 關於天康 ---------- */
.th-about__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.th-about__photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--mist); }
.th-about__photo img { width: 100%; height: 100%; object-fit: cover; }
.th-about__text { display: grid; gap: 28px; }
.th-about__text > p { color: var(--ink-2); line-height: 2; max-width: 32em; }
.th-about__foot { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.th-stats { display: flex; gap: clamp(24px, 4vw, 56px); }
.th-stats dt { font-size: clamp(1.75rem, 2.6vw, 2.5rem); font-weight: 400; color: var(--ink); line-height: 1.1; }
.th-stats dd { margin-top: 6px; font-size: .875rem; color: var(--soft); }

.th-brands { margin-top: clamp(64px, 8vw, 112px); display: grid; grid-template-columns: 9em 1fr; gap: 24px; align-items: center; }
.th-brands__label { font-size: .9375rem; font-weight: 500; color: var(--soft); letter-spacing: .08em; }
.th-brands__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.th-brands__list li { height: 64px; display: grid; place-items: center; border-radius: 14px; background: #fff; border: 1px solid var(--line); padding: 10px 14px; }
.th-brands__list img { max-height: 36px; width: auto; filter: grayscale(1); opacity: .72; transition: filter .3s var(--ease), opacity .3s var(--ease); }
.th-brands__list li:hover img { filter: none; opacity: 1; }

/* ---------- ③ 產品系列（一列一列，滑到的那列變深藍） ---------- */
.th-series .th-head { grid-template-columns: 1fr minmax(0, 26em); align-items: end; }
.th-series__list { border-top: 1px solid var(--line); }
.th-row { position: relative; border-bottom: 1px solid var(--line); }
.th-row__link {
  position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 15em) minmax(0, 1fr) auto; align-items: center; gap: 24px;
  padding: 28px clamp(16px, 2vw, 32px); border-radius: 20px; transition: background-color .45s var(--ease), color .45s var(--ease);
}
.th-row__name { font-size: clamp(1.25rem, 1.6vw, 1.625rem); font-weight: 500; }
.th-row__text { color: var(--ink-2); font-size: .9375rem; line-height: 1.8; max-width: 28em; }
.th-row__pic {
  position: absolute; z-index: 2; right: clamp(84px, 8vw, 120px); top: 50%; width: clamp(140px, 13vw, 190px); aspect-ratio: 1;
  border-radius: 20px; background: #fff; padding: 14px; box-shadow: 0 24px 50px -20px rgba(10, 30, 60, .45);
  opacity: 0; transform: translateY(-50%) scale(.94); pointer-events: none;
  transition: opacity .45s var(--ease), transform .55s var(--ease);
}
.th-row__pic img { width: 100%; height: 100%; object-fit: contain; }
.th-row.is-on .th-row__link { background: var(--blue); color: #fff; }
.th-row.is-on .th-row__text { color: rgba(255, 255, 255, .86); }
.th-row.is-on .th-round--line { background: #fff; color: var(--blue); border-color: #fff; transform: rotate(45deg); }
.th-row.is-on .th-row__pic { opacity: 1; transform: translateY(-50%) scale(1); }

/* ---------- ④ 精選商品（商品頁風格：淺灰藍底、商品放大） ---------- */
.th-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.th-card a { display: grid; gap: 6px; height: 100%; padding: 14px 14px 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.th-card a:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(10, 30, 60, .4); }
.th-card__pic { display: block; aspect-ratio: 1; border-radius: 18px; background: #e8eef5; overflow: hidden; margin-bottom: 10px; }
.th-card__pic img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transform: scale(.92); transition: transform .6s var(--ease); }
.th-card a:hover .th-card__pic img { transform: scale(1); }
.th-card__badge { justify-self: start; padding: 2px 10px; border-radius: 999px; font-size: .75rem; color: var(--blue); background: var(--mist); }
.th-card__series { font-size: .8125rem; color: var(--soft); padding: 0 4px; }
.th-card__name { font-size: 1rem; font-weight: 500; line-height: 1.55; padding: 0 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.th-card__price { display: flex; align-items: baseline; gap: 10px; padding: 4px 4px 0; }
.th-card__price strong { font-size: 1.0625rem; font-weight: 500; color: var(--ink); }
.th-card__price del { font-size: .8125rem; color: var(--soft); }
.th-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-weight: 500; color: var(--blue); }
.th-more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.th-more:hover svg { transform: rotate(45deg); }

/* ---------- ⑤ 服務情境（滿版照片＋霧玻璃清單） ---------- */
.th-scene__card, .th-cta__card { position: relative; margin: 0 12px; border-radius: var(--r-xl); overflow: hidden; isolation: isolate; }
.th-scene__card { min-height: clamp(560px, 48vw, 720px); display: grid; grid-template-columns: minmax(0, 400px) 1fr; grid-template-rows: 1fr auto; align-items: end; gap: 24px; padding: clamp(24px, 4vw, 56px); }
.th-scene__list { grid-column: 1; grid-row: 1; align-self: start; }
.th-scene__copy { grid-column: 1 / -1; grid-row: 2; }
.th-scene__bg, .th-cta__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; max-width: none !important; }
.th-scene__card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(15, 40, 75, .85) 0%, rgba(15, 40, 75, .55) 28%, rgba(15, 40, 75, 0) 55%); }
.th-scene__copy { display: grid; gap: 18px; max-width: 30em; color: #fff; }
.th-scene__copy p { line-height: 1.95; color: rgba(255, 255, 255, .92); }
.th-scene__list {
  display: grid; gap: 4px; padding: 10px; border-radius: 22px;
  background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .7);
  -webkit-backdrop-filter: blur(20px) saturate(1.2); backdrop-filter: blur(20px) saturate(1.2);
}
.th-scene__list li { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 14px; background: rgba(255, 255, 255, .7); font-size: .9375rem; color: var(--ink); }
.th-check { width: 22px; height: 22px; border-radius: 50%; background: var(--blue); flex: none; position: relative; }
.th-check::after { content: ""; position: absolute; left: 7px; top: 5px; width: 6px; height: 10px; border: solid #fff; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg); }

/* ---------- ⑥ 全台門市 ---------- */
.th-stores__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.th-store { display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 18px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.th-store__pic { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; margin-bottom: 8px; background: linear-gradient(160deg, var(--sky) 0%, var(--sky-deep) 100%); }
.th-store__pic img { width: 100%; height: 100%; object-fit: cover; }
.th-store__pic .th-store__logo { width: 62%; height: auto; object-fit: contain; opacity: .9; }
.th-store__region { font-size: .75rem; color: var(--blue); padding: 0 6px; }
.th-store h3 { font-size: 1.0625rem; font-weight: 500; padding: 0 6px; }
.th-store p { font-size: .8125rem; line-height: 1.7; color: var(--ink-2); padding: 0 6px; }
.th-store__hours { color: var(--soft) !important; }
.th-store h3 a, .th-store h2 a { color: inherit; text-decoration: none; }
.th-store h3 a:hover, .th-store h2 a:hover { color: var(--blue); }
.th-store__home { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 6px; font-size: .8125rem; color: var(--blue); text-decoration: none; }
.th-store__home:hover { text-decoration: underline; text-underline-offset: 4px; }
.th-store__home svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.th-store__acts { margin-top: auto; padding: 10px 6px 0; }
.th-store__acts .th-pill { min-height: 40px; padding: 0 1em; font-size: .8125rem; }

/* ---------- ⑦ 最新消息 ---------- */
.th-news__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.th-news__list a { display: grid; gap: 10px; }
.th-news__pic { display: block; aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(160deg, var(--mist), #d7e3ef); }
.th-news__pic { display: grid; place-items: center; }
.th-news__pic .th-news__logo { width: 46%; height: auto; object-fit: contain; opacity: .9; }
.th-news__pic:has(.th-news__logo) { background: linear-gradient(160deg, var(--sky) 0%, var(--sky-deep) 100%); }
.th-news__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.th-news__list a:hover img { transform: scale(1.04); }
.th-news__list time { font-size: .8125rem; color: var(--soft); margin-top: 6px; }
.th-news__list h3 { font-size: 1.0625rem; font-weight: 500; line-height: 1.6; }

/* ---------- ⑧ 收尾 ---------- */
.th-cta { padding-bottom: 12px; }
.th-cta__card { min-height: clamp(440px, 38vw, 560px); display: grid; place-content: center; justify-items: center; gap: 18px; padding: 48px 24px; text-align: center; color: #fff; }
.th-cta__card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(12, 35, 70, .45); }
.th-cta__card p { color: rgba(255, 255, 255, .92); margin-bottom: 10px; }
.th-cta .th-pill--glass { background: rgba(12, 35, 70, .42); }
.th-cta__card .th-h2 { font-weight: 300; font-size: clamp(2rem, 4.4vw, 3.75rem); }

/* ---------- 頁尾（首頁版） ---------- */
.th-site .site-footer { margin: 12px; border-radius: var(--r-xl, 32px); background: #3f6d9f; padding: 56px 24px 32px; }
.th-site .site-footer a { color: #fff; }
.th-site .site-footer .footer-divider { background: rgba(255, 255, 255, .22); }
.th-site .site-footer .copyright, .th-site .site-footer .copyright p { color: #fff; }

/* ---------- 動態 ---------- */
@media (prefers-reduced-motion: no-preference) {
  .th-hero__copy > * { animation: th-rise 1.1s var(--ease) both; }
  .th-hero__copy > :nth-child(2) { animation-delay: .12s; }
  .th-hero__copy > :nth-child(3) { animation-delay: .24s; }
  @keyframes th-rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }
}
@media (prefers-reduced-motion: reduce) {
  .th *, .th *::before, .th *::after { transition: none !important; animation: none !important; }
}

/* ---------- 中等寬度 ---------- */
@media (max-width: 1300px) {
  /* 選單項目多，窄一點的螢幕先收掉「聯絡我們」（頁尾、手機選單都還有） */
  .th-nav .th-pill.th-desk { display: none !important; }
}
@media (max-width: 1240px) {
  .th-nav .th-nav__menu > ul > li > a { padding: 9px 9px; font-size: .8125rem; }
}
@media (max-width: 1100px) {
  /* 佈景的手機程式會替小按鈕加行內 display，所以這裡要 !important */
  .th-nav__menu, .th-desk { display: none !important; }
  .th-mob { display: inline-grid; }
  .th-cards, .th-stores__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .th-row__link { grid-template-columns: minmax(0, 12em) minmax(0, 1fr) auto; }
}
@media (max-width: 900px) {
  .th-about__grid, .th-branch__grid { grid-template-columns: 1fr; }
  .th-series .th-head, .th-head--row { grid-template-columns: 1fr; align-items: start; }
  .th-cards, .th-stores__list, .th-news__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .th-scene__card { grid-template-columns: 1fr; }
  .th-scene__list { grid-row: 2; }
  .th-scene__copy { grid-row: 3; }
  .th-row__link { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; }
  .th-row__name { grid-column: 1; grid-row: 1; }
  .th-row__text { grid-column: 1 / -1; grid-row: 2; }
  .th-row .th-round { grid-column: 2; grid-row: 1; }
  .th-row__pic { display: none; }
  .th-row.is-on .th-row__text { padding-right: 0; }
  .th-brands { grid-template-columns: 1fr; }
}

/* ---------- 手機 ---------- */
@media (max-width: 760px) {
  .th { --gutter: 20px; }
  /* 手機：上半部是天空色塊放文字，人物照片放下半部，上緣淡入 */
  .th-hero { margin: 8px; border-radius: 24px; min-height: 0; grid-template-rows: auto auto auto; background: linear-gradient(180deg, #4a6b94 0%, #58799f 50%, #7f9dc0 100%); }
  .th-hero__bg { position: relative; inset: auto; grid-row: 3; z-index: 0; height: 360px; margin-top: -36px; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 26%); mask-image: linear-gradient(to bottom, transparent 0, #000 26%); }
  .th-hero__bg img { object-position: 30% 0; }
  .th-hero::after { display: none; }
  .th-nav { padding: 16px; }
  .th-nav__logo img { width: 148px; }
  .th-hero__copy { align-self: start; padding: 28px 20px 0; }
  .th-hero__title { font-size: min(8.2vw, 2.75rem); }
  .th-hero__lead { font-size: .9375rem; }
  .th-hero__actions .th-pill--glass { margin-left: 0; }
  .th-hero__proof { position: absolute; left: 0; bottom: 0; margin: 0 0 16px 16px; padding: 8px 14px 8px 8px; }
  .th-hero__copy { position: relative; z-index: 1; }
  .th-cta__card .th-h2 { font-size: min(7.6vw, 2.25rem); }
  .th-hero__proof br { display: none; }
  .th-hero__proof small { display: none; }
  .th-faces img { width: 34px; height: 34px; }
  .th-sec { padding-top: 72px; }
  .th-tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .th-tabs button { flex: none; }
  .th-cards, .th-stores__list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 74%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; scrollbar-width: none; }
  .th-cards::-webkit-scrollbar, .th-stores__list::-webkit-scrollbar { display: none; }
  .th-card, .th-store { scroll-snap-align: start; }
  .th-news__list { grid-template-columns: 1fr; }
  .th-about__foot { flex-direction: column; align-items: start; }
  .th-scene__card, .th-cta__card { margin: 0 8px; border-radius: 24px; }
  .th-scene__card { padding: 20px; min-height: 0; padding-top: 220px; }
  .th-site .site-footer { margin: 8px; border-radius: 24px; }
}

/* 佈景把 body 設成 overflow-x: hidden，body 變成捲動容器，position: sticky（目錄、購物車總計卡）就固定不住。
   新設計頁改用 clip：一樣不會左右捲，但不會變成捲動容器 */
html:has(body.th-site):not([style*="overflow: hidden"]), body.th-site:not([style*="overflow: hidden"]) { overflow-x: clip !important; overflow-y: visible !important; } /* 搜尋視窗打開時會鎖住背景捲動，那時候不要蓋掉 */

/* 分店線條插畫主視覺（手機）：底色接插畫的藍，圖靠右下 */
@media (max-width: 760px) {
  .th-hero.th-hero--line { background: linear-gradient(180deg, #183a66 0%, #21497d 60%, #2a5a95 100%); }
  .th-hero--line .th-hero__bg img { object-position: 60% 100%; }
}

/* 分店大標題第二行「台南北區飲水機・淨水器」最長 11 字，手機字級縮一點才放得下 */
@media (max-width: 760px) { .th-hero--branch .th-hero__title { font-size: min(7vw, 2.75rem); } .th-hero--long .th-hero__title { font-size: min(6.3vw, 2.5rem); } } /* 地名超過兩個字（台南北區）再小一點 */

/* 分店網址底下的門市標示（template-parts/th-store-bar.php，分類頁、商品頁共用，所以放在全站都會載入的 front.css） */
.th-storebar { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; margin: 0 0 clamp(20px, 3vw, 32px); padding: 14px 18px; border-radius: var(--r-lg, 20px); background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--blue); }
.th-storebar > svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--blue); stroke-width: 1.7; }
.th-storebar p { flex: 1 1 260px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 0; }
.th-storebar strong { font-weight: 500; color: var(--ink); }
.th-storebar span { font-size: .875rem; color: var(--ink-2); }
.th-storebar a { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; color: var(--blue); text-decoration: none; white-space: nowrap; }
.th-storebar a:hover { text-decoration: underline; text-underline-offset: 4px; }
.th-storebar a svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* ===== 選單與 LOGO 放大 30%（2026-11-20）=====
   大螢幕（1680 以上）字、按鈕、LOGO 都放大約 30%；1361 到 1719 放大約 25% 並收起「聯絡我們」（1720 以上才放得下）；1360 以下改用右上角的選單按鈕 */
.th-nav__logo img { width: clamp(190px, 16.9vw, 260px); }
.th-nav.is-stuck .th-nav__logo img { width: clamp(170px, 14.3vw, 218px); }
.th-nav__menu { padding: 6px; }
.th-nav .th-nav__menu > ul > li > a { padding: 11px 12px; font-size: 1rem; letter-spacing: .02em; }
.th-nav .th-icon { width: 52px; height: 52px; }
.th-nav .th-icon svg { width: 24px; height: 24px; }
.th-nav .th-pill.th-desk { min-height: 52px; padding: 0 1.5em; font-size: 1rem; }
.th-nav__menu .th-nav__sub a { padding: 12px 16px; font-size: 1rem; }
@media (min-width: 1680px) {
  .th-nav .th-nav__menu > ul > li > a { padding: 12px 16px; font-size: 1.0625rem; }
  .th-nav .th-icon { width: 56px; height: 56px; }
  .th-nav .th-icon svg { width: 26px; height: 26px; }
  .th-nav .th-pill.th-desk { min-height: 56px; font-size: 1.0625rem; }
}
/* 淺色選單和內容區一樣寬（1440），1680 以上維持 1361 那一級的大小、不放「聯絡我們」，才不會超出內容區 */
.th .th-nav--light .th-nav__menu > ul > li > a { padding: 11px 11px; font-size: 1rem; }
.th-nav--light .th-icon { width: 52px; height: 52px; }
.th-nav--light .th-icon svg { width: 24px; height: 24px; }
.th-nav--light .th-nav__logo img { width: clamp(190px, 16.9vw, 240px); }
.th-nav--light .th-pill.th-desk { display: none !important; }
@media (max-width: 1439px) { .th .th-nav--light .th-nav__menu > ul > li > a { padding: 11px 8px; } .th-nav--light .th-nav__logo img { width: clamp(190px, 15vw, 240px); } }
@media (max-width: 1719px) { .th-nav .th-pill.th-desk { display: none !important; } }
@media (max-width: 1360px) {
  .th-nav .th-nav__menu, .th-nav .th-desk { display: none !important; }
  .th-nav .th-mob { display: inline-grid; }
}
@media (max-width: 760px) {
  .th-nav__logo img, .th-nav.is-stuck .th-nav__logo img { width: min(176px, 42vw); }
  .th-nav .th-icon { width: min(48px, 12.5vw); height: min(48px, 12.5vw); }
  .th-nav .th-icon svg { width: 22px; height: 22px; }
}

/* ===== 右側迷你購物車（2026-11-20，inc/tc-minicart.php、assets/js/minicart.js）===== */
.th-icon--cart { position: relative; }
.th-cart-n { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; display: grid; place-items: center; font-size: .6875rem; line-height: 1; color: #fff; background: var(--blue); box-shadow: 0 0 0 2px #fff; }
.th-cart-n[hidden] { display: none; }
.th-mc { position: fixed; inset: 0; z-index: 10000; }
.th-mc[hidden] { display: none; }
.th-mc__shade { position: absolute; inset: 0; background: rgba(10, 30, 60, .4); opacity: 0; transition: opacity .3s var(--ease); }
.th-mc__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, calc(100% - 44px)); display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; background: #fff; box-shadow: -30px 0 60px -30px rgba(10, 30, 60, .5); transform: translateX(100%); transition: transform .4s var(--ease); }
.th-mc.is-open .th-mc__shade { opacity: 1; }
.th-mc.is-open .th-mc__panel { transform: none; }
.th-mc__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 18px 28px; border-bottom: 1px solid var(--line); }
.th-mc__head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.25rem; font-weight: 500; color: var(--ink); }
.th-mc__head h2 span { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 13px; display: grid; place-items: center; font-size: .8125rem; color: var(--blue); background: var(--mist); }
.th .th-mc__close, .th .th-mc__del { display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; cursor: pointer; transition: background-color .25s var(--ease); }
.th .th-mc__close { width: 44px; height: 44px; color: var(--ink) !important; }
.th .th-mc__close:hover, .th .th-mc__del:hover { background-color: var(--mist) !important; color: var(--ink) !important; }
.th-mc__close svg, .th-mc__del svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.th-mc__msg { margin: 0; padding: 12px 28px; font-size: .9375rem; color: var(--blue); background: var(--mist); }
.th-mc__msg:empty { display: none; }
.th-mc__msg.is-err { color: #b42318; background: #fef3f2; }
.th-mc__body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 28px; }
.th-mc__list { display: grid; margin: 0; padding: 0; list-style: none; }
.th-mc__item { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 16px; align-items: center; margin: 0; padding: 18px 0; border-bottom: 1px solid var(--line); }
.th-mc__pic img { display: block; width: 76px; height: 76px; object-fit: contain; border-radius: 14px; background: var(--mist); }
.th-mc__info { display: grid; gap: 4px; min-width: 0; }
.th-mc__name { color: var(--ink); font-size: .9375rem; line-height: 1.5; text-decoration: none; }
a.th-mc__name:hover { color: var(--blue); }
.th-mc__var { font-size: .8125rem; color: var(--soft); }
.th-mc__meta { font-size: .875rem; color: var(--ink-2); }
.th .th-mc__del { width: 36px; height: 36px; color: var(--soft) !important; }
.th-mc__empty { display: grid; justify-items: center; gap: 16px; padding: 64px 0; color: var(--ink-2); text-align: center; }
.th-mc__empty svg { width: 44px; height: 44px; fill: none; stroke: var(--soft); stroke-width: 1.4; }
.th-mc__empty p { margin: 0; }
.th-mc__foot { display: grid; gap: 10px; padding: 20px 28px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.th-mc__foot[hidden] { display: none; }
.th-mc__sum { display: flex; align-items: baseline; justify-content: space-between; margin: 0; color: var(--ink-2); }
.th-mc__sum strong { font-size: 1.375rem; font-weight: 500; color: var(--ink); }
.th-mc__note { margin: 0; font-size: .8125rem; color: var(--soft); }
.th-mc__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.th-mc__btns .th-pill { justify-content: center; min-height: 50px; }
@media (max-width: 760px) { .th-mc__head { padding-left: 20px; } .th-mc__body { padding: 4px 20px; } .th-mc__foot { padding-left: 20px; padding-right: 20px; } .th-mc__msg { padding: 12px 20px; } }
@media (prefers-reduced-motion: reduce) { .th-mc__panel, .th-mc__shade { transition: none; } }

/* 門市的電話、導航、LINE（2026-11-20）：有幾顆就平分一整排，三顆各三分之一，沒有 LINE 就兩顆各一半 */
.th-acts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; width: 100%; }
.th-acts .th-pill { justify-content: center; gap: 6px; min-width: 0; padding: 0 .75em; white-space: nowrap; }
.th-acts .th-pill svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; }
.th-store__tel { color: var(--ink-2) !important; }
.th-branch__info .th-acts .th-pill { min-height: 50px; }

/* ===== LINE 詢問（2026-11-20，inc/tc-lineask.php、assets/js/lineask.js）===== */
.th-lineico, .th-pill .th-lineico, .th-acts .th-pill .th-lineico { width: 18px; height: 18px; flex: none; fill: #06c755 !important; stroke: none !important; } /* LINE 綠；按鈕裡的 svg 預設是線條，這裡要實心 */
.th-pd__line { width: 100%; justify-content: center; gap: 8px; margin-top: 8px; min-height: 52px; border-radius: 14px; }
.th-cat__ask { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink); font-size: .9375rem; text-decoration: none; transition: border-color .3s var(--ease), background-color .3s var(--ease); }
.th-cat__ask:hover { border-color: #06c755; background: #f2fcf5; }
.th-cat__ask > svg:last-child { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.th-mc__ask { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; font-size: .9375rem; color: var(--ink); text-decoration: none; border-radius: 12px; }
.th-mc__ask:hover { background: #f2fcf5; }
/* 電腦版的 LINE 視窗 */
.th-lq { position: fixed; inset: 0; margin: auto; height: fit-content; width: min(760px, calc(100% - 32px)); max-height: calc(100vh - 32px); padding: 32px 36px 28px; border: 0; border-radius: var(--r-lg, 24px); background: #fff; color: var(--ink); box-shadow: 0 40px 80px -30px rgba(10, 30, 60, .5); }
.th-lq::backdrop { background: rgba(10, 30, 60, .45); }
.th-lq h2 { margin: 0 44px 8px 0; font-size: 1.375rem; font-weight: 500; }
.th-lq__how { margin: 0 0 22px; color: var(--ink-2); line-height: 1.8; font-size: .9375rem; }
.th .th-lq__x { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; color: var(--ink) !important; }
.th .th-lq__x:hover { background-color: var(--mist) !important; }
.th-lq__x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.th-lq__grid { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 28px; align-items: start; }
.th-lq__code { display: grid; place-items: center; width: 236px; height: 236px; padding: 8px; border-radius: 18px; border: 1px solid var(--line); color: var(--soft); font-size: .875rem; text-align: center; }
.th-lq__code img, .th-lq__code canvas { display: block; width: 220px; height: 220px; }
.th-lq__side { display: grid; gap: 10px; }
.th-lq__label { font-size: .875rem; color: var(--soft); }
.th-lq__msg { width: 100%; min-height: 150px; padding: 12px 14px; border-radius: 14px; border: 1px solid rgba(15, 35, 64, .16); background: var(--paper, #f6f9fc); color: var(--ink); font: inherit; font-size: .9375rem; line-height: 1.7; resize: vertical; box-sizing: border-box; }
.th-lq__msg:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.th-lq__acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.th-lq__acts .th-pill { justify-content: center; min-height: 48px; }
.th-lq__done { margin: 0; min-height: 1.5em; font-size: .875rem; color: #067a37; }
.th-lq__done.is-err { color: #b42318; }
.th-lq__id { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--soft); }

/* ===== Google 評價（2026-11-20，inc/tc-reviews.php、template-parts/th-reviews.php）===== */
.th-stars { position: relative; display: inline-block; width: 86px; height: 16px; flex: none; vertical-align: -2px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 16'%3E%3Cpath fill='%23d5dde8' d='M8 0l2.4 5 5.4.6-4 3.7 1.1 5.4L8 12 3.1 14.7l1.1-5.4-4-3.7L5.6 5z'/%3E%3C/svg%3E") 0 0 / 17.2px 16px repeat-x; }
.th-stars > span { position: absolute; inset: 0 auto 0 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 16'%3E%3Cpath fill='%23f5a623' d='M8 0l2.4 5 5.4.6-4 3.7 1.1 5.4L8 12 3.1 14.7l1.1-5.4-4-3.7L5.6 5z'/%3E%3C/svg%3E") 0 0 / 17.2px 16px repeat-x; }
.th-reviews__score { display: flex; align-items: center; gap: 14px; }
.th-reviews__score > b { font-size: clamp(2.75rem, 4.5vw, 3.75rem); font-weight: 300; line-height: 1; color: var(--ink); }
.th-reviews__score p { margin: 6px 0 0; font-size: .875rem; color: var(--ink-2); }
.th-reviews__list { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; } /* 分店 5 則一排，總店 8 則兩排 */
@media (min-width: 761px) and (max-width: 1199px) { .th-reviews__list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 42%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; } .th-review { scroll-snap-align: start; } }
.th-review { display: flex; flex-direction: column; gap: 12px; padding: 22px 22px 18px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.th-review__who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.th-review__who img, .th-review__ini { width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover; }
.th-review__ini { display: grid; place-items: center; background: var(--mist); color: var(--blue); font-size: 1rem; }
.th-review__who div { display: grid; min-width: 0; }
.th-review__who a, .th-review__who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9375rem; font-weight: 500; color: var(--ink); text-decoration: none; }
.th-review__who a:hover { color: var(--blue); }
.th-review__who span { font-size: .8125rem; color: var(--soft); }
.th-review__text { margin: 0; font-size: .9375rem; line-height: 1.85; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.th-review__more { margin-top: auto; font-size: .8125rem; color: var(--blue); text-decoration: none; }
.th-review__more:hover { text-decoration: underline; text-underline-offset: 4px; }
.th-reviews__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 28px; }
.th-reviews__src { margin: 0 0 0 auto; font-size: .75rem; color: var(--soft); }
.th-store__rate { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; min-height: 28px; padding: 0 6px; font-size: .8125rem; color: var(--ink-2); text-decoration: none; }
.th-store__rate b { font-weight: 500; color: var(--ink); }
.th-store__rate:hover span { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .th-reviews .th-head--row { grid-template-columns: 1fr; }
  .th-reviews__list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 12px; scrollbar-width: none; }
  .th-reviews__list::-webkit-scrollbar { display: none; }
  .th-review { scroll-snap-align: start; }
  .th-reviews__foot .th-pill { flex: 1 1 auto; justify-content: center; }
  .th-reviews__src { margin: 4px 0 0; width: 100%; }
}

/* ===== 跳到內容、搜尋視窗（2026-11-20，header.php 重寫）===== */
.th-skip { position: absolute; left: 12px; top: -60px; z-index: 10001; padding: 10px 16px; border-radius: 999px; background: #0f2340; color: #fff; text-decoration: none; }
.th-skip:focus { top: 12px; }
.th-sch { width: min(640px, calc(100% - 32px)); padding: 28px 32px 30px; border: 0; border-radius: 28px; background: #fff; color: var(--ink); box-shadow: 0 40px 80px -30px rgba(10, 30, 60, .5); position: fixed; inset: 0; margin: auto; height: fit-content; }
.th-sch::backdrop { background: rgba(10, 30, 60, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.th-sch__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.th-sch__head h2 { margin: 0; font-size: 1.375rem; font-weight: 500; }
.th .th-sch__x { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; }
.th .th-sch__x:hover { background-color: var(--mist); }
.th-sch__x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.th-sch__form { display: flex; gap: 8px; }
.th-sch__form input { flex: 1; min-width: 0; height: 52px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(15, 35, 64, .16); background: #f6f9fc; color: var(--ink); font: inherit; font-size: 1rem; }
.th-sch__form input:focus { outline: 2px solid var(--blue); outline-offset: 1px; background: #fff; }
.th-sch__form .th-pill { min-height: 52px; padding: 0 1.6em; }
.th-sch__label { margin: 22px 0 10px; font-size: .875rem; color: var(--soft); }
.th-sch__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.th-sch__tags a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: .9375rem; }
.th-sch__tags a:hover { border-color: var(--blue); color: var(--blue); background: var(--mist); }
@media (max-width: 760px) { .th-sch { padding: 22px 20px 24px; } .th-sch__form { flex-direction: column; } }

/* 新設計以外的小連結（浮動客服鈕、頁尾社群圖示、聯絡資訊）至少 44px 好點。原本是舊腳本 navigation-fix.js 載入後才撐開，2026-11-20 拿掉腳本改用樣式 */
:where(body.th-site a:not(.th a, .tc-flinks a)) { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
