/*!
 * Argon 主题自定义样式（合并自用户提供的样式表）
 * 加载顺序：assets/argon_css_merged.css -> style.css -> custom.css
 * 字体为自托管文件（assets/fonts/echo.woff2），不再请求第三方 CDN
 */

/* ============================== 字体 ============================== */
@font-face {
	font-family: "echo";
	src: url("assets/fonts/echo.woff2") format("woff2");
	font-style: normal;
	font-weight: 400;
	font-display: swap;
}

:root {
	--font: "echo", Georgia, "Nimbus Roman No9 L", "PingFang SC", "Hiragino Sans GB",
		"Noto Serif SC", "Microsoft YaHei", "WenQuanYi Micro Hei", "ST Heiti", sans-serif;
}

body {
	font-family: var(--font);
}

/* 保留后台的“衬线/无衬线”切换，但主字体始终为 echo */
html.use-serif body {
	--font: "echo", "Noto Serif SC", Georgia, "PingFang SC", serif, system-ui;
	font-family: var(--font);
}

/* ============================== 字号 ============================== */
/* 横幅 */
.banner-title {
	font-size: 2.5em;
}
.banner-subtitle {
	font-size: 28px;
	-webkit-text-fill-color: transparent;
	background: linear-gradient(94.75deg,
		rgb(60, 172, 247) 0%,
		rgb(131, 101, 253) 43.66%,
		rgb(255, 141, 112) 64.23%,
		rgb(247, 201, 102) 83.76%,
		rgb(172, 143, 100) 100%);
	-webkit-background-clip: text;
	background-clip: text;
}

/* 文章标题 */
.post-title {
	font-size: 25px;
}

/* 正文（不含代码） */
.post-content p {
	font-size: 1.25rem;
}
li {
	font-size: 1.2rem;
}

/* 评论区 */
p {
	font-size: 1.2rem;
}
.form-control {
	font-size: 1.2rem;
}
.custom-checkbox .custom-control-input ~ .custom-control-label {
	font-size: 1.2rem;
}

/* 评论区代码强调色（Argon 原文用更具体的选择器，这里同等覆盖） */
code {
	color: rgb(var(--themecolor-rgbstr));
}
html:not(.disable-codeblock-style) article code:not([hljs-codeblock-inner]) {
	color: rgb(var(--themecolor-rgbstr));
}

/* 说说 */
.shuoshuo-title {
	font-size: 25px;
}

/* 尾注 */
.additional-content-after-post {
	font-size: 1.2rem;
}

/* 左栏公告 / 一言 / 签名 */
.leftbar-announcement-title {
	font-size: 20px;
	color: #00ffff;
}
.leftbar-announcement-content {
	font-size: 15px;
	line-height: 1.8;
	padding-top: 8px;
	opacity: 0.8;
	color: #00ffff;
}
.leftbar-banner-title {
	font-size: 20px;
	display: block;
	text-align: center;
	opacity: 0.8;
}
.leftbar-banner-subtitle {
	margin-top: 15px;
	margin-bottom: 8px;
	font-size: 13px;
	opacity: 0.8;
	display: block;
	text-align: center;
}

/* ============================== 颜色 ============================== */
body {
	color: #364863;
}

/* 引文 */
blockquote {
	background: rgba(var(--themecolor-rgbstr), 0.1) !important;
	width: 100%;
}
:root {
	--color-border-on-foreground-deeper: rgb(var(--themecolor-rgbstr));
}

/* 左侧菜单高亮 */
.leftbar-menu-item > a:hover,
.leftbar-menu-item.current > a {
	background-color: #f9f9f980;
}

/* 站点概览分隔线 */
.site-state-item {
	border-left: 1px solid #aaa;
}
.site-friend-links-title {
	border-top: 1px dotted #aaa;
}
#leftbar_tab_tools ul li {
	padding-top: 3px;
	padding-bottom: 3px;
	border-bottom: none;
}
html.darkmode #leftbar_tab_tools ul li {
	border-bottom: none;
}

/* 左侧栏搜索框 */
button#leftbar_search_container {
	background-color: transparent;
}

/* ======================= 透明 / 毛玻璃 ======================= */
.card {
	background-color: rgba(255, 255, 255, 0.8) !important;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

/* 小工具栏是 card 的子元素，同透明度会叠加变色，故完全透明 */
.card .widget,
.darkmode .card .widget,
#post_content > div > div > div.argon-timeline-card.card.bg-gradient-secondary.archive-timeline-title {
	background-color: #ffffff00 !important;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}
.emotion-keyboard,
#fabtn_blog_settings_popup {
	background-color: rgba(255, 255, 255, 0.95) !important;
}

/* 分类卡片透明 */
.bg-gradient-secondary {
	background: rgba(255, 255, 255, 0.1) !important;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

/* 夜间 */
html.darkmode.bg-white,
html.darkmode .card,
html.darkmode #footer {
	background: rgba(66, 66, 66, 0.9) !important;
}
html.darkmode #fabtn_blog_settings_popup {
	background: rgba(66, 66, 66, 0.95) !important;
}

/* ============================== 排版 ============================== */
#leftbar_part1 {
	z-index: 1;
}

/* 分类页信息卡片居中 */
#content > div.page-information-card-container > div > div {
	text-align: center;
}

/* 子菜单 */
.dropdown-menu .dropdown-item > i {
	width: 10px;
}
.dropdown-menu > a {
	color: var(--themecolor);
}
.dropdown-menu {
	min-width: max-content;
}
.dropdown-menu .dropdown-item {
	padding: 0.5rem 1.5rem 0.5rem 1rem;
}
.leftbar-menu-subitem {
	min-width: max-content;
}
.leftbar-menu-subitem .leftbar-menu-item > a {
	padding: 0 1.5rem 0 1rem;
}

/* 左侧栏内边距 */
.tab-content {
	padding: 10px 0 0 0 !important;
}
.site-author-links {
	padding: 0 0 0 10px;
}
#leftbar_catalog {
	margin-left: 0;
}
#leftbar_catalog .index-link {
	padding: 4px;
}
#leftbar_tab_tools {
	font-size: 14px;
}

/* 正文图片与表格 */
article figure {
	margin: 0;
}
.fancybox-wrapper {
	margin: auto;
}
article table > tbody > tr > td,
article table > tbody > tr > th,
article table > tfoot > tr > td,
article table > tfoot > tr > th,
article table > thead > tr > td,
article table > thead > tr > th {
	padding: 8px 10px;
	border: 1px solid;
}
.wp-block-table.aligncenter {
	margin: 10px auto;
}

/* 悬浮按钮图标放大 */
button#fabtn_back_to_top,
button#fabtn_go_to_comment,
button#fabtn_toggle_blog_settings_popup,
button#fabtn_toggle_sides,
button#fabtn_toggle_zh,
button#fabtn_open_sidebar {
	font-size: 1.2rem;
}

/* 简繁切换按钮 */
#float_action_buttons #fabtn_toggle_zh:before {
	content: attr(tooltip-to-t);
}
html.zh-traditional #float_action_buttons #fabtn_toggle_zh:before {
	content: attr(tooltip-to-s);
}
html.zh-traditional #fabtn_toggle_zh .btn-inner--icon i {
	color: var(--themecolor);
}
html.zh-traditional #fabtn_toggle_zh:hover .btn-inner--icon i {
	color: #fff;
}
#fabtn_toggle_zh.fabtn-loading {
	opacity: 0.55;
	pointer-events: none;
	animation: argon-zh-pulse 1s ease-in-out infinite;
}
@keyframes argon-zh-pulse {
	0%, 100% { opacity: 0.55; }
	50% { opacity: 0.9; }
}

/* 顶栏菜单 */
.navbar-nav .nav-link {
	font-size: 1rem;
	font-family: "echo";
}
.navbar-brand {
	font-family: "echo";
	font-size: 1.2rem;
	margin-right: 1rem;
	padding-bottom: 0.2rem;
	-webkit-text-fill-color: transparent;
	background: linear-gradient(94.75deg,
		rgb(60, 172, 247) 0%,
		rgb(131, 101, 253) 43.66%,
		rgb(255, 141, 112) 64.23%,
		rgb(247, 201, 102) 83.76%,
		rgb(172, 143, 100) 100%);
	-webkit-background-clip: text;
	background-clip: text;
}
.nav-link-inner--text {
	font-size: 1.25em;
}
.navbar-nav .nav-item {
	margin-right: 0;
}
.mr-lg-5,
.mx-lg-5 {
	margin-right: 1rem !important;
}
.navbar-toggler-icon {
	width: 1.8rem;
	height: 1.8rem;
}
.navbar-expand-lg .navbar-nav .nav-link {
	padding-right: 1.4em;
	padding-left: 1.4em;
}

/* 隐藏 WP-SEO 插件插入的分割线 */
*[style="position: relative; z-index: 99998;"] {
	display: none;
}

/* Github 卡片 */
.github-info-card-header a {
	color: #000 !important;
	font-size: 1.5rem;
}
.github-info-card {
	font-size: 1rem;
	color: #000 !important;
}
.github-info-card.github-info-card-full.card.shadow-sm {
	background-color: rgba(var(--themecolor-rgbstr), 0.1) !important;
}

/* ============================ 左侧栏外观 ============================ */
#leftbar_overview_author_image {
	width: 100px;
	height: 100px;
	margin: auto;
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
	background-color: rgba(127, 127, 127, 0.1);
	overflow: hidden;
	transition: transform 0.3s ease;
}
#leftbar_overview_author_image:hover {
	transform: scale(1.23);
	filter: brightness(150%);
}
#leftbar_overview_author_name {
	margin-top: 15px;
	font-size: 18px;
	color: #00ffff;
}
#leftbar_overview_author_description {
	font-size: 14px;
	margin-top: -4px;
	opacity: 0.8;
	color: #c21f30;
}
a,
.btn-neutral {
	color: #af7ac5;
}

/* ============================== 页脚 ============================== */
#footer {
	background: var(--themecolor-gradient);
	color: #fff;
	width: 100%;
	float: right;
	margin-bottom: 25px;
	text-align: center;
	padding: 25px 20px;
	line-height: 1.8;
	transition: none;
	opacity: 0.6;
}

/* 隐藏“移至左侧”悬浮按钮 */
#fabtn_toggle_sides {
	display: none;
}

/* ======================= 搜索放大镜（Windows 10 风格） ======================= */
/* Argon 用的 FontAwesome 放大镜把柄在右下；水平翻转后把柄朝左下，与 Win10 一致 */
.fa-search {
	display: inline-block;
	transform: scaleX(-1);
	transform-origin: center;
}

/* 手机端右上角的搜索按钮不是 FontAwesome，而是背景 SVG，单独翻转 */
.navbar-toggler-icon.navbar-toggler-searcg-icon {
	display: inline-block;
	transform: scaleX(-1);
	transform-origin: center;
}
