html {
	user-select: none;
	font-family: Sans-serif;
}

body {
	min-width: 320px;
	min-height: 100vh;
	margin: 0px;
	background-color: rgb(249, 249, 249);
	color: black;
}

.main-index {
	position: relative;
	/* 解决间距滑动变大问题 */
	background-image: linear-gradient(rgba(30, 144, 255, 0.1), rgb(249, 249, 249));
	height: 100vh;
	height: 100svh;
}

.main-index-h2 {
	color: rgb(30, 144, 255);
}

.main-index-topnav {
	z-index: 9990;
	position: fixed;
	display: flex;
	align-items: center;
	justify-content: space-between;
	box-sizing: border-box;
	padding: 8px 24px;
	width: 100%;
	transition: 0.5s;
	backdrop-filter: blur(10px);

}

.main-index-topnav-home {
	align-items: center;
	gap: 8px;
	padding: 6px;
	font-size: 16px;
	font-weight: 400;
	line-height: 20px;
}

.main-index-topnav-home img {
	display: block;
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	border-radius: 5px;
}

.main-index-topnav-actions {
	display: flex;
	align-items: center;
	margin-left: auto;
}

.main-index-topnav-on {
	background-color: rgba(255, 255, 255, 0.9);
	box-shadow: 0px 0px 5px rgba(200, 200, 200, 0.4);
}

.main-index-topnav button {
	padding: 8px 12px;
	border: none;
	background: none;
	border-radius: 5px;
	transition: 0.25s;
	/* font-size:14px; */
}

.main-index-topnav button span {
	margin-left: 6px;
}

.main-index-topnav button:hover {
	background: rgba(30, 144, 255, 0.1);
}


.main-index-footer {
	color: rgb(144, 144, 144);
	font-size: 12px;
}

.main-main {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	width: 100%;
}

h1,
h2,
h3 {
	margin: 0px;
}

.main-card {
	margin: 32px;
	margin-top: 0px;
	height: auto;
	text-align: center;
}

a {
	color: black;
}

/* 主屏幕容器 */
.main-main-container {
	flex-direction: row;
	justify-content: space-between;
	display: flex;
}

.main-main-container h1 {
	font-size: 40px;
	margin-bottom: 8px;
}

.main-main-container h2 {
	margin-bottom: 8px;
}

.main-main-container-left {
	text-align: left;
	padding-left: 20%;
	width: 50%;
}

.main-main-container-right {
	text-align: right;
	padding-right: 20%;
	width: 50%;
}

.main-main .main-main-container-left {
	padding-left: 10%;
	width: 40%;
}

.main-main .main-main-container-right {
	padding-right: 10%;
	width: 60%;
}

/* 高光CSS */
.main-features {
	background-color: rgba(255, 255, 255, 0.9);
	border-radius: 10px;
	box-shadow: 0px 0px 10px rgba(200, 200, 200, 0.4);
	padding: 16px;
	margin: 16px;
	width: 160px;
}

.main-element {
	background-color: rgba(255, 255, 255, 0.9);
	border-radius: 10px;
	box-shadow: 0px 0px 10px rgba(200, 200, 200, 0.4);
	padding: 16px;
	margin: 16px;
	/* width: auto; */
	width: 800px;
	max-width: calc(100% - 32px);
	box-sizing: border-box;
}

.main-features i {
	font-size: 32px;
	margin: 16px;
	display: block;
	color: rgb(30, 144, 255);
}

.main-features small {
	display: block;
	margin-top: 8px;
	color: gray;
	font-size: 12px;
	line-height: 1.35;
}

/* .main-main-desc {} */

.main-main-desc h3 {
	display: inline-block;
}

.main-main-desc span {
	margin: 0 8px;
	color: rgba(200, 200, 200, 0.5);
}

/* 按钮 */

.btn {
	background-color: var(--color);
	padding: 8px 20px;
	border: none;
	border-radius: 5px;
	transition: 0.25s;
	box-shadow: 0 4px 4px 0 rgba(200, 200, 200, 0.3);
	color: white;
}

.btn:hover {
	filter: brightness(0.9);
	box-shadow: 0 4px 4px 0 rgba(200, 200, 200, 0.3);
}

/* 蓝链接 */
.blue-link {
	color: rgb(30, 144, 255);
	text-decoration: none;
}

.blue-link:hover {
	text-decoration: underline;
}

/* 分隔符 */
.line {
	height: 1px;
	border: none;
	background-color: rgba(200, 200, 200, 0.5);
	margin: 16px 0;
	width: 100%;
}

.site-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 14px;
	box-sizing: border-box;
	width: min(calc(100% - 48px), 1200px);
	margin: 40px auto 0;
	padding: 0 0 24px;
	color: rgb(144, 144, 144);
	font-size: 13px;
	line-height: 1.5;
	text-align: center;
}

.site-footer a {
	color: inherit;
	text-decoration: none;
}

.site-footer a:hover {
	color: rgb(30, 144, 255);
}

.site-footer-records,
.site-footer-record {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.site-footer-records {
	gap: 14px;
}

.site-footer-record img {
	width: 16px;
	height: 16px;
}

@media screen and (max-width:920px) {
	.site-footer {
		width: min(calc(100% - 32px), 680px);
		margin-top: 32px;
	}

	.site-footer-copy,
	.site-footer-records {
		justify-content: center;
	}
}

@media screen and (max-width:540px) {
	.site-footer-records {
		flex-direction: column;
		gap: 8px;
	}

	.site-footer-records a {
		white-space: nowrap;
	}
}

@media (prefers-color-scheme:dark) {
	body {
		background-color: rgb(18, 18, 18);
		color: white;
	}

	.main-index {
		background-image: linear-gradient(rgba(30, 144, 255, 0.1), rgb(18, 18, 18));
	}

	a {
		color: white;
	}

	.main-index-topnav-on {
		background-color: rgba(0, 0, 0, 0.9);
		box-shadow: 0px 0px 5px rgba(45, 45, 45, 0.5);
	}

	.main-index-topnav button {
		color: white;
	}

	.btn {
		box-shadow: 0 2px 4px 0 rgba(128, 128, 128, 0.3);
	}

	.btn:hover {
		filter: brightness(.85);
		box-shadow: 0 4px 4px 0 rgba(128, 128, 128, 0.3);
	}

	.main-element,
	.main-features {
		background-color: rgba(33, 33, 33, 0.9);
		box-shadow: 0px 0px 10px rgba(55, 55, 55, 0.4);
	}

	.line {
		background-color: rgba(55, 55, 55, 0.5);
	}

	.main-main-desc span {
		color: rgba(55, 55, 55, 0.5);
	}
}

@media screen and (max-width:920px) {
	.main-index-topnav {
		padding: 8px 16px;
	}


	.main-main-container-left {
		padding: 0;
		width: 100%;
		box-sizing: border-box;
	}

	.main-main-container h2 {
		font-size: 22px;
	}

	.main-main-container {
		flex-direction: column;
		align-items: center;
	}

	.main-card {
		margin: 0px;
	}

	.main-main-container-right,
	.main-main .main-main-container-left,
	.main-main .main-main-container-right {
		width: 100%;
		padding: 0;
		text-align: center;
		box-sizing: border-box;
		/* 傻逼东西，害我浪费半小时 */
	}

	.main-main .main-main-container-right img {
		display: block;
		width: calc(100% - 48px) !important;
		max-width: 680px;
		margin: 24px auto 0;
		box-sizing: border-box;
	}

	.line {
		margin: 16px auto;
	}

	/* #page-donate .main-element {
		box-sizing: border-box;
		width: calc(100% - 32px);
	} */

	#page-donate .main-main-container {
		flex-direction: row;
		align-items: flex-start;
	}

	#page-donate .main-main-container-left,
	#page-donate .main-main-container-right {
		box-sizing: border-box;
		width: 50%;
		padding: 0;
		text-align: center;
	}

	#page-donate .main-main-container img {
		max-width: 100%;
		height: auto;
	}

	#page-about .main-main-container-right br {
		display: none;
	}

	#page-about .main-main-container-right img {
		display: inline-block;
		vertical-align: middle;
		width: 128px !important;
		max-width: 48%;
		height: auto;
		margin: 24px 4px 0 24px;
	}
}

@media screen and (max-width:680px) {
	.main-index-topnav-actions button span {
		display: none;
	}
}

@media screen and (max-height:550px) {
	.main-index {
		height: auto;
		min-height: 550px;
	}

	.main-main {
		position: static;
		transform: none;
		padding-top: 70px;
		box-sizing: border-box;
	}
}
