/* ================= 字体定义 ================= */
@import url("https://cdn.jsdmirror.com/npm/fonts-daoxi365@1.0.8/LXGWWenKaiMonoLite-Regular/result.css"); /* LXGW WenKai Mono Lite */
/* @import url("https://cdn.jsdmirror.com/npm/fonts-daoxi365@1.0.8/HYTangMeiRen55W/result.css"); HYTangMeiRen 55W */
@import url("https://cdn.jsdmirror.com/npm/fonts-daoxi365@1.0.8/CascadiaCode-Regular/result.css"); /* Cascadia Code */
@import url("https://cdn.jsdmirror.com/npm/fonts-daoxi365@1.0.8/JetBrainsMono-Regular/result.css"); /* JetBrainsMono */

@font-face {
	font-family: "HYTangMeiRen 55W";
	/* src: url("https://lf6-unpkg.zstaticcdn.com/fonts-daoxi365@1.0.3/HYTangMeiRen55W.woff2") format("woff2"); */
	src: url("https://npm.elemecdn.com/fontcdn-ariasaka@1.0.0/HYTangMeiRen55W.woff2")
		format("woff2");
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

/* ================= 基础样式 ================= */
body {
	font-family:
		"HYTangMeiRen 55W", "LXGW WenKai Mono Lite", "等线", "微软雅黑", "楷体" !important;
}

div.snackbar-container.snackbar-pos {
	font-family:
		"HYTangMeiRen 55W", "LXGW WenKai Mono Lite", "等线", "微软雅黑", "楷体" !important;
}

div.footer-other {
	background-color: transparent !important;
}

/* 
h1#site-title {
	font-family: "LXGW WenKai Mono Lite", "HYTangMeiRen 55W", "等线", "微软雅黑", "楷体" !important;
} */

/* ================= 行内代码块 ================= */
pre,
code {
	tab-size: 4;
}

code {
	font-family:
		"Cascadia Code", "JetBrainsMono", "Consolas", "Menlo", "Monaco",
		"Lucida Console", "Liberation Mono", "DejaVu Sans Mono",
		"Bitstream Vera Sans Mono", "Courier New", "LXGW WenKai Mono Lite",
		"HYTangMeiRen 55W", "等线", "微软雅黑", "楷体" !important;
}

/* ================= 代码块精准控制 ================= */
/* 代码容器 */
figure.highlight {
	font-family:
		"Cascadia Code", "JetBrainsMono", "Consolas", "Menlo", "Monaco",
		"Lucida Console", "Liberation Mono", "DejaVu Sans Mono",
		"Bitstream Vera Sans Mono", "Courier New", monospace !important;
}

/* 代码内容 - 中文部分 */
figure.highlight .code pre,
figure.highlight .code span,
figure.highlight .code {
	font-family:
		"Cascadia Code", "JetBrainsMono", "Consolas", "Menlo", "Monaco",
		"Lucida Console", "Liberation Mono", "DejaVu Sans Mono",
		"Bitstream Vera Sans Mono", "Courier New", "LXGW WenKai Mono Lite",
		"HYTangMeiRen 55W", "等线", "微软雅黑", "楷体" !important;
}

/* HTML标签保持等宽 */
figure.highlight .tag,
figure.highlight .name {
	font-family: "Cascadia Code", "JetBrainsMono", monospace !important;
}

/* 行号保持等宽 */
figure.highlight .gutter pre {
	font-family: "Cascadia Code", "JetBrainsMono", monospace !important;
}

/* ================= Font Awesome 精准保护 ================= */
/* 工具栏图标 */
.highlight-tools .fa,
.highlight-tools [class^="fa-"],
.highlight-tools [class*=" fa-"],
.copy-button,
.expand,
.fullpage-button {
	font-family: "Font Awesome 6 Free" !important;
	font-style: normal;
	font-weight: 900;
	font-variant: normal;
	text-rendering: auto;
	-webkit-font-smoothing: antialiased;
	display: inline-block;
	line-height: 1;
}

/* 品牌图标 */
.fab,
.fa-hotjar {
	font-family: "Font Awesome 6 Brands" !important;
	font-weight: 400 !important;
}

/* ================= 其他保护 ================= */
input,
textarea,
select,
button:not([class*="fa-"]) {
	font-family: inherit !important;
}

/* @font-face {
	font-family: "CascadiaCode";
	src: url("https://lf6-unpkg.zstaticcdn.com/fonts-daoxi365@1.0.3/CascadiaCode.woff2"),
		url("https://lc-DKnNEpKD.cn-n1.lcfile.com/XzlagJSk1Le5z0DLjGMB3OruQC1uAagm/CascadiaCode.woff2")
			format("woff2");
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "JetBrainsMono";
	src: url("https://lf6-unpkg.zstaticcdn.com/fonts-daoxi365@1.0.3/JetBrainsMono-Regular.woff2"),
		url("https://lc-DKnNEpKD.cn-n1.lcfile.com/qufkii1uEFtwgpGz4dwXRNWSrNvnYTx9/JetBrainsMono-Regular.woff2")
			format("woff2");
	font-weight: normal;
	font-style: normal;
	font-display: swap;
} */

:root {
	--light_bg_color: rgba(255, 255, 255, 0.9); /* 明亮模式下的透明度 */
	--dark_bg_color: rgba(18, 18, 18, 0.9); /* 暗黑模式下的透明度 */
}

/* 通用设置，适用于所有模式 */
.recent-post-item,
#page,
#tag,
#archive,
#category,
div#article-container div.shuoshuo-item,
div.shuoshuo-navigation,
#aside-content .card-widget {
	background: var(--light_bg_color) !important;
}

div#page.nc {
	background: transparent !important;
}

/* ================= 暗黑模式下的特定设置 ================= */
[data-theme="dark"] {
	.recent-post-item,
	#page,
	#tag,
	#archive,
	#category,
	div#article-container div.shuoshuo-item,
	div.shuoshuo-navigation,
	#aside-content .card-widget {
		background: var(--dark_bg_color) !important;
	}

	.post > .layout > #post,
	.read-mode .layout > #post {
		background: var(--dark_bg_color) !important;
	}

	div.swal2-container.swal2-center.swal2-backdrop-show {
		background-color: rgba(18, 18, 18, 0.95) !important;
	}
	div.swal2-popup.swal2-modal.swal2-show {
		background-color: rgb(18, 18, 18) !important;
		color: var(--light_grey) !important;
	}
}

/* 如果文章卡片的背景需要特别设置，确保选择器正确 */
[data-theme="light"] .post > .layout > #post,
[data-theme="light"] .read-mode .layout > #post {
	background: var(--light_bg_color) !important;
}

/* 取消移动端的半透明效果 */
@media (max-width: 768px) {
	/* 假设768px是移动端的最大宽度 */
	.recent-post-item,
	#page,
	#tag,
	#archive,
	#category,
	.page .type-artitalk,
	#aside-content .card-widget {
		background: rgba(
			255,
			255,
			255,
			1
		) !important; /* 明亮模式下的不透明度 */
	}

	[data-theme="dark"] .recent-post-item,
	[data-theme="dark"] #page,
	[data-theme="dark"] #tag,
	[data-theme="dark"] #archive,
	[data-theme="dark"] #category,
	[data-theme="dark"] .page .type-artitalk,
	[data-theme="dark"] #aside-content .card-widget,
	[data-theme="dark"] .post > .layout > #post,
	[data-theme="dark"] .read-mode .layout > #post {
		background: rgba(18, 18, 18, 1) !important; /* 暗黑模式下的不透明度 */
	}

	[data-theme="light"] .post > .layout > #post,
	[data-theme="light"] .read-mode .layout > #post {
		background: rgba(
			255,
			255,
			255,
			1
		) !important; /* 明亮模式下的不透明度 */
	}
}

/* del,
s {
	text-decoration: none;
	background-color: black;
	color: transparent;
	font-size: 95%; 
	transition: color 0.2s ease;
}

del:hover,
s:hover {
	color: #fff;
} */

.loading-img {
	background: url("https://lf6-unpkg.zstaticcdn.com/fonts-daoxi365@1.0.3/imgs/avatar.jpg")
		no-repeat center center;
	background-size: cover;
}

#cursor {
	position: fixed;
	width: 16px;
	height: 16px;
	background: rgb(222, 132, 255);
	border-radius: 8px;
	opacity: 0.25;
	z-index: 10086;
	pointer-events: none;
	transition: 0.2s ease-in-out;
	transition-property: background, opacity, transform;
}

div#rightside button,
div#rightside a {
	border-radius: 50%;
}

.highlighter {
	font-weight: bold;
}

.highlighter.red-highlighter {
	background: linear-gradient(
		180deg,
		transparent 70%,
		rgba(215, 0, 58, 0.4) 0
	);
}

.highlighter.orange-highlighter {
	background: linear-gradient(
		180deg,
		transparent 70%,
		rgba(255, 165, 0, 0.4) 0
	);
}

.highlighter.yellow-highlighter {
	background: linear-gradient(
		180deg,
		transparent 70%,
		rgba(255, 255, 0, 0.4) 0
	);
}

.highlighter.green-highlighter {
	background: linear-gradient(
		180deg,
		transparent 70%,
		rgba(102, 204, 0, 0.4) 0
	);
}

.highlighter.cyan-highlighter {
	background: linear-gradient(
		180deg,
		transparent 70%,
		rgba(0, 255, 255, 0.4) 0
	);
}

.highlighter.blue-highlighter {
	background: linear-gradient(
		180deg,
		transparent 70%,
		rgba(0, 128, 255, 0.4) 0
	);
}

.highlighter.purple-highlighter {
	background: linear-gradient(
		180deg,
		transparent 70%,
		rgba(101, 125, 225, 0.4) 0
	);
}

img.n-emoji {
	height: 1em;
	vertical-align: middle;
}

@media only screen and (max-width: 768px) {
	div.f-carousel__toolbar__column.is-middle {
		display: none;
	}
}

pangu {
	display: none !important;
}

span.katex {
	margin: 0 0.25em !important;
}

span.katex::before,
span.katex::after {
	content: "" !important;
}

div.bangumi-summary p {
	line-height: 1.25;
}

a.link-of-disclaimer {
	color: #fff !important;
}

a.link-of-disclaimer:hover {
	color: #ff7242 !important;
	text-decoration: underline !important;
}
