/* 全局重置 */
body {
  margin: 0;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* UI 控件容器：左上角固定 */
#ui-controls {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 通用按钮样式 */
.ui-btn {
  padding: 8px 16px;
  font-size: 14px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.ui-btn:hover {
  background-color: #45a049;
}
/* 蓝色按钮（用于更新） */
.ui-btn-blue {
  background-color: #2196F3;
}
.ui-btn-blue:hover {
  background-color: #0d8aee;
}

/* 语音结果显示文本框（单行） */
#speech-result {
  width: 300px;
  padding: 10px;
  font-size: 16px;
  border: 2px solid #ccc;
  border-radius: 4px;
  background-color: white;
  color: black;
  outline: none;
  box-sizing: border-box;
}

#speech-result:focus {
  border-color: #4CAF50;
}

/* ===== 参数面板 ===== */
#param-panel {
  position: absolute;
  top: 80px;
  left: 20px;
  z-index: 20;
}

.param-container {
  background: white;
  padding: 16px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  width: 280px;
}

.param-container h4 {
  margin: 0 0 12px 0;
  color: #333;
  font-size: 16px;
}

.param-row {
  display: flex;
  align-items: center;
  margin: 8px 0;
}

.param-label {
  width: 100px;
  font-size: 14px;
  color: #555;
}

.param-input {
  flex: 1;
  padding: 4px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
/* 坐标轴容器：右下角，不可点击 */
#corner-container {
  position: absolute;
  width: 150px;
  height: 150px;
  bottom: 20px;
  right: 20px;
  pointer-events: none;
  z-index: 10;
}