@charset "UTF-8";

/* --- 全局設定 --- */
body {
    font-family: 'Noto Sans TC', sans-serif;
    background-color: #FFF9F0;
    /* 背景圖設定：手機版放大以突顯上方燈籠 */
    background-image: url('images/bg.png');
    background-repeat: no-repeat;
    background-position: top center;
    background-attachment: fixed;
    background-size: 100% auto;
    color: #4A2323;
    position: relative;
    overflow-x: hidden;
}

.font-serif {
    font-family: 'Noto Serif TC', serif;
}

/* --- RWD 背景調整 --- */
@media (max-width: 1024px) {
    body {
        background-size: 140% auto;
    }
}

@media (max-width: 768px) {
    body {
        /* 手機版：放大背景並取消 fixed 以提升效能 */
        background-size: 180% auto;
        background-attachment: scroll;
    }
}

/* --- 動畫效果 --- */

/* 籤筒搖晃 */
@keyframes shake {
    0%, 50%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(5deg); }
    75% { transform: rotate(-5deg); }
}
.animate-shake {
    animation: shake 0.5s ease-in-out infinite;
}

/* 籤詩浮現 */
@keyframes slide-up-fade {
    0% { transform: translateY(50px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
.animate-slide-up {
    animation: slide-up-fade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* 吸引點擊的閃爍光暈 */
@keyframes attract-glow {
    0%, 100% { 
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); 
        border-color: #D4AF37;
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 25px 8px rgba(212, 175, 55, 0.5); 
        border-color: #FFC107;
        transform: scale(1.02);
    }
}
.animate-attract-glow {
    animation: attract-glow 2s infinite ease-in-out;
}

/* --- 工具類別 --- */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 玻璃擬態效果 (Glassmorphism) */
.glass-panel {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}