/* 小店官網 15 個版型共用的底（站長 2026-10-23）。
   各版型的 CSS（static/tpl/版型.css）只要改下面這組變數，再補自己的招牌樣式。
   不用外部字型（CSP 只允許本站），字一律用手機、電腦內建的字。 */
:root {
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, -apple-system, sans-serif;
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", "MingLiU", Georgia, "Times New Roman", serif;
  --bg: #fff; --bg2: #f6f6f4; --fg: #1d1d1f; --muted: #6b6b70; --line: #e4e4e0;
  --accent: #1d1d1f; --on-accent: #fff; --card: #fff;
  --radius: 0px; --radius-btn: 0px; --shadow: none;
  --font-head: var(--sans); --font-body: var(--sans); --head-weight: 700;
  --h1: clamp(2rem, 6vw, 3.6rem); --h2: clamp(1.4rem, 3.4vw, 2rem);
  --wrap: 1080px; --sec-pad: clamp(56px, 9vw, 104px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 16px/1.75 var(--font-body); letter-spacing: .02em; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { text-wrap: balance; word-break: keep-all; overflow-wrap: anywhere; font-family: var(--font-head); font-weight: var(--head-weight); line-height: 1.3; margin: 0; letter-spacing: .03em; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

/* 示範橫幅：一定要在最上面 */
.demo-flag { position: relative; z-index: 60; background: #111; color: #eee; font: 13px/1.5 var(--sans); padding: 8px 16px; text-align: center; }
.demo-flag b { color: #ffd166; }
.demo-flag a { color: #9ad7ff; margin-left: .6em; }

/* 上方 */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.2; }
.brand b { font: var(--head-weight) 1.15rem/1.2 var(--font-head); }
.brand small { font-size: .68rem; letter-spacing: .18em; color: var(--muted); }
.nav { display: flex; gap: 4px 18px; align-items: center; overflow-x: auto; scrollbar-width: none; font-size: .92rem; }
.nav::-webkit-scrollbar { display: none; }
.nav a { text-decoration: none; white-space: nowrap; color: var(--muted); }
.nav a:hover { color: var(--fg); }
.nav .nav-cta { color: var(--on-accent); background: var(--accent); padding: 6px 14px; border-radius: var(--radius-btn); }
@media (max-width: 640px) { .nav a:not(.nav-cta) { display: none; } }

/* 按鈕 */
.btn { display: inline-block; text-decoration: none; background: var(--accent); color: var(--on-accent); padding: 12px 26px; border-radius: var(--radius-btn);
  font-weight: 700; border: 2px solid var(--accent); transition: transform .2s, filter .2s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn-2 { background: transparent; color: var(--accent); }
.btn-sm { padding: 6px 14px; font-size: .9rem; }
.hero-act, .sec-act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-act:empty, .sec-act:empty { display: none; }

/* 封面（低階共用的幾種擺法） */
.hero { position: relative; }
.hero-en { font-size: .78rem; letter-spacing: .28em; color: var(--muted); margin-bottom: 12px; text-transform: uppercase; }
.hero h1 { font-size: var(--h1); }
.hero-lede { margin-top: 18px; font-size: 1.08rem; color: var(--muted); max-width: 34em; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-txt { padding-block: clamp(48px, 9vw, 110px); }
/* side：文字左、照片右 */
.hero-side { display: grid; }
.hero-side .hero-img { aspect-ratio: 4 / 3; overflow: hidden; }
@media (min-width: 860px) {
  .hero-side { grid-template-columns: 1fr 1fr; align-items: stretch; min-height: 560px; }
  .hero-side .hero-img { order: 2; aspect-ratio: auto; }
  .hero-side .hero-txt { display: flex; align-items: center; }
  .hero-side .hero-txt .wrap { width: auto; margin: 0 clamp(24px, 6vw, 80px) 0 max(20px, calc((100vw - var(--wrap)) / 2)); }
}
/* below：文字在上、照片在下 */
.hero-below { text-align: center; }
.hero-below .hero-img { order: 2; }
.hero-below { display: flex; flex-direction: column; }
.hero-below .hero-img { width: min(var(--wrap), 100% - 40px); margin: 0 auto; aspect-ratio: 16 / 7; overflow: hidden; border-radius: var(--radius); }
.hero-below .hero-lede { margin-inline: auto; }
.hero-below .hero-act { justify-content: center; }
.hero-below .hero-txt { padding-bottom: 40px; }
/* cover：照片鋪底、文字壓在上面 */
.hero-cover { min-height: min(78vh, 680px); display: grid; align-items: end; color: #fff; }
.hero-cover .hero-img { position: absolute; inset: 0; }
.hero-cover .hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.72)); }
.hero-cover .hero-txt { position: relative; }
.hero-cover .hero-en, .hero-cover .hero-lede { color: rgba(255,255,255,.85); }
/* card：照片上壓一張卡片 */
.hero-card { padding: clamp(16px, 4vw, 40px); }
.hero-card .hero-img { aspect-ratio: 16 / 8; overflow: hidden; border-radius: var(--radius); }
.hero-card .hero-txt { position: relative; margin: -90px auto 0; width: min(760px, 100% - 24px); background: var(--card); border-radius: var(--radius); padding: clamp(28px, 5vw, 52px) 0; box-shadow: var(--shadow); text-align: center; }
.hero-card .hero-txt .wrap { width: calc(100% - 48px); }
.hero-card .hero-lede { margin-inline: auto; }
.hero-card .hero-act { justify-content: center; }
.hero:not(:has(.hero-img)).hero-card .hero-txt { margin-top: 0; }
/* circle：圓形照片 */
.hero-circle { display: grid; justify-items: center; text-align: center; padding-top: clamp(40px, 7vw, 80px); }
.hero-circle .hero-img { width: clamp(200px, 40vw, 340px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; }
.hero-circle .hero-txt { padding-top: 32px; }
.hero-circle .hero-lede { margin-inline: auto; }
.hero-circle .hero-act { justify-content: center; }
/* block：一大塊顏色＋照片 */
.hero-block { display: grid; }
.hero-block .hero-img { aspect-ratio: 4 / 3; overflow: hidden; }
@media (min-width: 860px) { .hero-block { grid-template-columns: 1.1fr .9fr; min-height: 560px; } .hero-block .hero-img { aspect-ratio: auto; order: 2; } .hero-block .hero-txt { display: flex; align-items: center; } }
/* framed：照片加框 */
.hero-framed { display: grid; gap: 0; text-align: center; }
.hero-framed .hero-img { order: 2; width: min(860px, 100% - 40px); margin: 0 auto clamp(40px, 6vw, 72px); aspect-ratio: 16 / 9; overflow: hidden; }
.hero-framed .hero-lede { margin-inline: auto; }
.hero-framed .hero-act { justify-content: center; }

/* 公告 */
.notice { background: var(--accent); color: var(--on-accent); font-size: .95rem; }
.notice .wrap { display: flex; gap: 14px; padding-block: 12px; align-items: baseline; }
.notice b { white-space: nowrap; }

/* 區塊 */
.sec { padding-block: var(--sec-pad); }
.sec-h { font-size: var(--h2); margin-bottom: clamp(24px, 4vw, 40px); }
.sec-note { margin-top: 18px; font-size: .9rem; color: var(--muted); }
.grp + .grp { margin-top: 40px; }
.grp-h { font-size: 1.05rem; margin-bottom: 14px; color: var(--accent); letter-spacing: .1em; }

/* 價目：table */
.price-tb { width: 100%; border-collapse: collapse; }
.price-tb th, .price-tb td { padding: 16px 4px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.price-tb th { font-weight: 600; }
.price-tb th small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; margin-top: 2px; }
.price-tb td { text-align: right; white-space: nowrap; font-weight: 700; }
/* 價目：menu（點點連到價格） */
.menu { list-style: none; margin: 0; padding: 0; max-width: 720px; }
.menu li { display: flex; align-items: baseline; gap: 10px; padding: 10px 0; }
.menu .mn small { display: block; color: var(--muted); font-size: .85rem; }
.menu i { flex: 1; border-bottom: 1px dotted var(--muted); transform: translateY(-4px); min-width: 24px; }
.menu .price { white-space: nowrap; }
/* 價目：cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); }
.card h4 { font-size: 1.1rem; }
.card p { color: var(--muted); font-size: .92rem; flex: 1; }
.card .price { font-size: 1.15rem; color: var(--accent); }

/* 照片 */
.pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 14px; }
.pic { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--bg2); }
.pic img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .6s; }
.pic:hover img { transform: scale(1.04); }
.pic figcaption { padding: 10px 4px 2px; font-size: .9rem; }
.pic figcaption b { display: block; }
.pic figcaption span { color: var(--muted); font-size: .85rem; }
.photos-strip .pics { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding-bottom: 12px; }
.photos-strip .pic { flex: 0 0 min(78%, 380px); scroll-snap-align: start; }

/* 時段 */
.days { display: grid; gap: 10px; }
.day { display: grid; grid-template-columns: 4em 1fr; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.day span { display: flex; flex-wrap: wrap; gap: 8px; }
.day i { font-style: normal; padding: 3px 12px; border: 1px solid var(--line); border-radius: var(--radius-btn); font-size: .92rem; }

/* 人員 */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.person { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.person .ini { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 700 1.3rem var(--font-head); margin-bottom: 14px; }
.person h3 { font-size: 1.1rem; }
.person .role { color: var(--accent); font-size: .9rem; margin: 2px 0 8px; }
.person p { color: var(--muted); font-size: .93rem; }

/* 關於、聯絡 */
.about { max-width: 40em; font-size: 1.05rem; white-space: pre-line; }
.info { display: grid; gap: 12px; max-width: 40em; }
.info p { display: grid; grid-template-columns: 6em 1fr; gap: 12px; }
.info b { color: var(--muted); font-weight: 500; }

/* 頁尾 */
.foot { background: var(--bg2); border-top: 1px solid var(--line); padding-block: 44px; font-size: .92rem; color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot-name { font: var(--head-weight) 1.1rem var(--font-head); color: var(--fg); margin-bottom: 6px; }
.foot-side { display: grid; gap: 8px; justify-items: end; align-content: start; }
.made-by { font-size: .8rem; }
@media (max-width: 640px) { .foot-side { justify-items: start; } }

/* 進場的小動畫（低階也有一點點）：只在支援、而且使用者沒有關掉動態效果時 */
@media (prefers-reduced-motion: no-preference) {
  .hero-txt > *, .hero-txt .wrap > * { animation: rise .8s both; }
  .hero-txt .wrap > *:nth-child(2) { animation-delay: .08s; } .hero-txt .wrap > *:nth-child(3) { animation-delay: .16s; } .hero-txt .wrap > *:nth-child(4) { animation-delay: .24s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Google 地圖（站長 2026-10-23） */
.map { margin-top: 24px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; max-height: 420px; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 640px) { .map { aspect-ratio: 4 / 3; } }

/* 活動報名（站長 2026-10-27）：首頁列出近期活動，點了到報名頁 */
.ev-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ev-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; text-decoration: none; color: var(--fg);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.ev-card b { font-size: 1.08rem; }
.ev-when, .ev-state { font-size: .9rem; color: var(--muted); }
.ev-go { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--accent); }
.ev-card:hover { border-color: var(--accent); }
.ev-img { display: block; width: calc(100% + 40px); margin: -20px -20px 6px; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0; }

/* 站長 2026-11-05：營業中／休息中、客人評價、常見問題、每週營業時間（顏色跟著版型的變數走） */
.open-badge { font-size: .78rem; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; margin-right: auto; }
.open-badge::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 6px; vertical-align: 1px; }
.open-badge.open-open { color: #1a9c5a; border-color: currentColor; }
.open-badge.open-soon { color: #c98a10; border-color: currentColor; }
@media (max-width: 640px) { .open-badge { font-size: .72rem; padding: 2px 8px; } }
.rvs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 18px; }
.rv { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.rv-stars { color: #f0a500; letter-spacing: .1em; }
.rv-stars span { color: var(--line); }
.rv blockquote { margin: 0; flex: 1; line-height: 1.8; }
.rv figcaption { color: var(--muted); font-size: .9rem; }
.faqs { display: grid; gap: 10px; max-width: 820px; }
.faq { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 18px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style-position: outside; }
.faq p { padding: 0 0 16px; color: var(--muted); white-space: pre-line; }
.hrs { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.hrs i { font-style: normal; white-space: nowrap; }
/* 站長 2026-11-05：作品分類 */
.pgroups { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pgroups a { text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: .9rem; color: var(--fg); }
.pgroups a:hover { border-color: var(--accent); color: var(--accent); }
.pg-h { font-size: 1.05rem; margin: 26px 0 12px; scroll-margin-top: 80px; }
