    <!-- 主内容区结束 -->

    <!-- 底部信息 -->
    <footer class="footer">
        <div class="container">
            <div class="footer-widgets">
                <!-- 关于我们 -->
                <div class="widget">
                    <h3>// 关于</h3>
                    <p><?php echo SITE_NAME; ?> — <?php echo SITE_SLOGAN; ?></p>
                    <p>长沙吧聚网络科技有限公司旗下产品</p>
                    <p>电话：<?php echo get_setting('contact_phone', ''); ?></p>
                    <p>邮箱：<?php echo get_setting('contact_email', ''); ?></p>
                </div>

                <!-- 快速链接 -->
                <div class="widget">
                    <h3>// 导航</h3>
                    <ul>
                        <li><a href="<?php echo cms_url('about'); ?>">关于我们</a></li>
                        <li><a href="<?php echo cms_url('services'); ?>">服务内容</a></li>
                        <li><a href="<?php echo cms_url('products'); ?>">产品中心</a></li>
                        <li><a href="<?php echo cms_url('news'); ?>">新闻资讯</a></li>
                        <li><a href="<?php echo cms_url('cases'); ?>">成功案例</a></li>
                        <li><a href="<?php echo cms_url('team'); ?>">团队成员</a></li>
                    </ul>
                </div>

                <!-- 联系信息 -->
                <div class="widget">
                    <h3>// 联系</h3>
                    <p>地址：<?php echo get_setting('contact_address', ''); ?></p>
                    <p>电话：<?php echo get_setting('contact_phone', ''); ?></p>
                    <p>邮箱：<?php echo get_setting('contact_email', ''); ?></p>
                    <?php $qq = get_setting('contact_qq', ''); if ($qq): ?>
                        <p>QQ：<?php echo $qq; ?></p>
                    <?php endif; ?>
                    <?php $wechat = get_setting('contact_wechat', ''); if ($wechat): ?>
                        <p>微信：<?php echo $wechat; ?></p>
                    <?php endif; ?>
                </div>

                <!-- 系统 -->
                <div class="widget">
                    <h3>// 系统</h3>
                    <ul>
                        <li><a href="/barjucms.php">BarjuCMS 介绍</a></li>
                        <li><a href="/barjucms-download.php">下载中心</a></li>
                        <li><a href="/barjucms-changelog.php">更新日志</a></li>
                        <li><a href="/barjucms-apply.php">授权申请</a></li>
                        <li><a href="/shop.php">模板市场</a></li>
                    </ul>
                </div>
            </div>

            <!-- 版权信息 -->
            <div class="footer-bottom">
                <p><?php echo get_setting('copyright', '© ' . date('Y') . ' ' . SITE_NAME . ' · All rights reserved'); ?></p>
                <div style="display:flex;gap:1.5rem;flex-wrap:wrap;">
                    <?php $icp = get_setting('icp_number', ''); if ($icp): ?>
                        <p><a href="https://beian.miit.gov.cn" target="_blank"><?php echo $icp; ?></a></p>
                    <?php endif; ?>
                    <p><a href="https://barju.cn" target="_blank">Powered by 吧聚科技</a></p>
                    <p><a href="/sitemap.xml" target="_blank">Sitemap</a></p>
                </div>
            </div>
        </div>
    </footer>

    <!-- 返回顶部按钮 -->
    <button class="back-to-top" id="backToTop" onclick="window.scrollTo({top:0,behavior:'smooth'})" aria-label="返回顶部">
        &uarr;
    </button>

    <!-- JS -->
    <script src="/templates/<?php echo $theme; ?>/script.js"></script>
</body>
</html>
