@font-face {
	font-family: "Song Ti";
	font-display: swap;
	src:
		url("./Songti.ttf");
}

body {
	font-family: "Times New Roman", "Song Ti";
}

#content {
  outline: 0;
}

.center {
	text-align: center !important;
}

p {
	text-indent: 2em;
}
ol {
	margin: 1em;
}
ol p {
	text-indent: 0;
}

table,
tb,
tr,
td,
th {
	border: 1px solid;
	border-collapse: collapse;
}

.exam-options {
	padding: 4pt;
}

.exam-singleOption-large,
.exam-singleOption-small {
	list-style: upper-alpha;
	display: inline-block list-item;
	/* TODO: grid */
	width: fit-content;
	/*margin-block-end: 1em;*/
	margin-inline-end: 40px;
}

.exam-singleOption-small {
	display: inline list-item;
	margin-right: 1em;
}

.exam-singleOption-small:first-child {
	/* margin-left: -1em;*/
}

blockquote {
	border: 1px solid;
	padding: 4pt;
}

hr {
	border: 1px solid;
}

code {
	background: #EEE;
}

/**
 * 
 */
ol.exam-2rd-lists {
	counter-reset: index attr(data-start, 1);
}

.exam-2rd-list-single {
	counter-increment: index;
	list-style: none;
	position: relative;
}

.exam-2rd-list-single:before {
	content: '(' counter(index) ') ';
	width: fit-content;
	position: absolute;
	left: -.25rem;
	transform: translateX(-100%);
	/*  */
}

.exam-essay {
	border: 1px solid;
	height: fit-content;
	min-height: 1em;
	padding: 4pt;
	border-collapse: collapse;
	margin-bottom: 1em;
}

.exam-essay span {
	display: block;
	border-bottom: 1px solid;
	width: 100%;
	height: 1em;
	font-style: italic;
}

.exam-essay hr {
	border: 0;
	margin: 0;
	border-bottom: 1px solid;
	height: 1.1em;
}

input.exam-part-check + .exam-part {
	color: #888;
}
input.exam-part-check:checked + .exam-part {
	color: inherit;
}
input.exam-part-check:after {
	content: '';
	box-sizing: border-box;
	position: relative;
	top: -4pt;
	padding: 2pt;
	width: 62vw;
	display: block;
	border-top: 1pt solid;
}
input.exam-part-check:checked:before {
	margin-left: 1.5em;
	float: left;
	display: inline-block;
	width: max-content;
	content: '已选中';
}

.exam-part-collapse {
	max-height: 25em;
	display: block;
	border-bottom: 1pt solid;
	margin-bottom: 2em;
	overflow: hidden;
	box-shadow: inset 0 -4pt 2pt -1pt rgba(0, 0, 0, .2);
}


.question-box {
	margin: 10px 0;
	padding: 2pt;
	box-shadow: 0 0 2pt rgba(0, 0, 0, .6);
}

img {
	max-width: 100%;
	height: auto;
}

.fill {
	display: inline-block;
	min-width: 4em;
	border-bottom: 1px solid currentcolor;
}

ol.substems {
	list-style: lower-roman;
}

.answers,
.analysis {
	display: none;
}

.show {
	display: block !important;
}

.paper-source {
	font-size: 10pt;
	background: #d2e3f3;
	border: currentColor solid 1px;
}

#print {
	position: fixed;
	bottom: 15pt;
	right: 15pt;
	box-shadow: 0 0 4pt rgba(0, 0, 0, .3);
}


@media print {
	body {
		font-family: "Times New Roman", "Song Ti";
		margin: 16pt;
		text-align: justify;
		line-height: 110%;
	}

	h1,
	h2,
	h3,
	h4,
	h5,
	h6,
	p {
		margin: 8pt;
	}

	.center * {
		text-align: center !important;
	}

	a:link,
	a:visited {
		color: #000;
	}

	@page {
		size: A4;
		margin: 20pt;
		

		@bottom-center {
			font-size: .8rem;
			font-family: "Times New Roman", "Song Ti";
			content: "第 " counter(page) " 页/共 " counter(pages) " 页";
		}
	}

	code {
		background: initial;
	}

	.question-box {
		box-shadow: 0 0 0;
	}
	
	.exam-part-collapse {
		max-height: initial;
		box-shadow: 0 0 0;
	}

	.showbtn,
	#footer,
	.paper-source,
	#print,
	input,
	input.exam-part-check + .exam-part,
	.select-direct {
		display: none;
	}
	input.exam-part-check:checked + .exam-part {
		display: initial;
	}
}