@font-face {
	font-family: "Source Han Sans SC";
	src: url("../assets/fonts/source-han-regular.otf") format("opentype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Source Han Sans SC";
	src: url("../assets/fonts/source-han-heavy.otf") format("opentype");
	font-weight: 900;
	font-style: normal;
	font-display: swap;
}

:root {
	color-scheme: dark;
}

body {
	background: #010101;
	color: #edeef2;
}

::-webkit-scrollbar-thumb:hover {
	background-color: #1764c8;
}

.SiteHeader {
	position: absolute;
	z-index: 50;
	top: 0;
	left: 0;
	width: 100%;
	height: 100px;
	background: rgba(1, 4, 7, 0.88);
}

.SiteHeaderInner {
	position: relative;
	height: 100px;
}

.SiteBrand {
	position: absolute;
	top: 25px;
	left: 0;
	width: 197px;
	height: 50px;
}

.SiteBrand img,
.FooterBrand img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: invert(1);
}

.MenuToggle {
	display: none;
}

.MainNav {
	position: absolute;
	top: 0;
	right: 0;
	display: flex;
	align-items: center;
	gap: 110px;
	height: 100px;
}

.MainNav a {
	position: relative;
	color: #999;
	font: 400 20px/28px "Source Han Sans SC", sans-serif;
}

.MainNav a::after {
	position: absolute;
	right: 0;
	bottom: -8px;
	left: 0;
	height: 1px;
	background: currentColor;
	content: "";
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.3s ease;
}

.MainNav a.active {
	color: #fff;
	font-weight: 900;
}

.MainNav a:hover,
.MainNav a:focus-visible {
	color: #fff;
}

.MainNav a:hover::after,
.MainNav a:focus-visible::after {
	transform: scaleX(1);
}

.SiteBrand:focus-visible,
.FooterBrand:focus-visible,
.MenuToggle:focus-visible,
.FooterSocialLink:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 5px;
}

.SiteFooter {
	padding: 110px 0 34px;
	background: #010101;
	text-align: center;
}

.FooterBrand {
	width: 299px;
	height: 76px;
	margin: 0 auto;
}

.FooterOffice {
	width: 800px;
	margin: 59px auto 0;
	color: #edeef2;
	font-size: 22px;
	line-height: 45px;
}

.FooterSocials {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 22px;
	height: 24px;
	margin-top: 79px;
}

.FooterSocialLink {
	position: relative;
	display: block;
	width: 24px;
	height: 24px;
}

.iconImg {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.FooterSocialLink .iconImg {
	opacity: 0.9;
	transition: opacity 0.3s ease, transform 0.3s ease;
}

.FooterSocialLink:hover .iconImg,
.FooterSocialLink:focus-visible .iconImg {
	opacity: 1;
	transform: translateY(-2px);
}

.FooterPopover {
	position: absolute;
	z-index: 10;
	bottom: calc(100% + 14px);
	left: 50%;
	display: block;
	width: 112px;
	height: 112px;
	padding: 8px;
	border: 1px solid #50555d;
	background: #090e15;
	opacity: 0;
	pointer-events: none;
	transform: translate(-50%, 6px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.QrPlaceholder {
	width: 94px;
	height: 94px;
	border: 1px solid #303640;
	background: #111821;
}

.FooterSocialWechat:hover .FooterPopover,
.FooterSocialWechat:focus-within .FooterPopover,
.FooterSocialWechat.is-open .FooterPopover {
	opacity: 1;
	pointer-events: auto;
	transform: translate(-50%, 0);
}

.FooterCopyright {
	width: 100%;
	margin: 73px 0 0;
	color: #646464;
	font: 400 14px/24px "Source Han Sans SC", sans-serif;
}

@media only screen and (max-width: 1440px) {

	.SiteHeader,
	.SiteHeaderInner {
		height: 88px;
	}

	.SiteBrand {
		top: 22px;
		width: 170px;
		height: 43px;
	}

	.MainNav {
		gap: 62px;
		height: 88px;
	}

	.MainNav a {
		font-size: 18px;
	}

	.SiteFooter {
		padding: 82px 0 30px;
	}

	.FooterBrand {
		width: 260px;
		height: 66px;
	}

	.FooterOffice {
		width: 80%;
		margin-top: 52px;
		font-size: 20px;
		line-height: 40px;
	}

	.FooterSocials {
		margin-top: 70px;
	}

	.FooterCopyright {
		margin-top: 72px;
	}
}

@media only screen and (max-width: 768px) {
	body.MenuOpen {
		overflow: hidden;
	}

	.SiteHeader,
	.SiteHeaderInner {
		height: 72px;
	}

	.SiteBrand {
		top: 18px;
		width: 140px;
		height: 36px;
	}

	.MenuToggle {
		position: absolute;
		top: 18px;
		right: 0;
		display: block;
		width: 36px;
		height: 36px;
		padding: 6px;
	}

	.MainNav {
		position: fixed;
		top: 72px;
		right: 0;
		left: 0;
		display: flex;
		align-items: stretch;
		flex-direction: column;
		gap: 0;
		height: auto;
		max-height: 0;
		overflow: hidden;
		background: rgba(1, 4, 7, 0.98);
		opacity: 0;
		pointer-events: none;
		transition: max-height 0.3s ease, opacity 0.3s ease;
	}

	.MainNav.is-open {
		max-height: 360px;
		opacity: 1;
		pointer-events: auto;
	}

	.MainNav a {
		padding: 18px 4%;
		border-bottom: 1px solid rgba(255, 255, 255, 0.08);
		font-size: 16px;
		text-align: center;
	}

	.MainNav a::after {
		display: none;
	}

	.SiteFooter {
		padding: 64px 4% 36px;
	}

	.FooterBrand {
		width: 210px;
		height: 54px;
		margin: 0 auto;
	}

	.FooterOffice {
		width: 100%;
		margin-top: 50px;
		font-size: 16px;
		line-height: 32px;
	}

	.FooterSocials {
		justify-content: center;
		gap: 20px;
		height: 28px;
		margin-top: 44px;
	}

	.FooterSocialLink {
		width: 28px;
		height: 28px;
	}

	.FooterSocialLink:hover .iconImg {
		transform: none;
	}

	.FooterCopyright {
		margin-top: 54px;
		font-size: 12px;
		line-height: 20px;
	}

	.FooterPopover {
		bottom: calc(100% + 10px);
	}
}

@media (prefers-reduced-motion: reduce) {

	*,
	*::before,
	*::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}