/* =========================================================
   楓興宮主題 主要樣式
   配色：朱紅、金、墨黑／深木色、米白
   ========================================================= */

:root {
	--red: #A8201A;
	--red-dark: #7F1712;
	--red-soft: #F4E1DC;
	--gold: #C9A14A;
	--gold-light: #E8CD8A;
	--gold-dark: #8C6A24;
	--ink: #2B1D14;
	--ink-deep: #1E140D;
	--paper: #F8F3E8;
	--paper-2: #F0E6D2;
	--card: #FFFDF8;
	--text: #3A2E26;
	--muted: #6E5D50;
	--line: rgba(43, 29, 20, .14);

	--serif: 'Noto Serif TC', 'Songti TC', 'PMingLiU', serif;
	--sans: 'Noto Sans TC', 'Microsoft JhengHei', 'PingFang TC', sans-serif;

	--radius: 14px;
	--shadow: 0 1px 2px rgba(43, 29, 20, .06), 0 8px 24px rgba(43, 29, 20, .08);
	--shadow-lg: 0 2px 4px rgba(43, 29, 20, .08), 0 18px 40px rgba(43, 29, 20, .14);
	--gutter: clamp(16px, 4vw, 32px);
	--header-h: 84px;
}

/* ---------- 基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--sans);
	font-size: 18px;
	line-height: 1.8;
	letter-spacing: .02em;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 900; color: var(--ink); line-height: 1.35; margin: 0 0 .6em; letter-spacing: .04em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.icon { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.2em; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.container--mid { max-width: 1000px; }
.container--narrow { max-width: 840px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.lead { font-size: 1.2em; }
.hint { color: var(--muted); font-size: .9em; }
.empty { color: var(--muted); padding: 32px 0; text-align: center; }
.eyebrow { color: var(--gold-dark); font-weight: 700; letter-spacing: .3em; font-size: .85em; margin: 0 0 .4em; }
.anchor { position: absolute; top: calc(-1 * var(--header-h)); }

/* ---------- 按鈕 ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 52px; padding: .5em 1.4em;
	border-radius: 10px; border: 2px solid transparent;
	font-weight: 700; font-size: 1em; line-height: 1.3; letter-spacing: .08em;
	text-decoration: none; cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(168, 32, 26, .25); }
.btn--red:hover { background: var(--red-dark); color: #fff; }
.btn--gold { background: linear-gradient(180deg, var(--gold-light), var(--gold)); color: var(--ink); }
.btn--gold:hover { background: var(--gold-light); color: var(--ink); }
.btn--line { border-color: var(--red); color: var(--red); background: transparent; }
.btn--line:hover { background: var(--red); color: #fff; }
.btn--ghost-light { border-color: rgba(255, 255, 255, .7); color: #fff; background: rgba(255, 255, 255, .06); }
.btn--ghost-light:hover { background: #fff; color: var(--ink); }
.btn--lg { min-height: 60px; font-size: 1.1em; padding: .5em 1.8em; }
.btn--block { width: 100%; }

.tag { display: inline-block; padding: 2px 12px; border-radius: 999px; font-size: .8em; font-weight: 700; letter-spacing: .1em; background: var(--paper-2); color: var(--ink); text-decoration: none; }
.tag--ceremony { background: var(--red); color: #fff; }
.tag--activity { background: var(--gold); color: var(--ink); }
.tag--notice { background: var(--ink); color: #fff; }
.tag--today { background: var(--red); color: #fff; margin-left: .5em; vertical-align: middle; }
.tag--past { background: #ddd3c4; color: var(--muted); margin-left: .5em; vertical-align: middle; }
.pill { display: inline-block; border: 1px solid var(--gold); color: var(--gold-dark); border-radius: 999px; padding: 0 12px; margin: 0 6px 6px 0; font-size: .9em; background: #fff; }

/* ---------- 裝飾：回紋、祥雲、印章 ---------- */
.fret-band {
	height: 12px;
	background: url(../images/fret.svg) repeat-x center / auto 10px, var(--red);
	border-top: 1px solid var(--gold);
	border-bottom: 1px solid var(--red-dark);
}
.cloud { width: 72px; height: auto; color: var(--gold); flex: none; }
.cloud.is-right { transform: scaleX(-1); }

.seal {
	display: inline-flex; align-items: center; justify-content: center;
	width: 54px; height: 54px; flex: none;
	background: var(--red); color: #F6E3B4;
	font-family: var(--serif); font-weight: 900; font-size: 19px; line-height: 1.05;
	writing-mode: vertical-rl; letter-spacing: .05em;
	border-radius: 10px;
	box-shadow: inset 0 0 0 3px var(--red), inset 0 0 0 4.5px var(--gold-light), 0 3px 8px rgba(127, 23, 18, .3);
}

.deity-badge {
	display: grid; place-items: center;
	width: 88px; aspect-ratio: 1; border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #D2453A, var(--red) 55%, var(--red-dark));
	box-shadow: inset 0 0 0 4px var(--red-dark), inset 0 0 0 6px var(--gold), 0 6px 14px rgba(127, 23, 18, .25);
	color: var(--gold-light); font-family: var(--serif); font-weight: 900; font-size: 36px;
	margin: 0 auto;
}

.section-title { text-align: center; margin-bottom: clamp(28px, 4vw, 44px); }
.section-title__kicker { color: var(--gold-dark); letter-spacing: .35em; font-size: .85em; font-weight: 700; margin: 0 0 .3em; }
.section-title__text { display: flex; align-items: center; justify-content: center; gap: 18px; font-size: clamp(28px, 4vw, 40px); margin: 0; letter-spacing: .2em; }
.section-title__text span { padding-left: .2em; }

.frame {
	position: relative; display: block; padding: 10px;
	background: linear-gradient(135deg, var(--gold-light), var(--gold) 40%, var(--gold-dark));
	border-radius: 18px; box-shadow: var(--shadow-lg);
}
.frame img { border-radius: 10px; width: 100%; height: 100%; object-fit: cover; }
.frame::after { content: ''; position: absolute; inset: 16px; border: 1px solid rgba(255, 240, 200, .6); border-radius: 6px; pointer-events: none; }

/* ---------- 背景虛化（首頁主視覺與內頁頁首共用） ---------- */
.blur-bg { position: relative; isolation: isolate; overflow: hidden; }
.blur-bg::before {
	content: ''; position: absolute; inset: 0; z-index: -2;
	background: var(--bg) center / cover no-repeat;
	filter: blur(6px) saturate(1.05);
	transform: scale(1.12); /* 放大一點，避免模糊後邊緣出現白邊 */
}
.blur-bg::after {
	content: ''; position: absolute; inset: 0; z-index: -1;
	background:
		radial-gradient(ellipse at center, rgba(30, 20, 13, .15), rgba(30, 20, 13, .55) 75%),
		linear-gradient(180deg, rgba(30, 20, 13, .55), rgba(30, 20, 13, .35) 45%, rgba(30, 20, 13, .8));
}

/* ---------- 置頂公告 ---------- */
.notice-bar { background: var(--red-dark); color: #fff; font-size: .95em; }
.notice-bar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; min-height: 48px; padding-top: 6px; padding-bottom: 6px; }
.notice-bar__text { display: flex; align-items: center; gap: 12px; margin: 0; flex: 1 1 320px; min-width: 0; }
.notice-bar__member { display: flex; gap: 6px; margin-left: auto; }
.notice-bar__member a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 8px; background: rgba(255, 255, 255, .1); font-size: 15px; font-weight: 700; }
.notice-bar__member a:hover { background: rgba(255, 255, 255, .2); text-decoration: none; }
.notice-bar__member .icon { color: var(--gold-light); }
.cart-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: var(--ink); font-size: 13px; }
@media (max-width: 600px) { .notice-bar__member { margin-left: 0; width: 100%; } .notice-bar__member a { flex: 1; justify-content: center; } }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.notice-bar__tag { flex: none; background: var(--gold); color: var(--ink); font-weight: 700; font-size: .8em; padding: 1px 10px; border-radius: 4px; letter-spacing: .15em; }
.notice-bar a { color: #fff; text-decoration: none; }
.notice-bar a:hover { text-decoration: underline; }
.notice-bar__more { color: var(--gold-light); white-space: nowrap; }

/* ---------- 頁首與導覽列 ---------- */
/* 注意：頁首不可使用 backdrop-filter / filter / transform，否則手機選單（position: fixed）會被限制在頁首的高度內 */
.site-header { position: sticky; top: 0; z-index: 100; background: #FBF7EE; box-shadow: 0 2px 12px rgba(43, 29, 20, .08); }
.admin-bar .site-header { top: 32px; }
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand__logo { height: 56px; width: auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__name { font-family: var(--serif); font-weight: 900; font-size: 28px; color: var(--ink); letter-spacing: .18em; }
.brand__sub { font-size: 13px; color: var(--muted); letter-spacing: .2em; }

.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.site-nav__item { position: relative; }
.site-nav__link {
	display: flex; align-items: center; gap: 2px;
	min-height: 48px; padding: 0 12px;
	color: var(--ink); text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: .08em;
	border-radius: 8px; position: relative;
}
.site-nav__link::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 3px; border-radius: 2px; background: var(--red); transform: scaleX(0); transition: transform .25s; }
.site-nav__link:hover { color: var(--red); }
.site-nav__item:hover > .site-nav__link::after, .site-nav__item.is-active > .site-nav__link::after { transform: scaleX(1); }
.site-nav__item.is-active > .site-nav__link { color: var(--red); }
.site-nav__caret { width: 16px; height: 16px; transition: transform .2s; }
.site-nav__sub {
	list-style: none; margin: 0; padding: 8px;
	position: absolute; top: 100%; left: 50%; min-width: 180px;
	background: var(--card); border-radius: 12px; box-shadow: var(--shadow-lg); border-top: 3px solid var(--red);
	opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .2s, transform .2s, visibility .2s;
}
.site-nav__sub a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 500; white-space: nowrap; }
.site-nav__sub a:hover { background: var(--red-soft); color: var(--red); }
.site-nav__item:hover > .site-nav__sub, .site-nav__item:focus-within > .site-nav__sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.site-nav__contact { display: none; }

.nav-toggle, .header-call { display: none; }

@media (max-width: 1140px) {
	:root { --header-h: 72px; }
	.brand__name { font-size: 24px; }
	.brand__logo { height: 46px; }
	.seal { width: 46px; height: 46px; font-size: 16px; }
	.header-call, .nav-toggle {
		display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
		min-width: 56px; min-height: 52px; padding: 4px 8px; border-radius: 10px;
		font-size: 12px; font-weight: 700; line-height: 1.2; text-decoration: none; letter-spacing: .05em;
	}
	.header-call { background: var(--red-soft); color: var(--red); }
	.nav-toggle { background: var(--ink); color: #fff; border: 0; cursor: pointer; }
	.nav-toggle .icon, .header-call .icon { width: 24px; height: 24px; }
	.nav-toggle__open, .nav-toggle__close { display: flex; flex-direction: column; align-items: center; }
	.nav-toggle__close { display: none; }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: flex; }

	.site-nav {
		position: fixed; left: 0; right: 0; bottom: 0; top: var(--nav-top, var(--header-h));
		background: var(--ink); color: #fff; overflow-y: auto; overscroll-behavior: contain;
		padding: 12px var(--gutter) 32px;
		opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px); transition: opacity .25s, transform .25s, visibility .25s;
	}
	.nav-open .site-nav { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
	.nav-open { overflow: hidden; }
	.site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
	.site-nav__item { border-bottom: 1px solid rgba(232, 205, 138, .2); }
	.site-nav__link { color: #fff; font-family: var(--serif); font-size: 24px; min-height: 64px; padding: 0 8px; }
	.site-nav__link::after { display: none; }
	.site-nav__item.is-active > .site-nav__link, .site-nav__link:hover { color: var(--gold-light); }
	.site-nav__caret { display: none; }
	/* 子選單跟著主選單一起隱藏（visibility: inherit），選單關著時不能被點到 */
	.site-nav__sub { position: static; opacity: 1; visibility: inherit; transform: none; background: transparent; box-shadow: none; border: 0; padding: 0 0 12px 16px; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px; }
	.site-nav__sub a { color: #F1E6D0; background: rgba(255, 255, 255, .08); font-size: 18px; padding: 10px 16px; min-height: 48px; display: flex; align-items: center; }
	.site-nav__sub a:hover { background: rgba(255, 255, 255, .16); color: #fff; }
	.site-nav__contact { display: grid; gap: 12px; margin-top: 24px; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } .brand__sub { display: none; } }

/* ---------- 首頁主視覺 ---------- */
/* 素雅版：左邊文字、右邊清楚的廟照，不加濃重特效 */
.hero { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 80px) 0 clamp(32px, 5vw, 64px); background: linear-gradient(180deg, #FBF7EE, var(--paper)); }
.hero__cloud { position: absolute; width: clamp(160px, 22vw, 300px); color: var(--gold); opacity: .14; pointer-events: none; }
.hero__cloud.is-a { left: -40px; top: 24px; }
.hero__cloud.is-b { right: 38%; bottom: 10px; transform: scaleX(-1); }
.hero__grid { position: relative; display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero__kicker { color: var(--gold-dark); font-weight: 700; letter-spacing: .4em; font-size: clamp(15px, 1.6vw, 17px); margin: 0 0 6px; }
.hero__title { font-size: clamp(56px, 8vw, 100px); letter-spacing: .2em; line-height: 1.15; margin: 0; color: var(--ink); }
.hero__tagline { font-family: var(--serif); font-weight: 700; color: var(--red); font-size: clamp(18px, 2vw, 23px); letter-spacing: .14em; margin: 14px 0 26px; padding-top: 14px; border-top: 2px solid var(--gold); display: inline-block; }
.hero__info { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.hero__info li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; }
.hero__info .icon { color: var(--red); margin-top: .3em; }
.hero__info b { display: inline-block; min-width: 5em; color: var(--gold-dark); font-weight: 700; }
.hero__info a { color: var(--text); text-decoration: none; }
.hero__info a:hover { color: var(--red); text-decoration: underline; }
.hero__info small { color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__photo { position: relative; aspect-ratio: 5 / 4; border-radius: 18px; overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow-lg); }
.hero__photo::after { content: ''; position: absolute; inset: 12px; border: 1px solid rgba(255, 245, 220, .75); border-radius: 10px; pointer-events: none; }
.hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 2s ease; }
.hero__slide.is-active { opacity: 1; }
@media (max-width: 900px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero__media { order: -1; }
	.hero__photo { aspect-ratio: 4 / 3; }
	.hero__text { text-align: center; }
	.hero__info { text-align: left; max-width: 460px; margin-left: auto; margin-right: auto; }
	.hero__actions { justify-content: center; }
}
@media (max-width: 600px) {
	.hero__info li { font-size: 16px; }
	.hero__info b { display: block; }
	.hero__actions .btn { width: 100%; }
}

/* 近期活動提示條 */
.upnext { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 16px 22px; margin-bottom: 8px; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: 12px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); }
.upnext:hover { color: var(--text); border-left-color: var(--gold); }
.upnext__label { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-weight: 700; }
.upnext__date { font-family: var(--serif); font-weight: 900; font-size: 20px; color: var(--ink); }
.upnext__title { font-weight: 700; font-size: 18px; flex: 1; min-width: 12em; }
.upnext__title small { color: var(--gold-dark); font-weight: 500; margin-left: 10px; font-size: 15px; }
.upnext__count { color: var(--muted); }
.upnext__count b { color: var(--red); font-size: 22px; font-family: var(--serif); }

/* ---------- 快速入口 ---------- */
.quick { padding: 24px 0 8px; }
.quick__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.quick__item { display: flex; align-items: center; gap: 14px; padding: 18px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s; }
.quick__item:hover { border-color: var(--red); transform: translateY(-2px); color: var(--text); }
.quick__icon { display: grid; place-items: center; width: 54px; height: 54px; flex: none; border-radius: 50%; background: var(--red-soft); color: var(--red); }
.quick__icon .icon { width: 26px; height: 26px; }
.quick__text { display: flex; flex-direction: column; line-height: 1.4; }
.quick__label { font-family: var(--serif); font-weight: 900; font-size: 20px; color: var(--ink); letter-spacing: .08em; }
.quick__desc { font-size: 14px; color: var(--muted); }
@media (max-width: 960px) { .quick__grid { grid-template-columns: repeat(2, 1fr); } }

/* 首頁「求籤與籤詩」按鈕：只在手機、平板顯示（電腦版首頁不變） */
.hero__fortune { display: none; }
@media (max-width: 960px) { .hero__fortune { display: inline-flex; } }
@media (max-width: 640px) { .quick__item { flex-direction: column; text-align: center; gap: 8px; padding: 16px 8px; } .quick__label { font-size: 18px; } }

/* 祈福點燈卡片 */
.lamp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lamp-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: border-color .2s, box-shadow .2s, transform .2s; }
.lamp-card:hover { border-color: var(--gold); box-shadow: var(--shadow); transform: translateY(-3px); color: var(--text); }
.lamp-card__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--red); margin-bottom: 12px; }
.lamp-card__icon .icon { width: 28px; height: 28px; }
.lamp-card__name { font-family: var(--serif); font-weight: 900; font-size: 21px; color: var(--ink); letter-spacing: .08em; }
.lamp-card__fee { color: var(--red); font-weight: 700; font-size: 18px; margin-top: 4px; }
.lamp-card__extra { color: var(--gold-dark); font-size: 14px; }
.lamp-card__desc { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 10px 0 12px; flex: 1; }
.lamp-card__more { display: inline-flex; align-items: center; gap: 4px; color: var(--red); font-weight: 700; font-size: 15px; }
.lamp-note { display: flex; gap: 10px; align-items: flex-start; justify-content: center; margin: 28px auto 0; max-width: 820px; color: var(--muted); font-size: 16px; text-align: left; }
.lamp-note .icon { color: var(--gold-dark); flex: none; margin-top: .35em; }
@media (max-width: 1000px) { .lamp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .lamp-grid { gap: 10px; } .lamp-card { padding: 18px 10px 16px; } .lamp-card__name { font-size: 18px; } .lamp-card__fee { font-size: 16px; } .lamp-card__desc { display: none; } }

/* ---------- 區塊 ---------- */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section--tint { background: var(--paper-2); position: relative; }
.section--tint::before, .section--tint::after { content: ''; position: absolute; left: 0; right: 0; height: 10px; background: url(../images/fret.svg) repeat-x center / auto 10px; opacity: .5; }
.section--tint::before { top: 8px; }
.section--tint::after { bottom: 8px; }
.more { text-align: center; margin-top: 28px; }

/* 主祀介紹 */
.intro__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.intro__figure { margin: 0; max-width: 460px; justify-self: center; width: 100%; }
.intro__figure .frame img { aspect-ratio: 4 / 5; }
.intro__figure figcaption { text-align: center; font-family: var(--serif); font-weight: 900; font-size: 20px; letter-spacing: .3em; color: var(--red); margin-top: 16px; }
.intro__title { font-size: clamp(34px, 5vw, 52px); letter-spacing: .2em; color: var(--red); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0; }
.facts div { background: var(--card); border-radius: 12px; padding: 14px 12px; text-align: center; border: 1px solid var(--line); }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { margin: 0; font-family: var(--serif); font-weight: 900; font-size: 20px; color: var(--ink); }
.intro__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) {
	.intro__grid { grid-template-columns: 1fr; }
	.intro__figure { max-width: 360px; }
	.facts dd { font-size: 17px; }
}

/* 最新消息＋近期活動 */
.news-events { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(28px, 4vw, 48px); align-items: start; }
.news-events__news .section-title { text-align: left; }
.news-events__news .section-title__text { justify-content: flex-start; }
.news-events__news .section-title__text .cloud.is-left { display: none; }
.news-events__events { position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 960px) {
	.news-events { grid-template-columns: 1fr; }
	.news-events__events { position: static; }
	.news-events__news .section-title { text-align: center; }
	.news-events__news .section-title__text { justify-content: center; }
	.news-events__news .section-title__text .cloud.is-left { display: block; }
}

.news-list { display: grid; gap: 16px; }
.news-card__link { display: grid; grid-template-columns: 220px 1fr; gap: 20px; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--text); transition: transform .25s, box-shadow .25s; }
.news-card__link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--text); }
.news-card__thumb { background: var(--paper-2); min-height: 160px; }
.news-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card__placeholder { display: grid; place-items: center; height: 100%; color: var(--gold); }
.news-card__placeholder .icon { width: 56px; height: 56px; }
.news-card__body { padding: 18px 20px 18px 0; }
.news-card__meta { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); margin: 0 0 6px; }
.news-card__title { font-size: 21px; margin: 0 0 6px; transition: color .2s; }
.news-card__link:hover .news-card__title { color: var(--red); }
.news-card__excerpt { font-size: 16px; color: var(--muted); margin: 0; line-height: 1.7; }
@media (max-width: 600px) {
	.news-card__link { grid-template-columns: 1fr; gap: 0; }
	.news-card__thumb { aspect-ratio: 16 / 9; min-height: 0; }
	.news-card__body { padding: 16px 18px 20px; }
}

/* 面板 */
.panel { background: var(--card); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow); border-top: 4px solid var(--red); }
.panel__title { display: flex; align-items: center; gap: 10px; font-size: 24px; margin-bottom: 16px; }
.panel__title .icon { color: var(--red); }
.panel + .panel { margin-top: 20px; }

/* 日期徽章 */
.date-badge { display: flex; flex-direction: column; align-items: center; width: 78px; flex: none; border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 6px rgba(43, 29, 20, .06); line-height: 1.25; }
.date-badge__m { width: 100%; text-align: center; background: var(--red); color: #fff; font-size: 14px; font-weight: 700; padding: 3px 0; letter-spacing: .1em; }
.date-badge__d { font-family: var(--serif); font-weight: 900; font-size: 30px; color: var(--ink); padding-top: 4px; }
.date-badge__w { font-size: 13px; color: var(--muted); padding-bottom: 6px; }
.lunar { display: inline-flex; align-items: center; color: var(--gold-dark); font-weight: 700; }
.lunar::before { content: '農'; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 50%; background: var(--gold); color: #fff; font-size: 12px; }

.event-mini { list-style: none; margin: 0 0 20px; padding: 0; }
.event-mini li { display: flex; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.event-mini li:last-child { border-bottom: 0; }
.event-mini__text { display: flex; flex-direction: column; }
.event-mini__text strong { font-size: 18px; line-height: 1.5; color: var(--ink); }
.event-mini__text .lunar { font-size: 15px; }

/* 神明小卡 */
.deity-chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.deity-chips a { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 10px; height: 100%; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); text-align: center; transition: transform .25s; }
.deity-chips a:hover { transform: translateY(-3px); color: var(--red); }
.deity-chips .deity-badge { width: 76px; font-size: 30px; }
.deity-chips__img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--gold); }
.deity-chips__name { font-family: var(--serif); font-weight: 900; font-size: 17px; line-height: 1.4; }
@media (max-width: 600px) { .deity-chips { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* 首頁開放時間帶 */
.visit-band { position: relative; padding: clamp(56px, 7vw, 88px) 0; background: var(--paper); border-top: 1px solid var(--line); }
.visit-band__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.visit-band__item { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.visit-band__item h2 { font-size: 22px; letter-spacing: .2em; }
.visit-band__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--red-soft); color: var(--red); margin-bottom: 14px; }
.visit-band__phone { font-family: var(--serif); font-weight: 900; font-size: clamp(26px, 3vw, 32px); color: var(--red); text-decoration: none; letter-spacing: .06em; }
.visit-band__item p { color: var(--muted); }
.visit-band__addr { font-size: 19px; }
@media (max-width: 900px) { .visit-band__grid { grid-template-columns: 1fr; } }

.hours { margin: 0; display: grid; gap: 8px; }
.hours div { display: grid; grid-template-columns: 3.2em 1fr; gap: 8px; }
.hours dt { font-weight: 700; color: var(--gold-dark); }
.hours dd { margin: 0; }
.site-footer .hours dt { color: var(--gold-light); }

/* ---------- 內頁頁首 ---------- */
.page-hero { min-height: clamp(220px, 30vw, 330px); display: flex; align-items: flex-end; color: #fff; background: var(--ink); }
.page-hero::before { filter: blur(10px) saturate(1.05); transform: scale(1.15); }
.page-hero__inner { padding-top: 48px; padding-bottom: clamp(32px, 4vw, 52px); position: relative; z-index: 1; }
.page-hero__title { color: #fff; font-size: clamp(34px, 5.5vw, 56px); letter-spacing: .16em; margin: 0; text-shadow: 0 2px 14px rgba(0, 0, 0, .45); }
.page-hero__lead { color: var(--gold-light); font-family: var(--serif); font-weight: 700; font-size: clamp(17px, 2vw, 21px); letter-spacing: .12em; margin: 8px 0 0; }
.page-hero__cloud { position: absolute; right: var(--gutter); bottom: 20px; width: clamp(100px, 14vw, 180px); color: var(--gold); opacity: .55; }
.crumbs { font-size: 15px; color: rgba(255, 255, 255, .8); margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: rgba(255, 255, 255, .9); text-decoration: none; }
.crumbs a:hover { color: var(--gold-light); text-decoration: underline; }

/* ---------- 文章內容排版 ---------- */
.prose { font-size: 18px; }
.prose > *:last-child { margin-bottom: 0; }
.prose h2 { font-size: clamp(24px, 3vw, 30px); color: var(--red-dark); margin: 1.8em 0 .7em; padding-bottom: .35em; border-bottom: 2px solid transparent; border-image: linear-gradient(90deg, var(--gold), transparent) 1; display: flex; align-items: center; gap: 12px; }
.prose h2::before { content: ''; width: 12px; height: 12px; flex: none; background: var(--red); transform: rotate(45deg); box-shadow: 0 0 0 3px var(--paper), 0 0 0 4.5px var(--gold); }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 22px; margin: 1.5em 0 .5em; }
.prose ul { padding: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 1.5em; margin-bottom: .5em; }
.prose ul li::before { content: ''; position: absolute; left: .3em; top: .7em; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }
.prose ol { padding-left: 1.5em; }
.prose ol li { margin-bottom: .5em; }
.prose strong { color: var(--ink); }
.prose img { border-radius: 10px; margin: 1em 0; }
.prose img.poster { max-width: min(100%, 560px); margin: 1.5em auto; box-shadow: var(--shadow-lg); }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; background: var(--card); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.prose th, .prose td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { width: 34%; background: var(--paper-2); font-family: var(--serif); color: var(--ink); white-space: nowrap; }
.prose tr:last-child th, .prose tr:last-child td { border-bottom: 0; }
.prose blockquote { margin: 1.5em 0; padding: 1em 1.4em; border-left: 4px solid var(--gold); background: var(--card); border-radius: 0 12px 12px 0; }
.prose--page { background: var(--card); padding: clamp(24px, 5vw, 52px); border-radius: var(--radius); box-shadow: var(--shadow); }

/* 編號清單 → 步驟圖（參拜指南、求籤步驟） */
.prose--steps ol, .steps { list-style: none; padding: 0; margin: 1.5em 0; counter-reset: step; position: relative; }
.prose--steps ol li, .steps li {
	counter-increment: step; position: relative;
	padding: 0 0 28px 76px; margin: 0; min-height: 56px;
}
.prose--steps ol li::before, .steps li::before {
	content: counter(step); position: absolute; left: 0; top: -4px; z-index: 1;
	display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
	background: var(--red); color: var(--gold-light); font-family: var(--serif); font-weight: 900; font-size: 24px;
	box-shadow: inset 0 0 0 3px var(--red), inset 0 0 0 4.5px var(--gold-light), 0 4px 10px rgba(127, 23, 18, .25);
}
.prose--steps ol li::after, .steps li::after { content: ''; position: absolute; left: 26px; top: 54px; bottom: 0; width: 2px; background: repeating-linear-gradient(180deg, var(--gold) 0 6px, transparent 6px 11px); }
.prose--steps ol li:last-child::after, .steps li:last-child::after { display: none; }
.prose--steps ol li strong, .steps li strong { display: block; font-family: var(--serif); font-size: 21px; color: var(--ink); margin-bottom: 2px; }

/* ---------- 篩選、分頁 ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter__item { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 700; }
.filter__item:hover { border-color: var(--red); color: var(--red); }
.filter__item.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.filter__item--alt { margin-left: auto; border-color: var(--gold); color: var(--gold-dark); }
@media (max-width: 600px) { .filter__item--alt { margin-left: 0; } }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 48px; min-height: 48px; padding: 0 14px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; }
.pagination .page-numbers.current { background: var(--red); color: #fff; border-color: var(--red); }
.pagination a.page-numbers:hover { border-color: var(--red); color: var(--red); }

/* ---------- 單篇消息 ---------- */
.article { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 5vw, 52px); }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--muted); margin-bottom: 20px; }
.article__meta time { display: inline-flex; align-items: center; gap: 6px; }
.article__cover { margin: 0 0 28px; }
.article__cover img { border-radius: 12px; width: 100%; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 32px 0; }
.post-nav__item { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; background: var(--card); border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.post-nav__item span { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 15px; }
.post-nav__item.is-next { text-align: right; grid-column: 2; align-items: flex-end; }
.post-nav__item:hover { border-color: var(--red); color: var(--red); }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav__item.is-next { grid-column: auto; } }

/* ---------- 神明介紹 ---------- */
.deity-main { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(28px, 5vw, 64px); align-items: center; margin-bottom: clamp(56px, 8vw, 96px); }
.deity-main__figure img { aspect-ratio: 4 / 5; }
.deity-main__name { font-size: clamp(36px, 5vw, 54px); color: var(--red); letter-spacing: .2em; }
.deity-facts { margin: 0 0 20px; display: grid; gap: 10px; }
.deity-facts div { display: grid; grid-template-columns: 4em 1fr; gap: 12px; align-items: baseline; padding-bottom: 10px; border-bottom: 1px dashed var(--line); }
.deity-facts dt { font-weight: 700; color: var(--gold-dark); letter-spacing: .2em; }
.deity-facts dd { margin: 0; }
.deity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 20px; }
.deity-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 18px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: var(--text); border-bottom: 4px solid var(--gold); transition: transform .25s, border-color .25s; }
.deity-card:hover { transform: translateY(-4px); border-bottom-color: var(--red); color: var(--text); }
.deity-card__img { display: block; width: 100%; margin-bottom: 14px; }
.deity-card__img img { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin: 0 auto; box-shadow: 0 0 0 4px var(--gold); }
.deity-card__img .deity-badge { width: 120px; font-size: 46px; }
.deity-card__name { font-family: var(--serif); font-weight: 900; font-size: 21px; color: var(--ink); line-height: 1.4; }
.deity-card__bless { font-size: 15px; color: var(--muted); margin-top: 6px; }
.deity-detail { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.deity-detail__figure { margin: 0; }
.deity-detail__figure .deity-badge { width: 70%; font-size: 120px; margin: 40px auto; }
.deity-detail__body { background: var(--card); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
@media (max-width: 860px) {
	.deity-main, .deity-detail { grid-template-columns: 1fr; }
	.deity-main__figure, .deity-detail__figure { max-width: 380px; width: 100%; justify-self: center; }
	.deity-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.deity-card { padding: 20px 10px; }
	.deity-card__img img { width: 110px; height: 110px; }
	.deity-card__img .deity-badge { width: 96px; font-size: 38px; }
	.deity-card__name { font-size: 18px; }
}

/* ---------- 行事曆 ---------- */
.year-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin-bottom: 24px; }
.year-nav > :last-child { justify-self: end; }
.year-nav__title { margin: 0; text-align: center; font-size: clamp(30px, 4vw, 40px); line-height: 1.2; }
.year-nav__title small { display: block; font-size: 16px; color: var(--muted); font-family: var(--sans); font-weight: 400; letter-spacing: .2em; }
@media (max-width: 700px) { .year-nav .btn { padding: .4em .8em; font-size: 15px; } }

/* 下一個活動 */
.next-event { display: grid; grid-template-columns: 170px 1fr; gap: 28px; align-items: center; padding: clamp(20px, 3vw, 32px); margin-bottom: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.next-event__count { display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1; border-radius: 50%; background: var(--red); color: #FBE9DF; box-shadow: inset 0 0 0 6px var(--red), inset 0 0 0 7.5px var(--gold-light); }
.next-event__count strong { font-family: var(--serif); font-weight: 900; font-size: 56px; line-height: 1.1; color: #fff; }
.next-event__count span { font-size: 16px; letter-spacing: .2em; }
.next-event__kicker { color: var(--gold-dark); font-weight: 700; letter-spacing: .3em; margin: 0 0 2px; font-size: 15px; }
.next-event__title { font-size: clamp(24px, 3vw, 32px); margin: 0 0 10px; }
.next-event__meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; color: var(--text); }
.next-event__meta span { display: inline-flex; align-items: center; gap: 6px; }
.next-event__meta .icon { color: var(--red); }
.next-event__desc { margin-top: 12px; color: var(--muted); font-size: 16px; }
.next-event__desc p:last-child { margin: 0; }
@media (max-width: 640px) {
	.next-event { grid-template-columns: 1fr; text-align: center; gap: 16px; }
	.next-event__count { width: 130px; margin: 0 auto; }
	.next-event__count strong { font-size: 44px; }
	.next-event__meta { justify-content: center; }
}
.cal-note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 18px; margin-bottom: 36px; background: var(--paper-2); border-radius: 10px; color: var(--text); font-size: 16px; }
.cal-note .icon { color: var(--gold-dark); flex: none; margin-top: .35em; }

/* 圖例 */
.cal-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: -8px 0 24px; color: var(--muted); font-size: 15px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 14px; height: 14px; border-radius: 4px; }
.cal-legend .is-now { background: var(--red); }
.cal-legend .is-up { background: #fff; border: 1.5px solid var(--gold); }
.cal-legend .is-past { background: #DDD3C4; }

/* 十二個月份卡片 */
.cal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.cal-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; scroll-margin-top: calc(var(--header-h) + 20px); }
.cal-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 14px 18px; cursor: pointer; list-style: none; border-bottom: 2px solid var(--gold); background: #FCF8EF; }
.cal-card__head::-webkit-details-marker { display: none; }
.cal-card__head:hover { background: var(--paper-2); }
.cal-card__month { font-family: var(--serif); font-weight: 900; font-size: 20px; color: var(--ink); }
.cal-card__month b { font-size: 38px; color: var(--red); margin-right: 2px; line-height: 1; }
.cal-card__count { font-size: 14px; color: var(--muted); text-align: right; }
.cal-card__empty { margin: 0; padding: 18px; color: #A89C8C; font-size: 15px; text-align: center; }
.cal-card.is-now { border: 2px solid var(--red); box-shadow: var(--shadow-lg); }
.cal-card.is-now .cal-card__head { background: var(--red); border-bottom-color: var(--gold); }
.cal-card.is-now .cal-card__month, .cal-card.is-now .cal-card__month b, .cal-card.is-now .cal-card__count { color: #fff; }
.cal-card.is-past { background: #F6F0E5; }
.cal-card.is-past .cal-card__head { background: #F1E9DB; border-bottom-color: #DDD3C4; }
.cal-card.is-past .cal-card__month b { color: #9C8F80; }
.cal-rows { list-style: none; margin: 0; padding: 4px 0; }
.cal-row { display: flex; gap: 14px; align-items: flex-start; padding: 12px 18px; border-bottom: 1px dashed var(--line); scroll-margin-top: calc(var(--header-h) + 20px); }
.cal-row:last-child { border-bottom: 0; }
.cal-row:target { background: #FFF6DD; }
.cal-row__day { display: flex; flex-direction: column; align-items: center; width: 46px; flex: none; line-height: 1.2; }
.cal-row__day b { font-family: var(--serif); font-weight: 900; font-size: 28px; color: var(--ink); }
.cal-row__day small { font-size: 13px; color: var(--muted); }
.cal-row__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal-row__title { font-size: 17px; line-height: 1.5; color: var(--ink); }
.cal-row .lunar { font-size: 14px; }
.cal-row .lunar::before { width: 18px; height: 18px; font-size: 11px; }
.cal-row__meta { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--muted); }
.cal-row.is-past { opacity: .5; }
.cal-row.is-today { background: #FFF6DD; }
@media (max-width: 1000px) { .cal-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cal-grid { grid-template-columns: 1fr; gap: 12px; } }

/* ---------- 服務項目 ---------- */
.fee-table { max-width: 860px; margin: 0 auto 48px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); }
.fee-table__title { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: clamp(22px, 3vw, 28px); letter-spacing: .15em; }
.fee-table__title .icon { color: var(--red); }
.fee-table table { width: 100%; border-collapse: collapse; font-size: 18px; }
.fee-table th, .fee-table td { padding: 12px 10px; border-bottom: 1px dashed var(--line); text-align: left; vertical-align: top; }
.fee-table thead th { font-size: 15px; color: var(--muted); font-weight: 500; border-bottom: 2px solid var(--gold); }
.fee-table tbody th { font-family: var(--serif); font-weight: 900; white-space: nowrap; width: 38%; }
.fee-table tbody th a { color: var(--ink); text-decoration: none; }
.fee-table tbody th a:hover { color: var(--red); text-decoration: underline; }
.fee-table td { color: var(--red); font-weight: 700; }
.fee-table__note { display: flex; gap: 10px; margin: 20px 0 0; font-size: 15px; color: var(--muted); }
.fee-table__note .icon { color: var(--gold-dark); flex: none; margin-top: .3em; }
@media (max-width: 520px) { .fee-table table { font-size: 16px; } .fee-table tbody th { white-space: normal; } }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 2.5vw, 28px); display: flex; flex-direction: column; scroll-margin-top: calc(var(--header-h) + 20px); transition: box-shadow .2s, border-color .2s; }
.service-card:hover { box-shadow: var(--shadow); }
.service-card:target { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 161, 74, .45), var(--shadow-lg); }
.service-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.service-card__icon { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--red); }
.service-card__icon .icon { width: 26px; height: 26px; }
.service-card__title { font-size: 23px; margin: 0; letter-spacing: .1em; }
.service-card__fee { margin: 0 0 12px; padding: 10px 14px; background: var(--red-soft); color: var(--red-dark); border-radius: 8px; font-weight: 700; font-size: 17px; }
.service-card__desc { font-size: 16px; margin-bottom: 14px; flex: 1; }
.service-card__info { margin: 0 0 16px; display: grid; gap: 8px; border-top: 1px dashed var(--line); padding-top: 14px; }
.service-card__info div { display: grid; grid-template-columns: 4.5em 1fr; gap: 8px; font-size: 15px; }
.service-card__info dt { color: var(--gold-dark); font-weight: 700; }
.service-card__info dd { margin: 0; }
.service-card__actions { display: grid; gap: 8px; }
@media (max-width: 1040px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .service-grid { grid-template-columns: 1fr; } }

/* 行動呼籲框 */
.cta-box {
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
	margin-top: clamp(40px, 6vw, 64px); padding: clamp(24px, 4vw, 40px);
	border-radius: var(--radius); color: #fff; position: relative; overflow: hidden;
	background: radial-gradient(ellipse at 0% 0%, #C0392B, var(--red) 40%, var(--red-dark));
	box-shadow: inset 0 0 0 6px var(--red-dark), inset 0 0 0 7.5px var(--gold), var(--shadow-lg);
}
.cta-box h2 { color: var(--gold-light); font-size: clamp(22px, 3vw, 28px); margin-bottom: 4px; }
.cta-box p { margin: 0; color: #FBE9DF; }
.cta-box__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 相簿 ---------- */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.album-card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .25s, box-shadow .25s; }
.album-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--red); }
.album-card__cover { position: relative; aspect-ratio: 4 / 3; background: var(--paper-2); overflow: hidden; }
.album-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.album-card:hover .album-card__cover img { transform: scale(1.04); }
.album-card__empty { display: grid; place-items: center; height: 100%; color: var(--gold); }
.album-card__count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: rgba(30, 20, 13, .75); color: #fff; font-size: 14px; }
.album-card__body { padding: 16px 20px 20px; display: flex; flex-direction: column; }
.album-card__title { font-family: var(--serif); font-weight: 900; font-size: 21px; }
.album-card__date { color: var(--muted); font-size: 15px; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 40px; }
.photo-grid__item { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: var(--paper-2); cursor: zoom-in; }
.photo-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.photo-grid__item:hover img { transform: scale(1.05); }
@media (max-width: 600px) { .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* 燈箱 */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(20, 13, 8, .95); display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; touch-action: pan-y; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img { max-width: 92vw; max-height: 80vh; border-radius: 6px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); user-select: none; }
.lightbox__cap { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; color: #EADFCB; font-size: 16px; padding: 0 80px; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; }
.lightbox__btn:hover { background: var(--red); }
.lightbox__btn .icon { width: 28px; height: 28px; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox__prev, .lightbox__next { top: auto; bottom: 56px; transform: none; } .lightbox__cap { bottom: 120px; padding: 0 16px; } }

/* ---------- 求籤 ---------- */
.fortune-form { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 36px); text-align: center; border-top: 4px solid var(--gold); margin-bottom: 32px; }
.fortune-form__label { display: flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--serif); font-weight: 900; font-size: 24px; color: var(--ink); margin-bottom: 16px; }
.fortune-form__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.fortune-form__pre { font-family: var(--serif); font-weight: 900; font-size: 28px; color: var(--red); }
.fortune-form input { width: 140px; min-height: 60px; text-align: center; font-size: 28px; font-weight: 700; border: 2px solid var(--gold); border-radius: 10px; background: #fff; }
.fortune-form input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(201, 161, 74, .35); }
.fortune-form .hint { margin: 14px 0 0; }
.fortune-card { background: #FFFBF0; border-radius: 6px; padding: clamp(24px, 5vw, 48px); margin-bottom: 48px; box-shadow: inset 0 0 0 6px #FFFBF0, inset 0 0 0 8px var(--red), inset 0 0 0 12px #FFFBF0, inset 0 0 0 13px var(--gold), var(--shadow-lg); }
.fortune-card__head { text-align: center; margin-bottom: 24px; }
.fortune-card__no { font-family: var(--serif); font-weight: 900; font-size: 20px; color: var(--red); letter-spacing: .4em; margin: 0; }
.fortune-card__title { font-size: clamp(30px, 4vw, 40px); margin: 4px 0 10px; letter-spacing: .3em; }
.fortune-card__grade { display: inline-block; background: var(--red); color: var(--gold-light); font-weight: 700; letter-spacing: .3em; padding: 4px 16px 4px 20px; border-radius: 4px; }
.fortune-card__poem-wrap { display: flex; justify-content: center; margin: 0 0 28px; padding: 28px 0; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); }
.fortune-card__poem { writing-mode: vertical-rl; font-family: var(--serif); font-weight: 900; font-size: clamp(24px, 3.4vw, 32px); letter-spacing: .25em; line-height: 2.1; color: var(--ink); }
.fortune-card__poem p { margin: 0 .25em; white-space: nowrap; }
.fortune-card__meaning { background: var(--paper-2); border-radius: 12px; padding: 20px 24px; margin-bottom: 20px; }
.fortune-card__meaning h3 { font-size: 20px; color: var(--red); margin-bottom: 4px; }
.fortune-card__meaning p { margin: 0; }
.fortune-card__parts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0; }
.fortune-card__parts div { display: grid; grid-template-columns: 3.2em 1fr; gap: 10px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.fortune-card__parts dt { font-family: var(--serif); font-weight: 900; color: var(--red); }
.fortune-card__parts dd { margin: 0; }
.fortune-card__note { color: var(--muted); font-size: 15px; text-align: center; margin: 20px 0 0; }
.fortune-steps { margin-top: 24px; }
.fortune-again { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0 0 48px; }
.fortune-card { margin-bottom: 28px; }

/* 解籤說明（螢幕上看；列印時不印） */
.jieqian { margin-bottom: 32px; padding: clamp(22px, 4vw, 40px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.jieqian__title { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: clamp(24px, 3vw, 30px); letter-spacing: .2em; margin-bottom: 22px; }
.jieqian__title .icon { color: var(--red); }
.jieqian__block { margin-bottom: 26px; }
.jieqian__block h3 { display: flex; align-items: center; gap: 10px; font-size: 21px; color: var(--red-dark); margin-bottom: 10px; }
.jieqian__block h3::before { content: ''; width: 10px; height: 10px; background: var(--gold); transform: rotate(45deg); flex: none; }
.jieqian__plain { padding: 18px 22px; background: #FFF8E7; border-left: 5px solid var(--gold); border-radius: 0 12px 12px 0; }
.jieqian__plain p { font-size: 19px; line-height: 1.95; margin: 0; color: var(--ink); }
.jieqian__hint { color: var(--muted); font-size: 15px; margin: -4px 0 10px; }
.jieqian__rows { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.jieqian__rows div { display: grid; grid-template-columns: 6.5em 1fr; gap: 10px; align-items: start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.jieqian__rows dt { font-weight: 700; color: var(--gold-dark); line-height: 1.5; }
.jieqian__rows dt small, .jieqian__rows dd small { display: block; color: #A89C8C; font-weight: 400; font-size: 13px; }
.jieqian__rows dd { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink); }
.jieqian__classic { padding: 0 18px; border: 1px dashed var(--line); border-radius: 10px; }
.jieqian__classic summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; font-weight: 700; color: var(--gold-dark); }
.jieqian__classic p { margin: 0 0 16px; font-family: var(--serif); font-size: 18px; color: var(--muted); }
.jieqian__note { display: flex; gap: 10px; margin: 0; padding: 14px 16px; background: var(--paper-2); border-radius: 10px; color: var(--text); font-size: 15px; }
.jieqian__note .icon { color: var(--gold-dark); flex: none; margin-top: .3em; }
@media (max-width: 700px) { .jieqian__rows { grid-template-columns: 1fr; } .jieqian__plain p { font-size: 18px; } }

/* ---------- 線上求籤 ---------- */
/* 滿版場景：神像照片當背景，中間放籤筒或筊杯，下方大按鈕 */
/* 各尺寸都跟著螢幕高度縮放，確保按鈕不會被擋在畫面外 */
.qiuqian { position: relative; isolation: isolate; overflow: hidden; min-height: calc(100vh - 130px); min-height: calc(100svh - 130px); display: flex; align-items: center; color: #FBEFD9; background: #1E140D; scroll-margin-top: 0; }
.qq-bg { position: absolute; inset: 0; z-index: -1; background: var(--bg) center 20% / cover no-repeat; transform: scale(1.04); filter: saturate(1.1); }
.qq-bg::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, rgba(30, 20, 13, .25), rgba(30, 20, 13, .78) 70%), linear-gradient(180deg, rgba(30, 20, 13, .55), rgba(30, 20, 13, .35) 40%, rgba(30, 20, 13, .85)); }
.qq-inner { width: 100%; max-width: 680px; margin: 0 auto; padding: clamp(10px, 2.4vh, 34px) var(--gutter) clamp(10px, 2.4vh, 34px); display: flex; flex-direction: column; align-items: center; text-align: center; }
.qq-kicker { margin: 0; color: var(--gold-light); letter-spacing: .4em; font-weight: 700; font-size: 13px; }
.qq-title { color: #fff; font-size: clamp(26px, 4.6vh, 46px); letter-spacing: .3em; padding-left: .3em; margin: 2px 0 clamp(6px, 1.4vh, 14px); line-height: 1.25; text-shadow: 0 3px 16px rgba(0, 0, 0, .6); }
.qq-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.qq-steps li { min-width: 56px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(232, 205, 138, .35); color: #E9DCC2; font-size: 13px; font-weight: 700; }
.qq-steps li.is-done { background: rgba(201, 161, 74, .35); color: #fff; }
.qq-steps li.is-now { background: var(--red); border-color: var(--gold-light); color: #fff; }

.qq-visual { position: relative; width: 100%; height: clamp(160px, 30vh, 290px); margin: clamp(4px, 1vh, 10px) 0; }
.qq-tube-wrap, .qq-cups-wrap { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; transition: opacity .4s, transform .4s; }
.qiuqian[data-mode="tube"] .qq-cups-wrap, .qiuqian[data-mode="cups"] .qq-tube-wrap { opacity: 0; transform: scale(.92); pointer-events: none; }
.qq-tube { position: relative; z-index: 2; height: 100%; width: auto; transform-origin: 50% 95%; filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .55)); }
.qq-stick { position: absolute; z-index: 1; left: 50%; bottom: 40%; width: 34px; height: 72%; margin-left: -17px; border-radius: 7px; background: linear-gradient(90deg, #C79A4E, #F3DCA6, #B8893F); border: 1px solid #9C7232; box-shadow: 0 6px 16px rgba(0, 0, 0, .4); display: flex; justify-content: center; padding-top: 14px; opacity: 0; transform: translateY(30%); transition: transform .8s cubic-bezier(.2, 1.4, .4, 1), opacity .3s; }
.qq-stick::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 10px; background: var(--red); border-radius: 7px 7px 0 0; }
.qq-stick.is-up { opacity: 1; transform: translateY(-22%); z-index: 3; }
.qq-stick__no { writing-mode: vertical-rl; font-family: var(--serif); font-weight: 900; font-size: 19px; color: var(--red-dark); letter-spacing: .1em; }

.qq-cups-wrap { flex-direction: column; align-items: center; justify-content: flex-end; padding-bottom: 6%; }
.qq-cups { display: flex; gap: 14px; }
.qq-cup { width: clamp(110px, 21vh, 200px); height: auto; filter: drop-shadow(0 14px 12px rgba(0, 0, 0, .55)); }
.qq-cup .qq-cup__flat { display: none; }
.qq-cup.is-flat .qq-cup__flat { display: inline; }
.qq-cup.is-flat .qq-cup__round { display: none; }
.qq-cup.is-right { transform: scaleX(-1); }
.qq-status { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 14px; }
.qq-drawn { font-family: var(--serif); font-weight: 900; font-size: 19px; letter-spacing: .2em; color: var(--gold-light); white-space: nowrap; }
.qq-drawn:empty { display: none; }
.qq-stamp { position: absolute; top: 18%; left: 50%; display: grid; place-items: center; width: clamp(70px, 11vh, 104px); height: clamp(70px, 11vh, 104px); margin-left: calc(clamp(70px, 11vh, 104px) / -2); border-radius: 50%; font-family: var(--serif); font-weight: 900; font-size: clamp(20px, 3.2vh, 28px); letter-spacing: .05em; opacity: 0; transform: scale(1.6) rotate(-12deg); transition: opacity .3s, transform .35s cubic-bezier(.2, 1.5, .4, 1); pointer-events: none; }
.qq-stamp.is-show { opacity: 1; transform: scale(1) rotate(-8deg); }
.qq-stamp.is-holy { background: rgba(168, 32, 26, .92); color: #FFE9B8; box-shadow: inset 0 0 0 4px rgba(168, 32, 26, .92), inset 0 0 0 6px var(--gold-light), 0 8px 24px rgba(0, 0, 0, .4); }
.qq-stamp.is-laugh, .qq-stamp.is-no { background: rgba(43, 29, 20, .85); color: #E9DCC2; box-shadow: inset 0 0 0 4px rgba(43, 29, 20, .85), inset 0 0 0 6px #9C8F80, 0 8px 24px rgba(0, 0, 0, .4); }

@media (prefers-reduced-motion: no-preference) {
	.qq-tube.is-shaking { animation: qq-shake .4s ease-in-out 4; }
	.qq-cup.is-tossing { animation: qq-toss 1.1s ease-out; }
	.qq-cup.is-right.is-tossing { animation-name: qq-toss-r; }
	.qq-cup.is-landed { animation: qq-land .3s ease-out; }
	.qq-cup.is-right.is-landed { animation-name: qq-land-r; }
}
@keyframes qq-shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-10deg) translateY(-6px); } 75% { transform: rotate(10deg) translateY(-6px); } }
@keyframes qq-toss { 0% { transform: translateY(0) rotate(0); } 45% { transform: translateY(-200px) rotate(-200deg); } 78% { transform: translateY(0) rotate(-340deg); } 88% { transform: translateY(-18px) rotate(-355deg); } 100% { transform: translateY(0) rotate(-360deg); } }
@keyframes qq-toss-r { 0% { transform: scaleX(-1) translateY(0) rotate(0); } 45% { transform: scaleX(-1) translateY(-180px) rotate(-220deg); } 78% { transform: scaleX(-1) translateY(0) rotate(-340deg); } 88% { transform: scaleX(-1) translateY(-14px) rotate(-352deg); } 100% { transform: scaleX(-1) translateY(0) rotate(-360deg); } }
@keyframes qq-land { 0% { transform: translateY(-8px); } 100% { transform: translateY(0); } }
@keyframes qq-land-r { 0% { transform: scaleX(-1) translateY(-8px); } 100% { transform: scaleX(-1) translateY(0); } }

.qq-msg { width: 100%; padding: 10px 18px; margin-bottom: 10px; border-radius: 14px; background: rgba(30, 20, 13, .62); border: 1px solid rgba(232, 205, 138, .35); backdrop-filter: blur(4px); line-height: 1.6; }
.qq-msg strong { display: block; font-family: var(--serif); font-weight: 900; font-size: 21px; color: #fff; letter-spacing: .08em; }
.qq-msg span { color: #EFE3CC; font-size: 16px; }
.qq-msg.is-good { border-color: var(--gold-light); }
.qq-msg.is-good strong { color: var(--gold-light); }
.qq-msg.is-warn strong { color: #F3B6A8; }
.qq-count { display: none; align-items: center; gap: 6px; margin: 0; }
.qiuqian.show-count .qq-count { display: flex; }
.qq-count i { width: 24px; height: 24px; border-radius: 50%; border: 2px dashed var(--gold-light); }
.qq-count i.is-on { border: 2px solid var(--gold-light); background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12l5 5 9-10' fill='none' stroke='%23F3D9A0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.qq-actions { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; }
.qq-action { width: min(380px, 100%); min-height: 56px; border-radius: 999px; border: 2px solid var(--gold-light); background: linear-gradient(180deg, #C0362A, var(--red) 60%, var(--red-dark)); color: #fff; font-family: var(--serif); font-weight: 900; font-size: 21px; letter-spacing: .3em; padding-left: .3em; cursor: pointer; box-shadow: 0 10px 26px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .15s, filter .15s; }
.qq-action:hover { filter: brightness(1.08); transform: translateY(-1px); }
.qq-action:active { transform: translateY(1px); }
.qq-restart { min-height: 44px; padding: 0 14px; border: 0; background: none; color: #D9CDB6; text-decoration: underline; cursor: pointer; font-size: 15px; }
.qq-help { margin-top: 6px; font-size: 15px; color: #E9DCC2; text-align: left; }
.qq-help summary { cursor: pointer; font-weight: 700; color: var(--gold-light); min-height: 40px; display: flex; align-items: center; justify-content: center; }
.qq-help ul { margin: 4px 0 0; padding: 12px 16px 12px 2em; background: rgba(30, 20, 13, .6); border-radius: 10px; }
.qq-note { margin: 14px 0 0; color: #BFB19A; font-size: 14px; }
/* 手機直式：上方公告列、頁首與底部快速按鈕都會佔空間，整個場景再縮小一點 */
@media (max-width: 600px) {
	.qiuqian { min-height: 0; align-items: flex-start; }
	.qq-inner { padding: 14px 14px 18px; }
	.qq-kicker { font-size: 12px; letter-spacing: .25em; }
	.qq-title { font-size: 26px; margin-bottom: 8px; }
	.qq-steps { gap: 4px; }
	.qq-steps li { min-width: 0; padding: 2px 8px; font-size: 12px; }
	.qq-visual { height: clamp(140px, 24vh, 210px); }
	.qq-stick { width: 28px; }
	.qq-stick__no { font-size: 16px; }
	.qq-cup { width: clamp(110px, 36vw, 150px); }
	.qq-cups { gap: 8px; }
	.qq-msg { padding: 8px 14px; }
	.qq-msg strong { font-size: 19px; }
	.qq-msg span { font-size: 15px; }
	.qq-action { min-height: 54px; font-size: 20px; }
}
/* 比較矮的螢幕（小筆電、手機橫放）：標題縮小、不顯示副標 */
@media (max-height: 720px) {
	.qq-kicker { display: none; }
	.qq-title { font-size: 26px; margin-bottom: 6px; }
	.qq-visual { height: clamp(130px, 25vh, 180px); }
	.qq-msg span { font-size: 15px; }
}
/* 列印籤詩：只印一張像廟裡拿到的小籤紙 */
.fortune-print { display: none; }
@media print {
	body.post-type-archive-fortune > *:not(main),
	body.post-type-archive-fortune main > *:not(.fortune-print) { display: none !important; }
	body.post-type-archive-fortune { background: #fff; padding: 0; }
	body.post-type-archive-fortune .fortune-print { display: flex; justify-content: center; padding-top: 8mm; }
}
.fortune-print__slip {
	width: 95mm; height: 150mm; box-sizing: border-box; padding: 9mm 7mm 8mm;
	display: flex; flex-direction: column; align-items: center; text-align: center;
	background: #FFFBEF; color: #A8201A; font-family: var(--serif);
	border: 1.2mm solid #A8201A; outline: .35mm solid #A8201A; outline-offset: -2.8mm;
	-webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.fortune-print__temple { margin: 0; font-size: 9pt; font-weight: 700; letter-spacing: .2em; }
.fortune-print__no { margin: 3mm 0 1mm; font-size: 26pt; font-weight: 900; letter-spacing: .3em; padding-left: .3em; line-height: 1.2; }
.fortune-print__grade { margin: 0 0 4mm; padding: .5mm 4mm; border: .35mm solid #A8201A; font-size: 11pt; font-weight: 700; letter-spacing: .3em; }
.fortune-print__poem { flex: 1; display: flex; flex-direction: row-reverse; justify-content: center; align-items: flex-start; gap: 4mm; padding: 5mm 0; border-top: .35mm solid #C9A14A; border-bottom: .35mm solid #C9A14A; width: 100%; color: #2B1D14; font-size: 23pt; font-weight: 900; letter-spacing: .28em; }
.fortune-print__poem p { margin: 0; writing-mode: vertical-rl; white-space: nowrap; line-height: 1.2; }
.fortune-print__title { margin: 4mm 0 0; font-size: 12pt; font-weight: 900; letter-spacing: .3em; }
.steps li { font-size: 18px; }
@media (max-width: 700px) { .fortune-card__parts { grid-template-columns: 1fr; } }

/* ---------- 關於、添油香、交通、聯絡 ---------- */
.about { display: grid; grid-template-columns: 8fr 4fr; gap: 32px; align-items: start; }
.about__side { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; }
.about__deity { display: block; text-decoration: none; }
.about__deity img { aspect-ratio: 4 / 5; }
.about__deity-cap { display: block; text-align: center; color: var(--red); font-family: var(--serif); font-weight: 900; font-size: 20px; padding-top: 14px; letter-spacing: .2em; }
.about__deity:hover .about__deity-cap { text-decoration: underline; }
.mini-facts { margin: 0 0 18px; display: grid; gap: 10px; }
.mini-facts div { display: grid; grid-template-columns: 5em 1fr; gap: 8px; padding-bottom: 10px; border-bottom: 1px dashed var(--line); font-size: 16px; }
.mini-facts dt { color: var(--gold-dark); font-weight: 700; }
.mini-facts dd { margin: 0; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } .about__side { position: static; max-width: 480px; margin: 0 auto; width: 100%; } }

.donate { display: grid; grid-template-columns: 7fr 5fr; gap: 32px; align-items: start; }
.donate__side { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 24px); }
.account-card {
	border-radius: 16px; padding: 28px; color: #fff;
	background: radial-gradient(ellipse at 20% 0%, #C93A2E, var(--red) 45%, var(--red-dark));
	box-shadow: inset 0 0 0 8px var(--red-dark), inset 0 0 0 9.5px var(--gold), var(--shadow-lg);
}
.account-card__kicker { display: flex; align-items: center; gap: 8px; color: var(--gold-light); font-family: var(--serif); font-weight: 900; font-size: 22px; letter-spacing: .2em; }
.account-card__list { margin: 0; display: grid; gap: 12px; }
.account-card__list div { border-bottom: 1px solid rgba(232, 205, 138, .3); padding-bottom: 10px; }
.account-card__list dt { color: var(--gold-light); font-size: 15px; }
.account-card__list dd { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: .05em; word-break: break-all; }
.account-card__note { font-size: 15px; color: #F6D9D0; margin: 4px 0 0; }
.copy-btn { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--gold-light); background: transparent; color: var(--gold-light); font-size: 14px; cursor: pointer; vertical-align: middle; }
.copy-btn:hover, .copy-btn.is-done { background: var(--gold-light); color: var(--ink); }
@media (max-width: 900px) { .donate { grid-template-columns: 1fr; } .donate__side { position: static; } }

.visit-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 28px; }
.info-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; display: flex; flex-direction: column; border-top: 4px solid var(--gold); }
.info-card h2 { font-size: 22px; margin-bottom: 8px; letter-spacing: .2em; }
.info-card p { flex: 1; }
.info-card__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--red-soft); color: var(--red); margin-bottom: 12px; }
.big-link { font-family: var(--serif); font-weight: 900; font-size: 28px; text-decoration: none; }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 40px; aspect-ratio: 16 / 7; background: var(--paper-2); }
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 900px) { .visit-cards { grid-template-columns: 1fr; } .map-wrap { aspect-ratio: 4 / 3; } }

.contact { display: grid; grid-template-columns: 4fr 8fr; gap: 32px; align-items: start; }
.contact__info { display: grid; gap: 14px; position: sticky; top: calc(var(--header-h) + 24px); }
.contact__main { display: grid; gap: 28px; }
.contact-tile { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); border-left: 4px solid var(--red); }
.contact-tile:hover { color: var(--red); transform: translateY(-2px); }
.contact-tile small { display: block; color: var(--muted); font-size: 14px; }
.contact-tile strong { font-size: 19px; line-height: 1.5; word-break: break-all; }
.contact-tile__icon { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 50%; background: var(--red); color: var(--gold-light); }
.contact-tile--line { border-left-color: #06C755; }
.contact-tile--line .contact-tile__icon { background: #06C755; color: #fff; }
.contact-tile--fb { border-left-color: #1877F2; }
.contact-tile--fb .contact-tile__icon { background: #1877F2; color: #fff; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } .contact__info { position: static; } }

/* 表單 */
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; font-weight: 700; color: var(--ink); }
.form__field em { font-style: normal; font-size: 13px; color: #fff; background: var(--red); padding: 0 8px; border-radius: 4px; margin-left: 4px; font-weight: 500; }
.form__field input, .form__field select, .form__field textarea { width: 100%; min-height: 54px; padding: 10px 14px; border: 1.5px solid #CDBFA8; border-radius: 10px; background: #fff; font-weight: 400; font-size: 18px; }
.form__field textarea { min-height: 150px; resize: vertical; }
.form__field input:focus, .form__field select:focus, .form__field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(201, 161, 74, .3); }
.form__help { color: var(--muted); font-size: 15px; margin: -6px 0 16px; }
.form__check { display: flex; align-items: flex-start; gap: 12px; margin: 4px 0 20px; cursor: pointer; }
.form__check input { width: 26px; height: 26px; flex: none; margin-top: 3px; accent-color: var(--red); }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-radius: 10px; background: var(--red-soft); color: var(--red-dark); font-weight: 700; margin-bottom: 20px; }
.alert--ok { background: #E3F1E0; color: #23662B; }
@media (max-width: 600px) { .form__row { grid-template-columns: 1fr; gap: 0; } }

/* ---------- 線上點燈 ---------- */
.light-steps { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; counter-reset: none; }
.light-steps li { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 15px; color: var(--muted); position: relative; }
.light-steps li::after { content: ''; position: absolute; top: 20px; left: calc(50% + 26px); right: calc(-50% + 26px); height: 2px; background: var(--line); }
.light-steps li:last-child::after { display: none; }
.light-steps span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); font-weight: 700; font-family: var(--serif); }
.light-steps .is-done span { border-color: var(--gold); color: var(--gold-dark); }
.light-steps .is-now { color: var(--red); font-weight: 700; }
.light-steps .is-now span { background: var(--red); border-color: var(--red); color: #fff; }
.light-intro { text-align: center; color: var(--muted); max-width: 680px; margin: 0 auto 28px; }

.light-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 28px; }
.light-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 20px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.light-card.is-out { opacity: .6; }
.light-card__icon { display: grid; place-items: center; width: 58px; height: 58px; flex: none; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--red); margin-bottom: 10px; }
.light-card__icon .icon { width: 28px; height: 28px; }
.light-card__name { font-size: 22px; margin: 0 0 4px; }
.light-card__price { margin: 0; color: var(--red); }
.light-card__price b { font-family: var(--serif); font-size: 30px; }
.light-card__head { margin: 0; color: var(--gold-dark); font-size: 15px; font-weight: 700; }
.light-card__tag { margin: 6px 0 0; display: inline-block; padding: 2px 12px; border-radius: 999px; background: var(--paper-2); font-size: 14px; }
.light-card__desc { color: var(--muted); font-size: 15px; line-height: 1.6; margin: 12px 0 16px; flex: 1; }
.light-card__btn.is-disabled { background: #ddd3c4; color: var(--muted); cursor: not-allowed; }
@media (max-width: 960px) { .light-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .light-grid { grid-template-columns: 1fr; } .light-steps { font-size: 13px; } .light-steps li { font-size: 13px; } }

.light-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 40px); box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 16px); }
.light-form__head { display: flex; gap: 16px; align-items: center; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 2px solid var(--gold); }
.light-form__head h2 { margin: 0; font-size: 26px; }
.light-form__head p { margin: 0; color: var(--muted); font-size: 15px; }
.light-form__change { margin-left: auto; white-space: nowrap; font-size: 15px; }
.light-form__price { font-size: 18px; }
.light-form__price b { color: var(--red); font-size: 26px; font-family: var(--serif); }
.tier { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tier label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 16px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 700; background: #fff; }
.tier label:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.tier label.is-out { opacity: .5; cursor: not-allowed; }
.tier input { width: 22px; height: 22px; accent-color: var(--red); }
.tier b { margin-left: auto; color: var(--red); font-size: 20px; }
.tier small { width: 100%; color: var(--muted); font-weight: 400; }

.person { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 6px; margin: 0 0 20px; background: #FFFDF8; }
.person__title { padding: 0 10px; font-family: var(--serif); font-weight: 900; font-size: 20px; color: var(--red); }
.person__tools { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 14px; padding: 12px 14px; background: var(--paper-2); border-radius: 10px; font-size: 16px; }
.person__tools select { min-height: 44px; border: 1.5px solid #CDBFA8; border-radius: 8px; padding: 0 10px; background: #fff; }
.person__tools .btn { min-height: 44px; font-size: 15px; }
.seg { display: flex; gap: 8px; }
.seg label { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; border: 2px solid #CDBFA8; border-radius: 10px; background: #fff; cursor: pointer; font-weight: 700; }
.seg label:has(input:checked) { border-color: var(--red); background: var(--red-soft); color: var(--red-dark); }
.seg input { width: 20px; height: 20px; accent-color: var(--red); }
.birth { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 8px; align-items: center; }
.birth select { width: 100%; min-height: 54px; padding: 8px 10px; border: 1.5px solid #CDBFA8; border-radius: 10px; background: #fff; font-size: 18px; font-weight: 400; }
.person__leap { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; white-space: nowrap; }
.person__leap input { width: 22px; height: 22px; accent-color: var(--red); }
.person__leap[hidden] { display: none; }
.person__zodiac-hint { color: var(--gold-dark); font-weight: 400; font-size: 14px; }
@media (max-width: 600px) { .birth { grid-template-columns: 1fr 1fr; } .birth__part:first-child { grid-column: 1 / -1; } }

.login-needed { text-align: center; }
.login-needed .panel__title { justify-content: center; }
.login-needed__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* 購物車 */
.cart-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.cart-item { display: flex; gap: 16px; justify-content: space-between; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 12px; }
.cart-item.is-gone { opacity: .6; border-left-color: #999; }
.cart-item__title { font-size: 21px; margin: 0 0 6px; }
.cart-item__people { list-style: none; margin: 0; padding: 0; font-size: 16px; color: var(--muted); }
.cart-item__people b { color: var(--ink); }
.cart-item__side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; }
.cart-item__price { font-family: var(--serif); font-weight: 900; font-size: 22px; color: var(--red); white-space: nowrap; }
.cart-item__remove { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); cursor: pointer; }
.cart-item__remove:hover { border-color: var(--red); color: var(--red); }
.cart-total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0 28px; font-size: 18px; }
.cart-total p { margin: 0; }
.cart-total__sum { font-family: var(--serif); font-size: 32px; color: var(--red); }
.empty-cart { text-align: center; padding: 48px 0; color: var(--muted); }
.empty-cart .icon { width: 56px; height: 56px; color: var(--gold); }
.checkout { scroll-margin-top: calc(var(--header-h) + 16px); }
.pay-options { display: grid; gap: 10px; font-weight: 400; }
.pay-options label { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 2px solid #CDBFA8; border-radius: 12px; background: #fff; cursor: pointer; font-size: 16px; }
.pay-options label:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.pay-options input { width: 22px; height: 22px; margin-top: 3px; flex: none; accent-color: var(--red); }
.pay-options b { display: block; font-size: 18px; color: var(--ink); }
@media (max-width: 560px) { .cart-item { flex-direction: column; } .cart-item__side { flex-direction: row; align-items: center; } }

/* 會員 */
.auth { max-width: 620px; margin: 0 auto; }
.auth__tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin-bottom: 16px; }
.auth__tabs a { display: grid; place-items: center; min-height: 54px; border-radius: 12px; background: var(--paper-2); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; }
.auth__tabs a.is-active { background: var(--red); color: #fff; }
.auth__links { text-align: center; margin: 16px 0 0; font-size: 16px; }
.member-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.member-head p { margin: 0; font-size: 20px; }
.member-head__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.member-head__actions form { margin: 0; }
.member-tabs { margin-bottom: 24px; }
.done-box { padding: 28px; margin-bottom: 24px; border: 2px solid var(--gold); border-radius: var(--radius); background: #FFFBEF; text-align: center; }
.done-box h2 { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--red); }
.done-box__no { font-family: var(--serif); font-size: 28px; color: var(--red); letter-spacing: .08em; }
.my-order { padding: 18px 20px; margin-bottom: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.my-order__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 16px; color: var(--muted); }
.my-order__head b { color: var(--ink); font-size: 18px; }
.my-order__items { margin: 10px 0; padding-left: 1.2em; }
.my-order__total { margin: 0; text-align: right; }
.my-order__total b { color: var(--red); font-size: 20px; }
.family-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.family-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.family-list form { margin: 0; }
.member-forms { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.danger-zone { border-top-color: #9C8F80; }
@media (max-width: 760px) { .member-forms { grid-template-columns: 1fr; } }
.temple-st { display: inline-block; padding: 2px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.temple-st--pending { background: #FCE8C3; color: #7A5300; }
.temple-st--paid { background: #DDEFD9; color: #23662B; }
.temple-st--done { background: #D9E7F5; color: #1F4E79; }
.temple-st--cancelled { background: #E8E2D9; color: #7A6E60; }

/* ---------- 頁尾 ---------- */
.site-footer { position: relative; background: var(--ink-deep); color: #E3D7C1; padding-top: 72px; }
.site-footer__deco { position: absolute; top: 18px; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 var(--gutter); pointer-events: none; }
.site-footer__cloud { width: 150px; color: var(--gold); opacity: .3; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.brand--footer .brand__name { color: #fff; }
.brand--footer .brand__sub { color: #BFAF96; }
.site-footer__tagline { color: var(--gold-light); font-family: var(--serif); margin: 16px 0; letter-spacing: .1em; }
.site-footer__title { color: var(--gold-light); font-size: 20px; letter-spacing: .25em; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid rgba(232, 205, 138, .25); }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .icon { color: var(--gold); margin-top: .35em; }
.contact-list a, .footer-links a { color: #F1E6D0; text-decoration: none; }
.contact-list a:hover, .footer-links a:hover { color: var(--gold-light); text-decoration: underline; }
.contact-list li:first-child a { font-size: 22px; font-weight: 700; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.footer-links a { display: inline-flex; min-height: 44px; align-items: center; }
.social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.social__btn { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 16px; border-radius: 10px; color: #fff; text-decoration: none; font-weight: 700; }
.social__btn--line { background: #06C755; }
.social__btn--fb { background: #1877F2; }
.social__btn:hover { color: #fff; filter: brightness(1.1); }
.site-footer__bottom { border-top: 1px solid rgba(232, 205, 138, .15); padding: 18px 0; font-size: 15px; color: #A99A83; }
.site-footer__bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.site-footer__bottom p { margin: 0; }
.site-footer__bottom a { color: #CDBFA8; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* 手機底部快速按鈕列 */
.action-bar { display: none; }
@media (max-width: 900px) {
	body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
	.action-bar {
		display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
		background: var(--red); border-top: 2px solid var(--gold);
		padding-bottom: env(safe-area-inset-bottom);
		box-shadow: 0 -4px 16px rgba(0, 0, 0, .15);
	}
	.action-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 62px; color: #fff; text-decoration: none; font-size: 14px; font-weight: 700; letter-spacing: .1em; }
	.action-bar a + a { border-left: 1px solid rgba(255, 255, 255, .15); }
	.action-bar .icon { width: 24px; height: 24px; color: var(--gold-light); }
	.nav-open .action-bar { display: none; }
}

/* ---------- 淡入動畫（輕微，不閃爍） ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .reveal { opacity: 1; transform: none; transition: none; }
	.hero__slide { transition: none; }
}

/* ---------- 列印 ---------- */
@media print {
	.site-header, .notice-bar, .action-bar, .site-footer, .hero__lanterns { display: none !important; }
	.page-hero { min-height: 0; color: #000; background: none; }
	.page-hero::before, .page-hero::after { display: none; }
	.page-hero__title { color: #000; text-shadow: none; }
	.js .reveal { opacity: 1; transform: none; }
}
