/*
 * 檔案名稱：assets/css/site.css
 * 修改日期：2026/08/29 10:21（UTC+8）
 * 檔案用途：網站前台視覺、響應式、內容頁、武德真經卷軸閱讀器與公益表單樣式
 * 修改說明：v1.8.2 修正武德真經卷軸停在單一章節時仍露出下一章文字；保留 v1.8.1 武澤宮義工與既有雙品牌視覺。
 */
:root {
    --ink: #2d2722;
    --muted: #796f66;
    --paper: #f5f1e9;
    --paper-2: #ebe4d9;
    --white: #fffdf9;
    --wine: #7e332d;
    --wine-dark: #4a211e;
    --gold: #caa25d;
    --gold-soft: #e7d4aa;
    --green: #244d3a;
    --green-2: #416b55;
    --green-soft: #dfe8df;
    --line: rgba(64, 48, 38, .14);
    --shadow: 0 24px 70px rgba(54, 37, 25, .12);
    --radius: 28px;
    --content: min(1220px, calc(100vw - 48px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--paper);
    color: var(--ink);
    font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
    line-height: 1.75;
}

body.nav-open {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: var(--content);
    margin-inline: auto;
}

.eyebrow,
.hero-kicker,
.footer-eyebrow {
    color: var(--wine);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.site-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    left: 0;
    padding-top: env(safe-area-inset-top, 0px);
    color: #fff;
    transition: background .3s ease, color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}

.inner-page .site-header,
.site-header.scrolled {
    background: rgba(251, 248, 242, .92);
    color: var(--ink);
    box-shadow: 0 1px 0 rgba(74, 52, 36, .08);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.nav-wrap {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.brand {
    position: relative;
    z-index: 1002;
    display: inline-flex;
    align-items: center;
    gap: 13px;
    flex: 0 0 auto;
}

.brand-mark {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 50%;
    background: rgba(126, 51, 45, .2);
    transition: border-color .3s, background .3s;
}

.brand-mark img {
    width: 34px;
    height: 34px;
}

.inner-page .brand-mark,
.site-header.scrolled .brand-mark {
    border-color: rgba(126, 51, 45, .22);
    background: rgba(126, 51, 45, .07);
}

.brand-copy {
    display: grid;
    gap: 1px;
}

.brand-copy strong {
    font-family: "Noto Serif TC", "Songti TC", serif;
    font-size: 20px;
    letter-spacing: .08em;
}

.brand-copy small {
    opacity: .72;
    font-size: 10px;
    letter-spacing: .08em;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    min-width: 0;
}

.nav-links,
.nav-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav a {
    position: relative;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 800;
}

.nav-links a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -9px;
    left: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .25s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-cta {
    padding: 10px 18px;
    border: 1px solid currentColor;
    border-radius: 999px;
}

.menu-toggle {
    position: relative;
    z-index: 1002;
    width: 48px;
    height: 48px;
    display: none;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
}

.menu-toggle span {
    position: absolute;
    left: 13px;
    width: 22px;
    height: 2px;
    background: currentColor;
    transition: transform .3s, top .3s;
}

.menu-toggle span:first-child { top: 19px; }
.menu-toggle span:last-child { top: 27px; }
.menu-toggle[aria-expanded="true"] span:first-child { top: 23px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { top: 23px; transform: rotate(-45deg); }

.home-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    overflow: hidden;
    background: #271c18;
}

.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide[hidden] {
    display: none;
}

.hero-bg,
.hero-shade {
    position: absolute;
    inset: 0;
}

.hero-bg {
    background-position: center;
    background-size: cover;
    transform: scale(1.025);
    animation: hero-breathe 9s ease-out both;
}

.hero-shade {
    background:
        linear-gradient(90deg, rgba(25, 18, 15, .78) 0%, rgba(31, 22, 18, .42) 50%, rgba(31, 22, 18, .14) 100%),
        linear-gradient(0deg, rgba(26, 19, 16, .52), transparent 50%);
}

.theme-charity .hero-shade {
    background:
        linear-gradient(90deg, rgba(17, 44, 32, .82) 0%, rgba(24, 66, 47, .48) 53%, rgba(25, 70, 49, .14) 100%),
        linear-gradient(0deg, rgba(13, 38, 27, .48), transparent 52%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 50px;
    padding-top: 150px;
    padding-bottom: max(112px, calc(78px + env(safe-area-inset-bottom, 0px)));
    color: #fff;
}

.hero-copy {
    width: min(830px, 78vw);
}

.hero-kicker {
    margin-bottom: 24px;
    color: #efd08d;
}

.hero-copy h1 {
    max-width: 850px;
    margin: 0;
    font-family: "Noto Serif TC", "Songti TC", serif;
    font-size: clamp(58px, 8vw, 116px);
    font-weight: 700;
    line-height: .98;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.hero-copy p {
    max-width: 670px;
    margin: 28px 0 34px;
    color: rgba(255, 255, 255, .8);
    font-size: clamp(16px, 1.7vw, 20px);
    line-height: 1.9;
}

.btn {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--wine);
    color: #fff;
    white-space: nowrap;
    font-weight: 900;
    transition: transform .2s, background .2s, border-color .2s;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
}

.hero-button {
    background: rgba(255, 255, 255, .94);
    color: var(--wine-dark);
}

.theme-charity .hero-button {
    color: var(--green);
}

.hero-side-note {
    display: flex;
    align-items: center;
    gap: 14px;
    writing-mode: vertical-rl;
    font-size: 11px;
    letter-spacing: .18em;
    opacity: .74;
}

.hero-side-note i {
    width: 1px;
    height: 76px;
    background: rgba(255, 255, 255, .45);
}

.hero-controls {
    position: absolute;
    z-index: 5;
    right: 0;
    bottom: 34px;
    left: 0;
    pointer-events: none;
}

.hero-tabs {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.hero-tabs button {
    width: 58px;
    height: 34px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .36);
    background: transparent;
    color: rgba(255, 255, 255, .54);
    text-align: left;
    pointer-events: auto;
    cursor: pointer;
}

.hero-tabs button.active {
    border-color: #fff;
    color: #fff;
}

.hero-tabs span {
    font-size: 11px;
    font-weight: 900;
}

.scroll-cue {
    position: absolute;
    z-index: 4;
    bottom: 30px;
    left: max(22px, calc((100vw - min(1220px, calc(100vw - 48px))) / 2));
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, .58);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .22em;
}

.scroll-cue i {
    width: 48px;
    height: 1px;
    background: currentColor;
}

.now-strip {
    position: relative;
    z-index: 20;
    background: #2c241f;
    color: #fff;
}

.now-grid {
    min-height: 116px;
    display: grid;
    grid-template-columns: 190px repeat(3, minmax(0, 1fr));
}

.now-title,
.now-item {
    min-width: 0;
    padding: 24px 24px;
    border-right: 1px solid rgba(255, 255, 255, .11);
}

.now-title {
    padding-left: 0;
    display: grid;
    align-content: center;
}

.now-title > span {
    color: var(--gold);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .24em;
}

.now-title strong {
    margin-top: 2px;
    font-family: "Noto Serif TC", serif;
    font-size: 22px;
}

.now-title small {
    color: rgba(255, 255, 255, .54);
}

.now-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 17px;
    transition: background .2s;
}

.now-item:hover,
.now-item:focus-visible {
    background: rgba(255, 255, 255, .06);
}

.now-date {
    min-width: 46px;
    color: var(--gold-soft);
    font-family: "Noto Serif TC", serif;
    font-size: 17px;
    font-weight: 800;
}

.now-item span:nth-child(2) {
    min-width: 0;
    display: grid;
}

.now-item small {
    color: rgba(255, 255, 255, .5);
    font-size: 10px;
    letter-spacing: .12em;
}

.now-item strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.section {
    padding: clamp(88px, 9vw, 148px) 0;
}

.section-intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 48px;
}

.section-intro h2,
.event-heading h2,
.charity-lead h2,
.donation-intro h2 {
    margin: 10px 0 0;
    font-family: "Noto Serif TC", "Songti TC", serif;
    font-size: clamp(38px, 5vw, 68px);
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -.035em;
}

.section-intro > p {
    max-width: 470px;
    margin: 0;
    color: var(--muted);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: var(--wine);
    white-space: nowrap;
    font-weight: 900;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.feature-link {
    min-height: 180px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto 1fr;
    gap: 16px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 253, 249, .76);
    transition: transform .25s, background .25s, color .25s;
}

.feature-link:nth-child(1),
.feature-link:nth-child(5) {
    grid-column: span 2;
}

.feature-link:hover,
.feature-link:focus-visible {
    transform: translateY(-5px);
    background: var(--wine);
    color: #fff;
}

.feature-no {
    color: var(--gold);
    font-size: 11px;
    font-weight: 900;
}

.feature-name {
    align-self: end;
    font-family: "Noto Serif TC", serif;
    font-size: clamp(23px, 2.2vw, 32px);
    font-weight: 800;
}

.feature-arrow {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: end;
    font-size: 22px;
}

.temple-story-section {
    padding: 0 0 clamp(90px, 9vw, 150px);
}

.story-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    border-radius: 36px;
    overflow: visible;
    background: #2d221d;
    color: #fff;
    box-shadow: var(--shadow);
}

.story-visual {
    position: sticky;
    top: 110px;
    height: calc(100vh - 140px);
    min-height: 650px;
    overflow: hidden;
    border-radius: 36px 0 0 36px;
}

.story-image {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
}

.story-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(39, 28, 23, .74));
}

.story-visual-copy {
    position: absolute;
    z-index: 2;
    right: 48px;
    bottom: 48px;
    left: 48px;
    display: grid;
    gap: 8px;
}

.story-visual-copy span {
    color: var(--gold-soft);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .22em;
}

.story-visual-copy strong {
    font-family: "Noto Serif TC", serif;
    font-size: clamp(38px, 4vw, 62px);
}

.story-visual-copy small {
    max-width: 520px;
    color: rgba(255, 255, 255, .69);
    font-size: 14px;
}

.story-chapters {
    padding: 0 52px;
}

.story-chapter {
    min-height: 72vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 90px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.story-chapter:last-child {
    border-bottom: 0;
}

.chapter-no {
    margin-bottom: 52px;
    color: rgba(255, 255, 255, .24);
    font-family: "Noto Serif TC", serif;
    font-size: 54px;
}

.story-chapter .eyebrow {
    color: var(--gold);
}

.story-chapter h2 {
    margin: 12px 0 22px;
    font-family: "Noto Serif TC", serif;
    font-size: clamp(38px, 4.4vw, 60px);
    line-height: 1.2;
}

.story-chapter p {
    max-width: 590px;
    color: rgba(255, 255, 255, .66);
}

.story-chapter .text-link {
    margin-top: 18px;
    color: var(--gold-soft);
}

.temple-topic-section {
    background: #fbf8f2;
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.topic-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 16px 46px rgba(55, 38, 26, .07);
}

.topic-media {
    min-height: 360px;
    background-position: center;
    background-size: cover;
    transition: transform .5s ease;
}

.topic-card:hover .topic-media {
    transform: scale(1.025);
}

.topic-events {
    background:
        radial-gradient(circle at 72% 35%, rgba(227, 195, 120, .45), transparent 24%),
        linear-gradient(145deg, #6d2e29, #2d211c);
}

.topic-copy {
    padding: 28px 30px 34px;
}

.topic-copy > span {
    color: var(--wine);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .18em;
}

.topic-copy h3 {
    margin: 8px 0 10px;
    font-family: "Noto Serif TC", serif;
    font-size: 30px;
}

.topic-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.event-section {
    background: #f0e8dd;
}

.event-layout {
    display: grid;
    grid-template-columns: minmax(250px, .65fr) minmax(0, 1.35fr);
    gap: clamp(50px, 8vw, 120px);
    align-items: start;
}

.event-heading {
    position: sticky;
    top: 130px;
}

.event-heading p,
.donation-intro p,
.charity-lead p {
    color: var(--muted);
}

.event-heading .text-link {
    margin-top: 22px;
}

.event-timeline {
    border-top: 1px solid rgba(74, 48, 35, .18);
}

.event-row {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    padding: 30px 0;
    border-bottom: 1px solid rgba(74, 48, 35, .18);
}

.event-row time {
    display: grid;
}

.event-row time strong {
    font-family: "Noto Serif TC", serif;
    font-size: 42px;
    line-height: 1;
}

.event-row time span {
    margin-top: 5px;
    color: var(--wine);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .18em;
}

.event-row h3 {
    margin: 0;
    font-family: "Noto Serif TC", serif;
    font-size: 25px;
}

.event-row p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.event-row > b {
    font-size: 22px;
    transition: transform .2s;
}

.event-row:hover > b {
    transform: translate(3px, -3px);
}

.news-section {
    background: #fffdf9;
}

.news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(290px, .55fr);
    gap: 18px;
}

.news-lead {
    min-height: 590px;
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #2d221d;
    color: #fff;
}

.news-lead-media {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    opacity: .74;
    transition: transform .6s;
}

.news-lead:hover .news-lead-media {
    transform: scale(1.025);
}

.news-lead::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(31, 23, 20, .88), rgba(31, 23, 20, .04) 70%);
}

.news-lead-copy {
    position: absolute;
    z-index: 2;
    right: 36px;
    bottom: 36px;
    left: 36px;
}

.news-lead-copy time,
.news-compact time {
    color: var(--gold-soft);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
}

.news-lead-copy h3 {
    max-width: 720px;
    margin: 10px 0 12px;
    font-family: "Noto Serif TC", serif;
    font-size: clamp(30px, 3.5vw, 50px);
    line-height: 1.25;
}

.news-lead-copy p {
    max-width: 620px;
    color: rgba(255, 255, 255, .72);
}

.news-lead-copy > span {
    font-weight: 900;
}

.news-side {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.news-compact {
    position: relative;
    min-height: 0;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--paper);
}

.news-compact time {
    color: var(--wine);
}

.news-compact h3 {
    margin: 18px 0 10px;
    font-family: "Noto Serif TC", serif;
    font-size: 25px;
    line-height: 1.4;
}

.news-compact p {
    color: var(--muted);
    font-size: 14px;
}

.news-compact > span {
    position: absolute;
    right: 26px;
    bottom: 24px;
    font-size: 22px;
}

.charity-zone {
    padding: clamp(100px, 10vw, 160px) 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 85% 12%, rgba(210, 183, 114, .18), transparent 22%),
        linear-gradient(145deg, #183b2b, #315a47 60%, #426957);
    color: #fff;
}

.charity-layout {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: clamp(55px, 8vw, 120px);
    align-items: start;
}

.charity-lead .eyebrow {
    color: #e9cf92;
}

.charity-lead h2 {
    color: #fff;
}

.charity-lead p {
    max-width: 630px;
    color: rgba(255, 255, 255, .68);
}

.charity-button {
    margin-top: 20px;
    background: #f7f0df;
    color: var(--green);
}

.charity-action-grid {
    display: grid;
    gap: 14px;
}

.charity-action-card {
    position: relative;
    min-height: 190px;
    padding: 26px 64px 28px 28px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 25px;
    background: rgba(255, 255, 255, .07);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    transition: background .25s, transform .25s;
}

.charity-action-card:hover,
.charity-action-card:focus-visible {
    transform: translateX(-5px);
    background: rgba(255, 255, 255, .12);
}

.charity-action-card > span {
    color: #e7ca84;
    font-size: 10px;
    font-weight: 900;
}

.charity-action-card h3 {
    margin: 15px 0 8px;
    font-family: "Noto Serif TC", serif;
    font-size: 30px;
}

.charity-action-card p {
    max-width: 540px;
    margin: 0;
    color: rgba(255, 255, 255, .62);
    font-size: 14px;
}

.charity-action-card b {
    position: absolute;
    right: 28px;
    bottom: 26px;
    font-size: 24px;
}

.project-ribbon {
    margin-top: 70px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 24px;
    background: rgba(255, 255, 255, .13);
}

.project-item {
    min-height: 190px;
    display: grid;
    align-content: end;
    gap: 5px;
    padding: 30px;
    background: rgba(16, 51, 36, .68);
}

.project-item span,
.project-item small {
    color: rgba(255, 255, 255, .56);
}

.project-item span {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .16em;
}

.project-item strong {
    font-family: "Noto Serif TC", serif;
    font-size: 27px;
}

.donation-section {
    background: #f5f1e9;
}

.donation-layout {
    display: grid;
    grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr);
    gap: clamp(55px, 8vw, 120px);
}

.donation-intro .text-link {
    margin-top: 18px;
}

.donation-preview {
    border-top: 1px solid var(--line);
}

.donation-row {
    display: grid;
    grid-template-columns: 118px minmax(130px, .8fr) minmax(120px, .7fr) minmax(180px, 1.3fr);
    gap: 18px;
    align-items: center;
    padding: 21px 0;
    border-bottom: 1px solid var(--line);
}

.donation-row time,
.donation-row small {
    color: var(--muted);
    font-size: 13px;
}

.donation-row > span {
    color: var(--wine);
    font-weight: 900;
}

.gallery-section {
    background: #fffdf9;
}

.gallery-mosaic {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 120px;
    gap: 12px;
}

.gallery-tile {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
}

.gallery-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.gallery-tile:hover img {
    transform: scale(1.035);
}

.gallery-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(24, 19, 17, .68), transparent 55%);
}

.gallery-tile span {
    position: absolute;
    z-index: 2;
    right: 20px;
    bottom: 16px;
    left: 20px;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.tile-1 { grid-column: span 7; grid-row: span 3; }
.tile-2 { grid-column: span 5; grid-row: span 2; }
.tile-3 { grid-column: span 5; grid-row: span 2; }
.tile-4 { grid-column: span 4; grid-row: span 2; }
.tile-5 { grid-column: span 4; grid-row: span 2; }
.tile-6 { grid-column: span 4; grid-row: span 2; }

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 190px 0 100px;
    background:
        radial-gradient(circle at 80% 25%, rgba(201, 161, 89, .22), transparent 20%),
        linear-gradient(135deg, #4b2c28, #211a17);
    color: #fff;
}

.page-hero::after {
    content: "";
    position: absolute;
    right: -110px;
    bottom: -160px;
    width: 440px;
    height: 440px;
    border: 65px solid rgba(202, 162, 93, .08);
    border-radius: 50%;
}

.page-hero .eyebrow {
    color: #e8ca88;
}

.page-hero h1 {
    max-width: 900px;
    margin: 10px 0 12px;
    font-family: "Noto Serif TC", serif;
    font-size: clamp(44px, 7vw, 82px);
    line-height: 1.12;
}

.page-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, .7);
}

.page-content {
    position: relative;
    margin-top: -38px;
    padding: clamp(28px, 5vw, 70px);
    border-radius: 30px;
    background: #fff;
    box-shadow: var(--shadow);
}

.page-content h2,
.page-content h3 {
    color: var(--wine);
    font-family: "Noto Serif TC", serif;
}

.page-content img {
    border-radius: 20px;
}

.listing {
    display: grid;
    gap: 14px;
}

.list-item {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 24px 26px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
}

.list-date {
    color: var(--wine);
    font-family: "Noto Serif TC", serif;
    font-size: 24px;
}

.list-item h3 {
    margin: 0 0 6px;
    font-family: "Noto Serif TC", serif;
    font-size: 23px;
}

.list-item p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.donation-table {
    width: 100%;
    overflow: hidden;
    border-collapse: collapse;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .04);
}

.donation-table th,
.donation-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    white-space: nowrap;
}

.donation-table th {
    background: #efe6db;
    color: var(--wine);
}

.empty {
    padding: 46px;
    border-radius: 22px;
    background: #fff;
    color: var(--muted);
    text-align: center;
}

.embed-section {
    padding-top: 34px;
}

.embed-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(50, 35, 20, .08);
}

.embed-toolbar div {
    display: grid;
    gap: 4px;
}

.embed-toolbar span {
    color: var(--muted);
    font-size: 14px;
}

.embed-frame-wrap {
    height: var(--embed-height, 800px);
    min-height: 480px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(50, 35, 20, .12);
}

.embed-frame-wrap iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

.footer {
    padding: clamp(80px, 9vw, 130px) 0 28px;
    background: #211b18;
    color: #fff;
}

.footer-lead {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 52px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.footer-eyebrow {
    color: var(--gold);
}

.footer-lead h2 {
    margin: 10px 0 0;
    font-family: "Noto Serif TC", serif;
    font-size: clamp(36px, 5vw, 62px);
    line-height: 1.18;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-brand img {
    width: 62px;
}

.footer-brand span {
    display: grid;
}

.footer-brand strong {
    font-family: "Noto Serif TC", serif;
    font-size: 20px;
}

.footer-brand small,
.footer p,
.footer a {
    color: rgba(255, 255, 255, .63);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr .8fr 1fr;
    gap: 55px;
    padding: 52px 0;
}

.footer h3 {
    margin-top: 0;
    font-family: "Noto Serif TC", serif;
    font-size: 20px;
}

.footer-links {
    display: grid;
    gap: 9px;
}

.copyright {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .38);
    font-size: 11px;
}

.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .68s ease, transform .68s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

@keyframes hero-breathe {
    from { transform: scale(1.055); }
    to { transform: scale(1.015); }
}

@media (max-width: 1100px) {
    .nav-links { gap: 15px; }
    .nav a { font-size: 13px; }
    .now-grid { grid-template-columns: 160px repeat(3, minmax(0, 1fr)); }
    .now-title, .now-item { padding-inline: 18px; }
    .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .feature-link:nth-child(1), .feature-link:nth-child(5) { grid-column: span 1; }
    .topic-media { min-height: 310px; }
}

@media (max-width: 900px) {
    :root { --content: min(100% - 36px, 760px); }

    .nav-wrap { min-height: 82px; }
    .menu-toggle { display: block; }

    .nav {
        position: fixed;
        z-index: 1001;
        inset: 0;
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 30px;
        padding:
            max(110px, calc(88px + env(safe-area-inset-top, 0px)))
            max(28px, calc(24px + env(safe-area-inset-right, 0px)))
            max(44px, calc(28px + env(safe-area-inset-bottom, 0px)))
            max(28px, calc(24px + env(safe-area-inset-left, 0px)));
        background: rgba(34, 27, 23, .98);
        color: #fff;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        transition: opacity .28s ease, transform .28s ease, visibility .28s;
    }

    .nav.open {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-links,
    .nav-actions {
        display: grid;
        gap: 0;
        width: 100%;
    }

    .nav-links a {
        padding: 14px 0;
        border-bottom: 1px solid rgba(255, 255, 255, .13);
        font-family: "Noto Serif TC", serif;
        font-size: clamp(22px, 6vw, 34px);
    }

    .nav-links a::after { display: none; }
    .nav-cta { width: 100%; min-height: 50px; }

    .site-header.scrolled .menu-toggle,
    .inner-page .menu-toggle {
        color: var(--ink);
    }

    .site-header:has(.nav.open) .brand,
    .site-header:has(.nav.open) .menu-toggle {
        color: #fff;
    }

    .site-header:has(.nav.open) .brand-mark {
        border-color: rgba(255, 255, 255, .25);
        background: rgba(255, 255, 255, .06);
    }

    .hero-content { align-items: flex-end; }
    .hero-copy { width: 100%; }
    .hero-side-note { display: none; }

    .now-grid {
        grid-template-columns: 1fr;
        padding: 12px 0;
    }

    .now-title,
    .now-item {
        padding: 17px 0;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .1);
    }

    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    .story-shell {
        grid-template-columns: 1fr;
        overflow: hidden;
        border-radius: 30px;
    }

    .story-visual {
        position: relative;
        top: auto;
        height: 65svh;
        min-height: 480px;
        border-radius: 30px 30px 0 0;
    }

    .story-chapters { padding: 0 34px; }
    .story-chapter { min-height: auto; padding: 72px 0; }
    .chapter-no { margin-bottom: 28px; }

    .topic-grid { grid-template-columns: 1fr; }
    .topic-card { display: grid; grid-template-columns: minmax(220px, .8fr) 1fr; }
    .topic-media { min-height: 280px; }

    .event-layout,
    .charity-layout,
    .donation-layout {
        grid-template-columns: 1fr;
        gap: 46px;
    }

    .event-heading { position: static; }
    .news-layout { grid-template-columns: 1fr; }
    .news-side { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .charity-action-grid { grid-template-columns: 1fr; }
    .donation-row { grid-template-columns: 110px 1fr 130px; }
    .donation-row small { grid-column: 2 / -1; }

    .footer-lead { align-items: flex-start; flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    :root { --content: calc(100% - 32px); }

    .nav-wrap { min-height: 74px; }
    .brand-mark { width: 44px; height: 44px; }
    .brand-mark img { width: 30px; height: 30px; }
    .brand-copy strong { font-size: 17px; }
    .brand-copy small { display: none; }

    .home-hero {
        min-height: 740px;
        min-height: 100svh;
    }

    .hero-content {
        min-height: 740px;
        min-height: 100svh;
        padding-top: max(120px, calc(96px + env(safe-area-inset-top, 0px)));
        padding-bottom: max(100px, calc(76px + env(safe-area-inset-bottom, 0px)));
    }

    .hero-shade {
        background:
            linear-gradient(0deg, rgba(27, 20, 17, .78), rgba(27, 20, 17, .12) 68%),
            linear-gradient(90deg, rgba(27, 20, 17, .25), transparent);
    }

    .theme-charity .hero-shade {
        background:
            linear-gradient(0deg, rgba(15, 43, 31, .82), rgba(15, 43, 31, .12) 68%),
            linear-gradient(90deg, rgba(15, 43, 31, .25), transparent);
    }

    .hero-kicker { margin-bottom: 18px; }
    .hero-copy h1 { font-size: clamp(45px, 14vw, 68px); line-height: 1.05; }
    .hero-copy p { margin: 20px 0 26px; font-size: 16px; }
    .hero-button { min-height: 52px; width: 100%; }
    .hero-controls { bottom: max(22px, env(safe-area-inset-bottom, 0px)); }
    .hero-tabs { justify-content: flex-end; }
    .scroll-cue { display: none; }

    .section { padding: 76px 0; }
    .section-intro { display: grid; gap: 18px; margin-bottom: 32px; }
    .section-intro h2, .event-heading h2, .charity-lead h2, .donation-intro h2 { font-size: 38px; }

    .feature-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .feature-link { min-height: 142px; padding: 18px; border-radius: 19px; }
    .feature-name { font-size: 21px; }

    .temple-story-section { padding-bottom: 76px; }
    .story-shell { width: calc(100% - 20px); }
    .story-visual { height: 58svh; min-height: 430px; }
    .story-visual-copy { right: 26px; bottom: 28px; left: 26px; }
    .story-visual-copy strong { font-size: 38px; }
    .story-chapters { padding: 0 26px; }
    .story-chapter h2 { font-size: 38px; }

    .topic-card { grid-template-columns: 1fr; }
    .topic-media { min-height: 260px; }
    .topic-copy { padding: 24px; }

    .event-row { grid-template-columns: 62px minmax(0, 1fr) auto; gap: 15px; padding: 24px 0; }
    .event-row time strong { font-size: 34px; }
    .event-row h3 { font-size: 21px; }
    .event-row p { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

    .news-lead { min-height: 520px; }
    .news-lead-copy { right: 24px; bottom: 24px; left: 24px; }
    .news-lead-copy h3 { font-size: 31px; }
    .news-side { grid-template-columns: 1fr; }
    .news-compact { min-height: 230px; padding: 24px; }

    .charity-zone { padding: 82px 0; }
    .charity-action-card { min-height: 176px; padding: 24px 56px 24px 24px; }
    .charity-action-card h3 { font-size: 26px; }
    .project-ribbon { grid-template-columns: 1fr; margin-top: 50px; }

    .donation-row {
        grid-template-columns: 1fr auto;
        gap: 5px 12px;
        padding: 18px 0;
    }
    .donation-row time { grid-column: 1; }
    .donation-row strong { grid-column: 1; }
    .donation-row > span { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
    .donation-row small { grid-column: 1 / -1; }

    .gallery-mosaic { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
    .gallery-tile { grid-column: span 1 !important; grid-row: span 1 !important; }
    .gallery-tile:first-child { grid-column: 1 / -1 !important; grid-row: span 2 !important; }

    .page-hero { padding: 150px 0 76px; }
    .page-content { margin-top: -24px; border-radius: 24px; }
    .list-item { grid-template-columns: 1fr auto; gap: 12px; }
    .list-date { grid-column: 1 / -1; font-size: 18px; }
    .list-item p { grid-column: 1 / -1; }

    .embed-toolbar { align-items: stretch; flex-direction: column; }
    .embed-toolbar .btn { width: 100%; }
    .embed-frame-wrap { height: max(640px, var(--embed-height, 800px)); border-radius: 14px; }

    .footer { padding-bottom: max(28px, env(safe-area-inset-bottom, 0px)); }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .footer-brand { align-items: flex-start; }
    .copyright { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}


/* =========================================================
   舜心慈善功德會｜志工報名／急難救助申請 v1.3.0
   iPhone Safari、Android、平板與桌機響應式表單
   ========================================================= */
html {
    -webkit-text-size-adjust: 100%;
}

.charity-form-hero {
    background:
        radial-gradient(circle at 82% 25%, rgba(218, 192, 123, .18), transparent 28%),
        linear-gradient(135deg, #163f2d 0%, #315d49 55%, #6f8b76 100%);
}

.charity-form-hero:after {
    border-color: rgba(236, 214, 156, .18);
}

.charity-form-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, .82);
    font-size: 17px;
}

.charity-form-section {
    background:
        radial-gradient(circle at 8% 8%, rgba(197, 170, 106, .08), transparent 24%),
        linear-gradient(180deg, #f8f5ee 0%, #f2eee6 100%);
}

.charity-form-layout {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.form-side-card {
    position: sticky;
    top: 120px;
    padding: 34px 30px;
    border: 1px solid rgba(91, 119, 98, .2);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(247, 242, 232, .96)),
        url('/asset.php?file=images%2Fhero-charity.svg') center bottom / cover no-repeat;
    box-shadow: 0 22px 55px rgba(43, 61, 48, .10);
    overflow: hidden;
}

.form-side-card:after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -100px;
    width: 230px;
    height: 230px;
    border: 38px solid rgba(50, 93, 72, .06);
    border-radius: 50%;
    pointer-events: none;
}

.form-side-kicker {
    display: block;
    color: #9a7a3f;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .22em;
}

.form-side-card h2 {
    margin: 12px 0 16px;
    color: #204533;
    font-family: serif;
    font-size: 34px;
    line-height: 1.35;
}

.form-side-card p {
    color: #6f726d;
    font-size: 14px;
    line-height: 1.9;
}

.form-side-note,
.paper-downloads {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 7px;
    margin-top: 24px;
    padding: 17px 18px;
    border: 1px solid rgba(46, 85, 65, .13);
    border-radius: 18px;
    background: rgba(255, 255, 255, .72);
}

.form-side-note strong,
.paper-downloads strong {
    color: #234d39;
}

.form-side-note span,
.paper-downloads a {
    color: #6f726d;
    font-size: 13px;
    line-height: 1.75;
}

.paper-downloads a {
    text-decoration: underline;
    text-decoration-color: rgba(154, 122, 63, .45);
    text-underline-offset: 4px;
}

.charity-form {
    display: grid;
    gap: 22px;
    min-width: 0;
}

.form-card {
    padding: clamp(22px, 3.2vw, 36px);
    border: 1px solid #e4ddd1;
    border-radius: 26px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 15px 45px rgba(45, 55, 47, .065);
}

.optional-card {
    border-style: dashed;
}

.form-section-heading {
    display: flex;
    gap: 17px;
    align-items: flex-start;
    margin-bottom: 26px;
}

.form-section-heading > span {
    flex: 0 0 auto;
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    display: inline-grid;
    place-items: center;
    border-radius: 13px;
    background: #244f3b;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
}

.form-section-heading h2 {
    margin: 0;
    color: #244536;
    font-family: serif;
    font-size: 25px;
    line-height: 1.35;
}

.form-section-heading p {
    margin: 6px 0 0;
    color: #817a70;
    font-size: 13px;
    line-height: 1.7;
}

.small-heading {
    margin-bottom: 20px;
}

.form-grid {
    display: grid;
    gap: 18px;
}

.form-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.address-grid {
    grid-template-columns: .55fr .9fr .9fr 2fr;
}

.form-field {
    min-width: 0;
}

.form-field.full,
.form-grid .full {
    grid-column: 1 / -1;
}

.form-field label,
.form-field legend {
    display: block;
    margin: 0 0 8px;
    color: #3e463f;
    font-size: 14px;
    font-weight: 800;
}

.form-field legend {
    padding: 0;
}

.required-mark {
    color: #b4473f;
    font-weight: 900;
}

.charity-form input[type="text"],
.charity-form input[type="tel"],
.charity-form input[type="email"],
.charity-form input[type="date"],
.charity-form textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #d9d1c4;
    border-radius: 14px;
    outline: none;
    background: #fffdf9;
    color: #27342d;
    font: inherit;
    font-size: 16px;
    line-height: 1.45;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.charity-form input[type="date"] {
    min-width: 0;
    min-height: 52px;
    -webkit-appearance: auto;
    appearance: auto;
}

.charity-form textarea {
    min-height: 120px;
    resize: vertical;
}

.charity-form input:focus,
.charity-form textarea:focus {
    border-color: #688a73;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(65, 108, 81, .12);
}

.charity-form input::placeholder,
.charity-form textarea::placeholder {
    color: #aaa39a;
}

.choice-field {
    margin: 0 0 20px;
    padding: 0;
    border: 0;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.choice-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.choice-option {
    position: relative;
    display: flex !important;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    margin: 0 !important;
    padding: 11px 13px;
    border: 1px solid #ddd5c8;
    border-radius: 14px;
    background: #fffdf9;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.choice-option input {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    accent-color: #315d49;
}

.choice-option span {
    color: #444b45;
    font-size: 14px;
    line-height: 1.4;
}

.choice-option:has(input:checked) {
    border-color: #60836c;
    background: #f2f7f3;
    box-shadow: inset 0 0 0 1px rgba(63, 111, 81, .12);
}

.same-address-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    margin: 0 0 18px;
    padding: 10px 14px;
    border: 1px solid #d8dfd7;
    border-radius: 14px;
    background: #f4f8f4;
    color: #2c523d;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.same-address-toggle input {
    width: 20px;
    height: 20px;
    accent-color: #315d49;
}

.has-error input,
.has-error textarea,
.has-error.choice-field .choice-option {
    border-color: #c95c54;
}

.field-error {
    display: block;
    margin-top: 7px;
    color: #a53b35;
    font-size: 12px;
    font-weight: 700;
}

.form-error-summary {
    padding: 20px 22px;
    border: 1px solid #efc0ba;
    border-radius: 20px;
    background: #fff3f1;
    color: #77332f;
}

.form-error-summary strong,
.form-error-summary span {
    display: block;
}

.form-error-summary strong {
    font-size: 18px;
}

.form-error-summary span {
    margin-top: 4px;
    font-size: 13px;
}

.form-error-summary ul {
    margin: 12px 0 0;
    padding-left: 20px;
    font-size: 13px;
}

.subsection-title {
    margin: 24px 0 13px;
    padding-top: 18px;
    border-top: 1px solid #ece5da;
    color: #765b32;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .04em;
}

.money-input {
    display: flex;
    align-items: stretch;
}

.money-input span {
    display: grid;
    place-items: center;
    padding: 0 12px;
    border: 1px solid #d9d1c4;
    border-right: 0;
    border-radius: 14px 0 0 14px;
    background: #f3ede4;
    color: #765b32;
    font-size: 13px;
    font-weight: 800;
}

.money-input input {
    border-radius: 0 14px 14px 0 !important;
}

.form-inline-note {
    margin-top: 18px;
    padding: 15px 17px;
    border-left: 4px solid #b29354;
    border-radius: 0 12px 12px 0;
    background: #f8f4eb;
    color: #71695e;
    font-size: 13px;
    line-height: 1.8;
}

.captcha-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 210px;
    gap: 16px;
    align-items: end;
}

.captcha-box {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
}

.captcha-image-button {
    min-height: 62px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: transparent;
    cursor: pointer;
    overflow: hidden;
}

.captcha-image-button img {
    width: 100%;
    height: 62px;
    object-fit: cover;
}

.captcha-refresh {
    border: 0;
    background: transparent;
    color: #436451;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.form-submit-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 24px;
    border-radius: 22px;
    background: linear-gradient(135deg, #1d4734, #416c54);
    color: #fff;
    box-shadow: 0 18px 45px rgba(31, 68, 49, .20);
}

.form-submit-bar strong,
.form-submit-bar span {
    display: block;
}

.form-submit-bar span {
    margin-top: 3px;
    color: rgba(255, 255, 255, .72);
    font-size: 12px;
}

.form-submit-btn {
    flex: 0 0 auto;
    min-width: 190px;
    min-height: 50px;
    background: #fff;
    color: #234a37;
    border: 0;
    cursor: pointer;
    font-size: 15px;
}

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.form-success-wrap {
    max-width: 760px;
}

.form-success-card {
    padding: clamp(36px, 7vw, 70px);
    border: 1px solid #ddd8cc;
    border-radius: 32px;
    background: #fff;
    box-shadow: var(--shadow);
    text-align: center;
}

.success-symbol {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: #eaf4ed;
    color: #2c6245;
    font-size: 34px;
    font-weight: 900;
}

.form-success-card h2 {
    margin: 10px 0 12px;
    color: #244536;
    font-family: serif;
    font-size: clamp(31px, 5vw, 46px);
}

.form-success-card p {
    color: #736e66;
}

.success-number {
    display: inline-block;
    margin-top: 14px;
    padding: 9px 15px;
    border-radius: 999px;
    background: #f3eee5;
    color: #765d35;
    font-size: 13px;
    font-weight: 800;
}

.success-actions {
    justify-content: center;
}

.success-actions .btn.light {
    color: #244536;
    border: 1px solid #d8d0c4;
}

@media (max-width: 980px) {
    .charity-form-layout {
        grid-template-columns: 1fr;
    }

    .form-side-card {
        position: relative;
        top: auto;
    }

    .address-grid {
        grid-template-columns: .6fr 1fr 1fr;
    }

    .address-grid .address-detail {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .charity-form-section {
        padding-top: 55px;
    }

    .charity-form-layout {
        width: min(100% - 28px, 1180px);
        gap: 18px;
    }

    .form-side-card {
        padding: 26px 22px;
        border-radius: 22px;
    }

    .form-side-card h2 {
        font-size: 29px;
    }

    .form-card {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .form-grid.two,
    .form-grid.three,
    .address-grid {
        grid-template-columns: 1fr;
    }

    .form-grid .full,
    .address-grid .address-detail {
        grid-column: auto;
    }

    .choice-grid,
    .choice-grid.compact {
        grid-template-columns: 1fr;
    }

    .choice-option {
        min-height: 54px;
        padding: 12px 14px;
    }

    .captcha-row {
        grid-template-columns: 1fr;
    }

    .captcha-box {
        grid-template-columns: minmax(0, 190px) auto;
        align-items: center;
    }

    .form-submit-bar {
        position: relative;
        display: grid;
        gap: 16px;
        padding: 20px;
    }

    .form-submit-btn {
        width: 100%;
        min-width: 0;
        min-height: 54px;
    }

    .form-section-heading {
        gap: 12px;
        margin-bottom: 22px;
    }

    .form-section-heading > span {
        min-width: 38px;
        height: 38px;
    }

    .form-section-heading h2 {
        font-size: 22px;
    }
}

@supports (padding: max(0px)) {
    @media (max-width: 760px) {
        .charity-form-section {
            padding-left: env(safe-area-inset-left);
            padding-right: env(safe-area-inset-right);
        }

        .form-submit-bar {
            padding-bottom: max(20px, env(safe-area-inset-bottom));
        }
    }
}

/* ============================================================
 * v1.5.0｜雙品牌首頁、舜心正式標誌與活動花絮
 * ============================================================ */
.site-charity .site-header.scrolled,
.site-charity.inner-page .site-header {
    background: rgba(246, 248, 242, .94);
}

.site-charity .charity-brand-mark {
    border-color: rgba(220, 202, 140, .5);
    background: rgba(255, 255, 255, .12);
}

.site-charity .site-header.scrolled .charity-brand-mark,
.site-charity.inner-page .charity-brand-mark {
    border-color: rgba(36, 77, 56, .2);
    background: rgba(36, 77, 56, .07);
}

.site-charity .charity-brand-mark img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.site-charity .nav-links a:hover,
.site-charity .nav-links a:focus-visible {
    color: #315e45;
}

.site-charity .nav-cta {
    border-color: currentColor;
}

.site-charity .theme-charity .hero-bg {
    filter: saturate(.78) contrast(.94) brightness(.93);
}

.charity-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.charity-hero-logo {
    width: min(420px, 72vw);
    max-height: 92px;
    margin-bottom: 22px;
    object-fit: contain;
    object-position: left center;
    filter: drop-shadow(0 7px 20px rgba(6, 31, 20, .22));
}

.hero-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-switch-button {
    border-color: rgba(255, 255, 255, .58);
    background: rgba(255, 255, 255, .08);
    color: #fff !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-switch-button:hover,
.hero-switch-button:focus-visible {
    background: rgba(255, 255, 255, .18);
}

.charity-facebook-link {
    display: inline-flex;
    margin-top: 18px;
    color: #315e45;
}

.footer-charity {
    background: linear-gradient(145deg, #163b2a, #0f2b20);
}

.footer-charity .footer-eyebrow {
    color: #d6c585;
}

.footer-charity .footer-brand img {
    width: min(230px, 46vw);
    height: auto;
    max-height: 70px;
    object-fit: contain;
    object-position: left center;
}

.gallery-tile small {
    margin-left: 8px;
    color: rgba(255, 255, 255, .78);
    font-size: 11px;
    font-weight: 600;
}

.album-placeholder {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 25%, rgba(219, 180, 100, .18), transparent 32%),
        linear-gradient(135deg, #5b1714, #8b352c);
}

.charity-placeholder {
    background:
        radial-gradient(circle at 30% 25%, rgba(218, 205, 149, .16), transparent 32%),
        linear-gradient(135deg, #173e2d, #54775d);
}

.album-list-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.album-list-card {
    overflow: hidden;
    display: grid;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(56, 43, 31, .07);
    transition: transform .25s ease, box-shadow .25s ease;
}

.album-list-card:hover,
.album-list-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 24px 60px rgba(56, 43, 31, .11);
}

.album-list-cover {
    min-height: 260px;
    overflow: hidden;
    background: #eee8de;
}

.album-list-cover img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
}

.album-list-copy {
    padding: 24px;
}

.album-list-copy time {
    color: var(--wine);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
}

.site-charity .album-list-copy time {
    color: #315e45;
}

.album-list-copy h2 {
    margin: 9px 0 10px;
    font-family: "Noto Serif TC", "Songti TC", serif;
    font-size: 25px;
    line-height: 1.35;
}

.album-list-copy p {
    min-height: 3.4em;
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.7;
}

.album-list-copy span {
    color: var(--wine);
    font-size: 13px;
    font-weight: 800;
}

.site-charity .album-list-copy span {
    color: #315e45;
}

.album-detail-meta {
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 13px;
}

.album-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.album-detail-photo {
    margin: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #f1ece4;
}

.album-detail-photo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 620px;
    object-fit: contain;
    background: #f7f3ec;
}

.charity-gallery-section {
    background: #f4f7f1;
}

.site-charity .gallery-tile::after {
    background: linear-gradient(0deg, rgba(14, 49, 34, .76), transparent 58%);
}

@media (max-width: 980px) {
    .album-list-grid,
    .album-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .charity-hero-logo {
        width: min(300px, 76vw);
        max-height: 72px;
        margin-bottom: 16px;
    }

    .hero-action-row {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-action-row .btn {
        width: 100%;
    }

    .site-charity .theme-charity .hero-bg {
        filter: saturate(.74) contrast(.93) brightness(.9);
    }

    .album-list-grid,
    .album-detail-grid {
        grid-template-columns: 1fr;
    }

    .album-list-cover,
    .album-list-cover img {
        min-height: 220px;
    }

    .album-list-copy p {
        min-height: 0;
    }

    .album-detail-photo {
        border-radius: 14px;
    }
}

/*
 * v1.6.0｜雙品牌前台品牌深化與圖片完整顯示
 * 修改日期：2026/08/29 01:41（UTC+8）
 * 說明：大里武澤宮延續朱紅、古金、宣紙、武財神與舊橫幅識別；
 *       舜心功德會深化墨綠、鼠尾草綠、暖白與正式公益資訊層次。
 */

:root {
    --wuze-red-900: #4a0d0a;
    --wuze-red-800: #68120d;
    --wuze-red-700: #861b13;
    --wuze-red-600: #a62619;
    --wuze-gold-500: #d7a82d;
    --wuze-gold-300: #e6c665;
    --wuze-paper-100: #f8f0db;
    --wuze-paper-200: #ead9ae;
    --shunxin-green-900: #17382a;
    --shunxin-green-800: #234b37;
    --shunxin-green-700: #326248;
    --shunxin-sage-300: #a9bfa9;
    --shunxin-cream-100: #f7f5ed;
    --shunxin-gold-400: #c7a95a;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
}

.site-temple {
    background:
        radial-gradient(circle at 20% 0%, rgba(215, 168, 45, 0.08), transparent 26rem),
        #f7f0df;
}

.site-charity {
    background:
        radial-gradient(circle at 80% 0%, rgba(169, 191, 169, 0.16), transparent 30rem),
        #f7f5ed;
}

.site-temple .site-header,
.site-temple.inner-page .site-header,
.site-temple .site-header.scrolled {
    background: rgba(83, 13, 9, 0.95);
    border-bottom-color: rgba(230, 198, 101, 0.28);
    box-shadow: 0 10px 35px rgba(45, 7, 4, 0.16);
}

.site-temple .brand-copy strong,
.site-temple .brand-copy small,
.site-temple .nav-links > a,
.site-temple .menu-toggle {
    color: #fff8e8;
}

.site-temple .nav-links > a:hover,
.site-temple .nav-links > a:focus-visible {
    color: var(--wuze-gold-300);
}

.temple-brand-mark {
    width: 54px;
    height: 54px;
    overflow: hidden;
    border: 1px solid rgba(230, 198, 101, 0.58);
    border-radius: 12px;
    background: var(--wuze-red-700);
    box-shadow: 0 7px 18px rgba(37, 4, 2, 0.25);
}

.temple-brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-temple .nav-cta {
    color: var(--wuze-red-900);
    border-color: var(--wuze-gold-300);
    background: linear-gradient(135deg, #f0d77b, #d7a82d);
}

.hero-temple-v160 {
    min-height: 690px;
    min-height: min(82svh, 820px);
    background: var(--wuze-red-900);
}

.hero-temple-v160 .hero-slide {
    min-height: 690px;
    min-height: min(82svh, 820px);
    overflow: hidden;
}

.hero-temple-v160 .hero-slide::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    content: "";
    opacity: 0.19;
    background-image: url('/asset.php?file=images%2Fpattern-cloud.svg');
    background-size: 430px auto;
    mix-blend-mode: screen;
}

.hero-temple-v160 .temple-hero-bg {
    inset: -8% -4% -8% 44%;
    width: auto;
    opacity: 0.33;
    background-size: contain;
    background-position: center right;
    background-repeat: no-repeat;
    filter: saturate(0.86) contrast(1.06);
}

.hero-temple-v160 .hero-shade {
    background:
        linear-gradient(90deg, rgba(45, 5, 3, 0.99) 0%, rgba(74, 13, 10, 0.96) 42%, rgba(84, 14, 9, 0.72) 70%, rgba(45, 5, 3, 0.82) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.3));
}

.temple-hero-content-v160 {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.55fr) auto;
    gap: clamp(24px, 5vw, 74px);
    align-items: center;
    min-height: inherit;
    padding-top: 118px;
    padding-bottom: 72px;
}

.temple-hero-copy-v160 {
    max-width: 760px;
}

.temple-hero-copy-v160 .hero-kicker {
    color: var(--wuze-gold-300);
    letter-spacing: 0.22em;
}

.temple-hero-copy-v160 h1 {
    max-width: 11em;
    margin-top: 18px;
    color: #fff7e6;
    font-family: "Noto Serif TC", "Source Han Serif TC", "PMingLiU", serif;
    font-size: clamp(3.2rem, 6vw, 6.6rem);
    line-height: 1.08;
    letter-spacing: 0.08em;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.temple-hero-copy-v160 p {
    max-width: 690px;
    color: rgba(255, 247, 230, 0.84);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 2;
}

.site-temple .hero-button {
    color: #3b0906;
    border-color: var(--wuze-gold-300);
    background: linear-gradient(135deg, #f2d97e, #d7a82d);
}

.site-temple .hero-switch-button {
    color: #fff7e6;
    border-color: rgba(230, 198, 101, 0.62);
    background: rgba(255, 255, 255, 0.06);
}

.temple-hero-portrait {
    position: relative;
    display: grid;
    align-self: end;
    place-items: end center;
    min-height: 500px;
}

.temple-hero-portrait img {
    position: relative;
    z-index: 2;
    width: min(100%, 330px);
    max-height: 520px;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 28px 32px rgba(0, 0, 0, 0.45));
}

.temple-hero-portrait span {
    position: absolute;
    right: -14px;
    bottom: 68px;
    z-index: 3;
    padding: 8px 10px;
    color: var(--wuze-gold-300);
    border-left: 1px solid rgba(230, 198, 101, 0.55);
    font-family: "Noto Serif TC", "PMingLiU", serif;
    font-size: 1rem;
    letter-spacing: 0.22em;
    writing-mode: vertical-rl;
}

.temple-hero-halo {
    position: absolute;
    top: 30px;
    left: 50%;
    width: min(29vw, 330px);
    aspect-ratio: 1;
    transform: translateX(-50%);
    border: 1px solid rgba(230, 198, 101, 0.34);
    border-radius: 50%;
    box-shadow:
        0 0 0 20px rgba(215, 168, 45, 0.04),
        0 0 80px rgba(215, 168, 45, 0.14) inset;
}

.temple-identity-strip {
    position: relative;
    z-index: 5;
    margin-top: -2px;
    color: #fdf5e2;
    border-top: 1px solid rgba(230, 198, 101, 0.36);
    border-bottom: 1px solid rgba(230, 198, 101, 0.26);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.025), transparent 50%, rgba(255, 255, 255, 0.025)),
        var(--wuze-red-800);
}

.temple-identity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.temple-identity-grid > div {
    min-width: 0;
    padding: 26px clamp(18px, 3vw, 42px);
    border-right: 1px solid rgba(230, 198, 101, 0.18);
}

.temple-identity-grid > div:last-child {
    border-right: 0;
}

.temple-identity-grid small,
.temple-identity-grid span {
    display: block;
    color: rgba(255, 247, 230, 0.68);
}

.temple-identity-grid small {
    margin-bottom: 8px;
    color: var(--wuze-gold-300);
    font-size: 0.76rem;
    letter-spacing: 0.2em;
}

.temple-identity-grid strong {
    display: block;
    margin-bottom: 6px;
    color: #fff8e8;
    font-family: "Noto Serif TC", "PMingLiU", serif;
    font-size: clamp(1rem, 1.7vw, 1.28rem);
    line-height: 1.55;
}

.temple-quick-section {
    padding: 28px 0 0;
}

.temple-quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
}

.temple-quick-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    align-items: center;
    min-height: 86px;
    padding: 18px 20px;
    color: var(--wuze-red-900);
    border: 1px solid rgba(104, 18, 13, 0.15);
    border-radius: 4px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(250, 238, 208, 0.78)),
        var(--wuze-paper-100);
    box-shadow: 0 12px 30px rgba(83, 13, 9, 0.07);
}

.temple-quick-card::after {
    position: absolute;
    inset: 5px;
    content: "";
    pointer-events: none;
    border: 1px solid rgba(215, 168, 45, 0.2);
}

.temple-quick-card > span {
    color: var(--wuze-gold-500);
    font-size: 0.74rem;
    letter-spacing: 0.12em;
}

.temple-quick-card strong {
    font-family: "Noto Serif TC", "PMingLiU", serif;
    font-size: 1.06rem;
    letter-spacing: 0.08em;
}

.temple-quick-card b {
    color: var(--wuze-red-700);
}

.temple-quick-card:hover,
.temple-quick-card:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(104, 18, 13, 0.32);
}

.temple-story-v160 {
    padding-top: clamp(72px, 8vw, 120px);
}

.temple-story-visual {
    overflow: hidden;
    min-height: 540px;
    background:
        linear-gradient(155deg, rgba(88, 14, 9, 0.97), rgba(50, 7, 4, 0.99));
}

.temple-story-paper {
    position: absolute;
    inset: 28px 28px 135px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(230, 198, 101, 0.32);
    background:
        linear-gradient(135deg, rgba(255, 248, 228, 0.96), rgba(228, 207, 156, 0.95));
}

.temple-story-paper::before {
    position: absolute;
    inset: 0;
    content: "";
    opacity: 0.22;
    background-image: url('/asset.php?file=images%2Fpattern-cloud.svg');
    background-size: 420px auto;
}

.temple-story-paper img {
    position: relative;
    z-index: 1;
    width: min(84%, 430px);
    height: min(84%, 430px);
    object-fit: contain;
    mix-blend-mode: multiply;
}

.temple-story-visual .story-visual-copy {
    z-index: 3;
}

.temple-legacy-banner-section {
    padding: 0 0 clamp(72px, 8vw, 118px);
}

.temple-legacy-banner-section .section-intro > p {
    max-width: 520px;
    color: rgba(55, 42, 29, 0.65);
    line-height: 1.9;
}

.temple-legacy-banner {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 260px;
    margin: 0;
    padding: clamp(10px, 2vw, 22px);
    overflow: hidden;
    border: 1px solid rgba(104, 18, 13, 0.22);
    background: var(--wuze-red-800);
    box-shadow: 0 30px 70px rgba(80, 18, 9, 0.14);
}

.temple-legacy-banner::before,
.temple-legacy-banner::after {
    position: absolute;
    left: 0;
    width: 100%;
    height: 9px;
    content: "";
    background: linear-gradient(90deg, transparent, var(--wuze-gold-300), transparent);
}

.temple-legacy-banner::before {
    top: 0;
}

.temple-legacy-banner::after {
    bottom: 0;
}

.temple-legacy-banner img {
    display: block;
    width: 100%;
    max-height: 560px;
    object-fit: contain;
    background: var(--wuze-red-800);
}

.temple-event-section,
.temple-news-section {
    background: rgba(255, 250, 237, 0.7);
}

.temple-news-media,
.charity-news-media {
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #eee6d7;
}

.temple-news-media img,
.charity-news-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-charity .site-header,
.site-charity.inner-page .site-header,
.site-charity .site-header.scrolled {
    background:
        radial-gradient(circle at 12% 50%, rgba(222, 183, 100, 0.16), transparent 24%),
        linear-gradient(90deg, rgba(255, 249, 236, 0.985), rgba(255, 244, 223, 0.985) 60%, rgba(255, 248, 234, 0.985));
    border-bottom-color: rgba(184, 128, 39, 0.30);
    box-shadow: 0 8px 28px rgba(111, 62, 27, 0.09);
    color: var(--charity-ink);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.site-charity .brand-copy small {
    color: rgba(247, 245, 237, 0.7);
}

.hero-charity-v160 {
    min-height: 650px;
    min-height: min(78svh, 760px);
    background: var(--shunxin-green-900);
}

.hero-charity-v160 .hero-slide {
    min-height: 650px;
    min-height: min(78svh, 760px);
}

.hero-charity-v160 .charity-hero-bg {
    opacity: 0.18;
    background-size: cover;
    background-position: center;
    filter: saturate(0.45) contrast(0.9);
}

.hero-charity-v160 .hero-shade {
    background:
        radial-gradient(circle at 80% 38%, rgba(169, 191, 169, 0.22), transparent 28rem),
        linear-gradient(90deg, rgba(20, 55, 40, 0.98), rgba(32, 75, 54, 0.9) 56%, rgba(18, 51, 37, 0.86));
}

.charity-hero-content-v160 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr) auto;
    gap: clamp(28px, 5vw, 78px);
    align-items: center;
    min-height: inherit;
    padding-top: 118px;
    padding-bottom: 76px;
}

.charity-hero-copy {
    max-width: 760px;
}

.charity-hero-copy .charity-hero-logo {
    width: min(92%, 410px);
    max-height: 120px;
    margin-bottom: 26px;
    object-fit: contain;
    object-position: left center;
    filter: brightness(0) invert(1);
    opacity: 0.96;
}

.charity-hero-copy h1 {
    max-width: 10em;
    color: #fffdf8;
    font-family: "Noto Serif TC", "Source Han Serif TC", "PMingLiU", serif;
    font-size: clamp(2.8rem, 5.4vw, 5.7rem);
    line-height: 1.12;
}

.charity-hero-copy p {
    max-width: 720px;
    color: rgba(247, 245, 237, 0.82);
    line-height: 2;
}

.charity-hero-seal {
    display: grid;
    place-items: center;
    min-height: 330px;
    padding: 34px;
    border: 1px solid rgba(199, 169, 90, 0.28);
    border-radius: 50% 50% 45% 45%;
    background: rgba(255, 255, 255, 0.045);
    box-shadow: 0 22px 65px rgba(5, 32, 21, 0.25);
}

.charity-hero-seal img {
    width: min(78%, 220px);
    max-height: 220px;
    object-fit: contain;
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.18));
}

.charity-hero-seal span {
    max-width: 230px;
    color: rgba(247, 245, 237, 0.72);
    font-size: 0.88rem;
    line-height: 1.8;
    text-align: center;
    letter-spacing: 0.05em;
}

.charity-intro-v160 {
    padding-top: clamp(84px, 9vw, 130px);
}

.charity-mission-board {
    position: relative;
    padding: clamp(30px, 4vw, 52px);
    border: 1px solid rgba(35, 75, 55, 0.14);
    border-radius: 26px 8px 26px 8px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(231, 238, 225, 0.86));
    box-shadow: 0 28px 70px rgba(27, 65, 45, 0.09);
}

.charity-mission-board > span {
    color: var(--shunxin-gold-400);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.charity-mission-board h3 {
    margin: 12px 0 22px;
    color: var(--shunxin-green-900);
    font-family: "Noto Serif TC", "PMingLiU", serif;
    font-size: clamp(1.7rem, 3vw, 2.7rem);
}

.charity-mission-board ul {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.charity-mission-board li {
    position: relative;
    padding-left: 30px;
    color: #496050;
    line-height: 1.8;
}

.charity-mission-board li::before {
    position: absolute;
    top: 0.72em;
    left: 0;
    width: 12px;
    height: 12px;
    content: "";
    transform: rotate(45deg);
    border: 1px solid var(--shunxin-gold-400);
    background: rgba(199, 169, 90, 0.1);
}

.charity-formal-info-section {
    padding: 12px 0 clamp(72px, 8vw, 118px);
}

.charity-formal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.charity-formal-card {
    position: relative;
    min-height: 280px;
    padding: clamp(26px, 3vw, 42px);
    overflow: hidden;
    color: var(--shunxin-green-900);
    border: 1px solid rgba(35, 75, 55, 0.13);
    border-radius: 8px 28px 8px 28px;
    background: #fffef9;
    box-shadow: 0 22px 54px rgba(31, 70, 50, 0.07);
}

.charity-formal-card::before {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    content: "";
    border-radius: 0 28px 0 100%;
    background: rgba(169, 191, 169, 0.18);
}

.charity-formal-card > span {
    position: relative;
    z-index: 1;
    color: var(--shunxin-gold-400);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.charity-formal-card h2 {
    position: relative;
    z-index: 1;
    margin: 28px 0 14px;
    font-family: "Noto Serif TC", "PMingLiU", serif;
    font-size: clamp(1.55rem, 2.5vw, 2.3rem);
}

.charity-formal-card p {
    position: relative;
    z-index: 1;
    color: #627267;
    line-height: 1.9;
}

.charity-formal-card b {
    position: absolute;
    bottom: 32px;
    left: clamp(26px, 3vw, 42px);
    color: var(--shunxin-green-700);
    font-size: 0.9rem;
}

.charity-formal-card:hover,
.charity-formal-card:focus-visible {
    transform: translateY(-5px);
    border-color: rgba(35, 75, 55, 0.28);
}

.charity-formal-action {
    color: #f9f8f0;
    border-color: rgba(199, 169, 90, 0.22);
    background: linear-gradient(150deg, #2a5b42, #17382a);
}

.charity-formal-action h2,
.charity-formal-action p,
.charity-formal-action b {
    color: inherit;
}

.charity-formal-action p {
    color: rgba(249, 248, 240, 0.72);
}

.charity-action-section {
    padding: 0 0 clamp(72px, 8vw, 118px);
}

.charity-action-grid-v160 {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.site-charity .page-hero {
    background:
        radial-gradient(circle at 85% 0%, rgba(169, 191, 169, 0.3), transparent 24rem),
        linear-gradient(145deg, #17382a, #2c5f45);
}

.site-temple .page-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 86% 20%, rgba(215, 168, 45, 0.22), transparent 25rem),
        linear-gradient(145deg, #4a0d0a, #861b13);
}

.site-temple .page-hero::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    opacity: 0.12;
    background-image: url('/asset.php?file=images%2Fpattern-cloud.svg');
    background-size: 420px auto;
}

.site-temple .page-hero .container,
.site-charity .page-hero .container {
    position: relative;
    z-index: 1;
}

.inner-content-section {
    background: rgba(255, 255, 255, 0.42);
}

.content-cover {
    display: grid;
    place-items: center;
    max-width: 100%;
    min-height: 180px;
    margin: 0 0 35px;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.035);
}

.content-cover img,
.page-content .content-cover img {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 680px;
    margin: 0;
    object-fit: contain;
    object-position: center;
}

.gallery-tile,
.album-list-cover,
.album-detail-photo {
    background: #f1eadb;
}

.site-charity .gallery-tile,
.site-charity .album-list-cover,
.site-charity .album-detail-photo {
    background: #edf1e9;
}

.gallery-tile img,
.album-list-cover img,
.album-detail-photo img {
    object-fit: contain;
    object-position: center;
}

.album-detail-photo {
    display: grid;
    place-items: center;
}

.album-detail-photo img {
    width: 100%;
    height: auto;
    max-height: 900px;
}

@media (max-width: 1180px) {
    .temple-hero-content-v160,
    .charity-hero-content-v160 {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 0.42fr);
    }

    .temple-hero-content-v160 .hero-side-note,
    .charity-hero-content-v160 .hero-side-note {
        display: none;
    }

    .temple-hero-portrait {
        min-height: 430px;
    }

    .charity-formal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .charity-formal-grid > :last-child {
        grid-column: span 2;
    }
}

@media (max-width: 860px) {
    input,
    select,
    textarea {
        font-size: 16px;
    }

    .site-temple .nav,
    .site-charity .nav {
        padding-top: calc(86px + env(safe-area-inset-top, 0px));
        padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    }

    .site-temple .nav.open {
        background: rgba(74, 13, 10, 0.985);
    }

    .site-charity .nav.open {
        background: rgba(23, 56, 42, 0.985);
    }

    .nav a,
    .menu-toggle,
    .hero-button,
    .temple-quick-card,
    .charity-action-card {
        min-height: 48px;
    }

    .hero-temple-v160,
    .hero-temple-v160 .hero-slide,
    .hero-charity-v160,
    .hero-charity-v160 .hero-slide {
        min-height: 720px;
        min-height: 100svh;
        min-height: 100dvh;
    }

    .temple-hero-content-v160,
    .charity-hero-content-v160 {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 22px;
        padding-top: calc(120px + env(safe-area-inset-top, 0px));
        padding-bottom: calc(42px + env(safe-area-inset-bottom, 0px));
    }

    .hero-temple-v160 .temple-hero-bg {
        inset: 22% -18% 0 10%;
        opacity: 0.18;
        background-position: center bottom;
    }

    .temple-hero-copy-v160 {
        position: relative;
        z-index: 4;
        max-width: 100%;
    }

    .temple-hero-copy-v160 h1 {
        max-width: none;
        font-size: clamp(2.9rem, 12vw, 5.2rem);
    }

    .temple-hero-portrait {
        position: absolute;
        right: 5vw;
        bottom: 0;
        z-index: 1;
        width: 42vw;
        min-height: 0;
        opacity: 0.56;
        pointer-events: none;
    }

    .temple-hero-portrait img {
        width: 100%;
        max-height: 42vh;
    }

    .temple-hero-portrait span,
    .temple-hero-halo {
        display: none;
    }

    .temple-identity-grid {
        grid-template-columns: 1fr;
    }

    .temple-identity-grid > div {
        border-right: 0;
        border-bottom: 1px solid rgba(230, 198, 101, 0.16);
    }

    .temple-identity-grid > div:last-child {
        border-bottom: 0;
    }

    .temple-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .temple-story-paper {
        inset: 22px 22px 135px;
    }

    .temple-legacy-banner {
        min-height: 0;
        padding: 7px;
    }

    .charity-hero-content-v160 {
        align-content: center;
    }

    .charity-hero-seal {
        position: absolute;
        right: 4vw;
        bottom: 4vh;
        z-index: 1;
        width: min(43vw, 250px);
        min-height: 0;
        padding: 22px;
        opacity: 0.34;
        pointer-events: none;
    }

    .charity-hero-seal span {
        display: none;
    }

    .charity-hero-copy {
        position: relative;
        z-index: 3;
    }

    .charity-hero-copy h1 {
        max-width: none;
        font-size: clamp(2.7rem, 11vw, 5rem);
    }

    .charity-formal-grid {
        grid-template-columns: 1fr;
    }

    .charity-formal-grid > :last-child {
        grid-column: auto;
    }
}

@media (max-width: 560px) {
    .temple-brand-mark {
        width: 46px;
        height: 46px;
    }

    .brand-copy strong {
        font-size: 1rem;
    }

    .brand-copy small {
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .temple-hero-copy-v160 h1,
    .charity-hero-copy h1 {
        letter-spacing: 0.035em;
    }

    .temple-hero-copy-v160 p,
    .charity-hero-copy p {
        font-size: 0.98rem;
        line-height: 1.82;
    }

    .hero-action-row {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 360px;
    }

    .hero-button {
        width: 100%;
        justify-content: space-between;
    }

    .temple-hero-portrait {
        right: -1vw;
        width: 48vw;
        opacity: 0.42;
    }

    .temple-quick-grid {
        grid-template-columns: 1fr;
    }

    .temple-quick-card {
        min-height: 72px;
    }

    .temple-story-visual {
        min-height: 430px;
    }

    .temple-story-paper {
        inset: 16px 16px 120px;
    }

    .charity-hero-copy .charity-hero-logo {
        width: min(88%, 330px);
        max-height: 96px;
        margin-bottom: 18px;
    }

    .charity-formal-card {
        min-height: 260px;
    }

    .content-cover img,
    .page-content .content-cover img {
        max-height: 72svh;
        max-height: 72dvh;
    }
}

.public-download-panel {
    margin-top: 48px;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid rgba(35, 75, 55, 0.14);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
}

.public-download-panel h2 {
    margin-top: 0;
}

.public-download-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.public-download-grid a {
    display: flex;
    gap: 18px;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 14px 18px;
    color: var(--shunxin-green-900);
    border: 1px solid rgba(35, 75, 55, 0.12);
    border-radius: 8px;
    background: #fffef9;
}

.public-download-grid a span {
    flex: 0 0 auto;
    color: var(--shunxin-green-700);
    font-size: 0.86rem;
}

.public-download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

@media (max-width: 680px) {
    .public-download-grid {
        grid-template-columns: 1fr;
    }

    .public-download-grid a,
    .public-download-actions .btn {
        min-height: 48px;
    }
}

/* ========================================================================
 * v1.7.0 雙品牌首頁視覺重整
 * 修改日期：2026/08/29（UTC+8）
 * 重點：武澤宮採舊橫幅為真正 Hero；舜心改為暖白、朱紅、柔金公益視覺。
 * ===================================================================== */

body.site-temple {
    --v170-red: #6d120d;
    --v170-red-deep: #3d0806;
    --v170-gold: #c99736;
    --v170-gold-light: #e5bd68;
    --v170-paper: #fbf4e5;
    --v170-paper-2: #f5e7c9;
    --v170-ink: #2c211b;
    background: var(--v170-paper);
}

body.site-charity {
    --charity-red: #8b1b13;
    --charity-red-dark: #661109;
    --charity-gold: #c99b43;
    --charity-gold-soft: #e5c078;
    --charity-paper: #fff9ee;
    --charity-paper-2: #f8ecd5;
    --charity-ink: #4a251d;
    --charity-muted: #806a5d;
    background: var(--charity-paper);
}

.site-temple .site-header {
    background:
        linear-gradient(rgba(72, 7, 4, 0.97), rgba(91, 13, 8, 0.97)),
        url('/asset.php?file=images%2Fpattern-cloud.svg') center / 300px auto repeat;
    border-bottom: 1px solid rgba(214, 164, 65, 0.48);
}

.site-charity .site-header {
    background:
        radial-gradient(circle at 12% 50%, rgba(222, 183, 100, 0.16), transparent 24%),
        linear-gradient(90deg, #fff9ec, #fff4df 60%, #fff8ea);
    border-bottom: 1px solid rgba(184, 128, 39, 0.30);
    box-shadow: 0 8px 28px rgba(111, 62, 27, 0.06);
}

.site-charity .site-header .brand strong,
.site-charity .site-header .brand small,
.site-charity .site-header .desktop-nav > a,
.site-charity .site-header .mobile-nav-panel > a {
    color: var(--charity-ink);
}

.site-charity .site-header .desktop-nav > a:hover,
.site-charity .site-header .desktop-nav > a.active {
    color: var(--charity-red);
}

.site-charity .site-header .nav-cta {
    color: #fff;
    border-color: var(--charity-red);
    background: linear-gradient(135deg, #9c251b, #75130c);
    box-shadow: 0 8px 18px rgba(113, 22, 14, 0.16);
}

.site-charity .site-header .brand-charity img {
    filter: none;
}

/* 武澤宮：真正以提供的歷史橫幅作為首頁 Banner。 */
.temple-home-v170 {
    background:
        linear-gradient(180deg, #5a0c08 0, #5a0c08 1px, transparent 1px),
        var(--v170-paper);
}

.temple-banner-hero {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: clamp(160px, 38.83vw, 520px);
    background:
        #6f0e09
        url('/asset.php?file=images%2Fv170%2Fwuze-heritage-hero.webp')
        center / contain no-repeat;
    border-bottom: 3px solid var(--v170-gold);
}

.temple-banner-track,
.temple-banner-slide {
    width: 100%;
}

.temple-banner-slide img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
    background: #7b110b;
}

.temple-banner-dots {
    bottom: 14px;
}

.temple-nav-band {
    position: relative;
    background:
        linear-gradient(180deg, rgba(75, 5, 3, 0.95), rgba(101, 12, 7, 0.98)),
        url('/asset.php?file=images%2Fpattern-cloud.svg') center / 240px auto repeat;
    border-bottom: 1px solid rgba(215, 164, 68, 0.42);
}

.temple-nav-band-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    padding-top: 0;
    padding-bottom: 0;
}

.temple-nav-tile {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 138px;
    padding: 22px 20px 19px;
    align-content: center;
    gap: 6px;
    color: #fff6e4;
    text-decoration: none;
    border-left: 1px solid rgba(229, 189, 104, 0.26);
    transition: background-color 180ms ease, transform 180ms ease;
}

.temple-nav-tile:last-child {
    border-right: 1px solid rgba(229, 189, 104, 0.26);
}

.temple-nav-symbol {
    color: var(--v170-gold-light);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.temple-nav-tile strong {
    font-family: "Noto Serif TC", "PMingLiU", serif;
    font-size: clamp(19px, 1.45vw, 25px);
    font-weight: 800;
    white-space: nowrap;
}

.temple-nav-tile small {
    color: rgba(255, 245, 223, 0.70);
    font-size: 13px;
}

.temple-nav-tile b {
    position: absolute;
    right: 17px;
    bottom: 16px;
    color: var(--v170-gold-light);
    font-size: 18px;
}

@media (hover: hover) and (pointer: fine) {
    .temple-nav-tile:hover {
        background: rgba(198, 145, 48, 0.12);
    }
}

.temple-blessing-section,
.temple-information-section,
.temple-secondary-section {
    padding: clamp(48px, 6vw, 86px) 0;
}

.temple-blessing-section {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 6% 25%, rgba(201, 151, 54, 0.12), transparent 23%),
        radial-gradient(circle at 94% 72%, rgba(201, 151, 54, 0.10), transparent 25%),
        linear-gradient(180deg, #fff9ed, #f9efd9);
}

.temple-blessing-section::before,
.temple-blessing-section::after {
    position: absolute;
    width: 260px;
    height: 150px;
    opacity: 0.12;
    background: url('/asset.php?file=images%2Fpattern-cloud.svg') center / contain no-repeat;
    content: "";
}

.temple-blessing-section::before {
    left: -40px;
    top: 90px;
}

.temple-blessing-section::after {
    right: -30px;
    bottom: 60px;
}

.temple-home-heading {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 34px;
}

.temple-home-heading > span,
.home-panel-title span,
.charity-hero-kicker {
    color: var(--v170-gold);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.20em;
}

.temple-home-heading h1 {
    margin: 8px 0 6px;
    color: var(--v170-ink);
    font-family: "Noto Serif TC", "PMingLiU", serif;
    font-size: clamp(35px, 4vw, 58px);
    line-height: 1.2;
}

.temple-home-heading p {
    margin: 0;
    color: #8d4d3d;
    font-size: 17px;
    letter-spacing: 0.12em;
}

.temple-feature-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.temple-feature-card {
    display: flex;
    min-width: 0;
    min-height: 265px;
    padding: 30px;
    flex-direction: column;
    color: var(--v170-ink);
    text-decoration: none;
    border: 1px solid rgba(171, 112, 25, 0.24);
    border-radius: 20px;
    background: rgba(255, 252, 244, 0.92);
    box-shadow: 0 18px 45px rgba(83, 45, 19, 0.08);
}

.temple-feature-card > span {
    color: #a87323;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.temple-feature-card h2 {
    margin: 20px 0 12px;
    font-family: "Noto Serif TC", "PMingLiU", serif;
    font-size: clamp(26px, 2.4vw, 38px);
}

.temple-feature-card p {
    margin: 0 0 22px;
    color: #745f51;
    line-height: 1.85;
}

.temple-feature-card b {
    margin-top: auto;
    color: #8b2217;
}

.temple-feature-card-accent {
    color: #fff8e8;
    border-color: #8f261a;
    background:
        radial-gradient(circle at 92% 16%, rgba(236, 191, 94, 0.16), transparent 28%),
        linear-gradient(145deg, #8d1c13, #59100c);
}

.temple-feature-card-accent > span,
.temple-feature-card-accent b {
    color: #efc76f;
}

.temple-feature-card-accent p {
    color: rgba(255, 247, 226, 0.80);
}

.temple-information-section {
    background: #68120d;
}

.temple-information-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
    gap: 20px;
}

.temple-list-panel,
.temple-contact-panel,
.temple-secondary-panel {
    min-width: 0;
    border: 1px solid rgba(224, 176, 79, 0.34);
    border-radius: 20px;
    background: linear-gradient(150deg, #821a12, #55100c);
    box-shadow: 0 22px 56px rgba(50, 4, 2, 0.16);
}

.temple-list-panel,
.temple-secondary-panel {
    padding: 28px;
}

.home-panel-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.home-panel-title h2 {
    margin: 4px 0 0;
    color: #fff5de;
    font-family: "Noto Serif TC", "PMingLiU", serif;
    font-size: 30px;
}

.home-panel-title > a {
    color: #efc36b;
    text-decoration: none;
    white-space: nowrap;
}

.temple-news-list,
.temple-compact-list,
.temple-album-list,
.charity-news-list,
.charity-album-list {
    display: grid;
}

.temple-news-list > a,
.temple-compact-list > a,
.temple-album-list > a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    min-width: 0;
    padding: 15px 0;
    color: #fff8eb;
    text-decoration: none;
    border-top: 1px solid rgba(255, 235, 190, 0.16);
}

.temple-news-list time,
.temple-compact-list span,
.temple-album-list span {
    color: #d9b36b;
    font-size: 13px;
}

.temple-contact-panel {
    padding: 34px;
    color: #fff4df;
    background:
        radial-gradient(circle at 88% 10%, rgba(236, 194, 100, 0.20), transparent 28%),
        linear-gradient(145deg, #3e0a07, #66100c);
}

.temple-contact-panel > span {
    color: #dcb35e;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.temple-contact-panel h2 {
    margin: 10px 0 24px;
    font-family: "Noto Serif TC", "PMingLiU", serif;
    font-size: 32px;
}

.temple-contact-panel dl {
    margin: 0 0 26px;
}

.temple-contact-panel dl > div {
    padding: 14px 0;
    border-top: 1px solid rgba(255, 236, 198, 0.18);
}

.temple-contact-panel dt {
    color: #d8ae5b;
    font-size: 12px;
}

.temple-contact-panel dd {
    margin: 5px 0 0;
    line-height: 1.7;
}

.temple-contact-panel a {
    color: #f2ca79;
    text-decoration: none;
}

.home-empty-state {
    padding: 25px 18px;
    color: rgba(255, 246, 227, 0.70);
    line-height: 1.7;
    border: 1px dashed rgba(226, 181, 87, 0.25);
    border-radius: 14px;
}

.temple-secondary-section {
    background: #fff8ea;
}

.temple-secondary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.temple-secondary-panel {
    background: linear-gradient(145deg, #7a1610, #4f0e0a);
}

/* 舜心：與武澤宮文化系統相連，但使用暖白／朱紅／柔金的公益品牌，不再套綠色模板。 */
.charity-home-v170 {
    background:
        radial-gradient(circle at 8% 15%, rgba(208, 160, 70, 0.08), transparent 22%),
        var(--charity-paper);
}

.charity-warm-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    min-height: 510px;
    background: #fff8eb;
    border-bottom: 1px solid rgba(186, 127, 35, 0.28);
}

.charity-hero-copy-panel {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 58px max(28px, calc((100vw - 1280px) / 2 + 28px));
    padding-right: 48px;
    background:
        radial-gradient(circle at 92% 50%, rgba(205, 157, 68, 0.13), transparent 34%),
        linear-gradient(135deg, #fffdf7, #fff4dc);
}

.charity-hero-copy-panel::after {
    position: absolute;
    right: -60px;
    top: 80px;
    width: 260px;
    height: 260px;
    opacity: 0.10;
    background: url('/asset.php?file=images%2Fwuze%2Fwuze-brand-emblem.jpg') center / contain no-repeat;
    mix-blend-mode: multiply;
    content: "";
}

.charity-hero-inner {
    position: relative;
    z-index: 1;
    width: min(610px, 100%);
}

.charity-wordmark-v170 {
    display: block;
    width: min(390px, 86%);
    height: auto;
    margin-bottom: 24px;
}

.charity-hero-kicker {
    color: #b37826;
}

.charity-hero-inner h1 {
    margin: 12px 0 18px;
    color: #6f190f;
    font-family: "Noto Serif TC", "PMingLiU", serif;
    font-size: clamp(42px, 4.5vw, 70px);
    line-height: 1.18;
    letter-spacing: 0.02em;
}

.charity-hero-inner > p {
    max-width: 630px;
    margin: 0;
    color: #6f5b4d;
    font-size: 17px;
    line-height: 1.9;
}

.charity-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.charity-primary-action,
.charity-outline-action {
    min-height: 48px;
    white-space: nowrap;
}

.charity-primary-action {
    color: #fff !important;
    border-color: #8d1c13 !important;
    background: linear-gradient(135deg, #a6271b, #77140d) !important;
}

.charity-outline-action {
    color: #812016 !important;
    border-color: rgba(157, 102, 26, 0.45) !important;
    background: rgba(255, 253, 247, 0.85) !important;
}

.charity-hero-photo {
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: #d8ad6a;
}

.charity-hero-photo > img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 510px;
    object-fit: cover;
    object-position: center;
}

.charity-hero-photo::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(255, 248, 235, 0.38), transparent 28%);
    content: "";
    pointer-events: none;
}

.charity-hero-photo-mark {
    position: absolute;
    right: 28px;
    bottom: 24px;
    z-index: 2;
    display: grid;
    width: 90px;
    height: 90px;
    place-items: center;
    border: 1px solid rgba(255, 240, 204, 0.64);
    border-radius: 50%;
    background: rgba(102, 17, 9, 0.78);
    backdrop-filter: blur(8px);
}

.charity-hero-photo-mark img {
    width: 64px;
    height: auto;
}

.charity-service-section,
.charity-projects-v170,
.charity-information-v170 {
    padding: clamp(46px, 5.5vw, 78px) 0;
}

.charity-service-section {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent),
        #fff8ea;
}

.charity-service-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.charity-service-card {
    display: flex;
    min-width: 0;
    min-height: 285px;
    padding: 25px 22px;
    flex-direction: column;
    color: var(--charity-ink);
    text-decoration: none;
    border: 1px solid rgba(183, 126, 38, 0.24);
    border-radius: 18px;
    background: rgba(255, 253, 247, 0.94);
    box-shadow: 0 14px 34px rgba(94, 58, 27, 0.07);
}

.charity-service-card > span {
    color: #b77d2d;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.11em;
}

.charity-service-card h2 {
    margin: 18px 0 11px;
    color: #5b281f;
    font-family: "Noto Serif TC", "PMingLiU", serif;
    font-size: clamp(22px, 1.8vw, 30px);
    line-height: 1.4;
}

.charity-service-card p {
    margin: 0 0 20px;
    color: #806b5c;
    line-height: 1.8;
}

.charity-service-card b {
    margin-top: auto;
    color: #8c2015;
}

.charity-service-action {
    color: #fff8ea;
    border-color: rgba(233, 193, 112, 0.42);
    background:
        radial-gradient(circle at 90% 12%, rgba(238, 196, 107, 0.18), transparent 28%),
        linear-gradient(150deg, #982419, #70120c);
}

.charity-service-action > span,
.charity-service-action b {
    color: #f0c875;
}

.charity-service-action h2 {
    color: #fff8eb;
}

.charity-service-action p {
    color: rgba(255, 247, 227, 0.78);
}

.charity-projects-v170 {
    background: #75150e;
}

.warm-title span {
    color: #d3a74b;
}

.warm-title h2 {
    color: inherit;
}

.charity-projects-v170 .warm-title h2,
.charity-projects-v170 .warm-title a {
    color: #fff6e5;
}

.charity-project-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.charity-project-list > a {
    display: flex;
    min-width: 0;
    min-height: 200px;
    padding: 24px;
    flex-direction: column;
    color: #fff7e8;
    text-decoration: none;
    border: 1px solid rgba(235, 196, 110, 0.26);
    border-radius: 16px;
    background: rgba(62, 7, 4, 0.22);
}

.charity-project-list strong {
    font-family: "Noto Serif TC", "PMingLiU", serif;
    font-size: 24px;
}

.charity-project-list p {
    color: rgba(255, 246, 226, 0.72);
    line-height: 1.7;
}

.charity-project-list span {
    margin-top: auto;
    color: #efc779;
}

.charity-information-v170 {
    background: #fffaf0;
}

.charity-info-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(280px, 0.72fr);
    gap: 16px;
}

.charity-info-panel,
.charity-contact-card {
    min-width: 0;
    padding: 26px;
    border: 1px solid rgba(177, 122, 39, 0.20);
    border-radius: 18px;
    background: #fffdf8;
    box-shadow: 0 16px 38px rgba(94, 58, 27, 0.06);
}

.charity-info-panel .home-panel-title h2 {
    color: #5c2b22;
}

.charity-info-panel .home-panel-title > a {
    color: #8b2117;
}

.charity-news-list > a,
.charity-album-list > a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 14px 0;
    color: #542920;
    text-decoration: none;
    border-top: 1px solid rgba(159, 112, 40, 0.16);
}

.charity-news-list time,
.charity-album-list span {
    color: #aa7a35;
    font-size: 12px;
}

.warm-empty {
    color: #8b7362;
    border-color: rgba(164, 111, 32, 0.22);
    background: #fffaf0;
}

.charity-contact-card {
    color: #fff8e8;
    border-color: #7e170f;
    background:
        radial-gradient(circle at 88% 12%, rgba(235, 194, 103, 0.18), transparent 32%),
        linear-gradient(150deg, #8f2016, #67110b);
}

.charity-contact-card > img {
    width: 72px;
    height: auto;
    margin-bottom: 12px;
}

.charity-contact-card h2 {
    margin: 6px 0 18px;
    font-family: "Noto Serif TC", "PMingLiU", serif;
    font-size: 29px;
}

.charity-contact-card p {
    margin: 9px 0;
    color: rgba(255, 245, 225, 0.83);
    line-height: 1.7;
}

.charity-contact-card a {
    display: inline-block;
    margin-top: 18px;
    color: #f0c875;
    text-decoration: none;
}

/* 內頁同品牌配色，不讓首頁與沿革／經書／章程像不同套模板。 */
.site-temple.inner-page .page-hero {
    color: #fff7e5;
    background:
        linear-gradient(rgba(73, 7, 4, 0.92), rgba(96, 13, 8, 0.94)),
        url('/asset.php?file=images%2Fpattern-cloud.svg') center / 280px auto repeat;
    border-bottom: 2px solid #c99232;
}

.site-charity.inner-page .page-hero {
    color: #6d1c13;
    background:
        radial-gradient(circle at 88% 18%, rgba(197, 148, 59, 0.14), transparent 30%),
        linear-gradient(135deg, #fffdf7, #fff1d6);
    border-bottom: 1px solid rgba(183, 126, 38, 0.30);
}

.site-charity.inner-page .page-hero p {
    color: #796458;
}

.site-charity .page-content,
.site-temple .page-content {
    border-radius: 18px;
}

.site-temple .page-content h2,
.site-temple .page-content h3 {
    color: #6c160f;
    font-family: "Noto Serif TC", "PMingLiU", serif;
}

.site-charity .page-content h2,
.site-charity .page-content h3 {
    color: #7b2118;
    font-family: "Noto Serif TC", "PMingLiU", serif;
}

.site-charity .footer-charity {
    color: #fff6e6;
    background:
        linear-gradient(150deg, #7f1a12, #5b0e09),
        url('/asset.php?file=images%2Fpattern-cloud.svg') center / 260px auto repeat;
}

.site-charity .footer-charity a,
.site-charity .footer-charity h2,
.site-charity .footer-charity h3,
.site-charity .footer-charity strong {
    color: #fff7e8;
}

/* 經書排版：資料仍存 pages.body，前台只做閱讀視覺。 */
.page-content .scripture-intro {
    margin-bottom: 34px;
    padding: 24px 26px;
    color: #62442f;
    line-height: 2;
    border-left: 4px solid #b77d28;
    background: #fff8e8;
}

.page-content .scripture-chapters {
    display: grid;
    gap: 18px;
}

.page-content .scripture-chapter {
    padding: clamp(24px, 3vw, 38px);
    border: 1px solid rgba(166, 110, 29, 0.22);
    border-radius: 16px;
    background:
        radial-gradient(circle at 92% 10%, rgba(202, 154, 61, 0.08), transparent 22%),
        #fffdf7;
}

.page-content .scripture-chapter h2 {
    margin-top: 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(163, 109, 28, 0.18);
}

.page-content .scripture-chapter p {
    margin-bottom: 0;
    line-height: 2.15;
    letter-spacing: 0.03em;
}

.page-content .scripture-ending {
    margin-top: 26px;
    padding: 22px;
    text-align: center;
    color: #6e1b12;
    font-family: "Noto Serif TC", "PMingLiU", serif;
    border-top: 1px solid rgba(166, 110, 29, 0.26);
    border-bottom: 1px solid rgba(166, 110, 29, 0.26);
}

@media (max-width: 1180px) {
    .temple-nav-band-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .temple-nav-tile:nth-child(3n) {
        border-right: 1px solid rgba(229, 189, 104, 0.26);
    }

    .charity-service-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .charity-project-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .charity-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .charity-contact-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 860px) {
    .temple-banner-slide img {
        max-height: none;
    }

    .temple-feature-grid,
    .temple-information-grid,
    .temple-secondary-grid,
    .charity-info-grid {
        grid-template-columns: 1fr;
    }

    .charity-warm-hero {
        grid-template-columns: 1fr;
    }

    .charity-hero-copy-panel {
        padding: 42px 24px 36px;
    }

    .charity-hero-photo > img {
        min-height: 300px;
        max-height: 420px;
    }

    .charity-service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .charity-contact-card {
        grid-column: auto;
    }
}

@media (max-width: 600px) {
    .temple-nav-band-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .temple-nav-tile {
        min-height: 116px;
        padding: 18px 16px;
    }

    .temple-nav-tile strong {
        font-size: 19px;
    }

    .temple-feature-card,
    .charity-service-card {
        min-height: auto;
    }

    .temple-news-list > a,
    .temple-compact-list > a,
    .temple-album-list > a,
    .charity-news-list > a,
    .charity-album-list > a {
        grid-template-columns: 1fr auto;
    }

    .temple-news-list time,
    .charity-news-list time {
        grid-column: 1 / -1;
    }

    .charity-service-grid,
    .charity-project-list {
        grid-template-columns: 1fr;
    }

    .charity-wordmark-v170 {
        width: min(320px, 90%);
    }

    .charity-hero-inner h1 {
        font-size: clamp(39px, 12vw, 56px);
    }

    .charity-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .charity-hero-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* v1.7.0 舜心志工／急難救助共用同一公益操作色，不再以兩種不同屬性色系分裂。 */
.site-charity .charity-form-hero {
    background:
        radial-gradient(circle at 84% 24%, rgba(231, 193, 109, 0.18), transparent 30%),
        linear-gradient(135deg, #8f2017 0%, #72140d 58%, #a45d2e 100%);
}

.site-charity .charity-form-section {
    background:
        radial-gradient(circle at 8% 8%, rgba(197, 148, 60, 0.08), transparent 24%),
        linear-gradient(180deg, #fffaf0 0%, #f8edda 100%);
}

.site-charity .form-side-card {
    border-color: rgba(158, 103, 29, 0.20);
    background:
        radial-gradient(circle at 88% 12%, rgba(205, 158, 67, 0.10), transparent 28%),
        linear-gradient(180deg, rgba(255, 254, 250, 0.98), rgba(255, 246, 228, 0.98));
    box-shadow: 0 22px 55px rgba(105, 55, 25, 0.09);
}

.site-charity .form-side-card::after {
    border-color: rgba(158, 103, 29, 0.07);
}

.site-charity .form-side-card h2,
.site-charity .form-side-note strong,
.site-charity .paper-downloads strong,
.site-charity .form-section-heading h2 {
    color: #6f1a12;
}

.site-charity .form-side-note,
.site-charity .paper-downloads {
    border-color: rgba(157, 103, 28, 0.15);
    background: rgba(255, 250, 239, 0.86);
}

.site-charity .form-section-heading > span {
    background: linear-gradient(135deg, #9b271c, #74140d);
}

.site-charity .form-card {
    border-color: rgba(167, 117, 42, 0.18);
    background: rgba(255, 254, 250, 0.98);
    box-shadow: 0 15px 45px rgba(90, 48, 22, 0.06);
}

.site-charity .charity-form input:focus,
.site-charity .charity-form textarea:focus,
.site-charity .charity-form select:focus {
    border-color: #a52d20;
    box-shadow: 0 0 0 3px rgba(165, 45, 32, 0.10);
}

.site-charity .charity-form .btn,
.site-charity .charity-form button[type="submit"] {
    border-color: #8f2016;
}

/* ========================================================================
 * v1.7.0 final polish｜避免首頁重複主選單，改成內容導向區塊
 * 修改日期：2026/08/29（UTC+8）
 * ===================================================================== */

.site-charity .site-header .nav-links > a {
    color: #5d2a21;
}

.site-charity .site-header .nav-links > a:hover,
.site-charity .site-header .nav-links > a:focus-visible {
    color: #8b1b13;
}

.temple-facts-ribbon {
    color: #fff3d7;
    background:
        linear-gradient(180deg, rgba(94, 9, 5, 0.98), rgba(111, 14, 8, 0.98)),
        url('/asset.php?file=images%2Fpattern-cloud.svg') center / 250px auto repeat;
    border-bottom: 1px solid rgba(226, 181, 88, 0.35);
}

.temple-facts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.temple-facts-grid > div {
    min-width: 0;
    padding: 22px 28px;
    border-left: 1px solid rgba(226, 181, 88, 0.24);
}

.temple-facts-grid > div:last-child {
    border-right: 1px solid rgba(226, 181, 88, 0.24);
}

.temple-facts-grid small,
.temple-facts-grid strong,
.temple-facts-grid span {
    display: block;
}

.temple-facts-grid small {
    margin-bottom: 6px;
    color: #e6bb62;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.temple-facts-grid strong {
    overflow-wrap: anywhere;
    font-family: "Noto Serif TC", "PMingLiU", serif;
    font-size: clamp(19px, 1.65vw, 27px);
    line-height: 1.35;
}

.temple-facts-grid span {
    margin-top: 7px;
    color: rgba(255, 243, 215, 0.72);
    font-size: 13px;
}

.temple-culture-section {
    position: relative;
    overflow: hidden;
    padding: clamp(58px, 7vw, 98px) 0;
    background:
        radial-gradient(circle at 8% 8%, rgba(190, 133, 39, 0.12), transparent 26%),
        radial-gradient(circle at 90% 84%, rgba(190, 133, 39, 0.08), transparent 26%),
        linear-gradient(180deg, #fff9ec, #f8ecd4);
}

.temple-culture-section::before,
.temple-culture-section::after {
    position: absolute;
    width: 330px;
    height: 190px;
    opacity: 0.08;
    background: url('/asset.php?file=images%2Fpattern-cloud.svg') center / contain no-repeat;
    content: "";
}

.temple-culture-section::before {
    left: -90px;
    top: 170px;
}

.temple-culture-section::after {
    right: -100px;
    bottom: 30px;
}

.temple-culture-section .temple-home-heading {
    max-width: 870px;
    margin-right: auto;
    margin-left: auto;
}

.temple-culture-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr) minmax(0, 0.9fr);
    gap: 18px;
    align-items: stretch;
}

.temple-culture-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 330px;
    padding: clamp(26px, 3vw, 38px);
    flex-direction: column;
    overflow: hidden;
    color: #3e241c;
    border: 1px solid rgba(164, 104, 23, 0.25);
    border-radius: 22px;
    background: rgba(255, 253, 247, 0.94);
    box-shadow: 0 20px 48px rgba(83, 45, 19, 0.08);
}

.temple-culture-card::after {
    position: absolute;
    right: -60px;
    bottom: -75px;
    width: 190px;
    height: 190px;
    opacity: 0.06;
    border: 1px solid currentColor;
    border-radius: 50%;
    content: "";
}

.temple-card-index {
    color: #a46e24;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.temple-culture-card h2 {
    margin: 28px 0 14px;
    font-family: "Noto Serif TC", "PMingLiU", serif;
    font-size: clamp(29px, 2.6vw, 42px);
    line-height: 1.3;
}

.temple-culture-card p {
    margin: 0;
    color: #735b4e;
    line-height: 1.9;
}

.temple-culture-card > a {
    position: relative;
    z-index: 1;
    display: inline-flex;
    margin-top: auto;
    padding-top: 24px;
    color: #8c2117;
    font-weight: 800;
    text-decoration: none;
}

.temple-scripture-card {
    color: #fff6df;
    border-color: rgba(223, 177, 78, 0.42);
    background:
        radial-gradient(circle at 82% 14%, rgba(237, 191, 92, 0.15), transparent 30%),
        linear-gradient(145deg, #831a12, #520b07);
}

.temple-scripture-card::after {
    opacity: 0.12;
}

.temple-scripture-card .temple-card-index,
.temple-scripture-card > a,
.temple-scripture-card > small {
    color: #efc76f;
}

.temple-scripture-card h2 {
    color: #fff7e5;
}

.temple-scripture-card p {
    color: rgba(255, 245, 220, 0.82);
}

.temple-scripture-card > small {
    margin-top: 12px;
    font-size: 12px;
    letter-spacing: 0.08em;
}

.temple-scripture-emblem {
    position: absolute;
    right: 24px;
    top: 22px;
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    color: #f1c466;
    font-family: "Noto Serif TC", "PMingLiU", serif;
    font-size: 28px;
    border: 1px solid rgba(241, 196, 102, 0.55);
    border-radius: 50%;
}

.temple-information-section {
    padding: clamp(50px, 6vw, 84px) 0;
    background:
        radial-gradient(circle at 96% 12%, rgba(224, 175, 74, 0.09), transparent 24%),
        linear-gradient(180deg, #6d110c, #5b0d09);
}

.temple-secondary-section {
    padding: clamp(50px, 6vw, 84px) 0;
    background:
        radial-gradient(circle at 4% 80%, rgba(202, 151, 54, 0.10), transparent 24%),
        #fff8e9;
}

.temple-secondary-panel {
    min-height: 250px;
}

.charity-mission-section {
    padding: clamp(58px, 7vw, 94px) 0;
    background:
        radial-gradient(circle at 5% 12%, rgba(201, 153, 64, 0.10), transparent 24%),
        #fff9ee;
}

.charity-mission-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    gap: clamp(26px, 5vw, 72px);
    align-items: center;
}

.charity-mission-story > span,
.charity-section-heading > span,
.charity-mission-title small {
    color: #b77b2b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.charity-mission-story h2,
.charity-section-heading h2 {
    margin: 12px 0 18px;
    color: #702017;
    font-family: "Noto Serif TC", "PMingLiU", serif;
    font-size: clamp(38px, 4vw, 60px);
    line-height: 1.25;
}

.charity-mission-story p,
.charity-section-heading p {
    margin: 0;
    color: #775e50;
    font-size: 16px;
    line-height: 1.95;
}

.charity-mission-story > a {
    display: inline-flex;
    margin-top: 24px;
    color: #8b2118;
    font-weight: 800;
    text-decoration: none;
}

.charity-mission-list {
    padding: clamp(28px, 4vw, 46px);
    border: 1px solid rgba(181, 124, 35, 0.24);
    border-radius: 24px;
    background:
        radial-gradient(circle at 100% 0%, rgba(205, 158, 68, 0.12), transparent 34%),
        rgba(255, 253, 247, 0.92);
    box-shadow: 0 20px 48px rgba(91, 53, 26, 0.07);
}

.charity-mission-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.charity-mission-title span {
    color: #5d281f;
    font-family: "Noto Serif TC", "PMingLiU", serif;
    font-size: clamp(26px, 2.5vw, 36px);
    font-weight: 800;
}

.charity-mission-list ul {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.charity-mission-list li {
    position: relative;
    padding: 16px 0 16px 34px;
    color: #604d43;
    line-height: 1.7;
    border-top: 1px solid rgba(160, 111, 35, 0.15);
}

.charity-mission-list li::before {
    position: absolute;
    left: 4px;
    top: 23px;
    width: 10px;
    height: 10px;
    border: 1px solid #c28b34;
    transform: rotate(45deg);
    content: "";
}

.charity-help-section {
    padding: clamp(54px, 6vw, 90px) 0;
    background:
        linear-gradient(180deg, #fff3dc, #fff9ed 52%, #fff5e3);
}

.charity-section-heading {
    max-width: 820px;
    margin: 0 auto 34px;
    text-align: center;
}

.charity-section-heading h2 {
    font-size: clamp(34px, 3.5vw, 50px);
}

.charity-help-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.charity-help-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 330px;
    padding: clamp(28px, 4vw, 44px);
    flex-direction: column;
    overflow: hidden;
    color: #fff7e7;
    border: 1px solid rgba(235, 193, 103, 0.38);
    border-radius: 24px;
    background:
        radial-gradient(circle at 88% 10%, rgba(244, 203, 111, 0.14), transparent 30%),
        linear-gradient(145deg, #951f16, #661008);
    box-shadow: 0 22px 52px rgba(92, 20, 12, 0.14);
}

.charity-help-card::after {
    position: absolute;
    right: -70px;
    bottom: -80px;
    width: 230px;
    height: 230px;
    opacity: 0.08;
    background: url('/asset.php?file=images%2Flogo-shunxin.png') center / 150px auto no-repeat;
    content: "";
}

.charity-help-card > span {
    color: #efc36b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.charity-help-card h3 {
    margin: 24px 0 13px;
    font-family: "Noto Serif TC", "PMingLiU", serif;
    font-size: clamp(32px, 3vw, 46px);
}

.charity-help-card p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 247, 231, 0.80);
    line-height: 1.9;
}

.charity-help-actions {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 28px;
}

.charity-help-actions a {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    padding: 10px 16px;
    color: #ffe8b7;
    text-decoration: none;
    border: 1px solid rgba(240, 198, 109, 0.45);
    border-radius: 999px;
    white-space: nowrap;
}

.charity-help-actions a.primary {
    color: #6d160f;
    background: #f0c56c;
}

.charity-governance-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.charity-governance-row > a {
    display: grid;
    min-width: 0;
    min-height: 210px;
    padding: 28px;
    align-content: start;
    color: #4e2d24;
    text-decoration: none;
    border: 1px solid rgba(176, 119, 32, 0.22);
    border-radius: 20px;
    background: rgba(255, 253, 247, 0.9);
}

.charity-governance-row span {
    color: #b47a2b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.charity-governance-row strong {
    margin: 16px 0 10px;
    color: #702017;
    font-family: "Noto Serif TC", "PMingLiU", serif;
    font-size: 30px;
}

.charity-governance-row small {
    color: #786357;
    font-size: 14px;
    line-height: 1.8;
}

.charity-governance-row b {
    margin-top: auto;
    padding-top: 18px;
    color: #8b2118;
}

/* 內頁的紙張與品牌一致性。 */
.site-temple.inner-page .inner-content-section {
    background:
        radial-gradient(circle at 94% 8%, rgba(198, 146, 48, 0.09), transparent 24%),
        #fff8e9;
}

.site-charity.inner-page .inner-content-section {
    background:
        radial-gradient(circle at 8% 12%, rgba(198, 146, 48, 0.08), transparent 24%),
        #fff9ef;
}

.site-temple.inner-page .page-content,
.site-charity.inner-page .page-content {
    border: 1px solid rgba(171, 113, 31, 0.16);
    background: rgba(255, 253, 247, 0.90);
    box-shadow: 0 18px 46px rgba(79, 43, 18, 0.06);
}

@media (hover: hover) and (pointer: fine) {
    .temple-culture-card,
    .charity-help-card,
    .charity-governance-row > a {
        transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
    }

    .temple-culture-card:hover,
    .charity-governance-row > a:hover {
        transform: translateY(-4px);
        border-color: rgba(164, 104, 23, 0.42);
        box-shadow: 0 24px 56px rgba(83, 45, 19, 0.11);
    }

    .charity-help-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 27px 60px rgba(92, 20, 12, 0.19);
    }
}

@media (max-width: 1050px) {
    .temple-culture-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .temple-scripture-card {
        grid-column: span 2;
        min-height: 300px;
    }
}

@media (max-width: 860px) {
    .temple-facts-grid,
    .charity-mission-grid,
    .charity-help-grid,
    .charity-governance-row {
        grid-template-columns: 1fr;
    }

    .temple-facts-grid > div {
        border-right: 1px solid rgba(226, 181, 88, 0.24);
        border-bottom: 1px solid rgba(226, 181, 88, 0.18);
    }

    .temple-facts-grid > div:last-child {
        border-bottom: 0;
    }

    .temple-culture-layout {
        grid-template-columns: 1fr;
    }

    .temple-scripture-card {
        grid-column: auto;
    }

    .charity-mission-title {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .temple-facts-grid > div {
        padding: 18px 20px;
    }

    .temple-culture-card,
    .charity-help-card,
    .charity-governance-row > a {
        min-height: auto;
        padding: 24px 22px;
        border-radius: 18px;
    }

    .temple-culture-card h2 {
        margin-top: 20px;
    }

    .charity-help-actions a {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================================================
 * v1.7.1 手機／觸控裝置 UAT 修正
 * 修改日期：2026/08/29（UTC+8）
 * 說明：部分 Android 瀏覽器可能以較大的桌面式 viewport 呈現。
 *       除一般 viewport breakpoint 外，再由 site.js 加入 touch-mobile-layout，
 *       確保觸控手機與小型平板仍使用行動導覽與單欄內容。
 * ===================================================================== */

@media (max-width: 860px) {
    .site-header .nav-wrap {
        min-height: 72px;
        gap: 12px;
    }

    .site-header .brand {
        min-width: 0;
        gap: 10px;
    }

    .site-header .brand-mark {
        width: 46px;
        height: 46px;
        flex: 0 0 46px;
        border-radius: 12px;
    }

    .site-header .brand-mark img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: inherit;
    }

    .site-header .brand-copy {
        min-width: 0;
    }

    .site-header .brand-copy strong {
        display: block;
        overflow: hidden;
        max-width: min(62vw, 260px);
        font-size: 17px;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .site-header .brand-copy small {
        display: none;
    }

    .site-header .menu-toggle {
        display: block;
        flex: 0 0 48px;
        color: #f2cb7b;
        border: 1px solid rgba(229, 189, 104, 0.34);
        background: rgba(61, 8, 6, 0.18);
    }

    .site-charity .site-header .menu-toggle {
        color: #7e241c;
        border-color: rgba(139, 27, 19, 0.22);
        background: rgba(255, 255, 255, 0.62);
    }

    .site-header .nav {
        overflow-y: auto;
        justify-content: flex-start;
        padding-top: calc(104px + env(safe-area-inset-top, 0px));
    }

    .site-header .nav-links a {
        min-height: 54px;
        display: flex;
        align-items: center;
        font-size: 24px;
    }

    .temple-banner-hero {
        margin-top: calc(72px + env(safe-area-inset-top, 0px));
    }

    .temple-banner-slide img {
        width: 100%;
        max-height: none;
        object-fit: contain;
    }

    .temple-facts-grid {
        grid-template-columns: 1fr;
        padding: 8px 0;
    }

    .temple-facts-grid > div {
        display: grid;
        grid-template-columns: minmax(82px, 0.34fr) minmax(0, 1fr);
        column-gap: 16px;
        row-gap: 3px;
        padding: 15px 4px;
        border: 0;
        border-bottom: 1px solid rgba(226, 181, 88, 0.20);
    }

    .temple-facts-grid > div:last-child {
        border: 0;
    }

    .temple-facts-grid small {
        grid-row: 1 / span 2;
        align-self: center;
        margin: 0;
        font-size: 10px;
    }

    .temple-facts-grid strong {
        font-size: 18px;
    }

    .temple-facts-grid span {
        margin: 0;
        font-size: 12px;
    }

    .temple-culture-section {
        padding: 54px 0 62px;
    }

    .temple-culture-section .temple-home-heading,
    .charity-section-heading {
        margin-bottom: 28px;
        text-align: left;
    }

    .temple-culture-section .temple-home-heading h1,
    .charity-section-heading h2 {
        font-size: clamp(32px, 9vw, 42px);
        line-height: 1.2;
    }

    .temple-culture-layout,
    .temple-information-grid,
    .temple-secondary-grid,
    .charity-mission-grid,
    .charity-help-grid,
    .charity-governance-row,
    .charity-info-grid,
    .charity-project-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .temple-scripture-card,
    .charity-contact-card {
        grid-column: auto;
    }

    .temple-culture-card,
    .temple-list-panel,
    .temple-contact-panel,
    .temple-secondary-panel,
    .charity-help-card,
    .charity-governance-row > a,
    .charity-info-panel,
    .charity-contact-card {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .temple-culture-card {
        min-height: 0;
        padding: 26px 22px;
    }

    .temple-culture-card h2 {
        margin: 18px 0 10px;
        font-size: 30px;
    }

    .temple-culture-card > a {
        margin-top: 22px;
        padding-top: 0;
    }

    .temple-information-section,
    .temple-secondary-section,
    .charity-help-section,
    .charity-information-v170,
    .charity-projects-v170 {
        padding-top: 58px;
        padding-bottom: 58px;
    }
}

html.touch-mobile-layout {
    --content: min(100% - 32px, 760px);
}

html.touch-mobile-layout .site-header .nav-wrap {
    min-height: 72px;
    gap: 12px;
}

html.touch-mobile-layout .site-header .brand {
    min-width: 0;
    gap: 10px;
}

html.touch-mobile-layout .site-header .brand-mark {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 12px;
}

html.touch-mobile-layout .site-header .brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: inherit;
}

html.touch-mobile-layout .site-header .brand-copy {
    min-width: 0;
}

html.touch-mobile-layout .site-header .brand-copy strong {
    display: block;
    overflow: hidden;
    max-width: 62vw;
    font-size: 17px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html.touch-mobile-layout .site-header .brand-copy small {
    display: none;
}

html.touch-mobile-layout .site-header .menu-toggle {
    display: block;
    flex: 0 0 48px;
    color: #f2cb7b;
    border: 1px solid rgba(229, 189, 104, 0.34);
    background: rgba(61, 8, 6, 0.18);
}

html.touch-mobile-layout .site-charity .site-header .menu-toggle {
    color: #7e241c;
    border-color: rgba(139, 27, 19, 0.22);
    background: rgba(255, 255, 255, 0.62);
}

html.touch-mobile-layout .site-header .nav {
    position: fixed;
    z-index: 1001;
    inset: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 24px;
    padding:
        calc(104px + env(safe-area-inset-top, 0px))
        max(28px, calc(24px + env(safe-area-inset-right, 0px)))
        max(36px, calc(24px + env(safe-area-inset-bottom, 0px)))
        max(28px, calc(24px + env(safe-area-inset-left, 0px)));
    background: rgba(74, 13, 10, 0.985);
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .28s ease, transform .28s ease, visibility .28s;
}

html.touch-mobile-layout .site-charity .site-header .nav {
    background: rgba(92, 21, 14, 0.985);
}

html.touch-mobile-layout .site-header .nav.open {
    opacity: 1;
    visibility: visible;
    transform: none;
}

html.touch-mobile-layout .site-header .nav-links,
html.touch-mobile-layout .site-header .nav-actions {
    display: grid;
    width: 100%;
    gap: 0;
}

html.touch-mobile-layout .site-header .nav-links a {
    display: flex;
    min-height: 56px;
    align-items: center;
    padding: 13px 0;
    color: #fff7e5;
    font-family: "Noto Serif TC", "PMingLiU", serif;
    font-size: clamp(23px, 5vw, 31px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

html.touch-mobile-layout .site-header .nav-links a::after {
    display: none;
}

html.touch-mobile-layout .site-header .nav-cta {
    width: 100%;
    min-height: 50px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

html.touch-mobile-layout .temple-banner-hero {
    margin-top: calc(72px + env(safe-area-inset-top, 0px));
}

html.touch-mobile-layout .temple-facts-grid,
html.touch-mobile-layout .temple-culture-layout,
html.touch-mobile-layout .temple-information-grid,
html.touch-mobile-layout .temple-secondary-grid,
html.touch-mobile-layout .charity-mission-grid,
html.touch-mobile-layout .charity-help-grid,
html.touch-mobile-layout .charity-governance-row,
html.touch-mobile-layout .charity-info-grid,
html.touch-mobile-layout .charity-project-list {
    grid-template-columns: minmax(0, 1fr);
}

html.touch-mobile-layout .temple-scripture-card,
html.touch-mobile-layout .charity-contact-card {
    grid-column: auto;
}

html.touch-mobile-layout .temple-facts-grid {
    padding: 8px 0;
}

html.touch-mobile-layout .temple-facts-grid > div {
    padding: 15px 4px;
    border-right: 0;
    border-left: 0;
    border-bottom: 1px solid rgba(226, 181, 88, 0.20);
}

html.touch-mobile-layout .temple-facts-grid > div:last-child {
    border-bottom: 0;
}

html.touch-mobile-layout .temple-culture-card,
html.touch-mobile-layout .temple-list-panel,
html.touch-mobile-layout .temple-contact-panel,
html.touch-mobile-layout .temple-secondary-panel,
html.touch-mobile-layout .charity-help-card,
html.touch-mobile-layout .charity-governance-row > a,
html.touch-mobile-layout .charity-info-panel,
html.touch-mobile-layout .charity-contact-card {
    width: 100%;
    min-width: 0;
    max-width: none;
}

html.touch-mobile-layout .temple-culture-card {
    min-height: 0;
}

/* ============================================================
 * v1.7.3｜舜心頁首可讀性、固定頁首預留空間與導覽收斂
 * ============================================================ */
.home-page.site-charity .charity-home-v170 {
    padding-top: calc(92px + env(safe-area-inset-top, 0px));
}

.site-charity .site-header,
.site-charity .site-header.scrolled,
.site-charity.inner-page .site-header {
    color: var(--charity-ink);
}

.site-charity .site-header .brand-copy strong,
.site-charity .site-header .brand-copy small,
.site-charity .site-header .nav-links > a {
    color: var(--charity-ink);
}

.site-charity .site-header .nav-links > a:hover,
.site-charity .site-header .nav-links > a:focus-visible,
.site-charity .site-header .nav-links > a.active {
    color: var(--charity-red);
}

.site-charity .site-header .charity-brand-mark,
.site-charity .site-header.scrolled .charity-brand-mark,
.site-charity.inner-page .charity-brand-mark {
    border-color: rgba(139, 27, 19, 0.18);
    background: rgba(255, 255, 255, 0.60);
}

@media (max-width: 900px) {
    .home-page.site-charity .charity-home-v170 {
        padding-top: calc(82px + env(safe-area-inset-top, 0px));
    }

    .site-charity .site-header .menu-toggle,
    .site-charity .site-header.scrolled .menu-toggle {
        color: var(--charity-red);
    }
}

html.touch-mobile-layout .home-page.site-charity .charity-home-v170 {
    padding-top: calc(72px + env(safe-area-inset-top, 0px));
}


/* ============================================================
 * v1.7.4｜內容頁本文可讀性保底
 * 後台 pages.body 經安全清理輸出後，本文顏色明確跟隨品牌墨色，
 * 避免任何舊樣式或繼承色造成內容與紙張背景對比不足。
 * ============================================================ */
.site-temple.inner-page .page-content {
    color: #3f2a20;
}

.site-charity.inner-page .page-content {
    color: var(--charity-ink);
}

.site-temple.inner-page .page-content p,
.site-temple.inner-page .page-content li,
.site-temple.inner-page .page-content td,
.site-temple.inner-page .page-content th,
.site-temple.inner-page .page-content blockquote,
.site-charity.inner-page .page-content p,
.site-charity.inner-page .page-content li,
.site-charity.inner-page .page-content td,
.site-charity.inner-page .page-content th,
.site-charity.inner-page .page-content blockquote {
    color: inherit;
}


/* ============================================================
 * v1.7.5｜雙品牌首頁細修：舜心 Hero 協調、空內容收斂、跨品牌入口
 * 修改日期：2026/08/29 08:20（UTC+8）
 * ============================================================ */
.temple-secondary-grid.single-panel {
    grid-template-columns: minmax(0, 1fr);
}

.temple-secondary-grid.single-panel .temple-secondary-panel {
    width: 100%;
}

.charity-warm-hero {
    grid-template-columns: minmax(520px, 0.96fr) minmax(0, 1.04fr);
    min-height: 548px;
    background: #fff8e9;
}

.charity-hero-copy-panel {
    isolation: isolate;
    padding-top: 64px;
    padding-bottom: 64px;
    background:
        radial-gradient(circle at 88% 18%, rgba(199, 146, 55, 0.13) 0, rgba(199, 146, 55, 0.06) 18%, transparent 36%),
        linear-gradient(120deg, #fffdf8 0%, #fff8e8 70%, #f9e7c2 100%);
}

.charity-hero-copy-panel::before {
    position: absolute;
    z-index: -1;
    right: -86px;
    top: 50%;
    width: 290px;
    height: 290px;
    border: 1px solid rgba(181, 121, 35, 0.18);
    border-radius: 50%;
    box-shadow:
        0 0 0 34px rgba(181, 121, 35, 0.035),
        0 0 0 76px rgba(181, 121, 35, 0.022);
    content: "";
    transform: translateY(-50%);
    pointer-events: none;
}

.charity-hero-copy-panel::after {
    position: absolute;
    z-index: -1;
    left: clamp(24px, 8vw, 132px);
    bottom: 32px;
    width: 150px;
    height: 42px;
    opacity: 0.26;
    background:
        linear-gradient(90deg, transparent 0 10%, rgba(169, 105, 25, 0.48) 10% 90%, transparent 90%) 0 8px / 100% 1px no-repeat,
        linear-gradient(90deg, transparent 0 28%, rgba(169, 105, 25, 0.34) 28% 72%, transparent 72%) 0 22px / 100% 1px no-repeat;
    content: "";
    pointer-events: none;
}

.charity-hero-brandline {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.charity-hero-brandline strong {
    color: #7f291e;
    font-family: "Noto Serif TC", "PMingLiU", serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.charity-hero-kicker {
    margin: 0;
    color: #b47824;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.2em;
}

.charity-hero-inner h1 {
    max-width: 620px;
    margin-top: 8px;
    font-size: clamp(48px, 4.7vw, 74px);
    line-height: 1.16;
}

.charity-hero-inner > p {
    max-width: 590px;
    font-size: 18px;
    line-height: 1.95;
}

.charity-hero-photo {
    position: relative;
    min-height: 548px;
    background: #d8b176;
}

.charity-hero-photo > img {
    min-height: 548px;
    object-position: 54% center;
}

.charity-hero-photo::before {
    z-index: 2;
    background:
        linear-gradient(90deg, rgba(255, 248, 233, 0.62) 0%, rgba(255, 248, 233, 0.20) 9%, transparent 24%),
        linear-gradient(180deg, rgba(83, 31, 18, 0.02), rgba(83, 31, 18, 0.10));
}

.charity-hero-photo::after {
    position: absolute;
    z-index: 2;
    inset: 0;
    border-left: 1px solid rgba(175, 118, 34, 0.18);
    content: "";
    pointer-events: none;
}

.charity-hero-photo-mark {
    display: none !important;
}

@media (max-width: 1020px) {
    .charity-warm-hero {
        grid-template-columns: minmax(430px, 0.95fr) minmax(0, 1.05fr);
    }

    .charity-hero-copy-panel {
        padding-left: 34px;
        padding-right: 34px;
    }
}

@media (max-width: 860px) {
    .charity-warm-hero {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .charity-hero-copy-panel {
        padding: 42px 24px 38px;
    }

    .charity-hero-copy-panel::before {
        right: -120px;
        width: 250px;
        height: 250px;
    }

    .charity-hero-brandline {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .charity-hero-brandline strong {
        font-size: 15px;
    }

    .charity-hero-inner h1 {
        font-size: clamp(40px, 11vw, 56px);
    }

    .charity-hero-inner > p {
        font-size: 16px;
        line-height: 1.85;
    }

    .charity-hero-photo,
    .charity-hero-photo > img {
        min-height: 0;
    }

    .charity-hero-photo > img {
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
    }

    .charity-hero-photo::before {
        background: linear-gradient(180deg, rgba(255, 248, 233, 0.32), transparent 24%);
    }

    .charity-hero-photo::after {
        border-top: 1px solid rgba(175, 118, 34, 0.18);
        border-left: 0;
    }
}

/*
 * 武德真經卷軸式章節閱讀器
 * 修改日期：2026/08/29 09:25（UTC+8）
 * 章節內容仍來自後台 pages.body；只改前台閱讀方式，不把正文寫死於樣式或 JavaScript。
 */
.scripture-reader {
    position: relative;
    overflow: visible;
}

.scripture-reader .scripture-intro {
    max-width: 900px;
    margin: 0 auto 34px;
    padding: 24px 28px;
    color: #5a3824;
    border: 1px solid rgba(160, 111, 46, 0.24);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(255, 250, 234, 0.96), rgba(243, 221, 174, 0.42));
}

.scripture-reader .scripture-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    max-width: 980px;
    margin: 0 auto 18px;
}

.scripture-reader .scripture-toolbar-copy strong {
    display: block;
    color: #5e170f;
    font-family: var(--font-display, serif);
    font-size: clamp(1.35rem, 2.8vw, 2rem);
    font-weight: 700;
}

.scripture-reader .scripture-toolbar-copy span {
    display: block;
    margin-top: 4px;
    color: #84664f;
    font-size: 0.95rem;
}

.scripture-reader .scripture-toolbar-actions {
    display: flex;
    gap: 10px;
}

.scripture-reader .scripture-nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    padding: 0 16px;
    color: #fff8e8;
    border: 1px solid rgba(220, 174, 80, 0.56);
    border-radius: 999px;
    background: #781710;
    cursor: pointer;
}

.scripture-reader .scripture-nav-button:disabled {
    opacity: 0.36;
    cursor: default;
}

.scripture-reader .scripture-index {
    display: flex;
    gap: 8px;
    max-width: 980px;
    margin: 0 auto 16px;
    padding: 3px 2px 8px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.scripture-reader .scripture-index button {
    flex: 0 0 auto;
    min-width: 46px;
    min-height: 42px;
    padding: 0 13px;
    color: #6c3b23;
    white-space: nowrap;
    border: 1px solid rgba(161, 111, 44, 0.28);
    border-radius: 999px;
    background: rgba(255, 250, 235, 0.92);
    cursor: pointer;
}

.scripture-reader .scripture-index button.is-current {
    color: #fff6dd;
    border-color: #8d2417;
    background: #8d2417;
}

.scripture-reader .scripture-chapters {
    position: relative;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: 24px;
    max-width: 980px;
    margin: 0 auto;
    padding: 34px 54px 38px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    border: 1px solid rgba(132, 81, 29, 0.32);
    border-radius: 10px;
    background:
        radial-gradient(circle at 20% 15%, rgba(151, 98, 36, 0.10), transparent 26%),
        radial-gradient(circle at 82% 70%, rgba(151, 98, 36, 0.08), transparent 30%),
        linear-gradient(90deg, rgba(119, 69, 23, 0.06), transparent 7%, transparent 93%, rgba(119, 69, 23, 0.06)),
        #f4e4b8;
    box-shadow:
        inset 0 0 60px rgba(91, 47, 13, 0.10),
        0 24px 50px rgba(91, 47, 13, 0.12);
}

.scripture-reader .scripture-chapters::-webkit-scrollbar {
    display: none;
}

.scripture-reader .scripture-chapters::before,
.scripture-reader .scripture-chapters::after {
    content: '';
    position: sticky;
    z-index: 4;
    top: 0;
    width: 22px;
    height: 100%;
    pointer-events: none;
    border-radius: 999px;
    background: linear-gradient(90deg, #4c240f, #9b5d27 42%, #d49c53 54%, #6f3518 78%, #3e1e0d);
    box-shadow: 0 0 0 2px rgba(91, 44, 16, 0.30), 0 8px 18px rgba(60, 29, 11, 0.22);
}

.scripture-reader .scripture-chapters::before {
    left: 8px;
}

.scripture-reader .scripture-chapters::after {
    right: 8px;
}

.scripture-reader .scripture-chapter {
    position: relative;
    min-width: 0;
    margin: 0;
    padding: 28px clamp(22px, 6vw, 68px) 32px;
    color: #4d311f;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    border: 0;
    background: transparent;
}

.scripture-reader .scripture-chapter::before {
    content: '武德真經';
    display: block;
    margin-bottom: 12px;
    color: #a76e25;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-align: center;
}

.scripture-reader .scripture-chapter h2 {
    margin: 0 0 26px;
    color: #5e170f;
    font-family: var(--font-display, serif);
    font-size: clamp(1.85rem, 4.6vw, 3rem);
    line-height: 1.25;
    text-align: center;
}

.scripture-reader .scripture-chapter p {
    margin: 0;
    color: #4e3523;
    font-size: clamp(1.05rem, 1.7vw, 1.22rem);
    line-height: 2.15;
    letter-spacing: 0.055em;
    text-align: justify;
}

.scripture-reader .scripture-ending {
    max-width: 760px;
    margin: 34px auto 0;
    padding: 28px;
    color: #6f2a18;
    line-height: 2;
    text-align: center;
    border-top: 1px solid rgba(158, 102, 40, 0.26);
    border-bottom: 1px solid rgba(158, 102, 40, 0.26);
}

@media (max-width: 720px) {
    .scripture-reader .scripture-intro {
        margin-bottom: 24px;
        padding: 20px;
        border-radius: 16px;
    }

    .scripture-reader .scripture-toolbar {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .scripture-reader .scripture-toolbar-actions {
        width: 100%;
    }

    .scripture-reader .scripture-nav-button {
        flex: 1 1 0;
    }

    .scripture-reader .scripture-chapters {
        gap: 14px;
        padding: 28px 24px 32px;
        border-radius: 8px;
    }

    .scripture-reader .scripture-chapters::before,
    .scripture-reader .scripture-chapters::after {
        width: 14px;
    }

    .scripture-reader .scripture-chapter {
        padding: 20px 14px 26px;
    }

    .scripture-reader .scripture-chapter p {
        line-height: 2;
        letter-spacing: 0.03em;
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .scripture-reader .scripture-chapters {
        scroll-behavior: auto;
    }
}

/* 卷軸木桿採容器邊框呈現，避免 pseudo element 成為橫向章節軌道的額外 Grid item。 */
.scripture-reader .scripture-chapters {
    border-top: 12px solid #6f3518;
    border-bottom: 12px solid #6f3518;
    box-shadow:
        inset 14px 0 20px rgba(91, 47, 13, 0.10),
        inset -14px 0 20px rgba(91, 47, 13, 0.10),
        inset 0 0 60px rgba(91, 47, 13, 0.10),
        0 24px 50px rgba(91, 47, 13, 0.12);
}

.scripture-reader .scripture-chapters::before,
.scripture-reader .scripture-chapters::after {
    display: none;
}

/*
 * v1.8.2：章節停靠時只顯示目前章節。
 * 舊版 track 左右 padding 會讓下一個 100% 寬 Grid item 落進右側 padding，
 * 因此在章節右緣仍看得到下一章少量文字。橫向留白改由章節本身負責。
 */
.scripture-reader .scripture-chapters {
    padding-right: 0;
    padding-left: 0;
    scroll-padding-inline: 0;
}

.scripture-reader .scripture-chapter {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 720px) {
    .scripture-reader .scripture-chapters {
        padding-right: 0;
        padding-left: 0;
    }
}

.temple-contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-items: center;
}

.temple-contact-links a {
    white-space: nowrap;
}

/* ============================================================
   v1.8.1｜大里武澤宮義工招募（與舜心志工完全分流）
   ============================================================ */
.temple-volunteer-hero {
    position: relative;
    overflow: hidden;
    color: #fff7e8;
    background:
        radial-gradient(circle at 82% 20%, rgba(218, 171, 66, .18), transparent 24%),
        linear-gradient(135deg, #65120d 0%, #8e1e14 54%, #5b0d0a 100%);
}

.temple-volunteer-hero::after {
    content: "義";
    position: absolute;
    right: max(5vw, 28px);
    top: 50%;
    transform: translateY(-50%);
    font-family: "Noto Serif TC", "PMingLiU", serif;
    font-size: clamp(120px, 18vw, 280px);
    line-height: 1;
    color: rgba(229, 188, 84, .08);
    pointer-events: none;
}

.temple-volunteer-hero .container {
    position: relative;
    z-index: 1;
}

.temple-volunteer-hero .eyebrow {
    color: #e6bf62;
}

.temple-volunteer-section {
    padding: clamp(54px, 7vw, 96px) 0;
    background:
        radial-gradient(circle at 10% 12%, rgba(204, 155, 49, .08), transparent 26%),
        #fbf3e2;
}

.temple-volunteer-layout {
    display: grid;
    grid-template-columns: minmax(260px, .72fr) minmax(0, 1.55fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: start;
}

.temple-volunteer-side {
    position: sticky;
    top: 124px;
    padding: clamp(28px, 4vw, 46px);
    border: 1px solid rgba(142, 102, 25, .22);
    border-radius: 28px;
    background:
        linear-gradient(155deg, rgba(255, 252, 243, .96), rgba(244, 224, 181, .82)),
        #fffaf0;
    box-shadow: 0 24px 64px rgba(91, 45, 15, .09);
}

.temple-volunteer-kicker {
    display: block;
    margin-bottom: 16px;
    color: #9b6e20;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .18em;
}

.temple-volunteer-side h2 {
    margin: 0 0 18px;
    color: #5f1711;
    font-family: "Noto Serif TC", "PMingLiU", serif;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.25;
}

.temple-volunteer-side p,
.temple-volunteer-side li {
    color: #67564a;
    line-height: 1.9;
}

.temple-volunteer-side ul {
    margin: 24px 0;
    padding-left: 1.4em;
}

.temple-volunteer-privacy {
    display: grid;
    gap: 6px;
    margin-top: 28px;
    padding: 18px 20px;
    border-left: 3px solid #b98a2f;
    background: rgba(255, 255, 255, .64);
}

.temple-volunteer-privacy strong {
    color: #6b1510;
}

.temple-volunteer-privacy span {
    color: #736458;
    font-size: 14px;
    line-height: 1.7;
}

.temple-volunteer-form {
    display: grid;
    gap: 22px;
    min-width: 0;
}

.temple-form-card {
    padding: clamp(24px, 3.5vw, 38px);
    border: 1px solid rgba(142, 102, 25, .20);
    border-radius: 28px;
    background: rgba(255, 253, 247, .97);
    box-shadow: 0 18px 48px rgba(79, 43, 18, .06);
}

.temple-form-heading {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 28px;
}

.temple-form-heading > span {
    display: grid;
    place-items: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(185, 138, 47, .38);
    border-radius: 50%;
    color: #9b6e20;
    font-weight: 800;
}

.temple-form-heading h2 {
    margin: 0 0 6px;
    color: #5d1812;
    font-family: "Noto Serif TC", "PMingLiU", serif;
    font-size: clamp(24px, 2.4vw, 32px);
}

.temple-form-heading p {
    margin: 0;
    color: #77685c;
    line-height: 1.7;
}

.temple-form-grid {
    display: grid;
    gap: 20px;
}

.temple-form-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.temple-field {
    min-width: 0;
}

.temple-field.full {
    grid-column: 1 / -1;
}

.temple-field > label,
.temple-field > legend {
    display: block;
    margin-bottom: 9px;
    color: #4d3529;
    font-weight: 750;
}

.temple-field input[type="text"],
.temple-field input[type="tel"],
.temple-field input[type="email"],
.temple-field textarea {
    width: 100%;
    min-height: 52px;
    padding: 13px 15px;
    border: 1px solid #ddcaa2;
    border-radius: 14px;
    outline: none;
    color: #382820;
    font: inherit;
    font-size: 16px;
    background: #fffdf8;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.temple-field textarea {
    min-height: 132px;
    resize: vertical;
    line-height: 1.7;
}

.temple-field input:focus,
.temple-field textarea:focus {
    border-color: #a87922;
    box-shadow: 0 0 0 4px rgba(168, 121, 34, .12);
}

.temple-choice-field {
    margin: 0 0 24px;
    padding: 0;
    border: 0;
}

.temple-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.temple-choice-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.temple-choice-option {
    display: flex;
    gap: 10px;
    align-items: center;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid #e0cfac;
    border-radius: 14px;
    color: #58473b;
    background: #fffaf0;
    cursor: pointer;
}

.temple-choice-option input {
    width: 19px;
    height: 19px;
    accent-color: #8c1c13;
}

.temple-choice-option:has(input:checked) {
    border-color: #b4842a;
    background: #fbebc8;
}

.temple-field.has-error input,
.temple-field.has-error textarea,
.temple-choice-field.has-error .temple-choice-option,
.temple-privacy-check.has-error {
    border-color: #b3261e;
}

.temple-privacy-check {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 22px;
    padding: 16px 18px;
    border: 1px solid #ddcaa2;
    border-radius: 14px;
    color: #58473b;
    line-height: 1.7;
    background: #fffaf0;
}

.temple-privacy-check input {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #8c1c13;
}

.temple-captcha-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: end;
}

.temple-captcha-box {
    display: flex;
    gap: 10px;
    align-items: center;
}

.temple-captcha-box .captcha-image-button,
.temple-captcha-box .captcha-refresh {
    min-height: 48px;
}

.temple-form-submit {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    padding: 22px 26px;
    border-radius: 22px;
    color: #fff5df;
    background: linear-gradient(135deg, #72150f, #9b2015);
}

.temple-form-submit > div {
    display: grid;
    gap: 5px;
}

.temple-form-submit span {
    color: rgba(255, 246, 229, .78);
    line-height: 1.6;
}

.temple-form-submit .btn {
    flex: 0 0 auto;
    min-height: 50px;
    color: #5d1711;
    background: #f0c969;
}

.temple-volunteer-success-wrap {
    max-width: 880px;
}

.temple-volunteer-success {
    padding: clamp(36px, 6vw, 68px);
    border: 1px solid rgba(164, 119, 31, .23);
    border-radius: 30px;
    text-align: center;
    background: #fffaf0;
    box-shadow: 0 20px 60px rgba(93, 52, 21, .08);
}

.temple-volunteer-success .success-symbol {
    display: grid;
    place-items: center;
    width: 70px;
    height: 70px;
    margin: 0 auto 18px;
    border-radius: 50%;
    color: #fff8e7;
    font-size: 34px;
    background: #8b1c13;
}

.temple-volunteer-success small {
    color: #9a6a20;
    font-weight: 800;
    letter-spacing: .16em;
}

.temple-volunteer-success h2 {
    margin: 12px 0;
    color: #5e1711;
    font-family: "Noto Serif TC", "PMingLiU", serif;
    font-size: clamp(30px, 4vw, 46px);
}

.temple-volunteer-success p {
    color: #6d5a4d;
    line-height: 1.8;
}

.temple-volunteer-success .success-number {
    margin: 24px auto;
    padding: 13px 18px;
    border-radius: 14px;
    color: #6a401c;
    background: #f5e5bf;
}

.temple-volunteer-cta-panel {
    border-color: rgba(158, 110, 26, .28);
    background: linear-gradient(135deg, #fffaf0, #f6e6c2);
}

@media (max-width: 900px) {
    .temple-volunteer-layout {
        grid-template-columns: 1fr;
    }

    .temple-volunteer-side {
        position: static;
    }
}

@media (max-width: 640px) {
    .temple-volunteer-section {
        padding: 42px 0 58px;
    }

    .temple-volunteer-side,
    .temple-form-card {
        padding: 22px;
        border-radius: 22px;
    }

    .temple-form-grid.two,
    .temple-choice-grid,
    .temple-choice-grid.compact,
    .temple-captcha-row {
        grid-template-columns: 1fr;
    }

    .temple-captcha-box {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .temple-captcha-box .captcha-image-button {
        flex: 1 1 190px;
    }

    .temple-form-submit {
        align-items: stretch;
        flex-direction: column;
    }

    .temple-form-submit .btn {
        width: 100%;
    }
}
