/* =========================================================================
 * parallax_core.css —— 视差舞台与图层的共用样式
 * 编辑页预览 与 画廊浏览端「视差模式」共用；尺寸由各自页面的 CSS 控制，
 * 核心只负责设置 aspect-ratio 与 --plx-asp。
 * ========================================================================= */
.plx-stage {
  position: relative;
  overflow: hidden;
  background: #EDE6D8;
  width: 100%;
  margin: 0 auto;
  touch-action: none;
  cursor: crosshair;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}
.plx-stage.is-empty::after {
  content: '暂无图层';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'SimSun', serif;
  font-size: 13px;
  letter-spacing: 2px;
  color: #8A8578;
}
.plx-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: 100% auto;
}
.plx-layer.is-ready { opacity: 1; }
.plx-layer.is-empty { outline: 1px dashed rgba(139, 0, 0, .4); outline-offset: -4px; }
