/* 表现层 */
:root {
  --marquee-duration: 68s;    /* 动画时长 */
  --link-hover: #d0a186;      /* 悬停颜色 */
  --safe-margin: 10px;        /* 安全边距 */
}
/* 外部容器，限制字幕的显示区域 */
.marquee-container {
    max-width: 1340px;
    overflow: hidden;      /* 隐藏超出的文字 */
    white-space: nowrap;   /* 禁止换行 */
    border-top: 2px solid #555; /* 增加顶部边框 */
    margin: 0 auto;
    padding: 5px 0;        /* 上下内边距 */
}

.marquee-container {
  position: relative;
  overflow: hidden;
  contain: content;  /* 限制渲染边界 */
  will-change: contents;
}

.marquee {
  display: inline-block;
  white-space: nowrap;
  transform: translate3d(0,0,0); /* GPU加速 */
  backface-visibility: hidden;
  
  /* 响应式动画控制 */
  animation: scroll-left var(--marquee-duration) cubic-bezier(0.2,0.6,0.3,1) infinite;
}

@keyframes scroll-left {
  0% { transform: translateX(100vw); }
  100% { transform: translateX(calc(-100% - var(--safe-margin))); }
}

/* 无障碍支持 */
@media (prefers-reduced-motion: reduce) {
  .marquee {
    animation: none;
    white-space: normal;
  }
}

/* 交互优化 */
.marquee:hover {
  animation-play-state: paused;
}

.marquee a {
  font: 700 14px/1.5 system-ui;
  color: #fff;
  padding: 8px 10px;
  transition: color 0.3s, transform 0.2s;
}

.marquee a:hover {
  color: var(--link-hover);
  transform: scale(1.05);
}

/* 移动端适配 */
@media (max-width: 768px) {
  .marquee {
    animation-duration: calc(var(--marquee-duration) * 1.5);
  }
}


.backtop-box{position:fixed; z-index: 999; right:10px; bottom:110px}
.clearfix:before,.clearfix:after{ display: table; content: " "; clear: both;}
.backtop-box a{width:35px;height:35px;line-height:35px;font-size:16px}
.backtop-box a{display:block;width:40px;height:40px;line-height:40px;text-align:center;border-radius:4px;font-size:18px;cursor:pointer;}
.backtop-box a {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
.backtop-box a .top-icon {
    font-style: normal;
}
.backtop-box a.backtop {
    background-color: rgba(0,0,0,0.6);
    color: #fff;
}


/*顶部广告*/
.topIframe {
    width: 100%;
    height: 1080px;
    border: none;
    overflow: hidden;
}
/*底横幅*/
.dbannnrIframe {
    width: 100%;
    height: 610px;
    border: none;
    overflow: hidden;
}
.yxfIframe {
    width: 80px;
    height: 380px;
    border: none;
    overflow: hidden;
}
.dxfIframe {
    width: 1340px;     /* 大屏加宽 */
    height: 80px;
    border: none;
    overflow: hidden;
}
/*右悬浮*/
#yxofal {
    position: fixed;
    bottom: 15%;
    z-index: 19999 !important;
    right: 2px;
}

/*底悬浮*/
#dxofal {
    position: fixed;
    bottom: 0;        /* 距离底部间距 */
    left: 50%;           /* 水平居中基准 */
    transform: translateX(-50%);
    z-index: 19999 !important;
    width: 100%;
    height: 80px;
    max-width: 1340px;
}

@media (max-width: 768px) {
  .topIframe {
      height: 1000px;
  }
  .dbannnrIframe {
      height: 450px;
  }
  #dxofal {
      height: 60px;
  }
  .dxfIframe {
    width: 100vw;      /* 移动端宽度适配 */
    height: 60px;
  }
}