.design-diff-marker {
  position: absolute;
  pointer-events: none;
  z-index: 9999;
}

/* Margin标注样式 */
.design-diff-marker[class*="margin-"] {
  background: rgba(255, 0, 0, 0.1);
  border: 1px dashed rgba(255, 0, 0, 0.5);
}

/* Padding标注样式 */
.design-diff-marker[class*="padding-"] {
  background: rgba(0, 0, 255, 0.1);
  border: 1px dashed rgba(0, 0, 255, 0.5);
}

/* 标注文字样式 */
.design-diff-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 2px 4px;
  border-radius: 2px;
  font-size: 12px;
  color: #333;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Margin标注文字 */
.margin-top .design-diff-label,
.margin-bottom .design-diff-label {
  background: #ffebee;
  color: #f44336;
}

.margin-left .design-diff-label,
.margin-right .design-diff-label {
  background: #ffebee;
  color: #f44336;
}

/* Padding标注文字 */
.padding-top .design-diff-label,
.padding-bottom .design-diff-label {
  background: #e3f2fd;
  color: #2196f3;
}

.padding-left .design-diff-label,
.padding-right .design-diff-label {
  background: #e3f2fd;
  color: #2196f3;
}

/* 可拖拽小面板 */

/* 小面板样式 */
.design-toolbar {
  position: fixed;
  top: 10px;
  right: 10px;
  width: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* 面板宽度缩小 */
  padding: 5px 15px;
  /* 缩小内边距 */
  background-color: #f5f5f5;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  cursor: grab;
  z-index: 1000;

}

.design-toolbar:active {
  cursor: grabbing;
}

/* 按钮样式 */
.design-tool-button {
  display: block;
  padding: 2px 5px;
  /* 缩小按钮内边距 */
  margin: 3px 0;
  /* 缩小按钮间距 */
  font-size: 12px;
  /* 字体大小改为12px */
  border: none;
  border-radius: 5px;
  background-color: #28a745;
  /* 按钮颜色改为绿色 */
  color: white;
  cursor: pointer;
  text-align: center;
}

.design-tool-button:hover {
  background-color: #137829;
  /* 按钮悬停颜色 */
}

.design-tool-button:active {
  background-color: #1e7e34; /* 按钮点击颜色 */
  transform: scale(0.95); /* 点击时缩放按钮 */
}