            </main>
        </div>
    </div>

    <script src="<?php echo SITE_URL; ?>/assets/js/main.js"></script>
    <script>
        // 折叠/展开整个楼中楼区域
        function toggleSubReplies(replyId) {
            var container = document.getElementById('sub-replies-' + replyId);
            var icon = document.getElementById('toggle-icon-' + replyId);
            var text = document.getElementById('toggle-text-' + replyId);
            
            if (container.style.display === 'none') {
                container.style.display = 'block';
                icon.className = 'fas fa-chevron-down';
                text.textContent = text.textContent.replace('展开', '收起');
            } else {
                container.style.display = 'none';
                icon.className = 'fas fa-chevron-right';
                text.textContent = text.textContent.replace('收起', '展开');
            }
        }
        
        // 折叠/展开单条回复
        function toggleAdminSingleReply(replyId) {
            var content = document.getElementById('admin-reply-content-' + replyId);
            var collapsed = document.getElementById('admin-reply-collapsed-' + replyId);
            var icon = document.getElementById('admin-single-icon-' + replyId);
            
            if (content.style.display === 'none') {
                content.style.display = 'block';
                collapsed.style.display = 'none';
                icon.className = 'fas fa-minus-square';
            } else {
                content.style.display = 'none';
                collapsed.style.display = 'block';
                icon.className = 'fas fa-plus-square';
            }
        }
    </script>
</body>
</html>
