<?php
// footer_1.html 深色三栏：导航 | 公司信息 | 联系版权
$_nav = isset($nav) && is_array($nav) ? $nav : array();
?>
<style>
.yk-f1{background:var(--yk-footer-bg,#14181f);color:var(--yk-footer-color,#aab2c0);font-size:14px;line-height:1.8}
.yk-f1 a{color:var(--yk-footer-color,#aab2c0);text-decoration:none;transition:color .2s}
.yk-f1 a:hover{color:#fff}
.yk-f1-wrap{max-width:1200px;margin:0 auto;padding:48px 20px 32px;display:flex;flex-wrap:wrap;gap:36px}
.yk-f1-col{flex:1;min-width:220px}
.yk-f1-h{font-size:16px;color:#fff;margin:0 0 14px;padding-bottom:10px;border-bottom:1px solid #2a3140;position:relative}
.yk-f1-h::after{content:'';position:absolute;left:0;bottom:-1px;width:36px;height:2px;background:#3b82f6}
.yk-f1-links{list-style:none;margin:0;padding:0}
.yk-f1-links li{margin-bottom:8px}
.yk-f1-links a::before{content:'›';margin-right:8px;color:#3b82f6}
.yk-f1-info p{margin:0 0 8px}
.yk-f1-phone{font-size:22px;color:#fff;font-weight:700;margin:0 0 6px}
.yk-f1-bar{border-top:1px solid #2a3140}
.yk-f1-bar-in{max-width:1200px;margin:0 auto;padding:16px 20px;display:flex;flex-wrap:wrap;gap:8px 24px;justify-content:space-between;color:var(--yk-footer-color,#aab2c0);font-size:13px}
.yk-f1-bar-in a{color:inherit;text-decoration:none}
.yk-f1-bar-in a:hover{color:#fff;text-decoration:underline}
@media (max-width:1199px){.yk-f1-wrap{padding:40px 20px 28px;gap:28px}}
@media (max-width:767px){.yk-f1-wrap{flex-direction:column;padding:32px 16px 20px;gap:24px}.yk-f1-col{min-width:0}.yk-f1-bar-in{flex-direction:column;text-align:center;justify-content:center;padding:14px 16px}.yk-f1-col-nav,.yk-f1-col-about{display:none}}
</style>
<footer class="yk-f1">
  <div class="yk-f1-wrap">
    <div class="yk-f1-col yk-f1-col-nav">
      <h3 class="yk-f1-h">网站导航</h3>
      <ul class="yk-f1-links">
        <?php foreach ($_nav as $_n) { ?>
        <li><a href="<?php echo e(isset($_n['url']) ? $_n['url'] : '#'); ?>"><?php echo e(isset($_n['name']) ? $_n['name'] : ''); ?></a></li>
        <?php } ?>
      </ul>
    </div>
    <div class="yk-f1-col yk-f1-col-about">
      <h3 class="yk-f1-h">关于我们</h3>
      <div class="yk-f1-info">
        <p><?php echo e(site_config('company_name', isset($site['company_name']) ? $site['company_name'] : '')); ?></p>
        <p>地址：<?php echo e(site_config('address', isset($site['address']) ? $site['address'] : '')); ?></p>
        <p>邮箱：<?php echo e(site_config('email', isset($site['email']) ? $site['email'] : '')); ?></p>
      </div>
    </div>
    <div class="yk-f1-col">
      <h3 class="yk-f1-h">联系我们</h3>
      <p class="yk-f1-phone"><?php echo e(site_config('phone', isset($site['phone']) ? $site['phone'] : '')); ?></p>
      <div class="yk-f1-info">
        <p>欢迎来电咨询，我们将竭诚为您服务。</p>
      </div>
    </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 } ?>
  <div class="yk-f1-bar">
    <div class="yk-f1-bar-in">
      <span><?php echo e(site_config('copyright', isset($site['copyright']) ? $site['copyright'] : '')); ?></span>
      <?php $_f1_icp = site_config('icp', isset($site['icp']) ? $site['icp'] : ''); if ($_f1_icp !== '') { ?>
      <a href="https://beian.miit.gov.cn" target="_blank" rel="nofollow noopener"><?php echo e($_f1_icp); ?></a>
      <?php } ?>
    </div>
  </div>
</footer>
