.draggable-sticker {
  position: absolute;
  user-select: none;
  pointer-events: auto;
  z-index: 1001;
  transform-origin: center center;
  will-change: transform;
  touch-action: none;
  cursor: move;
}

.sticker-wrapper {
  position: relative;
  transition: transform 0.05s ease-out;
}

.sticker-image {
  max-width: 150px;
  max-height: 150px;
  cursor: inherit;
  user-drag: none;
  -webkit-user-drag: none;
}

.rotate-handle {
  position: absolute;
  bottom: -15px;
  right: -15px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  font-size: 14px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transform-origin: center center;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 10;
}

/* 鼠标悬停在贴纸上时显示旋转控件，不再依赖于 editable 属性 */
.sticker-wrapper:hover .rotate-handle {
  opacity: 1;
}

.rotate-handle:active {
  cursor: grabbing;
}

/* 触摸设备优化 */
@media (hover: none) {
  .rotate-handle {
    width: 30px;
    height: 30px;
    opacity: 0.8;
  }
}
