/* 移动端手势优化样式 */

/* 参数实验室图片双指缩放提示 */
.stage-zoom-hint {
  position: absolute; bottom: 10px; left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7); color: white;
  padding: 6px 12px; border-radius: 4px;
  font-size: 11px; pointer-events: none;
  opacity: 0; transition: opacity .3s;
}

.stage-zoom-hint.show {
  opacity: 1;
}

/* 触摸目标扩大（移动端） */
@media (max-width: 900px) {
  .crop-handle {
    width: 32px; height: 32px;
    margin: -16px 0 0 -16px;
  }

  .crop-box {
    touch-action: none;
    user-select: none;
  }
}

/* 防止双指缩放时页面缩放 */
.touch-zoom-enabled {
  touch-action: pan-x pan-y;
  user-select: none;
}

/* 构图练习：画布与对比分隔条由 Pointer Events 处理单指拖动，禁止浏览器把手势当成滚动
  （ID 选择器优先级高于上面的 .touch-zoom-enabled） */
#cp-canvas,
#cp-compare-divider {
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
