/* 小院 · 360° 预渲染房间 */
#dw-room .dr-pano{
  position:absolute;inset:0;width:100%;height:100%;display:block;z-index:1;
  opacity:0;transition:opacity .55s ease;background:#040c0b;touch-action:none;
  cursor:grab;-webkit-user-select:none;user-select:none;
}
#dw-room .dr-pano.is-grabbing{cursor:grabbing}
/* 不要撤掉 dr-bg：canvas 还在 0→1 淡入时，底层一撤就是黑闪。
   保留清晰静帧垫底，让画布透明淡入，全程不黑、不糊。 */
#dw-room .dr-stage.is-pano .dr-bg{animation:none}
#dw-room .dr-stage.is-pano .dr-tint{opacity:.30}
#dw-room .dr-stage.is-pano .dr-dust{opacity:.42}
#dw-room .dr-stage.is-pano .dr-hud b{color:#e5c17d}
#dw-room .dr-stage.is-pano .dr-hot{transition:left .06s linear,top .06s linear,opacity .18s ease}

/* 重新定义房间底层压暗：去掉 room.css 在 62% 处的硬边，避免画面出现一道横向暗带 */
#dw-room .dr-bg::after{
  background:
    radial-gradient(ellipse at 50% 44%,transparent 40%,rgba(0,0,0,.22) 100%),
    linear-gradient(180deg,rgba(3,12,11,.14) 0%,transparent 28%,transparent 68%,rgba(2,8,7,.50) 100%);
}

/* 底部文案区压暗，保证浅色茶席/雪景/白天书房上的标题仍可读 */
#dw-room .dr-copy-shade{
  position:absolute;left:0;right:0;bottom:0;height:42%;z-index:5;pointer-events:none;
  background:
    radial-gradient(ellipse at 18% 100%,rgba(2,8,7,.52) 0%,rgba(2,8,7,.16) 40%,transparent 72%),
    linear-gradient(180deg,rgba(2,8,7,0) 0%,rgba(2,8,7,.05) 22%,rgba(2,8,7,.32) 54%,rgba(2,8,7,.68) 100%);
}

/* 案牍模式保留标题可读性，避免底部压暗后文字一起消失 */
#dw-room .dr-stage.is-desk .dr-copy{opacity:.62}

/* 案牍全息已占据右侧，标题保持完整亮度并允许长标题单行 */
#dw-room .dr-stage.is-desk .dr-copy{opacity:.92}
#dw-room .dr-copy{max-width:700px}


/* 主题级色彩微调：只补暗部/通透度，不改主体色相 */
#dw-room[data-theme="jiangnan"] .dr-pano{filter:contrast(1.04) saturate(1.03)}
#dw-room[data-theme="xianxia"] .dr-pano{filter:contrast(1.02) saturate(1.04)}
#dw-room[data-theme="wuxia"] .dr-pano{filter:brightness(1.10) saturate(1.03)}
#dw-room[data-theme="diesel"] .dr-pano{filter:brightness(1.06) saturate(1.02)}
