/* ============================================================
   限时广播 — xianshiyouhui.com 设计系统
   子主题 arke-xsyh。加载在父主题 style.css 之后，负责覆盖。
   目标：首页=限时信息板（头条槽 + 左侧时间轴 + 分类印章）。
   ============================================================ */

/* ---------- 自托管显示字体（仅拉丁/数字/日期/表头） ---------- */
@font-face {
	font-family: "Archivo";
	font-style: normal;
	font-weight: 400 800;
	font-stretch: 62% 125%;
	font-display: swap;
	src: url("fonts/archivo-var.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
		U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
		U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   令牌
   ============================================================ */
:root {
	/* 纸面 / 墨色 */
	--paper: #f4f2ec;
	--surface: #ffffff;
	--ink: #14130f;
	--ink-2: #3a3830;
	--muted: #5f5a4e;
	--rule: #dedbd0;
	--rule-strong: #c9c5b8;

	/* 信号色（朱红）——只用于填充/大字/图形 */
	--signal: #e3350d;
	--signal-text: #c42b08; /* 正文小字链接用，on paper 5.08:1 */
	--focus: #1d4ed8;

	/* 分类色（冗余编码：色点 + 文字标签） */
	--cat-mianfei-fg: #bd2806; /* on paper 4.70:1（芯片小字需 4.5） */
	--cat-mianfei-bg: rgba(227, 53, 13, 0.1);
	--cat-youhui-fg: #0b6e4f;
	--cat-youhui-bg: rgba(11, 110, 79, 0.1);
	--cat-tixing-fg: #1d4ed8;
	--cat-tixing-bg: rgba(29, 78, 216, 0.1);
	--cat-fenxiang-fg: #6d28d9;
	--cat-fenxiang-bg: rgba(109, 40, 217, 0.1);

	/* 排版 */
	--font-sans: "Archivo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
		"PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
		"Noto Sans CJK SC", sans-serif;
	--font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono",
		"Courier New", monospace;

	--measure: 66ch; /* 正文行宽 */
	--wrap: 46rem; /* 容器 736px */
	--pad: 1.25rem;

	/* 尺度 */
	--fs-body: 1.0625rem; /* 17px */
	--lh-body: 1.75;
	--fs-display: clamp(2rem, 5vw, 3.5rem);
	--lh-display: 1.12;
	--fs-title: clamp(1.25rem, 3.2vw, 1.6rem);
	--fs-small: 0.8125rem;
	--fs-meta: 0.8125rem;
	--tracking-display: -0.025em;

	/* 节奏 */
	--space-1: 0.35rem;
	--space-2: 0.7rem;
	--space-3: 1.1rem;
	--space-4: 1.75rem;
	--space-5: 2.5rem;
	--space-6: 4rem;
	--rail: 6.75rem; /* 时间轴列宽（容得下最长的 Y年n月j日 日期） */

	/* 圆角 */
	--r-sm: 8px;
	--r-md: 12px;
	--r-lg: 16px;
	--r-pill: 999px;

	/* 动效 */
	--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	--ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
	--dur-1: 120ms;
	--dur-2: 180ms;
	--dur-3: 220ms;

	/* 抬升（每处以一处声明，border 与 shadow 不叠用） */
	--shadow-sm: 0 1px 2px rgba(20, 19, 15, 0.06), 0 2px 6px -2px rgba(20, 19, 15, 0.08);
	--shadow-md: 0 2px 4px -1px rgba(20, 19, 15, 0.06), 0 8px 24px -6px rgba(20, 19, 15, 0.12);

	--header-h: 4rem;
}

/* ============================================================
   基础 / 覆盖父主题
   ============================================================ */
*,
*::before,
*::after {
	box-sizing: border-box; /* 父主题已 inherit，这里直说 */
}

html {
	/* 让锚点不钻到 sticky 页头下面 */
	scroll-padding-top: calc(var(--header-h) + 1rem);
	-webkit-text-size-adjust: 100%;
	scrollbar-color: var(--rule-strong) var(--paper); /* 主题化原生滚动条 */
}

.xsyh {
	max-width: none; /* 覆盖父主题的 640px 居中 */
	margin: 0;
	padding: 0; /* 覆盖父主题 @media(max-width:640px) 的 body padding-inline:5% */
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
	font-synthesis-weight: none;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-wrap: break-word;
}

/* 原生面主题化 —— 被建造而非拼装的廉价信号 */
::selection {
	background: var(--signal);
	color: #fff;
}
.xsyh {
	caret-color: var(--signal);
}

/* WebKit 滚动条 */
@supports selector(::-webkit-scrollbar) {
	::-webkit-scrollbar {
		width: 12px;
		height: 12px;
	}
	::-webkit-scrollbar-track {
		background: var(--paper);
	}
	::-webkit-scrollbar-thumb {
		background: var(--rule-strong);
		border: 3px solid var(--paper);
		border-radius: var(--r-pill);
	}
	::-webkit-scrollbar-thumb:hover {
		background: var(--muted);
	}
}

.xsyh h1,
.xsyh h2,
.xsyh h3,
.xsyh h4,
.xsyh h5,
.xsyh h6 {
	color: var(--ink);
	line-height: 1.25;
	letter-spacing: -0.01em;
	text-wrap: balance;
	margin: 0 0 0.6em;
}

.xsyh p {
	margin: 0 0 1.5em;
	text-wrap: pretty;
}

.xsyh a {
	color: var(--signal-text);
	text-decoration: underline;
	text-decoration-thickness: 0.06em;
	text-underline-offset: 0.18em;
	transition: color var(--dur-1) var(--ease-out);
}
.xsyh a:hover,
.xsyh a:focus {
	color: var(--ink);
}

.xsyh img {
	max-width: 100%;
	height: auto;
}

.xsyh hr {
	height: 1px;
	border: 0;
	background: var(--rule);
	margin: var(--space-5) 0;
}

/* ============================================================
   可访问性
   ============================================================ */
:focus-visible {
	outline: 2px solid var(--focus);
	outline-offset: 2px;
	border-radius: 2px;
}
/* 父主题的 thin dotted 兜底在 focus-visible 之上 */
.xsyh a:focus {
	outline: 2px solid var(--focus);
	outline-offset: 2px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: var(--pad);
	top: -100%;
	z-index: 200;
	background: var(--ink);
	color: var(--paper);
	padding: 0.7rem 1rem;
	border-radius: var(--r-sm);
	text-decoration: none;
	font-size: var(--fs-small);
	font-weight: 600;
	transition: top var(--dur-2) var(--ease-out);
}
.skip-link:focus {
	top: 0.6rem;
	color: var(--paper);
}

/* ============================================================
   布局
   ============================================================ */
.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin-inline: auto;
	padding-inline: var(--pad);
}

/* ---------- 页头（sticky，滚动后加分隔 + 毛玻璃） ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	padding-block: 0; /* 覆盖父主题 .site-header 的 25px 0 50px 不对称内边距 */
	background: var(--paper);
	transition: background var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out);
}
.site-header.is-scrolled {
	background: rgba(244, 242, 236, 0.82);
	-webkit-backdrop-filter: blur(12px) saturate(1.4);
	backdrop-filter: blur(12px) saturate(1.4);
	box-shadow: var(--shadow-sm);
}

.header-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--space-2) var(--space-3);
	min-height: var(--header-h);
	padding-block: 0.6rem;
}

.brand {
	display: inline-flex;
	align-items: baseline;
	gap: 0.45rem;
	text-decoration: none;
	color: var(--ink);
}
.brand-mark {
	font-weight: 800;
	font-size: 1.4rem;
	letter-spacing: -0.04em;
	line-height: 1;
}
.brand-mark::selection {
	background: var(--signal);
}
.brand-sub {
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	color: var(--muted);
	text-transform: none;
}

/* ---------- 导航 ---------- */
.site-nav {
	flex: 1 1 100%; /* 窄屏换行到第二行 */
	min-width: 0;
}
@media (min-width: 40em) {
	.site-nav {
		flex: 0 1 auto;
	}
}

.nav-list {
	display: flex;
	flex-wrap: nowrap;
	gap: 0.25rem;
	list-style: none;
	margin: 0;
	padding: 0;
	overflow-x: auto;
	scrollbar-width: none;
}
.nav-list::-webkit-scrollbar {
	display: none;
}
/* 窄屏导航整行换行后可横向滚动；恢复一根细滚动条作为「还有内容」的可见提示
   （否则 scrollbar-width:none 会让被裁到右缘的分类链接无任何线索） */
@media (max-width: 40em) {
	.nav-list {
		scrollbar-width: thin;
		scrollbar-color: var(--rule-strong) transparent;
	}
	.nav-list::-webkit-scrollbar {
		display: block;
		height: 3px;
	}
	.nav-list::-webkit-scrollbar-thumb {
		background: var(--rule-strong);
		border-radius: 3px;
	}
}
.site-nav li {
	margin: 0;
}
.site-nav a {
	display: inline-block;
	padding: 0.55rem 0.6rem;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	color: var(--ink-2);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	white-space: nowrap;
	position: relative;
}
@media (hover: hover) and (pointer: fine) {
	.site-nav a::after {
		content: "";
		position: absolute;
		left: 0.6rem;
		right: 0.6rem;
		bottom: 0.35rem;
		height: 2px;
		background: var(--signal);
		transform: scaleX(0);
		transform-origin: left;
		transition: transform var(--dur-2) var(--ease-out);
	}
	.site-nav a:hover::after {
		transform: scaleX(1);
	}
}
.site-nav .current-menu-item a,
.site-nav .current-cat a {
	color: var(--ink);
	font-weight: 700;
}
.site-nav .current-menu-item a::after,
.site-nav .current-cat a::after {
	transform: scaleX(1);
}

/* ---------- 主体 ---------- */
.site-main {
	min-height: 50vh;
	padding-block: var(--space-4) var(--space-6);
}

/* 页内锚点 / 标题不被 sticky 遮挡 */
:target,
.feed-item,
.single-title {
	scroll-margin-top: calc(var(--header-h) + 1rem);
}

/* ============================================================
   通用小件
   ============================================================ */
.meta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	color: var(--muted);
	font-size: var(--fs-meta);
}
.meta-row .dot {
	color: var(--rule-strong);
}
.meta-row time {
	font-variant-numeric: tabular-nums;
}

/* 分类印章 —— 色点（冗余编码）+ 文字
   前缀 .xsyh 提高专属度到 (0,2,0)，压过第 176 行 .xsyh a (0,1,1)，
   否则印章会被当成普通链接染成 signal-text 且带下划线。 */
.xsyh .stamp {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 1.5rem; /* WCAG 2.2 目标尺寸 24px */
	padding: 0.3rem 0.6rem 0.3rem 0.5rem;
	border-radius: var(--r-pill);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1;
	text-decoration: none;
	background: var(--cat-bg, rgba(20, 19, 15, 0.06));
	color: var(--cat-fg, var(--ink-2));
}
.xsyh .stamp-dot {
	width: 0.5em;
	height: 0.5em;
	border-radius: 50%;
	background: var(--cat-fg, var(--muted));
}
.xsyh .stamp:hover,
.xsyh .stamp:focus {
	color: var(--cat-fg, var(--ink));
	filter: saturate(1.15) brightness(0.96);
}
.xsyh .stamp--mianfei {
	--cat-fg: var(--cat-mianfei-fg);
	--cat-bg: var(--cat-mianfei-bg);
}
.xsyh .stamp--youhui {
	--cat-fg: var(--cat-youhui-fg);
	--cat-bg: var(--cat-youhui-bg);
}
.xsyh .stamp--tixing {
	--cat-fg: var(--cat-tixing-fg);
	--cat-bg: var(--cat-tixing-bg);
}
.xsyh .stamp--fenxiang {
	--cat-fg: var(--cat-fenxiang-fg);
	--cat-bg: var(--cat-fenxiang-bg);
}
.xsyh .stamp--uncategorized {
	--cat-fg: var(--ink-2);
}

/* ============================================================
   抵消父主题 .blog article（专属度 (0,1,1)，会盖掉同层的 .headline）
   父值：border-bottom 1px #f3f3f3 / padding-bottom 34px / margin-bottom 50px
   ============================================================ */
.xsyh article {
	border-bottom: 0;
	padding-bottom: 0;
}
.xsyh .feed-item {
	margin-bottom: 0;
}

/* ============================================================
   头条槽
   ============================================================ */
.headline {
	background: var(--surface);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-md);
	padding: clamp(1.5rem, 4vw, 2.5rem);
	margin-bottom: var(--space-5);
}
.xsyh .headline {
	padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
	margin-bottom: var(--space-5);
}
.headline-title {
	font-size: var(--fs-display);
	line-height: var(--lh-display);
	letter-spacing: var(--tracking-display);
	margin: 0 0 var(--space-3);
	font-weight: 800;
}
.headline-title a {
	color: var(--ink);
	text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
	.headline-title a {
		transition: color var(--dur-2) var(--ease-out);
	}
	.headline-title a:hover {
		color: var(--signal-text);
	}
}
.headline-sum {
	color: var(--ink-2);
	margin: 0 0 var(--space-3);
	max-width: var(--measure);
}
.headline .meta-row {
	margin-top: var(--space-1);
}
.headline-thumb {
	display: block;
	margin-bottom: var(--space-3);
	border-radius: var(--r-md);
	overflow: hidden;
	aspect-ratio: 16 / 9;
}
.headline-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ============================================================
   时间轴信息流
   ============================================================ */
.feed {
	position: relative;
}
.feed-item {
	display: grid;
	grid-template-columns: var(--rail) 1fr;
	column-gap: var(--space-3);
	align-items: start;
}
.feed-item.has-thumb {
	grid-template-columns: var(--rail) 1fr 6.5rem;
}
.feed-item + .feed-item {
	margin-top: 0;
}

/* 轴：rail 列画竖线，跨行连续 */
.feed-rail {
	position: relative;
	align-self: stretch;
	padding-block: var(--space-3);
}
.feed-rail::before {
	content: "";
	position: absolute;
	left: 3px;
	top: 0;
	bottom: 0;
	width: 1px;
	background: var(--rule);
}
.feed-item:first-child .feed-rail::before {
	top: var(--space-3);
}
.feed-item:last-child .feed-rail::before {
	bottom: calc(100% - var(--space-3) - 0.75rem);
}
.feed-node {
	position: absolute;
	left: 3px;
	top: calc(var(--space-3) + 0.52rem);
	width: 7px;
	height: 7px;
	margin-left: -3px;
	border-radius: 50%;
	background: var(--paper);
	box-shadow: inset 0 0 0 1.5px var(--rule-strong);
}
.feed-item:first-child .feed-node {
	background: var(--signal);
	box-shadow: 0 0 0 3px rgba(227, 53, 13, 0.16);
}
.feed-time {
	display: block;
	padding-left: 1rem;
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--muted);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.feed-main {
	padding-block: var(--space-3);
	min-width: 0;
}
.feed-title {
	font-size: var(--fs-title);
	line-height: 1.3;
	letter-spacing: -0.015em;
	margin: 0 0 0.5rem;
	font-weight: 700;
}
.feed-title a {
	color: var(--ink);
	text-decoration: none;
}
@media (hover: hover) and (pointer: fine) {
	.feed-title a {
		transition: color var(--dur-1) var(--ease-out);
	}
	.feed-title a:hover {
		color: var(--signal-text);
	}
}

.feed-excerpt {
	margin: 0.5rem 0 0;
	color: var(--muted);
	font-size: 0.9375rem;
	max-width: var(--measure);
}

.feed-thumb {
	display: block;
	margin-block: var(--space-3);
	border-radius: var(--r-sm);
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--rule);
}
.feed-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* 时间轴首尾与分隔：靠条目间的细线保持节奏（不逐条加彩色边） */
.feed-item + .feed-item .feed-main {
	border-top: 1px solid var(--rule);
}
.feed-item + .feed-item .feed-rail {
	border-top: 1px solid transparent; /* 与 main 对齐，rail 的竖线不受影响 */
}

/* ============================================================
   归档 / 搜索 头
   ============================================================ */
.archive-head,
.page-head {
	margin-bottom: var(--space-4);
	padding-bottom: var(--space-3);
	border-bottom: 1px solid var(--rule);
}
.archive-title {
	font-size: clamp(1.5rem, 4vw, 2rem);
	letter-spacing: -0.02em;
	margin: 0 0 0.35rem;
}
.archive-desc {
	color: var(--muted);
	margin: 0;
	max-width: var(--measure);
}
.archive-count {
	color: var(--muted);
	font-size: var(--fs-small);
}

/* ============================================================
   分页
   ============================================================ */
.pager {
	display: flex;
	justify-content: space-between;
	gap: var(--space-2);
	margin-top: var(--space-5);
	padding-top: var(--space-4);
	border-top: 1px solid var(--rule);
}
.pager a,
.pager > span > a {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0.6rem 1.1rem;
	border-radius: var(--r-sm);
	background: var(--surface);
	box-shadow: var(--shadow-sm);
	color: var(--ink);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
	transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
	.pager a:hover {
		box-shadow: var(--shadow-md);
	}
}
.pager a:active {
	transform: scale(0.97);
}
.pager .is-disabled {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0.6rem 1.1rem;
	color: var(--muted);
	font-size: 0.9rem;
	opacity: 0.9; /* muted@0.6 合成到纸面仅 2.60:1；0.9 → 4.88:1 */
}
.pager-prev {
	margin-right: auto;
}
.pager-next {
	margin-left: auto;
}

/* ============================================================
   单篇
   ============================================================ */
.single-head {
	margin-bottom: var(--space-4);
}
.single-title {
	font-size: clamp(1.75rem, 5vw, 2.75rem);
	line-height: 1.16;
	letter-spacing: -0.025em;
	margin: 0 0 var(--space-3);
	font-weight: 800;
}
.single-head .meta-row {
	padding-bottom: var(--space-3);
	border-bottom: 1px solid var(--rule);
}
/* 单篇特色图保留原始比例，不裁切 */
.single-thumb {
	aspect-ratio: auto;
	background: none;
}
.single-thumb img {
	height: auto;
	object-fit: contain;
}

/* 正文排版 */
.entry-content {
	max-width: var(--measure);
	font-size: var(--fs-body);
	line-height: var(--lh-body);
}
.entry-content > * {
	margin-bottom: 1.5em;
}
.entry-content h2 {
	font-size: 1.5rem;
	margin: 2em 0 0.7em;
	letter-spacing: -0.02em;
}
.entry-content h3 {
	font-size: 1.25rem;
	margin: 1.7em 0 0.6em;
}
.entry-content ul,
.entry-content ol {
	padding-left: 1.4em;
}
.entry-content li {
	margin-bottom: 0.4em;
}
.entry-content blockquote {
	margin: 1.75em 0;
	padding: 0.25em 0 0.25em 1.25em;
	border-left: 3px solid var(--signal);
	color: var(--ink-2);
	font-style: normal;
}
.entry-content blockquote p:last-child {
	margin-bottom: 0;
}
.entry-content code {
	font-family: var(--font-mono);
	font-size: 0.875em;
	background: rgba(20, 19, 15, 0.06);
	padding: 0.15em 0.4em;
	border-radius: 4px;
}
.entry-content pre {
	background: #1c1b17;
	color: #f0eee6;
	padding: 1.1rem 1.25rem;
	border-radius: var(--r-md);
	overflow: auto;
	font-size: 0.875rem;
	line-height: 1.6;
}
.entry-content pre code {
	background: none;
	padding: 0;
	color: inherit;
}
.entry-content table {
	width: 100%;
	font-size: 0.9rem;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}
.entry-content th,
.entry-content td {
	padding: 0.6rem 0.7rem;
	border-bottom: 1px solid var(--rule);
	text-align: left;
}
.entry-content th {
	font-weight: 700;
	border-bottom-width: 2px;
	border-bottom-color: var(--ink);
}
.entry-content img,
.entry-content figure img {
	border-radius: var(--r-sm);
	height: auto;
}
.entry-content figcaption,
.entry-content .wp-caption-text {
	font-size: var(--fs-small);
	color: var(--muted);
	text-align: center;
	margin-top: 0.5rem;
}
.entry-content .alignwide {
	width: min(100vw - 2 * var(--pad), 52rem);
	max-width: none;
	margin-left: calc(50% - min(50%, 26rem));
	margin-right: calc(50% - min(50%, 26rem));
}

/* 单篇页脚 */
.post-nav {
	display: grid;
	gap: var(--space-2);
	margin-top: var(--space-5);
	padding-top: var(--space-4);
	border-top: 1px solid var(--rule);
}
@media (min-width: 40em) {
	.post-nav {
		grid-template-columns: 1fr 1fr;
	}
	.post-nav-next {
		text-align: right;
	}
}
.post-nav-link {
	display: block;
	padding: 0.9rem 1rem;
	border-radius: var(--r-md);
	background: var(--surface);
	box-shadow: var(--shadow-sm);
	text-decoration: none;
	color: var(--ink);
	transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
	.post-nav-link:hover {
		box-shadow: var(--shadow-md);
	}
}
.post-nav-k {
	display: block;
	font-size: 0.75rem;
	color: var(--muted);
	margin-bottom: 0.3rem;
}
.post-nav-t {
	display: block;
	font-weight: 600;
	font-size: 0.9375rem;
	line-height: 1.4;
}

/* 同类相关 */
.related {
	margin-top: var(--space-6);
}
.related-title {
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--muted);
	margin: 0 0 var(--space-3);
}
.related-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1px;
	background: var(--rule);
	border-block: 1px solid var(--rule);
}
.related-list li {
	background: var(--paper);
}
.related-list a {
	display: flex;
	justify-content: space-between;
	gap: var(--space-3);
	align-items: baseline;
	padding: 0.85rem 0.25rem;
	min-height: 44px;
	text-decoration: none;
	color: var(--ink);
	font-weight: 500;
}
@media (hover: hover) and (pointer: fine) {
	.related-list a:hover .related-t {
		color: var(--signal-text);
	}
}
.related-t {
	min-width: 0;
}
.related-d {
	flex: none;
	color: var(--muted);
	font-size: 0.75rem;
	font-variant-numeric: tabular-nums;
}

/* ============================================================
   评论
   ============================================================ */
.comments-area {
	margin-top: var(--space-6);
	max-width: var(--measure);
}
.comments-title {
	font-size: 1.05rem;
	margin-bottom: var(--space-3);
}
.comment-list {
	list-style: none;
	margin: 0 0 var(--space-4);
	padding: 0;
}
.comment-list .children {
	list-style: none;
	margin: 0;
	padding-left: 1.25rem;
}
.comment-body {
	padding: var(--space-3) 0;
	border-top: 1px solid var(--rule);
}
.comment-meta {
	font-size: var(--fs-small);
	color: var(--muted);
	margin-bottom: 0.5rem;
}
.comment-author {
	font-weight: 700;
	color: var(--ink);
	font-style: normal;
}
.comment-metadata a {
	text-decoration: none;
	color: var(--muted);
}
.comment-content {
	font-size: 0.9375rem;
}
.comment-content p:last-child {
	margin-bottom: 0;
}
.comment-reply-link {
	font-size: 0.8rem;
	text-decoration: none;
	font-weight: 600;
}
.comment-respond {
	margin-top: var(--space-4);
}
.comment-reply-title {
	font-size: 1.05rem;
}
.comment-form label {
	display: block;
	font-size: 0.8rem;
	color: var(--muted);
	margin-bottom: 0.3rem;
}
.comment-form p {
	margin-bottom: var(--space-3);
}
.comment-form .form-submit {
	margin-top: var(--space-2);
}

/* 表单 */
.xsyh input[type="text"],
.xsyh input[type="email"],
.xsyh input[type="url"],
.xsyh input[type="search"],
.xsyh input[type="number"],
.xsyh textarea,
.xsyh select {
	width: 100%;
	font: inherit;
	font-size: 0.9375rem;
	color: var(--ink);
	background: var(--surface);
	border: 1px solid var(--rule-strong);
	border-radius: var(--r-sm);
	padding: 0.7rem 0.85rem;
	transition: border-color var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
.xsyh input:focus,
.xsyh textarea:focus,
.xsyh select:focus {
	outline: none;
	border-color: var(--signal);
	box-shadow: 0 0 0 3px rgba(227, 53, 13, 0.15);
}
.xsyh button,
.xsyh input[type="submit"],
.xsyh .wp-block-button__link {
	font: inherit;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--paper);
	background: var(--ink);
	border: 1px solid var(--ink);
	border-radius: var(--r-sm);
	padding: 0.7rem 1.2rem;
	min-height: 44px;
	cursor: pointer;
	transition: transform var(--dur-2) var(--ease-out), background var(--dur-1) var(--ease-out);
}
.xsyh button:hover,
.xsyh input[type="submit"]:hover {
	background: var(--signal);
	border-color: var(--signal);
}
.xsyh button:active,
.xsyh input[type="submit"]:active {
	transform: scale(0.97);
}

/* ============================================================
   搜索
   ============================================================ */
.search-form {
	display: flex;
	gap: 0.5rem;
	max-width: 32rem;
}
.search-form .search-field {
	flex: 1;
}
.search-form .search-submit {
	flex: none;
}

/* ============================================================
   404 / 空状态
   ============================================================ */
.notfound {
	padding-block: var(--space-5);
}
.notfound-code {
	font-size: clamp(3rem, 12vw, 6rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1;
	color: var(--signal);
	font-variant-numeric: tabular-nums;
	margin: 0 0 var(--space-2);
}
.notfound-title {
	font-size: clamp(1.25rem, 4vw, 1.75rem);
	margin: 0 0 var(--space-3);
}
.notfound p {
	color: var(--muted);
	max-width: var(--measure);
}
.notfound .search-form {
	margin-top: var(--space-4);
}
.notfound-cats {
	margin-top: var(--space-4);
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
	margin-top: var(--space-6);
	padding-block: var(--space-4) var(--space-5);
	border-top: 1px solid var(--rule);
	color: var(--muted);
	font-size: var(--fs-small);
}
.footer-inner {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3) var(--space-5);
	justify-content: space-between;
}
.footer-cols {
	display: flex;
	flex-wrap: wrap;
	gap: var(--space-3) var(--space-5);
}
.footer-col h2 {
	font-size: 0.7rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
	margin: 0 0 0.6rem;
	font-weight: 700;
}
.footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.footer-col li {
	margin-bottom: 0.4rem;
}
.footer-col a {
	color: var(--ink-2);
	text-decoration: none;
}
.footer-col a:hover {
	color: var(--signal-text);
}
.footer-meta {
	margin-top: var(--space-4);
	padding-top: var(--space-3);
	border-top: 1px solid var(--rule);
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	justify-content: space-between;
}
.footer-meta a {
	color: var(--muted);
	text-decoration: none;
}
.footer-meta a:hover {
	color: var(--signal-text);
}

/* ============================================================
   块编辑器兼容
   ============================================================ */
.entry-content .wp-block-image,
.entry-content .wp-block-gallery {
	margin-bottom: 1.5em;
}
.entry-content .wp-block-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
	gap: 0.5rem;
}
.entry-content .wp-block-gallery img {
	border-radius: var(--r-sm);
}
.entry-content .wp-block-separator {
	max-width: 100%;
	border-color: var(--rule);
}
.entry-content .wp-block-quote {
	border-left: 3px solid var(--signal);
	padding-left: 1.25rem;
}

/* ============================================================
   动效（一处编排的入场）
   ============================================================ */
.js .headline > * {
	opacity: 0;
	transform: translateY(10px);
}
.js .headline.is-in > * {
	opacity: 1;
	transform: none;
	transition: opacity 420ms var(--ease-out), transform 520ms var(--ease-out);
}
.js .headline.is-in > *:nth-child(1) {
	transition-delay: 40ms;
}
.js .headline.is-in > *:nth-child(2) {
	transition-delay: 110ms;
}
.js .headline.is-in > *:nth-child(3) {
	transition-delay: 180ms;
}
.js .headline.is-in > *:nth-child(4) {
	transition-delay: 240ms;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		transition-duration: 0.001ms !important;
		animation-duration: 0.001ms !important;
	}
	/* 位移取消，但保留一次淡入——透明度变化有助理解层级，
	   比硬弹出更接近「更少更柔」而不是「全关」 */
	.js .headline > * {
		transform: none;
		transition-property: opacity !important;
		transition-duration: 200ms !important;
	}
	.js .headline.is-in > *:nth-child(n) {
		transition-delay: 0ms;
	}
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 40em) {
	:root {
		--rail: 4.75rem;
	}
	/* 窄屏让 rail 由日期文本定宽：nowrap 的日期不会再压到标题上 */
	.feed-item,
	.feed-item.has-thumb {
		grid-template-columns: max-content 1fr;
	}
	.feed-thumb {
		grid-column: 2;
		width: 6.5rem;
		margin-top: 0.6rem;
	}
}

@media (max-width: 27em) {
	:root {
		--rail: 3.5rem;
		--pad: 1rem;
	}
	.feed-time {
		font-size: 0.7rem;
		padding-left: 0.85rem;
	}
}

/* ============================================================
   打印
   ============================================================ */
@media print {
	.xsyh {
		background: #fff;
		color: #000;
	}
	.site-header,
	.pager,
	.post-nav,
	.related,
	.comments-area,
	.skip-link {
		display: none;
	}
	.headline {
		box-shadow: none;
		border: 1px solid #ccc;
	}
	a {
		color: #000;
	}
}