/* 仅 news-mobile / detail-mobile（html.ace-m-official-news-pages），不影响 index-mobile 与 PC */

/* —— 去掉整页横/纵滚动条：仅列表/正文区域内部纵向滚动 —— */
html.ace-m-official-news-pages {
  height: 100%;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  box-sizing: border-box;
}

html.ace-m-official-news-pages *,
html.ace-m-official-news-pages *::before,
html.ace-m-official-news-pages *::after {
  box-sizing: border-box;
}

html.ace-m-official-news-pages body {
  margin: 0;
  height: 100%;
  max-height: 100dvh;
  overflow: hidden;
  background-color: #e2cea8;
}

html.ace-m-official-news-pages #root {
  height: 100%;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
}

html.ace-m-official-news-pages .app-container,
html.ace-m-official-news-pages .swiper-wrapper {
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  min-height: 0;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
}

/* 覆盖 m_news/m_detail 里 100vw（含纵向滚动条时会产生横向滚动） */
html.ace-m-official-news-pages .container_4iI615,
html.ace-m-official-news-pages .container_iRyZod {
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  min-height: 0;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  -webkit-align-items: stretch;
  align-items: stretch;
  -webkit-justify-content: flex-start;
  justify-content: flex-start;
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  position: relative;
  overflow: hidden;
}

html.ace-m-official-news-pages .mask_hLgpxk,
html.ace-m-official-news-pages .mask_zg8NxB {
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}

/* 羊皮纸铺满可视区域；子内容区官网为 5.88rem 宽，父级须 align-items:center 才能在纸内水平居中 */
html.ace-m-official-news-pages .content_7I6R2H,
html.ace-m-official-news-pages .content_7LgCGf {
  width: 100% !important;
  max-width: 100% !important;
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  min-height: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  -webkit-align-self: stretch;
  align-self: stretch;
  -webkit-align-items: center;
  align-items: center;
  background-size: 100% 100% !important;
  background-position: center top !important;
  display: -webkit-flex !important;
  display: flex !important;
  -webkit-flex-direction: column;
  flex-direction: column;
  overflow: hidden;
}

/* 官网右侧装饰轨会 right 负值撑出视口 → 隐藏，正文区仍可触摸滚动 */
html.ace-m-official-news-pages .scrollbar_track_CqRyZA,
html.ace-m-official-news-pages .scrollbar_thumb_qyRcOf,
html.ace-m-official-news-pages .scrollbar_track_n75bNU,
html.ace-m-official-news-pages .scrollbar_thumb_BUEoq1 {
  display: none !important;
}

/* 列表：仅 news_list 内滚动；news_wrap 最大高度（本地设为 10rem） */
html.ace-m-official-news-pages .content_7I6R2H > .news_wrap_UYSunI {
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 10rem !important;
  height: auto !important;
  width: 5.88rem;
  overflow: hidden;
}

html.ace-m-official-news-pages .news_list_P9dpBc {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* 资讯列表 Tab：与 PC ace-news-tab-panel 一致，未选中面板不占位 */
html.ace-m-official-news-pages .news_wrap_UYSunI .ace-news-tab-panel[hidden] {
  display: none !important;
}

/* 详情：单壳内 flex 分配高度；子块与列表一致在纸内居中 */
html.ace-m-official-news-pages .ace-m-detail-inner {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  -webkit-align-items: center;
  align-items: center;
  overflow: hidden;
}

/* 详情正文区略压高度（官网 max-height 约 8.9rem），与列表同一量级留白 */
html.ace-m-official-news-pages .ace-m-detail-inner > .news_wrap_I5lPhW {
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 8.42rem !important;
  height: auto !important;
  overflow: hidden;
  max-width: 100%;
  width: 5.88rem;
}

html.ace-m-official-news-pages .news_list_hWFpSj {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  max-width: 100%;
}

/* 富文本内大图不撑出横向滚动 */
html.ace-m-official-news-pages .news_text_ypTd8s img,
html.ace-m-official-news-pages .news_text_ypTd8s video,
html.ace-m-official-news-pages .news_text_ypTd8s table {
  max-width: 100% !important;
  height: auto !important;
}

/* 若将来仍用多块 container + hidden，确保不被 m_detail 的 flex 顶掉 */
html.ace-m-official-news-pages .container_iRyZod[hidden],
html.ace-m-official-news-pages .container_4iI615[hidden] {
  display: none !important;
}

/* 本地移动资讯页：把官网的 div 返回按钮换成可导航的 a，不改变 PC。 */
a.back_1CiJll,
a.back_0imc7J {
  display: block;
  flex-shrink: 0;
  text-decoration: none;
  color: transparent;
  overflow: hidden;
  line-height: 0;
}

a.news_item_Z5FQJQ {
  text-decoration: none;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

a.news_item_Z5FQJQ:visited {
  color: inherit;
}

.news_item_Z5FQJQ[hidden] {
  display: none !important;
}
