/* =================================================== */
/* 智慧宝箱 - 交互效果样式 */
/* =================================================== */

/* 1. 转经轮动画 */
#prayer-wheel-float {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 9998;
    width: 70px;
    height: 70px;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s ease;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

#prayer-wheel-float:hover {
    opacity: 1;
    transform: scale(1.1);
    filter: drop-shadow(0 6px 10px rgba(212, 175, 55, 0.5));
}

#prayer-wheel-img {
    width: 100%;
    height: 100%;
    animation: rotatePrayerWheel 20s linear infinite;
    transform-origin: center center;
}

@keyframes rotatePrayerWheel {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 暂停动画 */
.prayer-wheel-paused #prayer-wheel-img {
    animation-play-state: paused;
}

/* 2. 香云飘动效果容器 */
.incense-effect-container {
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.incense-cloud {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    z-index: 1;
}

.cloud-1 {
    width: 120px;
    height: 80px;
    background: url('../images/incense-cloud-1.png') no-repeat center;
    background-size: contain;
    top: 20%;
    left: -150px;
}

.cloud-2 {
    width: 150px;
    height: 100px;
    background: url('../images/incense-cloud-2.png') no-repeat center;
    background-size: contain;
    top: 50%;
    right: -180px;
}

.cloud-3 {
    width: 100px;
    height: 70px;
    background: url('../images/incense-cloud-3.png') no-repeat center;
    background-size: contain;
    bottom: 15%;
    left: -120px;
}

/* 香云动画类 */
.cloud-animate {
    animation: floatCloud 8s ease-in-out forwards;
}

@keyframes floatCloud {
    0% {
        opacity: 0;
        transform: translateX(0) translateY(20px);
    }
    20% {
        opacity: 0.7;
    }
    80% {
        opacity: 0.7;
    }
    100% {
        opacity: 0;
        transform: translateX(calc(100vw + 200px)) translateY(-20px);
    }
}

/* 延迟动画 */
.cloud-delay-1 {
    animation-delay: 0.5s;
}

.cloud-delay-2 {
    animation-delay: 2s;
}

.cloud-delay-3 {
    animation-delay: 3.5s;
}

/* 3. 滚动触发动画类 */
.scroll-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 4. 特殊标题效果 */
.tibetan-title {
    color: #8B0000;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.tibetan-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 3px;
    background: linear-gradient(to right, #D4AF37, #8B0000);
    border-radius: 2px;
}

/* 5. 图片边框效果 */
.tibetan-border {
    border: 8px solid transparent;
    border-image: linear-gradient(45deg, #8B0000, #D4AF37, #163A5F) 1;
    border-radius: 4px;
    padding: 5px;
}

/* 6. 鼠标样式变化 */
body.prayer-cursor {
    cursor: url('../images/prayer-wheel-cursor.png') 16 16, auto !important;
}