<?php
// banner_3 纯公告滚动条
if (!isset($banner) || !is_array($banner)) { $banner = array('images'=>array(), 'notice'=>''); }
$b3_notice = isset($banner['notice']) ? $banner['notice'] : '';
if ($b3_notice === '') { $b3_notice = '欢迎访问'.site_config('company_name','本站').'，感谢您的关注与支持！'; }
?>
<style>
.yk-banner3{background:#fff8e6;border-top:1px solid #f3e2b3;border-bottom:1px solid #f3e2b3;}
.yk-banner3 .yk-b3-in{max-width:1200px;margin:0 auto;display:flex;align-items:center;height:40px;overflow:hidden;}
.yk-banner3 .yk-b3-ico{flex:none;display:flex;align-items:center;gap:6px;color:#c07a12;font-size:13px;font-weight:700;padding:0 14px;border-right:1px solid #f3e2b3;}
.yk-banner3 .yk-b3-speaker{width:0;height:0;border:6px solid transparent;border-left:9px solid #c07a12;}
.yk-banner3 .yk-b3-roll{flex:1;overflow:hidden;position:relative;height:40px;}
.yk-banner3 .yk-b3-track{display:inline-block;white-space:nowrap;line-height:40px;font-size:13px;color:#8a6210;padding-left:100%;animation:yk-b3-move 18s linear infinite;}
.yk-banner3 .yk-b3-track span{margin-right:80px;}
@keyframes yk-b3-move{0%{transform:translateX(0);}100%{transform:translateX(-100%);}}
@media (max-width:1199px){
  .yk-banner3 .yk-b3-in{margin:0 16px;}
}
@media (max-width:767px){
  .yk-banner3 .yk-b3-in{height:34px;margin:0 10px;}
  .yk-banner3 .yk-b3-ico{font-size:12px;padding:0 8px;}
  .yk-banner3 .yk-b3-roll{height:34px;}
  .yk-banner3 .yk-b3-track{line-height:34px;font-size:12px;animation-duration:12s;}
}
</style>
<div class="yk-banner3">
  <div class="yk-b3-in">
    <div class="yk-b3-ico"><span class="yk-b3-speaker"></span>最新公告</div>
    <div class="yk-b3-roll">
      <div class="yk-b3-track"><span><?php echo e($b3_notice); ?></span><span><?php echo e($b3_notice); ?></span></div>
    </div>
  </div>
</div>
