/* 大溪 奏天宮 官網：前台樣式
   依設計線稿「配色提案 A 墨松綠・鎏金」（2026-11-09）重製。
   原則：深色底用亮金／鎏金，淺色底用古金；金色只用在標題、框線、按鈕與圖示。長輩閱讀：內文 18px 起、按鈕高 48px 以上。 */
:root {
  --green: #1F3D33;        /* 墨松綠：導覽、主按鈕、深色區塊 */
  --green-deep: #17302A;   /* 深林綠：頁尾 */
  --green-soft: #E6ECE7;
  --gold: #C9A45C;         /* 鎏金：按鈕、框線、圖示 */
  --gold-light: #E2C68C;   /* 亮金：深色底上的標題字 */
  --gold-dark: #8C6A34;    /* 古金：淺色底上的金色字 */
  --cream: #F3E8D2;        /* 金箔米：區塊底色 */
  --paper: #F6F2EA;        /* 宣紙米：全站底色 */
  --white: #FFFDF8;
  --ink: #1B1F1D;
  --muted: #535B56;
  --cinnabar: #9E3B2E;     /* 朱印 */
  --line: #DCCDAA;
  --line-soft: #D6D0C2;
  --line-green: #06C755;
  --ok: #2F7D5A;
  --warn: #B5541C;
  --serif: "Noto Serif TC", "PMingLiU", serif;
  --sans: "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Noto Sans CJK TC", "Heiti TC", sans-serif;   /* 系統內建黑體，不另外下載 */
  --num: var(--sans);
  --radius: 2px;
  --radius-md: 6px;
  --shadow: 0 10px 28px rgba(23, 48, 42, 0.12);
  --meander: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14'%3E%3Cpath d='M1 12H12V2H4V9H9V5H6' fill='none' stroke='%23C9A45C' stroke-width='1'/%3E%3C/svg%3E");
  /* 舊點燈頁仍在用的縮圖 */
  --img-lamp-pingan: url("/ph-lamp-pingan.jpg");
  --img-lamp-guangming: url("/ph-lamp-guangming.jpg");
  --img-lamp-caishen: url("/ph-lamp-caishen.jpg");
  --img-lamp-head: url("/ph-lamp-head.jpg");
  /* 舊變數名（結帳／訂單頁沿用） */
  --red: var(--green); --red-deep: var(--green-deep); --navy: var(--green); --navy-deep: var(--green-deep); --sea: var(--gold-dark); --jade: var(--ok); --cream-old: var(--cream);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); line-height: 1.8; font-size: 18px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; margin: 0; letter-spacing: 0.06em; line-height: 1.3; color: var(--green); }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
.container { width: min(1200px, 100% - 40px); margin: 0 auto; }
.narrow { width: min(880px, 100% - 40px); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.num, .amt, .price, .oid, .lamp-no { font-family: var(--num); font-variant-numeric: tabular-nums; }

/* ---------- 共用：按鈕、標籤、提示 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 26px; border-radius: var(--radius); border: 1px solid transparent; font-weight: 700; font-size: 17px; cursor: pointer; transition: transform .2s ease, opacity .2s ease, background .2s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled, .btn.disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-green { background: var(--green); color: var(--gold-light); }
.btn-outline { background: transparent; border-color: var(--gold); color: var(--gold-dark); }
.dark .btn-outline, .section.dark .btn-outline { color: var(--gold-light); border-color: var(--gold); }
.btn-ghost { background: transparent; border-color: var(--line-soft); color: var(--muted); }
.btn-line { background: var(--line-green); color: #fff; }
.btn-red { background: var(--green); color: var(--gold-light); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 0 36px; font-size: 19px; }
.btn-block { width: 100%; }
.arrow { display: inline-block; transition: transform .3s ease; }
a:hover .arrow, .btn:hover .arrow { transform: translateX(5px); }
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border: 1px solid var(--gold); color: var(--gold-dark); font-size: 13px; font-weight: 500; letter-spacing: .04em; border-radius: var(--radius); background: var(--paper); }
.tag.red { background: var(--cinnabar); border-color: var(--cinnabar); color: #fff; }
.tag.green { background: var(--green); border-color: var(--green); color: var(--gold-light); }
.tag.gray { background: var(--green-soft); border-color: var(--green-soft); color: var(--muted); }
.tag.orange { background: #F5E2CF; border-color: #F5E2CF; color: var(--warn); }
.kicker { display: block; font-size: 14px; letter-spacing: .4em; color: var(--gold-dark); margin-bottom: 10px; }
.dark .kicker, .section.dark .kicker { color: var(--gold-light); }
.gold-line { width: 56px; height: 2px; background: var(--gold); margin: 14px 0 0; }
.gold-line.center { margin-left: auto; margin-right: auto; }
.alert { padding: 12px 16px; border-radius: var(--radius-md); font-size: 16px; margin: 12px 0; border: 1px solid transparent; }
.alert.err { background: #F8E7E3; color: var(--cinnabar); border-color: #EBC8C0; }
.alert.info { background: var(--cream); color: var(--gold-dark); border-color: var(--line); }
.alert.ok { background: #E3EFE7; color: var(--ok); border-color: #C9DFD0; }
.empty { padding: 32px 20px; text-align: center; color: var(--muted); background: var(--cream); border: 1px dashed var(--line); border-radius: var(--radius-md); }
.meander { height: 18px; background: var(--green) var(--meander) repeat-x center; }
.frame { border: 1px solid var(--gold); padding: 6px; background: var(--paper); }
.frame > img, .frame > .ph { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph { background: #D7DCD3; color: var(--muted); font-size: 14px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px; }

/* ---------- 示範橫幅／頁首 ---------- */
.demo-ribbon { background: var(--green-deep); color: var(--gold-light); font-size: 14px; text-align: center; padding: 6px 12px; letter-spacing: .05em; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 242, 234, .96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 28px; font-weight: 700; letter-spacing: .14em; color: var(--green); }
.brand .logo { width: 52px; height: 52px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { position: relative; display: inline-flex; align-items: center; height: 48px; padding: 0 14px; font-size: 17px; font-weight: 500; color: var(--ink); }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px; background: var(--gold); transform: scaleX(0); transform-origin: left center; transition: transform .3s ease; }
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); }
.nav .nav-line { margin-left: 14px; }
.nav a.btn-green { color: var(--gold-light); padding: 0 22px; }
.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius-md); color: var(--green); cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }
@media (max-width: 1120px) {
  .site-header .container { height: 68px; }
  .brand { font-size: 22px; } .brand .logo { width: 42px; height: 42px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--paper); border-bottom: 3px solid var(--green); box-shadow: var(--shadow); padding: 8px 20px 18px; }
  .nav.open { display: flex; }
  .nav a { height: 52px; font-size: 18px; }
  .nav a:not(.btn)::after { display: none; }
  .nav .nav-line { margin: 10px 0 0; }
}

/* ---------- 頁面外框、LINE 浮動鈕 ---------- */
.page-wrap { position: relative; }
.fab-dock { position: fixed; right: max(16px, calc((100vw - 1200px) / 2 - 84px)); bottom: 28px; z-index: 40; }
.fab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: 64px; height: 64px; background: var(--line-green); color: #fff; font-weight: 700; font-size: 11px; line-height: 1.2; border-radius: 50%; box-shadow: 0 8px 20px rgba(0, 0, 0, .22); transition: transform .2s ease; }
.fab:hover { transform: translateY(-3px); }
.fab::after { content: attr(data-tip); position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%); background: var(--green); color: var(--gold-light); padding: 8px 14px; border-radius: 999px; white-space: nowrap; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
@media (hover: hover) { .fab:hover::after, .fab:focus-visible::after { opacity: 1; } }
.fab svg { width: 28px; height: 28px; }
@media (max-width: 640px) { .fab-dock { right: 12px; bottom: 16px; } .fab { width: 56px; height: 56px; font-size: 10px; } .fab svg { width: 24px; height: 24px; } }

/* ---------- 頁尾 ---------- */
.site-footer { background: var(--green-deep); color: #E9EDE8; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; padding: 48px 0 32px; align-items: start; }
.f-brand { display: flex; align-items: center; gap: 14px; font-family: var(--serif); font-size: 28px; letter-spacing: .14em; color: var(--gold-light); font-weight: 700; margin-bottom: 26px; }
.f-brand img { width: 60px; height: 60px; object-fit: contain; }
.f-info { margin: 0; display: grid; gap: 14px; }
.f-info dt { font-size: 13px; color: #B9C4BD; letter-spacing: .1em; }
.f-info dd { margin: 0; font-size: 18px; font-weight: 700; color: #fff; }
.f-info dd.note { font-size: 13px; font-weight: 400; color: #B9C4BD; }
.f-line { display: flex; align-items: center; gap: 18px; margin-top: 26px; }
.f-line img { width: 112px; height: 112px; background: #fff; padding: 6px; }
.f-line p { font-size: 14px; color: #D5DCD6; margin: 0 0 10px; }
.f-map-head { display: flex; justify-content: space-between; align-items: baseline; margin-top: 128px; margin-bottom: 12px; }
.f-map-head h3 { color: var(--gold-light); font-size: 24px; }
.f-map-head a { color: var(--gold-light); font-size: 15px; }
.f-map { display: block; border: 1px solid rgba(201, 164, 92, .4); }
.f-map svg, .f-map img { display: block; width: 100%; height: auto; }
.f-bottom { border-top: 1px solid rgba(255, 255, 255, .14); padding: 18px 0 26px; font-size: 13px; color: #B9C4BD; }
.f-bottom a { color: #D5DCD6; }
.f-bottom .sep { margin: 0 10px; opacity: .5; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } .f-map-head { margin-top: 8px; } }

/* ---------- 區塊 ---------- */
.section { padding: 80px 0; }
.section.alt { background: var(--cream); }
.section.dark { background: var(--green); color: #E9EDE8; }
.section.dark h2, .section.dark h3 { color: var(--gold-light); }
.section.tight { padding: 56px 0; }
.sec-head { margin-bottom: 36px; }
.sec-head h2 { font-size: 36px; }
.sec-head.center { text-align: center; }
.sec-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.sec-head .more { color: var(--gold-dark); font-weight: 500; font-size: 16px; text-decoration: underline; text-underline-offset: 5px; }
.section.dark .sec-head .more { color: var(--gold-light); }
.lead { font-size: 18px; color: var(--muted); line-height: 1.9; }
@media (max-width: 760px) { .section { padding: 56px 0; } .sec-head h2 { font-size: 28px; } }

/* ---------- 子頁頁首 ---------- */
.page-hero { position: relative; min-height: 340px; display: flex; align-items: center; justify-content: center; text-align: center; color: #fff; overflow: hidden; background: var(--green-deep); }
.page-hero .bg { position: absolute; inset: 0; background-image: var(--bg); background-size: cover; background-position: center; animation: zoom 6s ease-out both; }
@media (max-width: 800px) { .page-hero .bg { background-image: var(--bg-sm, var(--bg)); } }
.page-hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23, 48, 42, .55), rgba(23, 48, 42, .7)); }
.page-hero .inner { position: relative; padding: 48px 20px; }
.page-hero h1 { color: var(--gold-light); font-size: 48px; letter-spacing: .3em; text-shadow: 0 2px 12px rgba(0, 0, 0, .5); animation: rise .9s ease-out both .2s; }
.page-hero.with-seal h1 { color: #fff; }   /* 宮廟沿革：線稿這頁的大標是白色，其餘頁面是亮金 */
.page-hero p { margin: 14px 0 0; font-size: 20px; color: #E9EDE8; animation: rise .9s ease-out both .5s; }
.page-hero .seal { width: 64px; height: 64px; margin: 0 auto 10px; animation: sealIn .7s ease-out both .9s; }
.page-hero.compact { min-height: 200px; }
.page-hero.compact h1 { font-size: 36px; }
@media (max-width: 760px) { .page-hero { min-height: 240px; } .page-hero h1 { font-size: 34px; letter-spacing: .2em; } }
.page-body { padding: 56px 0 80px; }
.breadcrumb { font-size: 15px; color: var(--muted); padding: 22px 0 0; }
.breadcrumb a { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 4px; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes sealIn { 0% { opacity: 0; transform: scale(1.35); } 60% { opacity: 1; transform: scale(.96); } 100% { opacity: 1; transform: scale(1); } }
@keyframes zoom { from { transform: scale(1.05); } to { transform: scale(1); } }
@keyframes glow { 0%, 100% { text-shadow: 0 0 8px rgba(255, 226, 150, .55), 0 0 24px rgba(240, 200, 120, .45), 0 0 56px rgba(201, 164, 92, .35), 0 2px 3px rgba(0, 0, 0, .55); } 50% { text-shadow: 0 0 12px rgba(255, 234, 170, .8), 0 0 36px rgba(245, 205, 125, .6), 0 0 80px rgba(210, 170, 95, .45), 0 2px 3px rgba(0, 0, 0, .55); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
.pulse { animation: pulse 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { *, *::after, *::before { animation: none !important; transition: none !important; } }

/* ---------- 首頁：主視覺 ---------- */
.hero { position: relative; background: var(--green-deep); color: #fff; }
.hero .bg { position: relative; height: 620px; overflow: hidden; }
.hero .bg img { width: 100%; height: 100%; object-fit: cover; animation: zoom 6s ease-out both; }
.hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(23, 48, 42, .35), rgba(23, 48, 42, .1) 50%, rgba(23, 48, 42, .5)); }
.hero .title { position: absolute; right: max(20px, calc((100% - 1200px) / 2 + 20px)); top: 56px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero .title img { width: 92px; height: 92px; animation: sealIn .7s ease-out both 1.3s; }
.hero .title h1 { writing-mode: vertical-rl; font-size: 84px; letter-spacing: .35em; color: var(--gold-light); animation: rise .9s ease-out both .3s; line-height: 1; margin: 0; }
.hero .title h1 span { display: inline-block; animation: glow 4s ease-in-out infinite; }
.hero .meander { position: absolute; left: 0; right: 0; bottom: 0; }
.hero-card { position: relative; width: min(1200px, 100% - 40px); margin: -160px auto 0; }
.hero-card .card { width: min(640px, 100%); background: var(--green); color: #fff; padding: 44px 48px 40px; box-shadow: var(--shadow); }
.hero-card .card .kicker { color: var(--gold-light); }
.hero-card .card h2 { color: #fff; font-size: 36px; line-height: 1.4; letter-spacing: .14em; }
.hero-card .card p { margin: 18px 0 0; font-size: 20px; color: #E9EDE8; line-height: 1.9; }
@media (max-width: 900px) {
  .hero .bg { height: 440px; }
  .hero .title { top: 28px; right: 20px; } .hero .title h1 { font-size: 56px; } .hero .title img { width: 64px; height: 64px; }
  .hero-card { margin-top: -80px; } .hero-card .card { padding: 30px 26px; } .hero-card .card h2 { font-size: 28px; }
}

/* 參拜動線 */
.route-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.route-grid figure { margin: 0; }
.route-grid .frame { aspect-ratio: 4 / 3; }
.route-grid figcaption { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.cnum { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-dark); display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 20px; font-weight: 700; }
.route-grid figcaption b { display: block; font-family: var(--serif); font-size: 22px; color: var(--green); }
.route-grid figcaption small { display: block; font-size: 18px; color: var(--muted); }
.center-cta { text-align: center; margin-top: 44px; }
@media (max-width: 760px) { .route-grid { grid-template-columns: 1fr; gap: 24px; } }

/* 關於＋三主神 */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.about-grid .frame { aspect-ratio: 4 / 3.6; }
.about-grid h2 { font-size: 40px; letter-spacing: .1em; }
.about-grid p { margin: 22px 0 32px; color: var(--muted); font-size: 20px; line-height: 2; }
.deity-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.deity-mini a { display: flex; align-items: center; gap: 16px; padding: 14px; border: 1px solid var(--gold); background: var(--cream); transition: transform .3s ease, box-shadow .3s ease; }
.deity-mini a:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.deity-mini img { width: 84px; height: 108px; object-fit: cover; flex: none; }
.deity-mini img[src$="w-deity-guan.webp"] { object-position: 21% center; }
.deity-card img[src$="w-deity-guan.webp"] { object-position: 12% center; }
.deity-mini b { display: block; font-family: var(--serif); font-size: 22px; color: var(--green); }
.deity-mini small { display: block; font-size: 18px; color: var(--muted); margin-top: 4px; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 28px; } .deity-mini { grid-template-columns: 1fr; } }

/* 祈福服務（深色） */
.services { display: grid; grid-template-columns: 1fr 1.25fr 1.25fr; gap: 32px; align-items: stretch; }
.services .intro h2 { font-size: 44px; letter-spacing: .16em; }
.services .intro p { color: #D5DCD6; font-size: 20px; margin-top: 22px; }
.svc-main { position: relative; display: flex; flex-direction: column; border: 1px solid var(--gold); background: var(--green); overflow: hidden; transition: transform .3s ease, border-color .3s ease; }
.svc-main:hover { transform: translateY(-4px); border-color: var(--gold-light); }
.svc-main .arch { height: 300px; overflow: hidden; border-radius: 160px 160px 0 0; margin: 14px 24px 0; }
.svc-main .arch img { width: 100%; height: 100%; object-fit: cover; }
.svc-main .body { padding: 26px 28px 30px; text-align: center; }
.svc-main .body b { display: block; font-family: var(--serif); font-size: 28px; color: var(--gold-light); letter-spacing: .1em; }
.svc-main .body small { display: block; color: #D5DCD6; font-size: 18px; margin: 8px 0 18px; }
.svc-side { display: grid; grid-template-rows: 1fr 1fr; gap: 24px; }
.svc-card { display: block; padding: 26px 28px; border: 1px solid rgba(201, 164, 92, .6); background: rgba(255, 255, 255, .03); transition: transform .3s ease, border-color .3s ease; }
.svc-card:hover { transform: translateY(-4px); border-color: var(--gold-light); }
.svc-card .ico { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--gold); display: inline-flex; align-items: center; justify-content: center; color: var(--gold-light); margin-bottom: 14px; }
.svc-card .ico svg { width: 26px; height: 26px; }
.svc-card b { display: block; font-family: var(--serif); font-size: 24px; color: var(--gold-light); }
.svc-card small { display: block; color: #D5DCD6; font-size: 18px; margin: 6px 0 16px; line-height: 1.7; }
/* 線上點燈關閉時：拿掉中間大卡，右邊兩張服務卡並排 */
.services.no-light { grid-template-columns: 1fr 2.5fr; align-items: center; }
.services.no-light .svc-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
.services.no-light .svc-card { padding: 34px 30px; }
@media (max-width: 980px) { .services, .services.no-light { grid-template-columns: 1fr; } .svc-side { grid-template-rows: auto; } }
@media (max-width: 640px) { .services.no-light .svc-side { grid-template-columns: 1fr; } }

/* 最新消息＋行事曆 */
.news-home { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.cal { border: 1px solid var(--gold); background: var(--cream); padding: 24px 26px 20px; }
.cal h3 { text-align: center; font-size: 20px; letter-spacing: .3em; margin-bottom: 8px; }
.cal .cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal .cal-nav b { font-family: var(--serif); font-size: 26px; letter-spacing: .12em; color: var(--green); }
.cal .cal-nav button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold); background: transparent; color: var(--gold-dark); cursor: pointer; font-size: 18px; }
.cal .grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal .wd { text-align: center; font-size: 13px; color: var(--gold-dark); letter-spacing: .1em; padding-bottom: 4px; }
.cal .wd.sun, .cal .wd.sat { color: var(--cinnabar); }
.cal .d { min-height: 64px; border: 1px solid var(--line); background: var(--paper); padding: 6px; font-size: 14px; font-weight: 700; color: var(--ink); display: flex; flex-direction: column; justify-content: space-between; }
.cal .d.blank { border-color: transparent; background: transparent; }
.cal .d.today { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.cal .d.today small { color: var(--gold-dark); font-size: 11px; font-weight: 400; }
.cal .d.ev { background: var(--green); color: var(--gold-light); border-color: var(--green); }
.cal .d.ev small { display: block; font-size: 11px; font-weight: 500; color: #fff; line-height: 1.3; }
.cal .d.past { opacity: .55; }
.cal ul { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.cal li a, .cal li span.row { display: flex; align-items: center; gap: 12px; font-size: 18px; }
.cal li .dt { color: var(--gold-dark); font-weight: 700; min-width: 48px; }
.cal li .lunar { color: var(--muted); font-size: 16px; }
.cal li .go { margin-left: auto; color: var(--cinnabar); font-weight: 700; }
.cal .none { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 18px; text-align: center; }
.news-rows { display: grid; gap: 0; }
.news-row { display: grid; grid-template-columns: 128px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.news-row:first-child { padding-top: 0; }
.news-row .cover { width: 128px; height: 90px; overflow: hidden; border: 1px solid var(--gold); background: var(--cream); }
.news-row .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.news-row:hover .cover img { transform: scale(1.04); }
.news-row .meta { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
.news-row b { display: block; font-size: 19px; color: var(--green); margin: 4px 0 2px; font-family: var(--serif); }
.news-row small { display: block; font-size: 18px; color: var(--muted); line-height: 1.6; }
.news-home .more-wrap { margin-top: 24px; }
@media (max-width: 900px) { .news-home { grid-template-columns: 1fr; } .news-row { grid-template-columns: 96px 1fr; } .news-row .cover { width: 96px; height: 70px; } }

/* 活動影音 */
.videos { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.videos.one { grid-template-columns: minmax(0, 760px); }
.video-frame { aspect-ratio: 16 / 9; border: 1px solid rgba(201, 164, 92, .6); background: rgba(255, 255, 255, .04); overflow: hidden; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-frame .ph.soon { background: transparent; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--gold-light); font-family: var(--serif); font-size: 18px; letter-spacing: .2em; }
.video-frame .ph.soon svg { width: 54px; height: 54px; opacity: .85; }
.videos .vt { display: block; margin-top: 10px; font-weight: 700; color: #E9EDE8; font-size: 18px; }
@media (max-width: 760px) { .videos { grid-template-columns: 1fr; } }

/* 專欄 */
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.col-card .frame { aspect-ratio: 16 / 9; }
.col-card .frame img { transition: transform .6s ease; }
.col-card:hover .frame img { transform: scale(1.03); }
.col-card b { display: block; text-align: center; font-family: var(--serif); font-size: 24px; color: var(--green); margin-top: 18px; letter-spacing: .06em; }
@media (max-width: 760px) { .columns { grid-template-columns: 1fr; } }

/* ---------- 最新消息列表 ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.tabs a, .tabs button { height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--gold); background: transparent; color: var(--gold-dark); font-weight: 500; font-size: 16px; cursor: pointer; }
.tabs .active { background: var(--green); border-color: var(--green); color: var(--gold-light); }
.pinned-event { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; border: 1px solid var(--gold); background: var(--cream); padding: 28px; margin-bottom: 64px; box-shadow: inset 0 0 0 6px var(--paper), inset 0 0 0 7px var(--gold); }
.pinned-event .cover { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.pinned-event .cover img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 14px; left: 14px; background: var(--green); color: var(--gold-light); font-size: 14px; font-weight: 700; padding: 6px 14px; }
.pinned-event .meta { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; font-size: 15px; color: var(--gold-dark); }
.pinned-event h3 { font-size: 34px; letter-spacing: .08em; margin-bottom: 16px; }
.kv-lines { display: grid; gap: 6px; font-size: 18px; }
.kv-lines span b { color: var(--gold-dark); font-weight: 700; margin-right: 6px; }
.pinned-event p { margin: 16px 0 22px; color: var(--muted); font-size: 18px; }
.pinned-event h3 a:hover { color: var(--gold-dark); }
.pinned-event .read { display: inline-block; margin: -8px 0 22px; color: var(--green); font-weight: 700; font-size: 18px; text-decoration: underline; text-underline-offset: 4px; }
.pinned-event .btns { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) { .pinned-event { grid-template-columns: 1fr; padding: 18px; } }
.post-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 36px; }
/* 最新消息：公告條列（字大、整列可點、日期一眼看到） */
.notice-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--gold); }
.notice-list > li { border-bottom: 1px solid var(--line); }
.notice-list > li.empty { padding: 36px 0; text-align: center; color: var(--muted); }
.notice { display: grid; grid-template-columns: 96px 1fr auto; gap: 24px; align-items: center; padding: 22px 12px; color: var(--ink); text-decoration: none; transition: background .2s; }
.notice:hover, .notice:focus-visible { background: var(--cream); }
.notice .nd { display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid var(--gold); background: #fff; height: 88px; line-height: 1.2; }
.notice .nd b { font-family: var(--serif); font-size: 28px; color: var(--green); letter-spacing: .02em; }
.notice .nd small { font-size: 15px; color: var(--muted); margin-top: 4px; }
.notice .nb { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.notice .meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; color: var(--muted); }
.notice .date-text { display: none; }
.notice .nt { font-size: 23px; line-height: 1.5; letter-spacing: .03em; color: var(--ink); }
.notice:hover .nt { color: var(--red); }
.notice .ne { font-size: 17px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.notice .ngo { font-size: 17px; font-weight: 700; color: var(--green); white-space: nowrap; text-decoration: underline; text-underline-offset: 4px; }
.notice-more { min-width: 320px; font-size: 19px; }
.notice-end { text-align: center; color: var(--muted); font-size: 16px; margin: 0; }
@media (max-width: 760px) {
  .notice { grid-template-columns: 1fr; gap: 6px; padding: 20px 4px; }
  .notice .nd, .notice .ngo { display: none; }
  .notice .date-text { display: inline; font-size: 16px; color: var(--ink); }
  .notice .nt { font-size: 21px; }
  .notice .ne { -webkit-line-clamp: 2; }
  .notice-more { width: 100%; min-width: 0; }
}
.post-card { display: block; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.post-card .frame { aspect-ratio: 16 / 9; }
.post-card .frame img { transition: transform .6s ease; }
.post-card:hover .frame img { transform: scale(1.03); }
.post-card .meta { display: flex; align-items: center; gap: 10px; margin: 16px 0 6px; font-size: 15px; color: var(--muted); }
.post-card h3 { font-size: 22px; letter-spacing: .04em; }
.post-card p { color: var(--muted); font-size: 18px; margin: 8px 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .read { color: var(--green); font-weight: 700; font-size: 18px; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) { .post-grid { grid-template-columns: 1fr; gap: 28px; } }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 44px; flex-wrap: wrap; }
/* 最新消息頁下方的「專欄」區：和上面的公告分開的一塊，一列一篇文章 */
.news-columns { margin-top: 80px; padding: 44px 48px 40px; border: 1px solid var(--gold); background: var(--cream); box-shadow: inset 0 0 0 6px var(--paper), inset 0 0 0 7px var(--gold); scroll-margin-top: 110px; }
.news-columns .sec-head { margin-bottom: 28px; }
.news-columns .news-row { grid-template-columns: 220px 1fr; gap: 28px; padding: 24px 0; }
.news-columns .news-row:first-child { padding-top: 0; }
.news-columns .news-row:last-child { border-bottom: 0; padding-bottom: 0; }
.news-columns .news-row .cover { width: 220px; height: 136px; }
.news-columns .news-row b { font-size: 24px; margin: 6px 0 6px; }
.news-columns .news-row small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-columns .more-wrap, #pager.more-wrap { margin-top: 28px; text-align: center; }
#pager.more-wrap:empty { display: none; }
.news-columns .more-wrap:empty { display: none; }
@media (max-width: 760px) { .news-columns { margin-top: 56px; padding: 30px 22px 26px; } .news-columns .news-row { grid-template-columns: 160px 1fr; gap: 18px; padding: 20px 0; } .news-columns .news-row .cover { width: 160px; height: 104px; } .news-columns .news-row b { font-size: 20px; } }
@media (max-width: 560px) { .news-columns .news-row { grid-template-columns: 1fr; gap: 14px; padding: 22px 0; } .news-columns .news-row .cover { width: 100%; height: auto; aspect-ratio: 16 / 9; } .news-columns .news-row b { font-size: 21px; } }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--paper); font-size: 15px; }
.pager .cur { background: var(--green); border-color: var(--green); color: var(--gold-light); }
/* 單篇 */
.article-head .meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 16px; }
.article-head h1 { font-size: 40px; margin: 12px 0 30px; letter-spacing: .06em; }
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.article { min-width: 0; }
.side-box { border-top: 3px solid var(--gold); background: var(--cream); padding: 26px 28px 12px; position: sticky; top: 108px; }
.side-box h3 { font-size: 24px; margin-bottom: 6px; }
.side-box ul { list-style: none; margin: 0; padding: 0; }
.side-box li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.side-box li:last-child { border-bottom: 0; }
.side-box li a, .side-box li > span { display: block; }
.side-box li b { display: flex; justify-content: space-between; gap: 10px; font-size: 18px; color: var(--ink); }
.side-box li b em { font-style: normal; color: var(--cinnabar); font-size: 15px; flex: none; }
.side-box li small { display: block; color: var(--gold-dark); font-size: 17px; margin-top: 2px; }
.post-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; border-top: 1px solid var(--line); margin-top: 44px; padding-top: 28px; }
.post-nav .pn small { display: block; color: var(--gold-dark); font-size: 15px; }
.post-nav .pn b { display: block; font-size: 18px; color: var(--ink); margin-top: 4px; }
.post-nav .pn.next { text-align: right; }
@media (max-width: 980px) { .article-wrap { grid-template-columns: 1fr; gap: 36px; } .side-box { position: static; } .article-head h1 { font-size: 32px; } }
@media (max-width: 640px) { .post-nav { grid-template-columns: 1fr 1fr; } .post-nav .mid { grid-column: 1 / -1; grid-row: 2; justify-self: center; } }
.article .back { display: inline-block; margin-bottom: 20px; color: var(--gold-dark); font-size: 17px; text-decoration: underline; text-underline-offset: 4px; }
.article h1 { font-size: 36px; margin: 10px 0 8px; }
.article .meta { color: var(--muted); font-size: 17px; margin-bottom: 26px; }
.article .frame { aspect-ratio: 16 / 9; margin-bottom: 30px; }
.article .body p { font-size: 18px; line-height: 2; }
/* 圖文編輯器寫的文章：大標、小標、清單、引言、文中圖片 */
.article .body.rich { font-size: 18px; line-height: 2; overflow-wrap: anywhere; }
.article .body.rich > :first-child { margin-top: 0; }
.article .body.rich iframe.ql-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; margin: 30px 0; background: #111; }
.preview-bar { background: #FFF4D6; border-bottom: 2px solid var(--gold, #C9A45C); color: #5a4515; font-size: 15px; line-height: 1.7; padding: 12px 0; }
.preview-bar b { display: inline-block; background: #9E3B2E; color: #fff; border-radius: 4px; padding: 0 10px; margin-right: 10px; font-size: 14px; }
.article .body.rich p { margin: 0 0 20px; }
.article .body.rich h2 { font-size: 30px; line-height: 1.5; letter-spacing: .05em; color: var(--green); margin: 48px 0 16px; padding-left: 16px; border-left: 5px solid var(--gold); }
.article .body.rich h3 { font-size: 23px; line-height: 1.6; letter-spacing: .04em; color: var(--green); margin: 34px 0 12px; }
.article .body.rich ul, .article .body.rich ol { margin: 0 0 20px; padding-left: 1.7em; }
.article .body.rich ul { list-style: disc; }
.article .body.rich ol { list-style: decimal; }
.article .body.rich li { margin: 4px 0; }
.article .body.rich li::marker { color: var(--gold-dark); }
.article .body.rich blockquote { margin: 28px 0; padding: 18px 24px; border-left: 4px solid var(--gold); background: var(--cream); color: var(--ink); }
.article .body.rich img { display: block; max-width: calc(100% - 14px); height: auto; margin: 36px auto; border: 1px solid var(--gold); box-shadow: 0 0 0 6px var(--paper), 0 0 0 7px var(--gold); }
.article .body.rich a { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 4px; }
.article .body.rich hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
@media (max-width: 760px) { .article .body.rich h2 { font-size: 25px; margin-top: 38px; } .article .body.rich h3 { font-size: 21px; } }
.event-box { border: 1px solid var(--gold); background: var(--cream); padding: 32px 36px; margin: 0 0 32px; box-shadow: inset 0 0 0 6px var(--paper), inset 0 0 0 7px var(--gold); }
.event-box dl { display: grid; grid-template-columns: 108px 1fr; gap: 14px 18px; margin: 0; font-size: 18px; }
.event-box dt { color: var(--gold-dark); font-weight: 700; }
.event-box dd { margin: 0; }
@media (max-width: 560px) { .event-box { padding: 24px 22px; } .event-box dl { grid-template-columns: 88px 1fr; font-size: 18px; } }
.event-box h3 { font-size: 26px; letter-spacing: .12em; margin-bottom: 18px; }
.event-box .btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* ---------- 宮廟沿革 ---------- */
.about-block { display: grid; grid-template-columns: 120px 1fr; gap: 40px; }
.vtitle { writing-mode: vertical-rl; font-family: var(--serif); font-size: 44px; letter-spacing: .4em; color: var(--green); border-left: 2px solid var(--gold); padding-left: 30px; height: max-content; }
.about-block h3 { font-size: 26px; margin-bottom: 18px; }
.about-block p { font-size: 20px; color: var(--ink); line-height: 2; }
.about-block .frame { margin-top: 28px; aspect-ratio: 16 / 6; }
@media (max-width: 760px) { .about-block { grid-template-columns: 1fr; gap: 20px; } .vtitle { writing-mode: horizontal-tb; border-left: 0; border-bottom: 2px solid var(--gold); padding: 0 0 10px; font-size: 32px; } }
.timeline { position: relative; display: grid; gap: 28px; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--gold); transform: translateX(-50%); }
.tl-row { display: grid; grid-template-columns: 1fr 72px 1fr; align-items: center; gap: 0; }
.tl-card { background: var(--paper); border-top: 2px solid var(--gold); padding: 24px 28px; }
.tl-card .year { display: block; font-family: var(--serif); font-size: 26px; color: var(--gold-dark); font-weight: 700; }
.tl-row:last-child .tl-card { border-top-color: var(--cinnabar); }
.tl-row:last-child .tl-card .year { color: var(--cinnabar); }
.tl-row:last-child .tl-node { background: var(--cinnabar); width: 52px; height: 52px; }
.tl-card .t { display: block; font-size: 20px; font-weight: 700; color: var(--ink); margin: 4px 0 6px; }
.tl-card .x { font-size: 18px; color: var(--muted); line-height: 1.8; }
.tl-row.right .tl-card { text-align: right; }
.tl-node { position: relative; z-index: 1; box-sizing: border-box; width: 44px; height: 44px; margin: 0 auto; border-radius: 50%; background: var(--green); border: 3px solid var(--gold); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 18px; font-weight: 700; }
.tl-img { aspect-ratio: 16 / 6; }
.tl-img .ph, .tl-img img { width: 100%; height: 100%; }
@media (max-width: 760px) { .timeline::before { left: 20px; } .tl-row, .tl-row.right { grid-template-columns: 40px 1fr; } .tl-row .tl-card { order: 2; text-align: left; } .tl-row .tl-node { order: 1; width: 36px; height: 36px; font-size: 14px; margin: 0; } .tl-row:last-child .tl-node { width: 40px; height: 40px; } .tl-row .tl-img { order: 3; grid-column: 2; margin-top: 10px; } }
.build-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.build-steps div { border: 1px solid var(--line); background: var(--paper); padding: 22px; text-align: center; }
.build-steps .mk { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold-dark); display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 20px; margin-bottom: 10px; }
.build-steps b { display: block; font-size: 18px; color: var(--green); }
.build-steps small { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; white-space: pre-line; }
.build-steps .st { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--cinnabar); font-weight: 700; }
@media (max-width: 760px) { .build-steps { grid-template-columns: 1fr 1fr; } }
.seal-wall { display: grid; grid-template-columns: 1fr 1fr 1.5fr 1fr 1fr; gap: 20px; align-items: start; }
.couplet { text-align: center; }
.couplet .v { writing-mode: vertical-rl; margin: 0 auto; border: 1px solid var(--gold); background: #fff; box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 5px rgba(201, 164, 92, .6); padding: 22px 16px; font-family: var(--serif); font-size: 26px; font-weight: 700; letter-spacing: .3em; line-height: 1.5; color: var(--green); height: 240px; }
.couplet small { display: block; margin-top: 12px; font-size: 18px; color: var(--muted); }
.seal-main { text-align: center; }
.seal-main .sq { box-sizing: border-box; width: 240px; height: 240px; margin: 0 auto; position: relative; background: var(--cinnabar); border-radius: 10px; box-shadow: 0 10px 26px rgba(158, 59, 46, .28); display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 22px; padding: 16px; }
.seal-main .sq::before { content: ""; position: absolute; inset: 13px; border: 3px solid #F6E3D6; border-radius: 4px; pointer-events: none; }
.seal-main .sq .col { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.seal-main .sq .col i { display: block; font-style: normal; font-family: var(--serif); font-weight: 700; font-size: 42px; line-height: 1.06; color: #FBEFE6; }
.seal-main b { display: block; margin-top: 14px; font-family: var(--serif); font-size: 20px; letter-spacing: .4em; color: var(--cinnabar); }
.seal-note { text-align: center; color: var(--muted); font-size: 20px; margin: 40px auto 0; max-width: 760px; }
@media (max-width: 860px) { .seal-wall { grid-template-columns: 1fr 1fr; } .seal-main { grid-column: 1 / -1; order: -1; } }
.virtues { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 24px; }
.virtues div { text-align: center; padding: 10px 8px; border-left: 1px solid rgba(201, 164, 92, .6); }
.virtues div:first-child { border-left: 0; }
.virtues .ch { box-sizing: border-box; width: 58px; height: 58px; border: 1.5px solid var(--gold); box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5px rgba(201, 164, 92, .6); display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--gold-dark); background: var(--paper); margin-bottom: 10px; }
.virtues small { display: block; font-size: 18px; color: var(--ink); }
.rule-title { text-align: center; font-family: var(--serif); font-weight: 700; color: var(--green); letter-spacing: .3em; font-size: 16px; padding-top: 40px; margin-top: 40px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .virtues { grid-template-columns: repeat(3, 1fr); } .virtues div { border: 0; } }
.blueprint figure { margin: 36px 0 0; }
.blueprint figure img { width: min(920px, 100%); margin: 0 auto; }
.blueprint figcaption { text-align: center; color: #B9C4BD; font-size: 17px; margin-top: 12px; }
.feature-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.feature-cards div { border: 1px solid rgba(201, 164, 92, .6); padding: 24px 26px; }
.feature-cards b { display: block; font-family: var(--serif); font-size: 22px; color: var(--gold-light); margin-bottom: 10px; }
.feature-cards span { display: block; font-size: 18px; color: #D5DCD6; line-height: 1.9; }
.taglines { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 32px; border-top: 1px solid rgba(201, 164, 92, .4); border-bottom: 1px solid rgba(201, 164, 92, .4); }
.taglines div { text-align: center; padding: 22px 12px; border-left: 1px solid rgba(201, 164, 92, .4); }
.taglines div:first-child { border-left: 0; }
.taglines b { display: block; font-family: var(--serif); font-size: 22px; color: var(--gold-light); }
.taglines small { display: block; font-size: 18px; color: #D5DCD6; margin-top: 4px; }
@media (max-width: 760px) { .feature-cards, .taglines { grid-template-columns: 1fr; } .taglines div { border-left: 0; border-top: 1px solid rgba(201, 164, 92, .4); } }
.committee { width: min(840px, 100%); margin: 0 auto; border-top: 1px solid var(--line); }
.committee div { display: grid; grid-template-columns: 160px 1fr; gap: 20px; padding: 18px 10px; border-bottom: 1px solid var(--line); align-items: baseline; }
.committee .role { font-family: var(--serif); font-size: 20px; color: var(--gold-dark); letter-spacing: .1em; }
.committee .names { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 18px; font-weight: 500; }
@media (max-width: 600px) { .committee div { grid-template-columns: 1fr; gap: 6px; } }
.cta-strip { text-align: center; padding: 56px 20px 0; }
.cta-strip h3 { font-size: 28px; line-height: 1.6; letter-spacing: .08em; }
.cta-strip .btns { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 24px; }

/* ---------- 奉祀神祇 ---------- */
.deity-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.deity-card { position: relative; text-align: center; border: 1px solid var(--gold); background: var(--cream); padding: 8px 8px 22px; cursor: pointer; transition: transform .3s ease, box-shadow .3s ease; }
.deity-card:hover { transform: translateY(-4px); }
.deity-card.on { box-shadow: 0 0 0 2px var(--gold), var(--shadow); }
.deity-card.on::after { content: ""; position: absolute; left: 50%; bottom: -12px; width: 22px; height: 22px; background: var(--cream); border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold); transform: translateX(-50%) rotate(45deg); }
.deity-card img { width: 100%; aspect-ratio: 4 / 4.2; object-fit: cover; }
.deity-card b { display: block; font-family: var(--serif); font-size: 28px; color: var(--green); margin: 22px 0 6px; letter-spacing: .12em; }
.deity-card small { display: block; font-size: 18px; color: var(--muted); }
.deity-card .hint { display: block; margin-top: 10px; font-size: 16px; color: var(--gold-dark); }
.deity-card.on .hint { visibility: hidden; }
.deity-panel { margin-top: 28px; border: 1px solid var(--gold); background: var(--cream); padding: 40px 44px; box-shadow: inset 0 0 0 6px var(--paper), inset 0 0 0 7px var(--gold); animation: rise .35s ease-out both; }
.deity-panel .head { display: flex; align-items: baseline; gap: 22px; flex-wrap: wrap; margin-bottom: 26px; }
.deity-panel .head h2 { font-size: 38px; letter-spacing: .12em; }
.deity-panel .head span { font-size: 18px; color: var(--muted); }
.deity-panel .head span b { color: var(--gold-dark); margin-right: 8px; }
.deity-panel .cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }
.deity-panel .cols > div + div { border-left: 1px solid var(--line); padding-left: 40px; }
.deity-panel h4 { font-size: 20px; margin: 0 0 12px; color: var(--green); }
.deity-panel h4 + p { font-size: 18px; line-height: 1.95; color: var(--ink); margin-bottom: 26px; }
.deity-panel ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.deity-panel ol li { display: flex; gap: 14px; font-size: 18px; }
.deity-panel ol li i { font-style: normal; color: var(--gold-dark); font-family: var(--serif); flex: none; }
.deity-panel .foot { text-align: center; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .deity-cards { grid-template-columns: 1fr; } .deity-panel { padding: 26px 20px; } .deity-panel .cols { grid-template-columns: 1fr; } .deity-panel .cols > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; } }

/* ---------- 參拜攻略 ---------- */
.three-nine { display: grid; grid-template-columns: repeat(3, 1fr); width: min(900px, 100%); margin: 0 auto; }
.three-nine div { text-align: center; padding: 24px 12px; border-left: 1px solid var(--line); }
.three-nine div:first-child { border-left: 0; }
.three-nine .big { font-family: var(--serif); font-size: 64px; color: var(--gold-dark); line-height: 1; }
.three-nine b { display: block; font-family: var(--serif); font-size: 22px; color: var(--green); margin: 14px 0 8px; }
.three-nine small { display: block; font-size: 18px; color: var(--ink); }
.hours-line { text-align: center; margin-top: 36px; font-size: 20px; color: var(--ink); }
.hours-line small { display: block; color: var(--muted); font-size: 18px; }
@media (max-width: 600px) { .three-nine { grid-template-columns: 1fr; } .three-nine div { border-left: 0; border-top: 1px solid var(--line); } }
.order-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.order-steps { list-style: none; margin: 0; padding: 0; }
.order-steps li { display: flex; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.order-steps li:last-child { border-bottom: 1px solid var(--line); }
.order-steps .n { font-family: var(--serif); font-size: 40px; color: var(--cinnabar); line-height: 1; flex: none; width: 40px; }
.order-steps b { display: block; font-family: var(--serif); font-size: 24px; color: var(--green); }
.order-steps small { display: block; font-size: 18px; color: var(--muted); margin-top: 4px; }
.route-map { background: var(--cinnabar); border: 1px solid var(--gold); padding: 10px; }
.incense-map { position: relative; height: 460px; box-sizing: border-box; background: #B8282E; border: 8px solid #8E1B1F; color: #F3D99B; font-family: var(--serif); }
.incense-map .ttl { position: absolute; left: 0; right: 0; top: 24px; text-align: center; font-size: 30px; font-weight: 700; letter-spacing: 10px; white-space: nowrap; }
@media (max-width: 520px) { .incense-map .ttl { font-size: 22px; letter-spacing: 5px; top: 30px; } .incense-map .bx { left: 24% !important; right: 8% !important; } }
.route-map svg { display: block; width: 100%; height: auto; }
@media (max-width: 860px) { .order-grid { grid-template-columns: 1fr; } }
.tips { width: min(820px, 100%); margin: 0 auto; list-style: disc; padding: 28px 0 28px 28px; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); font-size: 18px; display: grid; gap: 14px; }

/* ---------- 交通資訊 ---------- */
.addr-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.addr-list { border-top: 1px solid var(--gold); }
.addr-list div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.addr-list dt { font-size: 15px; color: var(--gold-dark); letter-spacing: .1em; }
.addr-list dd { margin: 4px 0 0; font-size: 20px; font-weight: 700; color: var(--green); }
.addr-list dd small { display: block; font-size: 18px; font-weight: 400; color: var(--muted); }
.addr-grid .btn { margin-top: 28px; }
.map-embed { border: 1px solid var(--gold); padding: 6px; background: var(--paper); aspect-ratio: 4 / 3; }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 860px) { .addr-grid { grid-template-columns: 1fr; } }
.transit { display: grid; grid-template-columns: 280px minmax(0, 1fr); background: var(--green); border: 2px solid var(--gold); }
.transit .legend { background: var(--green); color: #fff; padding: 28px 24px; }
.transit .legend h3 { font-family: var(--serif); font-size: 26px; font-weight: 700; letter-spacing: 4px; margin: 0; padding-bottom: 8px; }
.transit .map { padding: 16px; background: var(--paper); display: flex; align-items: center; }
.tlg > div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 9px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.tlg small { font-size: 16px; color: #C9D3CC; }
.tlg .dash { display: inline-block; width: 54px; border-top: 4px dashed var(--gold-dark); margin: 6px 0; }
.transit .legend h3, .drive .legend h3 { font-size: 22px; letter-spacing: .14em; margin-bottom: 18px; }
.transit .legend h3 { color: var(--gold-light); }
.lg { display: grid; gap: 14px; }
.lg div { padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
.drive .lg div { border-color: var(--line); color: var(--muted); }
.chip { display: inline-flex; align-items: center; justify-content: center; min-width: 54px; padding: 3px 10px; border-radius: 4px; color: #fff; font-weight: 700; font-size: 17px; letter-spacing: 1px; white-space: nowrap; line-height: 1.5; }
.c-blue { background: #2C6FB7; } .c-green { background: #2E8B57; } .c-orange { background: #E07B39; } .c-purple { background: #7B5EA7; } .c-red { background: #C8453C; } .c-teal { background: #2A8C9E; } .c-hw { background: #2E7D4F; } .c-gold { background: var(--gold); color: var(--ink); } .c-road { background: #8E948F; }
.lg .dash { display: inline-block; width: 40px; border-top: 3px dashed var(--gold); margin-bottom: 6px; }
.lg .sw { display: inline-block; width: 40px; height: 6px; border-radius: 3px; margin-bottom: 6px; }
.transit .map { padding: 20px; }
.transit .map svg, .drive .map svg { display: block; width: 100%; height: auto; }
.route-rows { margin-top: 16px; }
.route-rows > div { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); align-items: baseline; font-size: 20px; }
.route-rows .from { font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: 2px; color: var(--green); }
.route-rows .from .tag { height: auto; margin-left: 10px; padding: 2px 10px; border: 0; border-radius: 2px; background: var(--cinnabar); color: #fff; font-family: var(--sans); font-size: 14px; font-weight: 700; letter-spacing: 0; vertical-align: middle; }
.route-rows .path { display: block; font-size: 20px; font-weight: 500; line-height: 2; }
.route-rows .path .chip { margin: 0 4px; vertical-align: middle; }
.route-rows .path .chip:first-child { margin-left: 0; }
.route-rows .path .sub { display: block; font-size: 16px; font-weight: 400; line-height: 1.7; color: var(--muted); margin-top: 4px; }
.route-rows .path .sep { color: inherit; margin: 0 4px; }
.drive-rows { margin-top: 16px; }
.drive-rows > div { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line); }
.drive-rows .from { display: flex; align-items: center; gap: 12px; }
.drive-rows .from .sw { flex: none; width: 36px; height: 7px; border-radius: 4px; }
.drive-rows .from > span:last-child { display: flex; flex-direction: column; }
.drive-rows .from b { font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: 2px; color: var(--green); }
.drive-rows .from small { font-size: 15px; color: var(--muted); }
.drive-rows .path { font-size: 20px; font-weight: 500; line-height: 2.1; }
.drive-rows .hw { display: inline-flex; align-items: center; padding: 3px 12px; background: #2E7D4F; color: #fff; font-size: 17px; font-weight: 700; line-height: 1.5; border-radius: 4px; border: 2px solid #fff; box-shadow: 0 0 0 1px #2E7D4F; white-space: nowrap; vertical-align: middle; }
.drive-rows .sep { color: var(--gold); font-weight: 700; }
@media (max-width: 860px) { .transit { grid-template-columns: 1fr; } .route-rows > div, .drive-rows > div { grid-template-columns: 1fr; gap: 8px; } }
.drive { display: grid; grid-template-columns: minmax(0, 1fr) 260px; border: 2px solid var(--gold); background: #F3EEE3; }
.drive .map { padding: 16px; display: flex; align-items: center; }
.drive .legend { background: #fff; padding: 28px 24px; border-left: 1px solid var(--line); }
.drive .legend h3 { font-family: var(--serif); font-size: 24px; font-weight: 700; letter-spacing: 4px; margin: 0; padding-bottom: 8px; }
.dlg > div { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dlg .sw { display: inline-block; width: 44px; height: 7px; border-radius: 4px; }
.dlg .sw.road { height: 12px; border-radius: 2px; background: #8E948F; }
.dlg .ck { display: inline-block; padding: 2px 8px; color: #fff; font-size: 14px; font-weight: 700; border-radius: 4px; }
.dlg b { font-size: 17px; font-weight: 700; color: var(--ink); }
.dlg small { font-size: 15px; color: var(--muted); }
.drive .legend h3 { color: var(--green); }
@media (max-width: 860px) { .drive { grid-template-columns: 1fr; } .drive .legend { border-left: 0; border-top: 1px solid var(--line); } }
.park-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; margin-top: 32px; padding-top: 8px; }
.park-grid div { display: flex; gap: 16px; align-items: flex-start; }
.park-grid .ico { flex: none; width: 48px; height: 48px; border-radius: 6px; background: var(--green); color: var(--gold-light); display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 22px; font-weight: 700; }
.park-grid .ico.p { background: #2C6FB7; color: #fff; font-family: var(--sans); font-size: 24px; font-weight: 700; }
.park-grid b { display: block; font-size: 22px; font-weight: 700; color: var(--green); font-family: var(--serif); }
.park-grid small { display: block; font-size: 18px; color: var(--ink); margin-top: 4px; line-height: 1.8; }
@media (max-width: 700px) { .park-grid { grid-template-columns: 1fr; gap: 24px; } }
.traffic-cta { border-top: 1px solid rgba(201, 164, 92, .6); margin-top: 40px; padding-top: 40px; }

/* ---------- 活動報名 ---------- */
.event-hero { background: var(--green); color: #fff; padding: 64px 0 56px; }
.event-hero .container { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.event-hero .st { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; font-size: 14px; color: var(--gold-light); letter-spacing: .1em; }
.event-hero .st .pill { background: var(--cinnabar); color: #fff; padding: 6px 16px; font-weight: 700; letter-spacing: .1em; }
.event-hero .st .pill.closed { background: #6A746E; }
.event-hero .sub { display: block; font-size: 18px; letter-spacing: .3em; color: var(--gold-light); }
.event-hero h1 { font-size: 72px; letter-spacing: .2em; color: var(--gold-light); margin: 6px 0 18px; animation: rise .9s ease-out both .2s; }
.event-hero .gold-line { margin: 0 0 24px; }
.event-hero dl { margin: 0 0 32px; display: grid; grid-template-columns: 70px 1fr; gap: 10px 20px; font-size: 20px; }
.event-hero dt { color: var(--gold-light); font-weight: 700; }
.event-hero dd { margin: 0; }
.event-hero .btns { display: flex; gap: 14px; flex-wrap: wrap; }
.event-hero .frame { background: var(--green-deep); border-color: var(--gold); aspect-ratio: 1; max-width: 480px; margin-left: auto; }
@media (max-width: 900px) { .event-hero .container { grid-template-columns: 1fr; } .event-hero h1 { font-size: 48px; } .event-hero .frame { margin: 0 auto; } }
.origin { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.origin h2 { font-size: 36px; }
.origin p { font-family: var(--serif); font-size: 20px; line-height: 2; margin-top: 22px; }
.origin .flyer { display: block; text-align: center; }
.origin .flyer .frame { aspect-ratio: auto; }
.origin .flyer .frame > img { height: auto; object-fit: contain; }   /* 傳單整張顯示，不裁切（直式、橫式都可） */
.origin .flyer span { display: block; margin-top: 12px; color: var(--gold-dark); font-weight: 700; font-size: 18px; }
@media (max-width: 860px) { .origin { grid-template-columns: 1fr; } }
.day-card { border: 1px solid var(--gold); background: var(--paper); padding: 30px 36px 36px; margin-bottom: 26px; }
.day-card .dh { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.day-card .dh h3 { font-size: 30px; letter-spacing: .14em; }
.day-card .dh span { color: var(--gold-dark); font-size: 18px; }
.day-card .dn { font-size: 18px; color: var(--muted); margin: 10px 0 0; }
.stops { position: relative; display: flex; justify-content: space-between; margin-top: 34px; padding-top: 0; list-style: none; padding-left: 0; gap: 8px; }
.stops::before { content: ""; position: absolute; left: 6%; right: 6%; top: 11px; height: 2px; background: var(--gold); }
.stops li { position: relative; flex: 1; text-align: center; min-width: 0; }
.stops .dot { display: block; width: 24px; height: 24px; border-radius: 50%; background: var(--green); border: 2px solid var(--gold); margin: 0 auto 10px; position: relative; }
.stops li.edge .dot { background: var(--cinnabar); }
.stops .lb { display: block; font-size: 15px; color: var(--gold-dark); }
.stops .nm { display: block; font-family: var(--serif); font-size: 20px; color: var(--green); line-height: 1.35; margin-top: 4px; }
.stops .nm > span { display: block; }
@media (max-width: 700px) { .stops { flex-direction: column; gap: 18px; } .stops::before { left: 11px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; } .stops li { display: flex; align-items: center; gap: 16px; text-align: left; } .stops .dot { margin: 0; flex: none; } .stops .nm { margin: 0; } .stops .nm > span { display: inline; } }
.fee-wrap { text-align: center; }
.fee-wrap .kicker { margin-top: 20px; }
.fee-wrap .big { font-family: var(--serif); font-size: 30px; color: var(--green); }
.fee-wrap .big strong { font-size: 54px; color: var(--gold-dark); margin: 0 8px; font-variant-numeric: tabular-nums; }
.fee-wrap .free { color: var(--gold-dark); font-size: 18px; margin-top: 4px; }
.includes { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 28px 0 0; }
.includes div { width: 130px; padding: 22px 10px 18px; border: 1px solid var(--line); background: #fff; font-weight: 700; color: var(--green); }
.includes svg { width: 40px; height: 40px; margin: 0 auto 10px; display: block; color: var(--gold-dark); }
.contact-two { display: grid; grid-template-columns: 1fr 1fr; width: min(820px, 100%); margin: 56px auto 0; }
.contact-two > div { text-align: center; padding: 10px 24px; }
.contact-two > div + div { border-left: 1px solid var(--line); }
.contact-two .kicker { font-size: 13px; }
.contact-two b { display: block; font-family: var(--serif); font-size: 30px; color: var(--green); }
.contact-two b.tel { font-size: 34px; color: var(--ink); font-family: var(--sans); }
.contact-two small { display: block; font-size: 18px; color: var(--muted); margin-top: 8px; line-height: 1.7; }
@media (max-width: 640px) { .contact-two { grid-template-columns: 1fr; } .contact-two > div + div { border-left: 0; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 26px; } }
.cta-note { color: var(--muted); font-size: 18px; margin-top: 18px; line-height: 1.8; }
.event-list { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.event-card { display: grid; grid-template-columns: 180px 1fr; gap: 20px; border: 1px solid var(--gold); background: var(--cream); padding: 16px; }
.event-card .frame { aspect-ratio: 1; }
.event-card h3 { font-size: 26px; }
.event-card p { color: var(--muted); font-size: 18px; margin: 8px 0 14px; }
@media (max-width: 800px) { .event-list { grid-template-columns: 1fr; } .event-card { grid-template-columns: 1fr; } }

/* 報名表單 */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--gold); margin: 26px 0 40px; }
.steps3 div { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-left: 1px solid var(--gold); font-size: 17px; color: var(--muted); }
.steps3 div:first-child { border-left: 0; }
.steps3 .cnum { width: 40px; height: 40px; font-size: 16px; }
.steps3 .on { background: var(--green); color: #fff; font-weight: 700; }
.steps3 .on .cnum { color: var(--gold-light); border-color: var(--gold-light); }
@media (max-width: 760px) { .steps3 { grid-template-columns: 1fr; } .steps3 div { border-left: 0; border-top: 1px solid var(--gold); } .steps3 div:first-child { border-top: 0; } }
.form-layout { display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: start; }
.fs-title { font-size: 26px; margin: 40px 0 18px; letter-spacing: .1em; }
.fs-title:first-child { margin-top: 0; }
.count-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--line); background: var(--paper); padding: 16px 22px; margin-bottom: 12px; }
.count-card b { display: block; font-size: 18px; }
.count-card small { display: block; color: var(--muted); font-size: 16px; }
.stepper { display: inline-flex; border: 1px solid var(--gold); background: #fff; }
.stepper button { width: 48px; height: 48px; border: 0; background: transparent; font-size: 22px; cursor: pointer; color: var(--green); }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }
.stepper output { width: 56px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; border-left: 1px solid var(--gold); border-right: 1px solid var(--gold); }
.inc-note { background: var(--cream); border-left: 4px solid var(--gold); padding: 10px 16px; font-size: 18px; margin: 14px 0 0; }
.pcard { border: 1px solid var(--line); background: var(--paper); padding: 20px 22px; margin-bottom: 14px; }
.pcard .ph-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-weight: 700; font-size: 18px; }
.pcard .ph-head .tag { margin-left: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.form-grid .field.full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field > span.lb { font-size: 15px; font-weight: 700; color: var(--ink); }
.field .req { color: var(--cinnabar); margin-left: 2px; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); font-size: 17px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.field .hint { font-size: 13px; color: var(--muted); }
.field .hint.err { color: var(--cinnabar); }
.check-line { display: flex; align-items: flex-start; gap: 10px; font-size: 18px; margin-top: 10px; }
.check-line input { width: 22px; height: 22px; margin-top: 4px; accent-color: var(--green); flex: none; }
.check-line a { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) { .form-grid { grid-template-columns: 1fr; } }
.aside-box { position: sticky; top: 100px; border: 1px solid var(--gold); background: var(--cream); padding: 26px 26px 22px; box-shadow: inset 0 0 0 6px var(--paper), inset 0 0 0 7px var(--gold); }
.aside-box h3 { font-size: 22px; margin-bottom: 16px; }
.aside-box .row { display: flex; justify-content: space-between; gap: 10px; font-size: 16px; padding: 6px 0; }
.aside-box .row small { display: block; color: var(--muted); font-size: 13px; }
.aside-box .total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--gold); margin-top: 12px; padding-top: 14px; font-weight: 700; }
.aside-box .total .amt { font-size: 26px; color: var(--gold-dark); font-family: var(--serif); }
.aside-box .btn { margin-top: 16px; }
.aside-box .note { font-size: 16px; color: var(--muted); margin: 14px 0 0; line-height: 1.7; }
@media (max-width: 900px) { .form-layout { grid-template-columns: 1fr; } .aside-box { position: static; } }
.confirm-table { width: 100%; border-collapse: collapse; font-size: 18px; }
.confirm-table th, .confirm-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.confirm-table th { color: var(--gold-dark); font-weight: 700; white-space: nowrap; width: 160px; }
.done-card { border: 1px solid var(--gold); background: var(--cream); padding: 48px 40px; text-align: center; box-shadow: inset 0 0 0 6px var(--paper), inset 0 0 0 7px var(--gold); }
.done-card h1 { font-size: 40px; letter-spacing: .1em; margin: 6px 0 18px; }
.done-card .lead { max-width: 640px; margin: 0 auto; }
.done-kv { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 30px 0; }
.done-kv div { padding: 20px 10px; border-left: 1px solid var(--line); }
.done-kv div:first-child { border-left: 0; }
.done-kv dt { font-size: 14px; color: var(--muted); }
.done-kv dd { margin: 6px 0 0; font-size: 20px; font-weight: 700; color: var(--green); }
.done-kv dd.amt { font-family: var(--serif); font-size: 26px; color: var(--gold-dark); }
.done-kv dd.oid { font-size: 24px; letter-spacing: .08em; }
.done-ways { display: grid; grid-template-columns: 1fr 1fr; text-align: left; }
.done-ways > div { padding: 10px 30px; }
.done-ways > div + div { border-left: 1px solid var(--line); }
.done-ways h3 { font-size: 20px; margin-bottom: 10px; }
.done-ways p { font-size: 18px; color: var(--muted); line-height: 1.8; }
.done-ways .tel { font-family: var(--sans); font-size: 30px; font-weight: 700; color: var(--ink); }
@media (max-width: 700px) { .done-card { padding: 30px 18px; } .done-kv { grid-template-columns: 1fr; } .done-kv div { border-left: 0; border-top: 1px solid var(--line); } .done-kv div:first-child { border-top: 0; } .done-ways { grid-template-columns: 1fr; } .done-ways > div + div { border-left: 0; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 20px; } }

/* ---------- 點燈／商品／結帳／訂單（沿用舊流程，換新配色） ---------- */
.steps { display: flex; gap: 10px; margin-bottom: 32px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--line); background: var(--paper); font-size: 15px; color: var(--muted); }
.step b { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--gold); display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); color: var(--gold-dark); }
.step.active { background: var(--green); color: #fff; border-color: var(--green); }
.step.active b { color: var(--gold-light); border-color: var(--gold-light); }
.flow { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr; } }
.panel { background: var(--paper); border: 1px solid var(--line); padding: 26px 28px; }
.panel h3 { font-size: 22px; margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.panel h3 .num { width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: var(--gold-light); display: inline-flex; align-items: center; justify-content: center; font-size: 16px; font-family: var(--serif); }
.summary { position: sticky; top: 100px; border-color: var(--gold); background: var(--cream); }
.summary .row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.summary .row small { display: block; color: var(--muted); font-size: 13px; }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; font-weight: 700; }
.summary .total .amt { font-family: var(--serif); font-size: 26px; color: var(--gold-dark); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 10px; }
.check-group { grid-column: 1 / -1; font-family: var(--serif); font-size: 18px; color: var(--gold-dark); margin-top: 8px; padding-bottom: 4px; border-bottom: 1px solid var(--line); letter-spacing: .1em; }
.check { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; flex: none; margin: 0; border: 1px solid var(--gold); background: #fff; border-radius: 3px; display: inline-grid; place-content: center; }
.check input::before { content: ""; width: 12px; height: 12px; background: var(--green); transform: scale(0); transition: transform .15s ease; }
.check input:checked::before { transform: scale(1); }
.check:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.check.off { opacity: .5; cursor: not-allowed; }
.check .n { flex: 1; min-width: 0; font-weight: 700; font-size: 16px; }
.check .n small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.check .p { font-family: var(--num); font-weight: 700; color: var(--gold-dark); white-space: nowrap; }
.ben-list { display: grid; gap: 10px; }
.ben { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); background: #fff; }
.ben .who { font-weight: 700; font-size: 18px; }
.ben .meta { font-size: 14px; color: var(--muted); }
.ben .lamps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ben .x { width: 36px; height: 36px; border: 1px solid var(--line); background: var(--paper); border-radius: 50%; cursor: pointer; font-size: 18px; color: var(--muted); flex: none; }
.goods-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.goods-card { border: 1px solid var(--gold); background: var(--paper); }
.goods-card .thumb { aspect-ratio: 4 / 3; background: var(--cream) center/cover; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 48px; color: var(--gold); }
.goods-card .body { padding: 16px 18px 18px; }
.goods-card h3 { font-size: 20px; }
.goods-card .price { font-family: var(--serif); font-size: 22px; color: var(--gold-dark); margin-top: 8px; }
.qty { display: inline-flex; border: 1px solid var(--gold); background: #fff; }
.qty button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 20px; cursor: pointer; color: var(--green); }
.qty span { width: 44px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; border-left: 1px solid var(--gold); border-right: 1px solid var(--gold); }
.table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--gold-dark); font-weight: 700; font-size: 14px; letter-spacing: .05em; }
.pay-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.pay-methods label { display: flex; flex-direction: column; gap: 2px; padding: 14px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.pay-methods label:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.pay-methods input { accent-color: var(--green); }
.pay-methods small { color: var(--muted); font-size: 13px; }
.receipt { width: min(880px, 100%); margin: 0 auto; }
.ok-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: var(--gold-light); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.ok-mark svg { width: 34px; height: 34px; }
.ok-mark.pend-mark { background: var(--cream); color: var(--gold-dark); border: 1px solid var(--gold); }
.oid { font-family: var(--num); font-size: 22px; font-weight: 700; letter-spacing: .06em; color: var(--green); }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 16px; margin: 0; font-size: 16px; }
.kv dt { color: var(--gold-dark); font-weight: 700; }
.kv dd { margin: 0; }
.lamp-no { font-weight: 700; color: var(--cinnabar); }
.my-orders { display: grid; gap: 8px; }
.my-order { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); background: #fff; font-size: 15px; }
.my-order b { font-family: var(--num); color: var(--green); }
.light-notice { background: var(--cream); border-left: 4px solid var(--gold); padding: 14px 18px; font-size: 18px; color: var(--ink); margin-bottom: 26px; }
.light-notice.open { background: var(--green); color: var(--gold-light); border-color: var(--gold-light); }

/* 個資頁 */
.privacy-body { width: min(820px, 100%); margin: 0 auto; white-space: pre-line; font-size: 19px; line-height: 2; }

@media print { .site-header, .site-footer, .fab-dock, .demo-ribbon, .btn, .steps { display: none !important; } body { background: #fff; font-size: 14px; } }

/* ---- 2026-11-14：確認資料頁共用、建廟護持 ---- */
.fs-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 40px 0 18px; }
.fs-head .fs-title { margin: 0; }
.form-layout > div > .fs-head:first-child, .inc-note + .fs-head { margin-top: 0; }
.edit-link, .crumb-link { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; color: var(--gold-dark); text-decoration: underline; text-underline-offset: 4px; }
.edit-link { font-size: 17px; min-height: 44px; padding: 0 4px; }
.aside-box .btn-outline { margin-top: 12px; }
.radio-row { display: flex; flex-wrap: wrap; gap: 12px 30px; font-size: 18px; margin-top: 4px; }
.radio-row label { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.radio-row input { width: 22px; height: 22px; accent-color: var(--green); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.count-card .dn-extra { width: min(260px, 48%); flex: none; }
.donate-cta { text-align: center; margin-top: 44px; }
.donate-cta p { font-family: var(--serif); font-size: 26px; letter-spacing: .22em; color: var(--gold-light); margin: 0 0 24px; }
.donate-hero h1 { font-size: 64px; line-height: 1.25; }
.donate-hero .dh-lead { font-size: 20px; line-height: 2; color: #E9EDE8; margin: 0 0 30px; }
.donate-hero figure { margin: 0 0 0 auto; width: min(560px, 100%); }
.donate-hero figure .frame { aspect-ratio: 16 / 10; max-width: none; margin: 0; }
.donate-hero figure .frame img { object-fit: contain; background: var(--green-deep); }
.donate-hero figcaption { text-align: center; color: #B9C4BD; font-size: 16px; margin-top: 12px; }
.dn-poem { text-align: center; font-size: 20px; line-height: 2.2; color: var(--ink); margin: 0; }
.dn-poem.light { color: #E9EDE8; }
.dn-unit { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
.dn-price { background: var(--green); color: #E9EDE8; text-align: center; padding: 56px 28px; border: 1px solid var(--gold); box-shadow: inset 0 0 0 6px var(--green), inset 0 0 0 7px rgba(201, 164, 92, .7); display: flex; flex-direction: column; justify-content: center; }
.dn-price span { color: var(--gold-light); font-size: 20px; letter-spacing: .3em; }
.dn-price strong { display: block; font-family: var(--serif); font-size: 58px; color: var(--gold-light); margin: 26px 0 22px; font-variant-numeric: tabular-nums; }
.dn-price p { margin: 0; font-size: 18px; line-height: 1.9; color: #D5DCD6; }
.dn-points { display: grid; gap: 20px; }
.dn-points > div { background: #fff; border: 1px solid var(--line); padding: 30px 28px; }
.dn-points b { display: block; font-family: var(--serif); font-size: 26px; letter-spacing: .1em; color: var(--green); margin-bottom: 14px; }
.dn-points p { margin: 0; font-size: 18px; line-height: 1.9; color: var(--ink); }
.dn-vows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.dn-vows > div { border: 1px solid rgba(201, 164, 92, .6); padding: 36px 24px; text-align: center; }
.dn-vows .cnum { width: 58px; height: 58px; font-size: 24px; color: var(--gold-light); border-color: var(--gold); margin: 0 auto 18px; }
.dn-vows b { display: block; font-family: var(--serif); font-size: 26px; letter-spacing: .12em; color: var(--gold-light); margin-bottom: 14px; }
.dn-vows p { margin: 0; font-size: 18px; line-height: 1.9; color: #D5DCD6; }
.dn-foot { text-align: center; color: var(--gold-light); font-size: 18px; margin: 40px 0 0; }
.dn-plan { width: min(940px, 100%); margin: 0 auto; border-top: 2px solid var(--gold); }
.dn-plan > div { display: grid; grid-template-columns: 170px 1fr; gap: 20px; align-items: baseline; padding: 28px 0; border-bottom: 1px solid var(--line); }
.dn-plan dt { font-family: var(--serif); font-size: 26px; font-weight: 700; letter-spacing: .1em; color: var(--gold-dark); }
.dn-plan dd { margin: 0; font-size: 20px; line-height: 1.8; color: var(--ink); }
.dn-steps { list-style: none; margin: 0 0 44px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.dn-steps::before { content: ""; position: absolute; left: 16.66%; right: 16.66%; top: 32px; height: 2px; background: var(--gold); }
.dn-steps li { text-align: center; padding: 0 16px; position: relative; }
.dn-steps .cnum { width: 64px; height: 64px; font-size: 26px; background: var(--green); color: var(--gold-light); border: 3px solid var(--gold); margin: 0 auto 18px; }
.dn-steps b { display: block; font-size: 26px; color: var(--green); margin-bottom: 10px; }
.dn-steps small { display: block; font-size: 18px; color: var(--muted); line-height: 1.7; }
.dn-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.dn-ways > div { background: #fff; border: 1px solid var(--line); padding: 34px 20px; text-align: center; }
.dn-ways .kicker { display: block; font-weight: 700; margin-bottom: 14px; }
.dn-ways b { display: block; font-family: var(--serif); font-size: 28px; letter-spacing: .06em; color: var(--green); }
.dn-ways b.tel { font-variant-numeric: tabular-nums; }
.dn-ways small { display: block; font-size: 18px; color: var(--ink); margin-top: 12px; line-height: 1.8; }
.tbd { color: #9E3B2E; }
.dn-wallnote { margin: 16px 0 0; font-size: 16px; line-height: 1.7; color: var(--muted); }
@media (max-width: 900px) {
  .donate-hero h1 { font-size: 46px; } .donate-hero figure { margin: 0 auto; }
  .dn-unit, .dn-vows, .dn-ways { grid-template-columns: 1fr; }
  .dn-price strong { font-size: 46px; } .dn-poem { font-size: 18px; line-height: 2; }
  .dn-plan > div { grid-template-columns: 1fr; gap: 6px; } .dn-plan dd { font-size: 18px; }
  .dn-steps { grid-template-columns: 1fr; gap: 26px; } .dn-steps::before { display: none; }
  .donate-cta p { font-size: 20px; letter-spacing: .12em; }
  .count-card .dn-extra { width: 46%; }
}
