/* 基础样式 */
* {
  box-sizing: border-box;
}

/* 标注点样式 */
.annotation-point {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: rgba(255, 0, 0, 0.9);
  transform: translate(-50%, -50%);
  cursor: move;
  box-shadow: 0 0 0 1px rgba(255, 0, 0, 0.3);
}

/* 标准标注点样式 */
.groundtruth-point {
  position: absolute;
  width: 5px;
  height: 5px;
  background-color: rgba(0, 128, 0, 0.9);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px rgba(0, 128, 0, 0.3);
}

/* 标准标注标签 */
.groundtruth-label {
  position: absolute;
  font-size: 12px;
  background-color: rgba(0, 128, 0, 0.8);
  color: white;
  padding: 1px 4px;
  border-radius: 3px;
  white-space: nowrap;
}

/* 标注线样式 */
.annotation-line {
  position: absolute;
  height: 2px;
  background-color: rgba(255, 0, 0, 0.7);
  transform-origin: left center;
  box-shadow: 0 0 0 1px rgba(255, 0, 0, 0.2);
}

/* 标准标注线样式 */
.groundtruth-line {
  position: absolute;
  height: 2px;
  background-color: rgba(0, 128, 0, 0.7);
  transform-origin: left center;
  box-shadow: 0 0 0 1px rgba(0, 128, 0, 0.2);
}

/* 淡入动画 */
.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a1a1a1;
}

/* 按钮悬停效果 */
button {
  transition: all 0.2s ease;
}

/* 图片加载错误样式 */
img[src$="?grayscale&blur=2"] {
  filter: grayscale(1) blur(2px);
}
    