/* =========================================================================
   Nassch 纳思笔记 · 主样式
   设计系统：亮/暗双主题（CSS 变量）· 响应式 · 阅读优先
   ========================================================================= */

/* ----- 1. 设计令牌（Design Tokens） ----- */

:root {
	/* 品牌色 */
	--accent: #4f6bf5;
	--accent-strong: #3d56d8;
	--accent-soft: rgba(79, 107, 245, 0.09);
	--accent-soft-2: rgba(79, 107, 245, 0.16);

	/* 背景 */
	--bg: #f5f6fa;
	--bg-card: #ffffff;
	--bg-header: rgba(255, 255, 255, 0.88);
	--bg-code: #f6f8fa;
	--bg-code-inline: rgba(79, 107, 245, 0.08);

	/* 文字 */
	--text: #1f2430;
	--text-2: #5a6472;
	--text-3: #98a1b0;

	/* 边框与阴影 */
	--border: #e6e9f0;
	--border-strong: #d5dae4;
	--shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
	--shadow-md: 0 4px 16px rgba(16, 24, 40, 0.07);

	/* 圆角 */
	--radius: 12px;
	--radius-sm: 8px;

	/* 字体 */
	--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
	--font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", "JetBrains Mono", monospace;

	/* 布局 */
	--container: 1160px;
	--content-w: 100%;
}

[data-theme="dark"] {
	--accent: #6b85ff;
	--accent-strong: #8298ff;
	--accent-soft: rgba(107, 133, 255, 0.12);
	--accent-soft-2: rgba(107, 133, 255, 0.2);

	--bg: #0f1219;
	--bg-card: #171b25;
	--bg-header: rgba(18, 22, 31, 0.9);
	--bg-code: #161a23;
	--bg-code-inline: rgba(107, 133, 255, 0.13);

	--text: #e6e9f0;
	--text-2: #a6aebe;
	--text-3: #6d7688;

	--border: #262c3a;
	--border-strong: #333a4b;
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
	--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* ----- 2. 基础 Reset ----- */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 90px;
}

body {
	margin: 0;
	font-family: var(--font-sans);
	font-size: 16px;
	line-height: 1.75;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	transition: background-color 0.25s ease, color 0.25s ease;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--accent);
	text-decoration: none;
	transition: color 0.15s ease;
}

a:hover {
	color: var(--accent-strong);
}

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

.skip-link {
	position: absolute;
	left: -9999px;
	z-index: 999;
}

.skip-link:focus {
	left: 16px;
	top: 16px;
	background: var(--accent);
	color: #fff;
	padding: 8px 16px;
	border-radius: var(--radius-sm);
}

/* ----- 3. 布局骨架 ----- */

.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
}

.layout-main {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 32px;
	align-items: start;
	padding: 32px 24px 64px;
}

.content-area {
	min-width: 0;
	max-width: 800px;
}

.content-narrow {
	max-width: 780px;
}

/* ----- 4. 顶部导航 ----- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--bg-header);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
}

.header-inner {
	display: flex;
	align-items: center;
	gap: 16px;
	height: 64px;
}

/* 品牌 */
.site-branding {
	flex-shrink: 0;
}

.brand-link {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
	color: var(--text);
}

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

.brand-zh {
	font-size: 19px;
	font-weight: 800;
	letter-spacing: 2px;
	color: var(--text);
	line-height: 1.25;
}

.brand-en {
	font-size: 10.5px;
	font-weight: 600;
	color: var(--text-3);
	letter-spacing: 3.5px;
}

.custom-logo-link img {
	max-height: 44px;
	width: auto;
}

/* 导航：紧贴品牌名称（不居中） */
.main-nav {
	margin-left: 8px;
	min-width: 0;
}

.nav-menu {
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nav-menu > li {
	position: relative;
}

.nav-menu a {
	display: block;
	padding: 8px 14px;
	border-radius: var(--radius-sm);
	color: var(--text-2);
	font-size: 15px;
	font-weight: 500;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
	color: var(--accent);
	background: var(--accent-soft);
}

/* 二级菜单 */
.nav-menu .sub-menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	min-width: 180px;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-md);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: all 0.18s ease;
}

.nav-menu > li:hover > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nav-menu .sub-menu a {
	padding: 8px 12px;
	font-size: 14px;
}

/* 头部操作按钮 */
.header-actions {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}

.icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border: none;
	border-radius: 10px;
	background: transparent;
	color: var(--text-2);
	cursor: pointer;
	transition: all 0.15s ease;
}

.icon-btn:hover {
	background: var(--accent-soft);
	color: var(--accent);
}

.icon-btn:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

/* 主题切换图标状态 */
.ico-sun {
	display: none;
}

[data-theme="dark"] .ico-moon {
	display: none;
}

[data-theme="dark"] .ico-sun {
	display: block;
}

.nav-toggle {
	display: none;
}

/* 头部搜索抽屉 */
.header-search {
	display: none;
	border-top: 1px solid var(--border);
	padding: 14px 0;
}

.header-search.is-open {
	display: block;
	animation: slide-down 0.2s ease;
}

@keyframes slide-down {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ----- 5. 首页 Hero ----- */

.hero {
	padding: 72px 0 48px;
	text-align: center;
	background:
		radial-gradient(600px 200px at 20% 0%, var(--accent-soft), transparent 70%),
		radial-gradient(600px 200px at 80% 0%, var(--accent-soft), transparent 70%);
}

.hero-title {
	margin: 0 0 12px;
	font-size: clamp(28px, 4.5vw, 42px);
	font-weight: 800;
	letter-spacing: 1px;
	color: var(--text);
}

.hero-sub {
	margin: 0 auto 28px;
	max-width: 620px;
	font-size: 16px;
	color: var(--text-2);
}

.hero-search {
	max-width: 480px;
	margin: 0 auto;
}

/* ----- 6. 搜索表单 ----- */

.search-form {
	display: flex;
	gap: 8px;
}

.search-field {
	flex: 1;
	min-width: 0;
	height: 44px;
	padding: 0 16px;
	border: 1px solid var(--border-strong);
	border-radius: 10px;
	background: var(--bg-card);
	color: var(--text);
	font-size: 15px;
	font-family: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-field:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft-2);
}

.search-field::placeholder {
	color: var(--text-3);
}

.search-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 10px;
	background: var(--accent);
	color: #fff;
	cursor: pointer;
	transition: background 0.15s ease;
	flex-shrink: 0;
}

.search-submit:hover {
	background: var(--accent-strong);
}

/* ----- 7. 页头（列表页标题） ----- */

.page-header,
.archive-header {
	margin-bottom: 28px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--border);
}

.page-title {
	margin: 0;
	font-size: 26px;
	font-weight: 700;
	color: var(--text);
}

.archive-kicker {
	display: inline-block;
	margin-bottom: 8px;
	padding: 3px 12px;
	border-radius: 100px;
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1px;
}

.archive-description {
	margin: 12px 0 0;
	color: var(--text-2);
	font-size: 15px;
}

.search-again {
	max-width: 480px;
	margin-top: 16px;
}

/* ----- 8. 文章卡片 ----- */

.post-list {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.post-card {
	display: flex;
	gap: 0;
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.post-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
	border-color: var(--border-strong);
}

.post-card .card-thumb {
	flex-shrink: 0;
	width: 240px;
	background: var(--bg-code);
}

.post-card .card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card-body {
	flex: 1;
	min-width: 0;
	padding: 24px 28px;
	display: flex;
	flex-direction: column;
}

.card-cat {
	display: inline-block;
	align-self: flex-start;
	margin-bottom: 10px;
	padding: 2px 10px;
	border-radius: 100px;
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 13px;
	font-weight: 600;
}

.card-title {
	margin: 0 0 8px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
}

.card-title a {
	color: var(--text);
}

.card-title a:hover {
	color: var(--accent);
}

.card-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
	font-size: 13px;
	color: var(--text-3);
}

.card-meta a {
	color: var(--text-3);
}

.card-meta a:hover {
	color: var(--accent);
}

.meta-dot {
	color: var(--text-3);
}

.card-excerpt {
	flex: 1;
	font-size: 15px;
	color: var(--text-2);
	overflow: hidden;
}

.card-excerpt p {
	margin: 0;
}

.card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 16px;
}

.card-tags {
	font-size: 13px;
	color: var(--text-3);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.card-tags a {
	color: var(--text-3);
	margin-right: 8px;
}

.card-tags a::before {
	content: "# ";
	color: var(--accent);
}

.card-more {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--accent);
}

.card-more:hover {
	color: var(--accent-strong);
}

.card-more svg {
	transition: transform 0.15s ease;
}

.card-more:hover svg {
	transform: translateX(3px);
}

/* 无特色图的卡片 */
.post-card:not(:has(.card-thumb)) .card-body {
	padding: 26px 28px;
}

/* ----- 9. 侧栏 ----- */

.sidebar {
	position: sticky;
	top: 88px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.widget {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 20px 22px;
	box-shadow: var(--shadow-sm);
}

.widget-title {
	margin: 0 0 14px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--border);
	font-size: 15px;
	font-weight: 700;
	color: var(--text);
}

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

.widget ul li {
	padding: 7px 0;
	font-size: 14px;
	color: var(--text-2);
	border-bottom: 1px dashed var(--border);
}

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

.widget ul li a {
	color: var(--text-2);
}

.widget ul li a:hover {
	color: var(--accent);
}

/* WP 分类/归档计数 */
.widget ul li,
.widget_archive ul li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 8px;
}

.widget ul li a {
	flex: 1;
}

/* 标签云 */
.tag-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tag-cloud a {
	display: inline-block;
	padding: 3px 12px;
	border-radius: 100px;
	background: var(--accent-soft);
	color: var(--text-2);
	font-size: 13px !important;
	transition: all 0.15s ease;
}

.tag-cloud a:hover {
	background: var(--accent);
	color: #fff;
}

.widget-rss-tip {
	margin: 0 0 10px;
	font-size: 13px;
	color: var(--text-3);
}

/* ----- 10. 按钮 ----- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 10px 22px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s ease;
	border: 1px solid transparent;
}

.btn-primary {
	background: var(--accent);
	color: #fff;
}

.btn-primary:hover {
	background: var(--accent-strong);
	color: #fff;
}

.btn-outline {
	border-color: var(--border-strong);
	color: var(--text-2);
	background: transparent;
}

.btn-outline:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.btn-block {
	width: 100%;
}

/* ----- 11. 文章页 ----- */

.breadcrumb {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
	font-size: 13px;
	color: var(--text-3);
}

.breadcrumb a {
	color: var(--text-3);
}

.breadcrumb a:hover {
	color: var(--accent);
}

.crumb-sep {
	color: var(--text-3);
}

.crumb-current {
	color: var(--text-2);
	max-width: 320px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.post-single {
	background: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 36px 40px;
	box-shadow: var(--shadow-sm);
}

.single-header {
	margin-bottom: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--border);
}

.single-title {
	margin: 10px 0 16px;
	font-size: clamp(22px, 3.2vw, 30px);
	font-weight: 800;
	line-height: 1.4;
	color: var(--text);
}

.single-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 14px;
	color: var(--text-3);
}

.single-meta a {
	color: var(--text-3);
}

.single-meta a:hover {
	color: var(--accent);
}

.meta-avatar {
	border-radius: 50%;
	margin-right: 2px;
}

.meta-author {
	color: var(--text-2);
	font-weight: 500;
}

.single-thumb {
	margin: 0 0 28px;
	border-radius: var(--radius);
	overflow: hidden;
}

.single-thumb img {
	width: 100%;
}

/* ----- 12. 文章正文排版（阅读核心） ----- */

.single-content {
	font-size: 16px;
	line-height: 1.9;
	color: var(--text);
	overflow-wrap: break-word;
}

.single-content > *:first-child {
	margin-top: 0;
}

.single-content h2,
.single-content h3,
.single-content h4 {
	color: var(--text);
	font-weight: 700;
	line-height: 1.5;
	margin: 1.8em 0 0.8em;
}

.single-content h2 {
	font-size: 23px;
	padding-bottom: 0.4em;
	border-bottom: 1px solid var(--border);
	position: relative;
}

.single-content h2::before {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 48px;
	height: 3px;
	border-radius: 3px;
	background: var(--accent);
}

.single-content h3 {
	font-size: 19px;
}

.single-content h4 {
	font-size: 17px;
}

.single-content p {
	margin: 0 0 1.2em;
}

.single-content a {
	border-bottom: 1px solid var(--accent-soft-2);
}

.single-content a:hover {
	border-bottom-color: var(--accent);
}

/* 引用 */
.single-content blockquote {
	margin: 1.5em 0;
	padding: 16px 22px;
	border-left: 4px solid var(--accent);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	background: var(--accent-soft);
	color: var(--text-2);
}

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

/* 列表 */
.single-content ul,
.single-content ol {
	margin: 0 0 1.2em;
	padding-left: 1.6em;
}

.single-content li {
	margin-bottom: 0.4em;
}

.single-content li::marker {
	color: var(--accent);
}

/* 行内代码 */
.single-content code {
	font-family: var(--font-mono);
	font-size: 0.88em;
	padding: 2px 7px;
	border-radius: 6px;
	background: var(--bg-code-inline);
	color: var(--accent);
	word-break: break-word;
}

/* 代码块（配合 highlight.js） */
.single-content pre {
	position: relative;
	margin: 1.6em 0;
	padding: 18px 20px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--bg-code);
	overflow-x: auto;
	line-height: 1.65;
}

.single-content pre code {
	display: block;
	padding: 0;
	background: transparent;
	color: inherit;
	font-size: 14px;
	border-radius: 0;
}

/* 表格 */
.single-content table {
	width: 100%;
	margin: 1.5em 0;
	border-collapse: collapse;
	font-size: 14.5px;
	border-radius: var(--radius-sm);
	overflow: hidden;
	border: 1px solid var(--border);
}

.single-content th,
.single-content td {
	padding: 10px 14px;
	border-bottom: 1px solid var(--border);
	text-align: left;
}

.single-content th {
	background: var(--accent-soft);
	color: var(--text);
	font-weight: 700;
}

.single-content tr:last-child td {
	border-bottom: none;
}

.single-content tr:hover td {
	background: var(--accent-soft);
}

/* 图片 */
.single-content img {
	border-radius: var(--radius-sm);
	margin: 1.2em auto;
}

.single-content figcaption,
.single-content .wp-caption-text {
	margin-top: 8px;
	text-align: center;
	font-size: 13px;
	color: var(--text-3);
}

/* 分隔线 */
.single-content hr {
	margin: 2.5em 0;
	border: none;
	border-top: 1px dashed var(--border-strong);
}

/* 文章内分页 */
.page-links {
	margin: 1.5em 0;
}

/* 标签 & 更新时间 */
.single-tags {
	margin: 28px 0 0;
	padding-top: 20px;
	border-top: 1px solid var(--border);
	font-size: 14px;
	color: var(--text-3);
}

.tags-label {
	margin-right: 4px;
}

.single-tags a {
	display: inline-block;
	margin: 0 8px 8px 0;
	padding: 3px 12px;
	border-radius: 100px;
	background: var(--accent-soft);
	color: var(--text-2);
	font-size: 13px;
}

.single-tags a:hover {
	background: var(--accent);
	color: #fff;
}

.single-updated {
	margin: 12px 0 0;
	font-size: 13px;
	color: var(--text-3);
}

/* ----- 13. 文章目录 TOC（JS 生成） ----- */

.toc {
	margin: 0 0 28px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--bg-code);
	overflow: hidden;
}

.toc-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 12px 18px;
	border: none;
	background: transparent;
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	color: var(--text);
	cursor: pointer;
	letter-spacing: 1px;
}

.toc-head:hover {
	color: var(--accent);
}

.toc-arrow {
	transition: transform 0.2s ease;
	color: var(--text-3);
}

.toc.is-collapsed .toc-arrow {
	transform: rotate(-90deg);
}

.toc-body {
	margin: 0;
	padding: 4px 18px 14px;
	list-style: none;
	border-top: 1px solid var(--border);
}

.toc.is-collapsed .toc-body {
	display: none;
}

.toc-body li {
	margin: 0;
}

.toc-body a {
	display: block;
	padding: 5px 0;
	font-size: 14px;
	color: var(--text-2);
	border-bottom: none;
}

.toc-body a:hover {
	color: var(--accent);
}

.toc-body .toc-lvl-3 {
	padding-left: 20px;
	font-size: 13.5px;
}

.toc-body a.is-active {
	color: var(--accent);
	font-weight: 600;
}

/* ----- 14. 上下篇 & 相关笔记 ----- */

.post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 32px;
}

.post-nav-item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px 18px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--bg-code);
	min-width: 0;
}

.post-nav-item a {
	color: var(--text);
	font-size: 15px;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	border-bottom: none;
}

.post-nav-item a:hover {
	color: var(--accent);
}

.post-nav-label {
	font-size: 12px;
	color: var(--text-3);
	letter-spacing: 1px;
}

.post-nav-next {
	text-align: right;
}

.related-posts {
	margin-top: 36px;
}

.related-title {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 700;
	color: var(--text);
}

.related-grid {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.related-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--bg-card);
	border-bottom: none !important;
}

.related-item:hover {
	border-color: var(--accent);
}

.related-date {
	flex-shrink: 0;
	padding: 2px 10px;
	border-radius: 100px;
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 12.5px;
	font-weight: 600;
}

.related-name {
	color: var(--text-2);
	font-size: 14.5px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.related-item:hover .related-name {
	color: var(--accent);
}

/* ----- 15. 评论区 ----- */

.comments-area {
	margin-top: 44px;
	padding-top: 32px;
	border-top: 1px solid var(--border);
}

.comments-title,
.comment-reply-title {
	margin: 0 0 20px;
	font-size: 20px;
	font-weight: 700;
	color: var(--text);
}

.comment-list {
	margin: 0 0 24px;
	padding: 0;
	list-style: none;
}

.comment-list .comment,
.comment-list .pingback {
	margin-bottom: 20px;
	padding: 18px 20px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--bg-card);
}

.comment-list .children {
	margin: 16px 0 0 0;
	padding: 0 0 0 24px;
	list-style: none;
}

.comment-list .children .comment {
	border-style: dashed;
	background: transparent;
}

.comment-body {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.comment-meta {
	display: flex;
	align-items: center;
	gap: 10px;
}

.comment-meta img {
	border-radius: 50%;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	font-weight: 600;
	color: var(--text);
}

.comment-author img {
	border-radius: 50%;
}

.comment-metadata {
	font-size: 12.5px;
	color: var(--text-3);
}

.comment-metadata a {
	color: var(--text-3);
}

.comment-content {
	font-size: 15px;
	color: var(--text-2);
}

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

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

.reply {
	font-size: 13px;
}

.reply a {
	color: var(--accent);
	font-weight: 600;
}

.comment-awaiting-moderation {
	margin: 6px 0 0;
	padding: 6px 12px;
	border-radius: 6px;
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 13px;
}

.no-comments {
	color: var(--text-3);
}

.comment-form-note {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 20px;
	padding: 12px 16px;
	border-radius: var(--radius-sm);
	background: var(--accent-soft);
	color: var(--accent);
	font-size: 13.5px;
}

.comment-notes {
	font-size: 13.5px;
	color: var(--text-3);
}

/* 评论表单 */
.comment-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.comment-form-comment,
.comment-form-author,
.comment-form-email,
.comment-form-url,
.comment-form-cookies-consent,
.form-submit,
.comment-notes {
	grid-column: 1 / -1;
}

.comment-form-author,
.comment-form-email {
	grid-column: auto;
}

.comment-form label {
	display: block;
	margin-bottom: 6px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--text-2);
}

.required {
	color: #e5484d;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--border-strong);
	border-radius: 10px;
	background: var(--bg-card);
	color: var(--text);
	font-size: 14.5px;
	font-family: inherit;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.comment-form textarea {
	resize: vertical;
	min-height: 120px;
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft-2);
}

.comment-form-cookies-consent label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 400;
}

.comment-form input[type="checkbox"] {
	accent-color: var(--accent);
	width: 16px;
	height: 16px;
}

.form-submit .submit {
	padding: 11px 28px;
	border: none;
	border-radius: 10px;
	background: var(--accent);
	color: #fff;
	font-size: 14.5px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: background 0.15s ease;
}

.form-submit .submit:hover {
	background: var(--accent-strong);
}

/* ----- 16. 分页 ----- */

.pagination,
.navigation.pagination {
	margin-top: 40px;
}

.nav-links {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}

.nav-links a,
.nav-links .current,
.nav-links .dots {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--border);
	border-radius: 10px;
	background: var(--bg-card);
	color: var(--text-2);
	font-size: 14px;
}

.nav-links a:hover {
	border-color: var(--accent);
	color: var(--accent);
}

.nav-links .current {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
	font-weight: 600;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
}

/* ----- 17. 关于页 & 友链页 ----- */

.about-card {
	margin: 0 0 32px;
	padding: 36px;
	border-radius: var(--radius);
	text-align: center;
	background:
		radial-gradient(400px 160px at 50% 0%, var(--accent-soft), transparent 75%),
		var(--bg-card);
	border: 1px solid var(--border);
}

.about-brand {
	justify-content: center;
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.about-card .brand-zh {
	font-size: 26px;
	letter-spacing: 3px;
}

.about-card .brand-en {
	font-size: 12px;
	letter-spacing: 4px;
}

.about-slogan {
	margin: 16px 0 6px;
	font-size: 18px;
	font-weight: 700;
	color: var(--text);
}

.about-desc {
	margin: 0;
	font-size: 14.5px;
	color: var(--text-2);
}

.about-stats {
	display: flex;
	justify-content: center;
	gap: 40px;
	margin-top: 26px;
	padding-top: 22px;
	border-top: 1px solid var(--border);
}

.stat-item {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.stat-num {
	font-size: 24px;
	font-weight: 800;
	color: var(--accent);
}

.stat-label {
	font-size: 13px;
	color: var(--text-3);
}

.guestbook-title {
	margin: 44px 0 20px;
	padding-top: 32px;
	border-top: 1px solid var(--border);
	font-size: 20px;
	font-weight: 700;
}

.link-group {
	margin-top: 28px;
}

.link-group-title {
	margin: 0 0 14px;
	font-size: 17px;
	font-weight: 700;
	color: var(--text);
}

.link-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
}

.link-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 18px;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--bg-card);
	transition: all 0.15s ease;
}

.link-card:hover {
	border-color: var(--accent);
	transform: translateY(-2px);
	box-shadow: var(--shadow-sm);
}

.link-name {
	font-size: 15px;
	font-weight: 700;
	color: var(--text);
}

.link-card:hover .link-name {
	color: var(--accent);
}

.link-desc {
	font-size: 13px;
	color: var(--text-3);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* ----- 18. 404 ----- */

.error-404 {
	text-align: center;
	padding: 48px 0 24px;
}

.error-code {
	font-size: 96px;
	font-weight: 900;
	line-height: 1;
	letter-spacing: 6px;
	background: linear-gradient(135deg, var(--accent), var(--accent-strong));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.error-desc {
	margin: 12px 0 28px;
	color: var(--text-2);
}

.error-search {
	max-width: 440px;
	margin: 0 auto 36px;
}

.error-latest {
	max-width: 440px;
	margin: 0 auto 32px;
	padding: 20px 24px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--bg-card);
	text-align: left;
}

.error-latest h3 {
	margin: 0 0 12px;
	font-size: 15px;
	color: var(--text);
}

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

.error-latest li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 7px 0;
	border-bottom: 1px dashed var(--border);
	font-size: 14px;
}

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

.error-latest li a {
	color: var(--text-2);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.error-latest li a:hover {
	color: var(--accent);
}

.error-latest time {
	flex-shrink: 0;
	color: var(--text-3);
	font-size: 12.5px;
}

.error-actions {
	margin-top: 8px;
}

/* ----- 19. 空状态 ----- */

.empty-state {
	padding: 60px 24px;
	text-align: center;
	color: var(--text-2);
}

.empty-state h2 {
	margin: 0 0 8px;
	font-size: 20px;
	color: var(--text);
}

.empty-state p {
	margin: 0;
}

/* ----- 20. 页脚 ----- */

.site-footer {
	border-top: 1px solid var(--border);
	background: var(--bg-card);
	margin-top: 24px;
}

.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 40px;
	padding: 48px 24px 32px;
}

.footer-col h4 {
	margin: 0 0 16px;
	font-size: 14px;
	font-weight: 700;
	color: var(--text);
	letter-spacing: 1px;
}

.footer-menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-menu li {
	margin-bottom: 10px;
}

.footer-menu a {
	font-size: 14px;
	color: var(--text-2);
}

.footer-menu a:hover {
	color: var(--accent);
}

.footer-brand .brand-link {
	margin-bottom: 14px;
}

.footer-brand .brand-zh {
	font-size: 17px;
}

.footer-brand .brand-en {
	font-size: 10px;
	letter-spacing: 3px;
}

.footer-desc {
	margin: 0;
	max-width: 320px;
	font-size: 13.5px;
	line-height: 1.8;
	color: var(--text-3);
}

.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	padding: 20px 24px;
	border-top: 1px solid var(--border);
	font-size: 13px;
	color: var(--text-3);
}

.footer-beian {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
}

.footer-beian a,
.footer-beian span {
	font-size: 13px;
	color: var(--text-3);
}

.footer-beian a:hover {
	color: var(--accent);
}

/* ----- 21. 回到顶部 ----- */

.back-top {
	position: fixed;
	right: 24px;
	bottom: 32px;
	z-index: 90;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--border);
	border-radius: 12px;
	background: var(--bg-card);
	color: var(--text-2);
	box-shadow: var(--shadow-md);
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all 0.25s ease;
}

.back-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.back-top:hover {
	color: var(--accent);
	border-color: var(--accent);
}

/* ----- 22. WP 块编辑器元素兼容 ----- */

.wp-block-image img {
	border-radius: var(--radius-sm);
}

.wp-block-quote {
	margin: 1.5em 0;
	padding: 16px 22px;
	border-left: 4px solid var(--accent);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	background: var(--accent-soft);
}

.wp-block-quote p {
	margin: 0 0 0.5em;
}

.wp-block-quote p:last-child {
	margin-bottom: 0;
}

.wp-block-quote.is-style-large {
	padding: 24px 30px;
}

.wp-block-embed {
	margin: 1.5em 0;
}

.aligncenter {
	margin-left: auto;
	margin-right: auto;
}

.alignright {
	float: right;
	margin: 0.5em 0 1em 1.5em;
}

.alignleft {
	float: left;
	margin: 0.5em 1.5em 1em 0;
}

.wp-caption {
	max-width: 100%;
}

/* ----- 23. 响应式 ----- */

@media (max-width: 1024px) {
	.layout-main {
		grid-template-columns: minmax(0, 1fr) 280px;
		gap: 24px;
	}

	.post-card .card-thumb {
		width: 200px;
	}
}

@media (max-width: 860px) {
	.layout-main {
		grid-template-columns: 1fr;
		padding-top: 24px;
	}

	.sidebar {
		position: static;
	}

	/* 移动端导航 */
	.nav-toggle {
		display: inline-flex;
	}

	.main-nav {
		position: absolute;
		top: 64px;
		left: 0;
		right: 0;
		display: none;
		background: var(--bg-card);
		border-bottom: 1px solid var(--border);
		box-shadow: var(--shadow-md);
		padding: 10px 16px 16px;
	}

	.main-nav.is-open {
		display: block;
	}

	.nav-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 2px;
	}

	.nav-menu a {
		padding: 12px 14px;
	}

	.nav-menu .sub-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: none;
		border-left: 2px solid var(--border);
		border-radius: 0;
		margin-left: 16px;
		background: transparent;
	}

	.header-search.is-open {
		position: absolute;
		top: 64px;
		left: 0;
		right: 0;
		background: var(--bg-card);
		border-bottom: 1px solid var(--border);
		box-shadow: var(--shadow-md);
	}

	/* 卡片纵向 */
	.post-card {
		flex-direction: column;
	}

	.post-card .card-thumb {
		width: 100%;
		height: 200px;
	}

	.post-card:not(:has(.card-thumb)) .card-body {
		padding: 24px;
	}

	.card-body {
		padding: 22px 24px;
	}

	.post-single {
		padding: 26px 22px;
	}

	.footer-grid {
		grid-template-columns: 1fr;
		gap: 28px;
		padding: 36px 24px 24px;
	}

	.post-nav {
		grid-template-columns: 1fr;
	}

	.comment-form {
		grid-template-columns: 1fr;
	}

	.comment-form-author,
	.comment-form-email {
		grid-column: 1 / -1;
	}

	.link-grid {
		grid-template-columns: 1fr;
	}

	.hero {
		padding: 48px 0 36px;
	}
}

@media (max-width: 480px) {
	.container {
		padding: 0 16px;
	}

	.layout-main {
		padding-left: 16px;
		padding-right: 16px;
	}

	.header-inner {
		gap: 12px;
	}

	.brand-zh {
		font-size: 16px;
		letter-spacing: 1px;
	}

	.brand-en {
		font-size: 9px;
		letter-spacing: 2.5px;
	}

	.single-title {
		font-size: 22px;
	}

	.about-stats {
		gap: 24px;
	}

	.footer-bottom {
		flex-direction: column;
		text-align: center;
	}

	.back-top {
		right: 16px;
		bottom: 20px;
	}
}

/* ==========================================================================
   25. UI 视觉增强 v1.3 —— 保留全部功能，纯视觉升级
   ========================================================================== */

/* --- 25.1 设计令牌补充 --- */
:root {
	--accent-grad: linear-gradient(135deg, #4f6bf5 0%, #8b5cf6 100%);
	--shadow-lg: 0 14px 38px rgba(23, 32, 61, 0.14);
	--glow-a: rgba(79, 107, 245, 0.18);
	--glow-b: rgba(139, 92, 246, 0.13);
	--ring-focus: 0 0 0 4px var(--accent-soft-2);
	--icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.5' y2='16.5'/%3E%3C/svg%3E");
	--icon-calendar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
	--icon-clock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpolyline points='12 6 12 12 16 14'/%3E%3C/svg%3E");
	--icon-arrow-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
	--icon-quote: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M14.017 21v-7.391c0-5.704 3.731-9.57 8.983-10.609l.995 2.151c-2.432.917-3.995 3.638-3.995 5.849h4v10h-9.983zm-14.017 0v-7.391c0-5.704 3.748-9.57 9-10.609l.996 2.151c-2.433.917-3.996 3.638-3.996 5.849h3.983v10h-9.983z'/%3E%3C/svg%3E");
}

[data-theme='dark'] {
	--shadow-lg: 0 14px 38px rgba(0, 0, 0, 0.55);
	--glow-a: rgba(79, 107, 245, 0.14);
	--glow-b: rgba(139, 92, 246, 0.09);
}

/* --- 25.2 页面氛围背景（浅色柔和光晕 / 深色低对比） --- */
body {
	background-color: var(--bg);
	background-image:
		radial-gradient(1100px 420px at 88% -160px, var(--glow-a), transparent 62%),
		radial-gradient(900px 380px at -12% -140px, var(--glow-b), transparent 58%);
	/* 不使用 fixed，避免 iOS Safari 滚动性能问题 */
}

/* --- 25.3 头部细节 --- */
.site-header {
	box-shadow: 0 1px 0 rgba(100, 116, 139, 0.06), 0 10px 34px -16px rgba(23, 32, 61, 0.12);
}

.brand-zh {
	position: relative;
}

.brand-zh::after {
	content: '';
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-left: 3px;
	border-radius: 50%;
	background: var(--accent-grad);
	vertical-align: 4px;
}

/* 主导航：渐变下划线动效 */
.nav-menu a {
	position: relative;
}

.nav-menu a::after {
	content: '';
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 4px;
	height: 2px;
	border-radius: 2px;
	background: var(--accent-grad);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.22s ease;
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item > a::after,
.nav-menu .current_page_item > a::after {
	transform: scaleX(1);
}

/* --- 25.4 Hero 精修 --- */
.hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(720px 260px at 22% -60px, var(--glow-a), transparent 70%),
		radial-gradient(720px 260px at 78% -60px, var(--glow-b), transparent 70%),
		var(--bg);
}

.hero::before {
	content: '';
	position: absolute;
	top: -180px;
	right: -120px;
	width: 360px;
	height: 360px;
	border-radius: 50%;
	background: radial-gradient(circle, var(--glow-a), transparent 66%);
	pointer-events: none;
}

.hero::after {
	content: '';
	position: absolute;
	left: -140px;
	bottom: -120px;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	border: 1.5px solid var(--accent-soft-2);
	box-shadow: 0 0 0 44px var(--accent-soft), 0 0 0 88px rgba(79, 107, 245, 0.04);
	pointer-events: none;
}

.hero-title {
	position: relative;
	background: var(--accent-grad);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

[data-theme='dark'] .hero-title {
	background: linear-gradient(135deg, #8ba4ff 0%, #c084fc 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.hero-sub {
	position: relative;
	letter-spacing: 0.4px;
}

/* Hero 搜索框：胶囊 + 放大镜图标 + 聚焦光晕 */
.hero-search {
	position: relative;
	z-index: 1;
}

.hero-search .search-form {
	position: relative;
}

.hero-search .search-field {
	height: 52px;
	padding: 0 20px 0 46px;
	border-radius: 999px;
	border-color: var(--border-strong);
	background: var(--bg-card);
	box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.6);
	font-size: 15.5px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.hero-search .search-field:focus {
	border-color: var(--accent);
	box-shadow: var(--ring-focus), var(--shadow-md);
	transform: translateY(-1px);
}

.hero-search .search-form::before {
	content: '';
	position: absolute;
	left: 19px;
	top: 50%;
	width: 18px;
	height: 18px;
	margin-top: -9px;
	background-color: var(--text-3);
	-webkit-mask: var(--icon-search) center / contain no-repeat;
	mask: var(--icon-search) center / contain no-repeat;
	pointer-events: none;
	z-index: 1;
}

.hero-search .search-submit {
	width: 52px;
	height: 52px;
	border-radius: 999px;
	background: var(--accent-grad);
	box-shadow: 0 6px 16px -6px var(--accent);
	transition: all 0.2s ease;
}

.hero-search .search-submit:hover {
	box-shadow: 0 8px 20px -6px var(--accent);
	transform: translateY(-1px);
}

/* --- 25.5 文章卡片精修 --- */
.post-card {
	transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.post-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-lg);
	border-color: var(--accent-soft-2);
}

.post-card .card-thumb {
	position: relative;
	overflow: hidden;
}

.post-card .card-thumb img {
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.post-card:hover .card-thumb img {
	transform: scale(1.06);
}

/* 缩略图渐变遮罩 + 悬浮阅读图标 */
.post-card .card-thumb::before {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 2;
	width: 44px;
	height: 44px;
	margin: -22px 0 0 -22px;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.94);
	background-image: var(--icon-arrow-right);
	background-size: 18px;
	background-position: center;
	background-repeat: no-repeat;
	box-shadow: var(--shadow-md);
	opacity: 0;
	transform: scale(0.7) rotate(-8deg);
	transition: all 0.25s ease;
}

.post-card .card-thumb::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(to top, rgba(15, 18, 25, 0.38), transparent 55%);
	opacity: 0;
	transition: opacity 0.25s ease;
}

.post-card:hover .card-thumb::before {
	opacity: 1;
	transform: scale(1) rotate(0deg);
}

.post-card:hover .card-thumb::after {
	opacity: 1;
}

/* meta 信息图标化 */
.card-meta time::before {
	content: '';
	display: inline-block;
	width: 13px;
	height: 13px;
	margin-right: 5px;
	vertical-align: -2px;
	background-color: var(--text-3);
	-webkit-mask: var(--icon-calendar) center / contain no-repeat;
	mask: var(--icon-calendar) center / contain no-repeat;
}

.single-meta time::before {
	content: '';
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 6px;
	vertical-align: -2px;
	background-color: var(--text-3);
	-webkit-mask: var(--icon-calendar) center / contain no-repeat;
	mask: var(--icon-calendar) center / contain no-repeat;
}

/* 卡片入场动画（reduced-motion 时由 24 节全局禁用） */
@keyframes nassch-card-in {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.post-list .post-card {
	animation: nassch-card-in 0.5s ease both;
}

.post-list .post-card:nth-child(2) {
	animation-delay: 0.05s;
}

.post-list .post-card:nth-child(3) {
	animation-delay: 0.1s;
}

.post-list .post-card:nth-child(4) {
	animation-delay: 0.15s;
}

.post-list .post-card:nth-child(5) {
	animation-delay: 0.2s;
}

.post-single {
	animation: nassch-card-in 0.45s ease both;
}

/* --- 25.6 正文排版精修 --- */
.single-content h2::before {
	background: var(--accent-grad);
	width: 56px;
}

.single-content h3 {
	position: relative;
	padding-left: 14px;
}

.single-content h3::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0.12em;
	bottom: 0.12em;
	width: 4px;
	border-radius: 4px;
	background: var(--accent-grad);
	opacity: 0.85;
}

.single-content blockquote {
	position: relative;
	padding: 16px 22px 16px 58px;
}

.single-content blockquote::before {
	content: '';
	position: absolute;
	left: 20px;
	top: 16px;
	width: 22px;
	height: 22px;
	background-color: var(--accent);
	-webkit-mask: var(--icon-quote) center / contain no-repeat;
	mask: var(--icon-quote) center / contain no-repeat;
	opacity: 0.85;
}

.single-content pre {
	padding: 20px 20px 18px;
	background:
		linear-gradient(180deg, var(--accent-soft-2), transparent 52px),
		var(--bg-code);
}

.single-content pre::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--accent-grad);
	opacity: 0.85;
}

.single-content th {
	background: linear-gradient(135deg, var(--accent-soft), var(--accent-soft-2));
}

.single-content img {
	border-radius: var(--radius-sm);
}

/* --- 25.7 侧栏精修 --- */
.widget {
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.widget:hover {
	border-color: var(--accent-soft-2);
	box-shadow: var(--shadow-md);
}

.widget-title {
	position: relative;
	padding-left: 13px;
}

.widget-title::before {
	content: '';
	position: absolute;
	left: 0;
	top: 2px;
	bottom: 14px;
	width: 3px;
	border-radius: 3px;
	background: var(--accent-grad);
}

.widget ul li a {
	transition: color 0.15s ease;
}

.widget ul li:hover {
	padding-left: 5px;
}

.tag-cloud a {
	transition: all 0.15s ease;
}

.tag-cloud a:hover {
	transform: translateY(-2px);
	border-color: var(--accent);
	background: var(--accent-soft);
	color: var(--accent);
}

/* --- 25.8 TOC 目录 --- */
.toc-body a {
	padding: 6px 10px;
	margin: 2px -10px;
	border-radius: 7px;
	transition: background 0.15s ease, color 0.15s ease;
}

.toc-body a:hover {
	background: var(--accent-soft);
	color: var(--accent);
}

.toc-body a.is-active {
	background: var(--accent-soft);
	color: var(--accent);
	box-shadow: inset 3px 0 0 var(--accent);
}

/* --- 25.9 上下篇 / 相关笔记 --- */
.post-nav-item {
	transition: all 0.2s ease;
}

.post-nav-item:hover {
	border-color: var(--accent);
	background: var(--accent-soft);
	transform: translateY(-2px);
}

.related-item {
	transition: all 0.2s ease;
}

.related-item:hover {
	transform: translateX(4px);
	border-color: var(--accent);
	background: var(--accent-soft);
}

/* --- 25.10 分页 / 回顶 --- */
.nav-links .current {
	background: var(--accent-grad);
	border-color: transparent;
	box-shadow: 0 4px 14px -6px var(--accent);
}

.back-top {
	border-radius: 50%;
	transition: all 0.25s ease;
}

.back-top:hover {
	transform: translateY(-3px);
	border-color: var(--accent);
	color: var(--accent);
	background: var(--bg-card);
	box-shadow: var(--shadow-lg);
}

/* --- 25.11 页脚 --- */
.site-footer {
	position: relative;
}

.site-footer::before {
	content: '';
	position: absolute;
	top: -1px;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, var(--accent-soft-2), transparent);
}

.footer-menu a {
	display: inline-block;
	transition: all 0.15s ease;
}

.footer-menu a:hover {
	padding-left: 4px;
}

.footer-col h4 {
	position: relative;
	padding-left: 12px;
}

.footer-col h4::before {
	content: '';
	position: absolute;
	left: 0;
	top: 3px;
	bottom: 3px;
	width: 3px;
	border-radius: 3px;
	background: var(--accent-grad);
}

/* --- 25.12 评论 / 关于页 / 友链页 --- */
.form-submit .submit {
	background: var(--accent-grad);
	box-shadow: 0 6px 16px -8px var(--accent);
	transition: all 0.2s ease;
}

.form-submit .submit:hover {
	box-shadow: 0 8px 20px -8px var(--accent);
	transform: translateY(-1px);
}

.stat-num {
	background: var(--accent-grad);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
}

.about-card {
	position: relative;
	overflow: hidden;
}

.about-card::before {
	content: '';
	position: absolute;
	top: -120px;
	right: -80px;
	width: 260px;
	height: 260px;
	border-radius: 50%;
	background: radial-gradient(circle, var(--glow-a), transparent 65%);
	pointer-events: none;
}

.about-card::after {
	content: '';
	position: absolute;
	bottom: -100px;
	left: -60px;
	width: 200px;
	height: 200px;
	border-radius: 50%;
	border: 1.5px solid var(--accent-soft-2);
	pointer-events: none;
}

.link-card {
	transition: all 0.2s ease;
}

.link-card:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-lg);
}

/* --- 25.13 阅读进度条（JS 动态创建，仅文章页） --- */
.reading-progress {
	position: fixed;
	top: 0;
	left: 0;
	height: 3px;
	width: 0;
	z-index: 200;
	border-radius: 0 3px 3px 0;
	background: var(--accent-grad);
	transition: width 0.1s linear;
	pointer-events: none;
}

/* --- 25.14 代码块复制按钮（JS 注入） --- */
.code-copy {
	position: absolute;
	top: 8px;
	right: 10px;
	z-index: 2;
	padding: 3px 10px;
	border: 1px solid var(--border);
	border-radius: 7px;
	background: var(--bg-card);
	color: var(--text-2);
	font-family: inherit;
	font-size: 12px;
	line-height: 1.6;
	cursor: pointer;
	opacity: 0;
	transform: translateY(-3px);
	transition: all 0.2s ease;
}

.single-content pre:hover .code-copy,
.code-copy:focus-visible {
	opacity: 1;
	transform: translateY(0);
}

.code-copy:hover {
	color: var(--accent);
	border-color: var(--accent);
}

.code-copy.is-copied {
	color: #10b981;
	border-color: rgba(16, 185, 129, 0.5);
	background: rgba(16, 185, 129, 0.08);
}

/* --- 25.15 全局细节：选中色 / 滚动条 / 焦点 --- */
::selection {
	background: var(--accent-soft-2);
	color: var(--text);
}

::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

::-webkit-scrollbar-track {
	background: transparent;
}

::-webkit-scrollbar-thumb {
	background: var(--border-strong);
	border-radius: 8px;
	border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
	background: var(--text-3);
}

/* 统一键盘焦点样式 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: none;
	box-shadow: var(--ring-focus);
	border-radius: 4px;
}

/* --- 25.16 响应式补充 --- */
@media (max-width: 860px) {
	.hero::before {
		width: 220px;
		height: 220px;
		top: -100px;
		right: -80px;
	}

	.hero::after {
		width: 160px;
		height: 160px;
		left: -80px;
		bottom: -80px;
	}
}

/* 触屏设备禁用 hover 悬浮效果 */
@media (hover: none) {
	.post-card:hover {
		transform: none;
		box-shadow: none;
	}

	.post-card:hover .card-thumb img {
		transform: none;
	}
}

/* ----- 24. 动画偏好 ----- */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
