@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;600;700;800&family=Noto+Serif+TC:wght@600;700;800;900&display=swap");
:root {
    --primary: #7a1f2b;
    --secondary: #caa35c;
    --primary-dark: #471218;
    --primary-deep: #2c0c10;
    --gold-light: #ead7a5;
    --gold-pale: #f5ead0;
    --ink: #302622;
    --ink-soft: #615650;
    --muted: #81756d;
    --paper: #fbf8f1;
    --cream: #f5efe3;
    --cream-deep: #ede2cf;
    --line: #e5d8c6;
    --white: #ffffff;
    --success: #3d9364;
    --danger: #b63a3a;
    --shadow-sm: 0 10px 28px rgba(63, 34, 22, 0.08);
    --shadow: 0 22px 60px rgba(53, 28, 21, 0.14);
    --radius-sm: 12px;
    --radius: 22px;
    --container: 1240px;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

.full-image-frame {
    background-color: var(--cream);
    background-image:
        linear-gradient(rgba(249, 244, 235, 0.82), rgba(249, 244, 235, 0.82)),
        var(--media-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family:
        "Noto Sans TC",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    font-size: 16px;
    line-height: 1.75;
    overflow-x: hidden;
}

body.nav-open {
    overflow: hidden;
}

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

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

a[href],
button {
    cursor: pointer;
}

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

button {
    color: inherit;
}

.container {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}

.btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 25px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(62, 29, 20, 0.16);
}

.btn.primary {
    color: var(--white);
    background: var(--primary);
}

.btn.light {
    color: var(--primary-dark);
    background: var(--white);
}

.btn.outline {
    color: var(--primary);
    border-color: var(--primary);
    background: transparent;
}

.btn.gold-outline {
    color: var(--gold-light);
    border-color: rgba(234, 215, 165, 0.75);
    background: transparent;
}

.btn.gold-outline:hover {
    color: var(--primary-dark);
    background: var(--gold-light);
}

.btn.full {
    width: 100%;
}

.btn.ghost {
    background: #f0ece8;
}

.btn.danger {
    color: #fff;
    background: var(--danger);
}

.section {
    position: relative;
    padding: 104px 0;
}

.muted-section {
    background: var(--cream);
}

.section-overline,
.heading-en,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.section-overline::before,
.eyebrow::before {
    width: 28px;
    height: 1px;
    background: currentColor;
    content: "";
}

.light-overline {
    color: var(--gold-light);
}

.ornament-heading {
    max-width: 760px;
    margin: 0 auto 54px;
    text-align: center;
}

.ornament-heading h2,
.section-copy h2,
.contact-cta h2,
.page-hero h1 {
    margin: 0.25em 0 0.2em;
    color: var(--primary-dark);
    font-family: "Noto Serif TC", serif;
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: 0.07em;
}

.ornament-heading h2,
.section-copy h2,
.contact-cta h2 {
    font-size: clamp(2rem, 4.5vw, 3.35rem);
}

.ornament-heading p,
.section-copy p {
    color: var(--muted);
}

.ornament-heading::after {
    display: block;
    width: 94px;
    height: 18px;
    margin: 24px auto 0;
    background:
        linear-gradient(var(--secondary), var(--secondary)) center / 56px 1px no-repeat,
        radial-gradient(circle, var(--secondary) 0 3px, transparent 4px) center / 18px 18px
            no-repeat;
    content: "";
}

.ornament-heading.aligned-left {
    max-width: none;
    margin: 0;
    text-align: left;
}

.ornament-heading.aligned-left::after {
    margin-left: 0;
}

.light-heading .heading-en,
.light-heading h2,
.light-heading p {
    color: #fff;
}

.light-heading::after {
    background:
        linear-gradient(var(--gold-light), var(--gold-light)) center / 56px 1px no-repeat,
        radial-gradient(circle, var(--gold-light) 0 3px, transparent 4px) center / 18px 18px
            no-repeat;
}

.title-divider {
    display: flex;
    max-width: 180px;
    align-items: center;
    gap: 12px;
    margin: 20px 0 28px;
    color: var(--secondary);
}

.title-divider span {
    flex: 1;
    height: 1px;
    background: var(--secondary);
}

.title-divider i {
    font-size: 0.55rem;
    font-style: normal;
}

.temple-text-link,
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 0.04em;
}

.temple-text-link span,
.text-link span {
    transition: transform 0.2s ease;
}

.temple-text-link:hover span,
.text-link:hover span {
    transform: translateX(5px);
}

.temple-text-link.compact {
    font-size: 0.88rem;
}

.center-action {
    margin-top: 46px;
    text-align: center;
}

.site-header {
    position: relative;
    z-index: 50;
    background: #fff;
    box-shadow: 0 5px 22px rgba(50, 24, 17, 0.07);
}

.temple-topbar {
    color: #f5ead8;
    background: var(--primary-deep);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.79rem;
}

.temple-topbar-inner {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.topbar-blessing {
    letter-spacing: 0.18em;
}

.topbar-contact {
    display: flex;
    align-items: center;
    gap: 22px;
}

.topbar-contact a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #e4d5c7;
}

.topbar-contact a:hover {
    color: #fff;
}

.brand-row {
    display: grid;
    min-height: 104px;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 30px;
}

.brand-decoration {
    display: flex;
    max-width: 220px;
    align-items: center;
    gap: 12px;
    color: var(--secondary);
}

.brand-decoration span {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary));
}

.brand-decoration span:last-child {
    background: linear-gradient(90deg, var(--secondary), transparent);
}

.brand-decoration i {
    width: 12px;
    height: 12px;
    border: 1px solid var(--secondary);
    transform: rotate(45deg);
}

.site-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.site-brand img {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.site-brand span {
    display: flex;
    flex-direction: column;
}

.site-brand strong {
    color: var(--primary);
    font-family: "Noto Serif TC", serif;
    font-size: 1.72rem;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: 0.14em;
}

.site-brand small {
    margin-top: 3px;
    color: #8f7568;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.brand-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.brand-action {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--primary-dark);
    background: var(--paper);
    font-size: 0.79rem;
    transition: 0.2s ease;
}

.brand-action span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: var(--primary);
    font-family: "Noto Serif TC", serif;
    font-weight: 800;
}

.brand-action.contact span {
    color: var(--primary-dark);
    background: var(--secondary);
}

.brand-action:hover {
    border-color: var(--secondary);
    transform: translateY(-2px);
}

.navigation-wrap {
    background: var(--primary);
    border-top: 4px solid var(--secondary);
}

.navigation-inner {
    position: relative;
    display: flex;
    min-height: 60px;
    align-items: stretch;
}

.main-nav {
    display: flex;
    flex: 1;
    align-items: stretch;
    justify-content: center;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: stretch;
}

.nav-item > a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    color: #fff;
    font-size: 0.91rem;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: 0.035em;
    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.nav-item > a::after {
    position: absolute;
    right: 50%;
    bottom: 0;
    left: 50%;
    height: 3px;
    background: var(--secondary);
    content: "";
    transition: 0.2s ease;
}

.nav-item:hover > a,
.nav-item:focus-within > a {
    color: var(--gold-light);
    background: rgba(0, 0, 0, 0.08);
}

.nav-item:hover > a::after,
.nav-item:focus-within > a::after {
    right: 14px;
    left: 14px;
}

.submenu-toggle {
    display: none;
}

.submenu {
    position: absolute;
    top: calc(100% + 1px);
    left: 50%;
    z-index: 12;
    display: grid;
    min-width: 210px;
    padding: 10px;
    border-top: 3px solid var(--secondary);
    border-radius: 0 0 12px 12px;
    background: #fff;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 10px);
    transition: 0.2s ease;
}

.nav-item:hover .submenu,
.nav-item:focus-within .submenu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.submenu a {
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.9rem;
}

.submenu a:last-child {
    border-bottom: 0;
}

.submenu a:hover {
    color: var(--primary);
    background: var(--cream);
}

.search-toggle {
    position: relative;
    width: 58px;
    flex: 0 0 58px;
    border: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.08);
}

.search-toggle span,
.search-toggle span::after {
    position: absolute;
    content: "";
}

.search-toggle span {
    top: 18px;
    left: 18px;
    width: 17px;
    height: 17px;
    border: 2px solid #fff;
    border-radius: 50%;
}

.search-toggle span::after {
    top: 13px;
    left: 13px;
    width: 9px;
    height: 2px;
    background: #fff;
    transform: rotate(45deg);
    transform-origin: left center;
}

.menu-toggle {
    position: relative;
    z-index: 60;
    display: none;
    width: 52px;
    padding: 8px;
    border: 0;
    background: transparent;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 6px 0;
    background: var(--primary-dark);
    transition: 0.2s ease;
}

.menu-toggle b {
    display: block;
    color: var(--primary-dark);
    font-size: 0.68rem;
    text-align: center;
}

.site-search {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.site-search form {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
}

.search-label {
    color: var(--primary);
    font-weight: 800;
}

.site-search input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: none;
}

.site-search input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(202, 163, 92, 0.14);
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 42;
    background: rgba(25, 10, 10, 0.56);
}

.hero {
    position: relative;
    height: min(76vh, 820px);
    min-height: 610px;
    overflow: hidden;
    background: var(--primary-dark);
}

.hero-slide {
    position: absolute;
    inset: 0;
    isolation: isolate;
    overflow: hidden;
    background: var(--primary-dark);
    opacity: 0;
    visibility: hidden;
    transform: scale(1.025);
    transition:
        opacity 0.9s ease,
        visibility 0.9s ease,
        transform 7s ease;
}

.hero-media-backdrop {
    position: absolute;
    z-index: 0;
    inset: -32px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: blur(20px) saturate(0.82);
    opacity: 0.58;
    transform: scale(1.08);
}

.hero-media-layer {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: grid;
    overflow: hidden;
    place-items: center;
}

.hero-media-layer img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.hero-shade {
    position: absolute;
    z-index: 2;
    inset: 0;
    background: linear-gradient(
            90deg,
            rgba(35, 7, 10, 0.82) 0%,
            rgba(35, 7, 10, 0.56) 40%,
            rgba(35, 7, 10, 0.14) 75%
        ),
        linear-gradient(0deg, rgba(35, 7, 10, 0.45), transparent 48%);
}

.hero-slide::after {
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(234, 215, 165, 0.32);
    pointer-events: none;
    content: "";
}

.hero-cloud {
    position: absolute;
    z-index: 3;
    width: 290px;
    height: 120px;
    border: 1px solid rgba(234, 215, 165, 0.28);
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-radius: 50%;
    opacity: 0.7;
}

.hero-cloud::before,
.hero-cloud::after {
    position: absolute;
    border: inherit;
    border-radius: inherit;
    content: "";
}

.hero-cloud-left {
    bottom: 110px;
    left: -100px;
    transform: rotate(8deg);
}

.hero-cloud-left::before {
    width: 200px;
    height: 76px;
    top: 46px;
    left: 100px;
}

.hero-cloud-right {
    top: 130px;
    right: -140px;
    transform: rotate(190deg);
}

.hero-cloud-right::after {
    width: 180px;
    height: 76px;
    top: 48px;
    left: 80px;
}

.hero-content {
    position: relative;
    z-index: 4;
    display: flex;
    height: 100%;
    max-width: 790px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding-bottom: 80px;
    color: #fff;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--gold-light);
    font-family: "Noto Serif TC", serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.4em;
}

.hero-kicker::before,
.hero-kicker::after {
    width: 36px;
    height: 1px;
    background: currentColor;
    content: "";
}

.hero h1 {
    margin: 0.18em 0 0.18em;
    font-family: "Noto Serif TC", serif;
    font-size: clamp(3rem, 7vw, 6.3rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 0.12em;
    text-shadow: 0 6px 30px rgba(0, 0, 0, 0.32);
}

.hero p {
    max-width: 690px;
    margin: 0 0 34px;
    color: #f8eee4;
    font-size: clamp(1rem, 1.7vw, 1.28rem);
    letter-spacing: 0.12em;
}

.temple-button {
    min-height: 52px;
    padding-inline: 29px;
    border-color: rgba(234, 215, 165, 0.62);
    color: #fff;
    background: rgba(122, 31, 43, 0.88);
    backdrop-filter: blur(5px);
}

.temple-button:hover {
    background: var(--primary);
}

.light-button {
    color: var(--primary-dark);
    background: var(--gold-light);
}

.hero-dots {
    position: absolute;
    z-index: 5;
    bottom: 40px;
    left: 50%;
    display: flex;
    gap: 11px;
    transform: translateX(-50%);
}

.hero-dots button {
    width: 28px;
    height: 3px;
    padding: 0;
    border: 0;
    background: rgba(255, 255, 255, 0.45);
    transition: 0.2s ease;
}

.hero-dots button.active {
    width: 48px;
    background: var(--secondary);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    width: 48px;
    height: 62px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.36);
    color: #fff;
    background: rgba(35, 7, 10, 0.18);
    font-size: 2.4rem;
    line-height: 1;
    transform: translateY(-50%);
    backdrop-filter: blur(4px);
}

.hero-arrow.previous {
    left: 22px;
}

.hero-arrow.next {
    right: 22px;
}

.portal-wrap {
    position: relative;
    z-index: 8;
    margin-top: -44px;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    border-top: 4px solid var(--secondary);
    background: #fff;
    box-shadow: var(--shadow);
}

.portal-item {
    position: relative;
    display: flex;
    min-height: 114px;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 18px 14px;
    border-right: 1px solid var(--line);
    transition: 0.22s ease;
}

.portal-item:last-child {
    border-right: 0;
}

.portal-item:hover {
    color: #fff;
    background: var(--primary);
    transform: translateY(-6px);
}

.portal-mark {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border: 1px solid var(--secondary);
    border-radius: 50%;
    color: var(--primary);
    background: var(--gold-pale);
    font-family: "Noto Serif TC", serif;
    font-size: 1.25rem;
    font-weight: 900;
    box-shadow: inset 0 0 0 4px #fff;
}

.portal-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.portal-copy strong {
    color: var(--primary-dark);
    font-family: "Noto Serif TC", serif;
    font-size: 1rem;
    font-weight: 800;
}

.portal-copy small {
    color: var(--muted);
    font-size: 0.72rem;
    white-space: nowrap;
}

.portal-item:hover .portal-copy strong,
.portal-item:hover .portal-copy small {
    color: #fff;
}

.news-stage {
    padding-top: 120px;
}

.news-event-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
    overflow: hidden;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.news-board,
.event-board {
    padding: 38px 42px;
}

.event-board {
    color: #fff;
    background:
        linear-gradient(rgba(58, 13, 20, 0.94), rgba(58, 13, 20, 0.94)),
        url("../img/cloud-pattern.svg") center / 560px auto;
}

.board-title {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.board-title span {
    color: var(--secondary);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.2em;
}

.board-title h3 {
    margin: 2px 0 0;
    color: var(--primary-dark);
    font-family: "Noto Serif TC", serif;
    font-size: 1.75rem;
    font-weight: 900;
}

.board-title > a {
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
}

.board-title > a b {
    display: inline-grid;
    width: 25px;
    height: 25px;
    margin-left: 6px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
}

.light-title h3,
.light-title > a {
    color: #fff;
}

.news-list {
    border-top: 1px solid var(--line);
}

.news-row {
    display: grid;
    min-height: 84px;
    grid-template-columns: 62px 1fr auto;
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    transition: 0.2s ease;
}

.news-row:hover {
    padding-left: 8px;
    background: linear-gradient(90deg, var(--cream), transparent);
}

.news-row time {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    line-height: 1.1;
}

.news-row time strong {
    font-family: "Noto Serif TC", serif;
    font-size: 1.55rem;
}

.news-row time span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.7rem;
}

.news-row-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.news-row-copy small {
    color: var(--secondary);
    font-size: 0.72rem;
}

.news-row-copy b {
    overflow: hidden;
    color: var(--ink);
    font-family: "Noto Serif TC", serif;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-row > i {
    color: var(--secondary);
    font-style: normal;
}

.event-feature-list {
    display: grid;
    gap: 13px;
}

.event-feature {
    display: grid;
    min-height: 76px;
    grid-template-columns: 58px 1fr;
    align-items: center;
    gap: 15px;
    padding: 12px 13px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    transition: 0.2s ease;
}

.event-feature:hover {
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.event-seal {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid rgba(234, 215, 165, 0.6);
    border-radius: 50%;
    color: var(--gold-light);
    font-family: "Noto Serif TC", serif;
    font-size: 0.76rem;
    font-weight: 800;
}

.event-feature > span:last-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.event-feature strong {
    overflow: hidden;
    font-family: "Noto Serif TC", serif;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.event-feature small {
    color: #d6c6bc;
    font-size: 0.76rem;
}

.empty-line {
    padding: 30px 0;
    color: var(--muted);
    text-align: center;
}

.light-empty {
    color: #e2d8d1;
}

.temple-about {
    overflow: hidden;
    background: #fff;
}

.about-pattern {
    position: absolute;
    top: -30px;
    right: -120px;
    width: 590px;
    height: 590px;
    border: 1px solid rgba(202, 163, 92, 0.17);
    border-radius: 50%;
}

.about-pattern::before,
.about-pattern::after {
    position: absolute;
    inset: 50px;
    border: 1px solid rgba(202, 163, 92, 0.13);
    border-radius: 50%;
    content: "";
}

.about-pattern::after {
    inset: 110px;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    align-items: center;
    gap: 90px;
}

.about-visual {
    position: relative;
    padding: 26px 0 0 26px;
}

.about-photo-frame {
    position: relative;
    overflow: hidden;
    background-color: var(--cream);
    box-shadow: var(--shadow);
}

.about-photo-frame::before {
    position: absolute;
    inset: 18px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.62);
    pointer-events: none;
    content: "";
}

.about-photo-frame::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(51, 13, 18, 0.28), transparent 50%);
    pointer-events: none;
    content: "";
}

.about-photo-frame img {
    display: block;
    width: 100%;
    aspect-ratio: 6 / 5;
    object-fit: contain;
    object-position: center;
}

.about-visual::before {
    position: absolute;
    top: 0;
    left: 0;
    width: calc(100% - 40px);
    height: calc(100% - 35px);
    border: 2px solid var(--secondary);
    content: "";
}

.about-stamp {
    position: absolute;
    right: -30px;
    bottom: 34px;
    z-index: 3;
    display: grid;
    width: 112px;
    height: 112px;
    place-items: center;
    border: 2px solid var(--gold-light);
    border-radius: 50%;
    color: #fff;
    background: var(--primary);
    box-shadow: 0 12px 28px rgba(59, 16, 21, 0.26);
    text-align: center;
}

.about-stamp::before {
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    content: "";
}

.about-stamp span {
    font-family: "Noto Serif TC", serif;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.12em;
}

.about-stamp small {
    position: absolute;
    bottom: 23px;
    font-size: 0.56rem;
    letter-spacing: 0.16em;
}

.section-copy {
    position: relative;
    z-index: 2;
}

.section-copy .lead {
    color: #51443d;
    font-size: 1.15rem;
    font-weight: 600;
}

.excerpt-prose {
    margin-bottom: 28px;
    color: var(--muted);
}

.cultural-stage {
    color: #fff;
    background:
        linear-gradient(rgba(40, 9, 13, 0.96), rgba(40, 9, 13, 0.96)),
        url("../img/cloud-pattern.svg") center / 720px auto;
}

.cultural-grid {
    display: grid;
    min-height: 610px;
    grid-template-columns: 1.25fr 0.75fr 0.75fr;
    grid-template-rows: repeat(2, minmax(260px, 1fr));
    gap: 15px;
}

.cultural-card {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    background: #180609;
}

.cultural-card.card-1 {
    grid-row: span 2;
}

.cultural-card.card-4 {
    grid-column: span 2;
}

.cultural-card.full-image-frame {
    background-color: #180609;
    background-image:
        linear-gradient(rgba(24, 6, 9, 0.58), rgba(24, 6, 9, 0.58)),
        var(--media-image);
}

.cultural-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0.88;
    transition: opacity 0.35s ease;
}

.cultural-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(25, 5, 8, 0.9), transparent 68%);
}

.cultural-card::after {
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(234, 215, 165, 0.36);
    pointer-events: none;
    content: "";
}

.cultural-content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    padding: 34px 34px 30px;
}

.cultural-content small {
    color: var(--secondary);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.cultural-content strong {
    margin: 2px 0 4px;
    font-family: "Noto Serif TC", serif;
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: 0.06em;
}

.cultural-content em {
    overflow: hidden;
    color: #e5d8cf;
    font-size: 0.82rem;
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cultural-card:hover img {
    opacity: 0.7;
}

.service-stage {
    background: radial-gradient(circle at 10% 10%, rgba(202, 163, 92, 0.12), transparent 23%),
        radial-gradient(circle at 90% 90%, rgba(122, 31, 43, 0.08), transparent 22%), var(--paper);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.temple-service-card {
    position: relative;
    display: flex;
    min-height: 300px;
    flex-direction: column;
    align-items: center;
    padding: 35px 30px 30px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
    text-align: center;
    transition: 0.28s ease;
}

.temple-service-card::before {
    position: absolute;
    inset: 9px;
    border: 1px solid rgba(202, 163, 92, 0.22);
    pointer-events: none;
    content: "";
}

.temple-service-card::after {
    position: absolute;
    top: -35px;
    right: -35px;
    width: 92px;
    height: 92px;
    border: 1px solid rgba(122, 31, 43, 0.12);
    border-radius: 50%;
    content: "";
}

.service-seal {
    display: grid;
    width: 72px;
    height: 72px;
    place-items: center;
    border: 1px solid var(--secondary);
    border-radius: 50%;
    color: var(--primary);
    background: var(--gold-pale);
    box-shadow: inset 0 0 0 5px #fff;
    font-family: "Noto Serif TC", serif;
    font-size: 1.8rem;
    font-weight: 900;
}

.service-index {
    position: absolute;
    top: 17px;
    left: 20px;
    color: #d9c8ae;
    font-family: "Noto Serif TC", serif;
    font-size: 0.82rem;
}

.temple-service-card h3 {
    margin: 20px 0 8px;
    color: var(--primary-dark);
    font-family: "Noto Serif TC", serif;
    font-size: 1.35rem;
    font-weight: 900;
}

.temple-service-card p {
    display: -webkit-box;
    margin: 0 0 22px;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.9rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.temple-service-card b {
    margin-top: auto;
    color: var(--primary);
    font-size: 0.82rem;
}

.temple-service-card:hover {
    color: #fff;
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-9px);
}

.temple-service-card:hover h3,
.temple-service-card:hover p,
.temple-service-card:hover b {
    color: #fff;
}

.temple-service-card:hover .service-seal {
    color: var(--primary-dark);
    background: var(--gold-light);
}

.inquiry-banner {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--primary-dark);
}

.inquiry-banner-backdrop {
    position: absolute;
    z-index: 0;
    inset: -24px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    filter: blur(16px) saturate(0.75);
    opacity: 0.48;
    transform: scale(1.08);
}

.inquiry-banner-media {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: grid;
    overflow: hidden;
    place-items: center;
}

.inquiry-banner-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0.38;
}

.inquiry-banner-shade {
    position: absolute;
    z-index: 2;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(42, 8, 12, 0.96),
        rgba(79, 16, 25, 0.82),
        rgba(42, 8, 12, 0.72)
    );
}

.inquiry-banner::after {
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(234, 215, 165, 0.38);
    pointer-events: none;
    content: "";
}

.inquiry-banner-content {
    position: relative;
    z-index: 3;
    display: grid;
    min-height: 290px;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 34px;
    color: #fff;
}

.inquiry-round-mark {
    display: grid;
    width: 100px;
    height: 100px;
    place-items: center;
    border: 1px solid var(--gold-light);
    border-radius: 50%;
    color: var(--gold-light);
    font-family: "Noto Serif TC", serif;
    font-size: 2.35rem;
    font-weight: 900;
    box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.05);
}

.inquiry-banner h2 {
    margin: 0.15em 0;
    font-family: "Noto Serif TC", serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.35;
    letter-spacing: 0.06em;
}

.inquiry-banner p {
    max-width: 720px;
    margin: 0;
    color: #eadfd8;
}

.publication-stage {
    background: #fff;
}

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

.card-grid {
    display: grid;
    gap: 24px;
}

.card-grid.three {
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.content-card {
    overflow: hidden;
    border: 1px solid var(--line);
    background: #fff;
    transition: 0.25s ease;
}

.content-card:hover {
    border-color: rgba(202, 163, 92, 0.8);
    box-shadow: var(--shadow-sm);
    transform: translateY(-6px);
}

.card-image {
    display: block;
    overflow: hidden;
    background-color: var(--cream);
}

.card-image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: contain;
    object-position: center;
    transition: opacity 0.35s ease;
}

.content-card:hover .card-image img {
    opacity: 0.93;
}

.card-body {
    position: relative;
    padding: 27px;
}

.card-meta {
    color: var(--secondary);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.card-body h2,
.card-body h3 {
    margin: 8px 0;
    color: var(--primary-dark);
    font-family: "Noto Serif TC", serif;
    font-size: 1.27rem;
    font-weight: 900;
    line-height: 1.5;
}

.card-body p {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.temple-contact-cta {
    padding: 66px 0;
    color: #fff;
    background:
        linear-gradient(110deg, rgba(83, 16, 24, 0.98), rgba(43, 8, 12, 0.98)),
        url("../img/cloud-pattern.svg") center / 680px auto;
}

.temple-contact-cta .container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 28px;
}

.temple-contact-cta h2 {
    margin: 0.12em 0;
    color: #fff;
}

.temple-contact-cta p {
    margin: 0;
    color: #eadbd4;
}

.cta-seal {
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    border: 1px solid var(--gold-light);
    color: var(--gold-light);
    font-family: "Noto Serif TC", serif;
    font-size: 1.6rem;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 86px 0 80px;
    color: #fff;
    background:
        linear-gradient(110deg, rgba(45, 8, 12, 0.96), rgba(109, 27, 39, 0.92)),
        url("../img/cloud-pattern.svg") center / 660px auto;
}

.page-hero::before {
    position: absolute;
    top: -160px;
    right: -100px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(234, 215, 165, 0.2);
    border-radius: 50%;
    content: "";
}

.page-hero::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 5px;
    background: var(--secondary);
    content: "";
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    max-width: 1000px;
    color: #fff;
    font-size: clamp(2.1rem, 5vw, 4.2rem);
}

.page-hero p {
    max-width: 760px;
    color: #eadbd4;
}

.page-hero .eyebrow {
    color: var(--gold-light);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    color: #decfc8;
    font-size: 0.82rem;
}

.breadcrumb a:hover {
    color: var(--gold-light);
}

.breadcrumb b {
    color: #fff;
}

.list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 34px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    background: #fff;
}

.list-toolbar p {
    margin: 0;
    color: var(--muted);
}

.list-toolbar form {
    display: flex;
}

.list-toolbar input {
    min-width: 260px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 8px 0 0 8px;
    outline: none;
}

.list-toolbar input:focus {
    border-color: var(--secondary);
}

.list-toolbar button {
    padding: 0 18px;
    border: 0;
    border-radius: 0 8px 8px 0;
    color: #fff;
    background: var(--primary);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 52px;
}

.pagination a {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
}

.pagination a.active,
.pagination a:hover {
    border-color: var(--primary);
    color: #fff;
    background: var(--primary);
}

.empty-state {
    padding: 72px 20px;
    border: 1px solid var(--line);
    background: #fff;
    text-align: center;
}

.empty-state h2 {
    color: var(--primary-dark);
    font-family: "Noto Serif TC", serif;
}

.not-found strong {
    color: #dec7a0;
    font-family: "Noto Serif TC", serif;
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: start;
    gap: 48px;
}

.article-panel {
    min-width: 0;
    padding: 40px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.article-panel.standalone {
    max-width: 980px;
    margin: 0 auto;
}

.article-cover-frame {
    width: 100%;
    margin: 0 0 30px;
    padding: clamp(8px, 1.2vw, 14px);
    border: 1px solid var(--line);
    background-color: var(--cream);
    background-image:
        linear-gradient(rgba(249, 244, 235, 0.9), rgba(249, 244, 235, 0.9)),
        var(--media-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.article-cover {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    margin: 0 auto;
    object-fit: contain;
    object-position: center;
}

.article-meta {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    padding-bottom: 19px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.84rem;
}

.article-lead {
    margin: 26px 0;
    padding: 22px 24px;
    border-left: 4px solid var(--secondary);
    color: #4a3b35;
    background: var(--cream);
    font-size: 1.14rem;
    font-weight: 600;
}

.prose {
    color: #493f3a;
    font-size: 1.02rem;
}

.prose h2,
.prose h3,
.prose h4 {
    margin-top: 1.8em;
    color: var(--primary-dark);
    font-family: "Noto Serif TC", serif;
    font-weight: 900;
}

.prose a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose img {
    display: block;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin: 24px auto;
    object-fit: contain !important;
    object-position: center !important;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
}

.prose td,
.prose th {
    padding: 11px;
    border: 1px solid var(--line);
}

.prose th {
    color: var(--primary-dark);
    background: var(--cream);
}

.detail-aside {
    position: relative;
}

.info-box {
    position: sticky;
    top: 20px;
    margin-bottom: 20px;
    padding: 28px;
    border-top: 4px solid var(--secondary);
    background: var(--primary-dark);
    color: #f2e6df;
    box-shadow: var(--shadow-sm);
}

.info-box h2 {
    margin-top: 0;
    color: #fff;
    font-family: "Noto Serif TC", serif;
    font-size: 1.25rem;
}

.info-box .text-link {
    color: var(--gold-light);
}

.detail-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 40px;
}

.detail-gallery figure {
    margin: 0;
}

.detail-gallery button {
    width: 100%;
    padding: 0;
    border: 0;
    background-color: transparent;
    cursor: zoom-in;
}

.gallery-image-frame {
    display: grid;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    place-items: center;
}

.detail-gallery img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.detail-gallery figcaption {
    padding-top: 7px;
    color: var(--muted);
    font-size: 0.82rem;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    padding: 50px;
    place-items: center;
    background: rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.2s ease,
        visibility 0.2s ease;
}

.lightbox.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lightbox img {
    max-width: 95vw;
    max-height: 90vh;
}

.lightbox-close {
    position: absolute;
    top: 12px;
    right: 20px;
    border: 0;
    color: #fff;
    background: none;
    font-size: 3rem;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.88fr);
    gap: 46px;
}

.contact-panel {
    padding: 38px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.contact-panel h2 {
    margin: 0.25em 0;
    color: var(--primary-dark);
    font-family: "Noto Serif TC", serif;
    font-size: 2.2rem;
    font-weight: 900;
}

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

.form-grid h2,
.span-2 {
    grid-column: 1 / -1;
}

.form-grid label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: #4b403a;
    font-weight: 700;
}

.form-grid label span {
    color: var(--danger);
}

.form-grid input,
.form-grid textarea,
.form-grid select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    outline: none;
}

.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(202, 163, 92, 0.14);
}

.honeypot {
    position: absolute !important;
    left: -10000px !important;
}

.contact-info-card {
    overflow: hidden;
    color: #fff;
    background: var(--primary-dark);
    box-shadow: var(--shadow-sm);
}

.contact-image-frame {
    display: grid;
    width: 100%;
    height: 280px;
    overflow: hidden;
    place-items: center;
}

.contact-image-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0.9;
}

.contact-info-content {
    padding: 31px;
}

.contact-info-card h2 {
    color: #fff;
    font-family: "Noto Serif TC", serif;
    font-size: 1.72rem;
}

.contact-info-card dl {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 12px;
}

.contact-info-card dt {
    color: var(--gold-light);
}

.contact-info-card dd {
    margin: 0;
}

.contact-info-card .btn.outline {
    color: var(--gold-light);
    border-color: var(--gold-light);
}

.big-search {
    display: flex;
    max-width: 780px;
    gap: 10px;
    margin: 0 auto 44px;
}

.big-search input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: none;
}

.result-count {
    color: var(--muted);
}

.search-results {
    border-top: 1px solid var(--line);
}

.search-results article {
    padding: 27px 0;
    border-bottom: 1px solid var(--line);
}

.search-results span {
    color: var(--secondary);
    font-size: 0.78rem;
}

.search-results h2 {
    margin: 5px 0;
    color: var(--primary-dark);
    font-family: "Noto Serif TC", serif;
    font-size: 1.35rem;
}

.search-results p {
    margin: 0;
    color: var(--muted);
}

.inquiry-section {
    min-height: 620px;
    background: radial-gradient(circle at 90% 10%, rgba(202, 163, 92, 0.13), transparent 25%),
        var(--cream);
}

.inquiry-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    align-items: start;
    gap: 30px;
}

.inquiry-card,
.inquiry-side {
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.inquiry-card {
    padding: 40px;
    border-top: 5px solid var(--secondary);
}

.inquiry-card .section-heading {
    margin-bottom: 28px;
}

.inquiry-card .section-heading h2 {
    margin: 0.22em 0;
    color: var(--primary-dark);
    font-family: "Noto Serif TC", serif;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.inquiry-side {
    position: sticky;
    top: 25px;
    padding: 32px;
    color: #f4e9e2;
    background: var(--primary-dark);
}

.inquiry-side h2 {
    margin-top: 0;
    color: var(--gold-light);
    font-family: "Noto Serif TC", serif;
    font-size: 1.45rem;
}

.inquiry-side ol {
    margin-bottom: 28px;
    padding-left: 1.4em;
    color: #ddcec6;
}

.inquiry-side li + li {
    margin-top: 10px;
}

.inquiry-side .btn.outline {
    color: var(--gold-light);
    border-color: var(--gold-light);
}

.privacy-note {
    margin-top: 24px;
    padding: 16px 18px;
    border-left: 4px solid var(--secondary);
    background: var(--cream);
}

.privacy-note strong {
    color: var(--primary);
}

.privacy-note p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.inquiry-results {
    margin-top: 42px;
    scroll-margin-top: 110px;
}

.inquiry-result-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.inquiry-result-head h2 {
    margin: 0;
    color: var(--primary-dark);
    font-family: "Noto Serif TC", serif;
    font-size: 1.8rem;
    font-weight: 900;
}

.inquiry-result-head span {
    color: var(--muted);
}

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

.inquiry-result-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--secondary);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.inquiry-result-card > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.inquiry-result-card strong {
    color: var(--primary-dark);
    font-family: "Noto Serif TC", serif;
    font-size: 1.25rem;
}

.result-class {
    display: inline-flex;
    padding: 4px 11px;
    border-radius: 999px;
    color: #fff;
    background: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
}

.inquiry-result-card dl {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 9px 15px;
    margin: 0;
}

.inquiry-result-card dt {
    color: var(--muted);
}

.inquiry-result-card dd {
    margin: 0;
    font-weight: 600;
    word-break: break-word;
}

.temple-footer {
    position: relative;
    overflow: hidden;
    color: #d9cbc2;
    background: #21080b;
}

.footer-cloud-pattern {
    position: absolute;
    inset: 0;
    background: url("../img/cloud-pattern.svg") center / 740px auto;
    opacity: 0.13;
    pointer-events: none;
}

.footer-main {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr 1fr 0.7fr;
    gap: 64px;
    padding-top: 78px;
    padding-bottom: 62px;
}

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

.footer-brand img {
    width: 66px;
    height: 66px;
}

.footer-brand span {
    display: flex;
    flex-direction: column;
}

.footer-brand strong {
    color: #fff;
    font-family: "Noto Serif TC", serif;
    font-size: 1.45rem;
    letter-spacing: 0.12em;
}

.footer-brand small {
    color: var(--gold-light);
    font-size: 0.62rem;
    letter-spacing: 0.16em;
}

.footer-about > p {
    max-width: 430px;
    color: #cbbdb5;
}

.footer-social {
    display: flex;
    gap: 9px;
    margin-top: 22px;
}

.footer-social a {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(234, 215, 165, 0.42);
    border-radius: 50%;
    color: var(--gold-light);
}

.footer-social a:hover {
    color: var(--primary-dark);
    background: var(--gold-light);
}

.temple-footer h2 {
    margin: 0 0 22px;
    color: var(--gold-light);
    font-family: "Noto Serif TC", serif;
    font-size: 1.05rem;
    letter-spacing: 0.12em;
}

.footer-contact dl {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 11px 14px;
    margin: 0;
}

.footer-contact dt {
    color: var(--gold-light);
}

.footer-contact dd {
    margin: 0;
}

.footer-map-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--gold-light);
    font-size: 0.85rem;
}

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

.footer-links a::before {
    margin-right: 8px;
    color: var(--secondary);
    content: "◆";
    font-size: 0.45rem;
    vertical-align: middle;
}

.footer-links a:hover {
    color: #fff;
}

.footer-blessing {
    position: relative;
    z-index: 2;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-blessing .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.footer-blessing span {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary));
}

.footer-blessing span:last-child {
    background: linear-gradient(90deg, var(--secondary), transparent);
}

.footer-blessing b {
    color: var(--gold-light);
    font-family: "Noto Serif TC", serif;
    font-size: 0.9rem;
    letter-spacing: 0.26em;
}

.copyright {
    position: relative;
    z-index: 2;
    padding: 20px 0;
    color: #9f8e85;
    font-size: 0.78rem;
    text-align: center;
}

.back-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 30;
    width: 48px;
    height: 48px;
    border: 1px solid var(--secondary);
    border-radius: 50%;
    color: #fff;
    background: var(--primary);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.2s ease;
}

.back-top.show {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.toast-root {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    max-width: min(390px, calc(100vw - 40px));
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: grid;
    grid-template-columns: 38px 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 13px 14px;
    border-left: 4px solid #4879b8;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateX(25px);
    transition: 0.24s ease;
}

.toast.show {
    opacity: 1;
    transform: none;
}

.toast.leaving {
    opacity: 0;
    transform: translateX(25px);
}

.toast.success {
    border-color: var(--success);
}

.toast.error {
    border-color: #c64f4f;
}

.toast.warning {
    border-color: #ce9435;
}

.toast-icon {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: #f0f4f8;
    font-weight: 800;
}

.toast button {
    border: 0;
    color: #777;
    background: none;
    font-size: 1.4rem;
}

.ajax-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: grid;
    padding: 20px;
    place-items: center;
    background: rgba(23, 8, 10, 0.68);
    opacity: 0;
    transition: 0.2s ease;
}

.ajax-modal-overlay.show {
    opacity: 1;
}

.ajax-modal {
    position: relative;
    width: min(440px, 100%);
    padding: 34px;
    border-top: 5px solid var(--secondary);
    background: #fff;
    text-align: center;
    transform: translateY(12px);
    transition: 0.2s ease;
}

.ajax-modal-overlay.show .ajax-modal {
    transform: none;
}

.ajax-modal-x {
    position: absolute;
    top: 10px;
    right: 14px;
    border: 0;
    background: none;
    font-size: 1.7rem;
}

.ajax-modal-symbol {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto;
    place-items: center;
    border-radius: 50%;
    color: var(--primary);
    background: var(--gold-pale);
    font-size: 1.6rem;
    font-weight: 800;
}

.ajax-modal-symbol.danger {
    color: #b84040;
    background: #fbeaea;
}

.ajax-modal h2 {
    margin: 0.7em 0 0.2em;
    color: var(--primary-dark);
    font-family: "Noto Serif TC", serif;
}

.ajax-modal p {
    color: var(--muted);
}

.ajax-modal-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 25px;
}

.is-loading {
    cursor: wait !important;
    opacity: 0.72;
}

@media (max-width: 1180px) {
    .brand-decoration {
        max-width: 150px;
    }
    .nav-item > a {
        padding-inline: 10px;
        font-size: 0.84rem;
    }
    .portal-item {
        gap: 8px;
        padding-inline: 9px;
    }
    .portal-copy small {
        display: none;
    }
    .split-layout {
        gap: 60px;
    }
}

@media (max-width: 920px) {
    .temple-topbar {
        display: none;
    }
    .brand-row {
        min-height: 78px;
        grid-template-columns: 1fr auto;
        gap: 16px;
    }
    .brand-decoration,
    .brand-actions {
        display: none;
    }
    .site-brand {
        justify-content: flex-start;
    }
    .site-brand img {
        width: 52px;
        height: 52px;
    }
    .site-brand strong {
        font-size: 1.3rem;
    }
    .site-brand small {
        font-size: 0.56rem;
    }
    .menu-toggle {
        display: block;
        z-index: 3;
    }
    .menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    .navigation-wrap {
        border-top-width: 3px;
    }
    .navigation-inner {
        min-height: 0;
    }
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        z-index: 45;
        display: block;
        width: min(390px, 88vw);
        padding: 92px 24px 30px;
        overflow-y: auto;
        background: #fff;
        box-shadow: -15px 0 40px rgba(30, 7, 10, 0.22);
        transform: translateX(105%);
        transition: transform 0.3s ease;
    }
    .main-nav.open {
        transform: none;
    }
    .nav-item {
        display: grid;
        grid-template-columns: 1fr auto;
        border-bottom: 1px solid var(--line);
    }
    .nav-item > a {
        min-height: 53px;
        justify-content: flex-start;
        padding: 12px 8px;
        color: var(--ink);
        font-size: 1rem;
    }
    .nav-item > a::after {
        display: none;
    }
    .nav-item:hover > a,
    .nav-item:focus-within > a {
        color: var(--primary);
        background: transparent;
    }
    .submenu-toggle {
        display: grid;
        width: 46px;
        place-items: center;
        border: 0;
        color: var(--primary);
        background: transparent;
        font-size: 1.2rem;
    }
    .submenu {
        position: static;
        display: none;
        min-width: 0;
        grid-column: 1 / -1;
        padding: 0 0 10px 16px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .nav-item.submenu-open .submenu {
        display: grid;
    }
    .nav-item.submenu-open .submenu-toggle {
        transform: rotate(180deg);
    }
    .search-toggle {
        position: absolute;
        top: -62px;
        right: 74px;
        width: 44px;
        height: 44px;
        border: 1px solid var(--line);
        border-radius: 50%;
        background: var(--cream);
    }
    .search-toggle span {
        top: 11px;
        left: 11px;
        border-color: var(--primary);
    }
    .search-toggle span::after {
        background: var(--primary);
    }
    .site-search form {
        grid-template-columns: 1fr auto;
    }
    .search-label {
        grid-column: 1 / -1;
    }
    .hero {
        height: 68vh;
        min-height: 560px;
    }
    .hero-content {
        padding-bottom: 70px;
    }
    .hero-arrow {
        display: none;
    }
    .portal-wrap {
        margin-top: -26px;
    }
    .portal-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .portal-item:nth-child(3) {
        border-right: 0;
    }
    .portal-item:nth-child(-n + 3) {
        border-bottom: 1px solid var(--line);
    }
    .news-event-layout,
    .split-layout,
    .contact-layout,
    .detail-layout,
    .inquiry-layout {
        grid-template-columns: 1fr;
    }
    .detail-aside {
        order: -1;
    }
    .info-box,
    .inquiry-side {
        position: static;
    }
    .cultural-grid {
        min-height: 0;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 300px);
    }
    .cultural-card.card-1,
    .cultural-card.card-4 {
        grid-row: auto;
        grid-column: auto;
    }
    .service-grid,
    .card-grid.three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .inquiry-banner-content {
        grid-template-columns: auto 1fr;
        padding: 45px 0;
    }
    .inquiry-banner-content .btn {
        grid-column: 2;
        justify-self: start;
    }
    .temple-contact-cta .container {
        grid-template-columns: auto 1fr;
    }
    .temple-contact-cta .btn {
        grid-column: 2;
        justify-self: start;
    }
    .footer-main {
        grid-template-columns: 1fr 1fr;
    }
    .footer-about {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }
    .section {
        padding: 72px 0;
    }
    .site-brand span small {
        display: none;
    }
    .site-brand strong {
        font-size: 1.16rem;
    }
    .site-search form {
        grid-template-columns: 1fr;
    }
    .site-search .btn {
        width: 100%;
    }
    .hero {
        height: 69vh;
        min-height: 520px;
    }
    .hero-slide::after {
        inset: 8px;
    }
    .hero-content {
        padding-bottom: 90px;
    }
    .hero-kicker {
        font-size: 0.78rem;
        letter-spacing: 0.22em;
    }
    .hero-kicker::before,
    .hero-kicker::after {
        width: 22px;
    }
    .hero h1 {
        font-size: clamp(2.5rem, 14vw, 4.2rem);
        letter-spacing: 0.08em;
    }
    .hero p {
        font-size: 0.96rem;
        letter-spacing: 0.06em;
    }
    .portal-wrap {
        margin-top: 0;
    }
    .portal-grid {
        width: 100%;
        grid-template-columns: repeat(2, 1fr);
        box-shadow: none;
    }
    .portal-item {
        min-height: 96px;
        border-bottom: 1px solid var(--line);
    }
    .portal-item:nth-child(odd) {
        border-right: 1px solid var(--line);
    }
    .portal-item:nth-child(even) {
        border-right: 0;
    }
    .portal-mark {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }
    .news-stage {
        padding-top: 78px;
    }
    .news-board,
    .event-board {
        padding: 29px 22px;
    }
    .board-title {
        align-items: center;
    }
    .board-title h3 {
        font-size: 1.45rem;
    }
    .news-row {
        grid-template-columns: 52px 1fr;
        gap: 12px;
    }
    .news-row > i {
        display: none;
    }
    .about-visual {
        padding: 14px 0 0 14px;
    }
    .about-stamp {
        right: 15px;
        bottom: -28px;
        width: 90px;
        height: 90px;
    }
    .about-stamp small {
        display: none;
    }
    .section-copy {
        padding-top: 20px;
    }
    .cultural-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
    }
    .cultural-card {
        min-height: 300px;
    }
    .service-grid,
    .card-grid.three,
    .detail-gallery,
    .inquiry-result-grid,
    .footer-main {
        grid-template-columns: 1fr;
    }
    .temple-service-card {
        min-height: 270px;
    }
    .inquiry-banner-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    .inquiry-round-mark {
        width: 82px;
        height: 82px;
        margin: 0 auto;
    }
    .inquiry-banner-content .btn {
        grid-column: auto;
        justify-self: center;
    }
    .section-head-row,
    .list-toolbar,
    .temple-contact-cta .container {
        align-items: flex-start;
        flex-direction: column;
    }
    .section-head-row {
        display: flex;
    }
    .temple-contact-cta .container {
        display: flex;
    }
    .temple-contact-cta .btn {
        grid-column: auto;
    }
    .cta-seal {
        display: none;
    }
    .page-hero {
        padding: 58px 0;
    }
    .list-toolbar form {
        width: 100%;
    }
    .list-toolbar input {
        min-width: 0;
        flex: 1;
    }
    .article-panel,
    .contact-panel,
    .inquiry-card,
    .inquiry-side {
        padding: 25px 20px;
    }
    .article-meta {
        flex-direction: column;
        gap: 5px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .span-2,
    .form-grid h2 {
        grid-column: auto;
    }
    .big-search {
        flex-direction: column;
    }
    .footer-main {
        gap: 40px;
        padding-top: 60px;
    }
    .footer-about {
        grid-column: auto;
    }
    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
    .footer-blessing span {
        width: 34px;
    }
    .footer-blessing b {
        font-size: 0.76rem;
        letter-spacing: 0.14em;
    }
    .toast-root {
        top: 14px;
        right: 14px;
    }
    .ajax-modal {
        padding: 28px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
html[data-ajax-state="loading"] body {
    cursor: progress;
}

.swal2-container {
    z-index: 10020;
}

.swal2-popup {
    font-family:
        "Noto Sans TC",
        system-ui,
        -apple-system,
        sans-serif;
}

.swal2-title {
    font-family: "Noto Serif TC", "Noto Sans TC", serif;
}

.swal2-confirm,
.swal2-cancel {
    min-height: 42px;
    border-radius: 10px;
    font-weight: 700;
}

.video-card .card-image,
.detail-video-poster {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #17130f;
    cursor: pointer;
    text-align: left;
}

.video-card .card-image::after,
.detail-video-poster::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 35%, rgba(0, 0, 0, 0.62) 100%);
    content: "";
    transition: background-color 0.25s ease;
}

.video-card .card-image:hover::after,
.video-card .card-image:focus-visible::after,
.detail-video-poster:hover::after,
.detail-video-poster:focus-visible::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 20%, rgba(0, 0, 0, 0.72) 100%);
}

.video-card .card-image.full-image-frame,
.detail-video-poster.full-image-frame {
    background-color: #17130f;
    background-image:
        linear-gradient(rgba(23, 19, 15, 0.58), rgba(23, 19, 15, 0.58)),
        var(--media-image);
}

.video-card .card-image img,
.detail-video-poster img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: opacity 0.35s ease;
}

.video-card .card-image:hover img,
.video-card .card-image:focus-visible img,
.detail-video-poster:hover img,
.detail-video-poster:focus-visible img {
    opacity: 0.9;
}

.video-play-mark {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    display: grid;
    width: 68px;
    height: 48px;
    border-radius: 14px;
    background: #e62117;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
    place-items: center;
    transform: translate(-50%, -50%);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.video-play-mark span {
    display: block;
    width: 0;
    height: 0;
    margin-left: 4px;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 15px solid #ffffff;
}

.video-play-mark.large {
    width: 88px;
    height: 62px;
    border-radius: 18px;
}

.video-play-mark.large span {
    border-top-width: 12px;
    border-bottom-width: 12px;
    border-left-width: 20px;
}

.video-card .card-image:hover .video-play-mark,
.video-card .card-image:focus-visible .video-play-mark,
.detail-video-poster:hover .video-play-mark,
.detail-video-poster:focus-visible .video-play-mark {
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.42);
    transform: translate(-50%, -50%) scale(1.08);
}

.video-preview-label {
    position: absolute;
    z-index: 2;
    right: 16px;
    bottom: 14px;
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, 0.44);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.58);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    backdrop-filter: blur(6px);
}

.video-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin-top: auto;
}

.video-card-actions button {
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.external-video-link {
    color: var(--primary);
}

.detail-video-panel {
    margin-bottom: 28px;
}

.detail-video-poster {
    aspect-ratio: 16 / 9;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(51, 28, 18, 0.18);
}

.detail-video-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.video-modal-open {
    overflow: hidden;
}

.video-modal {
    position: fixed;
    z-index: 5000;
    inset: 0;
    display: grid;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    place-items: center;
    transition: opacity 0.22s ease;
}

.video-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(16, 11, 8, 0.84);
    cursor: pointer;
    backdrop-filter: blur(7px);
}

.video-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(1040px, 100%);
    overflow: hidden;
    border: 1px solid rgba(202, 163, 92, 0.48);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
    transform: translateY(24px) scale(0.98);
    transition: transform 0.22s ease;
}

.video-modal.show .video-modal-dialog {
    transform: translateY(0) scale(1);
}

.video-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 68px;
    padding: 14px 18px 14px 24px;
    border-bottom: 1px solid rgba(122, 31, 43, 0.12);
    background: linear-gradient(135deg, #fffdf8 0%, #f8efe2 100%);
}

.video-modal-header h2 {
    margin: 0;
    color: #3d251b;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.45;
}

.video-modal-close {
    display: grid;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid rgba(122, 31, 43, 0.22);
    border-radius: 50%;
    background: #ffffff;
    color: var(--primary);
    font-size: 1.9rem;
    line-height: 1;
    cursor: pointer;
    place-items: center;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.video-modal-close:hover,
.video-modal-close:focus-visible {
    background: var(--primary);
    color: #ffffff;
    transform: rotate(5deg);
}

.video-frame-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.video-frame-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 24px;
    background: #ffffff;
}

.video-modal-footer p {
    margin: 0;
    color: #77655c;
    font-size: 0.92rem;
}

@media (max-width: 720px) {
    .video-play-mark {
        width: 58px;
        height: 42px;
        border-radius: 12px;
    }

    .video-play-mark.large {
        width: 68px;
        height: 48px;
        border-radius: 14px;
    }

    .video-preview-label {
        right: 10px;
        bottom: 10px;
        min-height: 26px;
        padding: 4px 9px;
        font-size: 0.74rem;
    }

    .detail-video-actions .btn {
        width: 100%;
    }

    .video-modal {
        align-items: center;
        padding: 10px;
    }

    .video-modal-dialog {
        border-radius: 14px;
    }

    .video-modal-header {
        min-height: 60px;
        padding: 10px 10px 10px 16px;
    }

    .video-modal-close {
        width: 38px;
        height: 38px;
    }

    .video-modal-footer {
        align-items: stretch;
        flex-direction: column;
        padding: 14px 16px 16px;
    }

    .video-modal-footer .btn {
        width: 100%;
    }
}

body.welcome-splash-open {
    overflow: hidden;
}

.welcome-splash {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: grid;
    overflow: hidden;
    background: #f8d5a4;
    opacity: 1;
    visibility: visible;
    place-items: center;
    transition:
        opacity 0.68s ease,
        visibility 0.68s ease;
}

.welcome-splash-background {
    position: absolute;
    inset: -30px;
    overflow: hidden;
    background: linear-gradient(rgba(255, 242, 222, 0.25), rgba(255, 233, 197, 0.25));
    opacity: 0.82;
}

.welcome-splash-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(20px) saturate(0.9);
    transform: scale(1.12);
}

.welcome-splash-picture {
    position: relative;
    z-index: 2;
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    opacity: 0;
    transform: scale(1.035);
    transition:
        opacity 0.75s ease,
        transform 2.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.welcome-splash-picture::after {
    position: absolute;
    inset: 20px;
    border: 1px solid rgba(126, 72, 21, 0.2);
    pointer-events: none;
    content: "";
}

.welcome-splash-picture img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 12px 34px rgba(133, 72, 20, 0.18));
}

.welcome-splash.is-ready .welcome-splash-picture {
    opacity: 1;
    transform: scale(1);
}

.welcome-splash.is-leaving {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.welcome-splash-progress {
    position: absolute;
    right: 7vw;
    bottom: 28px;
    left: 7vw;
    z-index: 4;
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(122, 31, 43, 0.14);
}

.welcome-splash-progress span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    transform: scaleX(0);
    transform-origin: left center;
}

.welcome-splash.is-ready .welcome-splash-progress span {
    animation: welcome-progress var(--welcome-duration, 3s) linear forwards;
}

.welcome-splash-skip {
    position: absolute;
    top: max(20px, env(safe-area-inset-top));
    right: max(20px, env(safe-area-inset-right));
    z-index: 5;
    min-width: 70px;
    min-height: 38px;
    padding: 8px 18px;
    border: 1px solid rgba(122, 31, 43, 0.28);
    border-radius: 999px;
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.74);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.welcome-splash-skip:hover,
.welcome-splash-skip:focus-visible {
    color: #ffffff;
    background: var(--primary);
    transform: translateY(-2px);
}

@keyframes welcome-progress {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

.brand-intro {
    display: flex;
    max-width: 240px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
    padding-left: 22px;
    border-left: 2px solid var(--secondary);
}

.brand-intro span {
    color: var(--secondary);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.25em;
}

.brand-intro strong {
    color: var(--primary-dark);
    font-family: "Noto Serif TC", serif;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.55;
    letter-spacing: 0.12em;
}

[data-reveal] {
    --reveal-delay: 0ms;
    opacity: 0;
    transition:
        opacity 0.72s ease var(--reveal-delay),
        transform 0.72s cubic-bezier(0.2, 0.72, 0.2, 1) var(--reveal-delay);
    will-change: opacity, transform;
}

[data-reveal="up"] {
    transform: translateY(34px);
}

[data-reveal="left"] {
    transform: translateX(-42px);
}

[data-reveal="right"] {
    transform: translateX(42px);
}

[data-reveal="scale"] {
    transform: scale(0.96);
}

[data-reveal].is-revealed {
    opacity: 1;
    transform: none;
}

.hero-slide .hero-kicker,
.hero-slide .hero-content h1,
.hero-slide .hero-content p,
.hero-slide .hero-content .temple-button {
    opacity: 0;
    transform: translateY(34px);
}

.hero-slide.active .hero-kicker {
    animation: hero-copy-enter 0.68s ease 0.12s both;
}

.hero-slide.active .hero-content h1 {
    animation: hero-copy-enter 0.82s cubic-bezier(0.2, 0.7, 0.2, 1) 0.28s both;
}

.hero-slide.active .hero-content p {
    animation: hero-copy-enter 0.76s ease 0.46s both;
}

.hero-slide.active .hero-content .temple-button {
    animation: hero-copy-enter 0.7s ease 0.62s both;
}

@keyframes hero-copy-enter {
    from {
        opacity: 0;
        transform: translateY(34px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-hero .eyebrow,
.page-hero h1,
.page-hero .breadcrumb,
.page-hero p {
    animation: page-hero-enter 0.7s ease both;
}

.page-hero h1 {
    animation-delay: 0.1s;
}

.page-hero p {
    animation-delay: 0.18s;
}

.page-hero .breadcrumb {
    animation-delay: 0.24s;
}

@keyframes page-hero-enter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portal-item:hover .portal-mark,
.portal-item:focus-visible .portal-mark {
    animation: portal-mark-pulse 0.55s ease;
}

@keyframes portal-mark-pulse {
    0%,
    100% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.12) rotate(-3deg);
    }
}

.news-row > i,
.event-feature strong,
.temple-text-link span,
.text-link span {
    transition: transform 0.25s ease;
}

.news-row:hover > i,
.news-row:focus-visible > i,
.event-feature:hover strong,
.event-feature:focus-visible strong,
.temple-text-link:hover span,
.temple-text-link:focus-visible span,
.text-link:hover span,
.text-link:focus-visible span {
    transform: translateX(5px);
}

.cultural-content em {
    max-height: 0;
    opacity: 0;
    transform: translateY(12px);
    transition:
        max-height 0.35s ease,
        opacity 0.35s ease,
        transform 0.35s ease;
}

.cultural-card:hover .cultural-content em,
.cultural-card:focus-visible .cultural-content em {
    max-height: 70px;
    opacity: 1;
    transform: translateY(0);
}

.card-image-hover {
    position: relative;
}

.card-image-hover::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 38%, rgba(41, 8, 12, 0.72) 100%);
    opacity: 0;
    content: "";
    transition: opacity 0.32s ease;
}

.card-hover-reveal {
    position: absolute;
    right: 18px;
    bottom: 16px;
    left: 18px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #ffffff;
    font-family: "Noto Serif TC", serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.32s ease,
        transform 0.32s ease;
}

.card-hover-reveal i {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    font-style: normal;
}

.content-card:hover .card-image-hover::after,
.content-card:focus-within .card-image-hover::after {
    opacity: 1;
}

.content-card:hover .card-hover-reveal,
.content-card:focus-within .card-hover-reveal {
    opacity: 1;
    transform: translateY(0);
}

.card-date-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    display: flex;
    min-width: 62px;
    min-height: 62px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.68);
    color: #ffffff;
    background: rgba(91, 16, 27, 0.88);
    box-shadow: 0 8px 24px rgba(39, 8, 12, 0.24);
    backdrop-filter: blur(6px);
}

.card-date-badge strong {
    font-family: "Noto Serif TC", serif;
    font-size: 1.35rem;
    line-height: 1;
}

.card-date-badge small {
    margin-top: 5px;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
}

@media (min-width: 921px) {
    .content-list-grid {
        display: grid;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 24px;
    }

    .content-list-grid .content-card {
        grid-column: span 4;
    }

    .content-list-event .content-card:first-child,
    .content-list-publication .content-card:first-child {
        grid-column: span 8;
    }

    .content-list-event .content-card:first-child .card-image img,
    .content-list-publication .content-card:first-child .card-image img {
        aspect-ratio: 16 / 8.2;
    }

    .content-list-event .content-card:first-child .card-body h2,
    .content-list-publication .content-card:first-child .card-body h2 {
        font-size: 1.55rem;
    }

    .content-list-link .content-card:nth-child(1),
    .content-list-link .content-card:nth-child(2) {
        grid-column: span 6;
    }

    .content-list-link .content-card:nth-child(1) .card-image img,
    .content-list-link .content-card:nth-child(2) .card-image img {
        aspect-ratio: 16 / 8.5;
    }

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

    .publication-grid .publication-card {
        grid-column: span 3;
    }

    .publication-grid .publication-card:first-child {
        grid-column: span 6;
    }

    .publication-grid .publication-card:first-child .card-image img {
        aspect-ratio: 16 / 8.5;
    }
}

.detail-gallery figure,
.contact-info-card,
.about-photo-frame {
    overflow: hidden;
}

.detail-gallery figure img,
.contact-image-frame img,
.about-photo-frame img {
    transition: opacity 0.35s ease;
}

.detail-gallery figure:hover img,
.detail-gallery figure:focus-within img,
.contact-info-card:hover .contact-image-frame img,
.about-visual:hover .about-photo-frame img {
    opacity: 0.92;
}

.search-results article {
    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}

.search-results article:hover,
.search-results article:focus-within {
    border-color: rgba(202, 163, 92, 0.75);
    background: linear-gradient(90deg, #ffffff, var(--cream));
    transform: translateX(6px);
}

@media (max-width: 1080px) {
    .brand-intro {
        max-width: 190px;
        padding-left: 14px;
    }

    .brand-intro strong {
        font-size: 0.78rem;
        letter-spacing: 0.08em;
    }
}

@media (max-width: 920px) {
    .brand-intro {
        display: none;
    }

    .publication-grid .publication-card,
    .publication-grid .publication-card:first-child,
    .content-list-grid .content-card,
    .content-list-event .content-card:first-child,
    .content-list-publication .content-card:first-child,
    .content-list-link .content-card:nth-child(1),
    .content-list-link .content-card:nth-child(2) {
        grid-column: auto;
    }
}

@media (max-width: 720px) {
    .welcome-splash-picture::after {
        inset: 10px;
    }

    .welcome-splash-progress {
        right: 20px;
        bottom: max(18px, env(safe-area-inset-bottom));
        left: 20px;
    }

    .welcome-splash-skip {
        top: max(12px, env(safe-area-inset-top));
        right: max(12px, env(safe-area-inset-right));
        min-width: 62px;
        min-height: 34px;
        padding: 6px 14px;
    }

    [data-reveal="left"],
    [data-reveal="right"] {
        transform: translateY(28px);
    }

    .card-hover-reveal {
        right: 12px;
        bottom: 12px;
        left: 12px;
        font-size: 0.88rem;
    }

    .cultural-content em {
        max-height: 70px;
        opacity: 1;
        transform: none;
    }
}

@media (hover: none) {
    .card-image-hover::after {
        opacity: 0.28;
    }

    .card-hover-reveal {
        opacity: 1;
        transform: translateY(0);
    }

    .cultural-content em {
        max-height: 70px;
        opacity: 1;
        transform: none;
    }
}
