/* 单页浮层：资讯列表 / 详情 */
.spa-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  overflow: hidden;
  background: #eef3f8;
}

.spa-overlay[hidden] {
  display: none !important;
}

@media (min-width: 769px) {
  /* 低于 pc-fullpage__chrome(200)，顶栏保持可见 */
  .spa-overlay--pc-news-list,
  .spa-overlay--pc-news-detail {
    z-index: 150;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 0;
    background: transparent;
    pointer-events: none;
  }

  .spa-overlay--pc-news-list > *,
  .spa-overlay--pc-news-detail > * {
    pointer-events: auto;
    width: 100%;
    height: 100%;
  }

  .spa-overlay--pc-news-list .pc-screen__viewport,
  .spa-overlay--pc-news-detail .pc-screen__viewport {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: auto;
    background-color: #eef3f8;
    background-image: url("../assets/images/news-bg.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
  }

  .spa-overlay--pc-news-list .pc-screen__scale,
  .spa-overlay--pc-news-detail .pc-screen__scale {
    transform: scale(var(--pc-fit-scale, 1));
    transform-origin: top center;
    flex-shrink: 0;
  }

  .spa-overlay--pc-news-list .page--news-list,
  .spa-overlay--pc-news-detail .page--news-detail {
    width: var(--pc-canvas-w, 19.2rem);
    min-height: var(--pc-canvas-h, 10.8rem);
  }
}

body.spa-news-list-open,
body.spa-news-detail-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .spa-overlay--news-detail {
    inset: auto 0 0;
    top: 0.7rem;
    height: calc(100% - 0.7rem);
    z-index: 400;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    background: #eef3f8;
  }

  .spa-overlay--news-detail .page--news-detail {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .spa-overlay--news-detail .detail-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  html.news-list-active .dual-mobile .mobile-fixed-header {
    z-index: 1002;
  }

  html.news-list-active .dual-mobile .mobile-swiper {
    touch-action: auto;
  }

  html.news-list-active .dual-mobile .swiper-slide[data-key="news"] .page {
    overflow: hidden;
  }

  html.news-list-active .dual-mobile .mobile-home-next {
    visibility: hidden;
    pointer-events: none;
  }
}
