	.main {
		max-width: unset !important;
		max-height: unset !important;
		min-width: 450px;
	}

	.screen {
		width: 100% !important;
		height: 100% !important;
	}

	#emulator {
		width: 100% !important;
		height: 100% !important;
	}

	#emulator>div {
		width: 100% !important;
		height: 100% !important;
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.function {
		display: none !important;
	}

	.nes-screen {
		width: 100% !important;
		height: 100% !important;
	}

	.nes-roms {
		/* position: fixed;
		bottom: 15px;
		left: 50%;
		transform: translateX(-100%); */
	}

	.nes-controls {
		/* position: fixed;
		bottom: 15px;
		right: 50%;
		transform: translateX(100%); */
	}

	.readme {
		color: red !important;
	}

	.function {
		visibility: hidden !important;
		/* display: none !important; */
	}

	/* 定义全局变量 */
	:root {
		--primary-color: #007BFF;
		--secondary-color: #FFC107;
		--border-color: #ddd;
		--text-color: #333;
		--background-color: #f9f9f9;
	}

	/* 整体容器样式 */
	.nes-roms {
		border: 2px solid var(--border-color);
		border-radius: 10px;
		background-color: var(--background-color);
		/* padding: 20px; */
		box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
		width: 300px;
		/* margin: 50px auto; */
	}

	@media (max-width: 767px) {
		.nes-roms {
			width: unset !important;
			/* margin: 50px auto; */
		}

		.nes-controls {
			gap: unset !important;
		}

		.controller {
			display: none;
		}

		#controls-fire {
			display: none;
		}
	}

	/* 下拉框样式 */
	.nes-roms select {
		width: 100%;
		padding: 10px;
		font-size: 16px;
		border: 1px solid var(--border-color);
		border-radius: 5px;
		appearance: none;
		-webkit-appearance: none;
		-moz-appearance: none;
		background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6" viewBox="0 0 10 6"><path fill="%23333" d="M0 0l5 6 5-6H0z"/></svg>');
		background-repeat: no-repeat;
		background-position: right 10px center;
		cursor: pointer;
		/* color: var(--text-color); */
	}

	/* 下拉框选项组样式 */
	.nes-roms optgroup {
		font-style: normal;
		font-weight: bold;
		color: var(--primary-color);
		padding-top: 10px;
	}

	/* 下拉框选项样式 */
	.nes-roms option {
		padding: 5px 10px;
	}

	/* 下拉框选项悬停样式 */
	.nes-roms option:hover {
		background-color: var(--secondary-color);
		color: white;
	}

	/* 定义全局变量 */
	:root {
		--primary-color: #007BFF;
		--secondary-color: #28a745;
		--tertiary-color: #dc3545;
		--text-color: #fff;
		--hover-bg-color: #0056b3;
		--button-border-radius: 8px;
		--button-padding: 12px 24px;
		--button-font-size: 16px;
	}

	/* 按钮容器样式 */
	.nes-controls {
		display: flex;
		justify-content: center;
		gap: 20px;
		/* margin-top: 20px; */
	}

	/* 通用按钮样式 */
	.nes-controls input[type="button"] {
		padding: var(--button-padding);
		font-size: var(--button-font-size);
		border: none;
		border-radius: var(--button-border-radius);
		color: var(--text-color);
		cursor: pointer;
		transition: background-color 0.3s ease;
	}

	/* 继续按钮样式 */
	.nes-pause {
		background-color: var(--primary-color);
	}

	.nes-pause:hover {
		background-color: var(--hover-bg-color);
	}

	/* 重启按钮样式 */
	.nes-restart {
		background-color: var(--secondary-color);
	}

	.nes-restart:hover {
		background-color: #218838;
	}

	/* 关闭声音按钮样式 */
	.nes-enablesound {
		background-color: var(--tertiary-color);
	}

	.nes-enablesound:hover {
		background-color: #c82333;
	}