/* 2026-11-26 新站通用：顶部安全区 + 顶栏遮罩
   说明：独立浏览器打开时，页面顶部有一段属于浏览器自己绘制的区域，
   固定元素（彩带/顶栏）会从它下面开始，所以遮罩必须往上延伸，不能从 top:0 起算。 */

body {
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

/* 顶部 5px 彩色渐变条，压到安全区下面 */
body::after {
  top: env(safe-area-inset-top) !important;
}

/* 顶栏背后的遮罩：滚动后出现，向上多伸 200px，盖住彩带上方那段 */
.psu-mask {
  position: fixed;
  left: 0;
  right: 0;
  top: -200px;
  height: 320px;
  background: linear-gradient(to bottom, var(--bg-page) 0%, var(--bg-page) 84%, rgba(0, 0, 0, 0) 100%);
  z-index: 85;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s linear;
}

.psu-mask.on {
  opacity: 1;
}