/* 全站共用樣式：首頁與所有內頁（由 build-pages.py 產生）。
   2026-10-18 改成「午後窗光」風格（米白底、森林綠字、照片下緣融進米白），和首頁引導、祈福報名區（css/forest.css）一致。
   顏色只用下面的 tokens；古金（--accent）只當細線、小標、底線。 */
:root {
  --bg: #F7F1E6;          /* 米白（linen） */
  --bg-moss: #EFE5D0;     /* 和紙色，交替的區塊 */
  --bg-panel: #F3EAD8;    /* 卡片 */
  --forest: #2C3B27;
  --forest-dark: #1D2618;
  --moss: #5E6B4A;
  --ink-1: #2C3B27;       /* 標題 */
  --ink-2: #4F5245;       /* 內文 */
  --ink-3: #6A6C5C;       /* 次要說明 */
  --accent: #8A6E3E;      /* 古金（深） */
  --accent-dim: #A8916A;
  --line: #DCCFB4;
  --cn: "Noto Serif TC";
  --sans: "Noto Sans TC";
  --round: "Huninn";
  --en: "Noto Serif TC";
  --gutter: 20px;
  --max: 1160px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-synthesis: none; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink-2); font-family: var(--sans), sans-serif; font-size: 17px; line-height: 1.85; letter-spacing: 0.03em; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ol, ul { margin: 0; }
p { text-wrap: pretty; }
/* 文案排版（經營者指定）：一行一個意思，在停頓處換行；content/ 裡用 YAML 的 |- 寫多行，換行會照樣顯示 */
main p, main .faq p { white-space: pre-line; }
h1, h2, h3 { text-wrap: balance; font-weight: 500; font-family: var(--cn), serif; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.en { font-family: var(--en), serif; letter-spacing: 0.06em; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; background: var(--forest); color: var(--bg); }
.skip:focus { left: 8px; }

/* ───────── 頁首（米白，捲動後加細線） ───────── */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(247, 241, 230, 0.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color 0.5s var(--ease), background-color 0.5s var(--ease); }
.site-header.is-solid { background: rgba(247, 241, 230, 0.95); border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 66px; }
.logo { display: grid; line-height: 1.15; }
.logo__cn { font-family: var(--cn), serif; font-weight: 500; font-size: 22px; letter-spacing: 0.24em; color: var(--forest); }
.logo__en { font-family: var(--cn), serif; font-size: 10px; letter-spacing: 0.32em; color: var(--accent); text-transform: uppercase; }
.nav { margin-left: auto; display: flex; gap: 26px; font-family: var(--cn), serif; font-size: 15px; letter-spacing: 0.12em; }
.nav a { position: relative; color: var(--ink-2); padding-block: 6px; transition: color 0.3s ease; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink-1); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-cta { padding: 8px 18px !important; min-height: 0 !important; font-size: 14px !important; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--forest); cursor: pointer; }
.menu-toggle span { display: block; width: 20px; height: 1.5px; margin: 5px auto; background: currentColor; transition: transform 0.35s var(--ease), opacity 0.2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .header-cta { display: none !important; }
  /* 頁首有毛玻璃效果（backdrop-filter），選單的 fixed 會以頁首為範圍；要明確給高度，不然選單會被壓成 0、背景透明 */
  .nav { position: fixed; top: 66px; left: 0; right: 0; height: calc(100vh - 66px); height: calc(100dvh - 66px); overflow-y: auto; z-index: 49; flex-direction: column; gap: 0; padding: 24px var(--gutter); background: var(--bg); font-size: 22px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0s linear 0.35s; }
  .nav a { padding-block: 18px; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
}

/* ───────── 共用元件 ───────── */
.kicker { font-family: var(--cn), serif; font-size: 12px; letter-spacing: 0.5em; text-transform: uppercase; color: var(--accent); }
.title { margin-top: 12px; font-size: clamp(26px, 4vw, 38px); line-height: 1.4; letter-spacing: 0.12em; color: var(--ink-1); }
.lead { margin-top: 14px; max-width: 34em; color: var(--ink-3); }
.head { margin-bottom: clamp(30px, 5vw, 48px); }
.head--center { text-align: center; }
.head--center .lead { margin-inline: auto; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 26px; border: 1px solid var(--forest); border-radius: 999px; color: var(--bg); background: var(--forest); font-size: 15px; letter-spacing: 0.14em; transition: background-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.2s; }
.btn:hover { background: #3D4435; }
.btn:active { transform: scale(0.97); }
.btn--ghost { background: transparent; color: var(--forest); border-color: var(--line); }
.btn--ghost:hover { background: var(--bg-panel); border-color: var(--forest); }
.btn .arrow, .link-more .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow, .link-more:hover .arrow, a:hover .link-more .arrow { transform: translateX(4px); }
.btn--pay { background: var(--forest); border-color: var(--forest); color: var(--bg); }
.buy { display: grid; gap: 10px; justify-items: start; }
.pay-hint { font-family: var(--round), sans-serif; font-size: 13px; color: var(--ink-3); }
.product__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 8px; }
.product__actions .btn { padding: 8px 16px; font-size: 13px; }
.link-more { display: inline-flex; gap: 10px; color: var(--accent); font-family: var(--round), sans-serif; font-size: 15px; letter-spacing: 0.08em; }
.section { padding-block: clamp(64px, 9vw, 110px); }
.section--alt { background: var(--bg-moss); }
.prose { display: grid; gap: 14px; color: var(--ink-2); }
.actions-row { display: flex; flex-wrap: wrap; gap: 14px; }
.page-hero--compact { min-height: 0; padding-top: 112px; padding-bottom: 28px; }
.notice { padding: 14px 18px; border-radius: 18px 18px 18px 6px; background: var(--bg-moss); color: var(--ink-1); font-family: var(--round), sans-serif; }

/* ───────── 頁面主視覺：照片慢慢推近，下緣融進米白，標題在照片下方 ───────── */
.page-hero { position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: end; min-height: min(64svh, 580px); padding: 120px 0 clamp(36px, 6vw, 64px); }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; animation: hero-zoom 16s ease-out both; }
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(247, 241, 230, 0) 30%, rgba(247, 241, 230, 0.82) 72%, var(--bg) 96%); }
.page-hero::after { content: ""; position: absolute; inset: -20% -40%; z-index: -1; background: linear-gradient(115deg, rgba(255, 244, 214, 0) 35%, rgba(255, 244, 214, 0.45) 45%, rgba(255, 244, 214, 0) 55%); animation: hero-light 9s ease-in-out infinite; mix-blend-mode: soft-light; pointer-events: none; }
@keyframes hero-light { 0%, 100% { transform: translateX(-12%); } 50% { transform: translateX(12%); } }
.page-hero .kicker::before { content: ""; display: inline-block; width: 28px; height: 1px; margin-right: 12px; vertical-align: middle; background: var(--accent); }
.page-hero__title { margin-top: 12px; font-size: clamp(36px, 7vw, 64px); line-height: 1.25; letter-spacing: 0.16em; color: var(--ink-1); }
.page-hero__lead { margin-top: 12px; max-width: 30em; font-family: var(--cn), serif; font-size: clamp(16px, 2vw, 19px); color: var(--ink-2); }
.page-hero--home { min-height: min(86svh, 760px); }
.page-hero--home .page-hero__title { font-size: clamp(48px, 11vw, 96px); letter-spacing: 0.24em; }
.page-hero--home .page-hero__bg { object-position: 50% 30%; }

/* ───────── 區塊：文字、引言 ───────── */
/* 短行文案不能擠在窄欄裡（會在奇怪的地方斷行）：一段一列，電腦版標題在左、文字在右 */
.prose-blocks { display: grid; gap: 0; margin-top: 40px; border-top: 1px solid var(--line); }
.prose-block { display: grid; gap: 10px 48px; padding: 26px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) { .prose-block { grid-template-columns: 220px 1fr; align-items: start; } }
.prose-block h3 { font-size: 20px; letter-spacing: 0.1em; color: var(--ink-1); }
.prose-block p { font-size: 16px; color: var(--ink-2); }
.quote-band { padding-block: clamp(64px, 9vw, 100px); text-align: center; background: var(--bg-moss); }
.quote-band blockquote { margin: 0; font-family: var(--cn), serif; font-size: clamp(22px, 3.6vw, 34px); line-height: 1.7; letter-spacing: 0.12em; color: var(--ink-1); }
.quote-mark { color: var(--accent); }
.quote-band cite { display: block; margin-top: 12px; font-size: 14px; font-style: normal; letter-spacing: 0.2em; color: var(--ink-3); }

/* ───────── 區塊：服務（細線分隔的列，不用框） ───────── */
.service-list { display: grid; border-top: 1px solid var(--line); }
.service-card { display: grid; gap: 18px 48px; padding: clamp(26px, 4vw, 40px) 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .service-card { grid-template-columns: 1fr 280px; align-items: center; } }
.service__en { font-size: 11px; letter-spacing: 0.3em; color: var(--accent); }
.service-card h3 { font-size: clamp(22px, 3vw, 28px); letter-spacing: 0.12em; color: var(--ink-1); }
.service-card__main { display: grid; gap: 8px; }
.service-card__main p:not(.service__en) { color: var(--ink-2); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; padding: 0; list-style: none; }
.tags li { padding: 2px 12px; border-radius: 999px; background: var(--bg-moss); font-family: var(--round), sans-serif; font-size: 13px; color: var(--ink-2); }
.service-card__side { display: grid; gap: 10px; justify-items: start; }
@media (min-width: 900px) { .service-card__side { padding-left: 32px; border-left: 1px solid var(--line); } }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; color: var(--ink-1); font-family: var(--cn), serif; }
.price b { font-weight: 500; font-size: 24px; }
.price s { color: var(--ink-3); font-size: 15px; }
.price__sale b { font-size: 24px; }
.price__label { font-size: 14px; color: var(--ink-3); }
.service__note { font-family: var(--round), sans-serif; font-size: 14px; color: var(--ink-3); }

/* ───────── 區塊：商品、系列 ───────── */
.products { display: grid; gap: 32px 20px; grid-template-columns: repeat(2, 1fr); }
/* 一列一件（電腦版兩件），照片在左、說明在右，說明的換行才不會被擠亂 */
@media (min-width: 600px) {
  .products { grid-template-columns: 1fr; gap: 0 48px; border-top: 1px solid var(--line); }
  .product { grid-template-columns: 150px 1fr; gap: 24px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--line); }
}
@media (min-width: 1040px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px) {
  .products { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line); }
  .product { grid-template-columns: 104px 1fr; gap: 16px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .product__photo { border-radius: 14px; }
  .mock__name { font-size: 13px; letter-spacing: 0.06em; }
  .mock__tag { display: none; }
}
.product { display: grid; gap: 12px; align-content: start; }
.product__photo { aspect-ratio: 1; overflow: hidden; border-radius: 16px; background: var(--bg-moss); }
.product__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.product:hover .product__photo img { transform: scale(1.04); }
.product__photo--mock { position: relative; display: grid; place-items: center; padding: 16px; text-align: center; background: radial-gradient(ellipse 80% 70% at 50% 35%, #F7F1E6, #EFE5D0); box-shadow: inset 0 0 0 1px var(--line); }
.mock__name { font-family: var(--cn), serif; font-size: clamp(16px, 2.2vw, 20px); line-height: 1.5; letter-spacing: 0.12em; color: var(--moss); text-wrap: balance; }
.mock__tag { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); font-family: var(--round), sans-serif; font-size: 11px; letter-spacing: 0.2em; color: var(--ink-3); }
.product__info { display: grid; gap: 4px; }
.product h3 { font-size: 18px; letter-spacing: 0.08em; color: var(--ink-1); }
.product__price { font-family: var(--cn), serif; color: var(--ink-1); }
.product__desc { font-size: 14px; color: var(--ink-3); }
.product .link-more { margin-top: 4px; }
.collections { display: grid; gap: 20px; }
@media (min-width: 900px) { .collections { grid-template-columns: repeat(3, 1fr); } }
.collection { padding: 26px; border-radius: 20px; background: var(--bg-panel); }
.collection__en { font-size: 11px; letter-spacing: 0.24em; color: var(--accent); }
.collection h3 { margin-top: 6px; font-size: 21px; letter-spacing: 0.12em; color: var(--ink-1); }
.collection p:last-child { margin-top: 8px; font-size: 15px; color: var(--ink-3); }

/* ───────── 客人回饋卡片 ───────── */
.reviews { display: grid; gap: 18px; }
@media (min-width: 1000px) { .reviews { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
.review { display: grid; gap: 10px; align-content: start; padding: 22px 22px 20px; border-radius: 22px 22px 22px 6px; background: #FBF8F1; box-shadow: 0 0 0 1px var(--line), 0 16px 32px -26px rgba(29, 38, 24, 0.4); }
.review__head { display: flex; align-items: center; gap: 12px; }
.review__mark { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--forest); color: #F3EAD8; font-family: var(--cn), serif; font-size: 22px; line-height: 1; padding-top: 6px; }
.review--note .review__mark { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); font-size: 16px; padding-top: 0; }
.review__who { font-family: var(--round), sans-serif; font-size: 14px; color: var(--ink-3); }
.review__hi { font-family: var(--cn), serif; font-size: 18px; line-height: 1.6; color: var(--ink-1); }
.review__hi::before { content: ""; display: block; width: 24px; height: 1px; margin-bottom: 10px; background: var(--accent); }
.review__text { font-size: 15px; line-height: 1.9; color: var(--ink-2); }
.review .tags { margin-top: 2px; }

/* ───────── 首頁：分頁入口 ───────── */
.entries { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .entries { grid-template-columns: repeat(5, 1fr); gap: 22px; } }
/* 手機：第一張（歸根排盤）橫的放大，其他兩兩一排 */
@media (max-width: 899px) { .entry:first-child { grid-column: 1 / -1; } .entry:first-child .entry__photo { aspect-ratio: 16 / 9; } }
.entry { display: grid; gap: 10px; align-content: start; }
.entry__photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 18px 18px 18px 6px; background: var(--bg-moss); }
.entry__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.entry:hover .entry__photo img { transform: scale(1.05); }
.entry h3 { font-size: 19px; letter-spacing: 0.12em; color: var(--ink-1); }
.entry p { font-size: 14px; line-height: 1.7; color: var(--ink-3); }
.entry .link-more { font-size: 14px; }

/* ───────── 首頁：LINE ───────── */
.contact { display: grid; gap: 28px; align-items: center; justify-items: center; text-align: center; }
@media (min-width: 760px) { .contact { grid-template-columns: 1fr auto; justify-items: start; text-align: left; } }
.contact .qr { width: 168px; padding: 12px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px var(--line); }

/* ───────── 區塊：重點介紹（祈福） ───────── */
.feature { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .feature--media { grid-template-columns: 5fr 6fr; } }
.feature__photo { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 22px 22px 22px 6px; }
.feature__photo img { width: 100%; height: 100%; object-fit: cover; }
.feature__body { display: grid; gap: 20px; justify-items: start; max-width: 40em; }
.feature__body .head { margin-bottom: 0; }
.facts { display: grid; gap: 0; width: 100%; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts span { flex: none; color: var(--ink-3); }
.facts b { font-weight: 400; font-family: var(--cn), serif; color: var(--ink-1); text-align: right; }

/* ───────── 區塊：流程、問答 ───────── */
.steps { display: grid; gap: 0; max-width: 760px; padding: 0; list-style: none; counter-reset: step; border-top: 1px solid var(--line); }
.step { position: relative; display: grid; gap: 6px 40px; padding: 22px 0 22px 52px; border-bottom: 1px solid var(--line); counter-increment: step; }
@media (min-width: 760px) { .step { grid-template-columns: 220px 1fr; align-items: start; } }
.step::before { content: counter(step, cjk-ideographic); position: absolute; left: 0; top: 18px; font-family: var(--cn), serif; font-size: 26px; line-height: 1; color: var(--accent); }
.step h3 { font-size: 17px; line-height: 1.6; letter-spacing: 0.06em; color: var(--ink-1); }
.step p { font-size: 15px; color: var(--ink-2); }
.faqs { display: grid; border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative; font-family: var(--cn), serif; color: var(--ink-1); letter-spacing: 0.06em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); color: var(--accent); font-size: 22px; transition: transform 0.3s var(--ease); }
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { padding: 0 0 20px; color: var(--ink-2); }

/* ───────── 區塊：創辦人、信念、足跡 ───────── */
.founder { display: grid; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (min-width: 900px) { .founder { grid-template-columns: 4fr 7fr; } }
.founder__photo { aspect-ratio: 3 / 4; overflow: hidden; border-radius: 22px 22px 22px 6px; background: var(--bg-moss); }
.founder__photo img { width: 100%; height: 100%; object-fit: cover; }
.founder__photo--empty { display: grid; place-items: center; }
.founder__photo--empty span { font-size: 14px; letter-spacing: 0.2em; color: var(--ink-3); }
.founder__body .prose { margin-top: 18px; }
.founder__facts { display: grid; gap: 8px; margin-top: 22px; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--line); }
.founder__facts li { padding-left: 22px; position: relative; color: var(--ink-1); }
.founder__facts li::before { content: ""; position: absolute; left: 0; top: 0.9em; width: 10px; height: 1px; background: var(--accent); }
.pillars { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.pillar { padding: 24px; border-radius: 20px; background: var(--bg-panel); }
.pillar__en { font-size: 11px; letter-spacing: 0.24em; color: var(--accent); }
.pillar h3 { margin-top: 6px; font-size: 20px; letter-spacing: 0.12em; color: var(--ink-1); }
.pillar p:last-child { margin-top: 8px; color: var(--ink-2); }
.timeline { display: grid; gap: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); margin-left: 8px; }
.timeline li { position: relative; display: grid; gap: 6px; padding: 0 0 34px 30px; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 0.7em; width: 9px; height: 9px; border-radius: 50%; background: var(--bg); border: 1px solid var(--accent); }
.timeline__year { font-size: 14px; color: var(--accent); }
.timeline h3 { font-size: 20px; letter-spacing: 0.08em; color: var(--ink-1); }
.timeline p { color: var(--ink-3); }

/* ───────── 行動呼籲 ───────── */
.cta-band { padding-block: clamp(72px, 10vw, 120px); text-align: center; background: var(--bg-moss); }
.cta-band .head { margin-bottom: 28px; }

/* ───────── 歸根誌（目前縮編中） ───────── */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.chip { appearance: none; cursor: pointer; padding: 6px 18px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink-2); font: inherit; font-size: 14px; transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease; }
.chip:hover { border-color: var(--forest); }
.chip[aria-pressed="true"] { border-color: var(--forest); background: var(--forest); color: var(--bg); }
.post-grid { display: grid; gap: 40px 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.post-card { display: grid; gap: 14px; align-content: start; }
.post-card__photo { aspect-ratio: 3 / 2; overflow: hidden; border-radius: 16px; background: var(--bg-moss); }
.post-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.post-card:hover .post-card__photo img { transform: scale(1.04); }
.post-card__meta { display: flex; gap: 14px; font-size: 13px; color: var(--accent); }
.post-card__meta time { color: var(--ink-3); }
.post-card h2 { margin-top: 6px; font-size: 21px; line-height: 1.6; letter-spacing: 0.06em; color: var(--ink-1); }
.post-card__body > p:not(.post-card__meta) { margin-top: 8px; font-size: 15px; color: var(--ink-3); }
.post-card .link-more { margin-top: 10px; }
.article { padding-top: 110px; }
.article__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; color: var(--ink-3); }
.article__meta a { color: var(--accent); }
.article__head h1 { margin-top: 14px; font-size: clamp(28px, 5vw, 42px); line-height: 1.45; letter-spacing: 0.08em; color: var(--ink-1); }
.article__cover { margin-top: 30px; }
.article__cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; }
.article__body { margin-top: 36px; }
.article__foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 44px; padding-block: 30px 80px; border-top: 1px solid var(--line); }
.more-posts { display: grid; gap: 0; border-top: 1px solid var(--line); }
.more-post { display: grid; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ink-1); }
.more-post span { font-size: 13px; color: var(--accent); }

/* ───────── 條款 ───────── */
.legal { padding: 120px 0 100px; }
.legal__grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .legal__grid { grid-template-columns: 240px 1fr; gap: 72px; } }
.legal__toc { align-self: start; }
@media (min-width: 1000px) { .legal__toc { position: sticky; top: 100px; } }
.legal__toc ol { margin-top: 12px; padding: 0; list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.legal__toc a { display: block; padding: 6px 0 6px 16px; font-size: 14px; color: var(--ink-3); transition: color 0.25s ease; }
.legal__toc a:hover { color: var(--ink-1); }
@media (max-width: 999px) { .legal__toc { padding: 18px 20px; border-radius: 18px; background: var(--bg-panel); } }
.legal__main { max-width: 760px; }
.legal__title { margin-top: 12px; font-size: clamp(30px, 5vw, 44px); letter-spacing: 0.14em; color: var(--ink-1); }
.legal__updated { margin-top: 10px; font-size: 14px; color: var(--ink-3); }
.draft-badge { display: inline-block; margin-bottom: 24px; padding: 6px 14px; font-size: 13px; color: var(--bg); background: var(--accent); }
.legal-body { margin-top: 34px; display: grid; gap: 14px; color: var(--ink-2); }
.legal-body h2 { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 22px; letter-spacing: 0.1em; color: var(--ink-1); }
.legal-body h3 { margin-top: 10px; font-size: 18px; letter-spacing: 0.06em; color: var(--ink-1); }
.legal-body ul { display: grid; gap: 8px; padding-left: 1.3em; }
.legal-body li::marker { color: var(--accent); }
.legal-body ul ul { margin-top: 8px; }
.legal-body strong { font-weight: 500; color: var(--ink-1); background: linear-gradient(transparent 70%, rgba(201, 170, 110, 0.45) 70%); }
.legal-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
mark.todo { padding: 1px 6px; color: var(--forest-dark); background: #E8D4A5; }

/* ───────── 頁尾（和紙色，經營者不要深色） ───────── */
.site-footer { padding: 56px 0 110px; background: var(--bg-moss); border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.site-footer .wrap { display: grid; gap: 28px; }
@media (min-width: 900px) { .site-footer .wrap { grid-template-columns: auto 1fr; align-items: start; } }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; font-family: var(--cn), serif; color: var(--ink-2); }
@media (min-width: 900px) { .footer-nav { justify-content: flex-end; } }
.footer-nav a:hover, .footer-legal a:hover { color: var(--ink-1); }
.footer-legal { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; }
@media (max-width: 1320px) { .footer-legal { padding-right: 76px; } }  /* 讓開右下角 LINE／IG 浮動按鈕 */
.footer-legal nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ───────── 右下角 LINE／IG ───────── */
.float-contact { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: grid; gap: 12px; }
@media (min-width: 768px) { .float-contact { right: 24px; bottom: 24px; } }
.bubble { position: relative; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; box-shadow: 0 8px 20px rgba(29, 38, 24, 0.22); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.bubble:hover, .bubble:focus-visible { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(29, 38, 24, 0.3); }
.bubble--line { background: #06c755; }
.bubble--line img { width: 100%; height: 100%; border-radius: 50%; }
.bubble--ig { color: #fff; background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.bubble--ig svg { width: 26px; height: 26px; }
/* 背景音樂（2026-10-20，js/music.js）：按了才播；播放中按鈕的音符會輕輕晃 */
.bubble--music { border: 0; padding: 0; background: var(--bg-panel); color: var(--forest); cursor: pointer; box-shadow: 0 0 0 1px var(--line), 0 8px 20px rgba(29, 38, 24, 0.18); }
.bubble--music svg { width: 24px; height: 24px; }
.bubble--music[aria-pressed="true"] { background: var(--forest); color: var(--bg); }
.bubble--music[aria-pressed="true"] svg { animation: yc-note 2.4s ease-in-out infinite; }
@keyframes yc-note { 50% { transform: translateY(-2px) rotate(-6deg); } }
@media (prefers-reduced-motion: reduce) { .bubble--music svg { animation: none !important; } }
.bubble__tip { position: absolute; right: calc(100% + 12px); top: 50%; padding: 4px 12px; white-space: nowrap; border-radius: 999px; font-family: var(--round), sans-serif; font-size: 13px; color: #F3EAD8; background: var(--forest); opacity: 0; transform: translate(6px, -50%); pointer-events: none; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
@media (hover: hover) { .bubble:hover .bubble__tip, .bubble:focus-visible .bubble__tip { opacity: 1; transform: translate(0, -50%); } }

/* ───────── 購物車（js/cart.js） ───────── */
.btn--cart { padding: 10px 20px; font-size: 14px; }
.btn--cart.is-added { background: var(--moss); border-color: var(--moss); }
.variant-picker { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.variant-picker label { position: relative; cursor: pointer; }
.variant-picker input { position: absolute; opacity: 0; inset: 0; }
.variant-picker span { display: inline-flex; gap: 8px; align-items: baseline; padding: 5px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--ink-2); background: #FBF8F1; transition: background-color .2s, color .2s, border-color .2s; }
.variant-picker b { font-weight: 500; font-size: 14px; }
.variant-picker input:checked + span { border-color: var(--forest); box-shadow: inset 0 0 0 1px var(--forest); color: var(--ink-1); background: #FBF8F1; }
.variant-picker input:checked + span::before { content: "✓"; font-size: 12px; color: var(--accent); }
.variant-picker label:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 999px; }
.cart-pill { position: fixed; left: 16px; bottom: 16px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px 10px 14px; border: 0; border-radius: 999px; background: var(--forest); color: var(--bg); font: inherit; font-size: 15px; cursor: pointer; box-shadow: 0 12px 26px -10px rgba(29, 38, 24, .55); }
@media (min-width: 768px) { .cart-pill { left: 24px; bottom: 24px; } }
.cart-pill[hidden] { display: none; }
.cart-pill svg { width: 22px; height: 22px; }
.cart-pill__n { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #F3EAD8; color: var(--forest); font-size: 13px; }
.cart-pill.bump { animation: cart-bump .45s ease; }
@keyframes cart-bump { 40% { transform: scale(1.1); } }
.cart-shade { position: fixed; inset: 0; z-index: 70; background: rgba(29, 38, 24, .35); opacity: 0; transition: opacity .35s; }
.cart-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 71; display: flex; flex-direction: column; width: min(420px, 100%); background: var(--bg); box-shadow: -20px 0 40px -20px rgba(29, 38, 24, .4); transform: translateX(100%); transition: transform .35s var(--ease); }
.cart-open .cart-shade { opacity: 1; }
.cart-open .cart-drawer { transform: none; }
.cart-drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cart-drawer__head h2 { font-size: 20px; letter-spacing: .12em; color: var(--ink-1); }
.cart-x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; font-size: 26px; line-height: 1; color: var(--ink-2); cursor: pointer; }
.cart-list { flex: 1; overflow-y: auto; padding: 6px 20px; }
.cart-empty { padding: 30px 0; text-align: center; color: var(--ink-3); }
.cart-item { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item b { display: block; font-family: var(--cn), serif; font-weight: 500; color: var(--ink-1); }
.cart-item span { font-size: 13px; color: var(--ink-3); }
.cart-item strong { grid-column: 2; text-align: right; font-family: var(--cn), serif; font-weight: 500; color: var(--ink-1); }
.cart-qty { grid-row: 1 / span 2; grid-column: 2; display: flex; align-items: center; gap: 8px; }
.cart-item strong { grid-row: 2; }
.cart-qty { grid-row: 1; }
.cart-qty button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--ink-1); font-size: 16px; line-height: 1; cursor: pointer; }
.cart-qty output { min-width: 16px; text-align: center; color: var(--ink-1); }
.cart-foot { display: grid; gap: 12px; padding: 16px 20px 20px; border-top: 1px solid var(--line); background: var(--bg-moss); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--cn), serif; color: var(--ink-1); }
.cart-total strong { font-weight: 500; font-size: 24px; }
.cart-field { display: grid; gap: 2px; font-family: var(--round), sans-serif; font-size: 14px; color: var(--ink-1); }
.cart-field input { width: 100%; padding: 7px 2px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink-1); }
.cart-field input:focus { outline: none; border-bottom-color: var(--forest); }
.cart-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cart-note { margin: 0; font-family: var(--round), sans-serif; font-size: 13px; line-height: 1.7; color: var(--ink-3); white-space: normal; }
.cart-go { justify-content: center; width: 100%; }
.cart-go:disabled { opacity: .35; cursor: not-allowed; }
.cart-toast { margin: 0; min-height: 1.2em; font-size: 14px; color: var(--ink-1); }

/* 兩步結帳視窗（2026-10-19：先傳 LINE，再到 SHOPLINE 一鍵收付款） */
.pay-modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(29, 38, 24, .4); }
.pay-modal[hidden] { display: none; }
.pay-box { position: relative; width: min(420px, 100%); max-height: 100%; overflow-y: auto; padding: 30px 24px 22px; border-radius: 24px; background: var(--bg); box-shadow: 0 30px 60px -30px rgba(29, 38, 24, .6); text-align: center; }
.pay-x { position: absolute; top: 10px; right: 10px; }
.pay-box h2 { font-size: 22px; letter-spacing: .14em; color: var(--ink-1); }
.pay-sum { margin: 6px 0 18px; font-family: var(--round), sans-serif; color: var(--ink-2); }
.pay-sum strong { font-family: var(--cn), serif; font-weight: 500; font-size: 26px; color: var(--ink-1); }
.pay-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; counter-reset: pay; }
.pay-steps li { display: grid; gap: 6px; justify-items: center; padding: 18px 16px; border-radius: 18px; background: var(--bg-panel); box-shadow: 0 0 0 1px var(--line); counter-increment: pay; transition: opacity .3s; }
.pay-steps li::before { content: counter(pay); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--forest); color: var(--bg); font-size: 14px; }
.pay-steps .pay-two:not(.on) { opacity: .55; }
.pay-steps b { font-family: var(--cn), serif; font-weight: 500; font-size: 17px; color: var(--ink-1); }
.pay-steps span { font-family: var(--round), sans-serif; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.pay-steps em { font-style: normal; font-weight: 600; color: var(--ink-1); }
.pay-steps .btn { justify-content: center; width: 100%; margin-top: 6px; }
.pay-steps .btn:disabled { opacity: .4; cursor: not-allowed; }
.pay-toast { margin-top: 12px; }

/* ───────── 捲動浮現（js/site.js 加上 .rv-on 才啟用） ───────── */
.rv-on .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.rv-on .reveal.in { opacity: 1; transform: none; }

/* ───────── 服務卡片（2026-10-19 經營者不要長說明）：線條圖＋名稱＋一句話＋價格＋按鈕 ───────── */
.service-list { grid-template-columns: 1fr; gap: 18px; border-top: 0; }
@media (min-width: 900px) { .service-list { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.service-card { grid-template-columns: 1fr !important; justify-items: center; align-content: start; gap: 10px; padding: 30px 22px 26px; border: 0; border-radius: 24px; background: var(--bg-panel); box-shadow: 0 0 0 1px var(--line); text-align: center; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.service-card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--accent-dim), 0 22px 40px -28px rgba(44, 59, 39, .45); }
.service-card__main { justify-items: center; }
.service-card__side { justify-items: center; padding: 6px 0 0 !important; border: 0 !important; }
.service-card .price { justify-content: center; }
.ic { display: block; width: 46px; height: 46px; margin-bottom: 4px; color: var(--moss); }
.ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
/* 卡片捲到時，線條圖一筆一筆畫出來 */
.rv-on .reveal .ic svg * { stroke-dasharray: 1; stroke-dashoffset: 1; }
.rv-on .reveal.in .ic svg * { animation: ic-draw 1.4s var(--ease) .2s forwards; }
@keyframes ic-draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } .rv-on .reveal { opacity: 1; transform: none; } .rv-on .reveal .ic svg * { stroke-dashoffset: 0; } }
