/*
Theme Name: 植物岛 Zhiwudao
Theme URI: https://zhiwudao.com/
Description: 植物岛专用主题。基于 Once（HUiTHEME）重构：无 jQuery / Bootstrap 依赖；思源宋体按需切片加载；针对中文排版细调（全角标点、中西文间距、避头尾、孤字控制）；深色模式、阅读设置、文章目录、Ajax 评论与结构化数据。
Author: 植物岛
Version: 2.1.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: zhiwudao
*/

/* ==========================================================================
   0. 字体
   --------------------------------------------------------------------------
   · 正文用各平台系统黑体：苹方（Apple）/ 微软雅黑（Windows）/ 思源黑体（Android、Linux）。
   · 标题用思源宋体（assets/fonts-600.css，按 unicode-range 切片，只下载页面用到的字）。
   · 「ZWD Punct」只覆盖弯引号、破折号、省略号，指向系统中文字体：
     否则这些字符会由西文字体渲染成半角窄字形，中文里显得局促。
   ========================================================================== */
@font-face {
	font-family: "ZWD Punct";
	font-weight: 400;
	src: local("PingFangSC-Regular"), local("PingFang SC Regular"), local("Microsoft YaHei"), local("微软雅黑"),
		local("NotoSansCJKsc-Regular"), local("Noto Sans CJK SC"), local("SourceHanSansSC-Regular"), local("Source Han Sans SC");
	unicode-range: U+2018-2019, U+201C-201D, U+2014-2015, U+2026, U+2E3A;
}
@font-face {
	font-family: "ZWD Punct";
	font-weight: 600 700;
	src: local("PingFangSC-Semibold"), local("PingFang SC Semibold"), local("Microsoft YaHei Bold"), local("MicrosoftYaHei-Bold"),
		local("NotoSansCJKsc-Bold"), local("Noto Sans CJK SC Bold"), local("SourceHanSansSC-Bold"), local("Source Han Sans SC Bold");
	unicode-range: U+2018-2019, U+201C-201D, U+2014-2015, U+2026, U+2E3A;
}

/* ==========================================================================
   1. 设计变量
   ========================================================================== */
:root {
	/* 色彩：宣纸底、竹青主色、赭石点缀 */
	--bg: #f6f4ee;
	--surface: #fffefb;
	--surface-2: #f2efe7;
	--ink: #1c221e;
	--ink-2: #464e48;
	--muted: #656a64;
	--line: #e6e1d6;
	--line-2: #eeebe3;
	--brand: #2d6a46;
	--brand-ink: #21543a;
	--brand-soft: #e6eee7;
	--brand-faint: #b7cbbd;
	--mark: rgba(45, 106, 70, .13);
	--accent: #8d6131;
	--on-brand: #fff;
	--grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .18 0 0 0 0 .1 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

	/* 字体栈 */
	--font-sans: "ZWD Punct", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Noto Sans CJK SC", "Source Han Sans SC", "WenQuanYi Micro Hei", "Helvetica Neue", Arial, sans-serif;
	--font-serif: "ZWD Serif Site", "ZWD Serif", "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "ZWD Punct", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
	--font-latin: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
	--font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, "ZWD Punct", "PingFang SC", "Microsoft YaHei", monospace;

	/* 正文字号（阅读设置可调） */
	--fs-body: 17px;

	--radius: 16px;
	--radius-sm: 10px;
	--shadow-sm: 0 1px 2px rgba(28, 34, 30, .04);
	--shadow: 0 1px 2px rgba(28, 34, 30, .04), 0 10px 28px -12px rgba(28, 34, 30, .14);
	--shadow-lg: 0 28px 56px -20px rgba(28, 34, 30, .28);

	--container: 1200px;
	--gutter: 16px;
	--gap: 24px;
	--header-h: 68px;
	--ease: cubic-bezier(.2, .7, .2, 1);

	color-scheme: light;
}

html.dark {
	--bg: #101412;
	--surface: #171c19;
	--surface-2: #1f2521;
	--ink: #e4e8e3;
	--ink-2: #b4bbb5;
	--muted: #899189;
	--line: #29302b;
	--line-2: #222824;
	--brand: #8cc6a0;
	--brand-ink: #a9d8b8;
	--brand-soft: #1d2a22;
	--brand-faint: #3d5546;
	--mark: rgba(140, 198, 160, .16);
	--accent: #d8a866;
	--on-brand: #0e1a12;
	--grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .025 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	--shadow-sm: 0 0 0 1px rgba(255, 255, 255, .04);
	--shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 12px 30px -14px rgba(0, 0, 0, .7);
	--shadow-lg: 0 28px 56px -20px rgba(0, 0, 0, .7);
	color-scheme: dark;
}

html[data-size="s"]  { --fs-body: 16px; }
html[data-size="l"]  { --fs-body: 18.5px; }
html[data-size="xl"] { --fs-body: 20px; }

@media (min-width: 768px) {
	:root { --gutter: 28px; --gap: 32px; }
}
@media (max-width: 767px) {
	:root { --fs-body: 16.5px; --radius: 14px; --header-h: 60px; }
	html[data-size="s"]  { --fs-body: 15.5px; }
	html[data-size="l"]  { --fs-body: 18px; }
	html[data-size="xl"] { --fs-body: 19.5px; }
}

/* ==========================================================================
   2. 基础
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 20px);
	background: var(--bg);
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	font: 400 15px/1.75 var(--font-sans);
	color: var(--ink);
	background: var(--grain), var(--bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-kerning: normal;
	/* 中西文之间自动留出约 1/8 字宽的间隙（支持的浏览器生效） */
	text-autospace: normal;
	overflow-wrap: break-word;
}
body.has-bg { background: var(--bg) center / cover fixed; }
html.dark body.has-bg { background-blend-mode: multiply; }

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand); }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; line-height: 1.4; color: var(--ink); text-wrap: pretty; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; letter-spacing: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand); color: var(--on-brand); }

.icon { flex: none; width: 1em; height: 1em; }

.sr-only {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
	position: fixed !important; z-index: 1000; top: 12px; left: 12px; width: auto; height: auto; clip: auto;
	padding: 8px 16px; background: var(--surface); color: var(--ink); border-radius: 8px; box-shadow: var(--shadow);
}
.no-scroll { overflow: hidden; }

.container {
	width: 100%;
	max-width: calc(var(--container) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.site-main { flex: 1 0 auto; }

/* —— 兼容与触控 —— */
a, button, [role="button"], input, label, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
/* 刘海屏横屏时内容避开安全区 */
.container {
	padding-left: max(var(--gutter), env(safe-area-inset-left));
	padding-right: max(var(--gutter), env(safe-area-inset-right));
}
/* iOS 在输入框字号小于 16px 时会自动放大整页，移动端统一 16px */
@media (max-width: 767px) {
	input[type="text"], input[type="search"], input[type="email"], input[type="url"], textarea, select { font-size: 16px !important; }
}
/* 触屏设备的点击区域不小于 44px */
@media (pointer: coarse) {
	.icon-btn, .reader-toggle { width: 44px; height: 44px; }
	.pagination .page-numbers { min-width: 44px; height: 44px; }
}
/* 不支持 aspect-ratio 的旧浏览器（iOS 14 等） */
@supports not (aspect-ratio: 1 / 1) {
	.slider-track { height: 62.5vw; max-height: 560px; }
}
/* 滚动条与主题同色 */
html { scrollbar-color: var(--line) transparent; }
@media (hover: hover) {
	::-webkit-scrollbar { width: 10px; height: 10px; }
	::-webkit-scrollbar-thumb { background: var(--line); border: 3px solid var(--bg); border-radius: 10px; }
	::-webkit-scrollbar-thumb:hover { background: var(--muted); }
	::-webkit-scrollbar-track { background: transparent; }
}
/* Windows 高对比度模式 */
@media (forced-colors: active) {
	.card, .widget, .article, .comments, .pick, .post-nav-item { border: 1px solid CanvasText; }
	.slider-dots button[aria-selected="true"], .read-progress { background: Highlight; }
}
/* 图片载入时淡入（由 main.js 标记 is-loading） */
img.is-loading { opacity: 0; }
img.is-loaded { transition: opacity .5s var(--ease), transform .7s var(--ease); }

/* 宋体标题的公共设定：首个标点悬挂、禁止伪粗/伪斜 */
.serif,
.brand-name, .slide-title, .pick.is-lead .pick-title, .section-head h2, .page-title,
.card-title, .article-title, .entry-content h2, .entry-content h3, .entry-content p.is-heading,
.related-title, .post-nav-item b, .not-found h1 {
	font-family: var(--font-serif);
	font-weight: 600;
	text-spacing-trim: trim-start;
	font-synthesis: none;
}

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	height: 42px; padding: 0 24px; border-radius: 999px;
	background: var(--brand); color: var(--on-brand); font-size: 14px; letter-spacing: .08em;
	transition: background .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--brand-ink); color: var(--on-brand); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink-2); border: 1px solid var(--line); }
.btn-ghost:hover { background: transparent; color: var(--brand); border-color: var(--brand); }

.chip {
	display: inline-flex; align-items: center; height: 24px; padding: 0 10px;
	border-radius: 999px; font-size: 12px; letter-spacing: .06em;
	background: var(--brand-soft); color: var(--brand);
}

.thumb { position: relative; display: block; overflow: hidden; background: var(--surface-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), opacity .4s; }
.thumb-placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--brand-faint); font-size: 28px; }
/* 图片外缘的极细描边，让浅色图片在白底上也有轮廓 */
.thumb::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05); pointer-events: none; }
html.dark .thumb img { opacity: .92; }

.admin-notice {
	max-width: var(--container); margin: 16px auto 0; padding: 10px 16px; border-radius: var(--radius-sm);
	background: #fff6e0; color: #6b4b10; font-size: 14px;
}
.admin-notice a { text-decoration: underline; }

/* ==========================================================================
   3. 页头
   ========================================================================== */
.site-header {
	position: relative; z-index: 50;
	background: var(--surface);
	background: color-mix(in srgb, var(--surface) 82%, transparent);
	-webkit-backdrop-filter: saturate(1.5) blur(16px);
	backdrop-filter: saturate(1.5) blur(16px);
	border-bottom: 1px solid var(--line-2);
	transition: box-shadow .25s var(--ease);
}
.site-header.is-sticky { position: sticky; top: 0; }
.admin-bar .site-header.is-sticky { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header.is-sticky { top: 0; } }
.site-header.is-sticky.is-scrolled { box-shadow: 0 8px 28px -16px rgba(0, 0, 0, .22); }

.header-inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-logo { width: 38px; height: 38px; border-radius: 11px; object-fit: cover; }
.brand-mark {
	display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
	background: linear-gradient(145deg, #3b8158, var(--brand) 60%, #234f36); color: #fff; font-size: 20px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 4px 10px -4px rgba(45, 106, 70, .55);
}
html.dark .brand-mark { background: linear-gradient(145deg, #4d8c66, #2d6a46); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 21px; letter-spacing: .16em; margin-right: -.16em; }
.brand-tag { margin-top: 5px; font: 400 9.5px/1 var(--font-sans); letter-spacing: .22em; color: var(--muted); white-space: nowrap; }

.main-nav { flex: 1; margin-left: 40px; }
.main-nav .menu { display: flex; align-items: center; gap: 6px; }
.main-nav .menu > li { position: relative; }
.main-nav .menu > li > a {
	position: relative; display: flex; align-items: center; height: var(--header-h); padding: 0 14px;
	font-size: 15px; letter-spacing: .06em; color: var(--ink-2);
}
.main-nav .menu > li > a::after {
	content: ""; position: absolute; left: 50%; bottom: 16px; width: 16px; height: 2px; margin-left: -8px;
	border-radius: 2px; background: var(--brand); transform: scaleX(0); transition: transform .25s var(--ease);
}
.main-nav .menu > li > a:hover { color: var(--ink); }
.main-nav .menu > li > a:hover::after { transform: scaleX(.6); }
.main-nav .menu > li.current-menu-item > a,
.main-nav .menu > li.current-menu-ancestor > a,
.main-nav .menu > li.current-post-ancestor > a,
.main-nav .menu > li.current-category-ancestor > a { color: var(--brand); font-weight: 600; }
.main-nav .menu > li.current-menu-item > a::after,
.main-nav .menu > li.current-menu-ancestor > a::after,
.main-nav .menu > li.current-post-ancestor > a::after,
.main-nav .menu > li.current-category-ancestor > a::after { transform: none; }
.main-nav .sub-menu {
	position: absolute; top: calc(100% - 8px); left: 0; min-width: 180px; padding: 6px;
	background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(-4px);
	transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--ink-2); }
.main-nav .sub-menu a:hover { background: var(--surface-2); color: var(--brand); }

.header-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.icon-btn {
	display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
	font-size: 19px; color: var(--ink-2); transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.when-dark { display: none; }
html.dark .when-dark { display: block; }
html.dark .when-light { display: none; }

.search-panel { padding: 16px 0 20px; border-top: 1px solid var(--line-2); animation: fade-down .2s var(--ease); }
.search-panel .search-form { max-width: 640px; margin: 0 auto; }

.search-form {
	position: relative; display: flex; align-items: center; height: 46px;
	background: var(--surface-2); border: 1px solid transparent; border-radius: 999px;
	transition: border-color .2s, background .2s, box-shadow .2s;
}
.search-form:focus-within { background: var(--surface); border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.search-form > .icon { position: absolute; left: 16px; color: var(--muted); font-size: 17px; pointer-events: none; }
.search-form input {
	flex: 1; min-width: 0; height: 100%; padding: 0 8px 0 44px; border: 0; background: none; outline: 0; font-size: 15px;
}
.search-form input::placeholder { color: var(--muted); }
.search-form input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-form button {
	height: 36px; margin-right: 5px; padding: 0 18px; border-radius: 999px;
	background: var(--brand); color: var(--on-brand); font-size: 14px; letter-spacing: .1em;
}

.only-mobile { display: none; }

@media (max-width: 960px) {
	.main-nav { display: none; }
	.only-mobile { display: grid; margin-left: -8px; }
	.header-inner { gap: 4px; }
	.brand { gap: 10px; }
	.brand-name { font-size: 19px; }
	.brand-tag { display: none; }
	.brand-logo, .brand-mark { width: 34px; height: 34px; font-size: 18px; border-radius: 10px; }
}

/* 阅读进度条 */
.read-progress {
	position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: 3px;
	background: linear-gradient(90deg, var(--brand), #6aa982);
	transform: scaleX(0); transform-origin: 0 50%;
}
.admin-bar .read-progress { top: 32px; }

/* 抽屉菜单 */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 100; }
.drawer-backdrop { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(10, 16, 12, .45); opacity: 0; transition: opacity .25s var(--ease); }
.drawer-panel {
	position: absolute; top: 0; bottom: 0; left: 0; width: min(84vw, 340px);
	display: flex; flex-direction: column; gap: 18px; padding: 16px 18px max(16px, env(safe-area-inset-bottom));
	background: var(--surface); box-shadow: var(--shadow-lg); overflow-y: auto;
	transform: translateX(-100%); transition: transform .28s var(--ease);
}
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-nav .menu > li { border-bottom: 1px solid var(--line-2); }
.drawer-nav li { position: relative; }
.drawer-nav a { display: block; padding: 14px 44px 14px 2px; font-size: 16px; letter-spacing: .06em; color: var(--ink); }
.drawer-nav .current-menu-item > a { color: var(--brand); font-weight: 600; }
.drawer-nav .sub-menu { display: none; padding: 0 0 8px 12px; }
.drawer-nav .sub-menu a { padding: 9px 4px; font-size: 15px; color: var(--ink-2); }
.drawer-nav .is-open > .sub-menu { display: block; }
.submenu-toggle {
	position: absolute; top: 8px; right: 0; display: grid; place-items: center;
	width: 38px; height: 38px; font-size: 18px; color: var(--muted); transition: transform .2s;
}
.is-open > .submenu-toggle { transform: rotate(180deg); }

/* ==========================================================================
   4. 区块标题（英文斜体小标签 + 中文宋体 + 细线）
   ========================================================================== */
.section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.section-head .kicker {
	font: italic 400 15px/1 var(--font-latin); letter-spacing: .02em; color: var(--brand);
	font-synthesis: none;
}
.section-head h2 { display: flex; align-items: baseline; gap: 10px; font-size: 21px; letter-spacing: .08em; white-space: nowrap; }
.section-head h2 small { font: 400 13px var(--font-sans); letter-spacing: .02em; color: var(--muted); }
.section-rule { flex: 1; align-self: center; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }

/* ==========================================================================
   5. 首页焦点区
   ========================================================================== */
.hero { padding: 24px 0 4px; }
.hero-grid { display: grid; gap: 16px; }
@media (min-width: 992px) {
	.hero { padding-top: 36px; }
	.hero-grid { grid-template-columns: minmax(0, 1.72fr) minmax(0, 1fr); gap: var(--gap); }
}

.slider { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow); isolation: isolate; }
.slider-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 16 / 10; }
@media (min-width: 992px) {
	.slider { display: flex; flex-direction: column; }
	.slider-track { flex: 1; aspect-ratio: auto; min-height: 400px; }
}
.slider-track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; color: #fff; }
.slide:hover { color: #fff; }
.slide img, .slide .thumb-placeholder { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.slide:hover img { transform: scale(1.035); }
.slide::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: linear-gradient(180deg, rgba(8, 14, 10, 0) 30%, rgba(8, 14, 10, .35) 60%, rgba(8, 14, 10, .82) 100%); }
.slide-caption {
	position: absolute; z-index: 1; left: 0; right: 0; bottom: 0;
	display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
	padding: 20px 20px 52px;
}
.slide-kicker { font-size: 12px; letter-spacing: .24em; color: rgba(255, 255, 255, .78); }
.slide-kicker::before { content: ""; display: inline-block; width: 18px; height: 1px; margin-right: 10px; vertical-align: middle; background: currentColor; }
.slide-title { max-width: 30em; font-size: clamp(21px, 2.7vw, 32px); line-height: 1.38; letter-spacing: .03em; text-wrap: pretty; text-shadow: 0 2px 16px rgba(0, 0, 0, .3); }
.slide-excerpt { display: none; max-width: 36em; font-size: 14px; line-height: 1.8; letter-spacing: .02em; color: rgba(255, 255, 255, .8); }
@media (min-width: 768px) {
	.slide-caption { padding: 36px 40px 60px; }
	.slide-excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
/* 小屏：轮播改为 4:3，给标题留足空间；标题最多三行 */
@media (max-width: 639px) {
	.slider-track { aspect-ratio: 4 / 3; }
	.slide-caption { padding: 16px 16px 50px; gap: 8px; }
	.slide-title { font-size: clamp(19px, 5.6vw, 23px); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
	.slider .slider-arrow { display: none; }
}
/* 平板：焦点图通栏时改为 2:1，避免占满一屏 */
@media (min-width: 640px) and (max-width: 991px) {
	.slider-track { aspect-ratio: 2 / 1; }
}
/* 横屏手机等矮屏：焦点图不超过可视高度的 75% */
@media (max-width: 991px) {
	.slider-track { width: 100%; max-height: 75vh; min-height: 220px; }
}
@supports not (aspect-ratio: 1 / 1) {
	@media (max-width: 639px) { .slider-track { height: 75vw; } }
	@media (min-width: 640px) and (max-width: 991px) { .slider-track { height: 50vw; } }
}
.slider-ui { position: absolute; z-index: 2; left: 20px; right: 16px; bottom: 18px; display: flex; align-items: center; gap: 6px; }
@media (min-width: 768px) { .slider-ui { left: 40px; right: 24px; bottom: 22px; } }
.slider-dots { display: flex; gap: 6px; margin-right: auto; }
.slider-dots button { position: relative; width: 18px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .35); transition: width .35s var(--ease), background .3s; }
.slider-dots button::before { content: ""; position: absolute; top: -10px; right: -2px; bottom: -10px; left: -2px; }
.slider-dots button[aria-selected="true"] { width: 34px; background: #fff; }
.slider-arrow {
	display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .28); color: #fff; font-size: 15px;
	background: rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .2s;
}
.slider-arrow:hover { background: rgba(255, 255, 255, .24); }

.picks { display: grid; gap: 14px; align-content: start; }
.pick {
	display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 16px; align-items: center;
	padding: 12px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm);
	transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.pick:hover { color: inherit; box-shadow: var(--shadow); transform: translateY(-2px); }
.pick .thumb { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); }
.pick:hover img { transform: scale(1.05); }
.pick-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pick-cat { font-size: 12px; letter-spacing: .12em; color: var(--brand); }
.pick-title { font-size: 15px; font-weight: 600; line-height: 1.55; letter-spacing: .02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pick:hover .pick-title { color: var(--brand); }
.pick time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pick.is-lead { grid-template-columns: 1fr; padding: 0; overflow: hidden; gap: 0; }
.pick.is-lead .thumb { aspect-ratio: 32 / 15; border-radius: 0; }
.pick.is-lead .pick-body { padding: 16px 20px 20px; }
.pick.is-lead .pick-title { font-size: 18px; line-height: 1.5; letter-spacing: .03em; }
@media (max-width: 991px) {
	.picks { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
	.pick.is-lead { grid-template-columns: 108px minmax(0, 1fr); padding: 12px; gap: 16px; }
	.pick.is-lead .thumb { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); }
	.pick.is-lead .pick-body { padding: 0; }
	.pick.is-lead .pick-title { font-family: inherit; font-size: 15px; }
}
/* 平板：精选三栏等宽，图上文下 */
@media (min-width: 640px) and (max-width: 991px) {
	.picks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.pick, .pick.is-lead { grid-template-columns: 1fr; align-content: start; gap: 0; padding: 0; overflow: hidden; }
	.pick .thumb, .pick.is-lead .thumb { aspect-ratio: 16 / 10; border-radius: 0; }
	.pick .pick-body, .pick.is-lead .pick-body { padding: 12px 14px 14px; }
}
/* 手机：精选改为可横向滑动的一行 */
@media (max-width: 639px) {
	.picks {
		display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
		margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scroll-padding: 0 var(--gutter);
	}
	.picks::-webkit-scrollbar { display: none; }
	.pick, .pick.is-lead { flex: 0 0 84%; scroll-snap-align: start; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; }
	.pick:hover { transform: none; }
}

.cat-strip { display: flex; gap: 10px; padding-top: 22px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: none; }
.cat-strip::-webkit-scrollbar { display: none; }
.cat-strip a {
	flex: none; display: inline-flex; align-items: baseline; gap: 8px; height: 38px; line-height: 38px; padding: 0 18px;
	background: var(--surface); border-radius: 999px; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line-2);
	font-size: 14px; letter-spacing: .06em; color: var(--ink-2); transition: all .2s var(--ease);
}
.cat-strip a:hover { color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.cat-strip small { font: italic 400 13px var(--font-latin); color: var(--muted); font-variant-numeric: lining-nums; }

/* ==========================================================================
   6. 布局 / 页面标题
   ========================================================================== */
.layout { display: grid; gap: var(--gap); padding-top: 32px; padding-bottom: 64px; }
@media (min-width: 992px) {
	.layout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; }
}
@media (min-width: 1200px) {
	.layout { grid-template-columns: minmax(0, 1fr) 320px; }
}
.content { min-width: 0; }

.page-hero { padding: 40px 0 0; }
.page-title { margin-top: 14px; font-size: clamp(26px, 3.6vw, 38px); letter-spacing: .06em; }
.page-desc { max-width: 40em; margin-top: 12px; color: var(--ink-2); letter-spacing: .02em; line-height: 1.85; }
.page-count { margin-top: 10px; font-size: 13px; color: var(--muted); }
.page-count::before { content: ""; display: inline-block; width: 18px; height: 1px; margin-right: 10px; vertical-align: middle; background: var(--brand); }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.breadcrumb a { display: inline-flex; align-items: center; gap: 4px; }
.breadcrumb .sep { opacity: .45; }
.breadcrumb [aria-current] { color: var(--ink-2); }

/* ==========================================================================
   7. 文章列表：同一张纸面上用细线分隔，比一张张悬浮卡片更沉静
   ========================================================================== */
.post-list {
	background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm);
	padding: 0 18px;
}
@media (min-width: 768px) { .post-list { padding: 0 28px; } }

.card { position: relative; padding: 20px 0; }
.card + .card { border-top: 1px solid var(--line-2); }
.card:hover .thumb img { transform: scale(1.045); }
.card-title { font-size: 19px; line-height: 1.5; letter-spacing: .03em; }
.card-title a { transition: color .2s; }
.card-title a::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 0; }
.card:hover .card-title a { color: var(--brand); }
.card-excerpt {
	margin-top: 8px; color: var(--ink-2); font-size: 14.5px; line-height: 1.85; letter-spacing: .02em;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card .post-meta { position: relative; z-index: 1; margin-top: auto; padding-top: 12px; }

.card-row { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 16px; }
.card-row .thumb { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); align-self: start; }
.card-row .card-body { display: flex; flex-direction: column; min-width: 0; }
.card-row .card-title { font-size: 16.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-row .card-excerpt { display: none; }
/* 手机上信息行只保留分类与日期，避免折行后出现孤立的分隔点 */
@media (max-width: 639px) { .card .post-meta > :nth-child(n+3) { display: none; } }
@media (min-width: 640px) {
	.card { padding: 26px 0; }
	.card-row { grid-template-columns: 224px minmax(0, 1fr); gap: 26px; }
	.card-row .card-title { font-size: 19px; }
	.card-row .card-excerpt { display: -webkit-box; }
}

.card-image .thumb { aspect-ratio: 16 / 7; border-radius: var(--radius-sm); }
.card-image .card-body { display: flex; flex-direction: column; padding-top: 18px; }
.card-image .card-title { font-size: 22px; }

.card-gallery { display: flex; flex-direction: column; gap: 14px; }
.card-gallery-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.card-gallery-grid .thumb { aspect-ratio: 4 / 3; border-radius: 8px; }
@media (max-width: 639px) { .card-gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.card-gallery .post-meta { padding-top: 0; }

.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: 12.5px; letter-spacing: .02em; color: var(--muted); }
.post-meta > * { display: inline-flex; align-items: center; gap: 5px; }
.post-meta > * + *::before { content: ""; width: 3px; height: 3px; margin: 0 10px; border-radius: 50%; background: currentColor; opacity: .45; }
.post-meta .meta-cat { color: var(--brand); }
.post-meta .meta-cat:hover { color: var(--brand-ink); }
.post-meta .icon { font-size: 13px; }
.post-meta time, .post-meta span { font-variant-numeric: tabular-nums; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 36px; }
.pagination .page-numbers {
	display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px;
	border-radius: 999px; color: var(--ink-2); font-variant-numeric: tabular-nums; transition: all .2s;
}
.pagination a.page-numbers:hover { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); }
.pagination .current { background: var(--brand); color: var(--on-brand); }
.pagination .dots { color: var(--muted); }

.load-more { margin-top: 32px; text-align: center; }
.load-more .is-loading { pointer-events: none; opacity: .7; }
.load-end { font-size: 13px; letter-spacing: .1em; color: var(--muted); }

.empty-state { padding: 64px 24px; text-align: center; background: var(--surface); border-radius: var(--radius); color: var(--ink-2); }
.empty-state > .icon { margin: 0 auto 14px; font-size: 40px; color: var(--brand); }
.empty-state .search-form { max-width: 420px; margin: 22px auto 0; }

/* ==========================================================================
   8. 侧栏与小工具
   ========================================================================== */
.sidebar { min-width: 0; }
.sidebar-inner { display: grid; gap: 20px; }
/* 只让最后一个模块（文章页为目录）吸附，避免侧栏过长时底部永远看不到。 */
@media (min-width: 992px) {
	.sidebar { align-self: stretch; }
	.sidebar-inner { height: 100%; align-content: start; }
	.sidebar-inner > :last-child { position: sticky; top: 24px; }
	.site-header.is-sticky ~ .site-main .sidebar-inner > :last-child { top: calc(var(--header-h) + 24px); }
}

.widget { padding: 22px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.widget-title {
	display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2);
	font-size: 15px; font-weight: 600; letter-spacing: .14em;
}
.widget-title::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: var(--brand); }
.widget-empty { font-size: 14px; color: var(--muted); }
.widget .search-form { height: 42px; }
.widget .search-form button { height: 32px; padding: 0 14px; }

.w-posts { display: grid; }
.w-post + .w-post { border-top: 1px dashed var(--line); }
.w-post a { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 12px 0; }
.w-rank { font: italic 400 20px/1 var(--font-latin); color: var(--brand-faint); font-variant-numeric: lining-nums; font-synthesis: none; }
.w-post:nth-child(-n+3) .w-rank { color: var(--brand); }
.w-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.w-title { font-size: 14px; line-height: 1.6; letter-spacing: .02em; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.w-post a:hover .w-title { color: var(--brand); }
.w-meta { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.w-post.is-lead a { grid-template-columns: 1fr; gap: 12px; padding-top: 2px; }
.w-thumb { display: block; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.w-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.w-post a:hover img { transform: scale(1.05); }
.w-post.is-lead .w-title { font-family: var(--font-serif); font-size: 16px; font-weight: 600; line-height: 1.55; letter-spacing: .03em; }

.w-comments { display: grid; gap: 16px; }
.w-comments li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; }
.w-comments img { width: 32px; height: 32px; border-radius: 50%; }
.w-comments a { font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.w-comments span { font-size: 12px; color: var(--muted); }

.w-author { display: grid; grid-template-columns: 52px 1fr; gap: 4px 12px; align-items: center; margin-bottom: 8px; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.w-author img { width: 52px; height: 52px; border-radius: 50%; }
.w-author b { display: block; font-size: 16px; letter-spacing: .04em; }
.w-author span { font-size: 12px; color: var(--muted); }
.w-author p { grid-column: 1 / -1; margin-top: 8px; font-size: 13px; line-height: 1.75; color: var(--ink-2); }

.tag-cloud, .article-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tag-cloud { justify-content: flex-start; }
.tag-cloud a, .article-tags a {
	display: inline-flex; align-items: center; height: 30px; padding: 0 13px;
	border-radius: 999px; background: var(--surface-2); color: var(--ink-2); font-size: 13px; letter-spacing: .04em;
}
.tag-cloud a::before, .article-tags a::before { content: "#"; margin-right: 3px; font-family: var(--font-latin); color: var(--brand); opacity: .7; }
.tag-cloud a:hover, .article-tags a:hover { background: var(--brand-soft); color: var(--brand); }

/* 默认小工具 */
.widget_recent_entries ul { display: grid; }
.widget_recent_entries li { padding: 10px 0; font-size: 14px; line-height: 1.6; letter-spacing: .02em; }
.widget_recent_entries li + li { border-top: 1px dashed var(--line); }
.widget_recent_entries li a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.widget_recent_entries .post-date { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.widget_media_image { padding: 0; overflow: hidden; }
.widget_media_image .widget-title { margin: 22px 22px 0; }
.widget_media_image img { width: 100%; }
.widget_text { font-size: 14px; color: var(--ink-2); }

/* 文章目录 */
.toc ol { position: relative; display: grid; max-height: 62vh; overflow-y: auto; border-left: 1px solid var(--line); scrollbar-width: thin; }
.toc a {
	display: block; margin-left: -1px; padding: 6px 0 6px 14px; border-left: 2px solid transparent;
	font-size: 13.5px; line-height: 1.55; letter-spacing: .02em; color: var(--ink-2);
	transition: color .2s, border-color .2s;
}
.toc .is-sub a { padding-left: 26px; font-size: 13px; color: var(--muted); }
.toc a:hover { color: var(--brand); }
.toc a.is-active { color: var(--brand); border-left-color: var(--brand); font-weight: 600; }
@media (max-width: 991px) { .toc { display: none; } }
/* 平板：侧栏排成两列，避免一长串单列 */
@media (min-width: 640px) and (max-width: 991px) {
	.sidebar.has-many .sidebar-inner { display: block; columns: 2; column-gap: 20px; }
	.sidebar.has-many .sidebar-inner > * { display: inline-block; width: 100%; margin-bottom: 20px; break-inside: avoid; }
	.sidebar.has-many .sidebar-inner > .toc { display: none; }
}

/* ==========================================================================
   9. 文章页
   ========================================================================== */
.article { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 26px 20px 30px; }
@media (min-width: 768px) { .article { padding: 48px 64px 48px; } }
@media (min-width: 1200px) { .article { padding: 56px 80px 52px; } }

.article-header { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-bottom: 26px; margin-bottom: 34px; border-bottom: 1px solid var(--line-2); }
.article-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; font-size: 13px; letter-spacing: .1em; color: var(--muted); }
.article-kicker a { color: var(--brand); font-weight: 600; }
.article-kicker span[aria-hidden] { opacity: .4; }
.article-title { font-size: clamp(26px, 3.7vw, 37px); line-height: 1.42; letter-spacing: .03em; }

.article-byline { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 4px; }
.article-byline > img { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--line); }
.byline-who { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.byline-author { font-size: 14px; font-weight: 600; letter-spacing: .06em; color: var(--ink); }
.byline-who .post-meta { font-size: 12px; }
/* 窄屏：信息行不折行，最窄时只留日期与阅读数 */
.byline-who .post-meta { flex-wrap: nowrap; white-space: nowrap; }
@media (max-width: 400px) { .byline-who .post-meta > :nth-child(n+3) { display: none; } }

.reader-tools { position: relative; margin-left: auto; }
.reader-toggle {
	display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
	font: 400 15px/1 var(--font-latin); color: var(--ink-2); transition: all .2s;
}
.reader-toggle:hover, .reader-toggle[aria-expanded="true"] { border-color: var(--brand); color: var(--brand); }
.reader-panel {
	position: absolute; z-index: 30; top: calc(100% + 10px); right: 0; width: 248px; padding: 16px;
	background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg);
	animation: fade-down .18s var(--ease);
}
.reader-label { margin: 0 0 8px; font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.reader-label + .seg { margin-bottom: 14px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border-radius: 10px; background: var(--surface-2); }
.seg:last-child { margin-bottom: 0; }
.seg button { height: 32px; border-radius: 8px; font-size: 13px; color: var(--ink-2); transition: all .2s; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--brand); font-weight: 600; box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.seg .is-serif { font-family: var(--font-serif); }

/* —— 正文排版 —— */
.entry-content {
	font-size: var(--fs-body);
	line-height: 1.92;
	letter-spacing: .025em;
	color: var(--ink);
	hanging-punctuation: allow-end;
}
html[data-font="serif"] .entry-content { font-family: var(--font-serif); letter-spacing: .03em; }
.entry-content > * + * { margin-top: 1.05em; }
.entry-content > :first-child { margin-top: 0; }
.entry-content p, .entry-content li, .entry-content blockquote { text-wrap: pretty; }
.entry-content a {
	color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .28em;
	text-decoration-color: var(--brand-faint);
	text-decoration-color: color-mix(in srgb, var(--brand) 35%, transparent);
}
.entry-content a:hover { text-decoration-color: currentColor; }

/* 加粗：轻量荧光笔底纹 */
.entry-content strong, .entry-content b {
	font-weight: 600; color: var(--ink);
	background: linear-gradient(transparent 62%, var(--mark) 0);
	-webkit-box-decoration-break: clone; box-decoration-break: clone;
}
/* 斜体：只给西文（如学名 Adenium obesum）用真正的意大利体；中文不做伪斜体 */
.entry-content em, .entry-content i, .entry-content cite {
	font-style: italic; font-synthesis: none; letter-spacing: .01em;
	font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "ZWD Punct", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}
html[data-font="serif"] .entry-content em,
html[data-font="serif"] .entry-content i {
	font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "ZWD Serif Site", "ZWD Serif", "Noto Serif SC", "Songti SC", serif;
}
.entry-content mark { background: var(--mark); color: inherit; padding: 0 .1em; }
.entry-content small { font-size: .85em; color: var(--ink-2); }

/* 导语 */
.entry-content p.is-lead {
	position: relative; padding-left: 1.2em; font-size: 1.06em; line-height: 1.95; color: var(--ink-2);
}
.entry-content p.is-lead::before { content: ""; position: absolute; left: 0; top: .5em; bottom: .5em; width: 3px; border-radius: 2px; background: var(--brand-faint); }

/* 小标题（含 <p><strong>一、xxx</strong></p> 写法） */
.entry-content h2, .entry-content p.is-heading {
	margin-top: 2.3em; margin-bottom: -.1em; font-size: 1.3em; line-height: 1.5; letter-spacing: .05em; color: var(--ink);
}
.entry-content p.is-heading strong { background: none; font-weight: inherit; }
.entry-content h3 { margin-top: 1.9em; font-size: 1.13em; letter-spacing: .04em; }
.entry-content h4 { margin-top: 1.6em; font-size: 1em; font-weight: 600; }
.entry-content .h-num {
	display: inline-grid; place-items: center; min-width: 1.75em; height: 1.75em; margin-right: .55em; padding: 0 .3em;
	border-radius: 7px; font-size: .78em; line-height: 1; vertical-align: .14em; letter-spacing: 0; text-indent: 0;
	background: var(--brand-soft); color: var(--brand);
}

.entry-content ul, .entry-content ol { padding-left: 1.5em; }
.entry-content ul { list-style: none; }
.entry-content ul > li { position: relative; }
.entry-content ul > li::before { content: ""; position: absolute; left: -1em; top: .82em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); opacity: .7; }
.entry-content ol { list-style: decimal; }
.entry-content ol > li::marker { color: var(--brand); font-family: var(--font-latin); font-style: italic; }
.entry-content li + li { margin-top: .4em; }

.entry-content figure { margin-inline: 0; }
.entry-content > figure, .entry-content > .wp-block-image { margin-top: 1.8em; margin-bottom: 1.8em; }
.entry-content img { margin-inline: auto; border-radius: 12px; cursor: zoom-in; }
.entry-content .wp-block-image, .entry-content figure.wp-caption { text-align: center; }
.entry-content .wp-block-image img { max-height: 78vh; width: auto; }
.entry-content figcaption, .entry-content .wp-caption-text {
	margin-top: 12px; font-size: 13px; line-height: 1.7; letter-spacing: .06em; color: var(--muted); text-align: center;
}
.entry-content figcaption::before, .entry-content .wp-caption-text::before {
	content: ""; display: inline-block; width: 14px; height: 1px; margin-right: 8px; vertical-align: middle; background: currentColor; opacity: .6;
}
.entry-content .aligncenter { margin-inline: auto; }
.entry-content .alignleft { float: left; margin: .3em 1.4em 1em 0; }
.entry-content .alignright { float: right; margin: .3em 0 1em 1.4em; }

.entry-content blockquote {
	position: relative; margin-inline: 0; padding: 1em 1.3em 1em 2.6em;
	background: var(--surface-2); border-radius: 12px; color: var(--ink-2);
}
.entry-content blockquote::before {
	content: "“"; position: absolute; left: .45em; top: .1em; font: 400 2.4em/1 var(--font-serif); color: var(--brand-faint);
}
.entry-content blockquote > * + * { margin-top: .6em; }
.entry-content hr { width: 64px; height: 1px; margin: 2.6em auto; border: 0; background: var(--line); }
.entry-content code { padding: .12em .42em; border-radius: 5px; background: var(--surface-2); font: .86em var(--font-mono); letter-spacing: 0; }
.entry-content pre { padding: 16px 20px; border-radius: 12px; background: var(--surface-2); overflow-x: auto; font-size: 14px; line-height: 1.7; letter-spacing: 0; }
.entry-content pre code { padding: 0; background: none; font-size: inherit; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .9em; line-height: 1.7; }
.entry-content th, .entry-content td { padding: 10px 16px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.entry-content th { background: var(--surface-2); font-weight: 600; white-space: nowrap; letter-spacing: .06em; }
.entry-content tr:last-child td { border-bottom: 0; }
.entry-content iframe, .entry-content video { max-width: 100%; border-radius: 12px; }
.page-links { display: flex; gap: 8px; }

/* 文末记号 */
.article-end { display: flex; align-items: center; gap: 16px; margin: 44px 0 0; color: var(--brand-faint); }
.article-end::before, .article-end::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line)); }
.article-end::after { background: linear-gradient(90deg, var(--line), transparent); }
.article-end span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); font-size: 15px; color: var(--brand); }

.article-footer { display: flex; flex-direction: column; align-items: center; gap: 22px; margin-top: 30px; }
.article-actions { display: flex; align-items: center; justify-content: center; gap: 12px; }
.like-btn {
	display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 24px;
	border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); font-size: 15px; letter-spacing: .08em;
	transition: all .25s var(--ease);
}
.like-btn .icon { font-size: 18px; transition: transform .35s var(--ease); }
.like-btn b { font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.like-btn:hover { border-color: #d0624f; color: #d0624f; }
.like-btn.is-done { background: #fcecea; border-color: #f1c3bb; color: #c24a38; }
html.dark .like-btn.is-done { background: #352220; border-color: #5a3330; color: #f19b8d; }
.like-btn.is-done .icon { fill: currentColor; transform: scale(1.12); }
.ghost-link { display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 18px; color: var(--ink-2); font-size: 15px; letter-spacing: .08em; }

.post-nav { display: grid; gap: 14px; margin-top: 22px; }
@media (min-width: 640px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav-item {
	display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px;
	background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm);
	transition: box-shadow .3s var(--ease), transform .3s var(--ease);
}
.post-nav-item:hover { color: inherit; box-shadow: var(--shadow); transform: translateY(-2px); }
.post-nav-item .thumb { aspect-ratio: 4 / 3; border-radius: 8px; }
.post-nav-item small { display: block; margin-bottom: 3px; font-size: 12px; letter-spacing: .14em; color: var(--muted); }
.post-nav-item b { font-size: 15px; line-height: 1.55; letter-spacing: .02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-nav-item:hover b { color: var(--brand); }
.post-nav-item.is-next { grid-template-columns: minmax(0, 1fr) 76px; text-align: right; }
.post-nav-item.is-next .thumb { order: 2; }
.post-nav-item.is-empty { background: none; box-shadow: none; }
@media (max-width: 639px) { .post-nav-item.is-empty { display: none; } }

.related { margin-top: 44px; }
.related-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
@media (min-width: 768px) { .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 20px; } }
.related-item { display: flex; flex-direction: column; gap: 12px; }
.related-item .thumb { aspect-ratio: 20 / 13; border-radius: 12px; }
.related-item:hover img { transform: scale(1.045); }
.related-title { font-size: 15.5px; line-height: 1.6; letter-spacing: .03em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ==========================================================================
   10. 评论
   ========================================================================== */
.comments { margin-top: 44px; padding: 26px 20px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
@media (min-width: 768px) { .comments { padding: 36px 44px; } }
.comment-respond { margin-bottom: 8px; }
.comment-list .comment-respond { margin: 16px 0 8px; padding: 16px; border-radius: 12px; background: var(--surface-2); }
.comment-reply-title { display: flex; justify-content: space-between; align-items: center; font-size: 15px; margin-bottom: 10px; letter-spacing: .04em; }
.comment-respond > .comment-reply-title { display: none; }
.comment-list .comment-respond > .comment-reply-title { display: flex; gap: 12px; color: var(--ink-2); font-weight: 600; }
.comment-reply-title small a { font-size: 13px; font-weight: 400; color: var(--muted); }
.comment-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.comment-form > p { margin: 0; }
.comment-form-comment, .form-submit, .comment-form-cookies-consent, .comment-form .logged-in-as { grid-column: 1 / -1; }
@media (max-width: 639px) { .comment-form-author, .comment-form-email, .comment-form-url { grid-column: 1 / -1; } }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 11px 15px; border: 1px solid var(--line); border-radius: 12px;
	background: var(--surface); font-size: 15px; letter-spacing: .02em; outline: 0; transition: border-color .2s, box-shadow .2s;
}
.comment-form ::placeholder { color: var(--muted); }
.comment-form textarea { min-height: 116px; resize: vertical; line-height: 1.8; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.comment-form-cookies-consent { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.comment-form-cookies-consent input { accent-color: var(--brand); }
.form-submit { display: flex; justify-content: flex-end; }
.form-submit .btn { border: 0; cursor: pointer; }
.form-submit .btn:disabled { opacity: .6; cursor: progress; }

.comment-list { margin-top: 24px; }
.comment-list > li + li { border-top: 1px solid var(--line-2); }
.comment-list .children { margin-left: 52px; border-left: 2px solid var(--line-2); padding-left: 16px; }
@media (max-width: 639px) { .comment-list .children { margin-left: 12px; padding-left: 12px; } }
.comment-body { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 20px 0; }
.comment-avatar img { width: 40px; height: 40px; border-radius: 50%; }
.comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.comment-author { font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.comment-head time { font-size: 12px; color: var(--muted); }
.badge { padding: 1px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-size: 11px; letter-spacing: .08em; }
.comment-content { margin-top: 6px; font-size: 15px; line-height: 1.85; letter-spacing: .02em; color: var(--ink-2); overflow-wrap: anywhere; }
.comment-content p + p { margin-top: .6em; }
.comment-at { color: var(--brand); margin-right: 2px; }
.comment-pending { margin-top: 6px; font-size: 12px; color: var(--accent); }
.comment-actions { margin-top: 6px; }
.comment-reply-link { font-size: 13px; color: var(--muted); letter-spacing: .06em; }
.comment-reply-link:hover { color: var(--brand); }
.comment-list li.is-new > .comment-body { animation: flash 1.6s var(--ease); }
.comments-empty, .comments-closed { padding: 22px 0 4px; font-size: 14px; letter-spacing: .06em; color: var(--muted); text-align: center; }
.comments .nav-links { display: flex; justify-content: center; gap: 8px; margin-top: 12px; font-size: 14px; }

/* ==========================================================================
   11. 页脚、友情链接、杂项
   ========================================================================== */
.friend-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; padding-bottom: 48px; font-size: 13px; color: var(--muted); }
.friend-links h2 { font-size: 13px; font-weight: 600; letter-spacing: .14em; color: var(--ink-2); }
.friend-links > span { opacity: .4; }
.friend-links div { display: flex; flex-wrap: wrap; gap: 6px 18px; }

.site-footer {
	position: relative; overflow: hidden; margin-top: auto; padding: 48px 0 max(28px, env(safe-area-inset-bottom));
	background: var(--surface); border-top: 1px solid var(--line-2); font-size: 13px; color: var(--muted);
}
.site-footer::before {
	/* 角落里一枚很淡的叶形，作为页脚的落款 */
	content: ""; position: absolute; right: -40px; bottom: -60px; width: 260px; height: 260px; opacity: .06; pointer-events: none;
	background: var(--brand);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M5 19c0-9 6-14 15-14 0 9-5 15-14 15'/%3E%3Cpath d='M5 19c3-4 6-6.5 9.5-8.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M5 19c0-9 6-14 15-14 0 9-5 15-14 15'/%3E%3Cpath d='M5 19c3-4 6-6.5 9.5-8.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.footer-top { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--line-2); }
.footer-brand { max-width: 440px; }
.footer-brand p { margin-top: 14px; line-height: 1.9; letter-spacing: .03em; }
.footer-nav .menu { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.footer-nav a { color: var(--ink-2); font-size: 14px; letter-spacing: .08em; }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 22px; letter-spacing: .02em; }
@media (max-width: 1360px) { .footer-bottom { padding-right: 56px; } }
.beian { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.beian a { display: inline-flex; align-items: center; gap: 5px; }
.beian img { width: 14px; height: auto; }

.to-top {
	position: fixed; z-index: 40; right: 20px; bottom: max(24px, env(safe-area-inset-bottom));
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	background: var(--surface); color: var(--ink-2); box-shadow: var(--shadow-lg), 0 0 0 1px var(--line-2); font-size: 18px;
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .25s var(--ease);
}
.to-top.is-show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--brand); }

.toast {
	position: fixed; z-index: 300; left: 50%; bottom: 40px; max-width: calc(100% - 32px);
	padding: 11px 22px; border-radius: 999px; background: var(--ink); color: var(--bg);
	font-size: 14px; letter-spacing: .04em; box-shadow: var(--shadow-lg);
	opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: all .25s var(--ease);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

.lightbox {
	position: fixed; z-index: 200; top: 0; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
	padding: 24px; background: rgba(8, 12, 10, .94); cursor: zoom-out; opacity: 0; transition: opacity .2s var(--ease);
}
.lightbox.is-open { opacity: 1; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 100px); width: auto; border-radius: 6px; object-fit: contain; }
.lightbox p { color: rgba(255, 255, 255, .78); font-size: 14px; letter-spacing: .08em; }

.not-found { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 88px var(--gutter) 104px; text-align: center; }
.not-found-mark { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 24px; background: var(--brand-soft); color: var(--brand); font-size: 36px; }
.not-found-code { font: italic 400 15px var(--font-latin); letter-spacing: .4em; color: var(--muted); }
.not-found h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: .1em; }
.not-found > p:not(.not-found-code) { color: var(--ink-2); letter-spacing: .04em; }
.not-found .search-form { width: 100%; max-width: 440px; margin: 10px 0; }

@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes flash { 0% { background: var(--brand-soft); } 100% { background: transparent; } }

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

@media print {
	.site-header, .site-footer, .sidebar, .post-nav, .related, .comments, .article-actions, .to-top, .breadcrumb, .reader-tools, .read-progress { display: none !important; }
	body { background: #fff; }
	.layout { display: block; padding: 0; }
	.article { box-shadow: none; padding: 0; }
}
