* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: "Microsoft YaHei", sans-serif;
	background: #f8f9fa !important;
	color: #333;
}

.app {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 10px;
	background: #f8f9fa;
}

/* 头部 */
.header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 8px 24px;
	background: white;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	position: sticky;
	top: 0;
	z-index: 10;
}

.nav-btns {
	display: flex;
}

.nav-btns .btn {
	border: 1px solid #ccc;
	background: white;
	cursor: pointer;
	margin-right: 12px;
	border-radius: 4px;
}

.nav-btns .btn:hover {
	background: #f0f0f0;
}

.time-controls .btn {
	padding: 8px 16px;
	border: none;
	background: #b6000c;
	color: white;
	border-radius: 4px;
	cursor: pointer;
}

.time-controls .btn:hover {
	background: #9a000a;
}

/* 主内容区 */
.main-content {
	padding: 24px;
	background: white;
	margin: 16px 0;
	border-radius: 8px;
	box-shadow: 0 1px 8px rgba(0, 0, 0, 0.1);
}

.question-stem {
	font-size: 16px;
	line-height: 1.6;
	margin-bottom: 24px;
	white-space: pre-wrap;
	text-align: left;
}

.question-stem img {
	max-width: 100%;
}

.question-options {
	margin-top: 24px;
}

/* 单选题 */
.radio-option {
	margin: 12px 0;
	display: flex;
	align-items: center;
}

.radio-option input[type="radio"] {
	margin-right: 8px;
}

/* 填空题 */
.fill-blank {
	width: 120px;
	height: 32px;
	border: 1px solid #ccc;
	padding: 0 8px;
	border-radius: 4px;
	text-align: center;
}

/* 下拉题 */
.select-option {
	margin: 12px 0;
	display: flex;
	align-items: center;
}

.select-option select {
	width: 120px;
	height: 32px;
	border: 1px solid #ccc;
	border-radius: 4px;
}

/* 拖拽题 */
.drag-container {
	gap: 40px;
	margin: 24px 0;
}

.drag-options {
	width: 100%;
	padding: 16px;
	border-radius: 8px;
	position: relative;
	margin-top: 30px;
	height: 150px;
}

.drag-options img {
	width: 32px;
	height: 32px;
	margin-bottom: 8px;
	cursor: move;
	display: block;

	position: absolute;
	-webkit-user-drag: none;
	/* 禁用 Safari 图片拖拽 */
	user-drag: none;
	pointer-events: auto;
	/* 确保能响应事件 */
	touch-action: none;
	/* 关键！禁用浏览器默认 touch 行为 */
}

/* drop 区域 */
.drop-zone {
	min-height: 80px;
	border: 2px dashed #ccc;
	margin: 20px 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.drag-target {
	width: 300px;
	height: 100px;
	border: 2px dashed #b6000c;
	border-radius: 8px;
	display: flex;
	justify-content: center;
	align-items: center;
	background: #f9f9f9;
}

.action-btn .btn {
	padding: 10px 20px;
	background: #b6000c;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
}

.action-btn .btn:hover {
	background: #9a000a;
}

/* 底部导航 */
.footer-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 24px;
	background: white;
	border-top: 1px solid #eee;
}

.page-nav {
	display: flex;
	align-items: center;
	gap: 8px;
}

.page-list {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	white-space: nowrap;
}

.page-list .page-item {
	width: 32px;
	height: 32px;
	display: flex;
	justify-content: center;
	align-items: center;
	border: 1px solid #ddd;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
}

.page-list .page-item.active {
	background: #b6000c;
	color: white;
	border-color: #b6000c;
}

.controls .btn {
	padding: 8px 16px;
	border: 1px solid #ccc;
	background: white;
	cursor: pointer;
	border-radius: 4px;
	margin-left: 8px;
}

.controls .btn:hover {
	background: #f0f0f0;
}


.radio-option img {
	max-width: 80%;
}

.select-option input {
	padding: 5px;
	border: none;
	margin: 0 5px;
	box-shadow: 0 0 5px 1px #000;
	border-radius: 3px;
	width: 50px;
}