/* 工具卡片悬停动效 */
.tool-card {
  will-change: transform, box-shadow;
}

/* 上传区域拖拽高亮 */
.upload-zone.dragover {
  border-color: #6366f1 !important;
  background-color: #eef2ff !important;
}

/* Canvas 容器 */
.canvas-wrapper {
  position: relative;
  background: repeating-conic-gradient(#e5e7eb 0% 25%, transparent 0% 50%) 50% / 16px 16px;
  border-radius: 0.75rem;
  overflow: hidden;
}

.canvas-wrapper canvas {
  display: block;
  max-width: 100%;
  height: auto;
  cursor: default;
}

.canvas-wrapper canvas.dragging {
  cursor: grabbing;
}

.canvas-wrapper canvas.can-drag {
  cursor: grab;
}

/* 滑块样式美化 */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: #e5e7eb;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #6366f1;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #6366f1;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* 文件名截断 */
.file-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}

/* 按钮禁用态 */
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
