    </main>
    <footer class="site-footer">
        <div class="container footer-grid">
            <section>
                <h3>关于我们</h3>
                <p><?php echo htmlspecialchars(tplv(isset($siteConfig) ? $siteConfig : array(), 'site_description', '')); ?></p>
            </section>
            <section>
                <h3>快捷入口</h3>
                <p><a href="/public/index.php?m=article">新闻资讯</a></p>
                <p><a href="/public/index.php?m=product">产品中心</a></p>
                <p><a href="/public/index.php?m=guestbook">在线留言</a></p>
            </section>
            <section>
                <h3>品牌标识</h3>
                <div class="footer-qrcode">
                    <?php if (preg_match('/\.(jpg|jpeg|png|gif|webp|svg)(\?.*)?$/i', $tplCustomTitleValue)) { ?>
                    <img src="<?php echo htmlspecialchars($tplCustomTitleValue); ?>" alt="<?php echo htmlspecialchars($tplSiteName); ?>">
                    <?php } else { ?>
                    <?php echo htmlspecialchars($tplCustomTitleValue); ?>
                    <?php } ?>
                </div>
            </section>
        </div>
        <div class="container footer-bottom">
            <span>Copyright © <?php echo date('Y'); ?> <?php echo htmlspecialchars($tplSiteName); ?></span>
            <span>Powered by 芋头CMS</span>
        </div>
    </footer>
</div>
<script>
(function () {
    var btn = document.querySelector('.menu-toggle');
    var nav = document.querySelector('.main-nav');
    if (btn && nav) btn.addEventListener('click', function () { nav.classList.toggle('is-open'); });
})();
</script>
</body>
</html>
