/* =============================================================================
   Nuxt 迁移后的补充与覆盖样式，必须最后加载
   ============================================================================= */

/* 迁移到 Nuxt 后的小幅样式补齐，放在所有旧样式之后加载 */

/* WOW.js 的 translateX 入场动画会在移动端短暂撑宽文档，禁止横向滚动 */
html {
  overflow-x: hidden;
}

/* 汽车后市场：用 CSS 替代 jQuery hoverdir 的方向入场 */
.carservan:hover .maskcarHover {
  left: 0;
}

/* 新闻列表空状态 */
.news-empty {
  padding: 60px 20px;
  text-align: center;
  color: #888;
}

/* 新闻详情正文 */
.news-detail-body {
  font-size: 15px;
  line-height: 2;
  color: #424242;
}

.news-detail-body p {
  margin: 12px 0;
}

.news-detail-body img {
  max-width: 100%;
  margin: 12px 0;
  height: auto !important;
}

/* 分页：页数多时用省略号收起，避免撑破列表卡片 */
.news-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  margin-bottom: 12px;
  font-size: 14px;
}

.news-pager__info {
  margin-right: 6px;
  color: #666;
  white-space: nowrap;
}

.news-pager__page,
.news-pager__btn,
.news-pager__ellipsis {
  min-width: 34px;
  height: 34px;
  line-height: 32px;
  padding: 0 6px;
  text-align: center;
  border: 1px solid #e1e2e4;
  background: #fff;
  color: #555;
  text-decoration: none;
  border-radius: 2px;
}

.news-pager__btn {
  padding: 0 10px;
}

.news-pager__page:hover,
.news-pager__btn:hover {
  border-color: #cc373c;
  color: #cc373c;
}

.news-pager__page.active {
  border-color: #cc373c;
  color: #cc373c;
}

.news-pager__ellipsis {
  color: #999;
}

@media screen and (max-width: 767px) {
  .news-pager {
    gap: 6px;
    font-size: 13px;
  }

  .news-pager__info {
    width: 100%;
    margin: 0 0 2px;
  }

  .news-pager__page,
  .news-pager__btn,
  .news-pager__ellipsis {
    min-width: 30px;
    height: 30px;
    line-height: 28px;
    padding: 0 5px;
  }

  .news-pager__btn {
    padding: 0 8px;
  }
}