/*
 * 长页编辑器视觉口径补丁（官方 1:1）
 *
 * 官方 iOS WKWebView 的滚动条是浮层、截屏看不到；小程序在 Android WebView 里，
 * 长页（.long-wrap 高度 auto、内容超高）会在 .page-list / .page-list-wrap /
 * body 上画一条常驻 1px 灰色竖线，位置正好是 .page-list-wrap 右边界
 * （width:7.28rem ≈ 屏宽 72.8%）。实拍对比：我方该处是贯穿全高的
 * rgb(214,210,208) 细线，官方同位置没有。
 *
 * 官方 entry.css 的 .btm-btn / .editor-edit-eles / .page-list-wrap 规则与本地
 * 逐条一致，差异只在 WebView 对原生滚动条的渲染。因此这里只做「视觉隐藏」：
 * 不改布局尺寸、不改 z-index、不禁用滚动能力，也不改按钮尺寸。
 */

/* 1) 所有可能承载滚动条的层级：CSS 标准属性（旧版仅覆盖 7 个选择器，
      漏掉 html/body/#app/.main 及全部后代，长页时仍会画出细线） */
html,
body,
#app,
#editor-new,
#editor-new *,
#editor-new-mini,
#editor-new-mini * {
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

/* 2) WebKit 伪元素：宽高归零 + 隐藏 + 透明 */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
#app::-webkit-scrollbar,
#editor-new::-webkit-scrollbar,
#editor-new *::-webkit-scrollbar,
#editor-new-mini::-webkit-scrollbar,
#editor-new-mini *::-webkit-scrollbar {
  width: 0 !important;
  max-width: 0 !important;
  height: 0 !important;
  max-height: 0 !important;
  display: none !important;
  visibility: hidden !important;
  background: transparent !important;
  -webkit-appearance: none !important;
}

#editor-new .page-list::-webkit-scrollbar-thumb,
#editor-new .page-list::-webkit-scrollbar-track,
#editor-new .page-list::-webkit-scrollbar-corner,
#editor-new-mini .page-list::-webkit-scrollbar-thumb,
#editor-new-mini .page-list::-webkit-scrollbar-track,
#editor-new-mini .page-list::-webkit-scrollbar-corner,
#editor-new-mini .editor-edit-eles .e-wrap::-webkit-scrollbar-thumb,
#editor-new-mini .editor-edit-eles .e-wrap::-webkit-scrollbar-track {
  background: transparent !important;
  border: 0 !important;
  visibility: hidden !important;
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
}

/* 3) 容器级兜底：长页内容只在 .page-list 内部滚动，外层容器不产生自身滚动条 */
#editor-new-mini .page-list-wrap,
#editor-new .page-list-wrap {
  overflow: hidden !important;
}
#editor-new-mini .page-list,
#editor-new .page-list {
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

/* 4) 分隔线兜底：官方作品区与右侧面板之间没有任何 1px border/shadow/outline */
#editor-new-mini .page-list-wrap,
#editor-new-mini .page-list,
#editor-new-mini .main,
#editor-new-mini .editor-edit-eles,
#editor-new .page-list-wrap,
#editor-new .page-list,
#editor-new .editor-edit-eles {
  border-left: 0 !important;
  border-right: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

/* 5) 长页：作品区与右侧面板之间被压成 1px 的暖灰线（官方同位置是连续
      #f7f8f9 间隔）。补回 padding、清掉右侧面板所有后代的竖线来源，
      并在 .page-list-wrap 右边缘铺一条同色窄带盖住 WebView 绘制的 1px 线。 */
#editor-new-mini .page-list {
  padding-right: 0.533333rem !important;
}
#editor-new-mini .editor-edit-eles::before,
#editor-new-mini .editor-edit-eles::after {
  display: none !important;
}
#editor-new-mini .page-list-wrap::after {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 3px !important;
  background: #f7f8f9 !important;
  border: 0 !important;
  z-index: 30 !important;
  pointer-events: none !important;
}
