@import '@fontsource/fira-mono';

/* The style file stored on Bilibili, loads the corresponding font based on Unicode. */
@import url(https://s1.hdslb.com/bfs/static/jinkela/long/font/regular.css);

:root {
	/* HarmonyOS fonts have excellent readability across different devices. */
	--font-body: 'Inter', 'HarmonyOS Sans SC', 'HarmonyOS_Regular', system-ui, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu,
		Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
	--font-mono: 'Fira Mono', monospace;
	--color-bg-0: rgb(202, 216, 228);
	--color-bg-1: hsl(209, 36%, 86%);
	--color-bg-2: hsl(0, 5%, 96%);
	--color-theme-1: #ff3e00;
	--color-theme-2: #4075a6;
	--color-text: rgba(0, 0, 0, 0.7);
	--column-width: 42rem;
	--column-margin-top: 4rem;
	--scrollbar-thumb-color: #c9cdd4;
	--scrollbar-thumb-hover-color: #86909c;
	--scrollbar-track-piece: transparent;
	font-family: var(--font-body);
	color: var(--color-text);
	--page-bg: radial-gradient(50% 50% at 50% 50%,
			rgba(255, 255, 255, 0.75) 0%,
			rgba(255, 255, 255, 0) 100%),
		linear-gradient(180deg, var(--color-bg-0) 0%, var(--color-bg-1) 10%, var(--color-bg-2) 50%);
	/* Ensure that the appearance and disappearance of the scrollbar does not cause any page jitter. */
	scrollbar-gutter: stable;
}

:root[class~='dark'] {
	--color-text: #ffffffe6;
	--color-bg-0: #1e1e1e;
	--color-bg-1: #2d2d2d;
	--color-bg-2: #434343;
	--scrollbar-thumb-color: #5f5f60;
	--scrollbar-thumb-hover-color: #929293;
	--page-bg: linear-gradient(to top, #434343 0%, #000000 100%);
	--scrollbar-track-piece: #1e1e1e;
}

::selection {
	background: #646cff;
	color: #fff;
}

body {
	min-height: 100vh;
	margin: 0;
	background-attachment: fixed;
	/* background-color: var(--color-bg-1); */
	/* background-color: #f5f4f4; */
	background-size: 100vw 100vh;
	background-image: var(--page-bg)
}

h1,
h2,
p {
	font-weight: 400;
}

p {
	line-height: 1.5;
}

a {
	/*color: var(--color-theme-1);*/
	text-decoration: none;
}


h1 {
	font-size: 2rem;
	text-align: center;
}

h2 {
	font-size: 1rem;
}

pre {
	font-size: 16px;
	font-family: var(--font-mono);
	background-color: rgba(255, 255, 255, 0.45);
	border-radius: 3px;
	box-shadow: 2px 2px 6px rgb(255 255 255 / 25%);
	padding: 0.5em;
	overflow-x: auto;
	color: var(--color-text);
}

.text-column {
	display: flex;
	max-width: 48rem;
	flex: 0.6;
	flex-direction: column;
	justify-content: center;
	margin: 0 auto;
}

input,
button {
	font-size: inherit;
	font-family: inherit;
}

button:focus:not(:focus-visible) {
	outline: none;
}

@media (min-width: 720px) {
	h1 {
		font-size: 2.4rem;
	}
}

.visually-hidden {
	border: 0;
	clip: rect(0 0 0 0);
	height: auto;
	margin: 0;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	white-space: nowrap;
}

/* Scrollbar style. */
::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

::-webkit-scrollbar-thumb {
	border-radius: 4px;
	border-width: 0px;
	background: var(--scrollbar-thumb-color);
}

::-webkit-scrollbar-thumb:hover {
	background: var(--scrollbar-thumb-hover-color);
}

::-webkit-scrollbar-track-piece {
	background: var(--scrollbar-track-piece);
}

::-webkit-scrollbar-corner {
	background: transparent;
}
