/**
 * PC 端 rem 布局 + 单层背景（配合 js/scale.js，参考 soc.xd.cn）
 * 设计稿 1920×1080 → 画布 19.2rem × 10.8rem，随 html font-size 等比缩放
 */
@media (min-width: 769px) {
  /* JS 未加载时的 rem 基准兜底 */
  html.dual-active-pc {
    font-size: min(calc(100vw / 19.2), calc(100dvh / 10.8), 100px);
  }

  html.dual-active-pc,
  html.dual-active-pc body {
    height: var(--pc-vh, 100dvh);
    overflow: hidden;
  }

  /* 内层画布不铺背景，仅最外层 viewport 铺底 */
  .dual-pc .page,
  .dual-pc .page[class*="page--"] {
    background-image: none !important;
    background-color: transparent !important;
  }

  .dual-pc:not(:has(.pc-fullpage)) {
    min-height: var(--pc-vh, 100dvh);
    overflow-x: hidden;
  }

  /* 独立子页 viewport */
  .dual-pc:not(:has(.pc-fullpage)) > .viewport {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: var(--pc-vh, 100dvh);
    min-height: 4.8rem;
    overflow: hidden;
    background-color: #eef3f8;
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
  }

  .dual-pc:not(:has(.pc-fullpage)) > .viewport:has(.page--news),
  .dual-pc:not(:has(.pc-fullpage)) > .viewport:has(.page--news-list),
  .dual-pc:not(:has(.pc-fullpage)) > .viewport:has(.page--news-detail) {
    background-image: url("../assets/images/news-bg.png");
  }

  .dual-pc:not(:has(.pc-fullpage)) > .viewport:has(.page--welfare) {
    background-image: url("../assets/images/yybd-bg.png");
  }

  .dual-pc:not(:has(.pc-fullpage)) > .viewport:has(.page--warriors) {
    background-image: url("../assets/images/yzjj-bg.png");
  }

  .dual-pc:not(:has(.pc-fullpage)) > .viewport:has(.page--features) {
    background-color: #8cb4d4;
    background-image: url("../assets/images/yyts-bg.jpg");
    overflow: visible;
  }

  .dual-pc:not(:has(.pc-fullpage)) .page-scale:has(.page--features) {
    overflow: visible;
  }

  .dual-pc:not(:has(.pc-fullpage)) > .viewport:has(.page--home) {
    background-color: #c8e4f5;
    background-image: url("../assets/images/home-bg.png");
  }

  .dual-pc:not(:has(.pc-fullpage)) .page-scale {
    position: relative;
    width: 19.2rem;
    flex-shrink: 0;
    transform: none !important;
  }

  .dual-pc:not(:has(.pc-fullpage)) .page.page--screen,
  .dual-pc:not(:has(.pc-fullpage)) .page.page--flow {
    height: 10.8rem;
    min-height: 10.8rem;
    max-height: 10.8rem;
    overflow: hidden;
  }

  .dual-pc:not(:has(.pc-fullpage)) .site-footer--pc {
    position: relative;
    z-index: 1;
  }

  /* 首页全屏切页 viewport：顶对齐，避免居中时上下溢出导致上一屏残留 */
  .pc-fullpage__screen:not(.pc-fullpage__screen--footer) .pc-screen__viewport {
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }

  .pc-fullpage__screen:not(.pc-fullpage__screen--footer) .pc-screen__scale {
    position: relative;
    width: 19.2rem;
    flex-shrink: 0;
    left: auto !important;
    top: auto !important;
    transform: none !important;
  }
}
