/* ══════════════════════════════════════════════════════════════════════
   滚动改「内区块滚动」：标签栏不再被内容穿透（2026-10-16）
   ==================================================================
   ## 问题（用户截图：内容"挤出去"压在标签栏上）
   原来的滚动容器是 **`.layout-content` 自己**
   （`display:flex; flex-direction:column; height:calc(100%-26px); overflow:auto`），
   而顶部标签栏 `.art-work-tab` 是它的 **sticky 子元素**（`position:sticky; top:0; z-index:6`）。
   ⇒ 页面一滚，内容就从标签栏**背后穿过去**；标签栏容器又是透明的
   （10-15 按用户要求去掉了背景）⇒ 穿过去的内容直接露出来。

   ## 改法：把滚动下沉一层（不碰标签栏的透明外观）
     · `.layout-content`  → `overflow: hidden`（不再自己滚）
     · `.art-page-view`   → `flex:1 1 auto; min-height:0; overflow-y:auto`（**页面区自己滚**）
     · `.art-work-tab`    → 留在外层、静态定位 ⇒ **物理上不可能与内容重叠**
   ⇒ 标签栏可以继续透明，穿透问题从根上消失。

   ⚠️ 实测确认的关键点：本项目的 **`.page-content` 与 `.art-page-view` 是同一个元素**
      （`<div class="page-content xxx art-page-view">`），`.layout-content` 与它之间**没有中间层**
      ⇒ 只能把滚动放在它身上。副作用：页面若自带 `max-width`，滚动条会落在那个窄框的右边缘
      （所以存储设置页把 `max-width` 去掉了）。

   🔴 选择器统一提到 `html body` 前缀（0,3,2）：主 CSS 会被 layout chunk 二次注入、
      加载更晚，同特异性下"后加载者胜" ⇒ 必须提权，与加载顺序无关。
   ══════════════════════════════════════════════════════════════════════ */

/* ── 1) 外层玻璃面板：不再滚动，交给页面区 ─────────────────────────── */
html body .app-layout.is-glass .layout-content {
  overflow: hidden !important;
}

/* ── 2) 页面区：唯一的滚动容器 ─────────────────────────────────────── */
html body .app-layout.is-glass .layout-content .art-page-view {
  flex: 1 1 auto !important;   /* 原来 flex:1 0 auto ⇒ 不肯收缩，撑破外层 */
  min-height: 0 !important;    /* 关键：否则 flex 子项不会小于内容高度 */
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

/* ── 3) 标签栏：留在外层、静态定位（外层不滚了，sticky 也没意义） ───── */
html body .app-layout.is-glass .layout-content .art-work-tab {
  position: relative !important;
  top: auto !important;
  flex: 0 0 auto !important;
}
