@charset "UTF-8";
/**
 * huaguo theme — WordPress integration overrides.
 *
 * The core design (heoblogmain.css + home/nav/aside + mw768/1200/1300) is the
 * live Acrylic stylesheet from blog.zhheo.com. This file only layers the
 * small bits WordPress needs on top (alignments, captions, comments,
 * pagination, search overlay, mobile drawer polish).
 */

/* ---------------------------------------------------------------------------
 * Base font (the live site pins body at 16px while html stays at 20px).
 * ------------------------------------------------------------------------- */
body {
	font-size: 16px;
}

/* ---------------------------------------------------------------------------
 * Blur layer behind the banner.
 * ------------------------------------------------------------------------- */
#web_bg {
	background-size: cover;
	background-position: center;
	transition: var(--t);
}

/* ---------------------------------------------------------------------------
 * Layout / WordPress structural fixes.
 * ------------------------------------------------------------------------- */
#post {
	width: 100%;
	min-width: 0;
	flex: 1;
}

#post .post-content {
	line-height: 2;
	word-break: break-word;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
	font-weight: 700;
	margin: 1.5em 0 0.8em;
	line-height: 1.4;
}

.post-content p {
	margin: 0.8em 0;
}

.post-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.post-content a {
	color: var(--heo-main);
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.post-content a:hover {
	border-bottom-color: var(--heo-main);
}

.post-content blockquote {
	margin: 1em 0;
	padding: 0.6em 1em;
	border-left: 4px solid var(--heo-main);
	background: var(--heo-post-blockquote-bg, #fafcff);
	border-radius: 0 8px 8px 0;
}

.post-content code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.9em;
	background: var(--heo-secondbg, #f2f5f8);
	padding: 0.15em 0.4em;
	border-radius: 4px;
}

.post-content pre {
	overflow: auto;
	padding: 1em;
	border-radius: 10px;
	background: var(--heo-secondbg, #f2f5f8);
	line-height: 1.6;
}

.post-content pre code {
	background: transparent;
	padding: 0;
}

.post-content table {
	border-collapse: collapse;
	width: 100%;
	margin: 1em 0;
}

.post-content th,
.post-content td {
	border: 1px solid var(--heo-card-border, #e3e8f7);
	padding: 0.5em 0.8em;
}

.post-content hr {
	border: none;
	border-top: 1px dashed var(--heo-card-border, #e3e8f7);
	margin: 2em 0;
}

/* WordPress media alignment */
.alignleft { float: left; margin: 0.4em 1em 0.4em 0; }
.alignright { float: right; margin: 0.4em 0 0.4em 1em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

.wp-caption {
	max-width: 100%;
	border-radius: 8px;
	overflow: hidden;
	background: var(--heo-secondbg, #f2f5f8);
}

.wp-caption img { display: block; }

.wp-caption-text {
	font-size: 0.8rem;
	color: var(--heo-secondtext, #888);
	text-align: center;
	padding: 0.5em;
	margin: 0;
}

.gallery { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.gallery-item { flex: 1 1 150px; margin: 0; }
.gallery-caption { font-size: 0.8rem; color: var(--heo-secondtext, #888); }

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.sticky { /* sticky posts inherit the same card design */ }

.page-links {
	margin: 1.5em 0;
	font-size: 0.9rem;
}

.page-links a,
.page-links > span {
	display: inline-block;
	padding: 0.2em 0.6em;
	margin: 0 0.2em;
	border-radius: 6px;
	background: var(--heo-card-btn-bg, #edf0f7);
	color: var(--heo-fontcolor, #363636);
}

/* Archive header */
.archive-header {
	margin: 0 0 0.5rem;
	padding: 0.75rem 0;
	width: 100%;
}

.archive-title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
}

.archive-title span {
	color: var(--heo-main);
}

.archive-description {
	color: var(--heo-secondtext, #888);
	margin-top: 0.25rem;
}

/* ---------------------------------------------------------------------------
 * Pagination (the_posts_pagination).
 * ------------------------------------------------------------------------- */
#content-inner .navigation.pagination,
.home_barAndPosts > .pagination {
	width: 100%;
	margin-top: 1rem;
}

.nav-links {
	display: flex;
	gap: 0.4rem;
	flex-wrap: wrap;
	align-items: center;
}

.nav-links .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.2rem;
	height: 2.2rem;
	padding: 0 0.5rem;
	border-radius: 8px;
	background: var(--heo-card-bg, #fff);
	color: var(--heo-fontcolor, #363636);
	box-shadow: var(--heo-shadow-border, 0 8px 16px -4px #2c2d300c);
	transition: var(--t);
}

.nav-links .page-numbers.current {
	background: var(--heo-main);
	color: #fff;
}

.nav-links .page-numbers:hover:not(.current) {
	background: var(--heo-main);
	color: #fff;
}

.nav-links .prev,
.nav-links .next {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* ---------------------------------------------------------------------------
 * Comments.
 * ------------------------------------------------------------------------- */
#post-comment .comment-wrap {
	margin-top: 0.5rem;
}

.comments-area .comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list .comment-body {
	padding: 1rem;
	margin-bottom: 0.75rem;
	border-radius: 12px;
	background: var(--heo-card-bg, #fff);
	box-shadow: var(--heo-shadow-border, 0 8px 16px -4px #2c2d300c);
}

.comment-list .comment-author {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.comment-list .comment-author img {
	border-radius: 50%;
	width: 42px;
	height: 42px;
}

.comment-list .comment-metadata {
	font-size: 0.8rem;
	color: var(--heo-secondtext, #888);
	margin: 0.35rem 0;
}

.comment-list .comment-content {
	line-height: 1.8;
	margin-top: 0.5rem;
}

.comment-list .reply {
	font-size: 0.85rem;
}

.comment-list .reply a {
	color: var(--heo-main);
}

.comment-list .children {
	list-style: none;
	margin-left: 1.5rem;
	padding: 0;
}

.comment-awaiting-moderation {
	font-size: 0.8rem;
	color: var(--heo-orange, #e38100);
}

.no-comments {
	color: var(--heo-secondtext, #888);
}

#respond {
	margin-top: 1.5rem;
	padding: 1rem;
	border-radius: 12px;
	background: var(--heo-card-bg, #fff);
	box-shadow: var(--heo-shadow-border, 0 8px 16px -4px #2c2d300c);
}

#commentform label {
	display: block;
	font-size: 0.85rem;
	margin: 0.6rem 0 0.2rem;
}

#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea {
	width: 100%;
	padding: 0.6em 0.8em;
	border: 1px solid var(--heo-card-border, #e3e8f7);
	border-radius: 8px;
	background: var(--heo-background, #f7f9fe);
	color: var(--heo-fontcolor, #363636);
	font-size: 0.95rem;
	outline: none;
	transition: var(--t);
}

#commentform input:focus,
#commentform textarea:focus {
	border-color: var(--heo-main);
}

#commentform .form-submit {
	margin-top: 0.75rem;
}

#commentform .submit,
.search-submit {
	border: none;
	border-radius: 8px;
	background: var(--heo-main);
	color: #fff;
	padding: 0.5em 1.4em;
	cursor: pointer;
	transition: var(--t);
}

#commentform .submit:hover {
	opacity: 0.85;
}

/* ---------------------------------------------------------------------------
 * Search overlay (styled after the live site's search dialog).
 * ------------------------------------------------------------------------- */
.search-overlay {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: none;
}

.search-overlay.open {
	display: block;
}

.search-overlay-mask {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(6px);
}

.search-overlay-panel {
	position: relative;
	max-width: 640px;
	margin: 16vh auto 0;
	padding: 0 1rem 1rem;
	background: var(--heo-card-bg, #fff);
	border: var(--style-border-always);
	border-radius: 16px;
	box-shadow: var(--heo-shadow-glass, 0 5px 100px -5px rgb(140 140 140 / 55%));
}

.search-overlay-navbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 0 0.75rem;
}

.search-overlay-title {
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--heo-fontcolor, #363636);
}

.search-overlay-close {
	border: none;
	background: transparent;
	color: var(--heo-secondtext, #888);
	font-size: 1.3rem;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
}

.search-overlay-close:hover {
	color: var(--heo-fontcolor, #363636);
}

.search-overlay-panel .search-form {
	display: flex;
	gap: 0.5rem;
}

.search-form label { flex: 1; min-width: 0; }
.search-form .search-field { width: 100%; min-width: 0; box-sizing: border-box; }
.search-form .search-submit { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex-shrink: 0; }

.search-overlay-panel .search-field {
	flex: 1;
	padding: 0.7em 0.9em;
	border: 1px solid var(--heo-card-border, #e3e8f7);
	border-radius: 10px;
	background: var(--heo-background, #f7f9fe);
	color: var(--heo-fontcolor, #363636);
	outline: none;
}

.search-overlay-panel .search-field:focus {
	border-color: var(--heo-main);
}

/* Inline search form (used on 404 / search results). */
.search-form { display: flex; gap: 0.5rem; max-width: 420px; }
.search-form .search-field { flex: 1; padding: 0.6em 0.8em; border: 1px solid var(--heo-card-border, #e3e8f7); border-radius: 8px; background: var(--heo-background, #f7f9fe); color: var(--heo-fontcolor, #363636); }
.search-form .search-field:focus { border-color: var(--heo-main); outline: none; }

/* ---------------------------------------------------------------------------
 * Mobile drawer polish.
 * ------------------------------------------------------------------------- */
body.sidebar-open {
	overflow: hidden;
}

#sidebar {
	background: var(--heo-maskbg);
}

#sidebar-menus .menus_items {
	padding: 0 16px;
}

#sidebar-menus .menus_items .menus_item > .site-page {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

#sidebar #sidebar-menus .menus_items .menus_item > .menus_item_child {
	display: none;
	list-style: none;
	margin: 0;
	padding: 0 0 0 0.5rem;
}

#sidebar #sidebar-menus .menus_items .menus_item.menus_item-open > .menus_item_child {
	display: flex;
}

#nav .menus_items .menus_item > .menus_item_child { visibility: hidden; }
#nav .menus_items .menus_item:hover > .menus_item_child,
#nav .menus_items .menus_item.menus_item-open > .menus_item_child { visibility: visible; }

#toggle-menu button.site-page, #sidebar-menus button.site-page, #sidebar-menus .sidebar-close-button {
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}
#toggle-menu button.site-page { display: flex; align-items: center; justify-content: center; padding: 8px; }
#sidebar-menus button.site-page { width: 100%; text-align: left; }
#sidebar-menus button.site-page[aria-expanded=true] .expand { transform: rotate(180deg); }
#nav button:focus-visible, #sidebar-menus button:focus-visible, .search-form button:focus-visible, #card-wechat:focus-visible {
	outline: 2px solid var(--heo-main);
	outline-offset: 3px;
}

#nav #site-name { position: relative; gap: 0; }
.huaguo-brand-image { display: inline-block; object-fit: contain; border-radius: 0; vertical-align: middle; flex-shrink: 0; }
/* Brand artwork is separate from author portraits, including in the drawer. */
img.huaguo-brand-mark { object-fit: contain !important; border-radius: 0 !important; filter: none; }
[data-theme=dark] img.huaguo-brand-mark { filter: invert(1); }
#nav .huaguo-brand-image { width: 28px; height: 28px; opacity: 1; transition: opacity .2s; }
#page-header #nav #site-name::after { inset: 0; color: var(--heo-card-bg); pointer-events: none; }
#page-header #nav #site-name:hover,
#page-header #nav #site-name:focus-visible { background: var(--heo-main); }
#nav #site-name:hover .huaguo-brand-image,
#nav #site-name:focus-visible .huaguo-brand-image { opacity: 0; }
#nav #site-name:focus-visible::after { opacity: 1; }
#heo-footer-bar .footer-logo { display: flex; align-items: center; justify-content: center; gap: 10px; }

#article-container h1[id], #article-container h2[id], #article-container h3[id], #article-container h4[id] { scroll-margin-top: 96px; }
.huaguo-code-tools .copy-btn.copy-failed { color: var(--heo-red, #d83b45); background: var(--heo-secondbg); }
.huaguo-code-tools .copy-btn:disabled { cursor: wait; opacity: .7; }

.huaguo-index-nav, .huaguo-term-index { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; padding: 0; }
.huaguo-index-nav a, .huaguo-term-index a { display: inline-flex; gap: 8px; padding: 8px 14px; border-radius: 10px; background: var(--heo-secondbg); color: var(--heo-fontcolor); }
.huaguo-index-nav a[aria-current=page], .huaguo-index-nav a:hover, .huaguo-term-index a:hover { background: var(--heo-main); color: var(--heo-white); }
.huaguo-term-index li { list-style: none; }
.huaguo-term-index span, .huaguo-comment-index time { opacity: .65; font-size: 12px; }
.huaguo-comment-index { list-style: none; margin: 0; padding: 0; }
.huaguo-comment-index li { border-bottom: var(--style-border-always); padding: 16px 0; }
.huaguo-comment-index a { display: block; color: var(--heo-fontcolor); }
.huaguo-comment-index strong { margin-right: 12px; }
.huaguo-comment-index p { overflow-wrap: anywhere; }

/* ---------------------------------------------------------------------------
 * Small helpers.
 * ------------------------------------------------------------------------- */
/* ---------------------------------------------------------------------------
 * 版权区块（对齐参考站：头像居中压顶、作者信息、打赏/订阅按钮、声明）。
 * ------------------------------------------------------------------------- */
.post-copyright__author_img {
	width: 66px;
	height: 66px;
	margin: auto;
	border-radius: 66px;
	overflow: hidden;
	position: absolute;
	left: calc(50% - 33px);
	top: -33px;
	border: var(--style-border-always);
	box-shadow: var(--heo-shadow-main);
	background: var(--heo-main);
}

.post-copyright__author_img img {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

img.post-copyright__author_img_back {
	border-radius: 66px;
	z-index: 10;
	filter: blur(8px) saturate(1.2);
	opacity: 0.55;
	transform: scale(1.1);
}

img.post-copyright__author_img_front {
	z-index: 20;
	transform: scale(1.05) translateY(2px);
}

.post-copyright__author_name {
	text-align: center;
	font-size: 22px;
	font-weight: 700;
	margin-top: 16px;
	color: var(--heo-fontcolor);
	line-height: 1;
}

.post-copyright__author_desc {
	text-align: center;
	font-size: 15px;
	color: var(--heo-secondtext);
	margin-top: 4px;
}

#post-tools {
	display: flex;
	justify-content: center;
	margin: 8px 0 0;
}

.post-tools-left {
	display: flex;
	align-items: center;
}

.post-reward .reward-button,
.reward-link .reward-link-button {
	display: block;
	height: 40px;
	line-height: 40px;
	padding: 0 16px;
	border-radius: 20px;
	color: #fff;
	font-size: 15px;
	transition: var(--t);
}

.post-reward .reward-button {
	background: var(--heo-red, #d80020);
	box-shadow: var(--heo-shadow-red, 0 8px 12px -3px #ee7d7936);
}

.reward-link .reward-link-button {
	background: var(--heo-green, #57bd6a);
	box-shadow: var(--heo-shadow-green, 0 8px 12px -3px #87ee7936);
}

.reward-link {
	display: flex;
	align-items: center;
	margin-left: 10px;
}

.post-reward .reward-button:hover,
.reward-link .reward-link-button:hover {
	transform: translateY(-2px);
}

.post-copyright__notice {
	margin: 20px 0 10px;
}

/* ---------------------------------------------------------------------------
 * 标签卡：普通态为浅灰药丸，悬停跟随当前 banner 主题色（与参考站一致）。
 * ------------------------------------------------------------------------- */
#aside-content .card-tag-cloud a:hover {
	background: var(--current-banner-theme, var(--heo-main));
	color: var(--heo-white) !important;
	box-shadow: var(--heo-shadow-main);
	border-radius: 999px;
}

#aside-content .card-tag-cloud a:hover sup {
	color: var(--heo-white);
	opacity: 0.9;
}

.no-results .page-content {
	margin-top: 1rem;
}

.no-results .site-page {
	display: inline-block;
	margin-top: 0.75rem;
	padding: 0.5em 1.2em;
	border-radius: 8px;
	background: var(--heo-main);
	color: #fff;
}

/* ---------------------------------------------------------------------------
 * Related posts: content hugs the right edge (title + date right-aligned).
 * ------------------------------------------------------------------------- */
.relatedPosts > .relatedPosts-list .content {
	justify-content: flex-end;
	align-items: flex-end;
	flex-direction: column;
	padding: 1rem 1.5rem;
}

.relatedPosts > .relatedPosts-list .content .title {
	text-align: right;
	margin-right: 0;
	margin-left: auto;
	-webkit-line-clamp: 2;
	line-clamp: 2;
}

.relatedPosts > .relatedPosts-list .content .date {
	display: block;
	color: var(--heo-secondtext);
	font-size: 0.8rem;
	margin-bottom: 0.4rem;
	text-align: right;
}

/* Search result excerpt card. */
.search-post-item .search-post-excerpt {
	margin: 0.4rem 0;
	font-size: 0.9rem;
	color: var(--heo-secondtext, #888);
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ---------------------------------------------------------------------------
 * Heading anchor icons (.headerlink), like the live site.
 * ------------------------------------------------------------------------- */
#article-container h1:hover .headerlink,
#article-container h2:hover .headerlink,
#article-container h3:hover .headerlink,
#article-container h4:hover .headerlink,
#article-container h5:hover .headerlink,
#article-container h6:hover .headerlink {
	display: inline-block;
}

#article-container .headerlink:hover {
	opacity: 1;
	transition: var(--t-fast);
}

/* Tag share row. */
#post .tag_share {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.5rem;
}

#post .post-meta__tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

/* ---------------------------------------------------------------------------
 * Content images: the live injected CSS caps images at 450px and crops them
 * with object-fit:cover (fine for its blog, wrong here). Show natural aspect.
 * ------------------------------------------------------------------------- */
#article-container img {
	max-height: none;
	height: auto;
	object-fit: contain;
}

/* ---------------------------------------------------------------------------
 * 正文中含图片的链接（如「联系方式」图标行）：
 * 原注入样式按文字链接处理（点状蓝下划线 + hover 整块蓝底），且 img
 * 强制 display:block 导致图标一行一个。这里恢复图片按实际宽度行内流式
 * 排列，链接去掉文字链接装饰，hover 只做轻微放大。
 * ------------------------------------------------------------------------- */
#article-container a:has(> img) {
	border-bottom: none;
	padding: 0;
	border-radius: 0;
}

#article-container a:has(> img):hover {
	background: transparent;
	color: inherit;
}

#article-container.post-content a > img {
	display: inline-block;
	max-width: 100%;
	margin: 0 4px 8px 0;
	vertical-align: bottom;
	transition: var(--t);
}

#article-container a:has(> img):hover img {
	transform: scale(1.03);
}

/* 明确居中的大图（aligncenter）保持块级居中，不参与行内流。 */
#article-container a > img.aligncenter {
	display: block;
	margin: 0 auto 0.8rem;
}

/* ---------------------------------------------------------------------------
 * Article lists: remove the glow-dot pseudo bullets the live theme puts on
 * every <ul><li> (unwanted in front of images).
 * ------------------------------------------------------------------------- */
#article-container ul > li::before {
	display: none;
}

#article-container ul > li:not(.tab) {
	padding: 0.2em 0.2em;
}

/* ---------------------------------------------------------------------------
 * 首页 + 归档（分类/Tag）信息流：一行一篇，摘要首图为方形图标。
 * ------------------------------------------------------------------------- */
.homePage #recent-posts > .recent-post-item,
#category #recent-posts > .recent-post-item {
	width: 100%;
	max-width: 100%;
	flex: 1 1 100%;
	flex-direction: row;
	height: auto;
	min-height: 200px;
}

.homePage #recent-posts > .recent-post-item > .post_cover,
#category #recent-posts > .recent-post-item > .post_cover {
	width: 200px;
	height: 200px;
	flex-shrink: 0;
}

.homePage #recent-posts > .recent-post-item > .post_cover.left_radius,
.homePage #recent-posts > .recent-post-item > .post_cover.right_radius,
#category #recent-posts > .recent-post-item > .post_cover.left_radius,
#category #recent-posts > .recent-post-item > .post_cover.right_radius {
	border-radius: 12px 0 0 12px;
}

.homePage #recent-posts > .recent-post-item > .post_cover img.post_bg,
#category #recent-posts > .recent-post-item > .post_cover img.post_bg {
	width: 100%;
	height: 100%;
	object-fit: cover;
	min-height: 100%;
}

.homePage #recent-posts > .recent-post-item > .recent-post-info,
#category #recent-posts > .recent-post-item > .recent-post-info {
	width: auto;
	flex: 1;
	min-width: 0;
	height: auto;
	padding: 1.25rem 1.5rem;
	display: flex;
	flex-direction: column;
}

.homePage #recent-posts > .recent-post-item > .recent-post-info > .recent-post-info-top,
#category #recent-posts > .recent-post-item > .recent-post-info > .recent-post-info-top {
	width: 100%;
}

/* 信息流卡片：标题在上，摘要紧随其后（多展示几行，始终可见）。 */
.homePage #recent-posts > .recent-post-item > .recent-post-info,
#category #recent-posts > .recent-post-item > .recent-post-info {
	justify-content: flex-start;
}

.homePage #recent-posts > .recent-post-item > .recent-post-info > .content.home-excerpt,
#category #recent-posts > .recent-post-item > .recent-post-info > .content.home-excerpt {
	position: relative;
	top: auto;
	left: auto;
	opacity: 1 !important;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-top: 0.4rem;
	color: var(--heo-secondtext);
	font-size: 0.88rem;
	line-height: 1.8;
	border-bottom: none;
}

.homePage #recent-posts > .recent-post-item > .recent-post-info > .article-meta-wrap,
#category #recent-posts > .recent-post-item > .recent-post-info > .article-meta-wrap {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: auto;
	padding-top: 0.75rem;
}

/* 阅读数、留言数移到卡片最右。 */
.homePage #recent-posts > .recent-post-item > .recent-post-info > .article-meta-wrap > .article-meta-right,
#category #recent-posts > .recent-post-item > .recent-post-info > .article-meta-wrap > .article-meta-right {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	margin-left: auto;
}

@media screen and (max-width: 767px) {
	.homePage #recent-posts > .recent-post-item,
	#category #recent-posts > .recent-post-item {
		flex-direction: row;
	}
	.homePage #recent-posts > .recent-post-item > .post_cover,
	#category #recent-posts > .recent-post-item > .post_cover {
		width: 120px !important;
		height: 120px !important;
	}
	.homePage #recent-posts > .recent-post-item > .post_cover.left_radius,
	.homePage #recent-posts > .recent-post-item > .post_cover.right_radius,
	#category #recent-posts > .recent-post-item > .post_cover.left_radius,
	#category #recent-posts > .recent-post-item > .post_cover.right_radius {
		border-radius: 12px 0 0 12px !important;
	}
	.homePage #recent-posts > .recent-post-item > .recent-post-info,
	#category #recent-posts > .recent-post-item > .recent-post-info {
		padding: 0.75rem 1rem;
	}
}

/* ---------------------------------------------------------------------------
 * Comments: distinct cards and clearly separated nested replies.
 * ------------------------------------------------------------------------- */
#post-comment .comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list > .comment {
	margin-bottom: 0.75rem;
}

.comment-list .comment-body {
	position: relative;
	padding: 1rem 1.25rem;
	margin: 0;
	border-radius: 12px;
	background: var(--heo-card-bg, #fff);
	border: var(--style-border-always);
	box-shadow: var(--heo-shadow-border, 0 8px 16px -4px #2c2d300c);
}

.comment-list .comment-author {
	display: flex;
	align-items: center;
	gap: 0.6rem;
}

.comment-list .comment-author img {
	border-radius: 50%;
	width: 42px;
	height: 42px;
	object-fit: cover;
}

.comment-list .comment-author .fn {
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--heo-fontcolor);
}

.comment-list .comment-metadata {
	font-size: 0.75rem;
	color: var(--heo-secondtext, #888);
	margin: 0.25rem 0 0.5rem 3.25rem;
}

.comment-list .comment-metadata a {
	color: var(--heo-secondtext, #888);
}

.comment-list .comment-content {
	line-height: 1.8;
	margin: 0.5rem 0 0.25rem 3.25rem;
	word-break: break-word;
}

.comment-list .comment-content p {
	margin: 0.3em 0;
}

.comment-list .reply {
	font-size: 0.85rem;
	margin-left: 3.25rem;
}

.comment-list .reply a {
	color: var(--heo-main);
}

/* Nested replies: indented, tinted and marked with an accent bar. */
.comment-list .children {
	list-style: none;
	margin: 0.75rem 0 0;
	padding: 0 0 0 1.5rem;
	border-left: 2px solid var(--heo-card-border, #e3e8f7);
}

.comment-list .children .comment-body {
	background: var(--heo-secondbg, #f7f7f9);
	border: var(--style-border-always);
	border-left: 4px solid var(--heo-main);
	box-shadow: none;
}

.comment-list .children .children {
	border-left-color: var(--heo-main-op);
}

.comment-list .children .children .comment-body {
	border-left-color: var(--heo-main-op-deep);
}

/* Author name accent + clearer meta rows. */
.comment-list .comment-author .fn {
	color: var(--heo-main);
}

.comment-list .comment-author .fn a {
	color: inherit;
}

.comment-list > .comment {
	margin-bottom: 1rem;
}

.comment-list .comment-metadata {
	margin: 0.25rem 0 0.5rem 3.25rem;
	padding-bottom: 0.5rem;
	border-bottom: 1px dashed var(--heo-card-border, #e3e8f7);
}

.comment-awaiting-moderation {
	font-size: 0.8rem;
	color: var(--heo-orange, #e38100);
}

.no-comments {
	color: var(--heo-secondtext, #888);
}

/* ---------------------------------------------------------------------------
 * Shared code-block presentation for plain pre/code, highlight.js (Githuber MD)
 * and legacy SyntaxHighlighter. Plugin styles may load after the theme, so the
 * article-scoped overrides also cover their !important resets.
 * ------------------------------------------------------------------------- */
#article-container {
	--huaguo-code-bg: #f6f8fa;
	--huaguo-code-fg: #24292f;
	--huaguo-code-muted: #57606a;
	--huaguo-code-keyword: #8250df;
	--huaguo-code-string: #116329;
	--huaguo-code-number: #0550ae;
	--huaguo-code-title: #953800;
	--huaguo-code-deletion: #a40e26;
	--huaguo-code-border: #d0d7de;
}

[data-theme=dark] #article-container {
	--huaguo-code-bg: #1e2028;
	--huaguo-code-fg: #e6e9f2;
	--huaguo-code-muted: #a6b0c3;
	--huaguo-code-keyword: #d2a8ff;
	--huaguo-code-string: #a5d6a7;
	--huaguo-code-number: #79c0ff;
	--huaguo-code-title: #ffa657;
	--huaguo-code-deletion: #ff7b72;
	--huaguo-code-border: #444c56;
}

#article-container pre,
#article-container pre.hljs,
#article-container .syntaxhighlighter {
	position: relative !important;
	box-sizing: border-box !important;
	width: auto !important;
	max-width: 100%;
	margin: 1.25rem 0 !important;
	/* Leave a header row so the copy button never obscures the first line. */
	padding: 3rem 1rem 1rem !important;
	border: 1px solid var(--huaguo-code-border) !important;
	border-radius: 10px;
	background: var(--huaguo-code-bg) !important;
	color: var(--huaguo-code-fg) !important;
	font-family: Consolas, Menlo, Monaco, "Courier New", monospace !important;
	font-size: 14px !important;
	font-weight: normal !important;
	line-height: 1.6 !important;
	text-align: left;
	text-shadow: none !important;
	white-space: pre;
	word-break: normal;
	overflow-wrap: normal;
	tab-size: 4;
	overflow: auto !important;
	box-shadow: none !important;
}

#article-container pre code,
#article-container pre code.hljs,
#article-container .syntaxhighlighter .code code,
#article-container .syntaxhighlighter .code span {
	margin: 0 !important;
	padding: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: var(--huaguo-code-fg) !important;
	font: inherit !important;
	text-shadow: none !important;
}

#article-container pre code.hljs {
	display: block;
	overflow: visible;
}

#article-container pre code span {
	background: transparent !important;
	color: var(--huaguo-code-fg) !important;
}

/* Use the same token palette, even when Githuber loads a11y-dark afterwards. */
#article-container pre .hljs-comment,
#article-container pre .hljs-quote,
#article-container pre .hljs-meta,
#article-container .syntaxhighlighter .code .comments,
#article-container .syntaxhighlighter .code .comment,
#article-container .syntaxhighlighter .code .preprocessor {
	color: var(--huaguo-code-muted) !important;
}

#article-container pre .hljs-keyword,
#article-container pre .hljs-selector-tag,
#article-container pre .hljs-type,
#article-container pre .hljs-built_in,
#article-container .syntaxhighlighter .code .keyword,
#article-container .syntaxhighlighter .code .script,
#article-container .syntaxhighlighter .code .color1 {
	color: var(--huaguo-code-keyword) !important;
}

#article-container pre .hljs-string,
#article-container pre .hljs-regexp,
#article-container pre .hljs-addition,
#article-container .syntaxhighlighter .code .string,
#article-container .syntaxhighlighter .code .color2 {
	color: var(--huaguo-code-string) !important;
}

#article-container pre .hljs-number,
#article-container pre .hljs-literal,
#article-container pre .hljs-symbol,
#article-container pre .hljs-bullet,
#article-container pre .hljs-variable,
#article-container pre .hljs-attr,
#article-container .syntaxhighlighter .code .constants,
#article-container .syntaxhighlighter .code .number,
#article-container .syntaxhighlighter .code .value,
#article-container .syntaxhighlighter .code .variable {
	color: var(--huaguo-code-number) !important;
}

#article-container pre .hljs-title,
#article-container pre .hljs-section,
#article-container pre .hljs-name,
#article-container pre .hljs-attribute,
#article-container .syntaxhighlighter .code .functions {
	color: var(--huaguo-code-title) !important;
}

#article-container pre .hljs-deletion,
#article-container .syntaxhighlighter .code .color3 {
	color: var(--huaguo-code-deletion) !important;
}

/* SyntaxHighlighter uses a table and !important resets for all inner divs. */
#article-container .syntaxhighlighter table,
#article-container .syntaxhighlighter tbody,
#article-container .syntaxhighlighter tr,
#article-container .syntaxhighlighter td,
#article-container .syntaxhighlighter th,
#article-container .syntaxhighlighter .line,
#article-container .syntaxhighlighter .code .container {
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	background: transparent !important;
	color: inherit !important;
	font: inherit !important;
	text-shadow: none !important;
}

#article-container .syntaxhighlighter .code .container {
	max-width: none !important;
}

#article-container .syntaxhighlighter .line {
	white-space: pre !important;
}

#article-container .syntaxhighlighter td.gutter {
	color: var(--huaguo-code-muted) !important;
	border-right: 1px solid var(--huaguo-code-border) !important;
}

#article-container .syntaxhighlighter .gutter .line {
	padding-right: 0.75rem !important;
}

#article-container .syntaxhighlighter td.code {
	padding-left: 1rem !important;
}

#article-container .syntaxhighlighter.nogutter td.code {
	padding-left: 0 !important;
}

#article-container .syntaxhighlighter:not(.collapsed) > .toolbar,
#article-container .syntaxhighlighter.collapsed > .huaguo-code-tools {
	display: none !important;
}

#article-container .syntaxhighlighter.collapsed > .toolbar,
#article-container .syntaxhighlighter.collapsed > .toolbar a {
	background: transparent !important;
	color: var(--huaguo-code-fg) !important;
	border: none !important;
}

/* Match the toolbar-to-code gap to the existing 1rem bottom padding.
 * Flow layout follows the toolbar's actual height, including copy feedback. */
#article-container .syntaxhighlighter:not(.collapsed):has(> .huaguo-code-tools) {
	display: flex !important;
	flex-direction: column;
	gap: 1rem;
	padding-top: 8px !important;
}

#article-container .syntaxhighlighter:not(.collapsed):has(> .huaguo-code-tools) > .huaguo-code-tools {
	position: static !important;
	align-self: flex-end;
	order: -1;
	flex: none;
}

#article-container .syntaxhighlighter:not(.collapsed):has(> .huaguo-code-tools) > table {
	flex: none;
}

/* ---------------------------------------------------------------------------
 * YARPP 相关文章块（渲染于「喜欢这篇文章的人也看了」区块内）。
 * 条目样式对齐侧栏「热门文章」卡（#card-hotpost > a）：
 * 序号徽章 + 标题的圆角行，悬停整行变色。
 * ------------------------------------------------------------------------- */
.relatedPosts .relatedPosts-yarpp .yarpp-related {
	margin: 0;
	padding: 0;
	border-top: none;
}

.relatedPosts .relatedPosts-yarpp .yarpp-related > h,
.relatedPosts .relatedPosts-yarpp .yarpp-related > h3,
.relatedPosts .relatedPosts-yarpp .yarpp-related > h4 {
	display: none; /* 标题由主题 headline 提供 */
}

/* 列表整体：同 #card-hotpost 的纵向 flex + 4px 间距 */
.relatedPosts .relatedPosts-yarpp .yarpp-related ol {
	display: flex;
	flex-direction: column;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: yarpp-rank;
}

/* 条目本体：同 #card-hotpost > a（圆角行） */
.relatedPosts .relatedPosts-yarpp .yarpp-related li {
	counter-increment: yarpp-rank;
	display: flex;
	align-items: center;
	font-size: 15px;
	overflow: hidden;
	padding: .3rem;
	gap: 4px;
	border-radius: 12px;
	border-bottom: none;
}

/* 序号徽章：同 #card-hotpost .post-rank */
.relatedPosts .relatedPosts-yarpp .yarpp-related li::before {
	content: counter(yarpp-rank);
	background: var(--heo-secondbg);
	border: var(--style-border-always);
	color: var(--heo-fontcolor);
	border-radius: 99px;
	margin-right: 4px;
	width: 25px;
	height: 25px;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	flex: none;
}

/* 第 1 名徽章高亮：同 rank-1 */
.relatedPosts .relatedPosts-yarpp .yarpp-related li:first-child::before {
	background: var(--heo-lighttext);
	color: var(--heo-card-bg);
	border-color: var(--heo-lighttext);
}

/* 标题链接：同 .post-title，两行截断 */
.relatedPosts .relatedPosts-yarpp .yarpp-related li a {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	line-height: 1.38;
	flex: 1;
	min-width: 0;
	overflow: hidden;
	padding-top: 2px;
	border-bottom: none;
	color: var(--heo-fontcolor);
}

/* 悬停：同 #card-hotpost 条目悬停 */
.relatedPosts .relatedPosts-yarpp .yarpp-related li:hover {
	background: var(--heo-lighttext);
	color: var(--heo-card-bg);
}

.relatedPosts .relatedPosts-yarpp .yarpp-related li:hover a {
	color: var(--heo-card-bg);
}

.relatedPosts .relatedPosts-yarpp .yarpp-related li:hover::before {
	background: var(--heo-card-bg);
	color: var(--heo-fontcolor);
	border-color: var(--heo-card-bg);
}

.relatedPosts .relatedPosts-yarpp .yarpp-related li:first-child:hover::before {
	background: var(--heo-maskbg);
	color: var(--heo-white);
	border-color: var(--heo-maskbg);
}

/* ---------------------------------------------------------------------------
 * 空链接防御：彻底隐藏无内容的 <a></a>。
 * ------------------------------------------------------------------------- */
#article-container a:empty {
	display: none;
}

/* ---------------------------------------------------------------------------
 * 归档页按年列表。
 * ------------------------------------------------------------------------- */
#article-container .archive-list {
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
}

#article-container .archive-list li {
	position: relative;
	padding: 0.45rem 0 0.45rem 1.2rem;
	border-bottom: 1px dashed var(--heo-card-border, #e3e8f7);
}

#article-container .archive-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--heo-main);
	opacity: 0.7;
}

#article-container .archive-list a {
	font-weight: 500;
	border-bottom: none;
}

/* ---------------------------------------------------------------------------
 * 侧边栏作者头像图片填充圆形容器。
 * ------------------------------------------------------------------------- */
#aside-content .card-info .avatar-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* 归档/分类/搜索列表卡片的摘要：全文 + 行数截断（首页卡片另有 4 行规则）。 */
#recent-posts > .recent-post-item > .recent-post-info > .content {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-top: 0.4rem;
	color: var(--heo-secondtext);
	font-size: 0.8rem;
	line-height: 1.7;
}

/* 标签卡计数样式（参考站 sup 计数） */
#aside-content .card-tag-cloud a .tag-link-count {
	margin-left: 4px;
	font-size: 0.7em;
	opacity: 0.6;
	line-height: 1;
}

/* ---------------------------------------------------------------------------
 * A4 载入动画（参考站 loading-box）。
 * ------------------------------------------------------------------------- */
#loading-box {
	-webkit-user-select: none;
	user-select: none;
}

#loading-box .loading-bg {
	display: flex;
	width: 100%;
	height: 100%;
	position: fixed;
	background: var(--heo-card-bg);
	z-index: 1999;
	opacity: 1;
	pointer-events: all;
	transition: opacity 0.3s;
}

#loading-box.loaded .loading-bg {
	display: none;
}

body:has(#loading-box:not(.loaded)) {
	background: var(--heo-card-bg) !important;
}

#loading-box .loading-img {
	width: 100px;
	height: 100px;
	margin: auto;
	border-radius: 0;
	animation-duration: 0.2s;
	animation-name: huaguoLoadingAction;
	animation-iteration-count: infinite;
	animation-direction: alternate;
	object-fit: contain;
}

@keyframes huaguoLoadingAction {
	from { opacity: 1; }
	to { opacity: 0.6; }
}

/* ---------------------------------------------------------------------------
 * A3 右侧悬浮工具坞。
 * ------------------------------------------------------------------------- */
#rightside {
	position: fixed;
	right: 0;
	bottom: 88px;
	z-index: 100;
	display: flex;
	flex-direction: row;
	gap: 8px;
	align-items: center;
	transition: var(--t);
	opacity: 0;
	transform: translateX(100%);
}

#rightside.rightside-show {
	opacity: 1;
	transform: translateX(0);
	right: 20px;
}

#rightside button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: none;
	border-radius: 50%;
	background: var(--heo-card-bg);
	color: var(--heo-fontcolor);
	box-shadow: var(--heo-shadow-border);
	cursor: pointer;
	font-size: 14px;
	transition: var(--t);
}

#rightside button:hover {
	background: var(--heo-main);
	color: var(--heo-white);
}

#rightside #rightside-config-hide {
	display: none;
	flex-direction: row;
	gap: 8px;
	align-items: center;
}

#rightside #rightside-config-hide.expanded {
	display: flex;
}

/* 单双栏切换（桌面端）。 */
@media screen and (min-width: 901px) {
	body.hide-aside .layout > #aside-content,
	body.hide-aside #content-inner > #aside-content {
		display: none;
	}
	body.hide-aside .layout > div:first-child,
	body.hide-aside .layout > #post,
	body.hide-aside .layout > .home-layout-row > .home_barAndPosts,
	body.hide-aside .layout > .home-layout-row > #category {
		width: 100% !important;
		max-width: 100% !important;
		flex: 1 1 100% !important;
	}
}

#rightside #translateLink {
	font-size: 12px;
	font-weight: 700;
}

/* ---------------------------------------------------------------------------
 * A5 悬浮提示 heotip。
 * ------------------------------------------------------------------------- */
.heo-tooltip {
	position: fixed;
	z-index: 10000;
	max-width: 220px;
	padding: 6px 10px;
	border-radius: 8px;
	background: var(--heo-fontcolor);
	color: var(--heo-card-bg);
	font-size: 12px;
	line-height: 1.5;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.15s;
}

.heo-tooltip.show {
	opacity: 1;
}

/* ---------------------------------------------------------------------------
 * Githuber MD 自带英文 "Copy" 按钮与主题工具栏重复，隐藏之（保留中文「复制」）。
 * ------------------------------------------------------------------------- */
#article-container button.copy-button {
	display: none !important;
}

/* ---------------------------------------------------------------------------
 * A7 代码块工具栏（复制按钮 + 语言标签）。
 * ------------------------------------------------------------------------- */
#article-container .huaguo-code-tools {
	position: absolute !important;
	top: 8px !important;
	right: 12px !important;
	display: flex !important;
	align-items: center;
	gap: 8px;
	z-index: 5;
}

#article-container .huaguo-code-tools .code-lang {
	font-size: 12px !important;
	color: var(--huaguo-code-muted) !important;
}

.huaguo-code-tools .copy-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 10px;
	border: none;
	border-radius: 999px;
	background: var(--heo-main-op);
	color: var(--heo-main);
	font-size: 12px;
	cursor: pointer;
	transition: var(--t-fast);
}

.huaguo-code-tools .copy-btn:hover {
	background: var(--heo-main);
	color: var(--heo-white);
}

.huaguo-code-tools .copy-btn.copied {
	background: var(--heo-green, #57bd6a);
	color: #fff;
}

/* Floating nav-music: owner-configured native audio, without the share action. */
#bottom-dock {
	position: fixed !important;
	left: 20px !important;
	bottom: calc(20px + env(safe-area-inset-bottom, 0px)) !important;
	z-index: 1001;
	pointer-events: none;
}

#bottom-dock[hidden], #nav-music[hidden], #nav-music [hidden] { display: none !important; }
body.sidebar-open #bottom-dock { visibility: hidden; pointer-events: none; }

#nav-music {
	--heo-musicColor: var(--heo-main);
	--heo-musicColor-op: var(--heo-main-op);
	width: 52px;
	height: 52px;
	max-width: calc(100vw - 40px);
	border: 1px solid var(--heo-card-border, #e3e8f7);
	border-radius: 28px;
	background: var(--heo-card-bg);
	color: var(--heo-fontcolor);
	box-shadow: var(--heo-shadow-border);
	pointer-events: auto;
	animation: none;
	transition: width .3s, height .3s, background-color .2s, border-color .2s;
}

#nav-music.is-expanded { width: 320px; height: 64px; }
#nav-music.playing { animation: none; box-shadow: var(--heo-shadow-border); }
#nav-music #heo-music { position: relative; width: 100%; height: 100%; min-width: 0; }

#nav-music .huaguo-music-main {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 7px;
	border: 0;
	border-radius: inherit;
	background: transparent;
	color: inherit;
	text-align: left;
	font: inherit;
	cursor: pointer;
}

#nav-music .huaguo-music-art {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--heo-main-op);
	color: var(--heo-main);
	animation: huaguoMusicSpin 18s linear infinite;
	animation-play-state: paused;
}

#nav-music.playing:not(.is-expanded) .huaguo-music-art { animation-play-state: running; box-shadow: 0 0 0 1px var(--heo-card-border), inset 0 0 0 3px var(--heo-main-op); }
#nav-music .huaguo-music-art::after { content: ''; position: absolute; width: 6px; height: 6px; border: 1px solid var(--heo-card-border); border-radius: 50%; background: var(--heo-card-bg); opacity: 0; }
#nav-music.playing:not(.is-expanded) .huaguo-music-art::after { opacity: 1; }
@keyframes huaguoMusicSpin { to { transform: rotate(360deg); } }
#nav-music.is-expanded .huaguo-music-art { flex-basis: 44px; height: 44px; }
#nav-music .huaguo-music-cover { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
#nav-music .huaguo-music-note { width: 22px; height: 22px; fill: currentColor; }
#nav-music .huaguo-music-info { display: none; min-width: 0; flex: 1; line-height: 1.5; }
#nav-music.is-expanded .huaguo-music-info { display: flex; flex-direction: column; }
#nav-music .huaguo-music-name, #nav-music .huaguo-music-artist { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#nav-music .huaguo-music-name { font-size: 14px; font-weight: 600; }
#nav-music .huaguo-music-artist { font-size: 11px; color: var(--heo-secondtext); }
#nav-music .huaguo-music-meter { display: none; align-items: flex-end; justify-content: center; gap: 2px; flex: 0 0 20px; height: 18px; margin-right: 10px; }
#nav-music.is-expanded .huaguo-music-meter { display: flex; }
#nav-music .huaguo-music-meter i { width: 3px; height: 8px; border-radius: 2px; background: var(--heo-main); }
#nav-music .huaguo-music-meter i:nth-child(2) { height: 14px; animation-delay: -.3s; }
#nav-music .huaguo-music-meter i:nth-child(3) { height: 18px; animation-delay: -.6s; }
#nav-music .huaguo-music-meter i:nth-child(4) { height: 11px; animation-delay: -.9s; }
#nav-music.playing .huaguo-music-meter i { animation: huaguoMusicBars 1s ease-in-out infinite alternate; }
#nav-music.playing .huaguo-music-meter i:nth-child(2) { animation-delay: -.3s; }
#nav-music.playing .huaguo-music-meter i:nth-child(3) { animation-delay: -.6s; }
#nav-music.playing .huaguo-music-meter i:nth-child(4) { animation-delay: -.9s; }
@keyframes huaguoMusicBars { from { transform: scaleY(.3); } to { transform: scaleY(1); } }

#nav-music .huaguo-music-progress { position: absolute; left: 0; bottom: 0; width: var(--huaguo-music-progress, 0%); height: 2px; background: var(--heo-main); opacity: .65; pointer-events: none; }
#nav-music #huaguo-music-audio { display: none; }

#nav-music #nav-music-hoverTips,
#nav-music.playing #nav-music-hoverTips {
	left: 0;
	right: 0;
	width: 100%;
	height: 100%;
	gap: 4px;
	padding: 0;
	justify-content: center;
	background: var(--heo-main);
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	opacity: 0;
	pointer-events: none;
	z-index: 4;
}

#nav-music.is-expanded #nav-music-hoverTips {
	left: auto;
	width: 144px;
	padding-right: 10px;
	justify-content: flex-end;
	background: linear-gradient(to left, var(--heo-card-bg) 78%, transparent);
	color: var(--heo-fontcolor);
}

#nav-music:hover #nav-music-hoverTips,
#nav-music.has-keyboard-focus #nav-music-hoverTips { opacity: 1; pointer-events: auto; }
#nav-music #nav-music-hoverTips .music-control-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 5px; border: 0; border-radius: 50%; background: transparent; color: inherit; opacity: 1; line-height: 1; cursor: pointer; }
#nav-music.is-expanded #music-prev, #nav-music.is-expanded #music-next { display: inline-flex; }
#nav-music:not(.is-expanded) #music-prev, #nav-music:not(.is-expanded) #music-next { display: none; }
#nav-music #nav-music-hoverTips .music-control-btn svg { width: 20px; height: 20px; fill: currentColor; }
#nav-music #nav-music-hoverTips .music-control-btn:hover { background: var(--heo-main-op); color: var(--heo-main); text-shadow: none; }
#nav-music:not(.is-expanded) #nav-music-hoverTips .music-control-btn:hover { color: var(--heo-white); }
#nav-music #nav-music-hoverTips .music-control-btn:disabled { opacity: .3; cursor: default; }
#nav-music button:focus-visible { outline: 2px solid var(--heo-main); outline-offset: -3px; }
#nav-music:focus-within { outline: 2px solid var(--heo-main); outline-offset: 3px; }
#nav-music[data-state=error] .huaguo-music-art { color: var(--heo-red, #d83b45); }

@media (hover: none), (pointer: coarse) {
	#nav-music.is-expanded #nav-music-hoverTips { opacity: 1; pointer-events: auto; }
	#nav-music.is-expanded .huaguo-music-main { padding-right: 112px; }
	#nav-music.is-expanded .huaguo-music-meter { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	#nav-music, #nav-music * { transition: none !important; animation: none !important; }
}

#article-container pre.hljs,
#article-container .syntaxhighlighter,
.post-content pre {
	position: relative;
}

/* ---------------------------------------------------------------------------
 * 子菜单定位校对：容器改 flex 使长标签可收缩截断；
 * 左右对齐与宽度上限由 JS 按按钮在视口中的位置动态设置。
 * （背景/圆角/阴影沿用 nav.css 的玻璃胶囊，不做改动。）
 * ------------------------------------------------------------------------- */
#nav .menus_items .menus_item .menus_item_child {
	display: flex;
	align-items: center;
}

#nav .menus_item_child li {
	min-width: 0;
	flex-shrink: 1;
}

#nav .menus_item_child a.site-page.child {
	min-width: 0;
}

#nav .menus_item_child a.site-page.child span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ---------------------------------------------------------------------------
 * 导航校对：
 * 1. 文章页封面状态（post-bg 且未滚动）nav-left 与菜单胶囊去除玻璃效果。
 * 2. 返回主页按钮 + hover 面板（参考站 back-home-button）。
 * ------------------------------------------------------------------------- */
#page-header.post-bg:not(.nav-fixed) #nav #nav-left,
#page-header.post-bg:not(.nav-fixed) #nav #nav-middle .menus_items {
	box-shadow: none !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
}

#page-header.post-bg:not(.nav-fixed) #nav .back-home-button {
	color: var(--heo-white);
}

#nav .back-home-button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 35px;
	height: 35px;
	border-radius: 999px;
	cursor: pointer;
	position: relative;
	z-index: 2;
	color: var(--heo-fontcolor);
	transition: var(--t);
	flex-shrink: 0;
}

/* iconfont 图标的行盒会溢出元素边界，禁用其指针事件避免遮挡相邻按钮。 */
#nav #site-name i {
	pointer-events: none;
}

#nav .back-home-button:hover {
	background: var(--heo-main);
	color: var(--heo-white);
}

#nav .back-menu-list-groups {
	position: absolute;
	top: 46px;
	left: 0;
	display: none;
	min-width: 280px;
	padding: 12px;
	background: var(--heo-card-bg);
	border: var(--style-border-always);
	border-radius: 12px;
	box-shadow: var(--heo-shadow-border);
	z-index: 100;
}

#nav .back-home-button:hover .back-menu-list-groups {
	display: block;
}

#nav .back-menu-list-title {
	font-size: 12px;
	color: var(--heo-secondtext);
	line-height: 3;
}

#nav .back-menu-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

#nav .back-menu-item {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	background: var(--heo-secondbg);
	border: var(--style-border-always);
	border-radius: 999px;
	color: var(--heo-fontcolor);
	font-size: 13px;
	transition: var(--t);
}

#nav .back-menu-item:hover {
	background: var(--heo-main);
	color: var(--heo-white);
}

/* ---------------------------------------------------------------------------
 * 文章头图分类胶囊（对齐参考站：白色磨砂玻璃 pill）。
 * ------------------------------------------------------------------------- */
#post-firstinfo a.post-meta-categories {
	display: block;
	height: 32px;
	line-height: 32px;
	padding: 0 10px;
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-radius: 99px;
	color: #fff;
	font-size: 16px;
}

/* 悬停/聚焦/激活时保持胶囊圆角形状（仅文字变主题色）。 */
#post-firstinfo a.post-meta-categories:hover,
#post-firstinfo a.post-meta-categories:focus,
#post-firstinfo a.post-meta-categories:active {
	display: block;
	padding: 0 10px;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 99px;
	color: var(--current-banner-theme, var(--heo-main));
}

/* ---------------------------------------------------------------------------
 * 文章头图 meta 行胶囊（对齐参考站）：
 * meta-secondline（日期/热度/评论）的 span 为白色磨砂胶囊，hover 变纯白。
 * meta-firstline 的胶囊由内层 a 提供，外层 span 保持透明避免双层重影。
 * ------------------------------------------------------------------------- */
/* meta-secondline：胶囊单行横排（参考站），宽度自适应文字。 */
#post-info #post-meta .meta-secondline {
	display: flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}

#post-info #post-meta .meta-secondline > span:not(.post-meta-separator) {
	display: flex;
	align-items: center;
	height: 32px;
	width: fit-content;
	flex-shrink: 0;
	font-size: 15.2px;
	background: rgba(255, 255, 255, 0.15);
	border-radius: 99px;
	padding: 0 10px;
}

#post-info #post-meta .meta-secondline > span:not(.post-meta-separator):hover {
	display: flex;
	align-items: center;
	height: 32px;
	background: #fff;
	border-radius: 99px;
	padding: 0 10px;
}

#post-firstinfo .meta-firstline > span {
	background: transparent;
	border-radius: 0;
	padding: 0;
}

/* firstline 胶囊间间距与 secondline 一致。 */
#post-firstinfo .meta-firstline {
	display: flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}

/* 「原创」徽章（对齐参考站：firstline 首枚胶囊，hover 白底主题字）。 */
#post-firstinfo a.post-meta-original {
	display: flex;
	align-items: center;
	height: 32px;
	padding: 0 10px;
	font-size: 14px;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	border-radius: 99px;
	margin: 0;
}

/* ---------------------------------------------------------------------------
 * 页脚链接最大宽度翻倍（100px -> 200px），显示更多文本。
 * ------------------------------------------------------------------------- */
#heo-footer .footer-links .footer-item {
	max-width: 200px;
}

/* ---------------------------------------------------------------------------
 * A12 最新评论卡内容行。
 * ------------------------------------------------------------------------- */
#aside-content .card-newest-comments .aside-list-item .content .comment {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 0.75rem;
	color: var(--heo-secondtext);
	margin-top: 2px;
}

/* ---------------------------------------------------------------------------
 * 页脚底栏对齐参考站：内边距/两端对齐/版权行头像/备案小字。
 * ------------------------------------------------------------------------- */
#footer-bar .footer-bar-links {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 30px;
	margin: 0 20px;
}

#footer-bar .footer-bar-left {
	display: flex;
	align-items: center;
}

#footer-bar #footer-bar-tips {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

#footer-bar .copyright {
	display: flex;
	align-items: center;
	gap: 4px;
}

#footer-bar .copyright .author-avatar {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 2px;
	vertical-align: middle;
}

#footer-bar .beian-group {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	color: var(--heo-secondtext);
}

#footer-bar .beian-group .footer-bar-link {
	font-size: 12px;
	color: var(--heo-secondtext);
}

/* ---------------------------------------------------------------------------
 * 侧栏细节修正：
 * 1. 站点统计卡：链接内的 <b> 数字继承链接颜色（hover 时白字可读）。
 * 2. RSS 卡：文字与图标统一白色（卡片为绿色渐变底）。
 * ------------------------------------------------------------------------- */
#aside-content .card-power .power-item-link a b {
	color: inherit !important;
}

#aside-content .card-power .power-item-link a:hover b {
	color: var(--heo-card-bg) !important;
}

#card-wechat .wechat-card-left,
#card-wechat .wechat-card-left i,
#card-wechat .wechat-card-arrow {
	color: #fff;
}

/* ---------------------------------------------------------------------------
 * 侧栏「最新文章」条目：缩略图与标题上下居中。
 * 原 zhheo 规则为 align-items:flex-start，并靠缩略图 margin-top:4px、
 * 标题 margin-bottom:8px 补偿对齐，实际内容偏上；这里改为真正居中。
 * ------------------------------------------------------------------------- */
#aside-content .card-widget.card-recent-post .aside-list > .aside-list-item {
	-webkit-box-align: center;
	align-items: center;
	padding: 4px 6px; /* 原 2px/8px 上下不对称，居中后统一为对称内边距 */
}

#aside-content .card-widget.card-recent-post .aside-list > .aside-list-item .thumbnail {
	margin-top: 0;
}

#aside-content .card-widget.card-recent-post .aside-list > .aside-list-item .content > .title {
	margin-bottom: 0;
}

/* ---------------------------------------------------------------------------
 * 页脚 #heo-footer：小工具输出对齐参考站 footer-group 列式设计。
 * 后端给 footer-1..4 配置了小工具（链接分类等），widget 原始标记没有
 * .footer-links/.footer-item 类；这里把 widget 结构重映射成参考站的
 * 「标题 + 圆角链接列」样式（.8rem 标题、8px 内边距胶囊链接、16px 列间距）。
 * ------------------------------------------------------------------------- */
#heo-footer .footer-group.widget_block {
	display: contents; /* 拆开块级包装，让每个 widget 直接成为页脚列 */
}

#heo-footer .widget_block .wp-block-columns,
#heo-footer .widget_block .wp-block-column {
	display: contents;
}

#heo-footer .widget {
	display: flex;
	flex-direction: column;
	gap: 16px; /* 同参考站 .footer-group */
}

/* widget 标题：对齐参考站 .footer-title */
#heo-footer .footer-group .widgettitle,
#heo-footer .footer-group h2 {
	color: var(--heo-fontcolor);
	font-size: .8rem;
	line-height: 1;
	margin: 0 0 0 8px;
	width: fit-content;
}

/* widget 链接列表：对齐参考站 .footer-links（纵向排列、8px 间距） */
#heo-footer .footer-group ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

/* widget 链接：对齐参考站 .footer-item（胶囊、单行截断） */
#heo-footer .footer-group ul li a {
	font-size: .8rem;
	line-height: .8rem;
	color: var(--heo-fontcolor);
	width: fit-content;
	max-width: 100px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	cursor: pointer;
	padding: 8px;
	border-radius: 99px;
	display: block;
}

#heo-footer .footer-group ul li a:hover {
	color: var(--heo-lighttext);
	background: var(--heo-main-op);
}

[data-theme=dark] #heo-footer .footer-group ul li a:hover {
	background: var(--heo-theme-op);
}

/* ---------------------------------------------------------------------------
 * 文章页头部封面：zhheo 原样式（右侧 70% 宽、旋转放大、blur 30px、
 * opacity .5，叠在不透明主题色遮罩上）会把深色封面完全糊成纯色，
 * PC 上根本看不出背景图。改为整幅封面铺满头部（轻微模糊 + 90% 不
 * 透明，保留一点主题色透底），PC 与移动端观感一致。
 * ------------------------------------------------------------------------- */
@media screen and (min-width: 768px) {
	#page-header.post-bg .coverdiv {
		width: 100%;
		margin: 0;
		height: 100%;
		transform: none;
		filter: blur(6px);
		opacity: 0.9;
	}
}
