<?php
// banner_6 通栏公告条：低矮公告横幅，notice 滚动，images 作右侧小图点缀
if (!isset($banner) || !is_array($banner)) { $banner = array('images'=>array(), 'notice'=>''); }
$b6_images = isset($banner['images']) && is_array($banner['images']) ? $banner['images'] : array();
$b6_notice = isset($banner['notice']) ? $banner['notice'] : '';
if ($b6_notice === '') { $b6_notice = '欢迎访问'.site_config('company_name','本站').'，感谢您的关注与支持！'; }
?>
<style>
.yk-banner6{background:linear-gradient(90deg,#1c2b4a 0%,#243c6b 100%);}
.yk-banner6 .yk-b6-in{max-width:1200px;margin:0 auto;display:flex;align-items:center;height:52px;overflow:hidden;}
.yk-banner6 .yk-b6-ico{flex:none;display:flex;align-items:center;gap:8px;color:#ffd35c;font-size:13px;font-weight:700;padding:0 16px;}
.yk-banner6 .yk-b6-horn{position:relative;width:0;height:0;border:7px solid transparent;border-left:11px solid #ffd35c;}
.yk-banner6 .yk-b6-horn:before{content:'';position:absolute;left:-14px;top:-4px;width:5px;height:8px;background:#ffd35c;border-radius:2px 0 0 2px;}
.yk-banner6 .yk-b6-roll{flex:1;overflow:hidden;position:relative;height:52px;border-left:1px solid rgba(255,255,255,.15);}
.yk-banner6 .yk-b6-track{display:inline-block;white-space:nowrap;line-height:52px;font-size:13px;color:#e8eefc;padding-left:100%;animation:yk-b6-move 20s linear infinite;}
.yk-banner6 .yk-b6-track span{margin-right:90px;}
@keyframes yk-b6-move{0%{transform:translateX(0);}100%{transform:translateX(-100%);}}
.yk-banner6 .yk-b6-pics{flex:none;display:flex;align-items:center;gap:8px;padding:0 14px;}
.yk-banner6 .yk-b6-pic{width:64px;height:36px;overflow:hidden;border-radius:3px;border:1px solid rgba(255,255,255,.25);display:block;}
.yk-banner6 .yk-b6-pic img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s;}
.yk-banner6 .yk-b6-pic:hover img{transform:scale(1.1);}
.yk-banner6 .yk-b6-picph{width:64px;height:36px;border-radius:3px;background:linear-gradient(135deg,#2fa3c7,#1f6fb2);display:flex;align-items:center;justify-content:center;color:#fff;font-size:11px;letter-spacing:1px;text-align:center;padding:0 4px;overflow:hidden;}
@media (max-width:1199px){
  .yk-banner6 .yk-b6-in{margin:0 16px;}
  .yk-banner6 .yk-b6-pic:nth-child(n+3){display:none;}
  .yk-banner6 .yk-b6-picph:nth-child(n+3){display:none;}
}
@media (max-width:767px){
  .yk-banner6 .yk-b6-in{height:42px;margin:0 10px;}
  .yk-banner6 .yk-b6-ico{font-size:12px;padding:0 10px;}
  .yk-banner6 .yk-b6-roll{height:42px;}
  .yk-banner6 .yk-b6-track{line-height:42px;font-size:12px;animation-duration:14s;}
  .yk-banner6 .yk-b6-pics{display:none;}
}
</style>
<div class="yk-banner6">
  <div class="yk-b6-in">
    <div class="yk-b6-ico"><span class="yk-b6-horn"></span>公告</div>
    <div class="yk-b6-roll">
      <div class="yk-b6-track"><span><?php echo e($b6_notice); ?></span><span><?php echo e($b6_notice); ?></span></div>
    </div>
    <div class="yk-b6-pics">
      <?php $b6_i = 0; foreach ($b6_images as $b6_im) { $b6_img = isset($b6_im['img']) ? $b6_im['img'] : ''; $b6_url = isset($b6_im['url']) ? $b6_im['url'] : ''; ?>
        <?php if ($b6_img !== '' && $b6_i < 3) { ?>
        <a class="yk-b6-pic"<?php echo $b6_url !== '' ? ' href="'.e($b6_url).'"' : ''; ?>><img src="<?php echo e($b6_img); ?>" alt="<?php echo e(site_config('company_name','')); ?>"></a>
        <?php $b6_i++; } ?>
      <?php } ?>
      <?php if ($b6_i === 0) { ?>
      <div class="yk-b6-picph"><?php echo e(site_config('slogan','专注品质 · 用心服务')); ?></div>
      <?php } ?>
    </div>
  </div>
</div>
