      body, html {
            margin: 0;
            padding: 0;
            width: 100%;
            font-family: "KaiTi", "楷体", STKaiti, serif;
            background-color: #f8f9fa;
        }
        /* 宗祠主容器 */
        #ancestral_temple {
            position: relative;
            width: 100%;
            margin: 0 auto;
            background-color: #000;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        }
        /* 背景层 */
        .shrine-bg-container {
            position: relative;
            width: 100%;
            z-index: 1;
        }
        .shrine-bg-img {
            width: 100%;
            height: auto;
            display: block;
            transform-origin: center center;
        }
        /* 背景外扩增亮动画 */
        .bg-glow-active {
            animation: bgGlow 3s ease-in-out forwards;
        }
        @keyframes bgGlow {
            0% { transform: scale(1); filter: brightness(1); }
            30% { transform: scale(1.05); filter: brightness(1.3); } 
            70% { transform: scale(1.05); filter: brightness(1.3); }
            100% { transform: scale(1); filter: brightness(1); }
        }
        /* 供桌区域 */
        .altar-area {
            position: absolute;
            bottom: 25%;
            left: 50%;
            transform: translateX(-50%);
            width: 60%;
            height: 200px;
            z-index: 2;
            display: flex;
            justify-content: center;
            align-items: flex-end;
            gap: 25px;
        }
        /* 祭品通用样式 */
        .offering {
            text-align: center;
            opacity: 0; 
            animation: offeringLifecycle 4.2s ease-out forwards;
        }
        /* 上香、献花、敬酒动画 */
        .anim-incense-container { animation: incenseLifecycle 4.2s ease-out forwards; }
        @keyframes incenseLifecycle { 0% { opacity: 0; transform: translateY(-80px); } 28.5% { opacity: 1; transform: translateY(0); } 40.5% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-40px); } }
        .anim-flower-container { animation: flowerLifecycle 4.2s ease-out forwards; }
        @keyframes flowerLifecycle { 0% { opacity: 0; transform: scale(0.3) translateY(40px); } 14.3% { opacity: 1; transform: scale(1.2) translateY(-15px) rotate(-10deg); } 28.5% { opacity: 1; transform: scale(1.1) translateY(-10px) rotate(0); } 40.5% { opacity: 1; transform: scale(1.1) translateY(-10px) rotate(0); } 100% { opacity: 0; transform: scale(0.9) translateY(-60px) rotate(5deg); } }
        .anim-wine-container { animation: wineLifecycle 4.2s ease-out forwards; }
        @keyframes wineLifecycle { 0% { opacity: 0; transform: translateY(60px); } 14.3% { opacity: 1; transform: translateY(-20px) rotate(-20deg); } 21.4% { opacity: 1; transform: translateY(-20px) rotate(-20deg); } 28.5% { opacity: 1; transform: translateY(0) rotate(0); } 40.5% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(-40px); } }
        /* 香的CSS绘制 */
        .incense-sticks { display: flex; gap: 10px; align-items: flex-end; }
        .stick { width: 8px; height: 100px; background: #5c3a21; position: relative; border-radius: 4px; }
        .stick::before { content: ''; position: absolute; top: -4px; left: 0; width: 8px; height: 12px; background: #ff4500; border-radius: 50%; box-shadow: 0 0 15px 4px #ff4500; }
        /* 鲜花和酒的表情符样式 */
        .emoji-offering { font-size: 6rem; filter: drop-shadow(0 8px 8px rgba(0,0,0,0.6)); }
        /* 底部控制面板 */
        .controls { position: absolute; bottom: 39px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 15px; background: rgba(0, 0, 0, 0.6); padding: 12px 28px; border-radius: 10px; box-shadow: 0 0 15px rgba(0,0,0,0.8); border: 1px solid #332211; }
        button { background: linear-gradient(to bottom, #8b0000, #5c0000); color: #f1e0c6; border: 1px solid #d4af37; padding: 3px 20px; font-size: 1.1rem; font-family: "KaiTi", "楷体", serif; border-radius: 3px; cursor: pointer; transition: all 0.3s; box-shadow: 0 4px 6px rgba(0,0,0,0.5); }
        button:hover { background: linear-gradient(to bottom, #a52a2a, #8b0000); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 8px rgba(0,0,0,0.7); }
        button:active { transform: translateY(1px); box-shadow: 0 2px 3px rgba(0,0,0,0.5); }
        .btn-cancel { background: linear-gradient(to bottom, #555, #333); }
        .btn-cancel:hover { background: linear-gradient(to bottom, #666, #444); }
        /* --- 祭拜人列表（右侧列表） --- */
        .merit-board { position: absolute; right: 18px; top: 20%; width: 220px; height: 60%; background: rgba(20, 10, 0, 0.75); border: 2px solid #d4af37; border-radius: 10px; z-index: 3; padding: 15px; box-sizing: border-box; display: flex; flex-direction: column; box-shadow: 0 0 20px rgba(0,0,0,0.8); backdrop-filter: blur(2px); }
        .merit-title { color: #d4af37; text-align: center; font-size: 1.4rem; margin-top: 0; margin-bottom: 15px; border-bottom: 1px solid #d4af37; padding-bottom: 10px; font-weight: bold; letter-spacing: 2px;}
        .merit-list { flex-grow: 1; overflow-y: auto; scrollbar-width: none; }
        .merit-list::-webkit-scrollbar { display: none; }
        .merit-item { color: #f1e0c6; font-size: 1.1rem; margin-bottom: 10px; padding: 8px; background: rgba(255,255,255,0.05); border-radius: 4px; animation: slideInRight 0.5s ease-out forwards; display: flex; align-items: center; justify-content: space-between;}
        .merit-name { font-weight: bold; color: #d4af37; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;}
        .merit-loading { color: #a08060; text-align: center; font-size: 0.85rem; padding: 10px 0; }
        @keyframes slideInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
        /* --- 留名弹窗 --- */
        .modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 10; display: none; justify-content: center; align-items: center; backdrop-filter: blur(5px); }
        .modal-box { background: linear-gradient(135deg, #3a1c0d, #1a0a00); border: 2px solid #d4af37; padding: 30px 20px; border-radius: 10px; text-align: center; box-shadow: 0 0 40px rgba(212, 175, 55, 0.4); width: 90%; max-width: 400px; box-sizing: border-box;}
        .modal-title { color: #d4af37; font-size: 1.6rem; margin-bottom: 25px; margin-top:0; letter-spacing: 2px;}
        .name-input { background: rgba(255,255,255,0.1); border: 1px solid #d4af37; color: #f1e0c6; padding: 12px; font-size: 1.3rem; font-family: "KaiTi", "楷体", serif; width: 80%; text-align: center; margin-bottom: 25px; border-radius: 5px; outline: none; }
        .name-input:focus { background: rgba(255,255,255,0.2); box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);}
        .modal-buttons { display: flex; justify-content: center; gap: 20px; }
      
  .bi {
	width: 1.6em;
	height: 1.6em;
	vertical-align: -.125em;
	fill: currentcolor;
  }        
 
        /* ======================================================
           移动端响应式（新增，不改动以上任何原有样式）
           ====================================================== */
         @media (max-width: 2000px) {
         	 .controls {
                bottom: 18px;
             }
         }  
         
         @media (max-width: 1300px) {
         	 .controls {
                bottom: 10px;
             }
         }            
           
        @media (max-width: 768px) {
            .merit-board {
                top: 36px;
                right: 10px;
                width: 138px;
                padding: 10px;
            }
            .merit-title {
                font-size: 1.1rem;
                margin-bottom: 8px;
                padding-bottom: 5px;
            }
            .merit-item {
                font-size: 0.8rem;
                padding: 5px;
                align-items: flex-start;
                margin-bottom: 5px;
            }
            .merit-name { max-width: 100%; }
            .controls {
                bottom: 5px;
                padding: 3px 6px;
                gap: 12px;
                width: 260px;
                justify-content: center;
                box-sizing: border-box;
            }
            button {
                padding: 1px 3px;
                font-size: 1rem;
                flex: 1;
                white-space: nowrap;
                text-align: center;
            }
            .emoji-offering { font-size: 3.5rem; }
            .stick { width: 5px; height: 60px !important; }
            .altar-area {
                bottom: 30%;
                width: 90%;
                height: 100px;
                gap: 15px;
            }
        }
        @media (max-width: 430px) {
            .merit-board { top:10px; width: 100px; padding: 8px; height:50%;}
            .merit-title { font-size: 0.85rem; letter-spacing: 1px; }
            .merit-item { font-size: 0.75rem; }
            .controls { gap: 5px; padding: 8px 10px; width: 210px;}
            button { font-size: 0.9rem; }
        }