:root {
    --gold: #d4af37;
    --gold-dim: rgba(212, 175, 55, 0.35);
    --gold-bright: rgba(244, 228, 166, 0.9);
    --gold-warm: #c9a86c;
    --deep-purple: #0a0a14;
    --dark-bg: rgba(20, 15, 30, 0.8);
    --warm-gold: #f4d03f;
    --holy-blue: #4a90d9;
    --roman-sky: #5b8fb9;
    --roman-sky-light: #7eb3d8;
    --travertine: #e8dcc8;
    --holy-white: #f8f6f2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a14 0%, #1a1a2e 50%, #0a0a14 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 1.5s ease, visibility 1.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

.loading-cross {
    font-size: 4em;
    color: #d4af37;
    /* 恢复加载动画：十字架脉动效果 */
    animation: loadingPulse 2s ease-in-out infinite;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5);
}

@keyframes loadingPulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

.loading-text {
    font-family: 'Philosopher', serif;
    font-size: 1.5em;
    color: #d4af37;
    margin: 30px 0;
    letter-spacing: 0.2em;
}

.loading-progress {
    width: 300px;
    height: 3px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #d4af37, #f4e4a6, #d4af37);
    background-size: 200% 100%;
    /* 恢复加载进度条闪光动画 */
    animation: loadingShine 1.5s ease-in-out infinite;
    transition: width 0.3s ease;
}

@keyframes loadingShine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.loading-verse {
    font-family: 'EB Garamond', serif;
    font-size: 0.9em;
    color: rgba(212, 175, 55, 0.6);
    margin-top: 30px;
    font-style: italic;
    max-width: 400px;
    line-height: 1.6;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    background:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E"),
        linear-gradient(135deg, rgba(201, 168, 108, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 0%, rgba(91, 143, 185, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(212, 175, 55, 0.12) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 80%, rgba(232, 220, 200, 0.1) 0%, transparent 40%),
        radial-gradient(ellipse at center top, #2a3f55 0%, #1a2535 40%, #0a0f18 100%);
    font-family: 'EB Garamond', Georgia, 'Times New Roman', serif;
    color: #e8e8e8;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    /* 禁用任何可能的视差效果 */
    perspective: none;
    -webkit-perspective: none;
    /* 禁用滚动链式效果 */
    overscroll-behavior: contain;
}

/* =====================================================
   移动端固定背景解决方案 - 优化版
   适用于 Android 和 iOS，彻底解决背景滚动刷新问题
   ===================================================== */

/* 背景图片层（固定） */
.bg-jesus-fixed {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: -2 !important;
    background: url('../yesu.png') center center / cover no-repeat fixed !important;
    /* 移除所有 filter，避免滚动时重绘 */
    filter: none !important;
    transform: none !important;
    will-change: auto;
    -webkit-transform: translateZ(0) !important;
    -webkit-backface-visibility: hidden;
    transition: none !important;
    animation: none !important;
}

/* 暗色遮罩层（固定） */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
}

/* 金色光晕层（固定） */
.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 40%, rgba(212, 175, 55, 0.25) 0%, transparent 70%);
    /* 无动画，静态光晕 */
}

/* 保留 .bg-jesus 作为兼容，但不再使用 */
.bg-jesus {
    display: none !important;
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.holy-water {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
        rgba(212, 175, 55, 0) 0%,
        rgba(212, 175, 55, 0.15) 20%,
        rgba(212, 175, 55, 0.35) 50%,
        rgba(212, 175, 55, 0.15) 80%,
        rgba(212, 175, 55, 0) 100%);
    pointer-events: none;
    z-index: 100;
    opacity: 0;
}

.holy-water.active {
    animation: holyWaterFall 1.8s ease-in-out forwards;
}

@keyframes holyWaterFall {
    0% { top: -100%; opacity: 0; }
    10% { opacity: 0.9; }
    50% { opacity: 1; }
    90% { opacity: 0.7; }
    100% { top: 100%; opacity: 0; }
}

.temple {
    max-width: 750px;
    margin: 40px auto;
    padding: 55px 50px;
    background:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='paper'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.04' numOctaves='5'/%3E%3CfeColorMatrix values='0 0 0 0 0.9 0 0 0 0 0.85 0 0 0 0 0.75 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23paper)' opacity='0.03'/%3E%3C/svg%3E"),
        rgba(15, 12, 25, 0.85);
    backdrop-filter: none;
    border: 1px solid var(--gold-dim);
    border-radius: 12px;
    box-shadow:
        0 0 120px rgba(212, 175, 55, 0.12),
        0 20px 80px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 0 100px rgba(212, 175, 55, 0.03);
    animation: fadeGlow 1.5s ease-out;
    position: relative;
    z-index: 10;
    transition: box-shadow 0.5s ease;
}

.temple:hover {
    box-shadow:
        0 0 180px rgba(212, 175, 55, 0.18),
        0 25px 100px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 0 120px rgba(212, 175, 55, 0.05);
}

@keyframes fadeGlow {
    0% { opacity: 0; transform: scale(0.97) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.jesus-silhouette {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 250px;
    opacity: 0;
    transition: opacity 1s ease;
    pointer-events: none;
    z-index: 0;
}

.jesus-silhouette svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.3));
}

.central-emblem {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

.emblem-container {
    position: relative;
    display: inline-block;
}

.emblem-cross {
    font-size: 52px;
    display: inline-block;
    /* P1 优化：删除动画 */
    /* animation: emblemBreath 4s ease-in-out infinite, emblemRotate 20s linear infinite; */
    text-shadow: 0 0 40px rgba(212, 175, 55, 0.7);
    cursor: default;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.emblem-cross:hover {
    transform: scale(1.15);
    text-shadow: 0 0 60px rgba(212, 175, 55, 1);
}

@keyframes emblemBreath {
    0%, 100% { text-shadow: 0 0 25px rgba(212, 175, 55, 0.5); }
    50% { text-shadow: 0 0 50px rgba(212, 175, 55, 0.9), 0 0 80px rgba(212, 175, 55, 0.5); }
}

@keyframes emblemRotate {
    0% { filter: hue-rotate(0deg) brightness(1); }
    50% { filter: hue-rotate(10deg) brightness(1.1); }
    100% { filter: hue-rotate(0deg) brightness(1); }
}

.wings-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 350px;
    height: 120px;
    pointer-events: none;
    z-index: 1;
}

.wing-svg {
    position: absolute;
    top: 0;
    width: 120px;
    height: 100px;
    opacity: 0.25;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
}

.wing-left {
    right: 50%;
    margin-right: 40px;
    /* P1 优化：删除动画 */
    /* animation: wingFlapLeft 4s ease-in-out infinite; */
    transform-origin: right center;
}

.wing-right {
    left: 50%;
    margin-left: 40px;
    /* P1 优化：删除动画 */
    /* animation: wingFlapRight 4s ease-in-out infinite; */
    transform-origin: left center;
}

@keyframes wingFlapLeft {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(-8deg) scale(1.05); }
}

@keyframes wingFlapRight {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(8deg) scale(1.05); }
}

.symbols {
    text-align: center;
    font-size: 26px;
    margin-bottom: 22px;
    letter-spacing: 18px;
}

.symbol-item {
    display: inline-block;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
    cursor: default;
}

.symbol-item:hover {
    transform: scale(1.4) rotate(10deg);
    text-shadow: 0 0 25px rgba(212, 175, 55, 0.9);
}

/* P1 优化：删除动画 */
/* .cross { animation: gentleFloat 4s ease-in-out infinite; } */
/* .dove { animation: gentleFloat 4s ease-in-out infinite reverse; color: rgba(255,255,255,0.9); } */

.cross, .dove { color: rgba(212, 175, 55, 0.8); }

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.domain-section {
    text-align: center;
    margin-bottom: 32px;
}

.domain-name {
    font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
    font-size: 60px;
    font-weight: 600;
    background: linear-gradient(135deg, #d4af37 0%, #f4e4a6 30%, #d4af37 50%, #f4e4a6 70%, #d4af37 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 12px;
    position: relative;
    cursor: default;
    transition: all 0.3s ease;
    /* 恢复域名渐变流动动画 */
    animation: goldGradient 6s ease-in-out infinite;
}

@keyframes goldGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.domain-name:hover {
    text-shadow: 0 0 50px rgba(212, 175, 55, 0.6);
    transform: scale(1.03);
}

.latin 解读 {
    margin-top: 16px;
    padding: 14px 28px;
    background: rgba(0, 0, 0, 0.55);
    border-radius: 25px;
    display: inline-block;
    font-family: 'Marcellus SC', 'Cinzel', serif;
    font-size: 11px;
    color: rgba(212, 175, 55, 0.95);
    letter-spacing: 2px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: inset 0 0 25px rgba(212, 175, 55, 0.1);
}

.scroll-text {
    position: absolute;
    font-family: 'Marcellus SC', 'Cinzel', serif;
    font-size: 12px;
    color: rgba(212, 175, 55, 0.5);
    white-space: nowrap;
    /* 恢复滚动拉丁文动画 */
    animation: scrollFloat 24s linear infinite;
    pointer-events: none;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

@keyframes scrollFloat {
    0% { transform: translateX(100%); opacity: 0; }
    10% { opacity: 0.7; }
    90% { opacity: 0.7; }
    100% { transform: translateX(-100%); opacity: 0; }
}

.scripture-block {
    margin: 28px 0;
    padding: 26px 32px;
    background: rgba(30, 25, 45, 0.75);
    border-left: 4px solid var(--gold);
    border-radius: 0 12px 12px 0;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 19px;
    line-height: 1.85;
    color: rgba(240, 235, 255, 0.92);
    position: relative;
    overflow: hidden;
}

.scripture-block::before {
    content: '"';
    position: absolute;
    top: -15px;
    left: 12px;
    font-size: 100px;
    color: rgba(212, 175, 55, 0.12);
    font-family: 'EB Garamond', Georgia, serif;
}

.scripture-block .quote {
    font-style: italic;
    color: rgba(212, 175, 55, 0.98);
    text-shadow: 0 0 25px rgba(212, 175, 55, 0.25);
}

.daily-verse {
    text-align: center;
    padding: 24px;
    margin: 28px 0;
    background: linear-gradient(135deg, rgba(35, 28, 55, 0.7), rgba(22, 18, 45, 0.7));
    border-radius: 14px;
    border: 1px solid rgba(212, 175, 55, 0.18);
    position: relative;
}

.daily-verse::before,
.daily-verse::after {
    content: '✧';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(212, 175, 55, 0.5);
    font-size: 16px;
}

.daily-verse::before { left: 18px; }
.daily-verse::after { right: 18px; }

.daily-verse-label {
    font-size: 10px;
    letter-spacing: 5px;
    color: rgba(212, 175, 55, 0.75);
    margin-bottom: 16px;
    text-transform: uppercase;
}

.daily-verse-text {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 20px;
    font-style: italic;
    line-height: 1.75;
    color: rgba(244, 240, 255, 0.95);
}

.bible-3d {
    position: fixed;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 80px;
    height: 100px;
    perspective: 500px;
    z-index: 5;
    pointer-events: none;
    opacity: 0.6;
}

.bible-page {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f0e6 0%, #e8dcc8 100%);
    border-radius: 3px 8px 8px 3px;
    box-shadow:
        -2px 0 0 #d4c4a8,
        0 0 20px rgba(212, 175, 55, 0.2),
        5px 10px 30px rgba(0,0,0,0.3);
    /* 恢复圣经 3D 浮动效果 */
    animation: bibleFloat 8s ease-in-out infinite, bibleRotate 16s ease-in-out infinite;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 10px;
    color: rgba(139, 90, 43, 0.6);
    padding: 10px;
    line-height: 1.4;
}

@keyframes bibleFloat {
    0%, 100% { transform: rotateY(-15deg) translateY(0); }
    50% { transform: rotateY(-15deg) translateY(-15px); }
}

@keyframes bibleRotate {
    0%, 100% { rotateY: -15deg; }
    50% { rotateY: -25deg; }
}

.ritual-steps {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 28px 0;
    padding: 18px;
    background: rgba(22, 18, 40, 0.6);
    border-radius: 12px;
}

.ritual-step {
    text-align: center;
    padding: 12px 18px;
    border-radius: 10px;
    transition: all 0.4s ease;
    cursor: default;
    opacity: 0.5;
    border: 1px solid transparent;
}

.ritual-step.active {
    opacity: 1;
    background: rgba(212, 175, 55, 0.18);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.25);
}

.ritual-step.completed {
    opacity: 0.85;
    background: rgba(212, 175, 55, 0.08);
}

.ritual-step .step-icon {
    font-size: 28px;
    margin-bottom: 6px;
}

.ritual-step .step-label {
    font-size: 9px;
    letter-spacing: 2px;
    color: rgba(212, 175, 55, 0.8);
}

.input-section {
    margin: 32px 0;
    position: relative;
}

.input-label {
    font-size: 11px;
    letter-spacing: 3px;
    color: rgba(212, 175, 55, 0.8);
    margin-bottom: 14px;
    display: block;
    text-transform: uppercase;
}

.purify-input {
    width: 100%;
    padding: 22px 24px;
    background: rgba(20, 15, 30, 0.9);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    color: #e8e8e8;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 18px;
    transition: all 0.4s ease;
    resize: none;
    position: relative;
    user-select: text !important;
    -webkit-user-select: text !important;
}

.purify-input::placeholder {
    color: rgba(212, 175, 55, 0.5);
    font-style: italic;
}

.purify-input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 45px rgba(212, 175, 55, 0.25), 0 0 90px rgba(212, 175, 55, 0.1);
}

.purify-input.shake {
    animation: inputShake 0.5s ease-in-out;
    border-color: rgba(255, 80, 80, 0.7);
}

@keyframes inputShake {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-10px); }
    30% { transform: translateX(10px); }
    45% { transform: translateX(-7px); }
    60% { transform: translateX(7px); }
    75% { transform: translateX(-4px); }
    90% { transform: translateX(4px); }
}

.char-sanctify {
    position: fixed;
    color: var(--gold);
    font-weight: bold;
    font-size: 18px;
    pointer-events: none;
    animation: charRise 1s ease-out forwards;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.9);
    z-index: 1000;
}

@keyframes charRise {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-60px) scale(1.8); }
}

.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.btn-sacred {
    flex: 1;
    padding: 18px 30px;
    background: linear-gradient(135deg, rgba(50, 45, 80, 0.95), rgba(35, 30, 60, 0.95));
    border: 1px solid var(--gold-dim);
    border-radius: 12px;
    color: var(--gold);
    font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-sacred:hover {
    background: linear-gradient(135deg, rgba(65, 58, 95, 0.98), rgba(50, 45, 80, 0.98));
    border-color: rgba(212, 175, 55, 0.75);
    transform: scale(0.98);
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.2);
}

.btn-sacred:active {
    transform: scale(0.97);
}

.btn-sacred.click-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.55) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    animation: holyFlash 0.6s ease-out forwards;
    pointer-events: none;
}

@keyframes holyFlash {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(3); opacity: 0; }
}

.btn-voice {
    padding: 18px 24px;
    background: linear-gradient(135deg, rgba(30, 50, 70, 0.95), rgba(20, 35, 55, 0.95));
    border: 1px solid rgba(74, 144, 217, 0.4);
    border-radius: 12px;
    color: rgba(74, 144, 217, 0.9);
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-voice:hover {
    background: linear-gradient(135deg, rgba(40, 65, 90, 0.98), rgba(30, 50, 75, 0.98));
    border-color: rgba(74, 144, 217, 0.7);
    box-shadow: 0 0 30px rgba(74, 144, 217, 0.2);
}

.btn-voice.recording {
    animation: recordingPulse 1s ease-in-out infinite;
    border-color: rgba(255, 80, 80, 0.7);
    color: rgba(255, 80, 80, 0.9);
}

@keyframes recordingPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 80, 80, 0.3); }
    50% { box-shadow: 0 0 30px rgba(255, 80, 80, 0.6); }
}

.oracle-section {
    margin-top: 38px;
    padding: 30px;
    background: rgba(30, 24, 52, 0.75);
    border-radius: 14px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    text-align: center;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.oracle-response {
    font-family: 'Philosopher', 'EB Garamond', Georgia, serif;
    font-size: 24px;
    line-height: 2;
    color: rgba(244, 240, 255, 0.97);
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease, color 0.5s ease;
    transform: scale(1);
}

.oracle-response.visible {
    opacity: 1;
}

.oracle-response.purified {
    color: rgba(212, 175, 55, 1);
    text-shadow: 0 0 25px rgba(212, 175, 55, 0.4);
}

.oracle-response.shrink {
    transform: scale(0.93);
}

.oracle-response.enlarge {
    transform: scale(1.08);
}

.saint-name {
    margin-top: 22px;
    padding: 14px 24px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 22px;
    font-size: 12px;
    color: rgba(212, 175, 55, 0.85);
    letter-spacing: 3px;
    display: inline-block;
}

.stats-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 28px;
    padding: 18px;
    background: rgba(22, 18, 40, 0.7);
    border-radius: 12px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-family: 'Playfair Display', 'EB Garamond', Georgia, serif;
    font-size: 32px;
    font-weight: 600;
    color: var(--gold);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.stat-label {
    font-size: 9px;
    letter-spacing: 3px;
    color: rgba(212, 175, 55, 0.65);
    margin-top: 5px;
}

.confession-wall {
    margin-top: 32px;
    padding: 22px;
    background: rgba(28, 22, 48, 0.7);
    border-radius: 14px;
    border: 1px solid rgba(212, 175, 55, 0.12);
}

.confession-wall-title {
    font-size: 11px;
    letter-spacing: 4px;
    color: rgba(212, 175, 55, 0.65);
    text-align: center;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.confession-list {
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 175, 55, 0.35) transparent;
}

.confession-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 12px 18px;
    margin-bottom: 10px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 8px;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 14px;
    color: rgba(244, 240, 255, 0.9);
    border-left: 3px solid rgba(212, 175, 55, 0.35);
    animation: confessionFadeIn 0.6s ease-out;
    flex-wrap: wrap;
}

.confession-content {
    flex: 2;
    color: rgba(244, 240, 255, 0.9);
    word-break: break-word;
    line-height: 1.5;
}

.confession-meta {
    flex: 1;
    text-align: right;
    font-size: 0.85em;
    color: rgba(212, 175, 55, 0.7);
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.confession-ip {
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.confession-location {
    color: rgba(212, 175, 55, 0.85);
}

.no-data {
    text-align: center;
    padding: 30px;
    color: rgba(244, 240, 255, 0.5);
    font-style: italic;
}

@media (max-width: 650px) {
    .confession-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .confession-meta {
        text-align: left;
        white-space: normal;
        margin-top: 8px;
        padding-top: 8px;
        border-top: 1px solid rgba(212, 175, 55, 0.2);
        width: 100%;
    }
    .confession-list {
        max-height: 400px;
    }
}

@keyframes confessionFadeIn {
    0% { opacity: 0; transform: translateY(-12px); }
    100% { opacity: 1; transform: translateY(0); }
}

.motto {
    text-align: center;
    margin-top: 38px;
    font-family: 'Marcellus SC', 'Cinzel', Georgia, serif;
    font-size: 16px;
    letter-spacing: 6px;
    color: rgba(212, 175, 55, 0.55);
    font-style: italic;
}

/* 网站底部备案号样式 */
.footer-icp {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 12px;
    color: rgba(212, 175, 55, 0.4);
    letter-spacing: 1px;
}

.footer-icp a {
    color: rgba(212, 175, 55, 0.5);
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 2px;
}

.footer-icp a:hover {
    color: rgba(212, 175, 55, 0.8);
    border-bottom-color: rgba(212, 175, 55, 0.6);
}

.candles-container {
    position: fixed;
    bottom: 90px;
    right: 35px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 50;
}

.candle {
    font-size: 36px;
    filter: drop-shadow(0 0 18px rgba(255, 200, 100, 0.55));
    cursor: default;
    transition: all 0.3s ease;
}

.candle.lit {
    /* 恢复蜡烛 flicker 动画 - 模拟真实烛光摇曳 */
    animation: candleFlicker 2s ease-in-out infinite;
}

@keyframes candleFlicker {
    0%, 100% { 
        filter: drop-shadow(0 0 15px rgba(255, 200, 100, 0.5)); 
        opacity: 0.9;
        transform: scale(1);
    }
    25% { 
        filter: drop-shadow(0 0 18px rgba(255, 200, 100, 0.65)); 
        opacity: 0.95;
        transform: scale(1.02) rotate(-1deg);
    }
    50% { 
        filter: drop-shadow(0 0 22px rgba(255, 200, 100, 0.75)); 
        opacity: 1;
        transform: scale(1.04);
    }
    75% { 
        filter: drop-shadow(0 0 18px rgba(255, 200, 100, 0.65)); 
        opacity: 0.95;
        transform: scale(1.02) rotate(1deg);
    }
}

.candle.new {
    /* 新蜡烛点燃动画 */
    animation: candleAppear 0.8s ease-out forwards, candleFlicker 2s ease-in-out infinite 0.8s;
}

@keyframes candleAppear {
    from { 
        opacity: 0; 
        transform: scale(0.9);
    }
    to { 
        opacity: 1; 
        transform: scale(1);
    }
}

@keyframes candleFlicker {
    0%, 100% { filter: drop-shadow(0 0 15px rgba(255, 200, 100, 0.55)); transform: scale(1); }
    20% { filter: drop-shadow(0 0 22px rgba(255, 200, 100, 0.75)); transform: scale(1.03) rotate(-2deg); }
    40% { filter: drop-shadow(0 0 30px rgba(255, 200, 100, 0.95)); transform: scale(1.06); }
    60% { filter: drop-shadow(0 0 22px rgba(255, 200, 100, 0.75)); transform: scale(1.03) rotate(2deg); }
    80% { filter: drop-shadow(0 0 18px rgba(255, 200, 100, 0.65)); transform: scale(1.02); }
}

@keyframes candleIgnite {
    0% { opacity: 0; transform: scale(0.2) translateY(20px); }
    50% { opacity: 1; transform: scale(1.3) translateY(-5px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes candleBlink {
    0%, 100% { opacity: 1; filter: drop-shadow(0 0 18px rgba(255, 200, 100, 0.6)); }
    50% { opacity: 0.15; filter: drop-shadow(0 0 5px rgba(255, 200, 100, 0.25)); }
}

.candle.blink {
    animation: candleBlink 0.12s ease-in-out 4;
}

.audio-control {
    position: fixed;
    bottom: 35px;
    left: 35px;
    padding: 14px 22px;
    background: rgba(20, 15, 30, 0.95); /* P1 优化：移除 backdrop-filter，改为更不透明的背景 */
    border: 1px solid var(--gold-dim);
    border-radius: 25px;
    color: var(--gold);
    font-size: 11px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    /* backdrop-filter: blur(12px); */ /* P1 优化：移除以减少合成层 */
    z-index: 100;
}

.audio-control:hover {
    background: rgba(38, 30, 60, 0.95);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.25);
}

.audio-control.active {
    border-color: rgba(212, 175, 55, 0.7);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.invitation {
    margin-top: 32px;
    padding: 24px;
    background: rgba(25, 20, 45, 0.65);
    border-radius: 12px;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 18px;
    line-height: 2;
    color: rgba(230, 225, 245, 0.9);
    text-align: center;
    position: relative;
}

.invitation::before,
.invitation::after {
    content: '☧';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: rgba(212, 175, 55, 0.35);
}

.invitation::before { left: 18px; }
.invitation::after { right: 18px; }

.invitation .highlight {
    color: var(--gold);
    font-weight: 600;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
}

.emotion-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
    opacity: 0;
    transition: opacity 1.8s ease, background 1.8s ease;
}

.emotion-overlay.warm {
    opacity: 1;
    background: radial-gradient(circle at center, rgba(244, 208, 63, 0.12) 0%, transparent 65%);
}

.particle-text-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    opacity: 0.2;
}

@media (max-width: 650px) {
    .temple { margin: 25px 15px; padding: 40px 22px; backdrop-filter: none !important; }
    .domain-name { font-size: 42px; letter-spacing: 7px; }
    .latin解读 { font-size: 9px; padding: 12px 18px; }
    .symbols { font-size: 22px; letter-spacing: 12px; }
    .scripture-block { font-size: 16px; padding: 22px 24px; }
    .daily-verse-text { font-size: 17px; }
    .oracle-response { font-size: 19px; }
    .ritual-steps { gap: 12px; padding: 14px; }
    .ritual-step .step-icon { font-size: 22px; }
    .candles-container { bottom: 80px; right: 18px; }
    .candle { font-size: 28px; }
    .audio-control { bottom: 25px; left: 18px; padding: 12px 18px; font-size: 10px; }
    .breath-toggle { top: 18px; right: 18px; padding: 8px 14px; font-size: 9px; }
    .emblem-cross { font-size: 40px; }
    .wings-container { width: 240px; height: 80px; }
    .wing-svg { width: 90px; height: 75px; }
    .btn-group { flex-direction: column; }
    .bible-3d { display: none; }
    .stats-bar { gap: 25px; }
    .stat-value { font-size: 26px; }
    /* 移动端背景固定优化 */
    .bg-jesus-fixed { 
        filter: none !important;
        transition: none;
        transform: none !important;
        -webkit-transform: translateZ(0) !important;
        -webkit-backface-visibility: hidden;
    }
    .bg-overlay, .bg-glow {
        /* 确保移动端也固定 */
        position: fixed !important;
    }
    #threejs-canvas { display: none; }
    #particles-canvas { display: none; }
    .particle-text-canvas { display: none; }
    .glow { animation: none; opacity: 0.4; }
    .candle { animation: none; filter: drop-shadow(0 0 8px rgba(255,200,100,0.5)); }
    .btn-sacred.click-effect::after { display: none; }
    .char-sanctify { display: none; }
}

/* =====================================================
   P0 性能优化样式 - GPU 加速与降级策略
   ===================================================== */

/* P1 优化：全局禁用粒子系统和 Three.js */
#particles-canvas,
#threejs-canvas {
    display: none !important;
}

/* 低性能模式 */
body.low-performance .stained-glass-overlay,
body.low-performance .dome-bg,
body.low-performance .mouse-holy-light {
    display: none !important;
}

body.low-performance .glow {
    animation: none !important;
    opacity: 0.3;
}

body.low-performance .breath-guide {
    display: none;
}

body.low-performance .holy-water {
    animation: none !important;
    opacity: 0;
}

/* 后台标签页模式 - 降低动画 */
body.background-tab .glow,
body.background-tab .stained-glass-overlay,
body.background-tab .dome-bg {
    animation-play-state: paused !important;
}

/* P1 优化：移除多余的 will-change，只对真正需要的元素使用 */
.candle,
.symbol-item {
    will-change: transform, opacity;
}

/* 其他元素动画频率低或已禁用，无需强制提升图层 */

/* 优化动画使用 transform 替代重排属性 */
@keyframes breathe {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

/* 简化复杂动画 */
body.low-performance .ritual-step {
    animation: none !important;
}

body.low-performance .scroll-text {
    animation: none !important;
    opacity: 0.5;
}

body.low-performance .symbols {
    animation: none !important;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .stained-glass-overlay {
        opacity: 0.08;
    }
    
    .dome-bg {
        opacity: 0.3;
    }
    
    .mouse-holy-light {
        display: none;
    }
    
    .particle-text-canvas {
        display: none;
    }
}