/* ═══════════════════════════════════════════════
   文德廟前台主題樣式 — 聖域科技，莊嚴典雅 v3
   ═══════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@400;500;700;900&display=swap');

:root {
    /* ── 深邃基底 ── */
    --temple-bg:       #060912;
    --temple-bg2:      #080d1a;
    --temple-bg3:      #0d1628;
    --temple-bg4:      #101d35;
    /* ── 帝王金 ── */
    --temple-gold:     #d4a847;
    --temple-gold2:    #f0c860;
    --temple-gold3:    #fde090;
    --temple-gold-dim: #a07830;
    /* ── 朱紅 ── */
    --temple-red:      #8b1a2a;
    --temple-red2:     #b02035;
    --temple-red3:     #cc2840;
    /* ── 科技青 (點綴用) ── */
    --temple-cyan:     #4a8fcc;
    --temple-cyan2:    #7ab0e0;
    /* ── 文字 ── */
    --temple-text:     #e8dfc8;
    --temple-text2:    #c8bfa8;
    --temple-muted:    #7880a0;
    /* ── 邊框 / 卡片 ── */
    --temple-border:   #1a2540;
    --temple-border2:  #243060;
    --temple-card:     #0d1525;
    --temple-card2:    #111c32;
    /* ── 陰影 / 發光 ── */
    --temple-shadow:   rgba(0,0,0,0.8);
    --temple-glow:     rgba(212,168,71,0.28);
    --temple-glow2:    rgba(212,168,71,0.07);
}

/* ── 動畫 Keyframes ── */
@keyframes shimmer-gold {
    0%   { background-position: -200% center; }
    100% { background-position:  200% center; }
}
@keyframes glow-pulse {
    0%, 100% { text-shadow: 0 0 22px rgba(212,168,71,0.45), 0 2px 8px rgba(0,0,0,0.6); }
    50%       { text-shadow: 0 0 55px rgba(212,168,71,0.75), 0 0 100px rgba(212,168,71,0.22), 0 2px 8px rgba(0,0,0,0.6); }
}
@keyframes pulse-glow {
    0%, 100% { opacity: 0.45; }
    50%       { opacity: 0.85; }
}
@keyframes float-in-up {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes lantern-sway {
    0%, 100% { transform: rotate(-4deg); }
    50%       { transform: rotate(4deg); }
}
@keyframes topbar-shine {
    0%   { background-position: -300% center; }
    100% { background-position:  300% center; }
}
@keyframes sacred-scan {
    0%   { transform: translateY(-100%); opacity: 0; }
    8%   { opacity: 0.6; }
    92%  { opacity: 0.6; }
    100% { transform: translateY(3000px); opacity: 0; }
}

/* ── 基底 ── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--temple-bg);
    background-image:
        radial-gradient(ellipse 80% 55% at 50% -8%, rgba(139,26,42,0.14) 0%, transparent 60%),
        radial-gradient(ellipse 50% 35% at 85% 85%, rgba(74,143,204,0.05) 0%, transparent 55%),
        url("data:image/svg+xml,%3Csvg width='44' height='44' viewBox='0 0 44 44' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='22' cy='22' r='1' fill='%23d4a847' fill-opacity='0.038'/%3E%3C/svg%3E");
    color: var(--temple-text);
    font-family: 'Noto Serif TC', 'Microsoft JhengHei', serif;
    min-height: 100vh;
}

/* ── 頂部裝飾條 ── */
.temple-topbar {
    background: linear-gradient(90deg,
        #130612 0%, #38091a 22%, #560f1e 50%, #38091a 78%, #130612 100%);
    text-align: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(212,168,71,0.45);
    box-shadow: 0 2px 22px rgba(70,8,18,0.55), 0 1px 0 rgba(212,168,71,0.08);
    position: relative;
    overflow: hidden;
}
.temple-topbar::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 10 L8 10 M92 10 L100 10 M20 4 L20 16 M80 4 L80 16 M50 2 L50 18' stroke='%23d4a847' stroke-opacity='0.07' stroke-width='1'/%3E%3C/svg%3E");
}
.temple-topbar::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg,
        transparent 0%, transparent 20%,
        rgba(240,200,96,0.12) 50%,
        transparent 80%, transparent 100%);
    background-size: 300% auto;
    animation: topbar-shine 5s linear infinite;
    pointer-events: none;
}
.topbar-inner {
    font-size: 15px; color: var(--temple-gold3);
    letter-spacing: 4px; position: relative; z-index: 1; font-weight: 500;
}
.topbar-icon {
    margin: 0 16px;
    display: inline-block;
    animation: lantern-sway 3.5s ease-in-out infinite;
    filter: drop-shadow(0 0 7px rgba(212,168,71,0.55));
}
.topbar-icon:last-child { animation-delay: -1.75s; }

/* ── 導覽列 ── */
.temple-nav {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(6,9,18,0.82);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border-bottom: 1px solid rgba(212,168,71,0.12);
    box-shadow: 0 4px 36px rgba(0,0,0,0.7);
}
.temple-nav::after {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg,
        transparent 0%, var(--temple-gold-dim) 18%,
        var(--temple-gold) 38%, var(--temple-gold2) 50%,
        var(--temple-gold) 62%, var(--temple-gold-dim) 82%, transparent 100%);
    opacity: 0.65;
    box-shadow: 0 0 12px rgba(212,168,71,0.35);
}
.temple-nav .container-fluid {
    display: flex; align-items: center; gap: 20px;
    padding: 0 28px; max-width: 1440px; margin: 0 auto;
    position: relative;
}
.brand-link { text-decoration: none; display: flex; align-items: center; padding: 7px 0; }

/* ── 文德廟 CSS Logo ── */
.wende-logo {
    display: flex; flex-direction: column; align-items: center; gap: 3px; user-select: none;
}
.wende-top { display: flex; gap: 6px; align-items: center; }
.wende-circle {
    background: radial-gradient(circle at 35% 30%, #e08040, #8c0010);
    color: #FFE066; font-size: 9px; font-weight: 900; width: 27px; height: 27px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid rgba(255,210,60,0.75);
    line-height: 1; letter-spacing: 0;
    box-shadow: 0 1px 6px rgba(0,0,0,0.7), 0 0 14px rgba(212,168,71,0.22),
                inset 0 1px 0 rgba(255,200,100,0.35);
}
.wende-scroll { display: flex; align-items: center; }
.wende-roller {
    width: 8px; height: 36px;
    background: linear-gradient(90deg, #3a2000 0%, #a06008 25%, #f0b030 50%, #a06008 75%, #3a2000 100%);
    border-radius: 3px; border: 1px solid #c89028; flex-shrink: 0;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.5), 0 0 10px rgba(212,168,71,0.18);
}
.wende-scroll-inner {
    background: linear-gradient(180deg, #560012 0%, #8c0018 35%, #780010 65%, #560012 100%);
    border-top: 2px solid #d4a847; border-bottom: 2px solid #d4a847;
    padding: 3px 12px; font-size: 23px; font-weight: 900; color: #FFE066;
    letter-spacing: 5px; line-height: 1.1;
    text-shadow: 0 1px 0 rgba(70,35,0,0.85), 0 2px 10px rgba(0,0,0,0.9),
                 0 0 24px rgba(255,200,60,0.28);
    font-family: 'Noto Serif TC', "Microsoft JhengHei", serif;
    box-shadow: inset 0 1px 12px rgba(0,0,0,0.45);
}
.wende-bottom { display: flex; gap: 5px; }
.wende-diamond {
    background: radial-gradient(circle at 40% 35%, #c00015, #680008);
    border: 1px solid rgba(212,168,71,0.75); width: 19px; height: 19px;
    display: flex; align-items: center; justify-content: center;
    transform: rotate(45deg);
    box-shadow: 0 1px 5px rgba(0,0,0,0.65), 0 0 10px rgba(212,168,71,0.12);
}
.wende-diamond span {
    transform: rotate(-45deg); color: #FFE066; font-size: 8px; font-weight: 900;
    display: block; line-height: 1;
    font-family: 'Noto Serif TC', "Microsoft JhengHei", serif;
}

/* ── 導覽連結 ── */
.nav-menu {
    list-style: none; display: flex; align-items: center;
    gap: 2px; margin: 0; padding: 0; flex: 1; justify-content: center;
}
.nav-link-t {
    display: block; padding: 20px 15px;
    color: var(--temple-text2); text-decoration: none;
    font-size: 17px; letter-spacing: 1.5px; font-weight: 500;
    position: relative; transition: color 0.2s;
}
.nav-link-t::after {
    content: '';
    position: absolute; bottom: 0; left: 50%; right: 50%; height: 2px;
    background: linear-gradient(90deg, var(--temple-gold-dim), var(--temple-gold2), var(--temple-gold-dim));
    transition: left 0.3s ease, right 0.3s ease;
    box-shadow: 0 0 10px rgba(212,168,71,0.65);
}
.nav-link-t:hover,
.nav-link-t.active { color: var(--temple-gold2); }
.nav-link-t:hover::after,
.nav-link-t.active::after { left: 6px; right: 6px; }

/* ── Dropdown ── */
.nav-dropdown { position: relative; }
.dropdown-menu-t {
    display: none; position: absolute; top: calc(100% + 6px); left: 0;
    background: rgba(6,9,22,0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(212,168,71,0.16);
    border-top: 2px solid var(--temple-gold);
    list-style: none; min-width: 190px; padding: 8px 0; z-index: 999;
    box-shadow: 0 22px 55px rgba(0,0,0,0.82), 0 0 0 1px rgba(212,168,71,0.04),
                0 0 45px rgba(212,168,71,0.04);
    border-radius: 0 0 10px 10px;
    animation: float-in-up 0.15s ease both;
}
.nav-dropdown.open .dropdown-menu-t { display: block; }
.dropdown-menu-t a {
    display: block; padding: 11px 20px;
    color: var(--temple-muted); text-decoration: none;
    font-size: 16px; letter-spacing: 1px;
    border-left: 2px solid transparent; transition: all 0.15s;
}
.dropdown-menu-t a:hover {
    background: rgba(212,168,71,0.06);
    color: var(--temple-gold2);
    border-left-color: var(--temple-gold);
    padding-left: 25px;
}

.nav-toggle {
    display: none; background: none;
    border: 1px solid rgba(36,48,96,0.8);
    color: var(--temple-gold); padding: 6px 12px; font-size: 20px;
    cursor: pointer; border-radius: 6px; transition: all 0.2s;
}
.nav-toggle:hover { background: rgba(212,168,71,0.08); border-color: rgba(212,168,71,0.4); }

/* ── 主內容 ── */
.temple-main { min-height: calc(100vh - 160px); }

/* ── Hero 橫幅 ── */
.temple-hero {
    position: relative; overflow: hidden;
    background: linear-gradient(160deg, #020408 0%, #050912 28%, #081428 60%, #0c1a38 100%);
    padding: 52px 0 44px;
    border-bottom: 1px solid var(--temple-border2);
}
.temple-hero.hero-home {
    min-height: 560px;
    display: flex; align-items: flex-end; justify-content: flex-start;
    padding: 0 28px 72px;
}
.temple-hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 65% 85% at 50% 55%, rgba(139,26,42,0.2) 0%, transparent 62%),
        radial-gradient(ellipse 42% 58% at 50% 52%, rgba(212,168,71,0.06) 0%, transparent 55%),
        radial-gradient(ellipse 38% 45% at 12% 82%, rgba(74,143,204,0.07) 0%, transparent 55%),
        radial-gradient(ellipse 30% 40% at 88% 20%, rgba(74,143,204,0.04) 0%, transparent 50%);
    animation: pulse-glow 6s ease-in-out infinite;
}
.temple-hero::after {
    content: ''; position: absolute; inset: 0;
    background:
        url("data:image/svg+xml,%3Csvg width='56' height='56' viewBox='0 0 56 56' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='28' cy='28' r='1' fill='%23d4a847' fill-opacity='0.032'/%3E%3C/svg%3E"),
        linear-gradient(90deg, rgba(2,4,8,0.82) 0%, rgba(2,4,8,0.55) 38%, transparent 68%),
        linear-gradient(180deg, transparent 0%, rgba(6,9,18,0.5) 100%);
}
.temple-hero .hero-inner {
    position: relative; z-index: 1;
    text-align: center; max-width: 700px; margin: 0 auto;
    animation: float-in-up 0.7s ease both;
}
.temple-hero.hero-home .hero-inner {
    text-align: left; max-width: 620px; margin: 0 0 0 8%;
}
.temple-hero h1 {
    font-size: clamp(36px, 5.5vw, 65px);
    font-weight: 900; letter-spacing: 10px; margin-bottom: 18px; line-height: 1.15;
    color: var(--temple-gold2);
    animation: glow-pulse 4s ease-in-out infinite;
}
.temple-hero h1.hero-title-shimmer {
    background: linear-gradient(135deg,
        var(--temple-gold-dim) 0%, var(--temple-gold3) 32%,
        var(--temple-gold2) 50%, var(--temple-gold3) 68%, var(--temple-gold-dim) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer-gold 3.5s linear infinite;
    filter: drop-shadow(0 2px 22px rgba(212,168,71,0.32));
}
.temple-hero .hero-sub {
    font-size: 19px; color: var(--temple-muted);
    letter-spacing: 5px; margin-bottom: 36px;
    animation: float-in-up 0.7s 0.12s ease both;
}

/* ── Hero 神明生日橫幅 ── */
.hero-birthday-banner {
    position: absolute; top: 0; left: 0; right: 0; z-index: 3;
    padding: 14px 28px;
    background: linear-gradient(90deg, transparent, rgba(139,26,42,0.55) 15%, rgba(139,26,42,0.55) 85%, transparent);
    border-bottom: 1px solid rgba(212,168,71,0.35);
    text-align: center;
}
.hero-birthday-text {
    font-size: clamp(16px, 2.2vw, 26px);
    font-weight: 900; letter-spacing: 4px;
    background: linear-gradient(135deg, #b8922a 0%, #e8c860 30%, #f5de90 50%, #e8c860 70%, #b8922a 100%);
    background-size: 200% auto;
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer-gold 3s linear infinite;
    filter: drop-shadow(0 0 12px rgba(212,168,71,0.5));
}

/* ── 彩帶動畫 ── */
@keyframes confetti-fall {
    0%   { transform: translateY(-10px) rotate(0deg);   opacity: 1; }
    80%  { opacity: 1; }
    100% { transform: translateY(105vh) rotate(540deg); opacity: 0; }
}

/* ── Hero 背景輪播 ── */
.hero-bg-slides {
    position: absolute; inset: 0; overflow: hidden;
}
.hero-bg-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0;
    animation: hero-bg-slide 36s linear infinite;
    will-change: opacity, transform;
}
.hero-bg-slides::after {
    content: ''; position: absolute; inset: 0;
    background: rgba(2, 6, 16, 0.54);
    pointer-events: none;
}
@keyframes hero-bg-slide {
    0%     { opacity: 0; transform: scale(1.06); }
    3%     { opacity: 1; transform: scale(1.03); }
    14%    { opacity: 1; transform: scale(1.0);  }
    17%    { opacity: 0; transform: scale(1.0);  }
    100%   { opacity: 0; }
}
.hero-bg-slide:nth-child(1) { animation-delay: -1s; }
.hero-bg-slide:nth-child(2) { animation-delay: 5s;  }
.hero-bg-slide:nth-child(3) { animation-delay: 11s; }
.hero-bg-slide:nth-child(4) { animation-delay: 17s; }
.hero-bg-slide:nth-child(5) { animation-delay: 23s; }
.hero-bg-slide:nth-child(6) { animation-delay: 29s; }

/* ── 按鈕 ── */
.btn-temple {
    display: inline-block; padding: 13px 36px;
    background: linear-gradient(135deg, #8b1a2a 0%, #b02035 50%, #cc2840 100%);
    color: var(--temple-gold3); text-decoration: none;
    border: 1px solid rgba(212,168,71,0.32); border-radius: 5px;
    font-size: 18px; font-weight: 700; letter-spacing: 3px;
    transition: all 0.25s; cursor: pointer;
    position: relative; overflow: hidden;
    box-shadow: 0 4px 24px rgba(139,26,42,0.52), inset 0 1px 0 rgba(255,200,100,0.1);
}
.btn-temple::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.07) 50%, transparent 100%);
    opacity: 0; transition: opacity 0.25s;
}
.btn-temple:hover {
    color: #fff;
    box-shadow: 0 6px 36px rgba(139,26,42,0.72), 0 0 0 1px rgba(212,168,71,0.28),
                0 0 45px rgba(212,168,71,0.07);
    transform: translateY(-2px);
    border-color: rgba(212,168,71,0.55);
}
.btn-temple:hover::before { opacity: 1; }

.btn-temple-outline {
    display: inline-block; padding: 11px 32px;
    background: transparent; color: var(--temple-gold);
    text-decoration: none; border: 1px solid rgba(212,168,71,0.42);
    border-radius: 5px; font-size: 17px; letter-spacing: 2px;
    transition: all 0.25s; cursor: pointer;
}
.btn-temple-outline:hover {
    background: rgba(212,168,71,0.08);
    color: var(--temple-gold2);
    border-color: var(--temple-gold);
    box-shadow: 0 0 22px rgba(212,168,71,0.16), 0 4px 18px rgba(0,0,0,0.3);
    transform: translateY(-1px);
}

/* ── 通用容器 ── */
.temple-container { max-width: 1400px; margin: 0 auto; padding: 56px 28px; }

/* ── 區塊標題 ── */
.temple-section-title {
    text-align: center; margin-bottom: 46px;
    font-size: 32px; font-weight: 900; color: var(--temple-gold2); letter-spacing: 6px;
    position: relative; padding-bottom: 24px;
}
.temple-section-title::before {
    content: '';
    position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 120px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--temple-gold), transparent);
    box-shadow: 0 0 12px rgba(212,168,71,0.5);
}
.temple-section-title::after {
    content: '◆';
    position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%);
    font-size: 9px; color: var(--temple-gold); letter-spacing: 0;
    filter: drop-shadow(0 0 5px rgba(212,168,71,0.7));
}

/* ── 卡片 ── */
.temple-card {
    background: linear-gradient(145deg, #0d1525 0%, #111c32 100%);
    border: 1px solid var(--temple-border);
    border-top: 2px solid rgba(212,168,71,0.5);
    border-radius: 8px; padding: 28px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative; overflow: hidden;
    box-shadow: 0 4px 22px rgba(0,0,0,0.42), inset 0 1px 0 rgba(212,168,71,0.06);
}
.temple-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212,168,71,0.45), transparent);
}
.temple-card:hover {
    border-top-color: var(--temple-gold);
    box-shadow: 0 18px 55px rgba(0,0,0,0.62), 0 0 0 1px rgba(212,168,71,0.14),
                0 0 45px rgba(212,168,71,0.05);
    transform: translateY(-3px);
    background: linear-gradient(145deg, rgba(17,28,50,0.94) 0%, rgba(13,21,37,0.94) 100%);
}
.temple-card-title { font-size: 21px; font-weight: 700; color: var(--temple-gold2); letter-spacing: 1px; margin-bottom: 10px; }
.temple-card-meta  { font-size: 15px; color: var(--temple-muted); margin-bottom: 10px; letter-spacing: 1px; }
.temple-card-body  { font-size: 17px; color: var(--temple-text); line-height: 1.9; }

/* ── 表單 ── */
.temple-form .form-label {
    font-size: 17px; color: var(--temple-gold); margin-bottom: 6px;
    letter-spacing: 1px; display: block;
}
.temple-form .form-control,
.temple-form .form-select {
    background: rgba(8,12,28,0.85); border: 1px solid var(--temple-border2);
    color: var(--temple-text); border-radius: 5px; padding: 11px 15px;
    font-size: 17px; width: 100%; font-family: inherit; transition: border-color 0.2s, box-shadow 0.2s;
}
.temple-form .form-control:focus,
.temple-form .form-select:focus {
    outline: none; border-color: var(--temple-gold);
    background: rgba(16,26,52,0.82);
    box-shadow: 0 0 0 3px rgba(212,168,71,0.13), 0 4px 22px rgba(0,0,0,0.42);
}
.temple-form .form-control::placeholder,
.temple-form .form-select::placeholder,
.temple-form textarea::placeholder { color: var(--temple-muted); opacity: 1; }
.temple-form textarea.form-control { min-height: 120px; resize: vertical; }
.temple-form .form-select option    { background: var(--temple-bg2); color: var(--temple-text); }
.temple-form .form-control option   { background: var(--temple-bg2); color: var(--temple-text); }

/* ── 分隔線裝飾 ── */
.temple-divider { text-align: center; margin: 40px 0; position: relative; }
.temple-divider::before,
.temple-divider::after {
    content: '';
    position: absolute; top: 50%;
    height: 1px;
    width: calc(50% - 145px);
}
.temple-divider::before { left: 0; background: linear-gradient(90deg, transparent, var(--temple-border2)); }
.temple-divider::after  { right: 0; background: linear-gradient(90deg, var(--temple-border2), transparent); }
.temple-divider span {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--temple-gold); font-size: 18px;
    position: relative; z-index: 1; padding: 0 8px; letter-spacing: 3px;
}
.temple-divider span::before,
.temple-divider span::after { content: '◆'; font-size: 8px; color: var(--temple-gold); opacity: 0.65; }

/* ── 頁尾 ── */
.temple-footer {
    background: linear-gradient(180deg, #05081a 0%, #030508 100%);
    padding: 42px 36px 22px;
    position: relative;
    border-top: 1px solid var(--temple-border);
}
.temple-footer::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg,
        transparent 0%, var(--temple-gold-dim) 18%,
        var(--temple-gold) 38%, var(--temple-gold2) 50%,
        var(--temple-gold) 62%, var(--temple-gold-dim) 82%, transparent 100%);
    box-shadow: 0 0 16px rgba(212,168,71,0.32);
}
.footer-inner {
    max-width: 1400px; margin: 0 auto;
    display: flex; align-items: center; gap: 0; flex-wrap: wrap;
}
.footer-brand {
    display: flex; align-items: center; gap: 22px;
    padding-right: 54px; flex-shrink: 0;
}
.footer-brand-sub { display: flex; flex-direction: column; gap: 7px; }
.footer-brand-badge {
    display: inline-block;
    background: linear-gradient(135deg, #8b1a2a, #b02035);
    color: var(--temple-gold3);
    font-size: 13px; font-weight: 700; letter-spacing: 3px;
    padding: 4px 12px; border-radius: 3px;
    border: 1px solid rgba(212,168,71,0.35);
    box-shadow: 0 2px 12px rgba(139,26,42,0.38);
}
.footer-brand-tagline { font-size: 13px; color: var(--temple-muted); letter-spacing: 2px; white-space: nowrap; }
.wende-logo-footer .wende-circle      { width: 28px; height: 28px; font-size: 9px; }
.wende-logo-footer .wende-scroll-inner{ font-size: 24px; letter-spacing: 5px; padding: 4px 12px; }
.wende-logo-footer .wende-roller      { height: 36px; width: 9px; }
.wende-logo-footer .wende-diamond     { width: 20px; height: 20px; }
.wende-logo-footer .wende-diamond span{ font-size: 8px; }
.footer-vdivider {
    width: 1px; align-self: stretch; min-height: 90px;
    background: linear-gradient(180deg, transparent 0%, var(--temple-gold) 25%, var(--temple-gold) 75%, transparent 100%);
    opacity: 0.35; flex-shrink: 0; margin-right: 54px;
}
.footer-info { flex: 1; min-width: 260px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 18px; }
.footer-links a {
    color: var(--temple-muted); text-decoration: none; font-size: 14px;
    letter-spacing: 1px; transition: color 0.2s;
    padding: 0 18px; border-right: 1px solid var(--temple-border); line-height: 1;
}
.footer-links a:first-child { padding-left: 0; }
.footer-links a:last-child  { border-right: none; }
.footer-links a:hover { color: var(--temple-gold); }
.footer-contacts { display: flex; flex-direction: column; gap: 10px; }
.footer-contact-row {
    display: flex; align-items: flex-start; gap: 10px;
    color: var(--temple-muted); font-size: 13px; line-height: 1.6;
}
.footer-contact-icon  { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.footer-contact-label {
    font-size: 11px; font-weight: 700; letter-spacing: 2px;
    color: var(--temple-gold2); margin-right: 8px;
    display: inline-block; vertical-align: middle;
}
.footer-contact-text { letter-spacing: 0.5px; vertical-align: middle; }
.footer-copy {
    font-size: 12px; color: rgba(120,128,160,0.4); letter-spacing: 1px;
    margin-top: 28px; text-align: center;
    border-top: 1px solid rgba(26,37,64,0.6); padding-top: 16px;
}
@media (max-width: 700px) {
    .footer-inner   { flex-direction: column; align-items: flex-start; gap: 24px; }
    .footer-vdivider{ width: 60%; height: 1px; min-height: 0; align-self: auto;
                      background: linear-gradient(90deg, transparent, var(--temple-gold), transparent); }
    .footer-brand   { padding-right: 0; }
}

/* ── 公告列表 ── */
.news-list { list-style: none; }
.news-list li {
    border-bottom: 1px solid rgba(26,37,64,0.8);
    padding: 15px 0; transition: padding 0.2s;
}
.news-list li:first-child  { padding-top: 0; }
.news-list li:last-child   { border-bottom: none; }
.news-list a {
    text-decoration: none; color: var(--temple-text);
    display: flex; gap: 16px; align-items: flex-start;
    padding: 4px 10px; margin: -4px -10px;
    border-radius: 5px; transition: all 0.2s;
    border-left: 2px solid transparent;
}
.news-list a:hover {
    background: rgba(212,168,71,0.04);
    border-left-color: var(--temple-gold);
    padding-left: 14px; margin-left: -14px;
}
.news-list a:hover .news-title { color: var(--temple-gold2); }
.news-date  {
    font-size: 14px; color: var(--temple-muted); white-space: nowrap;
    margin-top: 3px; min-width: 44px; font-variant-numeric: tabular-nums;
}
.news-title { font-size: 18px; font-weight: 500; letter-spacing: 1px; line-height: 1.7; }

/* ── 活動卡片格 ── */
.activity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }

/* ── 首頁快速入口圖示 ── */
.activity-entry-icon {
    width: 76px; height: 76px; margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 38px;
    background: radial-gradient(circle, rgba(212,168,71,0.10) 0%, rgba(139,26,42,0.06) 100%);
    border: 1px solid rgba(212,168,71,0.22);
    border-radius: 50%;
    transition: all 0.3s ease;
}
.activity-grid a.temple-card:hover .activity-entry-icon {
    background: radial-gradient(circle, rgba(212,168,71,0.22) 0%, rgba(139,26,42,0.14) 100%);
    border-color: rgba(212,168,71,0.55);
    box-shadow: 0 0 22px rgba(212,168,71,0.18), 0 0 8px rgba(212,168,71,0.12) inset;
    transform: scale(1.1) translateY(-2px);
}

/* ── 報名成功 / 額滿 ── */
.result-page  { text-align: center; padding: 92px 24px; }
.result-icon  { font-size: 72px; margin-bottom: 24px; filter: drop-shadow(0 0 22px rgba(212,168,71,0.32)); }
.result-title { font-size: 36px; font-weight: 900; color: var(--temple-gold2); letter-spacing: 5px; margin-bottom: 14px; }
.result-msg   { font-size: 19px; color: var(--temple-muted); letter-spacing: 1px; margin-bottom: 32px; }

/* ── 神祇展示 ── */
.deity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 30px; }
.deity-card { text-align: center; }
.deity-card img {
    width: 120px; height: 120px; object-fit: cover; border-radius: 50%;
    border: 2px solid rgba(212,168,71,0.5); margin-bottom: 14px;
    box-shadow: 0 0 0 4px rgba(212,168,71,0.07), 0 8px 28px rgba(0,0,0,0.62),
                0 0 22px rgba(212,168,71,0.07);
    transition: all 0.3s ease;
}
.deity-card:hover img {
    box-shadow: 0 0 0 4px rgba(212,168,71,0.2), 0 0 36px rgba(212,168,71,0.22), 0 8px 28px rgba(0,0,0,0.62);
    transform: scale(1.05);
    border-color: var(--temple-gold);
}
.deity-card .deity-title { font-size: 22px; font-weight: 700; color: var(--temple-gold2); letter-spacing: 2px; }
.deity-card .deity-name  { font-size: 16px; color: var(--temple-muted); margin-top: 4px; }

/* ── 廟誌記事月份分組 ── */
.record-month { margin-bottom: 36px; }
.record-month-title {
    font-size: 21px; font-weight: 700; color: var(--temple-gold);
    border-left: 3px solid var(--temple-gold); padding-left: 14px;
    margin-bottom: 14px; letter-spacing: 2px;
    box-shadow: -1px 0 14px rgba(212,168,71,0.22);
}

/* ── 商品 ── */
.product-img { width: 100%; height: 180px; object-fit: cover; border-radius: 5px; margin-bottom: 12px; }

/* ── 法會報名 tabs ── */
.ritual-tabs { display: flex; gap: 6px; margin-bottom: 28px; }
.ritual-tab {
    padding: 9px 22px; border: 1px solid var(--temple-border2); border-radius: 5px;
    cursor: pointer; font-size: 17px; color: var(--temple-muted); letter-spacing: 1px;
    transition: all 0.2s; background: rgba(255,255,255,0.02);
}
.ritual-tab.active {
    background: linear-gradient(135deg, var(--temple-red), var(--temple-red2));
    color: var(--temple-gold3);
    border-color: rgba(212,168,71,0.3);
    box-shadow: 0 2px 18px rgba(139,26,42,0.52);
}
.ritual-tab:hover:not(.active) { background: rgba(212,168,71,0.04); color: var(--temple-text); }

/* ── 捐獻表格 ── */
.donation-table { width: 100%; border-collapse: collapse; }
.donation-table th {
    background: rgba(212,168,71,0.08); color: var(--temple-gold);
    padding: 12px 16px; border-bottom: 1px solid var(--temple-border2);
    font-size: 16px; letter-spacing: 1px; font-weight: 600;
}
.donation-table td {
    padding: 13px 16px; border-bottom: 1px solid rgba(26,37,64,0.6);
    color: var(--temple-text); font-size: 17px; transition: background 0.15s;
}
.donation-table tr:hover td { background: rgba(212,168,71,0.03); }

/* ── 農曆資訊橫帶 ── */
#lunar-bar {
    background: linear-gradient(90deg, #030710, #0a1428 50%, #030710);
    border-bottom: 1px solid rgba(212,168,71,0.18);
    padding: 10px 28px;
}
.lunar-bar-inner {
    max-width: 1400px; margin: 0 auto;
    display: flex; flex-wrap: wrap; gap: 6px 20px;
    align-items: center; justify-content: center;
    font-size: 14px; color: var(--temple-muted); letter-spacing: 1px;
}
#lb-date   { color: var(--temple-gold2); font-weight: 700; font-size: 15px; }
#lb-ganzhi { color: #8090a8; font-size: 13px; }
#lb-yi     { color: #6ec87e; }
#lb-ji     { color: #d07070; }

/* ── 響應式 ── */
@media (max-width: 768px) {
    .nav-toggle { display: block; margin-left: auto; }
    .nav-menu {
        display: none; flex-direction: column;
        position: absolute; top: 100%; left: 0; right: 0;
        background: rgba(5,8,18,0.98);
        backdrop-filter: blur(22px);
        border-bottom: 2px solid rgba(212,168,71,0.38);
        padding: 8px 0;
        box-shadow: 0 14px 40px rgba(0,0,0,0.72);
    }
    .nav-menu.open { display: flex; max-height: calc(100vh - 80px); overflow-y: auto; }
    .nav-link-t { padding: 14px 22px; font-size: 16px; }
    .nav-link-t::after { display: none; }
    .nav-dropdown .dropdown-menu-t {
        position: static; border: none; background: rgba(0,0,0,0.25);
        padding-left: 16px; border-radius: 0; animation: none;
    }
    .nav-dropdown.open .dropdown-menu-t { display: block; }
    .wende-circle       { width: 22px; height: 22px; font-size: 8px; }
    .wende-scroll-inner { font-size: 19px; letter-spacing: 4px; padding: 2px 8px; }
    .wende-roller       { height: 28px; }
    .wende-diamond      { width: 15px; height: 15px; }
    .wende-diamond span { font-size: 7px; }
    .temple-hero.hero-home { min-height: 0; display: block; padding: 64px 0 50px; }
    .temple-hero .hero-inner { text-align: center; margin: 0 auto; padding: 0 28px; }
    .hero-btns          { justify-content: center !important; }
    .temple-container   { padding: 40px 18px; }
    .activity-grid      { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

/* SweetAlert2 stays above all modals */
.swal2-container { z-index: 10000 !important; }
