body {
  margin: 0;
  position: relative;
  font-size: 0;
}

/* 主图 */
#responsive-image {
  width: 100%;
  display: none;
  height: auto;
  pointer-events: none;
  user-select: none;
  transition: filter 0.5s ease-in-out, opacity 0.5s ease-in-out;
  filter: blur(5px);
}

/* 热区按钮（由配置渲染） */
.responsive-button {
  position: absolute;
  cursor: pointer;
}

/* Hotspot 调试工具：仅在 ?hotspot_debug=1 时启用 */
#hotspot-debug {
  position: absolute;
  left: 20px;
  top: 20px;
  width: 220px;
  height: 90px;
  box-sizing: border-box;
  border: 2px dashed #ff4d4f;
  background: rgba(255, 77, 79, 0.1);
  z-index: 9999;
  display: none;
  touch-action: none;
  user-select: none;
}

#hotspot-debug .dbg-handle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #fff;
  border: 1px solid #ff4d4f;
  box-sizing: border-box;
}

#hotspot-debug .dbg-handle[data-dir="nw"] {
  left: -6px;
  top: -6px;
  cursor: nwse-resize;
}

#hotspot-debug .dbg-handle[data-dir="ne"] {
  right: -6px;
  top: -6px;
  cursor: nesw-resize;
}

#hotspot-debug .dbg-handle[data-dir="sw"] {
  left: -6px;
  bottom: -6px;
  cursor: nesw-resize;
}

#hotspot-debug .dbg-handle[data-dir="se"] {
  right: -6px;
  bottom: -6px;
  cursor: nwse-resize;
}

/* 顶部 toast */
#hotspot-toast {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: none;
  font-size: 12px;
  line-height: 18px;
  padding: 6px 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.75);
  border-radius: 6px;
  pointer-events: none;
  user-select: none;
}
