/* ==========================================================================
   亞洲道教 · 香港  —  Daojiao HK Theme
   玄墨 · 朱紅 · 燙金
   ========================================================================== */

:root {
  --ink:        #0b0a08;
  --ink-2:      #131009;
  --ink-3:      #1b1712;
  --ink-4:      #262018;
  --paper:      #f6f1e7;
  --paper-2:    #ebe3d3;
  --gold:       #c8a24a;
  --gold-lt:    #e9cd82;
  --gold-pl:    #f5e7c4;
  --ver:        #a32b23;
  --ver-lt:     #c8412f;
  --line:       rgba(200,162,74,.26);
  --txt:        #e7e1d5;
  --muted:      #a79d8c;

  --serif: "Noto Serif HK", "Source Han Serif HK", "PingFang HK", "Microsoft JhengHei", "Songti TC", serif;
  --sans:  "Noto Sans HK", "PingFang HK", "Microsoft JhengHei", "Helvetica Neue", Arial, sans-serif;

  --max: 1200px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- 共用 ---------- */
.wrap   { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.wrap-n { width: 100%; max-width: 920px;  margin: 0 auto; padding: 0 28px; }

.gold-text {
  background: linear-gradient(180deg, var(--gold-pl) 0%, var(--gold-lt) 45%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 頂欄 ---------- */
.topbar {
  background: #070605;
  border-bottom: 1px solid rgba(200,162,74,.14);
  font-size: 12.5px;
  letter-spacing: .18em;
  color: var(--muted);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 38px; }
.topbar .tb-left { color: var(--gold); }
.topbar a { color: var(--muted); }
.topbar a:hover { color: var(--gold-lt); }
.topbar .tb-right { display: flex; gap: 18px; }

/* ---------- 頁首 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11,10,8,.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-stuck {
  background: rgba(9,8,6,.96);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 40px rgba(0,0,0,.6);
}
.header-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 20px; padding: 14px 0;
}
.nav-left  { justify-self: start; }
.nav-right { justify-self: end; }

.nav-list { display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; list-style: none; }
.nav-list a {
  position: relative;
  font-family: var(--serif);
  font-size: 15px; letter-spacing: .22em;
  color: #d8d1c2; padding: 6px 0;
  transition: color .3s var(--ease);
}
.nav-list a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--gold);
  transition: width .35s var(--ease);
}
.nav-list a:hover { color: var(--gold-lt); }
.nav-list a:hover::after { width: 100%; }

.brand { display: flex; align-items: center; gap: 12px; justify-self: center; text-align: left; }
.brand .taiji { width: 34px; height: 34px; flex: none; }
.brand .taiji svg { width: 100%; height: 100%; display: block; animation: taiji-spin 48s linear infinite; }
.brand-name {
  font-family: var(--serif); font-size: 21px; font-weight: 600;
  letter-spacing: .3em; color: var(--gold-pl); line-height: 1.2; white-space: nowrap;
}
.brand-sub {
  display: block; font-family: var(--sans); font-size: 10.5px; font-weight: 300;
  letter-spacing: .42em; color: var(--muted); margin-top: 2px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--serif); font-size: 15px; letter-spacing: .18em;
  padding: 13px 30px; border-radius: 2px; border: 1px solid var(--gold);
  color: var(--gold-lt); background: transparent; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, var(--ver) 0%, var(--ver-lt) 100%);
  transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.btn:hover { color: #fff; border-color: var(--ver-lt); transform: translateY(-2px); }
.btn:hover::before { transform: scaleX(1); }
.btn-solid { background: linear-gradient(120deg, var(--ver) 0%, var(--ver-lt) 100%); color: #fff; border-color: transparent; }
.btn-solid:hover { box-shadow: 0 12px 30px rgba(196,65,47,.35); }
.btn-gold { background: linear-gradient(120deg, var(--gold) 0%, var(--gold-lt) 100%); color: #211a08; border-color: transparent; font-weight: 600; }
.btn-gold:hover { color: #100c04; box-shadow: 0 12px 30px rgba(200,162,74,.3); }
.nav-list a.btn::after { display: none; }
.nav-list a.btn:hover { color: var(--gold-pl); }
.btn-sm { padding: 9px 20px; font-size: 13.5px; letter-spacing: .14em; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  color: var(--gold-lt); width: 42px; height: 42px; border-radius: 2px; cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 1px; background: currentColor; margin: 4px auto; transition: .3s var(--ease); }

/* ---------- 英雄區 ---------- */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden; background: var(--ink);
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; transform: scale(1.06); animation: kenburns 26s ease-in-out infinite alternate; }
.hero-veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 62%, rgba(200,162,74,.20) 0%, rgba(200,162,74,0) 58%),
    linear-gradient(180deg, rgba(6,5,4,.92) 0%, rgba(6,5,4,.55) 38%, rgba(6,5,4,.86) 78%, #0b0a08 100%);
}
.hero-glow {
  position: absolute; left: 50%; top: 46%; width: 720px; height: 720px; transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(200,162,74,.16) 0%, rgba(200,162,74,0) 62%);
  pointer-events: none;
}
.hero-ring {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 460px; height: 460px; border: 1px solid rgba(200,162,74,.16); border-radius: 50%;
  pointer-events: none;
}
.hero-ring::after {
  content: ""; position: absolute; inset: 46px; border: 1px solid rgba(200,162,74,.1); border-radius: 50%;
}
.hero-content { position: relative; z-index: 3; padding: 120px 24px 96px; max-width: 900px; }
.hero-eyebrow {
  font-family: var(--serif); font-size: 12.5px; letter-spacing: .62em; color: var(--gold);
  text-transform: none; margin-bottom: 28px; padding-left: .62em;
}
.hero-title {
  font-size: clamp(46px, 9vw, 92px); font-weight: 600; letter-spacing: .16em;
  margin: 0 0 6px; padding-left: .16em; line-height: 1.18;
}
.hero-title-sub {
  font-family: var(--serif); font-size: clamp(15px, 2.2vw, 21px); font-weight: 300;
  letter-spacing: .5em; color: var(--muted); margin: 0 0 34px; padding-left: .5em;
}
.hero-rule { width: 120px; height: 1px; margin: 0 auto 34px; background: linear-gradient(90deg, transparent, var(--gold), transparent); position: relative; }
.hero-rule::after {
  content: ""; position: absolute; left: 50%; top: -3px; width: 7px; height: 7px;
  transform: translateX(-50%) rotate(45deg); background: var(--gold);
}
.hero-quote {
  font-family: var(--serif); font-size: clamp(17px, 2.4vw, 24px); font-weight: 300;
  line-height: 2.1; letter-spacing: .12em; color: #efe7d6; margin: 0 auto 12px; max-width: 720px;
}
.hero-source { font-size: 13px; letter-spacing: .3em; color: var(--muted); margin-bottom: 44px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* 香煙 */
.incense-smoke { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: 300px; height: 320px; z-index: 2; pointer-events: none; }
.incense-smoke i {
  position: absolute; bottom: -30px; width: 90px; height: 90px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,231,196,.22) 0%, rgba(245,231,196,0) 66%);
  filter: blur(9px); opacity: 0;
}
.incense-smoke i:nth-child(1) { left: 20px;  animation: smoke 11s linear infinite; }
.incense-smoke i:nth-child(2) { left: 105px; animation: smoke 13s linear infinite 2.5s; }
.incense-smoke i:nth-child(3) { left: 190px; animation: smoke 15s linear infinite 5s; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 10.5px; letter-spacing: .38em; color: var(--muted);
}
.scroll-cue .bar { width: 1px; height: 46px; background: linear-gradient(180deg, var(--gold), transparent); animation: cue 2.4s ease-in-out infinite; }

@keyframes taiji-spin { to { transform: rotate(360deg); } }
@keyframes kenburns  { from { transform: scale(1.02) translateY(0); } to { transform: scale(1.12) translateY(-14px); } }
@keyframes smoke { 0% { opacity: 0; transform: translateY(0) scale(.5); } 25% { opacity: .9; } 100% { opacity: 0; transform: translateY(-300px) scale(2.2); } }
@keyframes cue { 0%,100% { opacity: .25; transform: scaleY(.5); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); transform-origin: top; } }
@keyframes flicker { 0%,100% { opacity: .85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }

/* ---------- 章節 ---------- */
.section { position: relative; padding: 110px 0; }
.section-alt { background: linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 50%, var(--ink) 100%); }
.section-deep { background: #070605; }
.section-paper { background: var(--paper); color: #2a2419; }
.section-paper h1, .section-paper h2, .section-paper h3, .section-paper h4 { color: #211c12; }

.section-head { text-align: center; margin-bottom: 64px; }
.volume {
  display: inline-block; font-family: var(--serif); font-size: 12px; letter-spacing: .5em;
  color: var(--gold); padding: 5px 0 5px .5em; margin-bottom: 18px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  min-width: 160px; text-align: center;
}
.section-title {
  font-size: clamp(28px, 4.4vw, 44px); font-weight: 600; letter-spacing: .2em;
  margin: 0 0 20px; padding-left: .2em;
}
.section-sub { max-width: 640px; margin: 0 auto; color: var(--muted); font-size: 15.5px; letter-spacing: .06em; }
.section-paper .section-sub { color: #6a6151; }
.section-divider { width: 90px; height: 1px; margin: 26px auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); position: relative; }
.section-divider::after { content: ""; position: absolute; left: 50%; top: -3.5px; width: 7px; height: 7px; transform: translateX(-50%) rotate(45deg); background: var(--gold); }

/* 雲紋分隔 */
.cloud-divider { display: block; width: 100%; height: 46px; opacity: .5; }

/* ---------- 核心價值 ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.value-card {
  position: relative; padding: 46px 30px 38px; text-align: center;
  background: linear-gradient(180deg, rgba(38,32,24,.72) 0%, rgba(19,16,9,.72) 100%);
  border: 1px solid var(--line); border-radius: 2px;
  transition: transform .5s var(--ease), border-color .5s var(--ease), box-shadow .5s var(--ease);
}
.value-card::before {
  content: ""; position: absolute; inset: 8px; border: 1px solid rgba(200,162,74,.1); pointer-events: none;
}
.value-card:hover {
  transform: translateY(-8px); border-color: rgba(200,162,74,.55);
  box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(200,162,74,.12) inset;
}
.value-icon { width: 54px; height: 54px; margin: 0 auto 24px; color: var(--gold); }
.value-icon svg { width: 100%; height: 100%; display: block; }
.value-num {
  font-family: var(--serif); font-size: 11px; letter-spacing: .34em; color: var(--muted); margin-bottom: 12px;
}
.value-title { font-family: var(--serif); font-size: 25px; letter-spacing: .3em; margin: 0 0 14px; padding-left: .3em; }
.value-text { font-size: 14.8px; color: var(--muted); line-height: 1.95; margin: 0; }
.value-card:hover .value-title { color: var(--gold-pl); }

/* ---------- 經文 ---------- */
.scripture {
  position: relative; background: var(--paper); color: #2a2419;
  padding: 68px 60px; border-radius: 2px;
  box-shadow: 0 40px 90px rgba(0,0,0,.55);
}
.scripture::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(163,43,35,.22); }
.scripture-quote {
  font-family: var(--serif); font-size: clamp(20px, 2.8vw, 30px); font-weight: 400;
  line-height: 2.15; letter-spacing: .1em; text-align: center; margin: 0;
}
.scripture-meta { text-align: center; margin-top: 30px; font-size: 13px; letter-spacing: .3em; color: #8a7a5e; }
.seal {
  position: absolute; right: 34px; bottom: 30px; width: 62px; height: 62px;
  border: 2px solid var(--ver); color: var(--ver);
  font-family: var(--serif); font-size: 21px; letter-spacing: .04em;
  display: flex; align-items: center; justify-content: center; border-radius: 3px;
  opacity: .78; transform: rotate(-6deg); line-height: 1.15; text-align: center;
}
.scriptures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.scripture-card { position: relative; background: var(--paper); color: #2a2419; padding: 44px 32px 40px; border-radius: 2px; }
.scripture-card::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(163,43,35,.18); }
.scripture-card .sc-text { font-family: var(--serif); font-size: 18px; line-height: 2.05; letter-spacing: .08em; margin: 0 0 18px; }
.scripture-card .sc-src { font-size: 12.5px; letter-spacing: .24em; color: #8a7a5e; }

/* ---------- 科儀法會 ---------- */
.rites { border-top: 1px solid var(--line); }
.rite {
  display: grid; grid-template-columns: 168px 1fr auto; gap: 30px; align-items: center;
  padding: 30px 8px; border-bottom: 1px solid var(--line);
  transition: background .4s var(--ease), padding .4s var(--ease);
}
.rite:hover { background: rgba(200,162,74,.05); padding-left: 18px; }
.rite-date { display: flex; align-items: baseline; gap: 10px; font-family: var(--serif); }
.rite-date .d { font-size: 34px; color: var(--gold-pl); letter-spacing: .02em; }
.rite-date .m { font-size: 13px; letter-spacing: .22em; color: var(--muted); }
.rite-title { font-family: var(--serif); font-size: 21px; letter-spacing: .14em; margin: 0 0 6px; color: #efe8da; }
.rite-desc { font-size: 14.5px; color: var(--muted); margin: 0; }
.rite-tag {
  font-size: 11.5px; letter-spacing: .2em; color: var(--gold-lt);
  border: 1px solid var(--line); padding: 7px 16px; border-radius: 2px; white-space: nowrap;
}
.rites-empty { text-align: center; color: var(--muted); padding: 50px 0; }

/* ---------- 功德捐助 ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tier {
  position: relative; display: flex; flex-direction: column; text-align: center;
  padding: 44px 28px 34px; background: linear-gradient(180deg, rgba(38,32,24,.6), rgba(19,16,9,.6));
  border: 1px solid var(--line); border-radius: 2px; cursor: pointer;
  transition: transform .5s var(--ease), border-color .4s var(--ease), box-shadow .5s var(--ease);
}
.tier:hover, .tier.is-active {
  transform: translateY(-8px); border-color: var(--gold);
  box-shadow: 0 26px 60px rgba(0,0,0,.55);
}
.tier.is-active { background: linear-gradient(180deg, rgba(163,43,35,.22), rgba(19,16,9,.7)); }
.tier-icon { width: 46px; height: 46px; margin: 0 auto 20px; color: var(--gold-lt); }
.tier-icon svg { width: 100%; height: 100%; display: block; }
.tier.is-active .tier-icon { animation: flicker 1.8s ease-in-out infinite; }
.tier-name { font-family: var(--serif); font-size: 23px; letter-spacing: .28em; margin: 0 0 10px; padding-left: .28em; }
.tier-price { font-family: var(--serif); font-size: 17px; color: var(--gold-pl); letter-spacing: .1em; margin-bottom: 14px; }
.tier-desc { font-size: 14.2px; color: var(--muted); line-height: 1.9; margin: 0 0 22px; flex: 1; }
.tier-pick { font-size: 12px; letter-spacing: .24em; color: var(--gold); }

.pay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 46px; }
.pay-card {
  padding: 30px 26px; border: 1px solid var(--line); border-radius: 2px; text-align: center;
  background: rgba(19,16,9,.5); transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.pay-card:hover { border-color: rgba(200,162,74,.5); transform: translateY(-4px); }
.pay-card h4 { font-family: var(--serif); font-size: 17px; letter-spacing: .22em; margin: 0 0 12px; color: var(--gold-pl); }
.pay-card p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.85; word-break: break-word; }
.pay-card .pay-big { font-size: 19px; color: var(--gold-lt); letter-spacing: .1em; font-family: var(--serif); }

/* 表單 */
.donate-form { max-width: 760px; margin: 54px auto 0; padding: 46px 42px; border: 1px solid var(--line); background: rgba(19,16,9,.62); border-radius: 2px; }
.donate-form-head { text-align: center; margin-bottom: 34px; }
.donate-form-head h3 { font-family: var(--serif); font-size: 24px; letter-spacing: .26em; margin: 0 0 10px; }
.donate-form-head p { margin: 0; color: var(--muted); font-size: 14.5px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; }
.field-full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13px; letter-spacing: .18em; color: var(--gold-lt); margin-bottom: 9px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=number],
.field select, .field textarea {
  width: 100%; padding: 13px 15px; background: rgba(11,10,8,.85);
  border: 1px solid rgba(200,162,74,.22); border-radius: 2px;
  color: var(--txt); font-family: var(--sans); font-size: 15px; letter-spacing: .05em;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,162,74,.12);
}
.field select option { background: #131009; }
.check-line { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.check-line input { width: 16px; height: 16px; accent-color: var(--ver); }
.form-actions { text-align: center; margin-top: 30px; }
.form-note { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 18px; line-height: 1.8; }
.donate-msg { display: none; margin-top: 22px; padding: 20px 22px; border: 1px solid var(--gold); border-radius: 2px; text-align: center; font-size: 15px; color: var(--gold-pl); background: rgba(200,162,74,.08); }
.donate-msg.is-error { border-color: var(--ver-lt); color: #f0c8c2; background: rgba(163,43,35,.14); }

/* 功德名錄 */
.merit-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; }
.merit-item { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px dashed rgba(200,162,74,.16); }
.merit-name { font-family: var(--serif); font-size: 17px; letter-spacing: .16em; color: #ece5d7; }
.merit-kind { font-size: 13px; color: var(--muted); letter-spacing: .12em; }

/* ---------- 關於／引言 ---------- */
.about { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.about-text p { color: var(--muted); font-size: 15.5px; line-height: 2.05; }
.about-frame { position: relative; }
.about-frame img { width: 100%; border: 1px solid var(--line); filter: saturate(.9) contrast(1.05); }
.about-frame::before { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(200,162,74,.18); pointer-events: none; }
.about-frame::after { content: ""; position: absolute; inset: -14px; border: 1px solid rgba(200,162,74,.08); pointer-events: none; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 44px; }
.stat { text-align: center; padding: 24px 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat b { display: block; font-family: var(--serif); font-size: 36px; font-weight: 600; color: var(--gold-pl); letter-spacing: .04em; }
.stat span { font-size: 13px; letter-spacing: .22em; color: var(--muted); }

/* ---------- 結緣／聯絡 ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.contact-card { text-align: center; padding: 40px 26px; border: 1px solid var(--line); border-radius: 2px; background: rgba(19,16,9,.5); }
.contact-card .cc-icon { width: 42px; height: 42px; margin: 0 auto 18px; color: var(--gold); }
.contact-card .cc-icon svg { width: 100%; height: 100%; display: block; }
.contact-card h4 { font-family: var(--serif); font-size: 17px; letter-spacing: .24em; margin: 0 0 10px; color: var(--gold-pl); }
.contact-card p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.9; word-break: break-word; }

.cta-band {
  position: relative; text-align: center; padding: 96px 0; overflow: hidden;
  background: linear-gradient(120deg, #1a0a08 0%, #2d120e 45%, #1a0a08 100%);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.cta-band::before {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 900px; height: 400px; background: radial-gradient(ellipse, rgba(200,162,74,.14), transparent 66%);
}
.cta-band h2 { font-size: clamp(26px, 4vw, 40px); letter-spacing: .22em; margin: 0 0 18px; padding-left: .22em; }
.cta-band p { color: #d9cebc; max-width: 620px; margin: 0 auto 36px; font-size: 15.5px; }

/* ---------- 內頁 ---------- */
.page-hero {
  position: relative; padding: 150px 0 90px; text-align: center; overflow: hidden;
  background: linear-gradient(180deg, #100d0a 0%, #0b0a08 100%);
  border-bottom: 1px solid var(--line);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: url(../img/hero.jpg) center/cover no-repeat; opacity: .14;
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(30px, 5.2vw, 52px); letter-spacing: .22em; margin: 0 0 16px; padding-left: .22em; }
.page-hero .crumb { font-size: 12.5px; letter-spacing: .3em; color: var(--muted); }
.page-body { padding: 86px 0 100px; }
.page-body .entry-content { max-width: 860px; margin: 0 auto; }

.post-card {
  display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: center;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.post-card:first-child { border-top: 1px solid var(--line); }
.post-thumb { overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/10; background: var(--ink-3); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card:hover .post-thumb img { transform: scale(1.07); }
.post-meta { font-size: 12px; letter-spacing: .22em; color: var(--muted); margin-bottom: 10px; }
.post-card h2 { font-size: 22px; letter-spacing: .1em; margin: 0 0 8px; }
.post-card h2 a { color: #ece5d7; }
.post-card h2 a:hover { color: var(--gold-lt); }
.post-excerpt { color: var(--muted); font-size: 14.8px; margin: 0; }

/* ---------- 頁尾 ---------- */
.site-footer { background: #070605; border-top: 1px solid var(--line); padding: 78px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 56px; }
.footer-brand .brand { justify-self: start; margin-bottom: 20px; }
.footer-brand p { color: var(--muted); font-size: 14.5px; line-height: 1.95; max-width: 320px; }
.footer-col h4 { font-family: var(--serif); font-size: 15px; letter-spacing: .3em; color: var(--gold-pl); margin: 0 0 20px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a, .footer-col span.f { color: var(--muted); font-size: 14.5px; }
.footer-col a:hover { color: var(--gold-lt); }
.footer-bottom {
  border-top: 1px solid rgba(200,162,74,.14); padding: 26px 0 34px;
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: #7d7566; letter-spacing: .1em;
}
.footer-blessing { font-family: var(--serif); letter-spacing: .34em; color: var(--gold); font-size: 14px; }

/* ---------- 回到頂部 ---------- */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 70;
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(11,10,8,.9); color: var(--gold-lt);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; pointer-events: none; transition: opacity .4s var(--ease), transform .4s var(--ease), border-color .3s;
}
.to-top.is-show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-4px); border-color: var(--gold); }

/* ---------- 手機 ---------- */
@media (max-width: 1080px) {
  .values, .scriptures, .pay-grid { grid-template-columns: repeat(2, 1fr); }
  .tiers { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .rites .rite { grid-template-columns: 130px 1fr; }
  .rite-tag { grid-column: 2; justify-self: start; }
}
@media (max-width: 900px) {
  .header-inner { grid-template-columns: auto 1fr auto; padding: 12px 0; }
  .nav-left, .nav-right { display: none; }
  .site-header .brand { justify-self: start; }
  .brand-name { font-size: 18px; letter-spacing: .2em; }
  .nav-toggle { display: block; justify-self: end; }
  .mobile-nav {
    display: none; border-top: 1px solid var(--line); background: rgba(9,8,6,.98);
    padding: 14px 0 24px;
  }
  .mobile-nav.is-open { display: block; }
  .mobile-nav ul { list-style: none; margin: 0; padding: 0; }
  .mobile-nav li { border-bottom: 1px solid rgba(200,162,74,.1); }
  .mobile-nav a { display: block; padding: 14px 4px; font-family: var(--serif); letter-spacing: .24em; color: #ddd6c8; font-size: 15px; }
  .mobile-nav .btn { margin-top: 18px; width: 100%; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .merit-list { grid-template-columns: 1fr; }
  .section { padding: 76px 0; }
  .scripture { padding: 48px 30px; }
  .seal { right: 18px; bottom: 16px; width: 52px; height: 52px; font-size: 17px; }
  .donate-form { padding: 32px 22px; }
  .field-grid { grid-template-columns: 1fr; }
  .post-card { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .values, .scriptures, .tiers, .pay-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 100vh; }
  .hero-content { padding: 110px 18px 90px; }
  .topbar .tb-right { display: none; }
  .rites .rite { grid-template-columns: 1fr; gap: 10px; }
  .rite-tag { grid-column: 1; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat b { font-size: 28px; }
}
