/* 資訊頁（關於、門市、消息、文章、常見問題、聯絡、隱私權、找不到頁面）2026-11-19 新設計；檔名用 info 是因為 pages.css 是佈景原本全站載入的舊檔
   顏色、按鈕、卡片共用 front.css；膠囊、分頁、搜尋框共用 catalog.css */

.th-info { background: var(--paper, #f6f9fc); }
.th-info .site-content, .th-info .site-content > .container, .th-info .content-wrapper, .th-info .site-main { padding: 0 !important; margin: 0 !important; max-width: none !important; }
.th-info-page { padding-bottom: clamp(56px, 7vw, 104px); }

/* 頁首：麵包屑＋大標＋一句說明 */
.th-phead { display: grid; gap: 16px 48px; padding: 8px 0 clamp(28px, 3.5vw, 44px); }
.th-phead--lead { grid-template-columns: minmax(0, 1fr) minmax(0, 30em); align-items: end; }
.th-phead .th-h2 { margin: 0; }
.th-phead .th-soft { text-wrap: balance; word-break: keep-all; } /* 中文在「、」換行，不要把詞拆開 */
.th-nowrap { white-space: nowrap; }
.th-phead__lead { margin: 0; color: var(--ink-2); line-height: 1.9; }

/* 門市據點：直接排成格子（首頁是橫滑） */
.th-stores--page { display: grid; gap: 24px; }
.th-stores--page .th-store h2 { font-size: 1.0625rem; font-weight: 500; padding: 0 6px; margin: 0; }

/* 最新消息 */
.th-news__cats { margin-bottom: 28px; }
.th-news__list--page { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 20px; }
.th-news__list--page h2 { margin: 0; font-size: 1.0625rem; font-weight: 500; line-height: 1.6; }
.th-news__list--page p { margin: 0; font-size: .875rem; line-height: 1.8; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.th-info-page .th-news__pic { aspect-ratio: 1.91 / 1; }
.th-news__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 6px 0 0; font-size: .8125rem; color: var(--soft); }
.th-news__meta > :not(time) { padding: 2px 10px; border-radius: 999px; background: var(--mist); color: var(--blue); }

/* 文章內頁：左目錄、中內文、右分類 */
.th-article__grid { display: grid; grid-template-columns: 220px minmax(0, 760px) 240px; gap: clamp(24px, 3vw, 48px); justify-content: center; align-items: start; }
.th-article__grid--notoc { grid-template-columns: minmax(0, 760px) 240px; }
.th-article__body { min-width: 0; }
.th-prose :is(h2, h3)[id] { scroll-margin-top: calc(var(--th-navh, 76px) + 24px); }
.th-toc { position: sticky; top: calc(var(--th-stick, 0px) + 24px); max-height: calc(100vh - var(--th-stick, 0px) - 48px); overflow-y: auto; scrollbar-width: thin; }
.th-toc__box { padding: 18px 16px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.th-toc__t, .th-toc-m summary { margin: 0; font-size: .9375rem; font-weight: 500; color: var(--ink); }
.th-toc ol, .th-toc-m ol { display: grid; gap: 2px; margin: 12px 0 0; padding: 0; list-style: none; }
.th-toc-m { display: none; margin: 0 0 28px; padding: 14px 16px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.th-toc-m summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.th-toc-m summary::-webkit-details-marker { display: none; }
.th-toc-m summary::after { content: "+"; font-weight: 300; }
.th-toc-m[open] summary::after { content: "−"; }
.th-toc a, .th-toc-m a { display: block; padding: 6px 10px; border-radius: 10px; border-left: 2px solid transparent; font-size: .8125rem; line-height: 1.6; color: var(--ink-2); }
.th-toc a:hover { background: var(--mist); color: var(--ink); }
.th-toc a.is-now { border-left-color: var(--blue); background: var(--mist); color: var(--ink); font-weight: 500; }
.th-toc__l3 a { padding-left: 22px; font-size: .78rem; color: var(--soft); }
.th-toc-m a { display: block; padding: 8px 4px; font-size: .9375rem; color: var(--ink-2); }
.th-toc-m .th-toc__l3 a { padding-left: 18px; font-size: .875rem; }
.th-side { position: sticky; top: calc(var(--th-stick, 0px) + 24px); display: grid; gap: 16px; }
.th-side__box { padding: 18px 16px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.th-side__box h2 { margin: 0 0 10px; font-size: .9375rem; font-weight: 500; color: var(--ink); }
.th-side__box ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.th-side__box a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; font-size: .875rem; color: var(--ink-2); }
.th-side__box a span { font-size: .75rem; color: var(--soft); }
.th-side__box a:hover { background: var(--mist); color: var(--ink); }
.th-side__box a[aria-current] { background: var(--ink); color: #fff; }
.th-side__box a[aria-current] span { color: rgba(255, 255, 255, .75); }
.th-side__search { flex: none; width: 100%; }
.th-article__head { display: grid; gap: 14px; padding: 8px 0 24px; }
.th-article__head h1 { margin: 0; font-size: clamp(1.625rem, 3vw, 2.375rem); font-weight: 500; line-height: 1.45; color: var(--ink); letter-spacing: .01em; }
.th-article__cover { margin: 0 0 32px; border-radius: var(--r-lg); overflow: hidden; background: var(--mist); }
.th-article__cover img { width: 100%; height: auto; display: block; }
.th-article__foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line); }
.th-article .th-sec { padding-top: clamp(56px, 7vw, 96px); }

/* 長文字：文章、隱私權、問答 */
.th-prose { color: var(--ink-2); font-size: 1.0625rem; line-height: 2; overflow-wrap: anywhere; }
.th-prose > * + * { margin-top: 1.1em; }
.th-prose :is(h2, h3, h4) { color: var(--ink); font-weight: 500; line-height: 1.5; margin-top: 2em; }
.th-prose h2 { font-size: 1.375rem; }
.th-prose h3 { font-size: 1.1875rem; }
.th-prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.th-prose :is(ul, ol) { padding-left: 1.4em; }
.th-prose li + li { margin-top: .4em; }
.th-prose img { max-width: 100%; height: auto; border-radius: 16px; }
.th-prose iframe { display: block; max-width: 100%; border: 0; border-radius: 16px; background: var(--mist); }
.th-prose :is(iframe[src*="youtube"], .wp-block-embed iframe) { width: 100%; height: auto; aspect-ratio: 16 / 9; }
/* 直式短影片（YouTube Shorts）照 9:16 置中，不要被拉成橫的 */
.th-prose .wp-embed-aspect-9-16 iframe { aspect-ratio: 9 / 16; width: min(360px, 100%); margin: 0 auto; }
.th-prose .wp-block-embed figcaption { text-align: center; font-size: .875rem; color: var(--soft); }
.th-prose figure { margin: 1.6em 0; }
.th-prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--blue); color: var(--ink); }
.th-prose table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.th-prose :is(th, td) { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.th-policy { max-width: 820px; padding: clamp(24px, 4vw, 48px); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); font-size: 1rem; }
.th-policy section + section { margin-top: 2em; }
.th-policy .last-updated { color: var(--soft); font-size: .875rem; }

/* 常見問題 */
.th-qa { display: grid; gap: 24px; max-width: 920px; }
.th-qa__panel { display: grid; gap: 10px; }
.th-qa__item { border-radius: 20px; background: #fff; border: 1px solid var(--line); transition: border-color .3s var(--ease); }
.th-qa__item[open] { border-color: rgba(46, 100, 164, .4); }
.th-qa__item summary { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; min-height: 64px; padding: 14px 20px; cursor: pointer; list-style: none; }
.th-qa__item summary::-webkit-details-marker { display: none; }
.th-qa__q { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--mist); color: var(--blue); font: 500 .875rem 'Sora', sans-serif; }
.th-qa__title { font-size: 1rem; font-weight: 500; line-height: 1.6; color: var(--ink); }
.th-qa__icon { position: relative; width: 16px; height: 16px; }
.th-qa__icon::before, .th-qa__icon::after { content: ""; position: absolute; top: 50%; left: 0; width: 16px; height: 1.6px; background: var(--ink-2); transition: transform .3s var(--ease); }
.th-qa__icon::after { transform: rotate(90deg); }
.th-qa__item[open] .th-qa__icon::after { transform: rotate(0deg); }
.th-qa__a { padding: 0 20px 20px 66px; font-size: .9375rem; }
.th-qa__more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 24px 28px; border-radius: var(--r-lg); background: var(--mist); }
.th-qa__more h2 { margin: 0 0 4px; font-size: 1.125rem; font-weight: 500; color: var(--ink); }
.th-qa__more p { margin: 0; color: var(--ink-2); font-size: .9375rem; }

/* 聯絡我們 */
.th-contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.th-contact__info, .th-contact__form { padding: clamp(22px, 3vw, 36px); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.th-contact__info { position: sticky; top: calc(var(--th-stick, 0px) + 16px); display: grid; gap: 20px; background: var(--ink); border-color: var(--ink); color: #fff; }
.th-contact__info h2 { margin: 0; font-size: 1.25rem; font-weight: 500; }
.th-contact__info dl { display: grid; gap: 16px; margin: 0; }
.th-contact__info dt { font-size: .8125rem; color: rgba(255, 255, 255, .7); }
.th-contact__info dd { margin: 4px 0 0; font-size: 1rem; line-height: 1.7; }
.th-contact__info dd a { color: #fff; }
.th-contact__info dd a:hover { text-decoration: underline; text-underline-offset: 4px; }
.th-contact__info .th-pill--ink { background: #fff; border-color: #fff; color: var(--ink); }
.th-contact__info .th-pill--line { border-color: rgba(255, 255, 255, .5); color: #fff; }
.th-contact__form h2 { margin: 0 0 20px; font-size: 1.25rem; font-weight: 500; color: var(--ink); }
.th-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.th-field { display: grid; gap: 6px; font-size: .875rem; color: var(--ink-2); }
.th-field--full { grid-column: 1 / -1; }
.th-field i { font-style: normal; color: #b42318; }
.th-field :is(input, select, textarea) { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(15, 35, 64, .16); background: var(--paper); font: inherit; font-size: 1rem; color: var(--ink); box-sizing: border-box; }
.th-field textarea { min-height: 120px; resize: vertical; }
.th-field :is(input, select, textarea):focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; background: #fff; }
.th .th-contact__send { width: 100%; min-height: 54px; margin-top: 20px; border: 0; cursor: pointer; font-size: 1.0625rem; background-color: var(--ink) !important; color: #fff !important; }
.th .th-contact__send:hover { background-color: var(--blue) !important; }
.th-contact__note { margin: 12px 0 0; font-size: .8125rem; color: var(--soft); text-align: center; }
.th-contact__note a { color: var(--blue); }
.th-contact__err { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: #fdecec; color: #8a1f1f; font-size: .9375rem; }
.th-contact__done { display: grid; justify-items: start; gap: 12px; padding: 12px 0; }
.th-contact__done h2 { margin: 0; }
.th-contact__done p { margin: 0; color: var(--ink-2); }

/* 找不到頁面 */
.th-404 { display: grid; justify-items: center; gap: 24px; padding: clamp(40px, 8vw, 96px) 0 0; text-align: center; }
.th-404__code { margin: 0; font-size: clamp(5rem, 14vw, 9rem); font-weight: 300; line-height: 1; color: var(--mist); -webkit-text-stroke: 1.5px var(--sky, #5d89b9); }
.th-404 .th-h2 { margin: 0; }
.th-404__search { width: min(480px, 100%); flex: none; }
.th-404__links { justify-content: center; }

/* 關於天康 */
.th-aboutpage__intro { padding-top: 8px; }
.th-aboutpage__intro .th-prose { font-size: 1rem; }
.th-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.th-feats li { display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 2.6vw, 32px); border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.th-feats h3 { margin: 0; font-size: 1.1875rem; font-weight: 500; line-height: 1.5; color: var(--ink); }
.th-feats p { margin: 0; color: var(--ink-2); line-height: 1.9; font-size: .9375rem; }
.th-feats .th-more { margin-top: auto; padding-top: 8px; }
/* 歷史沿革時間軸（2026-11-20）：中間一條軸線，年份卡片左右交錯；手機改成左邊一條軸線 */
.th-timeline { position: relative; display: grid; gap: 20px; max-width: 1080px; margin: 0 auto; padding: 8px 0; list-style: none; }
.th-timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%); background: linear-gradient(to bottom, rgba(46, 100, 164, 0), rgba(46, 100, 164, .35) 6%, rgba(46, 100, 164, .35) 94%, rgba(46, 100, 164, 0)); }
.th-timeline > li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); align-items: start; }
.th-timeline__dot { grid-row: 1; grid-column: 2; justify-self: center; width: 16px; height: 16px; margin-top: 30px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); box-shadow: 0 0 0 6px rgba(46, 100, 164, .1); }
.th-timeline__card { position: relative; grid-row: 1; grid-column: 1; display: grid; gap: 10px; padding: 22px 26px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.th-timeline > li:nth-child(even) .th-timeline__card { grid-column: 3; }
.th-timeline__card::after { content: ""; position: absolute; top: 37px; right: -37px; width: 36px; height: 1px; background: rgba(46, 100, 164, .3); } /* 卡片連到軸上的小線 */
.th-timeline > li:nth-child(even) .th-timeline__card::after { right: auto; left: -37px; }
.th-timeline__year { font-size: 1.75rem; font-weight: 400; color: var(--blue); line-height: 1.2; letter-spacing: .02em; }
.th-timeline ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.th-timeline ul li { position: relative; padding-left: 18px; color: var(--ink-2); line-height: 1.8; }
.th-timeline ul li::before { content: ""; position: absolute; left: 0; top: .78em; width: 6px; height: 6px; border-radius: 50%; background: var(--sky, #5d89b9); }

@media (max-width: 1180px) {
  /* 中等寬度：目錄放內文上面，可收合；分類放內文下面 */
  .th-article__grid, .th-article__grid--notoc { grid-template-columns: minmax(0, 760px); }
  .th-toc { display: none; }
  .th-toc-m { display: block; }
  .th-side { position: static; }
  .th-side__box ul { display: flex; flex-wrap: wrap; gap: 6px; }
  .th-side__box a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
}
@media (max-width: 1100px) {
  .th-stores--page .th-stores__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .th-phead--lead, .th-contact { grid-template-columns: 1fr; }
  .th-contact__info { position: static; }
  .th-news__list--page, .th-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .th-stores--page .th-stores__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .th-news__list--page, .th-feats { grid-template-columns: 1fr; }
  /* 首頁門市是橫滑，門市頁改回直排 */
  .th-stores--page .th-stores__list { grid-auto-flow: row; grid-template-columns: 1fr; grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; }
  .th-form { grid-template-columns: 1fr; }
  .th-qa__a { padding: 0 18px 18px 18px; }
  .th-qa__item summary { padding: 12px 16px; gap: 12px; }
  .th-prose { font-size: 1rem; }
  .th-policy { padding: 20px; }
}
.th-field ::placeholder { color: var(--soft); opacity: 1; }
@media (max-width: 760px) {
  .th-timeline { gap: 14px; }
  .th-timeline::before { left: 8px; transform: none; }
  .th-timeline > li { grid-template-columns: 18px minmax(0, 1fr); column-gap: 16px; }
  .th-timeline__dot { grid-column: 1; justify-self: start; width: 18px; height: 18px; margin-top: 24px; }
  .th-timeline__card, .th-timeline > li:nth-child(even) .th-timeline__card { grid-column: 2; padding: 18px 20px; }
  .th-timeline__card::after, .th-timeline > li:nth-child(even) .th-timeline__card::after { display: none; }
  .th-timeline__year { font-size: 1.5rem; }
}
