/* 电子上香动画样式文件 */

/* 上香区域样式 */
.incense-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(10, 15, 26, 0.6) 0%, rgba(15, 21, 32, 0.7) 30%, rgba(5, 10, 18, 0.8) 70%, rgba(10, 15, 26, 0.6) 100%);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: visible;
}

/* 祈福链接容器 */
.prayer-links-container {
    margin-bottom: 60px;
    padding: 40px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 20px;
    border: 2px solid rgba(74, 144, 226, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* 祈福链接网格布局 */
.prayer-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 祈福链接样式 */
.prayer-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.15) 0%, rgba(42, 90, 138, 0.1) 100%);
    border: 2px solid rgba(74, 144, 226, 0.4);
    border-radius: 15px;
    text-decoration: none;
    color: #4a90e2;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.prayer-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 144, 226, 0.2), transparent);
    transition: left 0.6s ease;
}

.prayer-link:hover::before {
    left: 100%;
}

.prayer-link:hover {
    transform: translateY(-8px) scale(1.05);
    border-color: #4a90e2;
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.25) 0%, rgba(42, 90, 138, 0.2) 100%);
    box-shadow: 0 15px 40px rgba(74, 144, 226, 0.3);
}

/* 祈福图标样式 */
.prayer-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.2) 0%, rgba(74, 144, 226, 0.05) 70%);
    border-radius: 50%;
    border: 2px solid rgba(74, 144, 226, 0.3);
    transition: all 0.3s ease;
}

.prayer-link:hover .prayer-icon {
    transform: rotate(360deg) scale(1.1);
    border-color: #4a90e2;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.4) 0%, rgba(74, 144, 226, 0.1) 70%);
}

.prayer-icon img {
    width: 50px;
    height: 50px;
    filter: brightness(0) saturate(100%) invert(58%) sepia(96%) saturate(1458%) hue-rotate(200deg) brightness(95%) contrast(89%);
    transition: all 0.3s ease;
}

.prayer-link:hover .prayer-icon img {
    filter: brightness(0) saturate(100%) invert(58%) sepia(96%) saturate(1458%) hue-rotate(200deg) brightness(120%) contrast(110%);
    transform: scale(1.1);
}

/* 祈福文字样式 */
.prayer-text {
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.prayer-link:hover .prayer-text {
    color: #f4e4a6;
    text-shadow: 0 2px 8px rgba(212, 175, 55, 0.5);
}

/* 祈福链接激活状态 */
.prayer-link.active {
    transform: translateY(-8px) scale(1.05);
    border-color: #f4e4a6;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.35) 0%, rgba(184, 134, 11, 0.3) 100%);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.4);
}

.prayer-link.active .prayer-icon {
    border-color: #f4e4a6;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.5) 0%, rgba(212, 175, 55, 0.2) 70%);
}

.prayer-link.active .prayer-text {
    color: #f4e4a6;
    text-shadow: 0 3px 10px rgba(212, 175, 55, 0.6);
}



/* 响应式设计 */
@media (max-width: 768px) {
    .prayer-links-container {
        padding: 20px;
        margin-bottom: 40px;
    }
    
    .prayer-links-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .prayer-link {
        padding: 20px 15px;
    }
    
    .prayer-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }
    
    .prayer-icon img {
        width: 35px;
        height: 35px;
    }
    
    .prayer-text {
        font-size: 14px;
    }
    
    .incense-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* 祈愿卡片移动端优化 */
    .prayer-card {
        padding: 20px;
        margin: 10px 0;
        border-radius: 15px;
    }
    
    .prayer-card .prayer-header {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .prayer-card .prayer-avatar {
        width: 40px;
        height: 40px;
        font-size: 14px;
        margin-right: 10px;
    }
    
    .prayer-card .prayer-meta {
        flex: 1;
        min-width: 120px;
    }
    
    .prayer-card .prayer-name {
        font-size: 14px;
    }
    
    .prayer-card .prayer-time {
        font-size: 12px;
    }
    
    .prayer-card .prayer-type-badge {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    .prayer-card .prayer-content {
        font-size: 14px;
        line-height: 1.5;
        margin: 15px 0;
    }
    
    .prayer-card .prayer-actions {
        justify-content: flex-start;
        gap: 15px;
    }
    
    .prayer-card .prayer-action {
        font-size: 13px;
        padding: 5px 10px;
    }
}

@media (max-width: 480px) {
    .prayer-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .prayer-link {
        padding: 15px 10px;
    }
    
    /* 小屏幕祈愿卡片优化 */
    .prayer-card {
        padding: 15px;
        margin: 8px 0;
        border-radius: 12px;
    }
    
    .prayer-card .prayer-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .prayer-card .prayer-avatar {
        width: 35px;
        height: 35px;
        font-size: 12px;
        margin-right: 8px;
    }
    
    .prayer-card .prayer-meta {
        width: 100%;
    }
    
    .prayer-card .prayer-name {
        font-size: 13px;
    }
    
    .prayer-card .prayer-time {
        font-size: 11px;
    }
    
    .prayer-card .prayer-type {
        align-self: flex-end;
        margin-top: -25px;
    }
    
    .prayer-card .prayer-type-badge {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .prayer-card .prayer-content {
        font-size: 13px;
        line-height: 1.4;
        margin: 12px 0;
    }
    
    .prayer-card .prayer-actions {
        justify-content: center;
        gap: 10px;
    }
    
    .prayer-card .prayer-action {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .prayer-icon {
        width: 50px;
        height: 50px;
    }
    
    .prayer-icon img {
        width: 30px;
        height: 30px;
    }
    
    .prayer-text {
        font-size: 12px;
    }
}

.incense-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.5" fill="%23d4af37" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>') repeat;
    opacity: 0.3;
    animation: twinkle 10s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* 上香容器 */
.incense-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
    margin-bottom: 80px;
}

/* 上香台样式 */
.incense-altar {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* 视图切换按钮 */
.view-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.view-toggle .btn {
    padding: 8px 16px;
    border: 2px solid #d4af37;
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.view-toggle .btn:hover {
    background: rgba(212, 175, 55, 0.2);
    transform: translateY(-2px);
}

.view-toggle .btn.active {
    background: #d4af37;
    color: #1a0f08;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.4);
}

/* 3D香炉容器 */
.incense-3d-container {
    width: 400px;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(26, 15, 8, 0.8) 0%, rgba(44, 24, 16, 0.6) 100%);
    position: relative;
}

.incense-3d-container canvas {
    width: 100% !important;
    height: 100% !important;
    border-radius: 15px;
}

.altar-base {
    width: 300px;
    height: 80px;
    background: linear-gradient(45deg, #8B4513, #A0522D, #8B4513);
    border-radius: 15px;
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 0.1);
    position: relative;
    margin-bottom: 20px;
}

.altar-base::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 10px;
    right: 10px;
    height: 10px;
    background: linear-gradient(90deg, #d4af37, #ffd700, #d4af37);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* 香炉底座 */
.incense-burner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.burner-base {
    width: 180px;
    height: 80px;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(139, 69, 19, 0.9) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 30%, rgba(160, 82, 45, 0.8) 0%, transparent 40%),
        linear-gradient(145deg, #654321 0%, #8B4513 20%, #A0522D 40%, #8B4513 70%, #654321 100%);
    border-radius: 50%;
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.6),
        inset 0 3px 6px rgba(255, 255, 255, 0.15),
        inset 0 -3px 6px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(139, 69, 19, 0.3);
    position: relative;
    margin-bottom: 15px;
    transform: perspective(200px) rotateX(15deg);
}

.burner-base::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 15px;
    right: 15px;
    height: 6px;
    background: linear-gradient(90deg, #d4af37, #ffd700, #d4af37);
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.6);
}

/* 香炉装饰边缘 */
.burner-base::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 12px;
    right: 12px;
    height: 8px;
    background: linear-gradient(90deg, #d4af37, #ffd700, #e6c547, #ffd700, #d4af37);
    border-radius: 50%;
    box-shadow: 
        0 0 12px rgba(212, 175, 55, 0.8),
        inset 0 1px 2px rgba(255, 255, 255, 0.3),
        inset 0 -1px 2px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

/* 香炉三足支撑 */
.burner-base::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 15px solid #654321;
    filter: drop-shadow(-25px 0 0 #654321) drop-shadow(25px 0 0 #654321);
    z-index: 1;
}

/* 香炉内部沙土效果 */
.incense-sticks::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 12px;
    background: 
        radial-gradient(ellipse at 25% 40%, rgba(139, 69, 19, 0.8) 0%, transparent 35%),
        radial-gradient(ellipse at 75% 60%, rgba(160, 82, 45, 0.7) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(101, 67, 33, 0.6) 0%, transparent 50%),
        linear-gradient(90deg, rgba(139, 69, 19, 0.4) 0%, rgba(160, 82, 45, 0.6) 50%, rgba(139, 69, 19, 0.4) 100%);
    border-radius: 50%;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* 香棒容器 */
.incense-sticks {
    display: flex;
    gap: 8px;
    justify-content: center;
    position: relative;
    z-index: 2;
    transform: translateY(-25px);
    padding: 0 10px;
}

/* 香棒样式 */
.incense-stick {
    position: relative;
    width: 3px;
    height: 120px;
    background: linear-gradient(to top, 
        #2F1B14 0%, 
        #654321 15%, 
        #8B4513 30%, 
        #A0522D 50%, 
        #D2691E 70%, 
        #CD853F 85%, 
        #DEB887 100%);
    border-radius: 1.5px 1.5px 0 0;
    box-shadow: 
        0 0 2px rgba(0, 0, 0, 0.5),
        inset 0.5px 0 0.5px rgba(255, 255, 255, 0.1),
        inset -0.5px 0 0.5px rgba(0, 0, 0, 0.2);
    transform-origin: bottom center;
    animation: gentleSway 8s ease-in-out infinite;
    cursor: pointer;
    transition: all 0.3s ease;
}

.incense-stick:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

/* 让香棒呈现自然的倾斜角度 */
.incense-stick:nth-child(1) {
    transform: rotate(-6deg);
    animation-delay: 0s;
    margin-left: -2px;
}

.incense-stick:nth-child(2) {
    transform: rotate(2deg);
    animation-delay: -3s;
    z-index: 3;
}

.incense-stick:nth-child(3) {
    transform: rotate(-4deg);
    animation-delay: -6s;
    margin-right: -2px;
}

.incense-stick:nth-child(3) {
    animation-delay: -2.6s;
}

/* 香棒顶部发光效果 */
.incense-stick::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 4px;
    background: radial-gradient(ellipse, #ff6b35 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.incense-stick.burning::before {
    opacity: 0.8;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes gentleSway {
    0%, 100% {
        transform: inherit;
    }
    25% {
        transform: inherit rotate(1deg);
    }
    50% {
        transform: inherit rotate(-0.5deg);
    }
    75% {
        transform: inherit rotate(0.8deg);
    }
}

/* 燃烧时的摇摆动画 */
.incense-stick.burning {
    animation: burningSway 4s ease-in-out infinite;
}

@keyframes burningSway {
    0%, 100% {
        transform: inherit;
    }
    25% {
        transform: inherit rotate(2deg);
    }
    75% {
        transform: inherit rotate(-1.5deg);
    }
}

@keyframes glow {
    0% {
        opacity: 0.6;
        transform: translateX(-50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) scale(1.2);
    }
}

/* 火焰效果 */
.incense-flame {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 12px;
    background: radial-gradient(ellipse at bottom, #ff4500 0%, #ff6b35 25%, #ff8c42 45%, #ffd23f 75%, rgba(255, 210, 63, 0.4) 90%, transparent 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0;
    filter: blur(0.3px);
    animation: flicker 0.25s ease-in-out infinite alternate;
    z-index: 10;
}

.incense-stick.burning .incense-flame {
    opacity: 1;
}

/* 火焰内核 */
.incense-flame::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: radial-gradient(ellipse, #ffff00 0%, #ff8c42 50%, transparent 100%);
    border-radius: 50%;
    animation: innerFlame 0.2s ease-in-out infinite alternate;
}

@keyframes flicker {
    0% {
        transform: translateX(-50%) scale(0.9) rotate(-3deg);
        opacity: 0.7;
    }
    50% {
        transform: translateX(-50%) scale(1.1) rotate(1deg);
        opacity: 0.9;
    }
    100% {
        transform: translateX(-50%) scale(1.05) rotate(2deg);
        opacity: 1;
    }
}

@keyframes innerFlame {
    0% {
        transform: translateX(-50%) scale(0.8);
        opacity: 0.8;
    }
    100% {
        transform: translateX(-50%) scale(1.2);
        opacity: 1;
    }
}

/* 烟雾效果 */
.incense-smoke {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 1.5px;
    height: 280px;
    opacity: 0;
    pointer-events: none;
    overflow: visible;
    z-index: 5;
}

.incense-stick.burning .incense-smoke {
    opacity: 1;
}

/* 烟雾粒子 */
.smoke-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: radial-gradient(circle, rgba(220, 220, 220, 0.8) 0%, rgba(180, 180, 180, 0.4) 50%, transparent 100%);
    border-radius: 50%;
    animation: smokeRise 6s ease-out infinite;
}

.smoke-particle:nth-child(1) { animation-delay: 0s; left: 0px; }
.smoke-particle:nth-child(2) { animation-delay: 0.5s; left: 1px; }
.smoke-particle:nth-child(3) { animation-delay: 1s; left: -1px; }
.smoke-particle:nth-child(4) { animation-delay: 1.5s; left: 2px; }
.smoke-particle:nth-child(5) { animation-delay: 2s; left: -2px; }
.smoke-particle:nth-child(6) { animation-delay: 2.5s; left: 0px; }

/* 烟雾流动效果 */
.incense-smoke::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: linear-gradient(to top, 
        rgba(200, 200, 200, 0.6) 0%, 
        rgba(180, 180, 180, 0.4) 30%, 
        rgba(160, 160, 160, 0.2) 60%, 
        transparent 100%);
    animation: smokeFlow 4s ease-in-out infinite;
}

@keyframes smokeRise {
    0% {
        transform: translateY(0) translateX(0) scale(0.3);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    20% {
        transform: translateY(-30px) translateX(5px) scale(0.6);
        opacity: 0.7;
    }
    40% {
        transform: translateY(-80px) translateX(-8px) scale(1);
        opacity: 0.5;
    }
    60% {
        transform: translateY(-140px) translateX(12px) scale(1.5);
        opacity: 0.3;
    }
    80% {
        transform: translateY(-200px) translateX(-15px) scale(2.2);
        opacity: 0.1;
    }
    100% {
        transform: translateY(-280px) translateX(20px) scale(3);
        opacity: 0;
    }
}

@keyframes smokeFlow {
    0%, 100% {
        transform: translateX(-50%) skewX(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translateX(-50%) skewX(2deg);
        opacity: 0.8;
    }
    75% {
        transform: translateX(-50%) skewX(-2deg);
        opacity: 0.4;
    }
}

/* 火花动画 */
@keyframes sparkle {
    0% {
        transform: rotate(0deg) translateY(0) scale(0);
        opacity: 1;
    }
    50% {
        transform: rotate(180deg) translateY(-15px) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: rotate(360deg) translateY(-25px) scale(0);
        opacity: 0;
    }
}

/* 屏幕震动动画 */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10% { transform: translateX(-2px); }
    20% { transform: translateX(2px); }
    30% { transform: translateX(-2px); }
    40% { transform: translateX(2px); }
    50% { transform: translateX(-1px); }
    60% { transform: translateX(1px); }
    70% { transform: translateX(-1px); }
    80% { transform: translateX(1px); }
    90% { transform: translateX(-1px); }
}

/* 光晕脉冲动画 */
@keyframes glowPulse {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* 香品选择区域 */
.incense-selection {
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid #d4af37;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.incense-selection:hover {
    background: rgba(212, 175, 55, 0.15);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.incense-selection h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ffd700;
}

.incense-types {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.incense-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: rgba(44, 24, 16, 0.5);
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.incense-type::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
    transition: left 0.5s ease;
}

.incense-type:hover {
    border-color: #d4af37;
    background: rgba(212, 175, 55, 0.2);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.4);
}

.incense-type:hover::before {
    left: 100%;
}

.incense-type.selected {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.2);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
    animation: selectedPulse 2s ease-in-out infinite;
}

@keyframes selectedPulse {
    0%, 100% {
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.6);
    }
    50% {
        box-shadow: 0 0 35px rgba(255, 215, 0, 0.8);
    }
}

.incense-type img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
    border-radius: 50%;
    border: 2px solid #d4af37;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.5));
}

.incense-type:hover img {
    transform: rotate(10deg) scale(1.1);
    border-color: #ffd700;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.7));
}

.incense-type.selected img {
    animation: imageGlow 2s ease-in-out infinite;
}

@keyframes imageGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.7));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(255, 215, 0, 1));
    }
}

.incense-type span {
    display: block;
    margin-bottom: 5px;
    color: #d4af37;
}

.incense-type .price {
    font-weight: bold;
    color: #ffd700;
    font-size: 1.1rem;
}

/* 祈愿表单 */
.prayer-form {
    grid-column: 1 / -1;
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid #d4af37;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    margin-top: 30px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.2);
    transition: all 0.3s ease;
}

.prayer-form:hover {
    background: rgba(212, 175, 55, 0.15);
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}

.prayer-form h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ffd700;
}

.prayer-form textarea {
    width: 100%;
    max-width: 500px;
    height: 120px;
    padding: 15px;
    background: rgba(44, 24, 16, 0.8);
    border: 2px solid #d4af37;
    border-radius: 10px;
    color: #d4af37;
    font-size: 16px;
    resize: vertical;
    margin-bottom: 20px;
}

.prayer-form textarea::placeholder {
    color: rgba(212, 175, 55, 0.6);
}

.prayer-form textarea:focus {
    outline: none;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* 点燃按钮 */
#lightIncense {
    margin-top: 20px;
    padding: 12px 30px;
    font-size: 1.1rem;
    background: linear-gradient(45deg, #d4af37, #ffd700);
    border: none;
    border-radius: 25px;
    color: #2c1810;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
    position: relative;
    overflow: hidden;
}

#lightIncense::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

#lightIncense:hover {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.6);
}

#lightIncense:hover::before {
    left: 100%;
}

#lightIncense:active {
    transform: translateY(0) scale(0.98);
}

#lightIncense.lighting {
    background: linear-gradient(45deg, #ff6b35, #ff8c42);
    animation: lightingPulse 1s ease-in-out infinite;
    pointer-events: none;
}

@keyframes lightingPulse {
    0%, 100% {
        box-shadow: 0 5px 15px rgba(255, 107, 53, 0.5);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 10px 25px rgba(255, 107, 53, 0.8);
        transform: scale(1.02);
    }
}

.light-btn.lighting {
    animation: lightingEffect 2s ease-in-out;
}

@keyframes lightingEffect {
    0%, 100% {
        background: linear-gradient(45deg, #d4af37, #ffd700);
    }
    50% {
        background: linear-gradient(45deg, #ff6b35, #ff8c42);
        box-shadow: 0 0 30px rgba(255, 107, 53, 0.8);
    }
}

/* 祈福墙 */
.prayer-wall {
    margin-top: 50px;
    position: relative;
    z-index: 1;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.5), rgba(26, 35, 50, 0.4)),
        radial-gradient(circle at top center, rgba(212, 175, 55, 0.1), transparent 60%);
    border: 3px solid transparent;
    border-image: linear-gradient(135deg, rgba(212, 175, 55, 0.6), rgba(255, 215, 0, 0.8), rgba(212, 175, 55, 0.6)) 1;
    border-radius: 25px;
    padding: 40px;
    margin-bottom: 40px;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 15px 40px rgba(212, 175, 55, 0.4),
        inset 0 3px 8px rgba(255, 215, 0, 0.15),
        0 0 0 1px rgba(255, 215, 0, 0.2);
    overflow: hidden;
}

.prayer-wall::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.05), transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.prayer-wall h3 {
    color: #ffd700;
    text-align: center;
    margin-bottom: 35px;
    font-size: 2.2rem;
    font-weight: 800;
    text-shadow: 
        3px 3px 6px rgba(0,0,0,0.6),
        0 0 20px rgba(255, 215, 0, 0.5),
        0 0 40px rgba(255, 215, 0, 0.3);
    position: relative;
    padding: 15px 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 215, 0, 0.05));
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(10px);
}

.prayer-wall h3::before {
    content: '✨';
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    animation: sparkle 2s ease-in-out infinite;
}

.prayer-wall h3::after {
    content: '✨';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    animation: sparkle 2s ease-in-out infinite 1s;
}

/* 弹幕容器 */
.prayer-danmaku-container {
    position: relative;
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, rgba(44, 24, 16, 0.95), rgba(76, 52, 36, 0.9));
    border: 3px solid #d4af37;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 
        0 15px 35px rgba(212, 175, 55, 0.4),
        inset 0 2px 10px rgba(255, 215, 0, 0.1);
    z-index: 10;
}

.prayer-danmaku-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stars" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="0.5" fill="%23ffd700" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23stars)"/></svg>') repeat;
    opacity: 0.1;
    pointer-events: none;
}

/* 弹幕项目 */
.danmaku-item {
    position: absolute;
    white-space: nowrap;
    color: #ffd700;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2), rgba(255, 215, 0, 0.15));
    border: 2px solid rgba(212, 175, 55, 0.4);
    border-radius: 25px;
    backdrop-filter: blur(8px);
    box-shadow: 
        0 4px 15px rgba(212, 175, 55, 0.3),
        inset 0 1px 3px rgba(255, 215, 0, 0.2);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 15;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.danmaku-item:hover {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.35), rgba(255, 215, 0, 0.25));
    border-color: #ffd700;
    transform: scale(1.08) translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(255, 215, 0, 0.5),
        inset 0 2px 5px rgba(255, 215, 0, 0.3);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
}

/* 弹幕动画 */
@keyframes danmaku-move {
    from {
        transform: translateX(100vw);
    }
    to {
        transform: translateX(-100%);
    }
}

.prayer-danmaku-item.moving {
    animation: danmaku-move linear;
}

/* 弹幕控制按钮 */
.prayer-danmaku-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.danmaku-control-btn {
    background: linear-gradient(135deg, #d4af37, #ffd700, #f4e87c);
    color: #2c1810;
    border: 2px solid rgba(212, 175, 55, 0.3);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 6px 20px rgba(212, 175, 55, 0.4),
        inset 0 1px 3px rgba(255, 255, 255, 0.3);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.danmaku-control-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.danmaku-control-btn:hover::before {
    left: 100%;
}

.danmaku-control-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 10px 30px rgba(212, 175, 55, 0.6),
        inset 0 2px 5px rgba(255, 255, 255, 0.4);
    border-color: #ffd700;
}

.danmaku-control-btn:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 
        0 5px 15px rgba(212, 175, 55, 0.5),
        inset 0 1px 3px rgba(255, 255, 255, 0.3);
}

.danmaku-control-btn.paused {
    background: linear-gradient(135deg, #666, #888, #999);
    color: #fff;
    border-color: rgba(102, 102, 102, 0.5);
    box-shadow: 
        0 6px 20px rgba(102, 102, 102, 0.4),
        inset 0 1px 3px rgba(255, 255, 255, 0.2);
}

/* 传统祈福墙样式（保留） */
.prayers-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
    margin-top: 40px;
    padding: 20px;
}

.prayer-card {
    position: relative;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border-radius: 20px;
    padding: 30px;
    margin: 20px 0;
    transition: all 0.3s ease;
    overflow: hidden;
    backdrop-filter: blur(15px);
    z-index: 2;
    transform-style: preserve-3d;
}

.prayer-card::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 3px;
    background: linear-gradient(45deg, 
        #ffd700, 
        #ff6b6b, 
        #4ecdc4, 
        #45b7d1, 
        #96ceb4, 
        #feca57, 
        #ff9ff3, 
        #54a0ff,
        #ffd700
    );
    border-radius: 20px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    animation: rotate-border 3s linear infinite;
    z-index: -1;
}

@keyframes rotate-border {
    0% {
        background: linear-gradient(45deg, 
            #ffd700, 
            #ff6b6b, 
            #4ecdc4, 
            #45b7d1, 
            #96ceb4, 
            #feca57, 
            #ff9ff3, 
            #54a0ff,
            #ffd700
        );
    }
    25% {
        background: linear-gradient(135deg, 
            #ff6b6b, 
            #4ecdc4, 
            #45b7d1, 
            #96ceb4, 
            #feca57, 
            #ff9ff3, 
            #54a0ff,
            #ffd700,
            #ff6b6b
        );
    }
    50% {
        background: linear-gradient(225deg, 
            #4ecdc4, 
            #45b7d1, 
            #96ceb4, 
            #feca57, 
            #ff9ff3, 
            #54a0ff,
            #ffd700,
            #ff6b6b,
            #4ecdc4
        );
    }
    75% {
        background: linear-gradient(315deg, 
            #45b7d1, 
            #96ceb4, 
            #feca57, 
            #ff9ff3, 
            #54a0ff,
            #ffd700,
            #ff6b6b,
            #4ecdc4,
            #45b7d1
        );
    }
    100% {
        background: linear-gradient(45deg, 
            #ffd700, 
            #ff6b6b, 
            #4ecdc4, 
            #45b7d1, 
            #96ceb4, 
            #feca57, 
            #ff9ff3, 
            #54a0ff,
            #ffd700
        );
    }
}



.prayer-card::after {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.6), transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: sparkle 2s infinite;
}

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

.prayer-card:hover::before {
    animation-duration: 1.5s;
}

.prayer-card:hover::after {
    opacity: 1;
}

.prayer-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 40px rgba(255, 215, 0, 0.3),
        0 0 30px rgba(255, 215, 0, 0.2);
    backdrop-filter: blur(20px);
}

/* 祈愿卡片头部样式 */
.prayer-card .prayer-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 215, 0, 0.05));
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.prayer-card .prayer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #ffd700, #f4e87c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c1810;
    font-weight: bold;
    margin-right: 15px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
    border: 2px solid rgba(255, 215, 0, 0.3);
    font-size: 14px;
}

.prayer-card .prayer-meta {
    flex: 1;
}

.prayer-card .prayer-name {
    color: #ffd700;
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 1.1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.prayer-card .prayer-time {
    color: rgba(212, 175, 55, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

.prayer-card .prayer-type {
    margin-left: auto;
}

.prayer-card .prayer-type-badge {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(212, 175, 55, 0.1));
    color: #ffd700;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 215, 0, 0.3);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* 祈愿内容样式 */
.prayer-card .prayer-content {
    color: #ffd700;
    margin-bottom: 25px;
    line-height: 1.8;
    font-size: 17px;
    font-weight: 600;
    text-shadow: 
        2px 2px 4px rgba(0,0,0,0.4),
        0 0 10px rgba(255, 215, 0, 0.3);
    position: relative;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    border-left: 4px solid rgba(255, 215, 0, 0.6);
    backdrop-filter: blur(5px);
}

.prayer-card .prayer-content::before {
    content: '"';
    position: absolute;
    top: -5px;
    left: 5px;
    font-size: 30px;
    color: rgba(255, 215, 0, 0.4);
    font-family: serif;
}

.prayer-card .prayer-content::after {
    content: '"';
    position: absolute;
    bottom: -15px;
    right: 5px;
    font-size: 30px;
    color: rgba(255, 215, 0, 0.4);
    font-family: serif;
}

/* 祈愿操作按钮样式 */
.prayer-card .prayer-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 215, 0, 0.1);
}

.prayer-card .prayer-action {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(212, 175, 55, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: #ffd700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.prayer-card .prayer-action:hover {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(212, 175, 55, 0.1));
    border-color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

.prayer-card .prayer-action.liked {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2), rgba(255, 107, 107, 0.1));
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.prayer-card .prayer-action .like-count {
    font-weight: 600;
}

.like-btn {
    border: 2px solid #c7c7c7;
    border-radius: 40px;
    padding: 0.45rem 0.75rem;
    color: #878787;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: grayscale(100%);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background: transparent;
    cursor: pointer;
}

.like-btn.liked {
    color: #ff6e6f;
    border-color: currentColor;
    filter: grayscale(0);
}

.like-btn:hover {
    border-color: currentColor;
}

.like-icon {
    width: 18px;
    height: 16px;
    display: inline-block;
    position: relative;
    margin-right: 0.25em;
    font-size: 1.5rem;
    background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAyMSAxOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTAuMTAxIDQuNDE3UzguODk1LjIwNyA1LjExMS4yMDdjLTQuNDY1IDAtMTAuOTY3IDYuODQ2IDUuMDgyIDE3LjU5MkMyNS4yMzcgNy4wMyAxOS42NjUuMjAyIDE1LjUwMS4yMDJjLTQuMTYyIDAtNS40IDQuMjE1LTUuNCA0LjIxNXoiIGZpbGw9IiNGRjZFNkYiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==") no-repeat center;
    background-size: 100%;
    -webkit-animation: heartUnlike 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    animation: heartUnlike 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.liked .like-icon {
    -webkit-animation: heartPulse 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    animation: heartPulse 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.liked .like-icon [class^=heart-animation-] {
    background: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMTgiIHZpZXdCb3g9IjAgMCAyMSAxOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTAuMTAxIDQuNDE3UzguODk1LjIwNyA1LjExMS4yMDdjLTQuNDY1IDAtMTAuOTY3IDYuODQ2IDUuMDgyIDE3LjU5MkMyNS4yMzcgNy4wMyAxOS42NjUuMjAyIDE1LjUwMS4yMDJjLTQuMTYyIDAtNS40IDQuMjE1LTUuNCA0LjIxNXoiIGZpbGw9IiNGRjZFNkYiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvc3ZnPg==") no-repeat center;
    background-size: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 16px;
    height: 14px;
    opacity: 0;
}

.liked .like-icon [class^=heart-animation-]::before,
.liked .like-icon [class^=heart-animation-]::after {
    content: "";
    background: inherit;
    background-size: 100%;
    width: inherit;
    height: inherit;
    display: inherit;
    position: relative;
    top: inherit;
    left: inherit;
    opacity: 0;
}

.liked .like-icon .heart-animation-1 {
    -webkit-animation: heartFloatMain-1 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    animation: heartFloatMain-1 1s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.liked .like-icon .heart-animation-1::before,
.liked .like-icon .heart-animation-1::after {
    width: 12px;
    height: 10px;
    visibility: hidden;
}

.liked .like-icon .heart-animation-1::before {
    opacity: 0.6;
    -webkit-animation: heartFloatSub-1 1s 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    animation: heartFloatSub-1 1s 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.liked .like-icon .heart-animation-1::after {
    -webkit-animation: heartFloatSub-2 1s 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    animation: heartFloatSub-2 1s 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    opacity: 0.75;
}

.liked .like-icon .heart-animation-2 {
    -webkit-animation: heartFloatMain-2 1s 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    animation: heartFloatMain-2 1s 0.1s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.liked .like-icon .heart-animation-2::before,
.liked .like-icon .heart-animation-2::after {
    width: 10px;
    height: 8px;
    visibility: hidden;
}

.liked .like-icon .heart-animation-2::before {
    -webkit-animation: heartFloatSub-3 1s 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    animation: heartFloatSub-3 1s 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    opacity: 0.25;
}

.liked .like-icon .heart-animation-2::after {
    -webkit-animation: heartFloatSub-4 1s 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    animation: heartFloatSub-4 1s 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
    opacity: 0.4;
}

@-webkit-keyframes heartPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5);
    }
}

@keyframes heartPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.5);
    }
}

@-webkit-keyframes heartUnlike {
    50% {
        transform: scale(0.75);
    }
}

@keyframes heartUnlike {
    50% {
        transform: scale(0.75);
    }
}

@-webkit-keyframes heartFloatMain-1 {
    0% {
        opacity: 0;
        transform: translate(0) rotate(0);
    }
    50% {
        opacity: 1;
        transform: translate(0, -25px) rotate(-20deg);
    }
}

@keyframes heartFloatMain-1 {
    0% {
        opacity: 0;
        transform: translate(0) rotate(0);
    }
    50% {
        opacity: 1;
        transform: translate(0, -25px) rotate(-20deg);
    }
}

@-webkit-keyframes heartFloatMain-2 {
    0% {
        opacity: 0;
        transform: translate(0) rotate(0) scale(0);
    }
    50% {
        opacity: 0.9;
        transform: translate(-10px, -38px) rotate(25deg) scale(1);
    }
}

@keyframes heartFloatMain-2 {
    0% {
        opacity: 0;
        transform: translate(0) rotate(0) scale(0);
    }
    50% {
        opacity: 0.9;
        transform: translate(-10px, -38px) rotate(25deg) scale(1);
    }
}

@-webkit-keyframes heartFloatSub-1 {
    0% {
        visibility: hidden;
        transform: translate(0) rotate(0);
    }
    50% {
        visibility: visible;
        transform: translate(13px, -13px) rotate(30deg);
    }
}

@keyframes heartFloatSub-1 {
    0% {
        visibility: hidden;
        transform: translate(0) rotate(0);
    }
    50% {
        visibility: visible;
        transform: translate(13px, -13px) rotate(30deg);
    }
}

@-webkit-keyframes heartFloatSub-2 {
    0% {
        visibility: hidden;
        transform: translate(0) rotate(0);
    }
    50% {
        visibility: visible;
        transform: translate(18px, -10px) rotate(55deg);
    }
}

@keyframes heartFloatSub-2 {
    0% {
        visibility: hidden;
        transform: translate(0) rotate(0);
    }
    50% {
        visibility: visible;
        transform: translate(18px, -10px) rotate(55deg);
    }
}

@-webkit-keyframes heartFloatSub-3 {
    0% {
        visibility: hidden;
        transform: translate(0) rotate(0);
    }
    50% {
        visibility: visible;
        transform: translate(-10px, -10px) rotate(-40deg);
    }
    100% {
        transform: translate(-50px, 0);
    }
}

@keyframes heartFloatSub-3 {
    0% {
        visibility: hidden;
        transform: translate(0) rotate(0);
    }
    50% {
        visibility: visible;
        transform: translate(-10px, -10px) rotate(-40deg);
    }
    100% {
        transform: translate(-50px, 0);
    }
}

@-webkit-keyframes heartFloatSub-4 {
    0% {
        visibility: hidden;
        transform: translate(0) rotate(0);
    }
    50% {
        visibility: visible;
        transform: translate(2px, -18px) rotate(-25deg);
    }
}

@keyframes heartFloatSub-4 {
    0% {
        visibility: hidden;
        transform: translate(0) rotate(0);
    }
    50% {
        visibility: visible;
        transform: translate(2px, -18px) rotate(-25deg);
    }
}

/* 全面响应式设计 */

/* 超大屏幕优化 */
@media (min-width: 1400px) {
    .incense-section {
        padding: 120px 0;
    }
    
    .incense-container {
        gap: 60px;
    }
    
    .incense-3d-container {
        width: 500px;
        height: 400px;
    }
    
    .altar-base {
        width: 350px;
        height: 100px;
    }
    
    .burner-base {
        width: 220px;
        height: 100px;
    }
    
    .incense-stick {
        height: 140px;
    }
}

/* 大屏幕 */
@media (max-width: 1399px) and (min-width: 1200px) {
    .incense-section {
        padding: 110px 0;
    }
    
    .incense-container {
        gap: 55px;
    }
    
    .incense-3d-container {
        width: 450px;
        height: 350px;
    }
}

/* 中等屏幕 */
@media (max-width: 1199px) and (min-width: 992px) {
    .incense-section {
        padding: 90px 0;
    }
    
    .incense-container {
        gap: 45px;
    }
    
    .incense-3d-container {
        width: 380px;
        height: 280px;
    }
    
    .altar-base {
        width: 280px;
        height: 75px;
    }
    
    .burner-base {
        width: 160px;
        height: 70px;
    }
}

/* 平板屏幕 */
@media (max-width: 991px) and (min-width: 768px) {
    .incense-section {
        padding: 80px 0;
    }
    
    .incense-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .incense-3d-container {
        width: 350px;
        height: 260px;
        margin: 0 auto;
    }
    
    .incense-selection {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .incense-types {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .altar-base {
        width: 260px;
        height: 70px;
    }
    
    .burner-base {
        width: 150px;
        height: 65px;
    }
}

/* 小屏幕平板和大手机 */
@media (max-width: 767px) and (min-width: 576px) {
    .incense-section {
        padding: 70px 0;
    }
    
    .incense-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .incense-3d-container {
        width: 320px;
        height: 240px;
        margin: 0 auto;
    }
    
    .incense-types {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .incense-type {
        min-width: 100px;
        padding: 15px;
    }
    
    .altar-base {
        width: 240px;
        height: 65px;
    }
    
    .burner-base {
        width: 140px;
        height: 60px;
    }
    
    .incense-stick {
        height: 110px;
    }
}

/* 小手机屏幕 */
@media (max-width: 575px) {
    .incense-section {
        padding: 60px 0;
    }
    
    .incense-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .incense-3d-container {
        width: 280px;
        height: 210px;
        margin: 0 auto;
    }
    
    .incense-types {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .incense-type {
        min-width: 90px;
        padding: 12px;
    }
    
    .incense-type img {
        width: 45px;
        height: 45px;
    }
    
    .altar-base {
        width: 220px;
        height: 60px;
    }
    
    .burner-base {
        width: 130px;
        height: 55px;
    }
    
    .incense-stick {
        height: 100px;
    }
    
    .prayers-container {
        grid-template-columns: 1fr;
    }
    
    .prayer-form textarea {
        height: 100px;
        font-size: 14px;
    }
}

/* 超小屏幕 */
@media (max-width: 480px) {
    .incense-section {
        padding: 50px 0;
    }
    
    .incense-3d-container {
        width: 250px;
        height: 180px;
    }
    
    .altar-base {
        width: 200px;
        height: 50px;
    }
    
    .burner-base {
        width: 120px;
        height: 50px;
    }
    
    .incense-stick {
        height: 90px;
        width: 2.5px;
    }
    
    .incense-type {
        min-width: 80px;
        padding: 10px;
    }
    
    .incense-type img {
        width: 40px;
        height: 40px;
    }
    
    .incense-type span {
        font-size: 12px;
    }
    
    .prayer-form {
        padding: 20px;
    }
    
    .prayer-form h3 {
        font-size: 1.2rem;
    }
    
    #lightIncense {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

/* 横屏模式优化 */
@media (max-height: 500px) and (orientation: landscape) {
    .incense-section {
        padding: 30px 0;
    }
    
    .incense-container {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .incense-3d-container {
        width: 300px;
        height: 200px;
    }
    
    .altar-base {
        width: 200px;
        height: 40px;
    }
    
    .incense-stick {
        height: 80px;
    }
    
    .prayer-form {
        padding: 15px;
    }
    
    .prayer-form textarea {
        height: 80px;
    }
}

/* 神仙选择样式 */
.gods-selection-container {
    margin: 40px 0;
    text-align: center;
}

.gods-title {
    color: #FFD700;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.gods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.god-item {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.god-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.god-item:hover::before {
    transform: translateX(100%);
}

.god-item:hover {
    transform: translateY(-10px);
    border-color: #FFD700;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.god-thumbnail {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 215, 0, 0.5);
    transition: all 0.3s ease;
}

.god-item:hover .god-thumbnail {
    border-color: #FFD700;
    transform: scale(1.1);
}

.god-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.god-item:hover .god-thumbnail img {
    transform: scale(1.1);
}

.god-name {
    display: block;
    color: #FFD700;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.god-function {
    display: block;
    color: #E6E6FA;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.9;
}

/* 祈愿弹窗样式 */
.prayer-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 10000;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.prayer-modal.show {
    opacity: 1;
}

.prayer-modal .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(1400px, 90vw);
    max-height: 85vh;
    background: rgba(20, 20, 40, 0.95);
    border: 2px solid #FFD700;
    border-radius: 15px;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.prayer-modal .modal-header {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 215, 0, 0.1));
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prayer-modal .modal-header h3 {
    color: #FFD700;
    margin: 0;
    font-size: 24px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.prayer-modal .close-modal {
    background: none;
    border: none;
    color: #FFD700;
    font-size: 30px;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.prayer-modal .close-modal:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: rotate(90deg);
}

.prayer-modal .modal-body {
    height: calc(100% - 70px);
    padding: 0;
}

.prayer-modal .modal-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    overflow: hidden;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .gods-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }
    
    .god-thumbnail {
        width: 80px;
        height: 80px;
    }
    
    .god-name {
        font-size: 16px;
    }
    
    .god-function {
        font-size: 12px;
    }
    
    .modal-content {
        width: 95vw;
        height: 95vh;
        max-width: 1400px;
        max-height: 1000px;
    }
    
    .gods-title {
        font-size: 22px;
    }
}