/**
 * WP Exam 前台样式
 * 适配 ≥360px；触控目标 ≥44px；倒计时吸顶；提交按钮吸底。
 */

.wpexam-front {
	box-sizing: border-box;
	max-width: 100%;
	font-size: 16px;
	line-height: 1.6;
}

.wpexam-front *,
.wpexam-front *::before,
.wpexam-front *::after {
	box-sizing: border-box;
}

/* 按钮（触控目标 ≥44px）。 */
.wpexam-btn {
	display: inline-block;
	min-height: 44px;
	line-height: 44px;
	padding: 0 18px;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	background: #f6f7f7;
	color: #1d2327;
	text-decoration: none;
	cursor: pointer;
	font-size: 15px;
}

.wpexam-btn-primary {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
}

.wpexam-btn-primary:hover {
	background: #135e96;
	color: #fff;
}

.wpexam-btn[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
}

/* 表单。 */
.wpexam-front input[type="text"],
.wpexam-front input[type="password"],
.wpexam-front input[type="email"],
.wpexam-front .wpexam-textarea {
	display: block;
	width: 100%;
	min-height: 44px;
	padding: 8px 10px;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	font-size: 16px;
}

.wpexam-front .wpexam-textarea {
	min-height: 120px;
}

.wpexam-front label {
	display: block;
	margin-bottom: 8px;
}

.wpexam-msg {
	margin-top: 8px;
	color: #b32d2e;
}

/* 提示。 */
.wpexam-notice {
	padding: 12px 14px;
	background: #fff8e5;
	border-left: 4px solid #dba617;
	border-radius: 2px;
}

.wpexam-logged-in {
	font-weight: 600;
}

/* 表格。 */
.wpexam-table {
	width: 100%;
	border-collapse: collapse;
}

.wpexam-table th,
.wpexam-table td {
	padding: 10px;
	border: 1px solid #e0e0e0;
	text-align: left;
	vertical-align: top;
}

.wpexam-table th {
	background: #f6f7f7;
}

/* 答题页。 */
.wpexam-paper__header {
	position: sticky;
	top: 0;
	z-index: 10;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	background: #fff;
	border-bottom: 1px solid #e0e0e0;
}

.wpexam-countdown {
	font-weight: 600;
}

.wpexam-countdown__clock {
	font-variant-numeric: tabular-nums;
	color: #2271b1;
}

.wpexam-countdown__clock.is-danger {
	color: #b32d2e;
}

.wpexam-question {
	padding: 14px 0;
	border-bottom: 1px solid #eee;
}

.wpexam-question__head {
	font-weight: 600;
	margin-bottom: 6px;
}

.wpexam-question__stem {
	margin-bottom: 10px;
}

.wpexam-option {
	display: block;
	min-height: 44px;
	line-height: 44px;
	margin: 0;
}

.wpexam-option input {
	margin-right: 8px;
}

.wpexam-blank {
	margin: 8px 0;
}

.wpexam-paper__actions {
	position: sticky;
	bottom: 0;
	z-index: 10;
	padding: 12px;
	background: #fff;
	border-top: 1px solid #e0e0e0;
}

.wpexam-paper__actions .wpexam-btn {
	width: 100%;
}

/* 桌面端微调。 */
@media (min-width: 600px) {
	.wpexam-paper__actions .wpexam-btn {
		width: auto;
		min-width: 160px;
	}
}
