/* __KIKI_HOME_NAV_PERF__ 离首页立刻停绘 persist。
 * 隐藏态必须 position:fixed + 尺寸裁死：absolute 时 2560 子树仍计入 document.scrollWidth
 *（手机频道页横溢 ~1594、审计 overflowEls 218_35）。刷新首页有 data-boot-home，不能藏。 */
html:not(.kiki-home-persist-on):not([data-boot-home]):not(.kiki-home-persist-warm) #kiki-home-persist {
  visibility: hidden !important;
  pointer-events: none !important;
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  width: 100vw !important;
  max-width: 100% !important;
  height: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  content-visibility: hidden;
  contain: strict;
  clip-path: inset(0);
}
/* 回首页前预热：先恢复子树布局，仍不可见；fixed+裁切避免预热瞬间再撑出横滚 */
html.kiki-home-persist-warm:not(.kiki-home-persist-on) #kiki-home-persist {
  visibility: hidden !important;
  pointer-events: none !important;
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  width: 100vw !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
  opacity: 0 !important;
  content-visibility: visible !important;
  contain: paint;
}
.kiki-home-persist {
  min-height: 0;
}
/* 折下：编辑精选 / 最新上架 / 频道条。数字 id 须用属性选择器。不动英雄行（大卡 + 飙升榜）。电话端不加。 */
html.kiki-home-persist-on:not([data-vp="phone"]) .pixso-embed--home [id="270_156"],
html.kiki-home-persist-on:not([data-vp="phone"]) .pixso-embed--home [id="270_178"],
html.kiki-home-persist-on:not([data-vp="phone"]) .pixso-embed--home [id="270_503"],
html.kiki-home-persist-on:not([data-vp="phone"]) .pixso-embed--home [id="270_851"],
html.kiki-home-persist-on:not([data-vp="phone"]) .pixso-embed--home [id="270_1220"] {
  content-visibility: auto;
  contain-intrinsic-size: auto 720px;
}
html.kiki-home-persist-on:not([data-vp="phone"]) .pixso-embed--home [id="270_178"],
html.kiki-home-persist-on:not([data-vp="phone"]) .pixso-embed--home [id="270_503"] {
  contain-intrinsic-size: auto 560px;
}
