<?php
$settings = get_site_settings();
$project_name = $settings['site_name'] ?? 'BitCrypto';
?>
    </main>

    <?php if (!empty($settings['customer_service_url'])): ?>
    <a href="<?php echo $settings['customer_service_url']; ?>" target="_blank" class="cs-float" title="在线客服">
        <i class="bi bi-headset"></i>
    </a>
    <?php endif; ?>

    <footer class="footer py-5 mt-5 border-top border-secondary bg-dark">
        <div class="container">
            <div class="row g-4">
                <div class="col-md-3">
                    <h5 class="fw-bold mb-4 text-white"><?php echo $project_name; ?></h5>
                    <p class="text-secondary small">全球领先的数字资产交易平台，致力于为用户提供安全、专业、透明的数字资产一站式服务。</p>
                </div>
                <div class="col-md-2 offset-md-1">
                    <h6 class="text-white mb-3">产品服务</h6>
                    <ul class="list-unstyled">
                        <li><a href="/trade.php?type=SPOT" class="text-secondary text-decoration-none small">现货交易</a></li>
                        <li><a href="/trade.php?type=CONTRACT" class="text-secondary text-decoration-none small">永续合约</a></li>
                    </ul>
                </div>
            </div>
            <hr class="my-5 border-secondary">
            <div class="row align-items-center">
                <div class="col-md-6 text-center text-md-start">
                    <p class="text-secondary small mb-0">&copy; 2026 <?php echo $project_name; ?> Digital Asset Exchange. All rights reserved.</p>
                </div>
                <div class="col-md-6 text-center text-md-end mt-3 mt-md-0">
                    <div class="text-secondary small">
                        <i class="bi bi-globe me-2"></i> 简体中文 | USDT
                    </div>
                </div>
            </div>
        </div>
    </footer>

    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>
