<footer class="footer">
  <div class="footer-container">
    <div class="footer-content">
      <div class="footer-brand">
        <div class="brand-title">{qkcms:site_name}</div>
        <p class="brand-description">{qkcms:site_description}</p>
        <div class="social-links">
          <div class="social-link" aria-label="微信"> <img src="/assets/images/weixin.png" alt="微信" width="24"
              height="24">
            <div class="popup"> <img src="{qk_Plugin:ID28_'微信二维码'}" alt="微信二维码" class="qr-code" width="150"
                height="150"> </div>
          </div>
          <div class="social-link" aria-label="QQ群"> <img src="/assets/images/qqqun.png" alt="QQ群" width="24"
              height="24">
            <div class="popup"> <img src="{qk_Plugin:ID28_'QQ群二维码'}" alt="QQ群二维码" class="qr-code" width="150"
                height="150"> </div>
          </div>
          <div class="social-link" aria-label="QQ"> <img src="/assets/images/qq.png" alt="QQ" width="24" height="24">
            <div class="popup"> <img src="{qk_Plugin:ID28_'QQ号1二维码'}" alt="QQ二维码" class="qr-code" width="150"
                height="150">
            </div>
          </div>
          <div class="social-link" aria-label="手机"> <img src="/assets/images/shouji.png" alt="手机" width="24"
              height="24">
            <div class="popup popup-phone">
              <div class="phone-number">{qk_Plugin:ID28_'手机号'}</div>
            </div>
          </div>
        </div>
      </div>
      <div class="footer-column footer-links">
        <h3>关于我们</h3>
        <ul>
          <li><a href="/intro.html" data-official="http://www.qkcms.cn/intro.html">QKCMS介绍</a></li>
          <li><a href="/team.html" data-official="http://www.qkcms.cn/team.html">团队介绍</a></li>
          <li><a href="/service.html" data-official="http://www.qkcms.cn/service.html">服务项目</a></li>
          <li><a href="/contact.html" data-official="http://www.qkcms.cn/contact.html">联系我们</a></li>
        </ul>
      </div>
      <div class="footer-column footer-links">
        <h3>帮助中心</h3>
        <ul>
          <li><a href="/download.html" data-official="http://www.qkcms.cn/download.html">QKCMS产品下载</a></li>
          <li><a href="/auth.html" data-official="http://www.qkcms.cn/auth.html">QKCMS授权</a></li>
          <li><a href="/template.html" data-official="http://www.qkcms.cn/template.html">QKCMS模板开发文档</a></li>
          <li><a href="/filedir.html" data-official="http://www.qkcms.cn/filedir.html">QKCMS文件目录结构</a></li>
        </ul>
      </div>
      <div class="footer-column">
        <h3>友情链接</h3>
        <div class="friendlink-carousel">
          <div class="friendlink-container">
            {qkcms:friendlink row=18}
            <a href="http://{url}" target="_blank" class="friendlink-item">{title}</a>
            {/qkcms:friendlink}
          </div>
        </div>
      </div>
    </div>
    <div class="footer-bottom">
      <div class="copyright">{qkcms:site_copyright}</div>
      <div class="visit-counter">
        <div class="counter-icon">
          <div class="column"></div>
          <div class="column"></div>
          <div class="column"></div>
          <div class="column"></div>
          <div class="column"></div>
        </div>
        <span class="visit-text">累计访问人数</span> <span
          class="visit-number">{qkcms:total_visit}</span><span>位{qk_Plugin:ID35}</span>
      </div>
    </div>
  </div>
  <button id="back-to-top" class="back-to-top" aria-label="回到顶部">
    <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor"
      stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
      <polyline points="18 15 12 9 6 15"></polyline>
    </svg>
  </button>
</footer>
{qk_Plugin:ID55}
<script defer src="../assets/js/auth.js"></script>
<script defer src="/admin/counter.php?action=script"></script>
<script>
(function() {
    var links = document.querySelectorAll('.footer-links a[data-official]');
    links.forEach(function(link) {
        link.addEventListener('click', function(e) {
            e.preventDefault();
            var localUrl = this.getAttribute('href');
            var officialUrl = this.getAttribute('data-official');
            
            var xhr = new XMLHttpRequest();
            xhr.open('HEAD', localUrl, true);
            xhr.timeout = 2000;
            xhr.onload = function() {
                if (xhr.status >= 200 && xhr.status < 400) {
                    window.location.href = localUrl;
                } else {
                    window.open(officialUrl, '_blank');
                }
            };
            xhr.onerror = function() {
                window.open(officialUrl, '_blank');
            };
            xhr.ontimeout = function() {
                window.open(officialUrl, '_blank');
            };
            xhr.send();
        });
    });
})();
</script>

