/* 将软件投影限定在展厅窗口，画框按钮与地面共同使用像素坐标。 */
.room-poster-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  background: #101a22;
}

/* 透视地坪与内外墙由轻量二维画布按容器尺寸绘制。 */
.room-poster-surface {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* 用石墨窄框、深色卡纸和背光阴影衬出原作颜色。 */
.room-poster-frame {
  box-sizing: border-box;
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 400px;
  margin: 0;
  padding: var(--mat, 16px);
  border: 5px solid #33454f;
  border-top-color: #71868b;
  border-left-color: #536972;
  border-radius: 0;
  background: #1c2933;
  box-shadow: inset 0 0 3px #101820, 3px 4px 1px #131c23, 6px 9px 16px #04080c80;
  transform-origin: 0 0;
  appearance: none;
  cursor: zoom-in;
  color: #e0e9ea;
}

/* 全幅摄影按原图比例填入留白画框。 */
.room-poster-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* 远处画框融入轻微青灰薄雾，近处照片保留原始色彩。 */
.room-poster-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #111e26;
  opacity: var(--distance-fade, 0);
  pointer-events: none;
}

/* 真实编号装在画框下方，键盘聚焦时沿实物外缘提示。 */
.room-poster-caption {
  position: absolute;
  top: calc(100% + 15px);
  left: 0;
  color: #c5d5d9;
  font: 500 9px/1.1 'Songti SC', Georgia, serif;
  white-space: nowrap;
  pointer-events: none;
}

/* 放大近处作品的选择轮廓。 */
.room-poster-frame:focus-visible {
  outline: 4px solid #b297ff;
  outline-offset: 5px;
}

/* 隐藏转角处已与视线平行的背面画框。 */
.room-poster-frame[hidden] {
  display: none;
}
