<?php
// footer_3.html 上导航下版权，分隔线结构
$_nav = isset($nav) && is_array($nav) ? $nav : array();
?>
<style>
.yk-f3{background:var(--yk-footer-bg,#2d3748);color:var(--yk-footer-color,#cbd5e0);font-size:14px}
.yk-f3 a{color:var(--yk-footer-color,#cbd5e0);text-decoration:none;transition:color .2s}
.yk-f3 a:hover{color:#63b3ed}
.yk-f3-top{max-width:1200px;margin:0 auto;padding:34px 20px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px}
.yk-f3-brand{font-size:20px;font-weight:700;color:#fff}
.yk-f3-nav{display:flex;flex-wrap:wrap;gap:6px 22px}
.yk-f3-mid{border-top:1px solid #4a5568;max-width:1200px;margin:0 auto;padding:22px 20px;display:flex;flex-wrap:wrap;gap:10px 40px;color:#a0aec0;font-size:13px}
.yk-f3-mid p{margin:0}
.yk-f3-mid b{color:#e2e8f0;font-weight:600;margin-right:6px}
.yk-f3-bottom{border-top:1px solid #4a5568;background:#232b38}
.yk-f3-bottom-in{max-width:1200px;margin:0 auto;padding:14px 20px;display:flex;flex-wrap:wrap;gap:6px 20px;justify-content:center;color:#718096;font-size:12px;text-align:center}
@media (max-width:1199px){.yk-f3-top{padding:28px 20px}.yk-f3-nav{gap:6px 18px}}
@media (max-width:767px){.yk-f3-top{flex-direction:column;text-align:center;padding:24px 16px}.yk-f3-nav{justify-content:center}.yk-f3-mid{flex-direction:column;gap:6px;text-align:center;padding:18px 16px}.yk-f3-bottom-in{flex-direction:column;padding:12px 16px}}
</style>
<footer class="yk-f3">
  <div class="yk-f3-top">
    <div class="yk-f3-brand"><?php echo e(site_config('company_name', isset($site['company_name']) ? $site['company_name'] : '')); ?></div>
    <nav class="yk-f3-nav">
      <?php foreach ($_nav as $_n) { ?>
      <a href="<?php echo e(isset($_n['url']) ? $_n['url'] : '#'); ?>"><?php echo e(isset($_n['name']) ? $_n['name'] : ''); ?></a>
      <?php } ?>
    </nav>
  </div>
  <div class="yk-f3-mid">
    <p><b>地址</b><?php echo e(site_config('address', isset($site['address']) ? $site['address'] : '')); ?></p>
    <p><b>电话</b><?php echo e(site_config('phone', isset($site['phone']) ? $site['phone'] : '')); ?></p>
    <p><b>邮箱</b><?php echo e(site_config('email', isset($site['email']) ? $site['email'] : '')); ?></p>
  </div>
  <div class="yk-f3-bottom">
    <div class="yk-f3-bottom-in">
      <span><?php echo e(site_config('copyright', isset($site['copyright']) ? $site['copyright'] : '')); ?></span>
      <span><?php echo e(site_config('icp', isset($site['icp']) ? $site['icp'] : '')); ?></span>
    </div>
  </div>
  <?php if (!empty($flinks) && is_array($flinks)) { ?>
  <div class="yk-flinks"><div class="yk-flinks-in"><b>友情链接：</b><?php foreach ($flinks as $_fl) { ?><a href="<?php echo e(isset($_fl['url']) ? $_fl['url'] : '#'); ?>" target="_blank" rel="nofollow noopener"><?php echo e(isset($_fl['name']) ? $_fl['name'] : ''); ?></a><?php } ?></div></div>
  <?php } ?>
</footer>
