/**
 * NovaPress modern overlay — novapress-modern.css
 *
 * 2026 年视觉改版覆盖层。只做“覆盖”，不改生成的 style.css / responsive.css：
 * 本文件最后入队（依赖 iux-style 与 iux-responsive-style），用更高的
 * 特异度（body 前缀）覆盖旧规则；旧文件一旦重新编译，本文件不受影响。
 *
 * 设计语言（与 :root token 对应，见 header.php 内联 :root 与 PATCHES.md）：
 * - 颜色全部走 var()，不在此文件写死品牌色；默认值与 style.css :root 一致，
 *   自定义器改色后由 header.php 内联 :root 覆盖。
 * - 圆角、间距、阴影、内容宽度全部是 token，可在自定义器里调。
 * - 移动端默认“单行横向滚动导航”（body:not(.np-nav-grid)；
 *   nav-mobile-style 选项选“多行网格”时 body 带 np-nav-grid，恢复旧行为）。
 * - 相关推荐默认卡片式（body:not(.np-related-list)；
 *   related-style 选项选“纯文字列表”时 body 带 np-related-list，恢复旧列表）。
 * 这样即使自定义器的新选项还没加上，modern.css 单独入队也能生效；
 * 选项只是“退出开关”，不是生效前提。
 *
 * @package nova-press
 */

/* ==========================================================================
   0. 设计 token（默认值）
   与 style.css :root / header.php 内联 :root 重叠的 token 以 header.php 为准
   （内联 <style> 在 wp_head() 之后输出）；这里只给新 token 兜底值。
   ========================================================================== */
:root {
	--np-content-max: 1180px; /* 内容容器最大宽度（自定义器 content-max-width） */
	--np-header-h: 75px; /* 桌面页眉高度（吸顶偏移与滚动安全间距共用） */
	/* P0: HSL 色板。两个色相族：ink（冷灰文字，源自 #16191d / #41464e / #6b7280）
	   与 stone（暖灰边框与底面，源自 #e6e6e3 / #d8d8d4 / #fafaf8 / #f7f7f5）。
	   每个 token 只定明度，改一处色相值全族跟变；也为夜间模式铺路。
	   数值与 style.css :root 的 hex 逐一对过，渲染颜色不变。 */
	--np-ink-hs: 217 10%;
	--np-stone-hs: 60 6%;
	--np-heading: hsl(var(--np-ink-hs) 10%);
	--np-body: hsl(var(--np-ink-hs) 28%);
	--np-muted: hsl(var(--np-ink-hs) 46%);
	--np-border: hsl(var(--np-stone-hs) 90%);
	--np-border-strong: hsl(var(--np-stone-hs) 84%);
	--np-surface-2: hsl(var(--np-stone-hs) 98%);
	--np-page: hsl(var(--np-stone-hs) 97%);
	/* P0: 圆角四档 token（JustNews 式 12/8/5/3；base 与 lg 仍由自定义器驱动）。 */
	--np-radius-xs: 3px;
	--np-radius-sm: 5px;
	--np-gap: 20px;
	--np-gap-mobile: 12px;
	--np-section-gap: 24px;
	--np-list-thumb: 240px;
	--np-list-thumb-mobile: 112px;
	/* P0: 阴影改轻。默认靠 1px 发丝边框区分层次，阴影只作悬浮抬升。 */
	--np-shadow-card: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 12px -6px rgba(16, 24, 40, .10);
	--np-shadow-sm: 0 1px 2px rgba(16, 24, 40, .04);
}

/* ==========================================================================
   1. 全局
   ========================================================================== */

/* 容器宽度跟随 token；#primary 在 ≥1180px 时按“容器 - 侧栏 360 - 间距 20”跟随。 */
body .container {
	width: min(var(--np-content-max, 1180px), calc(100% - 32px));
}

@media (min-width: 1180px) {
	body #primary {
		width: calc(var(--np-content-max, 1180px) - 380px);
	}
}

/* 吸顶页眉的滚动安全间距：锚点跳转不再顶到页眉下。 */
html {
	scroll-padding-top: calc(var(--np-header-h, 75px) + 16px);
}

body .site-main,
body article.hentry {
	scroll-margin-top: calc(var(--np-header-h, 75px) + 16px);
}

/* 全站聚焦环的基线：内描边，永远不向外扩（搜索框的专用规则在 §3 再收紧）。 */
body input:focus-visible,
body textarea:focus-visible,
body select:focus-visible {
	outline: 2px solid var(--np-focus-ring, var(--np-primary));
	outline-offset: -2px;
}

/* P0: 全站图片 hover 统一 .3s ease-out + 1.02 放大（三个容器均有 overflow:hidden）。 */
body .content-list .thumbnail-wrap img,
body .home-zhuanti-list .thumbnail-wrap img,
body:not(.np-related-list) .related-content .related-thumb img {
	transition: transform .3s ease-out;
}

body .content-list .hentry:hover .thumbnail-wrap img,
body .home-zhuanti-list .zhuanti-list-item:hover .thumbnail-wrap img,
body:not(.np-related-list) .related-content ul li.hentry:hover .related-thumb img {
	transform: scale(1.02);
}

/* ==========================================================================
   2. 页眉与导航
   ========================================================================== */

/* 吸顶态加一层柔和阴影；页眉本身已有毛玻璃（style.css .site-header）。 */
body .site-header.main-nav-scrolled {
	background-color: rgba(255, 255, 255, .97);
	box-shadow: var(--np-shadow-card);
}

/* JS 没跑起来时，.header-space 仍按 token 高度占位，避免内容跳动。
   不用 !important：JS 量出的真实高度（行内样式）优先于此兜底。 */
.site-header.main-nav-scrolled + .header-space {
	display: block;
	height: var(--np-header-h, 75px);
}

/* Logo：品牌字加粗 + 负字距，仍用主题色。 */
body .site-title {
	font-size: 30px;
	font-weight: 800;
	letter-spacing: -.03em;
}

body .site-title a {
	font-weight: 800;
	letter-spacing: -.03em;
}

/* 桌面主导航：字重 500、间距收敛；当前项只保留下划线（灰底块已在移动端去掉）。 */
body #primary-nav #primary-menu > li > a {
	font-weight: 500;
	padding: 0 14px;
}

body .sf-menu li.current-menu-item > a,
body .sf-menu li.current_page_item > a {
	font-weight: 600;
}

/* ---- 移动端导航：单行横向滚动（默认，body:not(.np-nav-grid)）---- */
@media (max-width: 959px) {
	body:not(.np-nav-grid) #primary-nav {
		border-bottom: 1px solid var(--np-line);
	}

	body:not(.np-nav-grid) #primary-nav #primary-menu {
		display: flex;
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		-ms-overflow-style: none;
		gap: 2px;
		padding: 2px 4px;
	}

	body:not(.np-nav-grid) #primary-nav #primary-menu::-webkit-scrollbar {
		display: none;
	}

	/* 列宽类（phone_menu_col_* / tablet_menu_col_*）不再定宽，改为内容宽度。 */
	body:not(.np-nav-grid) #primary-nav[class*="menu_col_"] ul li,
	body:not(.np-nav-grid) #primary-nav ul li {
		flex: 0 0 auto;
		width: auto;
	}

	body:not(.np-nav-grid) #primary-nav #primary-menu > li > a {
		border-radius: var(--np-radius);
		font-size: 15px;
		font-weight: 500;
		min-height: 44px;
		padding: 10px 14px !important;
		white-space: nowrap;
	}

	body:not(.np-nav-grid) #primary-nav #primary-menu > li > a:hover,
	body:not(.np-nav-grid) #primary-nav #primary-menu > li > a:focus-visible {
		background-color: transparent;
		color: var(--np-primary-text) !important;
	}

	/* 当前项：去掉灰底块，只留品牌色文字 + 居中短下划线。 */
	body:not(.np-nav-grid) #primary-nav #primary-menu > li.current-menu-item > a,
	body:not(.np-nav-grid) #primary-nav #primary-menu > li.current_page_item > a,
	body:not(.np-nav-grid) #primary-nav #primary-menu > li.current-menu-ancestor > a {
		background-color: transparent !important;
		color: var(--np-primary-text) !important;
		font-weight: 600;
		text-decoration: none;
	}

	body:not(.np-nav-grid) #primary-nav #primary-menu > li.current-menu-item > a::after,
	body:not(.np-nav-grid) #primary-nav #primary-menu > li.current_page_item > a::after,
	body:not(.np-nav-grid) #primary-nav #primary-menu > li.current-menu-ancestor > a::after {
		bottom: 4px;
		height: 2px;
		width: 20px;
	}

	/* 网格模式（body.np-nav-grid）：只去掉灰底块，列宽行为恢复旧版。 */
	body.np-nav-grid #primary-nav #primary-menu > li.current-menu-item > a,
	body.np-nav-grid #primary-nav #primary-menu > li.current_page_item > a,
	body.np-nav-grid #primary-nav #primary-menu > li.current-menu-ancestor > a {
		background-color: transparent !important;
		color: var(--np-primary-text) !important;
	}
}

/* 移动端 Logo 与搜索图标对齐页眉 60px 高。 */
@media (max-width: 959px) {
	body .site-title {
		font-size: 26px;
	}
}

/* ==========================================================================
   3. 搜索（面板 + 聚焦内描边）
   ========================================================================== */

/* 面板：去掉廉价小三角与灰阴影，改圆角卡片 + 柔和阴影，保留 300×60 几何。 */
body .header-search {
	border: 1px solid var(--np-border);
	border-radius: var(--np-radius-lg);
	box-shadow: var(--np-shadow-card);
}

body .header-search::before {
	content: none;
}

/* 聚焦环：内描边（outline-offset: -2px），与输入框原始边缘齐平，
   绝不向外扩、不顶出面板、不与“搜索”按钮错位。 */
body .header-search input.search-input:focus-visible,
body .header-search input.search-field:focus-visible,
body input.search-input:focus-visible,
body input[type="search"]:focus-visible {
	outline: 2px solid var(--np-focus-ring, var(--np-primary));
	outline-offset: -2px;
	box-shadow: none;
}

/* 兜底：如果某处仍渲染 WordPress 核心默认表单（.search-field），
   也按面板几何排布，而不是 40px 裸输入框。 */
body .header-search .search-form label {
	display: block;
}

body .header-search input.search-field {
	border: none;
	box-sizing: border-box;
	font-size: 16px;
	height: 60px;
	padding-left: 38px;
	width: 236px;
}

body .header-search input.search-submit {
	border-radius: var(--np-radius-xs);
	box-sizing: border-box;
	height: 36px;
	padding: 0 12px;
	position: absolute;
	right: 12px;
	top: 13px;
}

/* ==========================================================================
   4. 轮播 / 头图
   ========================================================================== */

/* 页码：毛玻璃 pill 容器 + 8px 圆点，当前页拉长成 22px 胶囊；
   与图片上的分类角标（毛玻璃深色 pill）同一套语言。 */
body .bx-wrapper .bx-pager {
	align-items: center;
	background: rgba(8, 15, 26, .45);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border-radius: 999px;
	bottom: auto;
	top: 14px;
	display: flex;
	gap: 5px;
	height: auto;
	padding: 5px 8px;
	right: 14px;
}

body .bx-wrapper .bx-pager.bx-default-pager a {
	background: rgba(255, 255, 255, .5);
	border: none;
	border-radius: 50%;
	height: 6px;
	margin: 0;
	width: 6px;
}

body .bx-wrapper .bx-pager.bx-default-pager a:hover,
body .bx-wrapper .bx-pager.bx-default-pager a.active {
	background: #fff;
}

body .bx-wrapper .bx-pager.bx-default-pager a.active {
	border-radius: 999px;
	width: 16px;
}

/* 方向箭头：不再依赖缺失的 arrow-left.png 图片，改用 CSS 画的白色 chevron；
   40px 毛玻璃圆钮，触屏常显（触屏没有 hover，藏起来等于没有）。 */
body .bx-wrapper .bx-prev,
body .bx-wrapper .bx-next {
	background-color: rgba(8, 15, 26, .45);
	background-image: none;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border-radius: 50%;
	height: 40px;
	margin-top: -20px;
	opacity: 1;
	visibility: visible;
	width: 40px;
}

body .bx-wrapper .bx-prev {
	left: 14px;
}

body .bx-wrapper .bx-next {
	right: 14px;
}

body .bx-wrapper .bx-prev:hover,
body .bx-wrapper .bx-next:hover {
	background-color: rgba(8, 15, 26, .65);
	opacity: 1;
}

body .bx-wrapper .bx-controls-direction a::before {
	border: solid #fff;
	border-width: 0 2px 2px 0;
	content: "";
	height: 10px;
	left: 50%;
	position: absolute;
	top: 50%;
	width: 10px;
}

body .bx-wrapper .bx-prev::before {
	transform: translate(-30%, -50%) rotate(135deg);
}

body .bx-wrapper .bx-next::before {
	transform: translate(-70%, -50%) rotate(-45deg);
}

body .bx-wrapper .bx-controls-direction a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -2px;
}

/* 飘带：去掉黄色斜角丝带，改左上角毛玻璃小 pill。 */
body .ribbon {
	height: auto;
	left: 12px;
	overflow: visible;
	top: 12px;
	width: auto;
}

body .ribbon span {
	background: rgba(8, 15, 26, .72);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	border-radius: 999px;
	box-shadow: none;
	font-size: 12px;
	letter-spacing: .02em;
	line-height: 1.4;
	padding: 5px 12px;
	position: static;
	transform: none;
	width: auto;
}

body .ribbon span::before,
body .ribbon span::after {
	content: none;
}

/* 幻灯片标题：允许两行截断；页码已移到右上角，标题不再需要右侧留白。 */
body #featured-slider .featured-slide .entry-title {
	-webkit-box-orient: vertical;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-height: 1.4;
	overflow: hidden;
	padding: 0 16px;
	white-space: normal;
}

@media (max-width: 767px) {
	body #featured-slider .featured-slide .entry-title {
		font-size: 16px;
	}
}

/* ==========================================================================
   5. 专题区
   ========================================================================== */

body .home-zhuanti-section {
	margin-bottom: var(--np-section-gap, 24px);
}

/* 区块标题拉开层级：20px 标题 + 56px 高 + 右侧链接品牌色。 */
body .zhuanti-heading {
	padding: 0 20px;
}

body .zhuanti-heading .custom-wrap {
	height: 56px;
	line-height: 56px;
}

body .zhuanti-heading h2 {
	align-items: center;
	display: flex;
	font-size: 20px;
	font-weight: 700;
	gap: 8px;
}

body .zhuanti-heading h2::before {
	background-color: var(--np-primary);
	border-radius: var(--np-radius-xs);
	content: "";
	display: inline-block;
	height: 18px;
	width: 3px;
}

body .zhuanti-heading .section-more a {
	color: var(--np-primary-text);
	font-size: 14px;
	font-weight: 500;
}

/* 卡片网格：桌面 4 列、平板 3 列、手机 2 列；留白与间距统一用 token。 */
body .home-zhuanti-list {
	gap: 12px;
	padding: 16px;
}

body .home-zhuanti-list .zhuanti-list-item {
	transition: transform .3s ease-out, box-shadow .3s ease-out;
}

body .home-zhuanti-list .zhuanti-list-item:hover {
	transform: translateY(-2px);
}

body .home-zhuanti-list .zhuanti-list-item:hover .thumbnail-wrap {
	box-shadow: var(--np-shadow-card);
}

body .home-zhuanti-list h3.zhuanti-title {
	/* 原规则带 !important（style.css:4515），这里必须跟 !important 才能覆盖。 */
	align-items: baseline;
	display: flex;
	font-size: 14px !important;
	gap: 6px;
	padding: 24px 12px 10px;
}

body .home-zhuanti-list h3.zhuanti-title a {
	flex: 1 1 auto;
	min-width: 0;
}

body .home-zhuanti-list .zhuanti-count {
	/* 标题是压在图片上的白字 + 深色渐变，计数用 75% 白而不是静音灰，否则看不清。 */
	color: rgba(255, 255, 255, .75);
	flex: 0 0 auto;
	font-size: 12px;
	font-weight: 400;
	white-space: nowrap;
}

@media (min-width: 768px) and (max-width: 959px) {
	body .home-zhuanti-list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	/* 手机 2 列：卡片够大、标题可读；左右留白 16px，卡片不再贴边。 */
	body .home-zhuanti-list {
		gap: var(--np-gap-mobile, 12px);
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 16px;
	}

	body .zhuanti-heading {
		padding: 0 16px;
	}

	body .zhuanti-heading h2 {
		font-size: 18px;
	}

	body .home-zhuanti-list h3.zhuanti-title {
		/* 原规则带 !important（style.css:4896-4899，11px），这里必须跟上。 */
		font-size: 13px !important;
		padding: 20px 10px 8px;
	}

	body .home-zhuanti-list .zhuanti-count {
		font-size: 11px;
	}
}

/* ==========================================================================
   6. 文章列表
   ========================================================================== */

/* 桌面：行内边距 20px；标题 → 摘要 → 元信息的顺序固定，元信息贴底左对齐。 */
body .content-list .hentry {
	padding: 20px;
}

body .content-list .entry-summary {
	color: var(--np-muted);
	order: 2;
	margin-top: 8px;
}

body .content-list .entry-meta {
	gap: 4px 16px;
	justify-content: flex-start;
	margin-top: auto;
	order: 3;
	padding-top: 10px;
}

/* 评论关闭时输出的纯文本与“0评论”链接同一占位样式：同字号、同颜色、同行高。 */
body .content-list .entry-meta .entry-comment {
	color: var(--np-muted);
	font-size: inherit;
	line-height: inherit;
}

body .content-list .entry-meta .entry-comment a {
	color: var(--np-muted);
}

/* P0: 元信息数字等宽对齐（阅读数/点赞数不再忽宽忽窄）。 */
body .content-list .entry-meta,
body:not(.np-related-list) .related-content ul li .entry-meta,
body .sidebar .widget_posts_thumbnail .entry-meta {
	font-variant-numeric: tabular-nums;
}

/* “最新文章”栏目标题：19px + 与专题标题同一根 accent 竖线。 */
body .recent-heading {
	height: 60px;
	line-height: 60px;
	padding: 0 20px;
}

body .recent-heading .section-title {
	align-items: center;
	display: flex;
	font-size: 19px;
	font-weight: 700;
	gap: 8px;
}

body .recent-heading .section-title::before {
	background-color: var(--np-primary);
	border-radius: var(--np-radius-xs);
	content: "";
	display: inline-block;
	height: 18px;
	width: 3px;
}

/* ---- 手机端列表：收回全宽溢出，改回“缩略图左 + 全文案右”的规整卡片 ---- */
@media (max-width: 767px) {
	body .content-list .hentry {
		column-gap: 14px;
		grid-template-areas: "thumb body";
		grid-template-columns: var(--np-list-thumb-mobile, 112px) minmax(0, 1fr);
		padding: 16px;
		row-gap: 0;
	}

	/* 撤销旧的 display: contents 拆散：标题/摘要/元信息回到同一右列。 */
	body .content-list .hentry > .entry-body {
		display: flex;
		flex-direction: column;
		min-width: 0;
	}

	body .content-list .hentry > .thumbnail-box {
		grid-area: thumb;
		width: var(--np-list-thumb-mobile, 112px);
	}

	body .content-list .hentry .entry-header {
		grid-area: auto;
		margin-bottom: 6px;
	}

	body .content-list .entry-title {
		font-size: 16px;
		font-weight: 600;
		line-height: 1.45;
		min-height: 0;
	}

	body .content-list .hentry .entry-summary {
		font-size: 13px;
		line-height: 1.7;
		margin-top: 0;
	}

	body .content-list .hentry .entry-meta {
		flex-wrap: wrap;
		font-size: 12px;
		grid-area: auto;
		justify-content: flex-start;
		padding-top: 8px;
		white-space: normal;
	}

	body .content-list .hentry .gallery-list {
		grid-column: 1 / -1;
	}

	body .content-list .hentry:not(:has(.thumbnail-box)):not(:has(.thumbnail-link)) {
		grid-template-areas: "body";
		grid-template-columns: minmax(0, 1fr);
	}

	body .recent-heading {
		height: 54px;
		line-height: 54px;
		padding: 0 16px;
	}

	body .recent-heading .section-title {
		font-size: 17px;
	}
}

/* ==========================================================================
   7. 文章页
   ========================================================================== */

/* 面包屑：去掉灰底条，透明 + 无边框；末级是文章标题（一行截断）。 */
body .single-breadcrumbs {
	background-color: transparent;
	border: none;
	margin: 0 0 16px;
	padding: 0;
}

body .single-breadcrumbs a {
	color: var(--np-muted);
}

body .single-breadcrumbs .breadcrumb-current {
	color: var(--np-heading);
	display: inline-block;
	font-weight: 500;
	max-width: 52vw;
	overflow: hidden;
	text-overflow: ellipsis;
	vertical-align: bottom;
	white-space: nowrap;
}

/* 标题区：左对齐，与正文同一轴线；标题 28px / 手机 22px。 */
body.single #primary .entry-header {
	padding-bottom: 20px;
	margin-bottom: 24px;
	text-align: left;
}

body.single h1.entry-title {
	font-size: 28px;
	letter-spacing: -.02em;
	line-height: 1.35;
}

@media (max-width: 767px) {
	body.single h1.entry-title {
		font-size: 22px;
	}
}

/* 元信息：间距拉开；图标统一走 currentColor + 透明度弱化，不引入新字体。 */
body.single #primary .entry-header .entry-meta {
	gap: 6px 16px;
}

body.single #primary .entry-header .entry-meta .fa,
body.single #primary .entry-header .entry-meta [class*="flaticon-"] {
	color: var(--np-muted);
	font-size: 13px;
	opacity: .75;
}

body.single #primary .entry-header .entry-meta .author-avatar img,
body.single #primary .entry-header .entry-meta .avatar {
	border-radius: 50%;
	height: 28px;
	width: 28px;
}

/* 分类 pill：与正文标签同一套 pill 语言（浅底 + 细边 + 品牌色字）。 */
body.single #primary .entry-header .entry-meta .entry-category-single ul.post-categories {
	display: inline-flex;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
}

body.single #primary .entry-header .entry-meta .entry-category-single ul.post-categories li {
	display: inline-block;
	margin: 0;
}

body .entry-category-single a {
	background-color: var(--np-surface-2);
	border: 1px solid var(--np-border);
	border-radius: 999px;
	color: var(--np-primary-text);
	display: inline-block;
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	padding: 5px 11px;
}

/* ---- 正文排版 ---- */
body .entry-content {
	font-size: 16px;
}

body .entry-content p {
	margin-bottom: 22px;
}

body .entry-content h2 {
	border-bottom: 1px solid var(--np-border);
	font-size: 21px;
	font-weight: 700;
	line-height: 1.4;
	margin: 32px 0 16px;
	padding-bottom: 10px;
}

body .entry-content h3 {
	/* P4: the border-left doubled the base 8px square marker (a dot AND a
	   line on one heading). One marker per level now: h2 = vertical bar +
	   bottom rule, h3 = square only, h4 = plain primary colour. */
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
	margin: 32px 0 12px;
	padding-left: 16px;
}

body .entry-content img {
	border-radius: var(--np-radius-lg);
}

body .entry-content figure img {
	margin-bottom: 0;
}

body .entry-content .wp-caption-text {
	color: var(--np-muted);
	font-size: 13px;
	font-style: normal;
	margin: 8px 0 0;
	text-align: center;
}

body .entry-content ul li::before {
	background-color: var(--np-primary);
	height: 6px;
	top: 11px;
	width: 6px;
}

body .entry-content blockquote {
	background-color: var(--np-surface-2);
	border-left: 3px solid var(--np-border-strong);
	border-radius: 0 var(--np-radius) var(--np-radius) 0;
	margin: 0 0 24px;
	overflow: hidden;
	padding: 14px 18px 14px 20px;
	position: relative;
}

/* 图注不再上移压住图片底部：基底样式的 -20px 会让文字压在深色图底上读不清。 */
body .entry-content .wp-block-image figcaption {
	margin-top: 8px;
}

/* 大引号水印：纯装饰，不参与布局与选中。 */
body .entry-content blockquote::before {
	color: var(--np-border);
	content: "\201C";
	font-family: Georgia, "Times New Roman", serif;
	font-size: 56px;
	left: 8px;
	line-height: 1;
	pointer-events: none;
	position: absolute;
	top: 4px;
}

body .entry-content blockquote p {
	margin-bottom: 0;
}

/* 表格：横向可滚动、表头加深、单元格加 padding、长链接任意处断行。 */
body .entry-content table {
	-webkit-overflow-scrolling: touch;
	display: block;
	overflow-x: auto;
}

body .entry-content table th,
body .entry-content table td {
	font-size: 14px;
	padding: 12px 16px;
}

body .entry-content table th {
	background-color: var(--np-surface-2);
}

body .entry-content table a {
	overflow-wrap: anywhere;
}

/* 来源说明：由灰盒子改为左侧品牌色竖线的轻提示。 */
body .single-credit {
	background-color: var(--np-surface-2);
	border: 1px solid var(--np-border);
	border-left: 3px solid var(--np-primary);
	border-radius: var(--np-radius);
	color: var(--np-muted);
	font-size: 13px;
	line-height: 1.7;
	margin: 28px 0;
	padding: 12px 16px;
}

/* ---- 打赏 / 点赞：统一为克制的 pill 按钮 ---- */
body.single #primary .entry-footer {
	margin: 8px 0 0;
}

body.single #primary .entry-footer .entry-like a,
body.single #primary .entry-footer .entry-sponsor span {
	align-items: center;
	background-color: var(--np-surface);
	border: 1px solid var(--np-border-strong);
	border-radius: 999px;
	color: var(--np-heading);
	display: inline-flex;
	font-size: 14px;
	font-weight: 500;
	gap: 6px;
	line-height: 1;
	min-height: 38px;
	padding: 0 20px;
}

body.single #primary .entry-footer .entry-like a:hover,
body.single #primary .entry-footer .entry-sponsor span:hover {
	border-color: var(--np-primary);
	color: var(--np-primary-text);
}

body.single #primary .entry-footer .entry-like a.liked {
	background-color: var(--np-primary);
	border-color: var(--np-primary);
	color: var(--np-on-primary, #fff);
}

/* ---- 标签 pill：与分类 pill 同语言 ---- */
body .entry-tags .tag-links a {
	background-color: var(--np-surface-2);
	border: 1px solid var(--np-border);
	border-radius: 999px;
	color: var(--np-body);
	font-size: 13px;
	height: auto;
	line-height: 1;
	margin: 0 6px 6px 0;
	padding: 7px 12px;
}

body .entry-tags .tag-links a:hover {
	background-color: var(--np-primary);
	border-color: var(--np-primary);
	color: var(--np-on-primary, #fff);
}

body .widget_tag_cloud .tagcloud a {
	border-radius: 999px;
	padding: 5px 12px;
}

/* ---- 作者卡片：白卡 + 圆角 + 柔和阴影 ---- */
body .author-box {
	background-color: var(--np-surface);
	border: 1px solid var(--np-border);
	border-radius: var(--np-radius-lg);
	box-shadow: var(--np-shadow-sm);
	margin: 0 0 24px;
	padding: 20px;
}

/* .avatar 就是 get_avatar() 输出的 <img> 本身，直接定圆角与尺寸。 */
body .author-box .avatar {
	border-radius: 50%;
	height: auto;
	margin-right: 16px;
	width: 56px;
}

body .author-box .author-meta .author-name {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 6px;
}

body .author-box .author-meta .author-desc {
	color: var(--np-muted);
	display: block;
	font-size: 14px;
	line-height: 1.7;
}

/* ---- 相关推荐：带缩略图的双列卡片（默认；body.np-related-list 恢复圆点列表） ---- */
body .related-content {
	border-top: 1px solid var(--np-border);
	margin: 28px 0 0;
	padding-top: 24px;
}

body .related-content .section-title {
	align-items: center;
	display: flex;
	font-size: 18px;
	font-weight: 700;
	gap: 8px;
	margin-bottom: 16px;
}

body .related-content .section-title::before {
	background-color: var(--np-primary);
	border-radius: var(--np-radius-xs);
	content: "";
	display: inline-block;
	height: 18px;
	width: 3px;
}

body:not(.np-related-list) .related-content ul {
	display: grid;
	gap: 12px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
	padding: 0;
}

/* .clear 的 ::before/::after 是旧 clearfix 生成的空盒子（style.css:450），
   进了 grid 会变成两个空格子：首行左空 + 末行右空。专题列表已有同样处理。 */
body:not(.np-related-list) .related-content ul::before,
body:not(.np-related-list) .related-content ul::after {
	content: none;
}

body:not(.np-related-list) .related-content ul li {
	list-style: none;
	margin: 0;
	padding: 0;
}

body:not(.np-related-list) .related-content ul li::before {
	content: none;
}

body:not(.np-related-list) .related-content ul li.hentry {
	align-items: flex-start;
	background-color: var(--np-surface-2);
	border: none;
	border-radius: var(--np-radius-lg);
	display: flex;
	gap: 12px;
	margin-bottom: 0;
	padding: 12px;
	transition: box-shadow .3s ease-out;
}

body:not(.np-related-list) .related-content ul li.hentry:hover {
	box-shadow: var(--np-shadow-sm);
}

body:not(.np-related-list) .related-content .related-thumb {
	aspect-ratio: 16 / 9;
	border-radius: var(--np-radius);
	flex: 0 0 112px;
	overflow: hidden;
	width: 112px;
}

body:not(.np-related-list) .related-content .related-thumb img {
	display: block;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

body:not(.np-related-list) .related-content .related-thumb .related-placeholder {
	align-items: center;
	background-color: var(--np-surface-2);
	color: var(--np-muted);
	display: flex;
	height: 100%;
	justify-content: center;
	width: 100%;
}

body:not(.np-related-list) .related-content .related-body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

body:not(.np-related-list) .related-content ul li .entry-title {
	-webkit-box-orient: vertical;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.45;
	overflow: hidden;
}

body:not(.np-related-list) .related-content ul li .entry-meta {
	color: var(--np-muted);
	display: flex;
	font-size: 12px;
	gap: 10px;
	margin-top: 6px;
	position: static;
	text-align: left;
	width: auto;
}

body:not(.np-related-list) .related-content ul li .entry-meta .entry-comment::before {
	content: none;
}

@media (max-width: 767px) {
	body:not(.np-related-list) .related-content ul {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---- 上一篇 / 下一篇：两栏卡片，箭头是固定圆形芯片，标题两行截断 ---- */
body .post-navigation {
	gap: 12px;
	margin-top: 28px;
	padding-top: 20px;
}

body .post-navigation .nav-previous,
body .post-navigation .nav-next {
	background-color: var(--np-surface);
	border: 1px solid var(--np-border);
	border-radius: var(--np-radius-lg);
	min-width: 0;
	padding: 14px 16px 14px 52px;
	position: relative;
	text-align: left;
}

body .post-navigation .nav-next {
	padding: 14px 52px 14px 16px;
	text-align: right;
}

body .post-navigation .nav-previous::before,
body .post-navigation .nav-next::after {
	align-items: center;
	background-color: var(--np-surface-2);
	border-radius: 50%;
	color: var(--np-muted);
	content: "←";
	display: flex;
	font-size: 14px;
	height: 28px;
	justify-content: center;
	left: 14px;
	position: absolute;
	top: 15px;
	width: 28px;
}

body .post-navigation .nav-next::after {
	content: "→";
	left: auto;
	right: 14px;
}

body .post-navigation .nav-label {
	margin-bottom: 6px;
}

body .post-navigation a {
	-webkit-box-orient: vertical;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.5;
	overflow: hidden;
}

body .post-navigation .nav-previous a::before,
body .post-navigation .nav-next a::after {
	content: none;
}

@media (max-width: 767px) {
	body .post-navigation {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---- 评论区：未登录态收紧为一行居中的轻提示，登录按钮统一样式 ---- */
body .must-log-in {
	background-color: var(--np-surface-2);
	border: 1px solid var(--np-border);
	border-radius: var(--np-radius-lg);
	height: auto;
	line-height: 1.6;
	margin-bottom: 0;
	min-height: 0;
	padding: 20px;
}

body .must-log-in a {
	background-color: var(--np-primary);
	border-radius: 999px;
	color: var(--np-on-primary, #fff);
	line-height: 1.4;
	margin: 0 0 0 8px;
	padding: 8px 18px;
}

body .must-log-in a:hover {
	text-decoration: none;
}

/* ==========================================================================
   8. 侧栏小工具与分页（轻微收敛）
   ========================================================================== */

body .single-breadcrumbs .single-posts-nav {
	color: var(--np-muted);
	font-size: 12px;
}

body .single-breadcrumbs .single-posts-nav a {
	color: var(--np-muted);
}

body .sidebar .widget {
	margin-bottom: 20px;
}

body .sidebar .widget ul > li {
	margin-bottom: 12px;
}

/* P0: 小工具标题与区块标题同一语言（16px/500 + 3px 主色竖条，竖条圆角走 token）。 */
body .sidebar .widget .widget-title {
	font-size: 16px;
	font-weight: 500;
}

body .sidebar .widget .widget-title::before {
	border-radius: var(--np-radius-xs);
}

/* 随机文章小工具无特色图时用占位块，保持与有图项同一版式。 */
body .sidebar .widget_posts_thumbnail .thumb-placeholder {
	align-items: center;
	aspect-ratio: 16 / 9;
	background-color: var(--np-surface-2);
	border-radius: var(--np-radius);
	color: var(--np-muted);
	display: flex;
	justify-content: center;
	width: 100%;
}

body .pagination {
	margin-top: 20px;
}

/* ==========================================================================
   9. 页脚与悬浮按钮
   ========================================================================== */

body #site-bottom {
	padding: 26px 20px;
}

body #site-bottom .footer-nav li {
	margin: 0 14px 6px 0;
}

body #site-bottom .footer-nav li a {
	color: var(--np-muted);
}

body #site-bottom .footer-nav li a:hover {
	color: var(--np-primary-text);
}

/* 悬浮按钮：统一 44px 方形圆角，离边 16px / 24px；JS 用 fadeIn 控制显隐，
   这里只改几何，不动 display（行内样式优先）。 */
@media (min-width: 960px) {
	body .bottom-right {
		bottom: 24px;
		right: 16px;
		width: 44px;
	}

	body .bottom-right .bottom-icon {
		border: 1px solid var(--np-border);
		border-radius: var(--np-radius-lg);
		box-shadow: var(--np-shadow-card);
		margin-bottom: 8px;
		overflow: hidden;
	}

	body .bottom-right span.icon-link span,
	body .bottom-right a span {
		height: 44px;
		line-height: 44px;
		width: 44px;
	}

	body .bottom-right span.icon-link .text,
	body .bottom-right a .text {
		height: 44px;
		line-height: 44px;
		padding: 0;
		width: 44px;
	}
}

@media (max-width: 959px) {
	body .bottom-right {
		bottom: 12px;
		right: 12px;
	}
}

/* ==========================================================================
   10. 移动端收尾
   ========================================================================== */

@media (max-width: 767px) {
	/* 内容区与卡片的左右留白统一 16px，任何内容不再贴边。 */
	body .single .site-main,
	body .page .site-main {
		padding: 20px 16px;
	}

	body .site-content {
		margin-top: var(--np-gap-mobile, 12px);
	}

	/* 专题与列表的 section 间距收敛。 */
	body .home-zhuanti-section {
		margin-bottom: 16px;
	}

	body .content-list .hentry {
		margin-bottom: 0;
	}
}

@media (max-width: 479px) {
	body .site-title {
		font-size: 24px;
	}

	body .content-list .hentry {
		padding: 14px 16px;
	}

	body .content-list .entry-title {
		font-size: 15px;
	}

	body .home-zhuanti-list {
		padding: 12px 16px;
	}

	body .single .site-main,
	body .page .site-main {
		padding: 16px;
	}
}

/* ==========================================================================
   12. 文章目录小工具（原生，无插件）
   ========================================================================== */

/* 正文标题留出吸顶偏移：点目录跳转后，标题落在页眉下方，不被盖住。 */
body.single .entry-content h2,
body.single .entry-content h3,
body.page .entry-content h2,
body.page .entry-content h3 {
	scroll-margin-top: calc(var(--np-header-h, 75px) + 16px);
}

/* 目录随侧栏滚动贴顶：吸在页眉下方 16px 处。侧栏在 ≤959px 时整个隐藏，
   所以目录只在桌面端出现，不需要再写移动端隐藏。 */
/* 侧栏里的目录不做自己的吸顶：吸顶插件会整体移动边栏，目录自己的
   sticky 会和它打架，并让下面的小工具从目录底边下穿过。贴顶由下面的
   悬浮目录（.np-toc-rail）接管。 */

body .np-toc ul {
	border-left: 2px solid var(--np-border);
	list-style: none;
	margin: 0;
	padding: 0;
}

body .np-toc li {
	margin: 0;
	padding: 0;
}

body .np-toc li a {
	border-radius: 0 var(--np-radius-xs) var(--np-radius-xs) 0;
	color: var(--np-muted);
	display: block;
	font-size: 13px;
	line-height: 1.5;
	padding: 5px 10px;
	text-decoration: none;
	transition: color .3s ease-out, background-color .3s ease-out;
}

body .np-toc li a:hover {
	background-color: var(--np-surface-2);
	color: var(--np-heading);
}

body .np-toc li.np-toc-h3 a {
	padding-left: 22px;
}

body .np-toc li a.is-active {
	background-color: var(--np-surface-2);
	box-shadow: inset 2px 0 0 var(--np-primary);
	color: var(--np-primary-text);
	font-weight: 600;
}

/* ---- 悬浮目录：边栏目录滚出视野后，在边栏原位置接管贴顶 ----
   只在桌面端出现（<960px 没有边栏）；位置与宽度由 JS 按 #secondary
   实测写入（left/width 内联样式），CSS 只定 top 与显隐。 */
body .np-toc-rail {
	background-color: var(--np-surface);
	border: 1px solid var(--np-border);
	border-radius: var(--np-radius-lg);
	box-shadow: var(--np-shadow-card);
	display: none;
	max-height: calc(100vh - var(--np-header-h, 75px) - 32px);
	opacity: 0;
	overflow-y: auto;
	padding: 16px 16px 12px;
	position: fixed;
	top: calc(var(--np-header-h, 75px) + 16px);
	transition: opacity .3s ease-out, visibility .3s;
	visibility: hidden;
	z-index: 50;
}

@media (min-width: 960px) {
	body.single .np-toc-rail {
		display: block;
	}

	body.single .np-toc-rail.is-visible {
		opacity: 1;
		visibility: visible;
	}

	body.np-reading-mode .np-toc-rail {
		display: none;
	}
}

body .np-toc-rail-title {
	border-bottom: 1px solid var(--np-border);
	font-size: 16px;
	font-weight: 500;
	margin-bottom: 8px;
	padding-bottom: 8px;
}

/* ==========================================================================
   13. 阅读体验（P1）
   ========================================================================== */

/* ---- 顶部阅读进度条：2px 主色，固定在页眉上方 ---- */
body .np-reading-progress {
	background-color: var(--np-border);
	height: 2px;
	left: 0;
	position: fixed;
	right: 0;
	top: 0;
	z-index: 200;
}

body .np-reading-progress span {
	background-color: var(--np-primary);
	display: block;
	height: 100%;
	transition: width .15s ease-out;
	width: 0;
}

/* ---- 点赞反馈：已赞变红 ----
   header.php 的内联样式里已有两条更强的规则（列表是绿色 !important，单篇是
   主色），本规则用更高的选择器 + !important 覆盖它们。 */
body #primary .content-list .entry-meta .entry-like a.liked,
body.single #primary .entry-footer .entry-like a.liked {
	color: #ff5e5e !important;
}

/* ---- 打赏 hover 展开二维码已移除（P4）：两个二维码同时出现看着奇怪，
   触屏上 hover 也没有意义；打赏只走弹窗，弹窗里微信/支付宝分签切换。 */
/* ---- 悬浮操作组：阅读模式开关（与旁边的 a 图标同款式） ---- */
body .bottom-right button.np-reading-toggle {
	background-color: #fff;
	border: 0;
	cursor: pointer;
	display: inline-block;
	font: inherit;
	padding: 0;
}

body .bottom-right button.np-reading-toggle span {
	color: #999;
	display: inline-block;
	font-size: 24px;
	line-height: 38px;
	text-align: center;
	width: 40px;
}

body .bottom-right button.np-reading-toggle .icon {
	font-size: 16px;
}

body .bottom-right button.np-reading-toggle .text {
	background-color: #fff;
	display: none;
	font-size: 13px;
	height: 32px;
	line-height: 1;
	padding: 6px 2px 0;
	width: 36px;
}

body .bottom-right button.np-reading-toggle:hover .icon {
	display: none;
}

body .bottom-right button.np-reading-toggle:hover .text {
	display: inline-block;
}

body .bottom-right button.np-reading-toggle.is-on .icon {
	color: var(--np-primary-text);
}

/* ---- 阅读模式：只留正文 ---- */
body.np-reading-mode #secondary,
body.np-reading-mode .related-content,
body.np-reading-mode .author-box,
body.np-reading-mode .post-navigation,
body.np-reading-mode #comments,
body.np-reading-mode .single-credit,
body.np-reading-mode .custom-share,
body.np-reading-mode .entry-footer,
body.np-reading-mode .single-bottom-ad,
body.np-reading-mode .bottom-right .icon-contact,
body.np-reading-mode .bottom-right .icon-weixin,
body.np-reading-mode .bottom-right .icon-weibo,
body.np-reading-mode .bottom-right .icon-comment {
	display: none !important;
}

@media (min-width: 1180px) {
	body.np-reading-mode #primary {
		margin: 0 auto;
		width: min(var(--np-content-max, 1180px), calc(100% - 32px)) !important;
	}
}

body.single.np-reading-mode .site-main {
	margin: 0 auto;
	max-width: 880px;
}

/* ---- 图片灯箱 ---- */
body .np-lightbox {
	align-items: center;
	background-color: rgba(8, 15, 26, .92);
	cursor: zoom-out;
	display: flex;
	inset: 0;
	justify-content: center;
	opacity: 0;
	position: fixed;
	transition: opacity .3s ease-out, visibility .3s;
	visibility: hidden;
	z-index: 1000;
}

body .np-lightbox.is-open {
	opacity: 1;
	visibility: visible;
}

body .np-lightbox img {
	border-radius: var(--np-radius-lg);
	max-height: 90vh;
	max-width: 90vw;
}

body .np-lightbox-close {
	background: none;
	border: 0;
	color: #fff;
	cursor: pointer;
	font-size: 36px;
	line-height: 1;
	position: absolute;
	right: 20px;
	top: 16px;
}

body.np-lightbox-open {
	overflow: hidden;
}

body .single .entry-content img.np-zoomable {
	cursor: zoom-in;
}

/* ==========================================================================
   14. 结构与发现（P2）
   ========================================================================== */

/* ---- 旧的下拉搜索面板已退役：搜索图标现在打开全屏搜索浮层 ---- */
body .header-search {
	display: none !important;
}

body .header-search-icon .fa-close {
	display: none !important;
}

/* ---- 全屏搜索浮层 ---- */
body .np-search-overlay {
	align-items: flex-start;
	background-color: rgba(8, 15, 26, .96);
	display: flex;
	inset: 0;
	justify-content: center;
	opacity: 0;
	padding: 18vh 20px 20px;
	position: fixed;
	transition: opacity .3s ease-out, visibility .3s;
	visibility: hidden;
	z-index: 1000;
}

body .np-search-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

body .np-search-inner {
	max-width: 640px;
	width: 100%;
}

body .np-search-overlay .search-form {
	display: flex;
	gap: 10px;
}

body .np-search-overlay .search-input {
	background-color: transparent;
	border: 0;
	border-bottom: 2px solid var(--np-border-strong);
	border-radius: 0;
	color: #fff;
	flex: 1;
	font-size: 24px;
	min-width: 0;
	padding: 10px 4px;
}

body .np-search-overlay .search-input::placeholder {
	color: rgba(255, 255, 255, .5);
}

body .np-search-overlay .search-input:focus {
	border-bottom-color: var(--np-primary);
	outline: none;
}

body .np-search-hot {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 24px;
}

body .np-search-hot > span {
	color: rgba(255, 255, 255, .6);
	font-size: 13px;
	line-height: 32px;
	margin-right: 4px;
}

body .np-search-hot a {
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: var(--np-radius-pill);
	color: rgba(255, 255, 255, .85);
	font-size: 13px;
	line-height: 1;
	padding: 9px 14px;
	text-decoration: none;
	transition: border-color .3s ease-out, color .3s ease-out;
}

body .np-search-hot a:hover {
	border-color: #fff;
	color: #fff;
}

body .np-search-close {
	background: none;
	border: 0;
	color: rgba(255, 255, 255, .8);
	cursor: pointer;
	font-size: 36px;
	line-height: 1;
	position: absolute;
	right: 24px;
	top: 20px;
}

body.np-search-open {
	overflow: hidden;
}

/* ---- 列表形态：紧凑（桌面小图 + 不显示摘要） ---- */
body.np-loop-compact .content-list .entry-summary {
	display: none;
}

@media (min-width: 960px) {
	body.np-loop-compact .content-list .hentry {
		grid-template-columns: 160px minmax(0, 1fr);
		padding: 14px 20px;
	}
}

/* ---- 列表形态：图文卡（两列卡片，手机一列） ---- */
body.np-loop-card .content-list {
	display: grid;
	gap: 16px;
	grid-template-columns: 1fr 1fr;
	padding: 16px;
}

body.np-loop-card .content-list .hentry {
	border: 1px solid var(--np-border);
	border-bottom: 1px solid var(--np-border);
	border-radius: var(--np-radius-lg);
	display: block;
	overflow: hidden;
	padding: 0;
}

body.np-loop-card .content-list .hentry:hover {
	background-color: var(--np-surface);
}

body.np-loop-card .content-list .hentry > .thumbnail-box {
	width: 100%;
}

body.np-loop-card .content-list .thumbnail-wrap {
	aspect-ratio: 16 / 9;
	border-radius: 0;
}

body.np-loop-card .content-list .hentry > .entry-body {
	padding: 14px 16px 16px;
}

@media (max-width: 959px) {
	body.np-loop-card .content-list {
		grid-template-columns: 1fr;
	}
}

/* ---- 文章单栏：隐藏侧栏，正文居中加宽 ---- */
body.np-single-col #secondary {
	display: none;
}

@media (min-width: 1180px) {
	body.np-single-col #primary {
		margin: 0 auto;
		width: min(var(--np-content-max, 1180px), calc(100% - 32px));
	}

	body.np-single-col .site-main {
		margin: 0 auto;
		max-width: 880px;
	}
}

/* ---- 页眉滚动收起：下滚隐藏，上滚出现（仅桌面吸顶页眉） ---- */
body .site-header {
	transition: transform .3s ease-out;
}

body.np-header-hidden .site-header.main-nav-scrolled {
	transform: translateY(-100%);
}

/* ---- 热门榜小工具：TOP 3 大号品牌色序号 ---- */
body .np-hot-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

body .np-hot-item {
	align-items: baseline;
	border-bottom: 1px solid var(--np-border);
	display: flex;
	gap: 10px;
	padding: 10px 0;
}

body .np-hot-item:last-child {
	border-bottom: 0;
}

body .np-hot-rank {
	color: var(--np-muted);
	flex: 0 0 auto;
	font-size: 16px;
	font-style: italic;
	font-weight: 700;
	width: 20px;
}

body .np-hot-item.np-hot-top .np-hot-rank {
	color: var(--np-primary-text);
	font-size: 20px;
}

body .np-hot-title {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body .np-hot-views {
	color: var(--np-muted);
	flex: 0 0 auto;
	font-size: 12px;
	white-space: nowrap;
}

/* ---- 时间轴归档：月标题 + 左侧竖线 + 圆点 ---- */

/* 归档页标题后的篇数：小字、常规字重、次要色。 */
body .np-archive-count {
	color: var(--np-muted);
	font-size: 14px;
	font-weight: 400;
}
body .np-timeline-month {
	border-bottom: 1px solid var(--np-border);
	font-size: 18px;
	font-weight: 700;
	margin: 28px 0 0;
	padding-bottom: 8px;
}

body .np-timeline-list {
	border-left: 2px solid var(--np-border);
	list-style: none;
	margin: 0 0 0 6px;
	padding: 0;
}

body .np-timeline-item {
	display: flex;
	gap: 12px;
	padding: 10px 0 10px 16px;
	position: relative;
}

body .np-timeline-item::before {
	background-color: var(--np-surface);
	border: 2px solid var(--np-primary);
	border-radius: 50%;
	content: "";
	height: 8px;
	left: -6px;
	position: absolute;
	top: 17px;
	width: 8px;
}

body .np-timeline-date {
	color: var(--np-muted);
	flex: 0 0 auto;
	font-size: 13px;
}

body .np-timeline-item a {
	color: var(--np-heading);
}

/* ---- 手机底部栏：仅 ≤959px 显示 ---- */
body .np-mobile-bar {
	display: none;
}

@media (max-width: 959px) {
	body .np-mobile-bar {
		align-items: stretch;
		background-color: var(--np-surface);
		border-top: 1px solid var(--np-border);
		bottom: 0;
		box-shadow: 0 -2px 12px rgba(16, 24, 40, .06);
		display: flex;
		left: 0;
		position: fixed;
		right: 0;
		z-index: 200;
	}

	body .np-mobile-bar a,
	body .np-mobile-bar button {
		align-items: center;
		background: none;
		border: 0;
		color: var(--np-muted);
		cursor: pointer;
		display: flex;
		flex: 1;
		flex-direction: column;
		font: inherit;
		font-size: 11px;
		gap: 2px;
		justify-content: center;
		padding: 8px 0 7px;
		text-decoration: none;
	}

	body .np-mobile-bar a i,
	body .np-mobile-bar button i {
		font-size: 18px;
	}

	body .np-mobile-bar a:active,
	body .np-mobile-bar button:active {
		color: var(--np-primary-text);
	}

	/* 给底部栏留出空间，避免盖住页脚内容；悬浮按钮组也相应抬高。 */
	body {
		padding-bottom: 56px;
	}

	body .bottom-right {
		bottom: 64px;
	}
}

/* ==========================================================================
   15. 夜间模式（P3）
   ========================================================================== */

/* ---- 暗色 token：只换变量，整站跟变 ----
   基底 style.css :root 的 --np-* 大量以 var() 形式使用，modern.css :root
   又以 HSL 覆写了其中一部分；这里在 html[data-theme="dark"] 下把两套
   一并翻成暗色，整站随之变暗，无需逐个组件改色。特异性 (0,1,1) 高于
   header.php 内联的 :root 派生色（(0,1,0)），所以暗色下派生色也被覆盖。 */
html[data-theme="dark"] {
	--np-ink-hs: 217 12%;
	--np-stone-hs: 220 10%;
	--np-page: hsl(220 14% 9%);
	--np-surface: hsl(220 13% 13%);
	--np-surface-2: hsl(220 12% 17%);
	--np-heading: hsl(220 10% 93%);
	--np-body: hsl(220 9% 78%);
	--np-muted: hsl(220 8% 60%);
	--np-border: hsl(220 11% 21%);
	--np-border-strong: hsl(220 10% 28%);
	--np-line: hsl(220 11% 21%);
	--np-primary: #3b82f6;
	--np-primary-dark: #2563eb;
	--np-primary-text: #7db3fc;
	--np-on-primary: #ffffff;
	--np-accent: #14b8a6;
	--np-tertiary-text: #f0b429;
	--np-focus-ring: #7db3fc;
	--np-shadow-card: 0 1px 2px rgba(0, 0, 0, .35), 0 4px 12px -6px rgba(0, 0, 0, .5);
	--np-shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
}

/* ---- 写死颜色的补丁（基底 style.css 里未走变量的部分） ---- */
html[data-theme="dark"] body table th {
	background-color: var(--np-surface-2);
}

html[data-theme="dark"] body table td {
	background-color: var(--np-surface);
}

html[data-theme="dark"] body table tr:hover td {
	background-color: var(--np-surface-2);
}

html[data-theme="dark"] body .site-desc,
html[data-theme="dark"] body .content-ad,
html[data-theme="dark"] body .breadcrumbs,
html[data-theme="dark"] body .single-breadcrumbs {
	border-color: var(--np-border);
}

html[data-theme="dark"] body .scroller-status .infinite-scroll-request,
html[data-theme="dark"] body .scroller-status .infinite-scroll-error,
html[data-theme="dark"] body .custom-share .share-button {
	border-color: var(--np-border);
}

html[data-theme="dark"] body .single-excerpt,
html[data-theme="dark"] body .single-credit,
html[data-theme="dark"] body .sidebar .widget_posts_thumbnail ul li:hover {
	background-color: var(--np-surface-2);
}

/* 输入框：基底是白底灰字，暗色下改走变量。 */
html[data-theme="dark"] body input[type="text"],
html[data-theme="dark"] body input[type="search"],
html[data-theme="dark"] body input[type="email"],
html[data-theme="dark"] body input[type="url"],
html[data-theme="dark"] body input[type="password"],
html[data-theme="dark"] body textarea,
html[data-theme="dark"] body select {
	background-color: var(--np-surface-2);
	border-color: var(--np-border-strong);
	color: var(--np-body);
}

html[data-theme="dark"] body input::placeholder,
html[data-theme="dark"] body textarea::placeholder {
	color: var(--np-muted);
}

/* 代码块：暗色下统一用深色代码窗（与 np-code-dark 同款配色）。 */
html[data-theme="dark"] body .np-code {
	--np-code-bg: #101827;
	--np-code-bar-bg: #171f2e;
	--np-code-line: rgba(226, 232, 240, .1);
	--np-code-text: #e2e8f0;
}

html[data-theme="dark"] body.np-code-light .entry-content pre,
html[data-theme="dark"] body.np-code-dark .entry-content pre {
	background-color: #101827;
	color: #e2e8f0;
}

html[data-theme="dark"] body .entry-content code {
	background-color: var(--np-surface-2);
	color: var(--np-body);
}

/* 打赏弹窗：内容区本来是 #fefefe 白底，暗色下改走变量。 */
html[data-theme="dark"] body .modal-content {
	background-color: var(--np-surface);
	border-color: var(--np-border-strong);
}

/* ---- 切换按钮：月亮/太阳二选一显示 ---- */
body .np-theme-toggle {
	align-items: center;
	background: none;
	border: 0;
	color: inherit;
	cursor: pointer;
	display: inline-flex;
	font-size: 18px;
	line-height: 1;
	padding: 0;
}

body .np-theme-toggle .fa-sun-o {
	display: none;
}

html[data-theme="dark"] body .np-theme-toggle .fa-moon-o {
	display: none;
}

html[data-theme="dark"] body .np-theme-toggle .fa-sun-o {
	display: inline-block;
}

/* ---- 夜间模式第 2 轮补丁：基底写死颜色的第二批 ----
   首轮只换了变量，基底 style.css 里大量标题/链接仍是直写深色
   （#333 / #888 / #999），暗色下不可读；页眉背景也是直写白。 */
html[data-theme="dark"] body .site-header {
	background-color: rgba(23, 29, 36, .92);
}

html[data-theme="dark"] body .site-header .search-icon .fa {
	color: var(--np-muted);
}

/* 导航链接：主菜单 #888、下拉子菜单 #333，暗色下提亮。 */
html[data-theme="dark"] body .posts-nav-menu ul li a {
	color: var(--np-body);
}

html[data-theme="dark"] body #top-nav .sf-menu li li a {
	color: var(--np-body);
}

/* 标题类：基底 h1–h6 直写 #333，暗色下改走变量。 */
html[data-theme="dark"] body h1,
html[data-theme="dark"] body h2,
html[data-theme="dark"] body h3,
html[data-theme="dark"] body h4,
html[data-theme="dark"] body h5,
html[data-theme="dark"] body h6 {
	color: var(--np-heading);
}

/* 列表与相关推荐标题：.entry-title a 直写 #333。 */
html[data-theme="dark"] body .entry-title a,
html[data-theme="dark"] body .entry-title a:visited {
	color: var(--np-heading);
}

/* 随机文章小工具：标题链接继承 .entry-wrap 的 #999。 */
html[data-theme="dark"] body .sidebar .widget_posts_thumbnail .entry-wrap {
	color: var(--np-body);
}

html[data-theme="dark"] body .sidebar .widget_posts_thumbnail .entry-wrap a {
	color: var(--np-heading);
}

html[data-theme="dark"] body .sidebar .widget_posts_thumbnail .entry-meta {
	color: var(--np-muted);
}

/* 作者区：名字 #333、简介 #666。 */
html[data-theme="dark"] body .author-box .author-meta .author-name a {
	color: var(--np-heading);
}

html[data-theme="dark"] body .author-box .author-meta .author-desc {
	color: var(--np-muted);
}

/* 面包屑：链接与描述提亮到正文色。 */
html[data-theme="dark"] body .breadcrumbs,
html[data-theme="dark"] body .breadcrumbs a,
html[data-theme="dark"] body .breadcrumbs .taxonomy-description {
	color: var(--np-body);
}

/* 目录非当前项：--np-muted 在暗色下偏暗，改用正文色。 */
html[data-theme="dark"] body .np-toc li a {
	color: var(--np-body);
}

/* 右下悬浮按钮组：白底/浅灰字改走变量。 */
html[data-theme="dark"] body .bottom-right span.icon-link,
html[data-theme="dark"] body .bottom-right a,
html[data-theme="dark"] body .bottom-right button,
html[data-theme="dark"] body .bottom-right span.icon-link span,
html[data-theme="dark"] body .bottom-right a span,
html[data-theme="dark"] body .bottom-right button span,
html[data-theme="dark"] body .bottom-right span.icon-link .text,
html[data-theme="dark"] body .bottom-right a .text,
html[data-theme="dark"] body .bottom-right button .text {
	background-color: var(--np-surface);
}

html[data-theme="dark"] body .bottom-right span.icon-link span,
html[data-theme="dark"] body .bottom-right a span,
html[data-theme="dark"] body .bottom-right button span {
	color: var(--np-muted);
}

/* ---- 切换按钮定位：与搜索图标并排（搜索图标是 absolute right:0，
   按钮本身没有定位，所以之前飘到了 logo 旁边）。 ---- */
body .site-header .np-theme-toggle {
	height: 74px;
	line-height: 74px;
	position: absolute;
	right: 26px;
	top: 2px;
}

@media (max-width: 959px) {
	body .site-header .np-theme-toggle {
		top: -8px;
	}
}

/* ---- 导航给两个图标让位：主菜单 float:right 贴着容器右沿，
   切换按钮（right:26px，约 18px 宽）会压住最后一项"羊毛福利"。
   只在桌面端让 56px，移动端菜单是通栏的不受影响。 ---- */
@media (min-width: 960px) {
	body .site-header .posts-nav-menu {
		margin-right: 56px;
	}
}

/* ==========================================================================
   16. P4：手机汉堡菜单、底部栏菜单化、列表高度对齐、专题横滑、
       标题层级、打赏弹窗、底部去线
   ========================================================================== */

/* ---- 16.1 手机汉堡菜单（SlickNav，主题自带但从未启用） ----
   桌面端不显示按钮菜单；手机端（≤959px）隐藏原来的横排导航，只留按钮。
   SlickNav 把 #primary-menu 克隆进 .slicknav_menu，子菜单（服务器优惠）
   自带折叠箭头，父级链接仍可点。 */
@media (min-width: 960px) {
	body .slicknav_menu {
		display: none;
	}
}

@media (max-width: 959px) {
	body #primary-nav {
		display: none;
	}

	/* The hamburger menu must not take up flow space (its margin box is
	   75px tall -- exactly the header height -- so an in-flow menu would
	   double the header). Anchor it to the header instead: the header
	   becomes the positioning context, the menu sits absolute at its top,
	   and the dropdown spills below the bar over the page content. */
	body .site-header {
		position: relative;
	}

	body .slicknav_menu {
		left: 0;
		position: absolute;
		right: 0;
		top: 0;
	}
}

/* 按钮：去掉原主题的黄色底 + MENU 文字，改成干净的汉堡图标。
   基底 .slicknav_btn 的 margin（25px 70px 24px 0）本就让按钮在 75px 页眉里
   垂直居中、并给右侧的搜索/主题切换图标让位，只把右边距收紧一点。 */
body .slicknav_btn {
	background: none;
	color: var(--np-heading);
	margin: 25px 56px 24px 0;
	padding: 0;
}

body .slicknav_menu .slicknav_menutxt {
	display: none;
}

body .slicknav_menu .slicknav_icon {
	display: block;
	margin: 0;
}

body .slicknav_menu .slicknav_icon-bar {
	background-color: var(--np-heading);
	height: 2px;
	width: 20px;
}

/* 下拉面板：跟随页眉宽度（容器内），表面色 + 顶部品牌色线 + 柔和阴影。 */
body .slicknav_nav {
	background: var(--np-surface);
	border-top: 2px solid var(--np-primary);
	box-shadow: 0 12px 24px rgba(16, 24, 40, .12);
}

body .slicknav_nav a {
	color: var(--np-heading);
}

body .slicknav_nav a:hover {
	color: var(--np-primary-text);
}

body .slicknav_nav .slicknav_arrow {
	color: var(--np-muted);
}

body .slicknav_nav .slicknav_row:hover,
body .slicknav_nav a:hover {
	background: var(--np-surface-2);
}

/* Neutralise superfish leftovers on the cloned menu (floats sideways,
   sub-menus absolutely positioned) and re-indent nested levels, whose
   .sub-menu class is gone with removeClasses. */
body .slicknav_nav,
body .slicknav_nav li {
	float: none;
}

body .slicknav_nav ul {
	position: static;
}

body .slicknav_nav ul ul a {
	padding-left: 40px;
}

/* ---- 16.2 手机底部栏：菜单化 + 对齐防溢出 ----
   菜单项和原来的四个固定项共用同一套 flex 规则；标签不换行、超长截断，
   这样不论菜单里配几个链接都不会把栏撑出屏幕；底部留出 iPhone 安全区。 */
body .np-mobile-bar a span,
body .np-mobile-bar button span {
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

body .np-mobile-bar a,
body .np-mobile-bar button {
	min-width: 0;
}

body .np-mobile-bar a.current-menu-item,
body .np-mobile-bar a.current_page_item {
	color: var(--np-primary-text);
}

@media (max-width: 959px) {
	body .np-mobile-bar {
		padding-bottom: env(safe-area-inset-bottom, 0);
	}

	body {
		padding-bottom: calc(56px + env(safe-area-inset-bottom, 0));
	}
}

/* ---- 16.3 列表：缩略图与右侧信息区等高 ----
   做法不是给缩略图定死高，而是让它拉伸到整行高度、图片 cover 填充：
   标题 1 行还是 2 行、摘要 2 行，缩略图都正好跟文字区一边齐。
   min-height 120px 兜底，避免短标题行缩成一条细缝。 */
body .content-list .hentry {
	align-items: stretch;
}

body .content-list .thumbnail-box {
	align-self: stretch;
}

body .content-list .thumbnail-box .thumbnail-link {
	display: block;
	height: 100%;
}

body .content-list .thumbnail-wrap {
	aspect-ratio: auto;
	height: 100%;
	min-height: 120px;
}

/* ---- 16.4 专题：永远一行四卡，超四个横向滑动 ----
   手机和电脑同一套：flex 横排 + scroll-snap，每卡固定占 1/4 宽（扣掉间距），
   多出来的卡片滑过去看，滚动条隐藏。zhuanti-mobile-cols 选项已随之退役。 */
body .home-zhuanti-list {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}

body .home-zhuanti-list::-webkit-scrollbar {
	display: none;
}

body .home-zhuanti-list .zhuanti-list-item {
	flex: 0 0 calc((100% - 30px) / 4);
	min-width: 0;
	scroll-snap-align: start;
}

/* ---- 16.5 文章标题 + 标题下 meta ----
   标题：桌面 26px、手机 22px，行高 1.4。
   meta：一行 flex 可换行，项与项之间用圆点分隔（JustNews 的做法），
   作者名主色、其余次要色；分类 pill 保持原样、不加圆点。 */
body.single #primary .entry-title {
	font-size: 26px;
	line-height: 1.4;
	margin-bottom: 12px;
}

body.single #primary .entry-header .entry-meta {
	color: var(--np-muted);
	display: flex;
	flex-wrap: wrap;
	font-size: 13px;
	gap: 4px 0;
}

body.single #primary .entry-header .entry-meta > span:not(:first-child):not(.entry-category-single)::before {
	color: var(--np-border-strong);
	content: "\00b7";
	margin: 0 8px;
}

body.single #primary .entry-header .entry-meta .entry-author .author-name-link {
	color: var(--np-primary-text);
	font-weight: 600;
}

body.single #primary .entry-header .entry-meta .entry-category-single {
	margin-left: 4px;
}

@media (max-width: 767px) {
	body.single #primary .entry-title {
		font-size: 22px;
	}

	body.single #primary .entry-header .entry-meta {
		font-size: 12.5px;
	}

	body.single #primary .entry-header .entry-meta .author-avatar img,
	body.single #primary .entry-header .entry-meta .avatar {
		height: 24px;
		width: 24px;
	}
}

/* ---- 16.6 标题层级：每级只有一个标记，字号拉开 ----
   h2 22px + 竖条 + 下边框（章），h3 18px + 方块（节），h4 16px 主色无标记（项）。
   §7 的 h3 左竖条已删（见 §7 注释），这里只把 h2 字号从 21px 提到 22px，
   让两级差距更明显。 */
body .entry-content h2 {
	font-size: 22px;
}

/* ---- 16.7 打赏弹窗：固定居中、单二维码分签切换 ----
   打开时 JS 给 .modal 加 .np-modal-open，CSS 用 flex 居中；点遮罩、点叉、
   按 Esc 都关闭。关闭钮是 36px 圆形按钮（原来是裸 × 字形，点按区域小）。
   弹窗内容全部走变量，夜间模式自动跟变。 */
body .modal.np-modal-open {
	align-items: center;
	display: flex;
	justify-content: center;
}

body .modal-content {
	background-color: var(--np-surface);
	border: 1px solid var(--np-border);
	border-radius: var(--np-radius-lg);
	box-shadow: var(--np-shadow-card);
	padding: 24px 24px 20px;
	width: min(420px, calc(100vw - 32px));
}

body .modal-content h3 {
	font-size: 17px;
	margin: 0 36px 16px 0;
	text-align: center;
}

body .np-modal-close {
	align-items: center;
	background-color: var(--np-surface-2);
	border: 1px solid var(--np-border);
	border-radius: 50%;
	color: var(--np-muted);
	cursor: pointer;
	display: flex;
	font-size: 24px;
	height: 36px;
	justify-content: center;
	line-height: 1;
	padding: 0;
	position: absolute;
	right: 10px;
	top: 10px;
	width: 36px;
}

body .np-modal-close:hover {
	background-color: var(--np-surface-2);
	color: var(--np-heading);
}

body .np-pay-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 16px;
}

body .np-pay-tab {
	background: none;
	border: 1px solid var(--np-border);
	border-radius: 999px;
	color: var(--np-muted);
	cursor: pointer;
	flex: 1;
	font: inherit;
	font-size: 14px;
	padding: 9px 0;
}

body .np-pay-tab.is-active {
	background-color: var(--np-primary);
	border-color: var(--np-primary);
	color: var(--np-on-primary);
	font-weight: 600;
}

body .np-pay-panel img {
	display: block;
	margin: 0 auto;
	width: 180px;
}

body .np-pay-panel p {
	color: var(--np-muted);
	font-size: 13px;
	margin: 12px 0 0;
	text-align: center;
}

/* 打赏按钮：原来是 span，P4 改成 button 元素后，基底与 header.php 内联
   样式里 `.entry-sponsor span` 的描边胶囊样式不再命中，按钮裸奔看不见。
   这里把胶囊样式直接写在按钮上（描边 + 主色字，悬停填满主色变白字）。 */
body .np-sponsor-btn {
	background: none;
	border: 1px solid var(--np-primary);
	border-radius: 5px;
	color: var(--np-primary-text);
	cursor: pointer;
	display: inline-block;
	font: inherit;
	padding: 7px 30px;
}

body .np-sponsor-btn:hover {
	background-color: var(--np-primary);
	color: var(--np-on-primary, #fff);
}

/* ---- 16.8 上一篇 / 下一篇：缺一边时单条占满行 ----
   只有一边有文章时加 .nav-single，单条跨满两列、左对齐，不留半边空位。 */
body .post-navigation.nav-single {
	grid-template-columns: minmax(0, 1fr);
}

body .post-navigation.nav-single .nav-previous,
body .post-navigation.nav-single .nav-next {
	grid-column: 1 / -1;
}

body .post-navigation.nav-single-next .nav-next {
	text-align: left;
}

/* ---- 16.9 底部去线：用间距 + 柔和底色分隔，不用一堆横线 ----
   作者区、相关推荐、上下篇、评论回复各去一条横线，改成：作者区变无边框
   柔和卡片；相关推荐只留上间距；上下篇两条变柔和卡片；评论回复去顶线。 */
body .author-box {
	background-color: var(--np-surface-2);
	border: none;
	border-radius: var(--np-radius-lg);
	margin: 28px 0 0;
	padding: 20px;
}

body .related-content {
	border-top: none;
	margin: 32px 0 0;
	padding-top: 0;
}

body .post-navigation {
	border-top: none;
	margin-top: 28px;
	padding-top: 0;
}

body .post-navigation .nav-previous,
body .post-navigation .nav-next {
	background-color: var(--np-surface-2);
	border: none;
	border-radius: var(--np-radius-lg);
	padding: 14px 16px 14px 52px;
}

body .post-navigation .nav-next {
	padding: 14px 52px 14px 16px;
}

body .post-navigation .nav-previous::before,
body .post-navigation .nav-next::after {
	background-color: var(--np-surface);
}

body .comment-respond {
	border-top: none;
}

body .single-credit {
	background-color: var(--np-surface-2);
	border-radius: var(--np-radius-lg);
}

/* ---- 16.10 夜间模式：P4 新增元素的暗色适配 ----
   SlickNav 下拉面板在暗色下跟随表面色，链接和箭头提亮。 */
html[data-theme="dark"] body .slicknav_nav {
	background: var(--np-surface);
	border-top-color: var(--np-primary);
	box-shadow: 0 12px 24px rgba(0, 0, 0, .45);
}

html[data-theme="dark"] body .slicknav_nav a {
	border-bottom-color: var(--np-border);
	color: var(--np-heading);
}

html[data-theme="dark"] body .slicknav_nav .slicknav_arrow {
	color: var(--np-muted);
}

/* ---- 16.11 键盘可达性：新加的按钮和签都给可见焦点环 ---- */
body .np-pay-tab:focus-visible,
body .np-modal-close:focus-visible,
body .np-sponsor-btn:focus-visible,
body .slicknav_btn:focus-visible,
body .np-mobile-bar a:focus-visible,
body .np-mobile-bar button:focus-visible {
	outline: 2px solid var(--np-focus-ring);
	outline-offset: 2px;
}

/* ==========================================================================
   17. Editorial refinement — shared geometry, readable type, quiet surfaces.
   Brand colours, container width and corner tokens remain Customizer-owned.
   ========================================================================== */
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body .site-content { margin-top: 32px; margin-bottom: 48px; }
body .site-header { box-shadow: 0 1px 0 var(--np-border); }
body .site-title { font-size: 27px; font-weight: 750; letter-spacing: -.035em; }
body .site-title a { color: var(--np-heading); }
body .site-main, body .home-zhuanti-section, body .sidebar .widget {
 border-color: var(--np-border); box-shadow: none; border-radius: var(--np-radius-lg);
}
body .recent-heading, body .zhuanti-heading { border-bottom: 1px solid var(--np-border); }
body .recent-heading .section-title, body .zhuanti-heading h2 { font-size: 18px; letter-spacing: -.02em; }
body .sidebar .widget { padding: 22px; margin-bottom: 24px; }
body .sidebar .widget a { color: var(--np-heading); }
body .sidebar .widget a:hover { color: var(--np-primary-text); }
body .sidebar .widget .widget-title { padding-bottom: 16px; font-size: 16px; font-weight: 650; }
body .sidebar .widget ul > li { border-color: var(--np-border); }
body .content-list .hentry { padding: 24px; gap: 22px; }
body .content-list .entry-title { font-size: 20px; line-height: 1.55; font-weight: 650; letter-spacing: -.025em; }
body .content-list .entry-title a { color: var(--np-heading); }
body .content-list .entry-title a:hover { color: var(--np-primary-text); }
body .content-list .entry-summary { font-size: 14px; line-height: 1.85; }
body .content-list .entry-meta { font-size: 12px; gap: 6px 14px; }
body .home-zhuanti-section { margin-bottom: 28px; }
body .home-zhuanti-list { gap: 12px; padding: 18px; }
body .home-zhuanti-list .zhuanti-list-item { flex: 0 0 calc((100% - 36px)/4); }
body .home-zhuanti-list .entry-title { font-size: 14px; }
body #featured-slider .featured-slide .entry-header { padding: 24px; }
body #featured-slider .featured-slide .entry-title { font-size: 21px; line-height: 1.5; }
body #featured-slider .bx-pager.bx-default-pager a { width: 6px; height: 6px; min-height: 0; padding: 0; }
body .entry-content { font-size: 16px; line-height: 1.95; overflow-wrap: break-word; }
body .entry-content p { margin-bottom: 1.5em; }
body.single .entry-content h2, body.page .entry-content h2 { margin-top: 2em; font-size: 23px; line-height: 1.5; }
body.single .entry-content h3, body.page .entry-content h3 { margin-top: 1.8em; font-size: 19px; line-height: 1.6; }
body .entry-content table { display: block; max-width: 100%; overflow-x: auto; }
body .entry-content pre { max-width: 100%; overflow-x: auto; }
body .entry-content iframe, body .entry-content video { max-width: 100%; }
body .single-header .entry-title { letter-spacing: -.03em; }
@media (min-width: 960px) {
 body .site-content > .container { display: flex; align-items: flex-start; gap: 32px; }
 body #primary { float: none; width: auto; flex: 1 1 0; min-width: 0; }
 body #secondary { float: none; width: 300px; flex: 0 0 300px; margin-left: 0; }
 body .content-list .hentry { grid-template-columns: 200px minmax(0,1fr); }
 body .content-list .hentry > .thumbnail-box { width: 200px; }
 body.np-loop-compact .content-list .hentry { grid-template-columns: 144px minmax(0,1fr); }
 body.np-loop-compact .content-list .hentry > .thumbnail-box { width: 144px; }
 body.np-single-col #primary { width: 100%; max-width: 880px; margin-inline: auto; flex: 0 1 880px; }
 body.np-single-col .site-content > .container { justify-content: center; }
}
/* Card layout owns the posts-loop, not its outer wrapper. */
body.np-loop-card .content-list { display: block; padding: 18px; }
body.np-loop-card .content-list .posts-loop { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
body.np-loop-card .content-list .posts-loop::before, body.np-loop-card .content-list .posts-loop::after { content: none; }
body.np-loop-card .content-list .hentry { display: block; padding: 0; margin: 0; }
body.np-loop-card .content-list .hentry > .thumbnail-box { width: 100%; height: auto; }
body.np-loop-card .content-list .thumbnail-wrap { height: auto !important; aspect-ratio: 16/9; }
body.np-loop-card .content-list .content-ad { grid-column: 1/-1; }
@media (max-width: 959px) {
 body .site-content { margin-top: 20px; }
 body .site-title { font-size: 23px; }
 body .slicknav_nav { border-radius: 0 0 var(--np-radius-lg) var(--np-radius-lg); padding: 12px; }
 body .slicknav_nav a, body .slicknav_nav .slicknav_row { border-radius: var(--np-radius); padding: 12px; margin: 0; }
 body .home-zhuanti-list .zhuanti-list-item { flex: 0 0 140px; }
 body .home-zhuanti-list { scroll-padding-inline: 16px; }
 body .home-zhuanti-list .entry-title { font-size: 14px; }
}
@media (max-width: 767px) {
 body .container { width: calc(100% - 32px); }
 body .site-content { margin-top: 16px; }
 body .content-list .hentry { grid-template-columns: 104px minmax(0,1fr); gap: 14px; padding: 18px 16px; align-items: start; }
 body .content-list .hentry > .thumbnail-box { width: 104px; height: 82px; min-height: 0; }
 body .content-list .hentry .thumbnail-link, body .content-list .hentry .thumbnail-wrap { height: 82px !important; min-height: 0; }
 body .content-list .entry-title { font-size: 15px; line-height: 1.65; font-weight: 650; }
 body .content-list .hentry .entry-summary { display: none; }
 body .content-list .hentry .entry-meta { padding-top: 8px; font-size: 11px; gap: 4px 10px; }
 body .content-list .entry-category { font-size: 10px; max-width: calc(100% - 12px); }
 body .home-zhuanti-list { padding: 14px; gap: 10px; }
 body .home-zhuanti-list .zhuanti-list-item { flex-basis: 132px; }
 body .recent-heading, body .zhuanti-heading { padding-inline: 16px; }
 body #featured-slider .featured-slide .entry-header { padding: 16px; }
 body #featured-slider .featured-slide .entry-title { font-size: 17px; line-height: 1.6; }
 body.single .site-main, body.page .site-main { padding: 24px 18px; }
 body .entry-content { font-size: 16px; line-height: 1.9; }
 body.single .entry-content h2, body.page .entry-content h2 { font-size: 21px; }
 body .np-mobile-bar { backdrop-filter: blur(16px); }
 body.np-loop-card .content-list .posts-loop { grid-template-columns: minmax(0,1fr); }
 body.np-loop-card .content-list .hentry > .thumbnail-box { height: auto; }
 body.np-loop-card .content-list .hentry .thumbnail-link, body.np-loop-card .content-list .hentry .thumbnail-wrap { height: auto !important; }
 body.np-loop-card .content-list .hentry .entry-summary { display: block; }
}
@media (prefers-reduced-motion: reduce) {
 html { scroll-behavior: auto !important; }
 body *, body *::before, body *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (min-width: 960px) {
 body .site-content.site_container { display: flex; align-items: flex-start; gap: 32px; }
 body .site-content.site_container > #primary { width: auto; flex: 1 1 0; min-width: 0; }
 body .site-content.site_container > #secondary { width: 300px; flex: 0 0 300px; margin: 0; }
 body.np-single-col .site-content.site_container { justify-content: center; }
 body.np-single-col .site-content.site_container > #primary { flex: 0 1 880px; }
}
@media (max-width: 767px) {
 body:not(.np-loop-card) #primary .content-list .hentry .entry-summary { display: -webkit-box !important; font-size: 12px; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: var(--np-excerpt-lines, 2); overflow: hidden; }
 body #primary #featured-slider .featured-slide .entry-title { font-size: 17px; }
}

html[data-theme="dark"] body, html[data-theme="dark"] body #page { background-color: var(--np-page); color: var(--np-body); }
/* 18. Feedback: quiet headings, compact widgets and consistent controls. */
body .widget-title::before, body .recent-heading .section-title::before,
body .zhuanti-heading h2::before, body .related-content .section-title::before { display:none !important; }
body .widget-title, body .recent-heading .section-title, body .zhuanti-heading h2,
body .related-content .section-title, body .single-credit { border-left:0 !important; padding-left:0; }
body .sidebar .widget { padding:16px 18px; border:0; }
body .sidebar .widget .widget-title { padding:0 0 12px; margin-bottom:8px; border-bottom:0; line-height:1.5; }
body .recent-heading { height:auto; min-height:44px; line-height:1.5; padding:12px 20px; border-bottom:0; }
body .zhuanti-heading { padding:12px 18px; border-bottom:0; }
body .site-main, body .home-zhuanti-section { border:0; }
body .content-list .hentry { border-bottom-color:color-mix(in srgb,var(--np-border) 45%,transparent); }
body .sidebar .widget ul > li { border-bottom-color:color-mix(in srgb,var(--np-border) 35%,transparent); }
body .home-zhuanti-list .thumbnail-wrap { aspect-ratio:16/9 !important; height:auto !important; }
body .home-zhuanti-list .thumbnail-wrap img { aspect-ratio:16/9; object-fit:cover; }
body .np-mobile-bar button > span { display:block !important; visibility:visible; font-size:11px; line-height:1.4; color:inherit; }
body .header-right { display:flex; align-items:center; gap:12px; }
body .top-bar .np-theme-toggle { position:static; display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; margin:0; padding:0; color:inherit; transform:none; }
body .header-submit a, body .header-submit a:hover { border:1px solid transparent !important; box-shadow:none; outline:0; transition:background-color .15s; }
body .header-submit a:hover { background:rgba(255,255,255,.12); }
body .header-search-icon { right:0; margin-left:20px; }
body .header-search-icon .fa-search { display:inline-block !important; opacity:1 !important; visibility:visible !important; }
body .header-search-icon .fa-close { display:none !important; }
body #primary-menu { margin-right:50px; }
body .sf-menu > li.menu-item-has-children > a { padding-right:24px; }
body .sf-menu > li.menu-item-has-children > a::after { right:8px; }
body .single-breadcrumbs { padding:16px 0 0; margin:0; line-height:1.6; }
body.single .site-content { margin-top:16px; }
body .np-toc ul { border-left:0 !important; padding-left:0; }
body .np-toc li { margin:0; border:0; }
body .np-toc li a { border-left:2px solid transparent; padding:6px 10px; line-height:1.65; }
body .np-toc li a.is-active { border-left-color:var(--np-primary); }
body .np-toc-rail-title { border-left:0; padding-left:0; }
body:not(.np-related-list) .related-content ul li.hentry .entry-title,
body:not(.np-related-list) .related-content ul li.hentry .entry-title a { font-size:15px !important; line-height:1.65; font-weight:600; }
body:not(.np-related-list) .related-content .related-thumb,
body:not(.np-related-list) .related-content .related-thumb img { border-radius:var(--np-radius) !important; overflow:hidden; }
body .related-content .section-title { padding-left:0; }
body .single-credit { padding:14px 16px; border:0; }
body .ribbon span, body .content-list .entry-category a { background:rgba(255,255,255,.78) !important; color:#20252c !important; backdrop-filter:blur(12px); border:1px solid rgba(255,255,255,.4); text-shadow:none; }
body #featured-slider .bx-controls-direction a { width:28px; height:28px; line-height:28px; background-size:14px; border-radius:var(--np-radius); }
body .np-load-more { display:block; margin:20px auto; padding:10px 28px; color:var(--np-primary-text); background:var(--np-surface-2); border:1px solid var(--np-border); border-radius:var(--np-radius); cursor:pointer; }
body .np-load-more[hidden], body .pagination[hidden] { display:none !important; }
body .np-load-status { text-align:center; color:var(--np-muted); font-size:13px; }
body.np-square { --np-radius:0px; --np-radius-lg:0px; --np-radius-sm:0px; --np-radius-xs:0px; --np-radius-pill:0px; --np-radius-phone:0px; --np-radius-lg-phone:0px; }
body.np-square *, body.np-square *::before, body.np-square *::after { border-radius:0 !important; }
@media(min-width:960px){body #primary-menu { margin-right:50px !important; }}
@media(max-width:959px){body .site-header .np-theme-toggle { display:none; } body .slicknav_menu { right:48px; }}
body #featured-slider .bx-wrapper .bx-pager.bx-default-pager a.bx-pager-link { background:transparent !important; border:0 !important; width:16px !important; height:16px !important; padding:0; }
body #featured-slider .bx-wrapper .bx-pager.bx-default-pager a.bx-pager-link::before { width:6px; height:6px; border-radius:50%; }
body .entry-content h2, body .entry-content h3 { border-left:0 !important; padding-left:0 !important; }
body .entry-content h2::before, body .entry-content h3::before { display:none !important; }
body .zhuanti-heading, body .zhuanti-heading .custom-wrap { min-height:0; height:auto; line-height:1.5; }
body .zhuanti-heading h2 { margin:0; line-height:1.5; padding:0; }
body #featured-slider .ribbon span { background:rgba(255,255,255,.78) !important; color:#20252c !important; }
body .related-content h3::before, body .related-content h2::before { display:none !important; }
/* 19. Editorial list: category / one-line title / excerpt / metadata. */
body #primary .content-list .hentry,
body #primary .content-list .hentry:hover { background:transparent !important; box-shadow:none !important; }
body .sidebar .widget ul > li:hover,
body .sidebar .widget_posts_thumbnail ul > li:hover,
body .related-content ul > li:hover { background:transparent !important; box-shadow:none !important; }
body #primary .content-list .hentry { padding:22px 24px; align-items:start; gap:20px; }
body #primary .content-list .hentry > .entry-body { min-width:0; display:flex; flex-direction:column; }
body #primary .content-list .entry-header { margin:0; }
body #primary .content-list .entry-title,
body #primary .content-list .entry-title a { display:block !important; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; -webkit-line-clamp:1 !important; min-height:0 !important; height:auto; font-size:19px; line-height:1.6; font-weight:550; margin:0; }
body #primary .content-list .np-list-category { color:var(--np-primary-text); font-size:12px; line-height:1.5; margin:0 0 6px; order:-1; }
body #primary .content-list .np-list-category a { color:inherit; }
body #primary .content-list .entry-summary { margin:10px 0 0; font-size:14px; line-height:1.8; }
body #primary .content-list .entry-meta { margin-top:auto; padding-top:14px; font-size:12px; gap:6px 16px; }
body #primary .content-list .hentry > .thumbnail-box { min-height:0 !important; height:auto !important; align-self:start; border-radius:var(--np-radius); overflow:hidden; }
body #primary .content-list .hentry .thumbnail-link,
body #primary .content-list .hentry .thumbnail-wrap { display:block; width:100%; height:auto !important; min-height:0 !important; aspect-ratio:16/9 !important; border-radius:var(--np-radius); overflow:hidden; }
body #primary .content-list .hentry .thumbnail-wrap img { display:block; width:100%; height:100% !important; object-fit:cover; border-radius:inherit; }
body .sidebar .widget_posts_thumbnail .thumbnail-wrap { width:96px !important; height:54px !important; min-height:0; aspect-ratio:16/9; border-radius:var(--np-radius) !important; overflow:hidden; }
body .sidebar .widget_posts_thumbnail .thumbnail-wrap img { width:100% !important; height:100% !important; object-fit:cover; border-radius:inherit !important; }
body .sidebar .widget_posts_thumbnail .entry-wrap { margin-left:108px; min-height:54px; padding:0; }
body .sidebar .widget_posts_thumbnail ul > li { padding:12px 0; margin:0; }
body .sidebar .widget_posts_thumbnail .entry-wrap > a { font-size:13px; line-height:1.65; }
body .sidebar .widget_posts_thumbnail .entry-meta { margin-top:5px; font-size:11px; }
body .sidebar .widget { padding:18px; margin-bottom:20px; }
body .sidebar .widget .widget-title { font-size:16px; line-height:1.5; margin:0 0 8px; padding:0 0 6px; }
body .recent-heading { min-height:0; padding:16px 24px; }
body .recent-heading .section-title { font-size:18px; line-height:1.5; }
body .zhuanti-heading { padding:14px 18px 0; }
body .home-zhuanti-section { margin-bottom:20px; }
body .home-zhuanti-list { padding-top:14px; }
body .entry-content { line-height:1.9; }
body .entry-content h2 { margin-bottom:18px; padding-bottom:10px; border-bottom:1px solid var(--np-border); }
body .entry-content blockquote { border:0; background:var(--np-surface-2); padding:18px 22px; border-radius:var(--np-radius); }
body .entry-content blockquote::before { display:none; }
body .entry-content table th { background:var(--np-surface-2); }
body .entry-content table th, body .entry-content table td { padding:12px 14px; border-color:var(--np-border); }
body .np-load-more { border:0; border-top:1px solid var(--np-border); border-radius:0; background:transparent; width:100%; margin:0; padding:18px; font-size:14px; }
body .np-load-more:hover { color:var(--np-primary-text); background:transparent; }
body .pagination { padding:20px; }
body .pagination .page-numbers { border-radius:var(--np-radius); box-shadow:none; }
@media(min-width:960px){
 body #primary .content-list .hentry { grid-template-columns:220px minmax(0,1fr); }
 body #primary .content-list .hentry > .thumbnail-box { width:220px; }
 body #primary .content-list .hentry > .entry-body { min-height:123.75px; }
 body.np-loop-compact #primary .content-list .hentry { grid-template-columns:160px minmax(0,1fr); }
 body.np-loop-compact #primary .content-list .hentry > .thumbnail-box { width:160px; }
 body.np-loop-compact #primary .content-list .hentry > .entry-body { min-height:90px; }
}
@media(max-width:959px){
 body #primary .content-list .hentry { grid-template-columns:180px minmax(0,1fr); }
 body #primary .content-list .hentry > .thumbnail-box { width:180px; }
}
@media(max-width:767px){
 body #primary .content-list .hentry { grid-template-columns:112px minmax(0,1fr); padding:16px; gap:12px; }
 body #primary .content-list .hentry > .thumbnail-box { width:112px; }
 body #primary .content-list .entry-title, body #primary .content-list .entry-title a { font-size:15px; line-height:1.6; }
 body #primary .content-list .np-list-category { font-size:11px; margin-bottom:4px; }
 body #primary .content-list .hentry .entry-summary { font-size:12px; margin-top:6px; }
 body #primary .content-list .entry-meta { padding-top:8px; font-size:11px; gap:4px 10px; }
 body .recent-heading { padding:14px 16px; }
}
body.np-loop-card #primary .content-list .hentry > .thumbnail-box { width:100%; }
body.np-loop-card #primary .content-list .hentry > .entry-body { min-height:0; }
body.np-square #primary .content-list .hentry .thumbnail-wrap,
body.np-square .sidebar .widget_posts_thumbnail .thumbnail-wrap { border-radius:0 !important; }
body .sidebar .widget_posts_thumbnail .entry-wrap > a { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; -webkit-line-clamp:1; }
body .content-list .hentry .thumbnail-wrap img,
body .sidebar .widget_posts_thumbnail .thumbnail-wrap img { transition:none; }
body .content-list .hentry:hover .thumbnail-wrap img,
body .sidebar .widget_posts_thumbnail li:hover .thumbnail-wrap img { transform:none; }
body #primary .content-list .entry-meta .np-loop-author { margin-right:auto; }
body .np-loop-author a { display:inline-flex; align-items:center; gap:6px; color:var(--np-muted); }
body .np-loop-author img { width:20px; height:20px; border-radius:var(--np-radius); }
@media(max-width:767px){ body #primary .content-list .entry-meta .np-loop-author { display:none; } }
/* 20. Component contracts: settings hierarchy and consistent geometry. */
body.np-topbar-dark .top-bar .header-right li.header-submit a:hover,
body.np-topbar-light .top-bar .header-right li.header-submit a:hover { outline:none !important; outline-offset:0; box-shadow:none !important; border-color:transparent !important; }
body .top-bar .header-right li.header-submit a:focus-visible { outline:1px solid currentColor !important; outline-offset:2px; }
body .sidebar .np-hot-item { display:grid; grid-template-columns:20px minmax(0,1fr); gap:4px 10px; padding:12px 0; align-items:start; }
body .sidebar .np-hot-title { display:block; white-space:normal; text-overflow:clip; overflow:visible; -webkit-line-clamp:unset; line-height:1.65; font-size:13px; }
body .sidebar .np-hot-views { grid-column:2; font-size:11px; line-height:1.4; }
body .sidebar .widget_posts_thumbnail .entry-wrap > a { display:-webkit-box; white-space:normal; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; line-height:1.65; }
body #primary .content-list .hentry .thumbnail-link,
body #primary .content-list .hentry .thumbnail-wrap,
body .home-zhuanti-list .thumbnail-wrap,
body:not(.np-related-list) .related-content .related-thumb { aspect-ratio:3/2 !important; }
body #primary .content-list .hentry .thumbnail-wrap img,
body .sidebar .widget_posts_thumbnail .thumbnail-wrap img,
body .home-zhuanti-list .thumbnail-wrap img,
body .related-content .related-thumb img { object-fit:cover !important; background:var(--np-surface-2); }
body .home-zhuanti-list .thumbnail-wrap img { aspect-ratio:3/2; }
body .sidebar .widget_posts_thumbnail .thumbnail-wrap { height:64px !important; aspect-ratio:3/2; }
body .sidebar .widget_posts_thumbnail .entry-wrap { min-height:64px; }
body #primary .np-load-more { width:auto; min-width:180px; max-width:calc(100% - 40px); display:block; margin:20px auto; padding:12px 28px; line-height:1.5; border:1px solid var(--np-border); border-radius:var(--np-radius); color:var(--np-primary-text); background:var(--np-surface-2); height:auto; position:static; transform:none; }
body #primary .np-load-more:hover { border-color:var(--np-primary); background:color-mix(in srgb,var(--np-primary) 8%,var(--np-surface)); }
body #primary .np-load-more:disabled { opacity:.6; cursor:progress; }
body #primary .np-load-more[hidden] { display:none !important; }
body #secondary .np-toc ul, body .np-toc-rail .np-toc ul { margin:0; padding:0; }
body #secondary .np-toc li, body .np-toc-rail .np-toc li { padding:0 !important; margin:0 !important; border:0 !important; }
body #secondary .np-toc li a, body .np-toc-rail .np-toc li a { font-size:13px; line-height:1.6; padding:5px 10px; border-left:2px solid transparent; box-shadow:none; }
body #secondary .np-toc li.np-toc-h3 a, body .np-toc-rail .np-toc li.np-toc-h3 a { padding-left:22px; }
body #secondary .np-toc li a.is-active, body .np-toc-rail .np-toc li a.is-active { border-left-color:var(--np-primary); }
body #myModal.np-modal-open { position:fixed; inset:0; padding:16px; width:100%; height:100%; align-items:center; justify-content:center; z-index:100000; }
body #myModal .modal-content { position:relative; inset:auto; margin:0 !important; transform:none !important; max-height:calc(100dvh - 32px); overflow:auto; }
body.single #primary .entry-footer .entry-like a,
body.single #primary .entry-footer .entry-like a:hover,
body.single #primary .entry-footer .entry-like a.liked,
body.single #primary .entry-footer .entry-like a.liked .sl-count,
body.single #primary .entry-footer .entry-like a.liked i { color:var(--np-on-primary,#fff) !important; background:var(--np-primary); border-color:var(--np-primary); }
body #primary-nav .sf-menu > li.menu-item-has-children > a { position:relative; padding-right:26px !important; }
body #primary-nav .sf-menu > li.menu-item-has-children > a::after { content:'' !important; position:absolute; width:5px; height:5px; border:solid currentColor; border-width:0 1.5px 1.5px 0; top:50%; right:11px; margin-top:-4px; line-height:1; transform:rotate(45deg) !important; }
body #primary-nav .sf-menu ul::before { border-bottom-color:var(--np-border-strong) !important; }
body #primary-nav .sf-menu ul::after { border-bottom-color:var(--np-surface) !important; }
body.np-loop-card:not(.single):not(.page) #primary .site-main { background:transparent; border:0; box-shadow:none; }
body.np-loop-card #primary .content-list { padding:0; }
body.np-loop-card #primary .content-list .posts-loop { gap:20px; }
body.np-loop-card #primary .content-list .hentry { padding:0; border:0; background:var(--np-surface) !important; border-radius:var(--np-radius-lg); overflow:hidden; }
body.np-loop-card #primary .content-list .hentry .thumbnail-box { width:100%; border-radius:0; }
body.np-loop-card #primary .content-list .hentry .thumbnail-link,
body.np-loop-card #primary .content-list .hentry .thumbnail-wrap { border-radius:0; }
body.np-loop-card #primary .content-list .hentry > .entry-body { padding:16px; min-height:0; }
body.np-loop-card #primary .content-list .entry-title a { font-size:17px; }
body.np-loop-compact #primary .content-list .hentry { padding-block:18px; }
@media(min-width:960px){ body:not(.np-loop-card):not(.np-loop-compact) #primary .content-list .hentry > .entry-body { min-height:146.66px; } body.np-loop-compact #primary .content-list .hentry > .entry-body { min-height:106.66px; }}
body.np-square #primary .np-load-more { border-radius:0; }
body #myModal .modal-content { animation:none !important; }
body.single #primary .entry-footer .entry-like a.liked * { color:var(--np-on-primary,#fff) !important; }
body #myModal.np-modal-open { box-sizing:border-box; }
body.np-topbar-dark .top-bar .header-right li.header-submit a:hover,
body.np-topbar-light .top-bar .header-right li.header-submit a:hover { outline-width:0 !important; }
html[data-theme="dark"] { --np-primary:var(--np-brand-primary,#2563eb); --np-primary-dark:var(--np-brand-primary,#2563eb); --np-primary-text:color-mix(in srgb,var(--np-brand-primary,#2563eb) 55%,white); --np-on-primary:var(--np-brand-on-primary,#fff); --np-accent:var(--np-brand-accent,#2563eb); --np-focus-ring:var(--np-primary-text); }
/* 21. Mobile navigation stacking, centered pager, inset topic viewport. */
@media(max-width:959px){
 body .site-header { position:relative !important; z-index:2000 !important; overflow:visible !important; }
 body .site-header > .container { overflow:visible !important; }
 body .site-header .slicknav_menu { z-index:2001; }
 body .site-header .slicknav_nav { z-index:2002; max-height:calc(100dvh - 90px); overflow-y:auto; box-sizing:border-box; }
}
body #featured-slider .bx-wrapper .bx-pager.bx-default-pager { display:flex; align-items:center; justify-content:center; gap:2px; width:auto !important; height:22px; min-height:0; box-sizing:border-box; padding:3px 5px !important; line-height:1; right:12px; top:12px; bottom:auto; border-radius:var(--np-radius-pill); }
body #featured-slider .bx-wrapper .bx-pager.bx-default-pager .bx-pager-item { display:flex; width:16px; height:16px; margin:0; padding:0; }
body #featured-slider .bx-wrapper .bx-pager.bx-default-pager a.bx-pager-link { display:block; width:16px !important; height:16px !important; margin:0; }
body #featured-slider .bx-wrapper .bx-pager.bx-default-pager a.bx-pager-link::before { top:50% !important; left:50% !important; width:6px !important; height:6px !important; transform:translate(-50%,-50%); }
body .home-zhuanti-section .home-zhuanti-list { margin:14px 18px 0 !important; padding:0 0 18px !important; width:calc(100% - 36px) !important; box-sizing:border-box; scroll-padding-inline:0; }
body .sidebar .np-hot-item { display:grid; grid-template-columns:20px 80px minmax(0,1fr); column-gap:10px; row-gap:4px; }
body .sidebar .np-hot-item .np-hot-rank { grid-column:1; grid-row:1 / 3; }
body .sidebar .np-hot-item .np-hot-thumb { grid-column:2; grid-row:1 / 3; display:block; width:80px; aspect-ratio:3/2; overflow:hidden; border-radius:var(--np-radius); background:var(--np-surface-2); }
body .np-hot-thumb img { display:block; width:100%; height:100%; object-fit:cover; }
body .np-hot-placeholder { display:flex; width:100%; height:100%; align-items:center; justify-content:center; color:var(--np-muted); }
body .sidebar .np-hot-title { grid-column:3; grid-row:1; font-size:13px; }
body .sidebar .np-hot-views { grid-column:3; grid-row:2; }
/* 22. Shared widget shell, toolbar and stable reading header. */
body .sidebar > .widget { box-sizing:border-box; padding:18px; margin:0 0 20px; background:var(--np-surface); border:0; border-radius:var(--np-radius-lg); box-shadow:none; }
body .sidebar > .widget > .widget-title { margin:0 0 12px; padding:0; font-size:16px; font-weight:650; line-height:1.5; border:0; }
body #primary .site-main { border:0; box-shadow:none; }
body .sidebar .np-hot-item { position:relative; grid-template-columns:80px minmax(0,1fr); }
body .sidebar .np-hot-item .np-hot-thumb { grid-column:1; }
body .sidebar .np-hot-item .np-hot-rank { position:absolute; top:12px; left:0; z-index:1; min-width:19px; padding:2px 4px; box-sizing:border-box; font-size:12px; font-style:normal; font-weight:700; line-height:1.4; text-align:center; color:var(--np-on-primary,#fff); background:var(--np-primary); border-radius:var(--np-radius) 0 var(--np-radius) 0; }
body .sidebar .np-hot-item .np-hot-title { grid-column:2; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
body .sidebar .np-hot-item .np-hot-views { grid-column:2; }
body #primary-nav .sf-menu > li > ul { top:calc(100% - 10px) !important; border:1px solid var(--np-border-strong); box-shadow:var(--np-shadow-card); }
body #primary-nav .sf-menu > li > ul::before, body #primary-nav .sf-menu > li > ul::after { display:none !important; }
body #primary-nav .sf-menu > li > ul { overflow:visible; }
body #primary-nav .sf-menu > li > ul::before { content:''; display:block !important; position:absolute; top:-5px; left:24px; width:8px; height:8px; background:var(--np-surface); border:solid var(--np-border-strong); border-width:1px 0 0 1px; transform:rotate(45deg); }
body #primary .np-load-more { min-width:200px; padding:12px 30px; font-weight:600; color:var(--np-primary-text); background:color-mix(in srgb,var(--np-primary) 6%,var(--np-surface)); border-color:color-mix(in srgb,var(--np-primary) 18%,var(--np-border)); }
body #primary .np-load-more::after { content:'↓'; display:inline-block; margin-left:10px; }
body img.avatar { aspect-ratio:1 !important; object-fit:cover !important; border-radius:50% !important; flex-shrink:0; }
body .entry-meta .author-avatar, body .entry-meta .author-avatar img { width:28px !important; height:28px !important; display:inline-flex; align-items:center; }
body .np-loop-author img.avatar { width:20px !important; height:20px !important; }
body .author-box img.avatar { width:64px !important; height:64px !important; }
body .np-table-scroll { width:100%; max-width:100%; overflow-x:auto; margin:24px 0; }
body .entry-content .np-table-scroll > table { display:table !important; width:100% !important; max-width:none; margin:0; table-layout:auto; border-collapse:collapse; }
body #myModal .np-pay-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
body #myModal .np-pay-panel { display:block !important; min-width:0; }
body #myModal .np-pay-panel img { display:block; width:100%; height:auto; max-width:180px; margin:0 auto; }
body #myModal .np-pay-panel p { font-size:13px; text-align:center; line-height:1.5; margin:10px 0 0; }
body .header-right .np-header-tools { display:flex; align-items:center; gap:14px; margin:0; padding:0; list-style:none; }
body .header-right .np-header-tools > li { float:none; margin:0; }
body .np-header-tools .np-toolbar-menu ul { display:flex; gap:12px; }
body.np-header-hidden .site-header.main-nav-scrolled { transform:none !important; }
body .site-header.main-nav-scrolled { position:fixed; top:0 !important; transform:none !important; background:color-mix(in srgb,var(--np-surface) 85%,transparent) !important; backdrop-filter:blur(18px) saturate(140%); -webkit-backdrop-filter:blur(18px) saturate(140%); }
@media(max-width:959px){body.np-sticky-header .site-header {position:sticky !important;top:0; background:color-mix(in srgb,var(--np-surface) 88%,transparent) !important;backdrop-filter:blur(18px);}}
/* 23. Admin-aware sticky geometry and one shared pagination/tool rail. */
:root { --np-admin-offset:0px; }
body.admin-bar { --np-admin-offset:32px; }
body .site-header.main-nav-scrolled { top:var(--np-admin-offset,0px) !important; }
html { scroll-padding-top:calc(var(--np-header-h,75px) + var(--np-admin-offset,0px) + 16px); }
body .entry-content :is(h2,h3,h4) { scroll-margin-top:calc(var(--np-header-h,75px) + var(--np-admin-offset,0px) + 16px); }
@media(max-width:959px){body.np-sticky-header .site-header{top:var(--np-admin-offset,0px) !important;}}
@media(max-width:782px){body.admin-bar {--np-admin-offset:46px;}}
body .np-pagination { display:flex; align-items:center; gap:12px; flex-wrap:wrap; padding:20px; margin:0; background:var(--np-surface); border-radius:var(--np-radius-lg); }
body .np-page-numbers,body .np-page-arrows { display:flex; align-items:center; gap:8px; }
body .np-pagination .page-numbers,body .np-page-arrows > * { display:inline-flex; align-items:center; justify-content:center; min-width:36px; height:38px; padding:0 6px; box-sizing:border-box; background:var(--np-surface-2); color:var(--np-primary-text); border:0; border-radius:var(--np-radius); font-size:14px; text-decoration:none; }
body .np-pagination .current { color:var(--np-muted); background:var(--np-page); font-weight:600; }
body .np-pagination .dots { background:transparent; min-width:18px; color:var(--np-muted); }
body .np-pagination a:hover { background:var(--np-primary); color:var(--np-on-primary); }
body .np-page-arrows { margin-left:auto; }
body .np-page-arrows > * { font-size:26px; }
body .np-page-arrows [aria-disabled] { opacity:.35; }
body .np-page-jump { display:flex; align-items:center; gap:6px; margin:0; }
body .np-page-jump label { display:flex; align-items:center; height:38px; border:1px solid var(--np-border); border-radius:var(--np-radius); padding:0 8px; color:var(--np-muted); font-size:13px; }
body .np-page-jump input[type=number] { width:44px; min-width:0; padding:0; border:0; background:transparent; color:var(--np-body); box-shadow:none; }
body .np-page-jump button { border:0; background:var(--np-surface-2); color:var(--np-primary-text); height:38px; width:30px; padding:0; border-radius:var(--np-radius); }
body .bottom-right { display:flex !important; flex-direction:column; gap:0; width:44px; right:16px; bottom:32px; background:var(--np-surface); border:1px solid var(--np-border); border-radius:var(--np-radius-lg); box-shadow:var(--np-shadow-card); padding:4px; box-sizing:content-box; z-index:2100; }
body .bottom-right .bottom-icon { position:relative; width:44px; height:44px; min-height:0; margin:0 !important; padding:0; border:0 !important; border-radius:var(--np-radius); box-shadow:none !important; background:transparent; overflow:visible; }
body .bottom-right .bottom-icon > :is(a,button,.icon-link) { position:relative; display:flex !important; align-items:center; justify-content:center; width:44px !important; height:44px !important; padding:0 !important; margin:0; border:0; color:var(--np-muted); background:transparent; border-radius:var(--np-radius); cursor:pointer; box-sizing:border-box; }
body .bottom-right .bottom-icon .icon { position:static !important; display:flex !important; align-items:center; justify-content:center; width:44px !important; height:44px !important; line-height:1 !important; }
body .bottom-right .bottom-icon .icon i { font-size:20px; line-height:1; }
body .bottom-right .bottom-icon .text { display:none !important; position:absolute !important; right:calc(100% + 8px); left:auto; top:50%; transform:translateY(-50%); width:auto !important; height:auto !important; padding:7px 12px !important; line-height:1.5 !important; font-size:12px; white-space:nowrap; background:var(--np-primary); color:var(--np-on-primary); border-radius:var(--np-radius); }
body .bottom-right .bottom-icon:is(:hover,:focus-within) .text { display:block !important; }
body .bottom-right .bottom-icon > :is(a,button,.icon-link):hover { color:var(--np-primary-text); background:var(--np-surface-2); }
body .bottom-right .left-space { position:absolute; right:100%; left:auto; bottom:0; top:auto; padding-right:12px; display:none; width:240px; }
body .bottom-right .bottom-icon:is(:hover,:focus-within,.is-open) > .left-space { display:block; }
body .bottom-right .left-space .left { width:240px; box-sizing:border-box; padding:16px; margin:0; background:var(--np-surface); color:var(--np-body); border:1px solid var(--np-border); border-radius:var(--np-radius-lg); box-shadow:var(--np-shadow-card); }
body .bottom-right .left-space img { max-width:100%; height:auto; }
body .bottom-right .left-space h3 { font-size:14px; line-height:1.5; margin:8px 0; }
@media(max-width:767px){body .bottom-right{display:none !important;}body .np-pagination{padding:16px;gap:10px;}body .np-pagination .page-numbers,body .np-page-arrows > *{min-width:32px;height:36px;}body .np-page-jump{order:3;width:100%;justify-content:center;}}
/* 24. Image-backed adjacent posts and featured popular story. */
body .np-adjacent-posts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin:28px 0; }
body .np-adjacent-posts.np-adjacent-single { grid-template-columns:minmax(0,1fr); }
body .np-adjacent-card { position:relative; isolation:isolate; display:flex; flex-direction:column; justify-content:space-between; gap:20px; min-height:150px; padding:20px; box-sizing:border-box; overflow:hidden; border-radius:var(--np-radius-lg); background:var(--np-border-strong); color:#fff !important; text-decoration:none; }
body .np-adjacent-card::after { content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(180deg,rgba(8,15,26,.45),rgba(8,15,26,.68)); }
body .np-adjacent-card .np-adjacent-image { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-2; }
body .np-adjacent-title { display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; font-size:17px; line-height:1.65; font-weight:600; text-shadow:0 1px 3px rgba(0,0,0,.25); }
body .np-adjacent-label { font-size:13px; line-height:1.5; }
body .np-adjacent-next { text-align:right; }
body .np-adjacent-card:hover::after { background:linear-gradient(180deg,rgba(8,15,26,.36),rgba(8,15,26,.6)); }
body .sidebar .np-hot-item { padding:12px 0 12px 6px; column-gap:12px; border:0; }
body .sidebar .np-hot-item .np-hot-rank { top:18px; left:0; padding:3px 7px; min-width:40px; width:auto; font-size:11px; line-height:1.4; border-radius:0 var(--np-radius-pill) var(--np-radius-pill) 0; box-shadow:0 2px 6px rgba(0,0,0,.12); }
body .sidebar .np-hot-item:not(.np-hot-top) .np-hot-rank { background:var(--np-muted); color:var(--np-surface); }
body .sidebar .np-hot-item .np-hot-thumb { width:84px; }
body .sidebar .np-hot-item { grid-template-columns:84px minmax(0,1fr); }
body .sidebar .np-hot-item.np-hot-featured { display:block; position:relative; margin:6px 0 8px 6px; padding:0; aspect-ratio:3/2; border-radius:var(--np-radius); }
body .sidebar .np-hot-featured .np-hot-thumb { width:100%; height:100%; aspect-ratio:auto; }
body .sidebar .np-hot-featured .np-hot-thumb img { object-fit:cover; }
body .sidebar .np-hot-featured::after { content:''; position:absolute; inset:0; pointer-events:none; background:linear-gradient(180deg,transparent 25%,rgba(8,15,26,.85)); border-radius:inherit; }
body .sidebar .np-hot-featured .np-hot-rank { left:-6px; top:12px; z-index:2; font-size:13px; padding:4px 10px; }
body .sidebar .np-hot-featured .np-hot-title { position:absolute; left:14px; right:14px; bottom:14px; z-index:1; color:#fff !important; font-size:15px; line-height:1.65; }
body .sidebar .np-hot-featured .np-hot-views { position:absolute; left:14px; bottom:68px; z-index:1; color:#fff; background:var(--np-primary); padding:3px 6px; border-radius:var(--np-radius); font-size:11px; }
body .sidebar .np-hot-featured .np-hot-placeholder { color:var(--np-muted); background:var(--np-surface-2); }
@media(max-width:767px){body .np-adjacent-posts{gap:12px;}body .np-adjacent-card{padding:14px;min-height:145px;}body .np-adjacent-title{font-size:14px;}body .np-adjacent-label{font-size:12px;}}
/* 25. Popular-widget proportions match the supplied ranking reference. */
body .sidebar .np-hot-list { --np-rank-first:#ff315d; --np-rank-second:#ff6257; --np-rank-third:#ff842d; --np-rank-rest:#858e97; }
body .sidebar .np-hot-item { grid-template-columns:36% minmax(0,1fr); padding:12px 0 12px 12px; column-gap:12px; align-items:start; }
body .sidebar .np-hot-item .np-hot-thumb { width:100%; aspect-ratio:3/2; }
body .sidebar .np-hot-item .np-hot-rank { left:0; top:18px; min-width:0; width:38px; height:18px; box-sizing:border-box; padding:0 4px; display:flex; align-items:center; justify-content:center; line-height:1; font-size:10px; font-style:italic; font-weight:650; color:#fff !important; background:var(--np-rank-rest); box-shadow:0 2px 5px rgba(0,0,0,.1); border-radius:0 var(--np-radius-pill) var(--np-radius-pill) 0; }
body .sidebar .np-hot-item:nth-child(1) .np-hot-rank { background:var(--np-rank-first); }
body .sidebar .np-hot-item:nth-child(2) .np-hot-rank { background:var(--np-rank-second); }
body .sidebar .np-hot-item:nth-child(3) .np-hot-rank { background:var(--np-rank-third); }
body .sidebar .np-hot-item:nth-child(n+4) .np-hot-rank { background:var(--np-rank-rest); }
body .sidebar .np-hot-item .np-hot-title { font-size:13px; line-height:1.6; font-weight:500; }
body .sidebar .np-hot-item .np-hot-views { font-size:11px; line-height:1.5; }
body .sidebar .np-hot-item.np-hot-featured { margin:6px 0 8px 12px; padding:0; aspect-ratio:5/3; }
body .sidebar .np-hot-featured .np-hot-thumb { width:100%; height:100%; aspect-ratio:auto; }
body .sidebar .np-hot-featured .np-hot-rank { left:-12px; top:10px; width:56px; height:26px; padding:0 8px; font-size:14px; }
body .sidebar .np-hot-featured .np-hot-title { font-size:14px; line-height:1.6; font-weight:600; left:14px; right:14px; bottom:14px; }
body .sidebar .np-hot-featured .np-hot-views { left:14px; bottom:66px; font-size:11px; line-height:1.4; background:#00b4d8; color:#fff; padding:3px 6px; }
body .sidebar .np-hot-item .np-hot-rank { grid-column:auto; grid-row:auto; }
/* 26. One quiet glass surface for information laid over photographs. */
:root {
 --np-image-glass-bg:rgba(18,26,38,.36);
 --np-image-glass-border:rgba(255,255,255,.2);
 --np-image-glass-text:#fff;
 --np-image-glass-blur:10px;
}
body .sidebar .np-hot-featured .np-hot-views,
body #featured-slider .ribbon span,
body .ribbon span,
body .content-list .thumbnail-box .entry-category a,
body #featured-slider .bx-wrapper .bx-pager.bx-default-pager,
body .bx-wrapper .bx-controls-direction :is(.bx-prev,.bx-next) {
 background:var(--np-image-glass-bg) !important;
 color:var(--np-image-glass-text) !important;
 border:1px solid var(--np-image-glass-border);
 box-sizing:border-box;
 backdrop-filter:blur(var(--np-image-glass-blur)) saturate(125%);
 -webkit-backdrop-filter:blur(var(--np-image-glass-blur)) saturate(125%);
 box-shadow:inset 0 1px 0 rgba(255,255,255,.06);
 text-shadow:0 1px 2px rgba(0,0,0,.25);
}
body .sidebar .np-hot-featured .np-hot-views { padding:3px 7px; font-weight:400; }
body .bx-wrapper .bx-controls-direction :is(.bx-prev,.bx-next):hover { background:rgba(18,26,38,.55) !important; }
/* Featured popular-story view count: inset at image top right. */
body .sidebar .np-hot-featured .np-hot-views { top:10px; right:10px; bottom:auto; left:auto; margin:0; }
/* 27. Consistent control alignment and compact navigation surfaces. */
body .np-page-jump label { gap:4px; padding:0 10px; align-items:center; justify-content:center; }
body .np-page-jump input[type=number] { appearance:textfield; -moz-appearance:textfield; width:34px; height:36px; line-height:36px; text-align:center; margin:0; padding:0; }
body .np-page-jump input::-webkit-inner-spin-button, body .np-page-jump input::-webkit-outer-spin-button { -webkit-appearance:none; margin:0; }
body .np-page-jump label > span:not(.screen-reader-text) { display:inline-flex; align-items:center; justify-content:center; line-height:36px; white-space:nowrap; }
body .bottom-right { width:36px; padding:3px; }
body .bottom-right .bottom-icon,
body .bottom-right .bottom-icon > :is(a,button,.icon-link),
body .bottom-right .bottom-icon .icon { width:36px !important; height:40px !important; }
body .bottom-right .bottom-icon .icon i { font-size:18px; }
body .bottom-right .bottom-icon.tooltip .text { display:none !important; }
body .bottom-right .left-space { width:220px; padding:0 12px 0 0; top:auto !important; bottom:0 !important; right:100% !important; left:auto !important; height:auto; margin:0; transform:none !important; }
body .bottom-right .left-space .left { position:relative !important; inset:auto !important; width:220px; height:auto; margin:0 !important; transform:none !important; text-align:left; }
body .bottom-right .left-space .left > i { display:none !important; }
body .bottom-right .icon-weixin .left-space .left { text-align:center; }
body #primary-nav .sf-menu ul { border-radius:var(--np-radius-lg); padding:6px 0; }
body #primary-nav .sf-menu ul li:first-child > a { border-radius:var(--np-radius) var(--np-radius) 0 0; }
body #primary-nav .sf-menu ul li:last-child > a { border-radius:0 0 var(--np-radius) var(--np-radius); }
body.single #primary .entry-header .entry-meta { display:flex; flex-wrap:wrap; align-items:center; gap:10px 18px; }
body.single #primary .entry-header .entry-meta > span { display:inline-flex; align-items:center; gap:5px; margin:0; padding:0; line-height:1.6; }
body.single #primary .entry-header .entry-meta > span::before { display:none !important; }
body.single #primary .entry-header .entry-meta .entry-category-single { margin-left:4px; gap:6px; flex-wrap:wrap; }
body.single #primary .entry-header .entry-meta .entry-category-single a { margin:0; line-height:1.5; padding:3px 9px; }
@media(max-width:767px){
 body.single #primary .entry-header .entry-meta { gap:10px 14px; font-size:12px; }
 body.single #primary .entry-header .entry-meta .entry-category-single { flex-basis:100%; margin-left:0; margin-top:2px; }
}
@media(max-width:959px){
 body .site-header .slicknav_menu { left:0; right:0; top:0; height:100%; padding:0; pointer-events:none; }
 body .site-header .slicknav_btn { position:absolute; right:44px; top:50%; transform:translateY(-50%); margin:0 !important; padding:10px; float:none; pointer-events:auto; }
 body .site-header .slicknav_nav { position:absolute; top:100%; left:0; right:0; width:auto !important; margin:0 !important; padding:8px; border-top:0 !important; clear:none; pointer-events:auto; background:var(--np-surface); }
 body .site-header .slicknav_nav li { margin:0 !important; padding:0 !important; border:0; }
 body .site-header .slicknav_nav > li > a,
 body .site-header .slicknav_nav .slicknav_row,
 body .site-header .slicknav_nav ul a { display:flex; align-items:center; min-height:44px; box-sizing:border-box; line-height:1.5; padding:10px 14px; margin:0; border:0; }
 body .site-header .slicknav_nav .slicknav_row > a { display:block; flex:1; padding:0; margin:0; border:0; line-height:1.5; }
 body .site-header .slicknav_nav .slicknav_arrow { margin:0 0 0 auto; padding-left:12px; font-size:10px; line-height:1; }
 body .site-header .slicknav_nav ul { margin:0; padding:0; }
 body .site-header .slicknav_nav ul a { padding-left:28px; }
}
@media(max-width:959px){body .site-header > .container { display:flow-root; }}
@media(max-width:959px){body .site-header .slicknav_nav .slicknav_row > a {min-height:0;height:auto;padding:0 !important;}body .site-header .slicknav_nav .slicknav_arrow{float:none;}}
/* Back-to-top collapses its own slot so the shared rail shrinks naturally. */
body .bottom-right #back-top { height:40px !important; opacity:1; visibility:visible !important; transition:height .2s ease,opacity .15s ease; }
body .bottom-right #back-top.is-collapsed { height:0 !important; opacity:0; overflow:hidden; pointer-events:none; }
body .bottom-right.np-tools-empty { opacity:0; pointer-events:none; }
@media(prefers-reduced-motion:reduce){body .bottom-right #back-top{transition:none;}}
/* 28. Related rows, comments and surfaces share the theme's semantic colours. */
body:not(.np-related-list) .related-content ul li.hentry { display:grid; grid-template-columns:112px minmax(0,1fr); gap:12px; align-items:stretch; padding:12px; }
body:not(.np-related-list) .related-content .related-thumb { display:block; width:112px; height:84px; min-width:0; aspect-ratio:4/3 !important; border-radius:var(--np-radius) !important; overflow:hidden; align-self:center; }
body:not(.np-related-list) .related-content .related-thumb img { display:block; width:100% !important; height:100% !important; object-fit:cover !important; border-radius:0 !important; margin:0; }
body:not(.np-related-list) .related-content .related-body { display:flex; flex-direction:column; justify-content:space-between; min-width:0; min-height:84px; padding:0; }
body:not(.np-related-list) .related-content .related-body .entry-title { margin:0; padding:0; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; }
body:not(.np-related-list) .related-content .related-body .entry-meta { display:flex; flex-wrap:wrap; gap:4px 12px; position:static; margin:8px 0 0 !important; padding:0 !important; font-size:11px; line-height:1.5; }
body:not(.np-related-list) .related-content .entry-meta > span { margin:0 !important; padding:0; }
body #primary-nav .sf-menu ul { background:var(--np-surface) !important; color:var(--np-body); border-color:var(--np-border-strong); }
body #primary-nav .sf-menu ul li,
body #primary-nav .sf-menu ul li > a { background:transparent; color:var(--np-body) !important; border-radius:0 !important; }
body #primary-nav .sf-menu ul li > a:hover,
body #primary-nav .sf-menu ul li > a:focus-visible,
body #primary-nav .sf-menu ul li.current-menu-item > a { background:var(--np-surface-2) !important; color:var(--np-primary-text) !important; border-radius:0 !important; }
body .breadcrumbs.is_zhuanti { background:var(--np-surface) !important; color:var(--np-body); border:0; border-radius:var(--np-radius-lg); overflow:hidden; }
body .breadcrumbs.is_zhuanti .thumbnail { overflow:hidden; border-radius:0; }
body .breadcrumbs.is_zhuanti img { display:block; width:100%; object-fit:cover; border-radius:0 !important; }
body .breadcrumbs.is_zhuanti .taxonomy-description { background:transparent; color:var(--np-muted); padding:18px 20px; margin:0; }
body #comments { margin-top:28px; padding-top:0; border:0; color:var(--np-body); }
body #comments :is(.comment-reply-title,.comments-title) { font-size:18px; line-height:1.5; margin:0 0 18px; padding:0; color:var(--np-heading); border:0; }
body #comments #respond { padding:20px; background:var(--np-surface-2); border:0; border-radius:var(--np-radius-lg); margin:0 0 28px; }
body #comments .comment-form { display:flex; flex-wrap:wrap; gap:14px; }
body #comments .comment-form > p { margin:0; width:100%; padding:0; }
body #comments .comment-form :is(.comment-form-author,.comment-form-email,.comment-form-url) { flex:1 1 160px; width:auto; }
body #comments .comment-form label { display:block; font-size:13px; line-height:1.6; margin-bottom:6px; color:var(--np-body); }
body #comments :is(.comment-notes,.logged-in-as,.must-log-in) { font-size:13px; line-height:1.8; color:var(--np-muted); }
body #comments .comment-form :is(textarea,input:not([type=submit]):not([type=checkbox]):not([type=hidden])) { box-sizing:border-box; width:100%; border:1px solid var(--np-border); border-radius:var(--np-radius); padding:10px 12px; background:var(--np-surface); color:var(--np-body); box-shadow:none; font:inherit; line-height:1.7; }
body #comments .comment-form textarea { min-height:140px; resize:vertical; }
body #comments .comment-form :is(input,textarea):focus { border-color:var(--np-primary); outline:1px solid var(--np-focus-ring); outline-offset:0; }
body #comments .comment-form-cookies-consent { display:flex; align-items:flex-start; gap:8px; }
body #comments .comment-form-cookies-consent label { margin:0; }
body #comments .form-submit { display:flex; justify-content:flex-end; }
body #comments .form-submit .submit { background:var(--np-primary) !important; color:var(--np-on-primary,#fff) !important; border:1px solid var(--np-primary); border-radius:var(--np-radius); padding:10px 24px; line-height:1.6; font-size:14px; font-weight:600; box-shadow:none; cursor:pointer; }
body #comments .form-submit .submit:hover { filter:brightness(.93); }
body #comments .comment-list { margin:0; padding:0; list-style:none; }
body #comments .comment-list .comment-body { position:relative; margin:0; padding:20px 0; border:0; border-bottom:1px solid var(--np-border); background:transparent; }
body #comments .comment-meta { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:8px 16px; margin:0 0 12px; padding:0; }
body #comments .comment-author { display:flex; align-items:center; gap:10px; color:var(--np-heading); font-size:14px; }
body #comments .comment-author img.avatar { position:static; width:36px !important; height:36px !important; margin:0; }
body #comments .comment-metadata { margin:0; color:var(--np-muted); font-size:12px; }
body #comments .comment-metadata a { color:inherit; }
body #comments .comment-content { margin:0 0 10px; padding:0; font-size:14px; line-height:1.85; overflow-wrap:anywhere; }
body #comments .reply { position:static; margin:0; padding:0; }
body #comments .reply a { color:var(--np-primary-text); background:var(--np-surface-2); border-radius:var(--np-radius); padding:4px 10px; font-size:12px; }
body #comments .comment-list .children { margin:0 0 0 22px; padding:0 0 0 16px; border-left:1px solid var(--np-border); list-style:none; }
body #comments .comment-list .children li::before { display:none; }
@media(max-width:767px){body #comments #respond{padding:16px;}body #comments .comment-list .children{margin-left:8px;padding-left:12px;}body:not(.np-related-list) .related-content ul li.hentry{grid-template-columns:96px minmax(0,1fr);}body:not(.np-related-list) .related-content .related-thumb{width:96px;height:72px;}body:not(.np-related-list) .related-content .related-body{min-height:72px;}}
body.np-square .related-content .related-thumb { border-radius:0 !important; }
body:not(.np-related-list) .related-content .related-thumb { padding:0 !important; border:0; box-sizing:border-box; }
body:not(.np-related-list) .related-content .related-body { height:84px; min-height:0; }
@media(max-width:767px){body:not(.np-related-list) .related-content .related-body{height:72px;}}
/* 29. One configured TOC, identical box geometry in flow and fixed states. */
body #secondary .widget.widget-iux-toc,
body .np-toc-rail {
 box-sizing:border-box;
 padding:18px;
 border:0;
 border-radius:var(--np-radius-lg);
 background:var(--np-surface);
 color:var(--np-body);
 box-shadow:none;
 max-height:calc(100dvh - var(--np-header-h,75px) - var(--np-admin-offset,0px) - 32px);
 overflow-y:auto;
 scrollbar-width:thin;
}
body #secondary .widget-iux-toc > .widget-title,
body .np-toc-rail > .widget-title {
 border:0; padding:0; margin:0 0 12px;
 font-size:16px; font-weight:650; line-height:1.5; color:var(--np-heading);
}
body #secondary .widget-iux-toc .np-toc ul,
body .np-toc-rail .np-toc ul { margin:0; padding:0; border:0; }
body #secondary .widget-iux-toc .np-toc li,
body .np-toc-rail .np-toc li { margin:0 !important; padding:0 !important; border:0 !important; }
body #secondary .widget-iux-toc .np-toc li a,
body .np-toc-rail .np-toc li a { box-sizing:border-box; display:block; padding:5px 10px; margin:0; border-left:2px solid transparent; box-shadow:none; font-size:13px; font-weight:400; line-height:1.6; color:var(--np-body); }
body #secondary .widget-iux-toc .np-toc li.np-toc-h3 a,
body .np-toc-rail .np-toc li.np-toc-h3 a { padding-left:22px; }
body #secondary .widget-iux-toc .np-toc li a.is-active,
body .np-toc-rail .np-toc li a.is-active { border-left-color:var(--np-primary); background:var(--np-surface-2); color:var(--np-primary-text); font-weight:600; }

/* 30. Configurable card columns, separated surfaces and filled thumbnails. */
body.np-loop-card { --np-card-columns:2; }
body.np-card-columns-1 { --np-card-columns:1; }
body.np-card-columns-3 { --np-card-columns:3; }
body.np-card-columns-4 { --np-card-columns:4; }
body.np-loop-card:not(.single):not(.page) #primary .site-main { overflow:visible; }
body.np-loop-card #primary .recent-heading {
 margin-bottom:20px; background:var(--np-surface); border:0;
 border-radius:var(--np-radius-lg); overflow:hidden;
}
body.np-loop-card #primary .content-list { container:np-card-list / inline-size; }
body.np-loop-card #primary .content-list .posts-loop {
 grid-template-columns:repeat(var(--np-card-columns),minmax(0,1fr)); align-items:stretch;
}
body.np-loop-card #primary .content-list .hentry { display:flex; flex-direction:column; min-width:0; }
body.np-loop-card #primary .content-list .hentry > .thumbnail-box { flex:none; align-self:stretch; }
body.np-loop-card #primary .content-list .hentry > .entry-body { flex:1; }
body.np-loop-card #primary .content-list .entry-title,
body.np-loop-card #primary .content-list .entry-title a {
 display:-webkit-box !important; -webkit-box-orient:vertical; -webkit-line-clamp:2 !important;
 white-space:normal; line-height:1.6; min-height:3.2em !important; overflow:hidden;
}
body.np-loop-card #primary .content-list .entry-summary {
 display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:var(--np-excerpt-lines,2);
 overflow:hidden; line-height:1.8;
}
body.np-loop-card #primary .content-list .entry-meta { flex-wrap:wrap; }
body.np-loop-card #primary .np-pagination { margin-top:20px; border:0; box-shadow:none; }
@container np-card-list (max-width:740px) {
 body.np-card-columns-4 #primary .content-list .posts-loop { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@container np-card-list (max-width:600px) {
 body.np-card-columns-3 #primary .content-list .posts-loop,
 body.np-card-columns-4 #primary .content-list .posts-loop { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@container np-card-list (max-width:400px) {
 body.np-loop-card #primary .content-list .posts-loop { grid-template-columns:minmax(0,1fr); }
}
@media(max-width:767px) {
 body.np-loop-card #primary .content-list .posts-loop { grid-template-columns:minmax(0,1fr); gap:16px; }
 body.np-loop-card #primary .recent-heading { margin-bottom:16px; }
 body.np-loop-card #primary .np-pagination { margin-top:16px; }
}
/* Framing owns the ratio; images always scale proportionally to fill it. */
body #primary .content-list .hentry .thumbnail-wrap { position:relative; padding:0 !important; }
body #primary .content-list .hentry .thumbnail-wrap img {
 position:absolute; inset:0; width:100% !important; height:100% !important;
 max-width:none; max-height:none; margin:0; object-fit:cover !important; object-position:center;
}
body .sidebar .widget_posts_thumbnail .thumbnail-wrap img,
body .home-zhuanti-list .thumbnail-wrap img { object-fit:cover !important; object-position:center; }
body .friend {
 background:var(--np-surface); color:var(--np-body); border:0;
 border-radius:var(--np-radius-lg); box-shadow:none; overflow:hidden;
}
body .friend .friend-title { border-bottom:0; }
body.np-loop-card #primary .content-list .hentry { gap:0; }
body.np-loop-card #primary .content-list .hentry::before,
body.np-loop-card #primary .content-list .hentry::after { content:none; }

/* 31. Global full-width layout; card columns still use available content width. */
body.np-full-width #secondary,
body.np-full-width .np-toc-rail { display:none !important; }
body.np-full-width #primary {
 float:none; width:100%; max-width:none; min-width:0; margin-inline:0;
 flex:1 1 100%; box-sizing:border-box;
}
body.np-full-width .site-content > .container,
body.np-full-width .site-content.site_container { gap:0; }
@media(min-width:960px) {
 body.np-full-width:not(.np-loop-card):not(.np-loop-compact) #primary .content-list .hentry {
  grid-template-columns:280px minmax(0,1fr);
 }
 body.np-full-width:not(.np-loop-card):not(.np-loop-compact) #primary .content-list .hentry > .thumbnail-box { width:280px; }
 body.np-full-width:not(.np-loop-card):not(.np-loop-compact) #primary .content-list .hentry > .entry-body { min-height:186.67px; }
 /* Keep long-form text readable while related cards and headers use the panel. */
 body.np-full-width.single .entry-content,
 body.np-full-width.page .entry-content { max-width:900px; margin-inline:auto; }
}

/* 32. Footer links share the same borderless panel shell as list/widgets. */
body .site-footer .footer-content {
 border:0; box-shadow:none; background:var(--np-surface);
 border-radius:var(--np-radius-lg); overflow:hidden;
}

/* ==========================================================================
   33. P5：手机端修复（2026-11-18，用户 iPhone 390px 截图反馈）
   只追加覆盖规则，不动前面各节；手机端视觉以用户 iPhone 复查为准。
   ========================================================================== */

/* ---- 33.1 手机底部栏：图标与标签改块级布局，杜绝按钮标签被裁 ----
   根因：<a> 与 <button> 在 iOS WebView 里布局方式不同——按钮内容包在
   匿名盒子里，图标仍按行内排版，继承来的行高把标签往下顶出栏底；
   之前只给 button > span 加 display:block 的补丁（§18）没动图标，
   所以标签还是被切。改法：图标与标签在两种元素里都改块级、行高写死，
   间距改 margin（flex gap 在匿名盒子里不生效），栏给 min-height。 */
@media (max-width: 959px) {
	body .np-mobile-bar {
		min-height: 56px;
	}

	body .np-mobile-bar a,
	body .np-mobile-bar button {
		gap: 0;
		line-height: 1.2;
	}

	body .np-mobile-bar a i,
	body .np-mobile-bar button i {
		display: block;
		line-height: 1;
	}

	body .np-mobile-bar a span,
	body .np-mobile-bar button span {
		display: block;
		line-height: 1.3;
		margin-top: 2px;
	}
}

/* ---- 33.2 列表缩略图与右侧文案等高（标准循环） ----
   根因：P4 的拉伸链（§16.3）被后来的 §17（手机端缩略图定死 82px 高）
   与 §19（align-self:start + height:auto + 16/9）盖掉了，手机端缩略图
   只有 82px，右侧文案约 112px。这里按 P4 原意恢复拉伸：行高由文案定，
   缩略图跟满整行；只对标准循环生效，卡片 / 紧凑两种循环形态不动。 */
body:not(.np-loop-card):not(.np-loop-compact) #primary .content-list .hentry {
	align-items: stretch;
}

body:not(.np-loop-card):not(.np-loop-compact) #primary .content-list .hentry > .thumbnail-box {
	align-self: stretch !important;
	height: auto !important;
	min-height: 120px;
}

body:not(.np-loop-card):not(.np-loop-compact) #primary .content-list .hentry .thumbnail-link {
	display: block;
	height: 100% !important;
}

body:not(.np-loop-card):not(.np-loop-compact) #primary .content-list .hentry .thumbnail-wrap {
	aspect-ratio: auto !important;
	height: 100% !important;
	min-height: 120px;
}

body:not(.np-loop-card):not(.np-loop-compact) #primary .content-list .hentry .thumbnail-placeholder {
	aspect-ratio: auto;
	height: 100%;
}

@media (max-width: 767px) {
	/* 手机端缩略图列宽与盒宽统一成 112px（§6 轨道是 112px，§17 盒
	   是 104px，白白留 8px 空隙），高度改由拉伸决定，不再定死 82px。 */
	body:not(.np-loop-card):not(.np-loop-compact) #primary .content-list .hentry {
		grid-template-columns: 112px minmax(0, 1fr);
	}

	body:not(.np-loop-card):not(.np-loop-compact) #primary .content-list .hentry > .thumbnail-box {
		width: 112px;
	}
}

/* ---- 33.3 手机端分页：一行内自适应缩小，不再分两行 ----
   根因：§23 在 ≤767px 把跳页表单 order:3 + width:100%，强制独占
   第二行。这里改回一行：容器不换行、各项缩小，页码组在极窄屏可横向
   滚动（平时看不见滚动条），不隐藏任何一项。 */
@media (max-width: 767px) {
	body .np-pagination {
		flex-wrap: nowrap;
		gap: 6px;
		padding: 12px;
	}

	body .np-page-numbers {
		flex: 1 1 auto;
		flex-wrap: nowrap;
		gap: 4px;
		min-width: 0;
		overflow-x: auto;
		scrollbar-width: none;
	}

	body .np-page-numbers::-webkit-scrollbar {
		display: none;
	}

	body .np-pagination .page-numbers,
	body .np-page-arrows > * {
		flex-shrink: 0;
		font-size: 13px;
		height: 34px;
		min-width: 28px;
		padding: 0 4px;
	}

	body .np-page-arrows {
		flex-shrink: 0;
		gap: 4px;
		margin-left: auto;
	}

	body .np-page-arrows > * {
		font-size: 22px;
	}

	body .np-page-jump {
		flex-shrink: 0;
		gap: 4px;
		order: 0;
		width: auto;
	}

	body .np-page-jump label {
		font-size: 12px;
		height: 34px;
		padding: 0 6px;
	}

	body .np-page-jump input[type="number"] {
		font-size: 12px;
		height: 34px;
		line-height: 34px;
		width: 28px;
	}

	body .np-page-jump label > span:not(.screen-reader-text) {
		line-height: 34px;
	}

	body .np-page-jump button {
		height: 34px;
		width: 26px;
	}
}

/* ---- 33.4 底部友情链接：改走设计 token，日夜都有足够对比度 ----
   根因：基底 style.css 把友链写死 #333（友链名）与 #aaa（交换链接、
   简介），暗色下 #333 几乎隐形，浅色下 #aaa 对比度也不够（约 2.3:1）。
   这里统一改走 --np-body / --np-muted，亮暗两种模式都跟变量走；
   页脚分类链接已是 --np-muted，不用动。 */
body .friend-nav li a {
	color: var(--np-body);
}

body .friend-nav li a:hover {
	color: var(--np-primary-text);
}

body .friend .friend-link a {
	color: var(--np-muted);
}

body .friend .friend-link a:hover {
	color: var(--np-primary-text);
}

body .friend .friend-desc {
	color: var(--np-muted);
}

/* ---- 33.5 手机页眉：搜索 / 日夜切换 / 汉堡三键统一 40×40 ----
   根因：切换按钮只渲染在顶栏（.top-bar）里，而顶栏手机端 display:none，
   所以手机上根本没有切换入口；三键之前各用各的定位（搜索靠 line-height
   居中、汉堡靠绝对定位），尺寸与垂直中心都不一致。
   改法：页眉里再放一个切换按钮（与顶栏共用 header-theme-on 开关，
   JS 改绑全部 .np-theme-toggle），三键手机端统一 40×40、图标 20px、
   垂直居中、间距 8px；桌面端沿用顶栏那个切换按钮，页眉里的这个隐藏，
   不动已验收的桌面布局。 */
@media (min-width: 960px) {
	body .site-header .np-theme-toggle--header {
		display: none;
	}
}

@media (max-width: 959px) {
	/* 搜索键：40×40 命中区，图标 20px，垂直居中。 */
	body .site-header .header-search-icon {
		align-items: center;
		display: flex;
		height: 40px;
		justify-content: center;
		line-height: 1;
		top: 50%;
		transform: translateY(-50%);
		width: 40px;
	}

	body .site-header .header-search-icon .search-icon {
		align-items: center;
		display: flex;
		height: 40px;
		justify-content: center;
		width: 40px;
	}

	body .site-header .search-icon .fa {
		font-size: 20px;
		height: auto;
		line-height: 1;
		width: auto;
	}

	/* 日夜切换键：放在搜索键左侧，同样 40×40、图标 20px。 */
	body .site-header .np-theme-toggle--header {
		align-items: center;
		display: inline-flex;
		font-size: 20px;
		height: 40px;
		justify-content: center;
		position: absolute;
		right: 48px;
		top: 50%;
		transform: translateY(-50%);
		width: 40px;
	}

	/* 汉堡键：再往左挪一格（给切换键让位），同样 40×40 居中。 */
	body .site-header .slicknav_btn {
		align-items: center;
		display: flex;
		height: 40px;
		justify-content: center;
		padding: 0;
		right: 96px;
		width: 40px;
	}
}

/* ---- 33.6 相关推荐：去掉标题区固定高度，第二行不再拦腰切断 ----
   根因：§28 给 .related-body 定死 height:84px（手机 72px），标题
   （两行约 49.5px）+ meta（约 24.5px）合计约 74px，超出后标题作为
   可压缩的 flex 子项被压扁，overflow:hidden 把第二行拦腰切掉；长标题
   被 line-clamp 截到两行时更容易触发。改法：固定高度改 min-height，
   标题行高统一 1.5（span 与内层 a 一致），两行完整显示。 */
body:not(.np-related-list) .related-content ul li.hentry .related-body {
	height: auto;
	min-height: 84px;
}

body:not(.np-related-list) .related-content ul li.hentry .related-body .entry-title,
body:not(.np-related-list) .related-content ul li.hentry .related-body .entry-title a {
	line-height: 1.5;
}

@media (max-width: 767px) {
	body:not(.np-related-list) .related-content ul li.hentry .related-body {
		height: auto;
		min-height: 72px;
	}
}

/* ---- 34. P6 回访修复（2026-11-18） ---- */

/* 34.1 手机底部栏：固定几何，彻底杜绝按钮标签被裁
   P5 的 §33.1 未生效：<button> 在 iOS WebKit 下不完全服从 flex
   布局（匿名盒子 + 原生按钮渲染），图标/标签的实际行高仍由字体
   度量决定，标签会被顶出栏底。本次改用固定几何：图标盒 20px、
   标签盒 15px，行高与盒高写死，超出部分在盒内裁掉；按钮去掉
   原生外观；内容总高 20+2+15=37px，加上下内边距 15px 共 52px，
   小于栏高 56px，任何字体度量下都不会溢出。 */
@media (max-width: 959px) {
	body .np-mobile-bar {
		min-height: 56px;
		overflow: visible;
	}

	body .np-mobile-bar a,
	body .np-mobile-bar button {
		-webkit-appearance: none;
		appearance: none;
		margin: 0;
		padding: 8px 0 7px;
		box-sizing: border-box;
		overflow: visible;
		gap: 0;
		line-height: 1;
		justify-content: center;
	}

	body .np-mobile-bar a i,
	body .np-mobile-bar button i {
		display: block;
		flex: none;
		width: 100%;
		height: 20px;
		line-height: 20px;
		font-size: 18px;
		text-align: center;
		overflow: hidden;
	}

	body .np-mobile-bar a span,
	body .np-mobile-bar button span {
		display: block;
		flex: none;
		width: 100%;
		height: 15px;
		line-height: 15px;
		font-size: 11px;
		text-align: center;
		overflow: hidden;
		margin-top: 2px;
		white-space: nowrap;
	}
}

/* 34.2 分页符号：三个符号同一居中方式
   根因：跳页按钮（↵）是普通 <button>，没有 flex 居中，字形落在
   基线附近所以偏下；左右箭头（‹ ›）虽已是 inline-flex，但行高
   继承正文（约 1.6），匿名行盒比按钮高，视觉中心上移。统一：
   三者都用 inline-flex 居中 + line-height:1。 */
body .np-page-jump button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	font-size: 18px;
}

body .np-page-arrows > * {
	line-height: 1;
}

@media (max-width: 767px) {
	body .np-page-jump button {
		font-size: 16px;
	}
}

/* 34.3 模块标题统一：全部用同一条发丝线 + 同一套间距
   现状混乱：最新文章/专题标题行的线来自多处旧规则（基底
   border-bottom、480–767px 的盒装 border、§18 的 border-bottom:0），
   友链标题则完全没有线；小工具标题与之也不一致。本次定一条：
   所有模块标题行一律无盒装边框、只留一条底部分隔线，标题
   字号与间距全站统一（桌面与手机同一套，只改内边距）。 */
body .recent-heading,
body .zhuanti-heading,
body .friend .friend-title,
body .footer-partners .partner-title,
body .sidebar .widget .widget-title,
body .related-content .section-title {
	border: 0;
	border-bottom: 1px solid var(--np-border);
	border-radius: 0;
}

/* 标题行内边距：纵向统一 16px（手机 14px），横向跟随各自内容缩进。 */
body .recent-heading {
	padding: 16px 24px;
}

body .zhuanti-heading {
	padding: 16px 20px;
}

body .friend .friend-title,
body .footer-partners .partner-title {
	padding: 14px 20px;
	margin-bottom: 12px;
}

/* 友链/合作标题去掉残留的左侧色条与 34px 左缩进，与其他标题一致。 */
body .friend .friend-title::before,
body .footer-partners .partner-title::before {
	display: none !important;
}

body .friend .friend-title h3,
body .footer-partners .partner-title strong {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
}

/* 标题字号统一：区块标题 18px/600，小工具标题 16px/650。 */
body .recent-heading .section-title,
body .zhuanti-heading h2,
body .related-content .section-title {
	font-size: 18px;
	font-weight: 600;
}

body .sidebar .widget .widget-title {
	padding: 0 0 12px;
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 650;
}

body .related-content .section-title {
	padding-bottom: 12px;
	margin-bottom: 16px;
}

/* 小工具卡片内边距统一。 */
body .sidebar .widget {
	padding: 18px;
}

@media (max-width: 767px) {
	body .recent-heading,
	body .zhuanti-heading,
	body .friend .friend-title,
	body .footer-partners .partner-title {
		padding: 14px 16px;
	}

	body .sidebar .widget {
		padding: 16px;
	}
}

/* 防御：标题行下方的直接内容不许再带顶边框，避免出现双线。 */
body #recent-content,
body .home-zhuanti-list,
body .friend-nav {
	border-top: 0;
}

/* Mobile shortcuts share fixed icon and label rows. */
@media (max-width: 959px) {
 body .np-mobile-bar { align-items: stretch; }
 body .np-mobile-bar > :is(a,button) {
  display: block; flex: 1 1 0; min-width: 0; height: 56px;
  padding: 9px 4px 10px; border: 0; line-height: 1; text-align: center;
 }
 body .np-mobile-bar > :is(a,button) > span {
  line-height: 15px; text-overflow: ellipsis;
 }
}

/* Keep the same 3:2 thumbnail frame in all list layouts. */
body:not(.np-loop-card):not(.np-loop-compact) #primary .content-list .hentry > .thumbnail-box {
 align-self: start !important; min-height: 0;
}
body:not(.np-loop-card):not(.np-loop-compact) #primary .content-list .hentry :is(.thumbnail-link,.thumbnail-wrap) {
 aspect-ratio: 3 / 2 !important; height: auto !important; min-height: 0;
}

/* Give module titles a shared accent and a subtle divider. */
body :is(.recent-heading,.zhuanti-heading,.friend .friend-title,.footer-partners .partner-title,.sidebar .widget .widget-title,.related-content .section-title) {
 border-bottom-color: var(--np-border);
}
body :is(.recent-heading .section-title,.zhuanti-heading h2,.friend-title h3,.partner-title strong,.sidebar .widget .widget-title,.related-content .section-title) {
 color: var(--np-heading);
 font-weight: 700;
}
body :is(.recent-heading .section-title,.zhuanti-heading h2,.friend-title h3,.partner-title strong,.sidebar .widget .widget-title,.related-content .section-title)::after {
 content: ""; display: inline-block; width: 14px; height: 3px;
 margin-inline-start: 8px; vertical-align: middle; pointer-events: none;
 background: var(--np-primary); border-radius: var(--np-radius-sm);
}
body.np-loop-card:not(.single):not(.page) #primary .recent-heading {
 border-radius: var(--np-radius-lg);
}

/* Shared editorial spacing for archive rows and cards. */
body #primary .content-list .hentry {
 padding: 16px 18px;
 gap: 14px;
}
body:not(.np-loop-card) #primary .content-list .hentry:has(> .thumbnail-box) {
 --np-row-thumb: clamp(180px, 24vw, 264px);
 grid-template-columns: var(--np-row-thumb) minmax(0,1fr);
 align-items: stretch;
}
body.np-loop-compact #primary .content-list .hentry:has(> .thumbnail-box) {
 --np-row-thumb: clamp(144px, 17vw, 184px);
}
body:not(.np-loop-card) #primary .content-list .hentry > .thumbnail-box {
 width: 100%;
}
body:not(.np-loop-card) #primary .content-list .hentry:has(> .thumbnail-box) > .entry-body {
 min-height: 0;
 justify-content: flex-start;
}
body #primary .content-list .hentry .np-list-category { margin-bottom: 4px; }
body #primary .content-list .hentry .entry-summary { margin-top: 6px; line-height: 1.55; }
body #primary .content-list .hentry .entry-meta {
 padding-top: 6px; gap: 3px 10px; line-height: 1.4; flex-wrap: wrap;
}
body.np-loop-card #primary .content-list .hentry { padding: 0; gap: 0; }
body.np-loop-card #primary .content-list .hentry > .entry-body { padding: 14px 16px; }

body :is(.recent-heading,.zhuanti-heading,.friend .friend-title,.footer-partners .partner-title) {
 padding: 12px 18px; min-height: 0; height: auto; line-height: 1.45;
}
body .zhuanti-heading .custom-wrap { padding-block: 0; }
body :is(.recent-heading .section-title,.zhuanti-heading h2,.friend-title h3,.partner-title strong,.sidebar .widget .widget-title,.related-content .section-title)::after {
 content: none;
}
body :is(.recent-heading .section-title,.zhuanti-heading h2,.friend-title h3,.partner-title strong,.sidebar .widget .widget-title,.related-content .section-title) {
 border-inline-start: 3px solid var(--np-primary);
 padding-inline-start: 9px;
}
body .np-pagination { justify-content: flex-start; }
body .np-pagination .current { background: var(--np-primary); color: var(--np-on-primary); }
@media(max-width:767px) {
 body #primary .content-list .hentry { padding: 12px 10px; gap: 10px; }
 body:not(.np-loop-card) #primary .content-list .hentry:has(> .thumbnail-box) {
  --np-row-thumb: clamp(114px, 34vw, 205px);
 }
 body.np-loop-compact #primary .content-list .hentry:has(> .thumbnail-box) {
  --np-row-thumb: clamp(106px, 30vw, 164px);
 }
 body:not(.np-loop-card) #primary .content-list .hentry .entry-title a { font-size: 14px; line-height: 1.35; }
 body:not(.np-loop-card) #primary .content-list .hentry .entry-summary {
  -webkit-line-clamp: 1; margin-top: 3px; line-height: 1.4;
 }
 body #primary .content-list .hentry .entry-meta { gap: 2px 6px; font-size: 10px; padding-top: 4px; }
 body .np-pagination { gap: 5px; padding: 12px 8px; }
 body .np-pagination .np-page-numbers,
 body .np-pagination .np-page-jump,
 body .np-pagination .np-page-arrows { flex: none; width: auto; order: 0; gap: 4px; margin: 0; }
 body .np-pagination .page-numbers,
 body .np-pagination .np-page-arrows > *,
 body .np-pagination .np-page-jump button { min-width: 26px; width: auto; height: 36px; padding-inline: 5px; }
 body .np-pagination .np-page-jump label { padding-inline: 5px; }
 body .np-pagination-many .np-page-numbers > :not(.current) { display: none; }
}
body:not(.np-loop-card) #primary .content-list .hentry:has(> .thumbnail-box) > .thumbnail-box {
 width: 100%;
}
@media(max-width:350px) {
 body:not(.np-loop-card) #primary .content-list .hentry:has(> .thumbnail-box) .entry-summary { display:none !important; }
 body:not(.np-loop-card) #primary .content-list .hentry:has(> .thumbnail-box) .entry-meta i { display:none; }
}

/* Shared module headers and stable archive spacing. */
body {
 --np-module-heading-size: 17px;
 --np-module-heading-line: 24px;
 --np-module-heading-pad: 14px;
}
body :is(.recent-heading,.zhuanti-heading,.friend .friend-title,.footer-partners .partner-title) {
 display: flex;
 flex-wrap: wrap;
 align-items: center;
 gap: 6px 12px;
 padding: var(--np-module-heading-pad) 18px;
 min-height: 0;
 height: auto;
 line-height: var(--np-module-heading-line);
 border-bottom: 1px solid var(--np-border);
}
body .zhuanti-heading .custom-wrap {
 flex: 1;
 min-width: 0;
 padding: 0;
 height: auto;
 line-height: inherit;
}
body :is(.recent-heading,.zhuanti-heading .custom-wrap,.friend-title,.partner-title)::before,
body :is(.recent-heading,.zhuanti-heading .custom-wrap,.friend-title,.partner-title)::after { display: none; }
body .recent-heading h2.section-title,
body .zhuanti-heading h2,
body .friend .friend-title h3,
body .footer-partners .partner-title strong,
body #secondary .widget > .widget-title,
body .np-toc-rail > .widget-title,
body .related-content .section-title {
 float: none;
 margin: 0;
 padding-inline-start: 10px;
 border-inline-start: 0;
 font-size: var(--np-module-heading-size);
 line-height: var(--np-module-heading-line);
 font-weight: 700;
 background: linear-gradient(var(--np-primary),var(--np-primary)) left top 5px / 3px 14px no-repeat;
}
body #secondary .widget > .widget-title,
body .np-toc-rail > .widget-title,
body .related-content .section-title {
 padding-bottom: 12px;
 margin-bottom: 12px;
 border-bottom: 1px solid var(--np-border);
}
body .site-footer .footer-content,
body .home-zhuanti-section,
body #secondary .widget {
 box-sizing: border-box;
 background-color: var(--np-surface);
 border: 0;
 border-radius: var(--np-radius-lg);
 box-shadow: none;
}
body .recent-heading .posts-nav-menu,
body .zhuanti-heading .section-more,
body .friend .friend-link,
body .footer-partners .partner-link {
 float: none;
 position: static;
 margin: 0 0 0 auto;
 line-height: inherit;
}
body :is(.friend-link,.partner-link,.section-more) > a { line-height: inherit; }

@media (min-width: 960px) {
 body:not(.np-loop-card):not(.np-loop-compact) #primary .content-list .hentry .entry-header .entry-title a {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2 !important;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.4;
 }
 body:not(.np-loop-card):not(.np-loop-compact) #primary .content-list .hentry .entry-summary {
  -webkit-line-clamp: max(3, var(--np-excerpt-lines, 2));
  line-height: 1.65;
 }
}
@media (max-width: 767px) {
 body { --np-module-heading-size: 16px; --np-module-heading-pad: 12px; }
 body .np-pagination .np-page-arrows { margin-inline-start: auto; }
}

/* One header rhythm for homepage modules and widget areas. */
body { --np-module-inset: 18px; }
body :is(.recent-heading,.zhuanti-heading,.friend .friend-title,.footer-partners .partner-title) {
 padding: var(--np-module-heading-pad) var(--np-module-inset);
}
body .zhuanti-heading .custom-wrap { margin: 0; padding: 0; }
body .zhuanti-heading .section-more { padding: 0; }
body .recent-heading { flex-wrap: nowrap; }
body .recent-heading .section-title { flex: none; }
body .recent-heading .posts-nav-menu { min-width: 0; max-width: 100%; }
body .recent-heading .posts-menu {
 display: flex; align-items: center; gap: clamp(8px, 1.25vw, 18px);
 padding: 0; margin: 0; height: auto; overflow-x: auto; scrollbar-width: none;
}
body .recent-heading .posts-menu > li { float: none; flex: none; padding: 0; margin: 0; height: auto; }
body .recent-heading .posts-menu > li > a {
 display: block; height: var(--np-module-heading-line);
 line-height: var(--np-module-heading-line); padding-block: 0; white-space: nowrap;
}
body .friend .friend-title h3,
body .footer-partners .partner-title strong { border: 0 !important; padding-inline-start: 10px; }
body .friend .friend-title h3::before,
body .footer-partners .partner-title strong::before { content: none !important; }
body :is(#secondary .widget,.np-toc-rail) { padding: var(--np-module-inset); }
body #secondary .widget > .widget-title,
body #secondary .widget-iux-toc > .widget-title,
body .np-toc-rail > .widget-title {
 margin: calc(-1 * var(--np-module-inset)) calc(-1 * var(--np-module-inset)) 12px;
 padding: var(--np-module-heading-pad) var(--np-module-inset);
 padding-inline-start: calc(var(--np-module-inset) + 10px);
 background-position: var(--np-module-inset) center;
 border-bottom: 1px solid var(--np-border);
 font-size: var(--np-module-heading-size);
 line-height: var(--np-module-heading-line);
 font-weight: 700;
}
body :is(.partner-image,.content-ad,.single-top-ad,.single-bottom-ad) > .widget-title {
 padding: 0 0 10px 10px;
 margin: 0 0 12px;
 border-bottom: 1px solid var(--np-border);
 color: var(--np-heading);
 font-size: var(--np-module-heading-size);
 line-height: var(--np-module-heading-line);
 font-weight: 700;
 background: linear-gradient(var(--np-primary),var(--np-primary)) left top 5px / 3px 14px no-repeat;
}
@media (max-width:767px) {
 body { --np-module-inset: 16px; }
 body:not(.np-loop-card) #primary .content-list .hentry .entry-summary { -webkit-line-clamp: 2; }
}

/* Search dialog uses the same light/dark surfaces as other panels. */
body .np-search-overlay {
 align-items: center; box-sizing: border-box; padding: 16px;
 background: rgba(8, 15, 26, .42);
}
body .np-search-inner {
 position: relative; box-sizing: border-box; width: min(100%, 520px);
 max-height: calc(100dvh - 32px); overflow: auto;
 padding: 46px clamp(16px, 4vw, 26px) 22px;
 background: var(--np-surface); color: var(--np-body);
 border: 1px solid var(--np-border); border-radius: var(--np-radius-lg);
 box-shadow: 0 16px 48px rgba(0,0,0,.22);
}
body .np-search-overlay .search-input {
 font-size: 16px; color: var(--np-heading); background: var(--np-surface-2);
 border: 1px solid var(--np-border); border-radius: var(--np-radius);
 padding: 9px 12px;
}
body .np-search-overlay .search-input::placeholder { color: var(--np-muted); }
body .np-search-overlay .search-submit {
 background: var(--np-primary); color: var(--np-on-primary); border: 0;
 border-radius: var(--np-radius); padding-inline: 12px; cursor: pointer;
}
body .np-search-inner .np-search-close {
 display: grid; place-items: center; top: 8px; right: 10px;
 width: 32px; height: 32px; padding: 0; font-size: 24px;
 color: var(--np-muted); border-radius: var(--np-radius);
}
body .np-search-inner .np-search-close:hover,
body .np-search-inner .np-search-hot a { background: var(--np-surface-2); color: var(--np-body); }
body .np-search-inner .np-search-hot > span { color: var(--np-muted); }
body .zhuanti-heading .custom-wrap::before,
body .zhuanti-heading .custom-wrap::after { content: none !important; }
body .zhuanti-heading .custom-wrap h2 { margin: 0; }
body .zhuanti-heading .section-more a { display: block; line-height: var(--np-module-heading-line); }
body .np-search-overlay.is-open { transition: opacity .2s ease-out; }
body .zhuanti-heading.clear::before,
body .zhuanti-heading.clear::after { content: none !important; }
@media (min-width: 960px) {
 body:not(.np-loop-card):not(.np-loop-compact) #primary .content-list .hentry .entry-summary { -webkit-line-clamp: 3; }
}
@media (max-width: 350px) {
 body:not(.np-loop-card):not(.np-loop-compact) #primary .content-list .hentry:has(> .thumbnail-box) .entry-summary {
  display: -webkit-box !important;
  -webkit-line-clamp: 2;
 }
}

/* Bias the desktop search panel upward while keeping tall panels in view. */
@media (min-width: 960px) {
 body .np-search-overlay {
  --np-search-shift: clamp(0px, calc((100dvh - 440px) * .22), 120px);
  padding-block-end: calc(16px + 2 * var(--np-search-shift));
 }
 body .np-search-inner {
  max-height: calc(100dvh - 32px - 2 * var(--np-search-shift));
 }
}

body .np-search-inner .np-search-hot > span {
 flex: 0 0 100%;
 margin-inline: 0;
}
