/* =========================================================================
 * 首页专属样式（移植自 Home.vue 的 scoped style，global.css 未包含的部分）
 * 主要：资质认证轮播区、移动端 banner 隐藏
 * ========================================================================= */

/* 手机端 banner 默认在桌面端隐藏 */
.echu-banner-mobile { display: none; }

/* 荣誉资质：标题带装饰，证书横向展示 */
.echu-container .zizhi-contaner.honor-section { background: #fff; }
.echu-container .zizhi-contaner.honor-section .zizhi-box {
  display: flex; flex-direction: column; align-items: flex-start; width: 80%;
}
.honor-title {
  display: flex; align-items: center; justify-content: center;
  gap: 19.99px; margin-bottom: 30px;
}
.honor-title h4 { font-size: 28.01px; color: #333; font-weight: 600; margin: 0; }
.honor-icon { width: 28.01px; height: 28.01px; flex-shrink: 0; }
.honor-title-mobile { display: none; }
.honor-title-desktop { justify-content: flex-start; align-items: center; margin-bottom: 19.99px; gap: 15px; }
.honor-title-desktop .honor-icon { width: 40.01px; height: 40.01px; }
.honor-title-text { display: flex; flex-direction: column; align-items: flex-start; }
.honor-title-text h4 { font-size: 31.99px; color: #145db9; font-weight: 700; margin: 0; }
.honor-title-text p { margin: 4.01px 0 0; font-size: 13.99px; color: #888; letter-spacing: 1.99px; }
.honor-list { display: flex; justify-content: flex-start; align-items: center; gap: 0; width: 100%; flex-wrap: nowrap; overflow: hidden; }
.honor-track {
  display: flex; justify-content: flex-start; align-items: center; gap: 15px;
  flex-wrap: nowrap; width: max-content; animation: honorMarquee 30s linear infinite;
}
.honor-track:hover { animation-play-state: paused; }
.honor-track-mobile { display: none; }
.honor-item { border-bottom: 1.99px solid #145db9; padding-bottom: 7.99px; }
.honor-item img {
  width: 120px; height: auto; object-fit: contain; display: block;
  box-shadow: 0 1.99px 10.01px rgba(0, 0, 0, 0.08);
}
.honor-track-desktop { display: block; width: 100%; animation: none; gap: 0; }
.honor-track-desktop .swiper-wrapper { align-items: stretch; transition-timing-function: linear; }
.honor-track-desktop .honor-item {
  height: auto; box-sizing: border-box; background: #fff;
  border: 1.01px solid #eaeaea; border-radius: 7.99px;
  box-shadow: 0 4.01px 19.99px rgba(20, 93, 185, 0.08);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.honor-track-desktop .honor-item:hover { transform: translateY(-4.01px); box-shadow: 0 7.99px 30px rgba(20, 93, 185, 0.16); }
.honor-track-desktop .honor-item img { width: 100%; height: auto; object-fit: contain; box-shadow: none; }

@keyframes honorMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* 移动端：标题切换为居中的勋章版，证书改为跑马灯 */
@media (max-width: 768px) {
  .honor-title-desktop { display: none; }
  .honor-title-mobile {
    display: flex; align-items: center; justify-content: center; gap: 10.01px;
  }
  .honor-title-mobile h4 { font-size: 24px; color: #145db9; font-weight: 600; margin: 0; }
  .honor-list { overflow: hidden; flex-wrap: nowrap; justify-content: flex-start; gap: 0; }
  .honor-track-desktop { display: none; }
  .honor-track-mobile {
    display: flex; flex-wrap: nowrap; justify-content: flex-start; width: max-content;
    gap: 10.01px; animation: honorMarquee 22s linear infinite;
  }
  .honor-track-mobile:hover { animation-play-state: paused; }
  .honor-track-mobile .honor-item { display: block; flex-shrink: 0; padding-bottom: 4.99px; }
  .honor-track-mobile .honor-item img { width: 120px; height: 79.99px; object-fit: contain; }
}
