/* Canvas 容器样式 */
#canvasDiv canvas{
	position:absolute;
}

/* 按键配置面板样式 */
#keyConfigPanel {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #333;
	color: white;
	padding: 20px;
	border-radius: 10px;
	z-index: 1000;
	width: 400px;
}

#keyConfigPanel h3 {
	margin-top: 0;
	color: white;
}

#keyConfigPanel h4 {
	margin-top: 15px;
	margin-bottom: 10px;
	color: #ddd;
	border-bottom: 1px solid #555;
	padding-bottom: 5px;
}

#keyConfigPanel p {
	margin: 8px 0;
	line-height: 1.6;
}

#keyConfigPanel label {
	display: inline-block;
	width: 60px;
	text-align: right;
	margin-right: 10px;
	color: #aaa;
}

#keyConfigPanel span {
	display: inline-block;
	width: 80px;
	text-align: center;
	background: #444;
	padding: 2px 8px;
	border-radius: 3px;
	margin-right: 10px;
}

#keyConfigPanel button {
	background: #555;
	color: white;
	border: none;
	padding: 6px 12px;
	border-radius: 4px;
	cursor: pointer;
	margin: 2px;
	transition: background 0.2s;
}

#keyConfigPanel button:hover {
	background: #666;
}

/* 按键监听提示样式 */
#keyListenPanel {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: #ff6b6b;
	color: white;
	padding: 25px;
	border-radius: 15px;
	z-index: 1001;
	width: 350px;
	box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
	border: 3px solid #ff4757;
}

#keyListenPanel h3 {
	margin-top: 0;
	color: white;
	text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

#keyListenPanel p {
	font-size: 18px;
	margin: 15px 0;
	color: white;
}

#keyListenPanel button {
	background: #ff4757;
	color: white;
	border: none;
	padding: 8px 16px;
	border-radius: 5px;
	font-weight: bold;
	cursor: pointer;
}

#keyListenPanel button:hover {
	background: #ff6b6b;
}