/* ============================================================
   宅食光 Home Taste Time — 官網（首頁與各內頁）
   色彩取自招牌 logo 與紙本菜單；字：logo 毛筆字（遮罩）＋ 霞鶩文楷 ＋ 思源黑體
   ============================================================ */

:root {
  --paper: #F8F6E7;       /* 紙本菜單底色 */
  --rice: #EFE5D5;        /* 價目底框 */
  --clay: #D8AC89;        /* 菜單上的毛筆字色 */
  --clay-deep: #9A6A45;   /* 在紙色上需要可讀時用 */
  --brick: #952C2A;       /* 招牌紅 */
  --brick-deep: #6F1F1D;
  --ink: #33291F;
  --ink-soft: #6B5E51;
  --rule: rgba(51, 41, 31, 0.14);

  --font-kai: 'LXGW WenKai TC', 'Kaiti TC', 'STKaiti', 'BiauKai', serif;
  --font-sans: 'Noto Sans TC', 'PingFang TC', 'Heiti TC', 'Microsoft JhengHei', system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body.th {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.th img { display: block; max-width: 100%; }
.th a { color: inherit; }
.th :focus-visible { outline: 3px solid var(--clay); outline-offset: 3px; border-radius: 6px; }
.th-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.th-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- 品牌字：logo 毛筆字當遮罩，顏色吃 currentColor ---------- */
.th-mark {
  display: block;
  aspect-ratio: 910 / 389;
  background: currentColor;
  -webkit-mask: url('../img/zsg/wordmark.png') center / contain no-repeat;
          mask: url('../img/zsg/wordmark.png') center / contain no-repeat;
}

/* ---------- 共用元件 ---------- */
.th-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s;
}
.th-btn--brick { background: var(--brick); color: var(--paper) !important; }
.th-btn--brick:hover { background: var(--brick-deep); }
.th-btn--paper { background: var(--paper); color: var(--brick) !important; }
.th-btn--paper:hover { background: #fff; }
.th-btn--line { border: 1.5px solid rgba(248, 246, 231, .55); color: var(--paper) !important; }
.th-btn--line:hover { border-color: var(--paper); background: rgba(0, 0, 0, .12); }
.th-btn--line-dark { border: 1.5px solid var(--rule); color: var(--ink) !important; }

.th-price {
  font-family: var(--font-kai);
  font-weight: 700;
  color: var(--brick);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.th-h2 {
  font-family: var(--font-kai);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.25;
  letter-spacing: 0.04em;
  margin: 0;
}

/* ---------- Header ---------- */
.th-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(248, 246, 231, .94);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.th-header__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.th-header__brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--brick) !important; }
.th-header__brand .th-mark { width: 92px; }
.th-header__en { font-size: 12px; letter-spacing: 0.18em; color: var(--clay-deep); }
.th-header__nav { display: flex; gap: 36px; }
.th-header__nav a { text-decoration: none; font-size: 16px; letter-spacing: 0.12em; padding: 6px 0; border-bottom: 2px solid transparent; }
.th-header__nav a:hover { border-color: var(--clay); }
.th-header__nav a[aria-current='page'] { color: var(--brick); border-color: var(--brick); }
.th-header__actions { display: flex; justify-content: flex-end; align-items: center; gap: 20px; }
.th-header__tel { text-decoration: none; font-variant-numeric: tabular-nums; color: var(--ink-soft) !important; font-size: 15px; }
.th-header .th-btn { min-height: 42px; padding: 0 20px; font-size: 15px; }

/* ---------- Hero：紅色招牌 ---------- */
.th-hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: min(760px, calc(100svh - 67px));
  background: var(--brick);
}
.th-hero__sign {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 7vw, 96px) clamp(24px, 6vw, 88px);
  color: var(--paper);
  isolation: isolate;
}
/* logo 裡那個大圓，淡淡地放在招牌背後 */
.th-hero__sign::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: 118%;
  aspect-ratio: 1;
  right: -52%;
  top: -34%;
  border-radius: 50%;
  border: clamp(28px, 4.5vw, 64px) solid rgba(255, 255, 255, .07);
}
.th-hero__title { margin: 0 0 22px; }
.th-mark--hero {
  width: clamp(250px, 36vw, 500px);
  color: var(--paper);
  animation: th-brush 1s cubic-bezier(.6, 0, .2, 1) .15s both;
}
@keyframes th-brush {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
.th-hero__tagline {
  margin: 0 0 36px;
  font-family: var(--font-kai);
  font-size: clamp(18px, 1.9vw, 24px);
  letter-spacing: 0.14em;
  color: var(--clay);
}
.th-hero__status {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0 0 24px;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .2);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.th-hero__status strong { font-weight: 700; letter-spacing: 0.08em; }
.th-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--clay); }
.th-dot.is-open { background: #B9E6A5; box-shadow: 0 0 0 4px rgba(185, 230, 165, .2); }
.th-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.th-hero__addr { margin: 28px 0 0; font-size: 14px; color: rgba(248, 246, 231, .72); }

.th-hero__photo { position: relative; margin: 0; min-height: 360px; }
.th-hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- 菜單 ---------- */
.th-menu { padding: clamp(64px, 9vw, 112px) 0; }
.th-menu__head { max-width: 36em; }
.th-menu__lede { margin: 14px 0 0; color: var(--ink-soft); }

.th-cat {
  display: grid;
  grid-template-columns: 1fr auto 1.15fr;
  grid-template-areas: 'photo title list';
  align-items: center;
  gap: clamp(20px, 3.5vw, 44px);
  margin-top: clamp(48px, 7vw, 80px);
}
.th-cat--flip { grid-template-columns: 1.15fr auto 1fr; grid-template-areas: 'list title photo'; }
.th-cat__photo { grid-area: photo; }
.th-cat__photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; }
/* 紙本菜單的直書分類名，上下各一道短線 */
.th-cat__title {
  grid-area: title;
  justify-self: center;
  margin: 0;
  padding: 18px 10px;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  writing-mode: vertical-rl;
  font-family: var(--font-kai);
  font-weight: 700;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.2;
  letter-spacing: 0.22em;
}
.th-cat__list {
  grid-area: list;
  padding: clamp(20px, 2.6vw, 30px) clamp(20px, 2.8vw, 34px);
  border-radius: 16px;
  background: var(--rice);
}
.th-cat__list ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; }
.th-cat__list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.th-cat__name { font-size: 16.5px; }
.th-cat__list .th-price { font-size: 19px; }
.th-cat__more { display: inline-block; margin-top: 16px; font-size: 14px; color: var(--brick) !important; text-underline-offset: 4px; }

.th-more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.th-more__label { color: var(--ink-soft); font-size: 15px; }
.th-more ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.th-more a {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
}
.th-more a:hover { background: var(--rice); border-color: transparent; }

/* ---------- 套餐升級：紙本菜單底部的紅帶 ---------- */
.th-combo { background: var(--brick); color: var(--paper); padding: clamp(48px, 6vw, 64px) 0; }
.th-combo__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: clamp(28px, 5vw, 64px);
  row-gap: 18px;
}
.th-combo__title {
  grid-row: span 2;
  margin: 0;
  padding: 10px 4px;
  border-top: 2px solid var(--clay);
  border-bottom: 2px solid var(--clay);
  font-family: var(--font-kai);
  font-weight: 700;
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.25;
  letter-spacing: 0.12em;
  color: var(--clay);
}
.th-combo__plans { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 20px 32px; }
.th-combo__plans li { display: flex; align-items: center; gap: 16px; }
.th-combo__badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .13);
  font-family: var(--font-kai);
  font-weight: 700;
  font-size: 19px;
}
.th-combo__items { font-size: 16px; line-height: 1.55; }
.th-combo__items small { display: block; margin-top: 2px; font-size: 14px; color: var(--clay); }
.th-combo__note { margin: 0; font-size: 14px; color: rgba(248, 246, 231, .7); }

/* ---------- 到店 ---------- */
.th-visit { --visit-pad: clamp(64px, 9vw, 112px); padding: var(--visit-pad) 0; }
.th-visit__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 5vw, 64px); align-items: stretch; }
.th-visit__info { position: relative; display: flex; flex-direction: column; }
.th-facts { margin: 28px 0 0; }
.th-facts > div { display: grid; grid-template-columns: 6.5em 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--rule); }
.th-facts dt { font-size: 14px; color: var(--ink-soft); padding-top: 3px; }
.th-facts dd { margin: 0; font-size: 17px; }
.th-facts dd a { display: block; width: fit-content; margin-top: 4px; font-size: 15px; color: var(--brick); text-underline-offset: 4px; }
.th-facts a.th-facts__big {
  margin-top: 0;
  font-family: var(--font-kai);
  font-weight: 700;
  font-size: 28px;
  color: var(--ink);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.th-hours { border-collapse: collapse; font-variant-numeric: tabular-nums; }
.th-hours th { font-weight: 400; text-align: left; padding: 0 24px 2px 0; }
.th-hours td { padding: 0 0 2px; }
.th-hours .is-muted { color: var(--ink-soft); font-size: 15px; }

.th-dog { position: relative; width: 200px; margin: 0; }
/* 首頁：店狗站在頁尾紅色上緣，呼應紙本菜單底部的紅帶 */
.th-visit__info .th-dog { margin: auto 0 calc(-1 * var(--visit-pad)); padding-top: 28px; }
.th-visit__info .th-dog figcaption { top: 34px; }
.th-dog img { width: 100%; height: auto; }
.th-dog figcaption {
  position: absolute;
  top: 6px;
  right: -40px;
  padding: 8px 2px;
  border-top: 1.5px solid var(--clay-deep);
  border-bottom: 1.5px solid var(--clay-deep);
  writing-mode: vertical-rl;
  font-family: var(--font-kai);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.2em;
  color: var(--clay-deep);
}

.th-visit__map { position: relative; min-height: 460px; border-radius: 20px; overflow: hidden; background: var(--rice); }
.th-visit__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Footer ---------- */
.th-footer { background: var(--brick-deep); color: rgba(248, 246, 231, .78); padding: 48px 0; font-size: 14px; }
.th-footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: start; }
.th-footer .th-mark--footer { width: 110px; color: var(--clay); margin-bottom: 14px; }
.th-footer p { margin: 0; }
.th-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.th-footer nav a { text-decoration: none; color: var(--paper); }
.th-footer nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.th-footer__copy { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid rgba(248, 246, 231, .15); font-size: 13px; }

/* ============================================================
   內頁
   ============================================================ */
.th-skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 8px; background: var(--ink); color: var(--paper) !important; }
.th-skip:focus { top: 12px; }

.th-section { --section-pad: clamp(56px, 8vw, 96px); padding: var(--section-pad) 0; }
.th-section--rice { background: var(--rice); }

/* 內頁標題：縮小版紅色招牌 */
.th-pagehead { position: relative; overflow: hidden; background: var(--brick); color: var(--paper); isolation: isolate; }
.th-pagehead::before {
  content: '';
  position: absolute;
  z-index: -1;
  width: min(560px, 90vw);
  aspect-ratio: 1;
  right: -8%;
  top: -120%;
  border-radius: 50%;
  border: clamp(24px, 3.5vw, 44px) solid rgba(255, 255, 255, .07);
}
.th-pagehead__inner { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(36px, 5vw, 60px); }
.th-pagehead__title {
  margin: 0;
  font-family: var(--font-kai);
  font-weight: 700;
  font-size: clamp(38px, 5.4vw, 60px);
  line-height: 1.15;
  letter-spacing: 0.12em;
}
.th-pagehead__lede { max-width: 36em; margin: 14px 0 0; font-size: 16px; color: rgba(248, 246, 231, .82); }

/* 在紙色底上的營業狀態 */
.th-status {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0 0 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--rice);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.th-status strong { letter-spacing: 0.08em; }
.th-status .th-dot { background: var(--clay-deep); }
.th-status .th-dot.is-open { background: #3F8A3A; box-shadow: 0 0 0 4px rgba(63, 138, 58, .16); }
.th-facts__hint { display: block; margin-top: 2px; font-size: 14px; color: var(--ink-soft); }

/* ---------- 菜單頁 ---------- */
.th-catnav {
  position: sticky;
  top: 66px;
  z-index: 15;
  background: rgba(248, 246, 231, .96);
  border-bottom: 1px solid var(--rule);
}
.th-catnav ul {
  list-style: none;
  margin: 0 auto;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-top: 10px;
  padding-bottom: 10px;
  scrollbar-width: none;
}
.th-catnav ul::-webkit-scrollbar { display: none; }
.th-catnav a {
  display: block;
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none;
  font-size: 15px;
}
.th-catnav a:hover { background: var(--rice); }
.th-mgroups { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 96px); }
.th-mgroup {
  display: grid;
  grid-template-columns: auto minmax(0, 0.85fr) minmax(0, 1.15fr);
  grid-template-areas: 'title photo list';
  align-items: start;
  gap: clamp(20px, 3.5vw, 44px);
  padding: clamp(36px, 5vw, 56px) 0;
  border-top: 1px solid var(--rule);
  scroll-margin-top: 130px;
}
.th-mgroup:first-child { border-top: 0; padding-top: 0; }
.th-mgroup--plain { grid-template-areas: 'title . list'; }
.th-mgroup .th-cat__title { justify-self: start; }
.th-mgroup__photo { grid-area: photo; position: sticky; top: 140px; }
.th-mgroup__photo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 20px; }
.th-dishes { grid-area: list; list-style: none; margin: 0; padding: 0; }
.th-dish { padding: 14px 0; border-bottom: 1px dashed rgba(51, 41, 31, .18); }
.th-dish:first-child { padding-top: 0; }
.th-dish__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.th-dish__name { font-family: var(--font-kai); font-weight: 700; font-size: 19px; }
.th-dish .th-price { font-size: 19px; }
.th-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 0 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 12px;
  line-height: 20px;
  color: var(--brick);
  vertical-align: 2px;
}
.th-dish__note {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.th-cta { padding: clamp(48px, 6vw, 72px) 0; }
.th-cta__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.th-cta__text { margin: 0 auto 0 0; font-family: var(--font-kai); font-weight: 700; font-size: clamp(24px, 3vw, 32px); }

/* ---------- 到店頁 ---------- */
.th-section .th-facts { margin-top: 20px; }
.th-guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.th-guide { padding: 24px 26px; border-radius: 16px; background: var(--paper); }
.th-guide h3 { margin: 0 0 8px; font-family: var(--font-kai); font-weight: 700; font-size: 22px; }
.th-guide p { margin: 0; color: var(--ink-soft); }
.th-guide strong { color: var(--ink); font-weight: 500; }

.th-list { list-style: none; margin: 24px 0 0; padding: 0; max-width: 34em; }
.th-list li { position: relative; padding: 12px 0 12px 22px; border-top: 1px solid var(--rule); }
.th-list li:first-child { border-top: 0; }
.th-list li::before { content: ''; position: absolute; left: 2px; top: 1.3em; width: 8px; height: 8px; border-radius: 50%; background: var(--clay); }

.th-section--dog { padding-bottom: 0; }
.th-rules { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; }
.th-rules > div { padding-bottom: var(--section-pad); }
.th-rules .th-dog { margin-right: 40px; }

/* ---------- 聯絡頁 ---------- */
.th-contact { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 20px; align-items: stretch; }
.th-contact__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 28px;
  border-radius: 18px;
  background: var(--rice);
  text-decoration: none;
  transition: background-color .15s;
}
.th-contact__card:hover { background: #E8DCC7; }
.th-contact__card--brick { background: var(--brick); color: var(--paper) !important; }
.th-contact__card--brick:hover { background: var(--brick-deep); }
.th-contact__label { margin: 0; font-size: 15px; font-weight: 500; letter-spacing: 0.08em; }
.th-contact__value { font-family: var(--font-kai); font-weight: 700; font-size: clamp(28px, 3vw, 36px); font-variant-numeric: tabular-nums; }
.th-contact__hint { margin-top: auto; padding-top: 12px; font-size: 14px; opacity: .8; }
.th-contact__hours { padding: 28px; border-radius: 18px; border: 1px solid var(--rule); }
.th-contact__hours .th-status { margin: 12px 0 14px; }
.th-contact__addr { margin: 16px 0 0; font-size: 15px; color: var(--ink-soft); }
.th-contact__addr a { margin-left: 6px; color: var(--brick); text-underline-offset: 4px; }
.th-contact__tips .th-list { margin-top: 20px; }

.th-faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; align-items: start; }
.th-faq__list details { border-top: 1px solid var(--rule); }
.th-faq__list details:last-child { border-bottom: 1px solid var(--rule); }
.th-faq__list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-kai);
  font-weight: 700;
  font-size: 19px;
}
.th-faq__list summary::-webkit-details-marker { display: none; }
.th-faq__list summary::after { content: '+'; flex: none; font-family: var(--font-sans); font-weight: 400; font-size: 22px; color: var(--brick); transition: transform .2s; }
.th-faq__list details[open] summary::after { transform: rotate(45deg); }
.th-faq__list details p { margin: 0 0 20px; color: var(--ink-soft); max-width: 36em; }

/* ---------- 隱私權政策 ---------- */
.th-prose { max-width: 42em; }
.th-prose__meta { margin: 0 0 8px; font-size: 14px; color: var(--ink-soft); }
.th-prose section { padding-top: 28px; }
.th-prose h2 { margin: 0 0 10px; font-family: var(--font-kai); font-weight: 700; font-size: 24px; }
.th-prose p, .th-prose li { line-height: 1.85; }
.th-prose p { margin: 0 0 12px; }
.th-prose ul { margin: 0 0 12px; padding-left: 1.3em; }
.th-prose li { margin-bottom: 6px; }
.th-prose li::marker { color: var(--clay-deep); }
.th-prose strong { font-weight: 500; }
.th-prose a { color: var(--brick); text-underline-offset: 3px; }
.th-prose__box { margin-top: 12px; padding: 20px 24px; border-radius: 14px; background: var(--rice); }
.th-prose__box p:last-child { margin-bottom: 0; }

/* ---------- 包場頁 ---------- */
.th-party { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.th-party__lede { margin: 12px 0 0; color: var(--ink-soft); }
.th-rates { width: 100%; margin-top: 24px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.th-rates th, .th-rates td { padding: 16px 8px; border-top: 1px solid var(--rule); text-align: right; vertical-align: baseline; }
.th-rates thead th { padding-top: 0; border-top: 0; font-size: 14px; font-weight: 400; color: var(--ink-soft); }
.th-rates th:first-child { padding-left: 0; text-align: left; }
.th-rates td:last-child { padding-right: 0; }
.th-rates tbody th { font-family: var(--font-kai); font-weight: 700; font-size: 20px; }
.th-rates tbody th small { display: block; font-family: var(--font-sans); font-weight: 400; font-size: 14px; color: var(--ink-soft); }
.th-rates .th-price { font-size: 24px; }
.th-rates td small { font-size: 13px; color: var(--ink-soft); }

.th-party__offset { padding: clamp(24px, 3vw, 32px); border-radius: 18px; background: var(--rice); }
.th-party__offset h3 { margin: 0 0 8px; font-family: var(--font-kai); font-weight: 700; font-size: 22px; line-height: 1.4; }
.th-party__offset p { margin: 0; color: var(--ink-soft); }
.th-party__example { margin: 20px 0 0; padding: 4px 20px; border-radius: 12px; background: var(--paper); font-variant-numeric: tabular-nums; }
.th-party__example > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-top: 1px dashed rgba(51, 41, 31, .18); }
.th-party__example > div:first-child { border-top: 0; }
.th-party__example dt { font-size: 15px; color: var(--ink-soft); }
.th-party__example dd { margin: 0; font-weight: 500; white-space: nowrap; }
.th-party__example .is-head dt { color: var(--ink); font-weight: 500; }
.th-party__example .is-head .th-price { font-size: 20px; }
.th-party__offset .th-party__fine { margin-top: 12px; font-size: 14px; }

.th-seats { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.th-seats li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 20px 8px; border-radius: 16px; background: var(--paper); text-align: center; }
.th-seats__n { font-family: var(--font-kai); font-weight: 700; font-size: clamp(32px, 4vw, 44px); line-height: 1.1; color: var(--brick); font-variant-numeric: tabular-nums; }
.th-seats__label { font-size: 15px; color: var(--ink-soft); }

.th-gear { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 28px; }
.th-gear__label { font-size: 15px; color: var(--ink-soft); }
.th-gear ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.th-gear li { padding: 7px 18px; border-radius: 999px; background: var(--paper); font-weight: 500; }

.th-rates tbody th small.th-rates__min { color: var(--brick); font-weight: 500; }
.th-rates__note { margin: 12px 0 0; font-size: 14px; color: var(--ink-soft); }
.th-gear__hint { margin: 14px 0 0; font-size: 15px; color: var(--ink-soft); }

.th-party__book { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* 手機底部點餐列，桌機隱藏 */
.th-dock { display: none; }

/* ============================================================
   動態：只有一個開場（毛筆字刷出 → 文字接著出現 → 照片落定、冒熱氣），
   其餘只在捲到時揭開照片、店狗探頭。偏好減少動態時全部關閉。
   ============================================================ */
.th-hero--solo { grid-template-columns: 1fr; }

.th-hero__tagline, .th-hero__status, .th-hero__actions, .th-hero__addr { animation: th-rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.th-hero__tagline { animation-delay: .8s; }
.th-hero__status { animation-delay: .95s; }
.th-hero__actions { animation-delay: 1.1s; }
.th-hero__addr { animation-delay: 1.25s; }
@keyframes th-rise { from { opacity: 0; transform: translateY(14px); } }

.th-hero__photo { overflow: hidden; }
/* 上緣一層淡淡的暖色陰影，讓白色熱氣看得出來 */
.th-hero__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(51, 30, 18, .42), rgba(51, 30, 18, 0) 55%);
  pointer-events: none;
}
.th-steam { z-index: 1; }
.th-hero__photo img { animation: th-settle 2.2s cubic-bezier(.2, .7, .2, 1) .1s both; }
@keyframes th-settle { from { opacity: 0; transform: scale(1.08); } }

/* 熱氣：幾團模糊的白霧由碗口往上飄散 */
.th-steam {
  position: absolute;
  left: 50%;
  top: 4%;
  width: 52%;
  height: 52%;
  transform: translateX(-50%);
  pointer-events: none;
}
.th-steam i {
  position: absolute;
  bottom: 0;
  width: 34%;
  height: 80%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 60%, rgba(255, 255, 255, .95), rgba(255, 255, 255, .35) 40%, rgba(255, 255, 255, 0) 70%);
  filter: blur(14px);
  opacity: 0;
  animation: th-steam 5.5s ease-in infinite;
}
.th-steam i:nth-child(1) { left: 12%; animation-delay: 1.4s; }
.th-steam i:nth-child(2) { left: 36%; animation-delay: 3.2s; animation-duration: 6.5s; }
.th-steam i:nth-child(3) { left: 58%; animation-delay: 4.6s; }
@keyframes th-steam {
  0% { opacity: 0; transform: translateY(30%) scale(.6, .7); }
  30% { opacity: .9; }
  100% { opacity: 0; transform: translateY(-70%) scale(1.5, 1.2) skewX(12deg); }
}

/* 捲到時揭開：照片由下往上掀開（像掀開門簾），文字隨後淡入 */
.th-motion [data-reveal] .th-cat__photo img,
.th-motion [data-reveal] .th-mgroup__photo img {
  clip-path: inset(100% 0 0 0 round 20px);
  transform: scale(1.06);
  transition: clip-path 1s cubic-bezier(.6, 0, .2, 1), transform 1.4s cubic-bezier(.2, .7, .2, 1);
}
.th-motion [data-reveal].is-in .th-cat__photo img,
.th-motion [data-reveal].is-in .th-mgroup__photo img { clip-path: inset(0 0 0 0 round 20px); transform: none; }
.th-motion [data-reveal] .th-cat__title,
.th-motion [data-reveal] .th-cat__list,
.th-motion [data-reveal] .th-dishes { opacity: 0; transform: translateY(12px); transition: opacity .8s ease, transform .8s ease; }
.th-motion [data-reveal] .th-cat__title { transition-delay: .25s; }
.th-motion [data-reveal] .th-cat__list,
.th-motion [data-reveal] .th-dishes { transition-delay: .4s; }
.th-motion [data-reveal].is-in .th-cat__title,
.th-motion [data-reveal].is-in .th-cat__list,
.th-motion [data-reveal].is-in .th-dishes { opacity: 1; transform: none; }

/* 店狗從頁尾紅色上緣探出頭 */
.th-dog { overflow-y: clip; overflow-x: visible; }
.th-motion .th-dog[data-reveal] img { transform: translateY(45%); transition: transform .9s cubic-bezier(.3, 1.35, .5, 1); }
.th-motion .th-dog[data-reveal] figcaption { opacity: 0; transition: opacity .6s ease .6s; }
.th-motion .th-dog[data-reveal].is-in img { transform: none; }
.th-motion .th-dog[data-reveal].is-in figcaption { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .th-hero__tagline, .th-hero__status, .th-hero__actions, .th-hero__addr, .th-hero__photo img { animation: none; }
  .th-steam { display: none; }
}

/* ---------- 平板以下 ---------- */
@media (max-width: 900px) {
  .th-header__inner { grid-template-columns: auto 1fr; gap: 12px; }
  .th-header__en, .th-header__actions { display: none; }
  .th-header__nav { justify-content: flex-end; gap: 22px; }
  .th-header__brand .th-mark { width: 80px; }

  .th-hero { grid-template-columns: 1fr; min-height: 0; }
  .th-hero__photo { min-height: 0; aspect-ratio: 1 / 1; max-height: 70svh; }
  .th-hero__photo img { position: absolute; }

  .th-cat, .th-cat--flip {
    grid-template-columns: auto 1fr;
    grid-template-areas: 'photo photo' 'title list';
    align-items: start;
    gap: 20px;
  }
  .th-cat__title { padding: 14px 6px; }

  .th-combo__inner { grid-template-columns: 1fr; }
  .th-combo__title { grid-row: auto; justify-self: start; }
  .th-combo__title br { display: none; }
  .th-combo__plans { grid-template-columns: 1fr; }

  .th-visit__grid { grid-template-columns: 1fr; }
  .th-visit__info { display: contents; }
  .th-facts { margin-top: 0; }
  .th-visit__info .th-dog { order: 1; margin-top: 0; padding-top: 0; }
  .th-visit__info .th-dog figcaption { top: 6px; }
  .th-visit__map { min-height: 320px; }

  .th-footer { padding-bottom: 104px; }
  .th-footer__inner { grid-template-columns: 1fr; }

  .th-mgroup, .th-mgroup--plain {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: 'title photo' 'list list';
    align-items: center;
  }
  .th-mgroup--plain { grid-template-areas: 'title list'; align-items: start; }
  .th-mgroup__photo { position: static; }
  .th-mgroup__photo img { aspect-ratio: 4 / 3; }

  .th-guides { grid-template-columns: 1fr; }
  .th-rules { grid-template-columns: 1fr; gap: 0; }
  .th-rules > div { padding-bottom: 28px; }
  .th-rules .th-dog { margin-right: 0; }

  .th-contact { grid-template-columns: 1fr; }
  .th-party { grid-template-columns: 1fr; }
  .th-seats { grid-template-columns: repeat(3, 1fr); }
  .th-faq { grid-template-columns: 1fr; gap: 12px; }
  .th-cta__text { flex-basis: 100%; }

  .th-dock {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(248, 246, 231, .96);
    border-top: 1px solid var(--rule);
  }
  .th-dock .th-btn { padding: 0 12px; }
}

@media (max-width: 400px) {
  .th-header__brand .th-mark { width: 70px; }
  .th-header__nav { gap: 12px; }
  .th-header__nav a { font-size: 15px; letter-spacing: 0.06em; }
}

@media (max-width: 560px) {
  .th-cat__list ul { grid-template-columns: 1fr; gap: 10px; }
  .th-hero__actions .th-btn { flex: 1 1 auto; }
  .th-dog { width: 160px; }
  .th-rates th, .th-rates td { padding-left: 4px; padding-right: 4px; }
  .th-rates .th-price { font-size: 20px; }
  .th-rates td small { display: block; }
  .th-party__example { padding: 4px 16px; }
  .th-party__book .th-btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .th-mark--hero { animation: none; }
  .th-btn { transition: none; }
}
