*,
*::after,
*::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #111;
  color: silver;
  font-family: "Google Sans Code", Consolas, "Noto Sans CJK SC", 微软雅黑, sans-serif;
}

.总区 {
  padding-top: 110px;
}

.Canvas容器 {
  position: relative;
  width: 100%;
  height: clamp(500px, calc(100vh - 110px), 3000px);
  display: flex;
  justify-content: center;
  align-items: center;
  --水平内边距: 5vw;
  --垂直内边距: 5vh;
}

#canvas {
  width: calc(100% - var(--水平内边距));
  height: calc(100% - var(--垂直内边距));
  outline: solid 1px #666;
  background-color: #1a1a1a;
  cursor: grab;
}

#canvas.dragging {
  cursor: grabbing;
}

.控制区 {
  position: absolute;
  bottom: calc(var(--垂直内边距) / 2 + 15px);
  right: calc(var(--水平内边距) / 2 + 15px);
  border: solid 2px #fff2;
  padding: 10px 20px;
  border-radius: 10px;
  overflow: hidden;
  background-color: #3455;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}

/* 现代化开关样式 */
.开关 {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin: 5px 0;
  user-select: none;
}

.开关输入 {
  display: none;
}

.开关滑块 {
  position: relative;
  width: 40px;
  height: 20px;
  background-color: #555;
  border-radius: 20px;
  margin-right: 10px;
  transition: background-color 0.3s;
}

.开关滑块::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  left: 2px;
  top: 2px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s;
}

.开关输入:checked + .开关滑块 {
  background-color: #40a0cc;
}

.开关输入:checked + .开关滑块::before {
  transform: translateX(20px);
}

.开关文本 {
  color: silver;
  font-size: 14px;
}

/* 保留原有样式 */
.标签,
.标签标题,
.复选框 {
  user-select: none;
}
