/* 在线链接服务仅供平台体验和调试使用，平台不承诺服务的稳定性，企业客户需下载字体包自行发布使用并做好备份。 */
/* @font-face {
  font-display: swap;
  font-family: "soehne";
  font-weight: 400;
  font-style: normal;
  src: url("../font/soehne-buch.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "soehne";
  font-weight: 400;
  font-style: italic;
  src: url("../font/soehne-buch-kursiv.woff2") format("woff2");
} */

/* 在线css */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&display=swap');

:root {
	/* VitePress inspired colors */
	--primary-color: #3451b2;
	--primary-hover: #3a5ccc;
	--primary-active: #5672cd;
	--text-color: #3c3c43;
	--text-secondary: #67676c;
	--text-tertiary: #929295;
	--bg-color: #ffffff;
	--bg-alt: #f6f6f7;
	--bg-soft: #f6f6f7;
	--border-color: #c2c2c4;
	--divider-color: #e2e2e3;
	
	/* Shadows - VitePress style */
	--shadow-1: 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
	--shadow-2: 0 3px 12px rgba(0, 0, 0, 0.07), 0 1px 4px rgba(0, 0, 0, 0.07);
	--shadow-3: 0 12px 32px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.08);
	
	/* Layout */
	--content-width: 900px;
	--nav-height: 64px;
	
	/* Radius */
	--radius-sm: 4px;
	--radius-md: 8px;
	--radius-lg: 12px;
	
	/* Spacing */
	--spacing-xs: 4px;
	--spacing-sm: 8px;
	--spacing-md: 12px;
	--spacing-lg: 16px;
	--spacing-xl: 24px;
	--spacing-2xl: 32px;
	
	/* Transition */
	--transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	--transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
	color: var(--text-color);
	background: var(--bg-alt);
	scroll-behavior: smooth;
	-ms-text-size-adjust: 100%;
	-webkit-text-size-adjust: 100%;
	-moz-text-size-adjust: 100%;
	text-size-adjust: 100%;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	transition: var(--transition-normal);
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC','Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
}

body {
	max-width: var(--content-width);
	padding: 0 var(--spacing-xl);
	margin: 0 auto;
	background-color: var(--bg-color);
	border-left: 1px solid var(--divider-color);
	border-right: 1px solid var(--divider-color);
	min-height: 100vh;
}

* {
	-webkit-tap-highlight-color: transparent;
	box-sizing: border-box;
}

ol,
ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

p,
h1,
h2,
h3,
h4,
h5,
ul,
ol,
li,
blockquote {
	padding: 0;
	margin: 0;
}

a {
	color: inherit;
	text-decoration: none;
	transition: var(--transition-normal);
}

input,
select,
textarea {
	font-family: inherit;
	outline: 0;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	border: none;
	border-radius: var(--radius-sm);
}

pre,
code {
	font-family: 'JetBrains Mono', Menlo, Monaco, Consolas, 'Courier New', monospace;
}

input:-webkit-autofill {
	/* 自动填充的文本颜色 */
	-webkit-text-fill-color: var(--text-color) !important;

	/* 方式2：通过延迟一个月，取消自动填充的背景色 */
	-webkit-transition: background-color 2592000s ease-in-out 0s;
	transition: background-color 2592000s ease-in-out 0s;
}

::-webkit-scrollbar {
	width: 8px;
	height: 8px;
	background-color: transparent;
}

::-webkit-scrollbar-thumb {
	background-color: rgba(0, 0, 0, 0.15);
	border-radius: 10px;
	cursor: pointer;
}

::-webkit-scrollbar-thumb:hover {
	background-color: rgba(0, 0, 0, 0.25);
}

::selection {
	background-color: var(--primary-color);
	color: #ffffff;
}

.hover-underline {
	position: relative;
	display: inline-block;
}

.hover-underline:after {
	content: '';
	position: absolute;
	width: 100%;
	height: 2px;
	bottom: -2px;
	left: 0;
	background-color: var(--primary-color);
	visibility: hidden;
	transform: scaleX(0);
	transition: transform 0.2s ease-in-out;
}

.hover-underline:hover:after {
	visibility: visible;
	transform: scaleX(1);
}

.hover-underline:hover {
	color: var(--primary-color);
}

.header {
	padding: 0;
	margin-bottom: var(--spacing-xl);
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid var(--divider-color);
	height: var(--nav-height);
}

.header .logo {
	width: 24px;
	height: 24px;
	cursor: pointer;
	flex-shrink: 0;
	margin-right: var(--spacing-md);
	user-select: none;
	transition: opacity var(--transition-fast);
}

.header .logo:hover {
	opacity: 0.8;
}

.header .menu {
	margin-right: -9px;
	text-align: right;
	user-select: none;
}

.header .menu a {
	display: inline-block;
	font-size: 14px;
	font-weight: 500;
	margin: 0 6px;
	white-space: nowrap;
	user-select: auto;
	padding: 4px var(--spacing-sm);
	transition: color var(--transition-fast);
	color: var(--text-secondary);
}

.header .menu a:hover {
	color: var(--primary-color);
}

.footer {
	padding: var(--spacing-xl) 0;
	font-size: 14px;
	text-align: center;
	border-top: 1px solid var(--divider-color);
	margin-top: 48px;
	color: var(--text-tertiary);
}

.footer a {
	color: var(--text-tertiary);
	padding: 0 var(--spacing-xs);
	white-space: nowrap;
	transition: var(--transition-normal);
}

.footer a:hover {
	color: var(--primary-color);
	text-decoration: underline;
}

#to-top {
	position: fixed;
	z-index: 99;
	right: 24px;
	bottom: 24px;
	width: 48px;
	height: 48px;
	cursor: pointer;
	border-radius: var(--radius-lg);
	background-color: var(--primary-color);
	opacity: 0.9;
	overflow: hidden;
	transform: translateY(80px);
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
	box-shadow: var(--shadow-lg);
}

#to-top.show {
	transform: translateY(0);
}

#to-top:hover {
	opacity: 1;
}

#to-top > span {
	display: block;
	width: 40%;
	height: 40%;
	position: absolute;
	left: 50%;
	top: 45%;
	transform: translate(-50%, -50%) rotate(45deg);
}

#to-top > span:first-child {
	background-color: #ffffff;
}

#to-top > span:last-child {
	background-color: var(--primary-color);
	transform: translate(-50%, 25%) rotate(45deg);
}

@media screen and (max-width: 560px) {
	.header {
		padding: var(--spacing-md) 0;
		flex-direction: column;
		align-items: flex-start;
		height: auto;
	}

	.header .menu {
		margin-right: 0;
		margin-top: var(--spacing-sm);
		text-align: left;
		display: flex;
		flex-wrap: wrap;
	}

	.header .menu a {
		margin: var(--spacing-xs) var(--spacing-xs) var(--spacing-xs) 0;
		font-size: 13px;
		padding: 6px var(--spacing-sm);
	}
}
