@import url('google-fonts.css');

:root {
	--brand-blue: #003399;
}

body {
	font-family: 'Inter', sans-serif;
}

.font-mono {
	font-family: 'JetBrains Mono', monospace;
}

.text-brand {
	color: var(--brand-blue);
}

.bg-brand {
	background-color: var(--brand-blue);
}

/* 文档正文排版优化 */
.prose h2 {
	scroll-margin-top: 100px;
	font-weight: 800;
	color: #0f172a;
	margin-top: 2em;
	margin-bottom: 1em;
	padding-bottom: 0.5em;
	border-bottom: 1px solid #e2e8f0;
}

.prose h3 {
	scroll-margin-top: 100px;
	font-weight: 700;
	color: #1e293b;
	margin-top: 1.5em;
	margin-bottom: 0.75em;
}

.prose p {
	margin-bottom: 1.25em;
	line-height: 1.75;
	color: #334155;
}

.prose ul {
	list-style-type: disc;
	padding-left: 1.5em;
	margin-bottom: 1.25em;
	color: #334155;
}

.prose li {
	margin-bottom: 0.25em;
}

.prose code {
	background-color: #f1f5f9;
	padding: 0.2em 0.4em;
	border-radius: 0.25rem;
	font-size: 0.875em;
	color: #0f172a;
	font-family: 'JetBrains Mono', monospace;
}

/* 代码块容器样式（与 HTML 一致） */
.prose pre {
	background-color: #0f172a;
	color: #e2e8f0;
	padding: 1rem;
	border-radius: 0.5rem;
	overflow-x: auto;
	font-size: 0.875rem;
	margin: 1.5rem 0;
}

.prose pre code {
	background-color: transparent;
	padding: 0;
	color: inherit;
	font-size: inherit;
}

.prose a {
	color: #003399;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.prose a:hover {
	color: #2563eb;
}

.prose strong {
	font-weight: 700;
	color: #0f172a;
}

.prose h1 {
	font-size: 2.25rem;
	font-weight: 900;
	color: #0f172a;
	margin-top: 0;
	margin-bottom: 1rem;
	line-height: 1.2;
	letter-spacing: -0.025em;
}

@media (min-width: 768px) {
	.prose h1 {
		font-size: 2.5rem;
	}
}

/* 提示框样式（与 HTML 完全一致） */
.admonition {
	padding: 1rem;
	margin: 1.5rem 0;
	border-radius: 0 0.5rem 0.5rem 0;
	font-size: 0.95rem;
}

.admonition-tip {
	background-color: #eff6ff;
	border-left: 4px solid #3b82f6;
	color: #1e40af;
}

.admonition-warning {
	background-color: #fff7ed;
	border-left: 4px solid #fb923c; /* border-orange-400 */
	color: #9a3412;
}

/* 确保警告框的文本颜色与 HTML 一致 */
.admonition-warning.text-orange-800 {
	color: #9a3412;
}

/* 侧边栏滚动条（与 HTML 完全一致） */
.sidebar::-webkit-scrollbar {
	width: 4px;
}
.sidebar::-webkit-scrollbar-thumb {
	background-color: #e2e8f0;
	border-radius: 4px;
}

/* 左侧菜单激活态（与 HTML 完全一致） */
.tree-link.active {
	color: #003399;
	font-weight: 700;
	background-color: #eff6ff;
	border-right: 2px solid #003399;
}

/* 右侧目录激活态 */
.toc-link.active {
	color: #003399;
	font-weight: 600;
	border-left: 2px solid #003399;
}
