/*
Theme Name: Bashige Business
Theme URI: https://theme.bashige.com
Author: Custom
Description: 三栏简约商务风：左侧商务蓝竖向导航、中间文章卡片列表、右侧白色小工具区；无衬线排版，青绿点缀。
Version: 1.6.9
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bashige-theme
Tags: three-columns, left-sidebar, right-sidebar, custom-menu, featured-images, blog, custom-logo
*/

/* --------------------------------------------------------------------------
   设计变量 — 商务蓝 + 青绿点缀 + 浅灰页面底
   -------------------------------------------------------------------------- */
:root {
	--navy: #1a2d4a;
	--navy-deep: #142438;
	--teal: #0d9488;
	--teal-soft: rgba(13, 148, 136, 0.12);
	/* 正文二级标题左侧竖杠（珊瑚红） */
	--entry-h2-bar: #f0625d;
	--entry-h2-bar-width: 5px;
	/* 列表卡片缩略图：列宽占比 + 竖向堆叠时的画幅（略宽于 16:9） */
	--post-list-thumb-col: 42%;
	--post-list-thumb-max: 340px;
	--post-list-thumb-aspect: 2 / 1;
	--page-bg: #f3f5f9;
	--paper: #ffffff;
	--paper-subtle: #eef1f5;
	--ink: #111827;
	--ink-muted: #4b5563;
	--ink-faint: #9ca3af;
	--line: rgba(17, 24, 39, 0.1);
	--accent: var(--teal);
	--accent-soft: rgba(13, 148, 136, 0.08);
	--shadow-card: 0 1px 2px rgba(17, 24, 39, 0.06), 0 8px 24px rgba(17, 24, 39, 0.06);
	/* 系统默认无衬线 + 常见中文回退，不加载网络字体 */
	--font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	--measure: 65ch;
	/* 左侧导航栏（随视口略缩） */
	--sidebar-width: clamp(210px, 22vw, 276px);
	/* 右侧小工具栏（宽于左侧，随视口缩放） */
	--widget-sidebar-width: clamp(236px, 27vw, 352px);
	--space-xs: 0.5rem;
	--space-sm: 1rem;
	--space-md: 1.75rem;
	/* 栏间与主区内边距：窄屏自动收紧，宽屏放宽 */
	--column-gap: clamp(0.4rem, 1.35vw + 0.25rem, 2.25rem);
	/* 中间文章栏：不超过 58rem，且不超过「视口 − 左栏 − 右栏 − 三份栏距」避免挤换行 */
	--article-column-max: min(58rem, calc(100vw - var(--sidebar-width) - var(--widget-sidebar-width) - 3 * var(--column-gap) - 6px));
	--space-lg: 3rem;
	--space-xl: 4.5rem;
	--radius: 4px;
	--radius-image: 0;
	--site-gutter: var(--space-sm);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.65;
	color: var(--ink);
	background-color: var(--page-bg);
	font-weight: 400;
	letter-spacing: 0.02em;
	font-feature-settings: "kern" 1;
}

a {
	color: var(--accent);
	text-decoration: none;
	transition: color 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

a:hover,
a:focus-visible {
	color: var(--ink-muted);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

/* --------------------------------------------------------------------------
   总布局：左栏 + 主内容（中 + 右）
   -------------------------------------------------------------------------- */
.site {
	width: 100%;
	min-height: 100vh;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	overflow-x: clip;
}

/* 左侧商务蓝导航 */
.site-sidebar {
	flex: 0 0 var(--sidebar-width);
	width: var(--sidebar-width);
	max-width: 100%;
	background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
	color: rgba(255, 255, 255, 0.92);
	position: sticky;
	top: 0;
	align-self: flex-start;
	min-height: 100vh;
	max-height: 100vh;
	overflow-y: auto;
	z-index: 20;
	display: flex;
	flex-direction: column;
}

.admin-bar .site-sidebar {
	top: 32px;
	min-height: calc(100vh - 32px);
	max-height: calc(100vh - 32px);
}

@media screen and (max-width: 782px) {
	.admin-bar .site-sidebar {
		top: 46px;
		min-height: calc(100vh - 46px);
		max-height: calc(100vh - 46px);
	}
}

.site-sidebar__inner {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 1.5rem 1.125rem 1.25rem;
	gap: 1.25rem;
	min-height: 0;
}

.site-sidebar__brand {
	flex-shrink: 0;
}

.site-title--sidebar {
	margin: 0;
	font-size: 1.375rem;
	font-weight: 400;
	letter-spacing: 0.03em;
	line-height: 1.3;
}

.site-title--sidebar a {
	color: #fff;
	text-decoration: none;
	font-weight: inherit;
}

.site-title--sidebar a:hover {
	opacity: 0.88;
	text-decoration: none;
}

.site-sidebar__logo .custom-logo-link {
	display: inline-block;
	line-height: 0;
}

.site-sidebar__logo img {
	max-height: 42px;
	width: auto;
	height: auto;
}

.site-sidebar__description {
	margin: 0.35rem 0 0;
	font-size: 0.75rem;
	color: rgba(255, 255, 255, 0.55);
	line-height: 1.45;
}

/* 侧栏竖向菜单 */
.main-navigation .menu--sidebar {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
}

.main-navigation .menu--sidebar > li {
	position: relative;
}

.main-navigation .menu--sidebar a {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	padding: 0.5rem 0.4rem;
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
	font-size: 0.9375rem;
	border-radius: var(--radius);
	transition: background 0.15s ease, color 0.15s ease;
}

.main-navigation .menu--sidebar a:hover,
.main-navigation .menu--sidebar .current-menu-item > a,
.main-navigation .menu--sidebar .current-menu-ancestor > a {
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
}

.main-navigation .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: 0.35em;
	height: 0.35em;
	margin-left: auto;
	margin-right: 0.15rem;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	opacity: 0.65;
	flex-shrink: 0;
}

.main-navigation .sub-menu {
	list-style: none;
	margin: 0.2rem 0 0;
	padding: 0.25rem 0 0.35rem 0.65rem;
	border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.main-navigation .sub-menu a {
	font-size: 0.875rem;
	padding: 0.35rem 0.4rem;
	color: rgba(255, 255, 255, 0.82);
}

.main-navigation .sub-menu .sub-menu {
	margin-left: 0.25rem;
}

/* 侧栏底：搜索 + 社交 */
.site-sidebar__footer {
	margin-top: auto;
	padding-top: 1rem;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
}

.site-sidebar-social .menu--social {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
}

.site-sidebar-social .menu--social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2rem;
	height: 2rem;
	padding: 0 0.45rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	color: rgba(255, 255, 255, 0.92);
	font-size: 0.6875rem;
	font-weight: 500;
	text-decoration: none;
	letter-spacing: 0.02em;
	transition: background 0.15s ease;
}

.site-sidebar-social .menu--social a:hover {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
	text-decoration: none;
}

/* 主内容区（灰底） */
.site-content {
	flex: 1;
	min-width: 0;
	width: 100%;
	display: flex;
	flex-direction: column;
	background: var(--page-bg);
}

/* 与 .layout-two-col 的 gap 同为 --column-gap，三栏占满视口宽度 */
.site-inner {
	flex: 1;
	width: 100%;
	max-width: none;
	margin: 0;
	padding-left: var(--column-gap);
	padding-right: var(--column-gap);
	box-sizing: border-box;
	min-height: 0;
}

.site-main-wrap {
	flex: 1;
	width: 100%;
	margin: 0;
	padding: var(--space-md) 0;
}

.layout-two-col {
	display: flex;
	flex-wrap: nowrap;
	gap: var(--column-gap);
	align-items: flex-start;
	justify-content: center;
	border: none;
}

.layout-primary {
	flex: 1 1 auto;
	min-width: 0;
	max-width: min(100%, var(--article-column-max));
	padding: 0;
	border: none;
}

.layout-secondary {
	flex: 0 0 var(--widget-sidebar-width);
	width: var(--widget-sidebar-width);
	max-width: 100%;
	padding: 0;
}

.widget-area--panel {
	background: var(--paper);
	border-radius: 0;
	box-shadow: var(--shadow-card);
	padding: var(--space-md);
	position: sticky;
	top: var(--space-sm);
}

.archive-header {
	margin-bottom: var(--space-lg);
	padding-bottom: var(--space-md);
	border-bottom: 1px solid var(--line);
}

.archive-header--compact {
	margin-bottom: var(--space-md);
	padding-bottom: var(--space-sm);
}

.not-found-actions {
	margin-top: var(--space-md);
}

@media (max-width: 960px) {
	.widget-area--panel {
		position: relative;
		top: auto;
		width: 100%;
	}
}

@media (max-width: 782px) {
	.layout-two-col {
		flex-wrap: wrap;
	}

	.site {
		flex-direction: column;
	}

	.site-sidebar {
		position: relative;
		top: auto;
		width: 100%;
		flex: none;
		min-height: 0;
		max-height: none;
		overflow-y: visible;
		align-self: stretch;
	}

	.admin-bar .site-sidebar {
		top: auto;
		min-height: 0;
		max-height: none;
	}

	.site-sidebar__inner {
		padding: 1rem var(--site-gutter) 1.125rem;
	}

	.layout-secondary {
		flex: 1 1 100%;
		min-width: 100%;
	}

	/* 单列时不再按「三栏并排」公式限制中间栏宽度 */
	.layout-primary {
		max-width: min(100%, 58rem);
	}
}

/* --------------------------------------------------------------------------
   文章列表 — 白卡片 + 左图右文
   -------------------------------------------------------------------------- */
.post-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--space-md);
}

.post-list__item {
	padding: 0;
	border: none;
}

.post-list__card {
	display: flex;
	flex-direction: column;
	background: var(--paper);
	border-radius: 0;
	box-shadow: var(--shadow-card);
	overflow: hidden;
	border: 1px solid rgba(17, 24, 39, 0.04);
}

.post-list__media {
	position: relative;
	flex: 0 0 auto;
	display: block;
	overflow: hidden;
	background: var(--paper-subtle);
	text-decoration: none;
	color: inherit;
}

/* 置顶文章：缩略图左上角「推荐」角标（与参考图一致：青绿底、白字、贴顶左） */
.post-list__ribbon {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	display: inline-block;
	padding: 0.22rem 0.5rem;
	font-size: 0.6875rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.06em;
	color: #fff;
	background: var(--teal);
	border-radius: 0;
	pointer-events: none;
	box-shadow: none;
}

/* 无特色图时角标排在正文区顶部左侧 */
.post-list__ribbon--in-body {
	position: static;
	align-self: flex-start;
	margin-bottom: var(--space-xs);
	pointer-events: auto;
}

.post-list__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: var(--post-list-thumb-aspect);
	object-fit: cover;
	border-radius: 0;
}

.post-list__body {
	flex: 1;
	padding: var(--space-md);
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: var(--space-xs);
	min-width: 0;
}

.post-list__title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 400;
	line-height: 1.45;
	letter-spacing: 0.02em;
}

.post-list__title a {
	color: var(--ink);
	text-decoration: none;
}

.post-list__title a:hover {
	color: var(--teal);
	text-decoration: none;
}

.post-list__excerpt {
	margin: 0;
	font-size: 0.9375rem;
	color: var(--ink-muted);
	line-height: 1.65;
}

.post-list__foot {
	margin-top: auto;
	padding-top: var(--space-sm);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: var(--space-xs);
	font-size: 0.8125rem;
	color: var(--ink-faint);
}

.post-list__date {
	color: var(--ink-faint);
}

@media (min-width: 640px) {
	.post-list__card {
		flex-direction: row;
		align-items: stretch;
	}

	/* 左栏与卡片等高；缩略图绝对定位 + object-fit:cover 裁切填满，不变形、不留底空 */
	.post-list__media {
		flex: 0 0 var(--post-list-thumb-col);
		width: var(--post-list-thumb-col);
		max-width: var(--post-list-thumb-max);
		align-self: stretch;
		min-height: 0;
		flex-shrink: 0;
	}

	.post-list__media img {
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;
		aspect-ratio: unset;
		object-fit: cover;
		object-position: center;
	}
}

/* 分页：外层 .posts-pagination 避免与 WP 的 nav 嵌套；内线不设顶部分割线 */
.posts-pagination {
	margin-top: var(--space-md);
}

.posts-pagination .pagination {
	margin-top: 0;
}

.pagination {
	margin-top: var(--space-md);
	padding-top: 0;
	border-top: none;
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-sm);
	align-items: center;
	justify-content: space-between;
}

.pagination .page-numbers {
	font-size: 0.875rem;
	color: var(--ink-muted);
	padding: 0.35em 0.65em;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
	text-decoration: none;
}

.pagination a.page-numbers:hover {
	color: var(--teal);
	border-color: var(--teal-soft);
	background: var(--accent-soft);
	text-decoration: none;
}

.pagination .page-numbers.current {
	color: #fff;
	border-color: var(--teal);
	background: var(--teal);
}

/* --------------------------------------------------------------------------
   单篇正文（single）
   -------------------------------------------------------------------------- */
.layout-primary > article {
	background: var(--paper);
	border-radius: 0;
	box-shadow: var(--shadow-card);
	padding: var(--space-md);
	border: 1px solid rgba(17, 24, 39, 0.04);
}

.entry-header {
	margin-bottom: var(--space-md);
}

.entry-title {
	margin: 0 0 var(--space-xs);
	font-size: 1.6875rem;
	font-weight: 400;
	letter-spacing: 0.02em;
	line-height: 1.45;
	color: var(--ink);
}

.entry-meta {
	font-size: 0.75rem;
	color: var(--ink-faint);
	letter-spacing: 0.04em;
}

.entry-content {
	max-width: 100%;
}

.entry-content p,
.entry-content li {
	text-align: justify;
	text-justify: inter-ideograph;
}

.entry-content h1,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	font-weight: 400;
	text-align: start;
	text-justify: auto;
}

/* 二级标题：左侧竖杠 + 标题文案（与正文区 h2 一致，不含文章页大标题 .entry-title） */
.entry-content h2 {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 0.85rem;
	margin-top: var(--space-lg);
	margin-bottom: var(--space-md);
	font-size: 1.3125rem;
	font-weight: 400;
	line-height: 1.45;
	letter-spacing: 0.02em;
	color: var(--ink);
	text-align: start;
	text-justify: auto;
}

.entry-content h2:first-child {
	margin-top: 0;
}

.entry-content h2::before {
	content: "";
	flex: 0 0 var(--entry-h2-bar-width);
	width: var(--entry-h2-bar-width);
	min-width: var(--entry-h2-bar-width);
	background: var(--entry-h2-bar);
	border-radius: 1px;
}

.entry-content pre,
.entry-content .wp-block-code,
.entry-content table {
	text-align: start;
	text-justify: auto;
}

.entry-content figure {
	text-justify: auto;
	border-radius: var(--radius-image);
	overflow: hidden;
}

/* 默认 figure 靠左；居中/左右对齐由编辑器 class 单独处理 */
.entry-content figure:not(.aligncenter):not(.alignleft):not(.alignright):not(.has-text-align-center):not(.has-text-align-right) {
	text-align: start;
}

.entry-content figure.aligncenter,
.entry-content figure.has-text-align-center,
.entry-content .wp-block-image.aligncenter,
.entry-content .wp-block-image.has-text-align-center {
	text-align: center;
	margin-left: auto;
	margin-right: auto;
}

.entry-content figure.alignright,
.entry-content figure.has-text-align-right,
.entry-content .wp-block-image.alignright,
.entry-content .wp-block-image.has-text-align-right {
	text-align: end;
	margin-left: auto;
	margin-right: 0;
}

.entry-content img {
	border-radius: var(--radius-image);
}

.entry-content figure img {
	border-radius: 0;
}

.entry-content img.emoji,
.entry-content img.wp-smiley {
	border-radius: 0;
}

.entry-content p:first-child {
	margin-top: 0;
}

.entry-content p:last-child {
	margin-bottom: 0;
}

.entry-content .alignwide {
	max-width: min(70rem, 96vw);
	margin-left: auto;
	margin-right: auto;
	width: 100%;
}

.entry-content .alignfull {
	max-width: none;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	position: relative;
}

/* 单篇正文下方：标签 */
.entry-tags {
	margin-top: var(--space-md);
	padding-top: var(--space-md);
	border-top: 1px solid var(--line);
	font-size: 0.875rem;
	line-height: 1.65;
}

.entry-tags__label {
	display: inline-block;
	margin-right: 0.35rem;
	color: var(--ink-faint);
	font-weight: 400;
	vertical-align: middle;
}

.entry-tags a {
	display: inline-block;
	margin: 0.2rem 0.35rem 0.15rem 0;
	padding: 0.2rem 0.55rem;
	border: 1px solid var(--line);
	border-radius: 0;
	color: var(--ink-muted);
	text-decoration: none;
	font-size: 0.8125rem;
	vertical-align: middle;
	transition: color 0.15s ease, border-color 0.15s ease;
}

.entry-tags a:hover {
	color: var(--teal);
	border-color: var(--teal-soft);
	text-decoration: none;
}

.entry-footer {
	margin-top: var(--space-lg);
	padding-top: var(--space-md);
	border-top: 1px solid var(--line);
	font-size: 0.8125rem;
	color: var(--ink-muted);
}

.related-reading {
	margin-top: var(--space-lg);
	margin-bottom: 0;
	padding: var(--space-md);
	max-width: 100%;
	background: var(--paper);
	border-radius: 0;
	box-shadow: var(--shadow-card);
	border: 1px solid rgba(17, 24, 39, 0.04);
	overflow: hidden;
}

.related-reading__title {
	margin: 0 0 var(--space-sm);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--teal);
}

.related-reading__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	/* 上行距紧凑，列距略宽便于两列区分 */
	gap: var(--space-xs) var(--space-md);
	align-items: start;
}

.related-reading__item {
	margin: 0;
	padding: 0;
	border: none;
	font-size: 0.8125rem;
	line-height: 1.4;
	min-width: 0;
}

.related-reading__item a {
	display: block;
	color: var(--ink-muted);
	text-decoration: none;
	overflow-wrap: break-word;
	word-break: break-word;
}

.related-reading__item a:hover {
	color: var(--teal);
	text-decoration: underline;
	text-underline-offset: 0.15em;
}

/* 评论区：与上方「相关阅读」间距收紧（原内联 space-xl 过大） */
.comments-area {
	margin-top: var(--space-md);
	padding-top: var(--space-sm);
	border-top: 1px solid var(--line);
	max-width: 100%;
}

#comments .comment-reply-title,
#comments #reply-title {
	margin-top: 0;
}

/* --------------------------------------------------------------------------
   右侧小工具
   -------------------------------------------------------------------------- */
.widget-area .widget {
	margin-bottom: var(--space-lg);
	padding-bottom: var(--space-md);
	border-bottom: 1px solid var(--line);
	font-size: 0.8125rem;
}

.widget-area .widget:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.widget-title {
	margin: 0 0 var(--space-sm);
	font-size: 1.0625rem;
	font-weight: 400;
	letter-spacing: 0.03em;
	line-height: 1.35;
	color: var(--teal);
	text-transform: none;
}

.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget li {
	position: relative;
	padding: var(--space-xs) 0 var(--space-xs) 1rem;
	border-bottom: 1px solid var(--line);
	font-size: 0.8125rem;
	line-height: 1.5;
}

.widget li::before {
	content: "";
	position: absolute;
	left: 0.15rem;
	top: 0.85em;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--teal);
	opacity: 0.85;
}

.widget li:last-child {
	border-bottom: none;
}

.widget a {
	color: var(--ink-muted);
	text-decoration: none;
}

.widget a:hover {
	color: var(--teal);
	text-decoration: underline;
}

.widget_search .search-form {
	display: flex;
	flex-direction: column;
	gap: var(--space-xs);
	margin-top: var(--space-xs);
}

.widget_search input[type="search"] {
	width: 100%;
	padding: 0.55em 0.75em;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper-subtle);
	font-family: inherit;
	font-size: 0.875rem;
}

.widget_search input[type="search"]::placeholder {
	color: var(--ink-faint);
}

.widget_search input[type="submit"] {
	padding: 0.5em 0.9em;
	border: 1px solid var(--teal);
	border-radius: var(--radius);
	background: var(--teal);
	color: #fff;
	font-size: 0.75rem;
	letter-spacing: 0.06em;
	cursor: pointer;
	font-family: inherit;
}

.widget_search input[type="submit"]:hover {
	opacity: 0.92;
}

.tagcloud a,
.widget_tag_cloud a {
	display: inline-block;
	margin: 0 0.35rem 0.35rem 0;
	padding: 0.2rem 0.55rem;
	border: 1px solid var(--line);
	border-radius: 0;
	font-size: 0.75rem !important;
	color: var(--ink-muted);
	background: var(--paper);
	text-decoration: none;
}

.tagcloud a:hover,
.widget_tag_cloud a:hover {
	border-color: var(--teal-soft);
	color: var(--teal);
	text-decoration: none;
}

/* --------------------------------------------------------------------------
   页脚
   -------------------------------------------------------------------------- */
.site-footer {
	margin-top: auto;
	padding: 0 var(--column-gap) var(--space-sm);
	border-top: none;
	text-align: center;
	font-size: 0.75rem;
	line-height: 1.35;
	color: var(--ink-faint);
	letter-spacing: 0.04em;
	background: var(--page-bg);
}

/* 分割线画在左右留白内侧，与 .site-inner 主区左右对齐，不占满整段 site-content */
.site-footer::before {
	content: "";
	display: block;
	border-top: 1px solid var(--line);
	margin-bottom: var(--space-sm);
}

.site-footer p {
	margin: 0;
}

.site-footer a {
	color: var(--ink-muted);
	text-decoration: none;
}

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

/* --------------------------------------------------------------------------
   空状态与无障碍
   -------------------------------------------------------------------------- */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	word-wrap: normal !important;
}

.skip-link:focus {
	clip: auto !important;
	clip-path: none;
	height: auto;
	left: 6px;
	top: 6px;
	width: auto;
	z-index: 100000;
	padding: 0.5em 1em;
	background: var(--navy);
	color: #fff;
}

/* 键盘焦点：侧栏、分页、表单 */
.site-sidebar a:focus-visible,
.main-navigation a:focus-visible,
.site-sidebar-social a:focus-visible,
.pagination a.page-numbers:focus-visible,
.post-list__title a:focus-visible,
.post-list__media:focus-visible,
.widget a:focus-visible,
#respond input:focus-visible,
#respond textarea:focus-visible,
#respond input#submit:focus-visible,
.entry-content a:focus-visible,
.entry-tags a:focus-visible {
	outline: 2px solid var(--teal);
	outline-offset: 2px;
}

.alignnone {
	display: block;
	margin: var(--space-sm) 0;
}

.aligncenter {
	display: block;
	margin: var(--space-sm) auto;
}

.entry-content img.aligncenter {
	margin-left: auto;
	margin-right: auto;
}

.wp-caption-text {
	font-size: 0.8125rem;
	color: var(--ink-muted);
	margin-top: var(--space-xs);
}

.page-links {
	margin-top: var(--space-md);
	font-size: 0.875rem;
	color: var(--ink-muted);
}

.comments-area .comment-list li {
	padding: var(--space-sm) 0;
	border-bottom: 1px solid var(--line);
	font-size: 0.9375rem;
}

.comments-area .reply {
	font-size: 0.8125rem;
	margin-top: var(--space-xs);
}

/* 评论表单：显示名称、邮箱、网站同一行（其余字段仍全宽） */
#respond .comment-form {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: var(--space-sm);
	row-gap: var(--space-md);
	align-items: start;
}

#respond .comment-form > * {
	grid-column: 1 / -1;
	margin: 0;
}

#respond .comment-form > .comment-form-author {
	grid-column: 1;
}

#respond .comment-form > .comment-form-email {
	grid-column: 2;
}

#respond .comment-form > .comment-form-url {
	grid-column: 3;
}

@media (max-width: 640px) {
	#respond .comment-form > .comment-form-author,
	#respond .comment-form > .comment-form-email,
	#respond .comment-form > .comment-form-url {
		grid-column: 1 / -1;
	}
}

#respond label {
	display: block;
	font-size: 0.8125rem;
	color: var(--ink-muted);
	margin-bottom: var(--space-xs);
}

#respond input[type="text"],
#respond input[type="email"],
#respond input[type="url"],
#respond textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.5em 0.75em;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
	font-family: inherit;
	font-size: 0.9375rem;
}

#respond input#submit {
	padding: 0.5em 1.25em;
	border: 1px solid var(--teal);
	border-radius: var(--radius);
	background: var(--teal);
	color: #fff;
	font-size: 0.8125rem;
	cursor: pointer;
	font-family: inherit;
	margin-top: var(--space-sm);
}

#respond input#submit:hover {
	opacity: 0.92;
}
