<?php
// footer_2.html 简洁居中单行风格（文字全白；滑过颜色跟随“导航点击背景色”）
$_nav = isset($nav) && is_array($nav) ? $nav : array();
?>
<style>
.yk-f2{background:var(--yk-footer-bg,#fff);border-top:1px solid #ececec;color:#fff;font-size:13px;text-align:center;padding:30px 16px 26px;line-height:2}
.yk-f2 a{color:#fff;text-decoration:none;transition:color .2s}
.yk-f2 a:hover{color:var(--yk-nav-active-bg,#e8521e)}
.yk-f2-nav{margin-bottom:10px}
.yk-f2-nav a{display:inline-block;margin:0 12px}
.yk-f2-nav a+a::before{content:'|';color:rgba(255,255,255,.5);margin-right:24px}
.yk-f2-company{color:#fff;font-weight:600}
.yk-f2-meta{color:#fff;margin:0 0 6px}
.yk-f2-meta i{font-style:normal;margin:0 6px}
.yk-f2-copy{color:#fff}
.yk-f2-copy span{margin:0 8px}
@media (max-width:1199px){.yk-f2-nav a{margin:0 10px}}
@media (max-width:767px){.yk-f2{padding:22px 12px 18px;line-height:1.9}.yk-f2-nav a{display:inline-block;margin:4px 8px}.yk-f2-nav a+a::before{display:none}.yk-f2-meta i{display:block;margin:0}.yk-f2-copy span{display:block;margin:2px 0}}
</style>
<footer class="yk-f2">
  <div class="yk-f2-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 } ?>
  </div>
  <p class="yk-f2-company"><?php echo e(site_config('copyright', isset($site['copyright']) ? $site['copyright'] : '')); ?></p>
  <p class="yk-f2-meta">
    <i>地址：<?php echo e(site_config('address', isset($site['address']) ? $site['address'] : '')); ?></i>
    <i>电话：<?php echo e(site_config('phone', isset($site['phone']) ? $site['phone'] : '')); ?></i>
    <i><a href="https://beian.miit.gov.cn" target="_blank"><?php echo e(site_config('icp', isset($site['icp']) ? $site['icp'] : '')); ?></a></i>
  </p>

  <?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>
