html,
body {
	padding: 0;
	margin: 0;
	font-size: 14px;
	height: 100%;
	background-color: white;
}

body {
	display: flex;
	flex-direction: column;
	align-items: center;
}

header {
	width: 100%;
	padding: 0px 2px;
	box-sizing: border-box;
	height: fit-content;
	background-color: rebeccapurple;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: white;
}

header b {
	margin-right: 4px;
	letter-spacing: 0px;
	font-size: large;
}

#logo {
	margin: 12px 0px 6px 0px;
	border-radius: 12px;
	width: 96px;
}

#intro {
	letter-spacing: 1px;
	min-height: 24px;
	box-sizing: border-box;
	margin-bottom: 6px;
}

main {
	width: 100%;
	max-width: 960px;
	padding: 0px 2px;
	box-sizing: border-box;
	flex-grow: 1;
}

footer {
	padding: 0px 2px;
	box-sizing: border-box;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: small;
}

footer div {
	box-sizing: border-box;
	padding: 0px 6px;
}

.part-bar {
	font-size: large;
	text-align: center;
	margin: 6px auto;
	height: 36px;
	line-height: 36px;
	width: 120px;
	color: rebeccapurple;
	background-color: rgb(102, 51, 153, 5%);
	border-radius: 12px;
}

#downloads {
	display: flex;
	justify-content: center;
	margin: 12px 0px 12px 0px;
	min-height: 48px;
}

#downloads>div {
	flex-basis: 50%;
	display: flex;
	flex-direction: column;
}

#downloads>div>* {
	width: 100%;
}

#downloads>div:first-child {
	align-items: end;
}

#downloads button {
	color: white;
	background-color: rgb(25, 135, 84);
	border: 2px solid #FFF;
	min-height: 48px;
	max-width: 240px;
	font-size: large;
	cursor: pointer;
	letter-spacing: 1px;
	box-sizing: border-box;
	padding: 4px 0px;
}

#downloads button:hover {
	border: 2px solid #000;
}

#n-spec,
#h-spec {
	width: 100%;
	max-width: 240px;
	box-sizing: border-box;
	padding: 0px 2px;
	line-height: 24px;
}

.ver-entry {
	width: 100%;
	min-height: 24px;
	cursor: pointer;
}

.ver-entry:hover {
	background-color: #EEE;
}

.ver-body {
	display: none;
}

.ver-item {
	display: block;
	color: blue;
	margin-left: 12px;
}

.ver-item:hover {
	background-color: #EEE;
}

#h-auto {
	background-color: rgb(220, 53, 69) !important;
}

#documents {
	text-align: center;
}

.grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 6px;
}

.grid>a {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	align-items: center;
	color: #333;
	border: 1px solid white;
	padding: 4px 0px 8px 0px;
}

.grid>a img {
	border-radius: 6px;
	width: 64px;
	justify-content: center;
}

.grid>a div:last-child {
	margin-top: 8px;
	font-size: 14px;
	text-align: center;
}

.grid>a .version {
	display: none;
}

.grid>a:hover div:last-child {
	color: #1677ff;
}

.grid>a:hover {
	border: 1px solid #1677ff;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.grid>a:hover .name {
	display: none !important;
}

.grid>a:hover .version {
	display: initial !important;
}

#docs_filter_input {
	box-sizing: border-box;
	width: 98%;
	max-width: 480px;
	height: 30px;
	font-size: medium;
	border: 1px solid #CCC;
	text-align: center;
}

/**
 * 付费弹窗
 */
.modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.6);
	z-index: 9999;

	display: flex;
	justify-content: center;
	align-items: center;
}

.modal-content {
	background: #fff;
	padding: 6px;
	border-radius: 6px;
	text-align: center;
	cursor: pointer;
}


.modal-content:hover {
	background-color: blue;
}

.pay-img {
	display: block;
	border-radius: 6px;
}

.close-btn {
	padding: 8px 16px;
	cursor: pointer;
}

/**
 * 内嵌框
 */
#ref-div {
	position: fixed;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	z-index: 9999;
	background-color: rgba(0, 0, 0, 0.75);
	display: none;
	align-items: center;
	justify-content: center;
}

#ref-iframe {
	padding: 0px;
	width: 90vw;
	height: 90vh;
	min-width: 1080px;
	max-width: 1800px;
	min-height: 540px;
	border: none;
	background-color: transparent;
}

@media (max-width:575.98px) {
	.grid {
		grid-template-columns: repeat(2, 1fr);
	}

	#ref-iframe {
		width: calc(100% - 10px);
		height: calc(100% - 10px);
		min-width: 360px;
	}
}