/*
Theme Name: 资讯分享 NewsShare
Theme URI: https://ydao8.com
Author: 老万
Author URI: https://ydao8.com
Description: 基于 WordPress 块主题 / 全站编辑（FSE）最新技术线打造的中文资讯分享主题。内置 theme.json v3 设计令牌、资讯网格与头条模式库、Interactivity API 复制链接分享、响应式流体排版。
Version: 1.11.6
Requires at least: 6.7
Tested up to: 7.2
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: news-share
Tags: blog, news, one-column, wide-blocks, block-styles, full-site-editing, editor-style
*/

/* 全局微调：页面浅灰底，白色内容卡片浮出。 */
body {
	background: #f5f6f8;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

/* 文章正文中的表格、代码块自适应 */
.wp-block-table {
	font-size: 0.875rem;
}

/* 复制链接块：Interactivity API 反馈状态 */
.ns-copy-btn {
	cursor: pointer;
	user-select: none;
}

/* 分类入口：横排胶囊 */
.wp-block-categories.ns-categories ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	padding: 0;
	margin: 0;
}

.wp-block-categories.ns-categories ul li {
	margin: 0;
}

.wp-block-categories.ns-categories ul li a {
	display: inline-block;
	padding: 0.4rem 1rem;
	border: 1px solid #e5e7eb;
	border-radius: 9999px;
	background: #f6f8fa;
	color: #1a1d21;
	text-decoration: none;
	font-size: 0.875rem;
}

.wp-block-categories.ns-categories ul li a:hover {
	border-color: #2563eb;
	color: #2563eb;
}

/* 顶栏导航：品牌副标语 */
.ns-tagline {
	margin-top: 2px;
	letter-spacing: 0.02em;
	white-space: nowrap;
}

/* 品牌 Logo（后台设置，浅色/深色切换） */
.ns-logo {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

.ns-logo-img {
	height: 40px;
	width: auto;
	vertical-align: middle;
}

.ns-logo-dark {
	display: none;
}

.ns-dark .ns-logo-light {
	display: none;
}

.ns-dark .ns-logo-dark {
	display: inline-block;
}

/* 顶栏导航链接：默认正文色，悬停主色 */
header .wp-block-navigation a {
	color: #1a1d21;
	text-decoration: none;
}

header .wp-block-navigation a:hover {
	color: #2563eb;
}

/* 主题切换按钮 */
.ns-theme-toggle a {
	padding: 0.3rem 0.65rem;
	line-height: 1;
	box-shadow: none;
}

/* ===== 深色模式（body.ns-dark 覆盖设计令牌变量） ===== */
.ns-dark {
	--wp--preset--color--base: #2a2a2a;
	--wp--preset--color--surface: #232323;
	--wp--preset--color--contrast: #e2e8f0;
	--wp--preset--color--muted: #94a3b8;
}

body.ns-dark,
.ns-dark body,
.ns-dark .wp-site-blocks {
	background-color: #111111;
	color: #e2e8f0;
}

.ns-dark a {
	color: #60a5fa;
}

.ns-dark .wp-block-categories.ns-categories ul li a {
	border-color: #3d3d3d;
	background: #232323;
	color: #e2e8f0;
}

.ns-dark .wp-block-categories.ns-categories ul li a:hover {
	border-color: #2563eb;
	color: #60a5fa;
}

.ns-dark .ns-theme-toggle a {
	background: #232323;
	color: #fbbf24;
}

/* 导航子菜单（后台菜单带层级时）下拉面板 */
header .wp-block-navigation__submenu-container {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 4px 12px rgba(0,0,0,0.04);
	padding: 0.5rem;
	min-width: 180px;
}

header .wp-block-navigation__submenu-container a {
	display: block;
	padding: 0.5rem 0.75rem;
	border-radius: 6px;
}

header .wp-block-navigation__submenu-container a:hover {
	background: #f6f8fa;
	color: #2563eb;
}

/* 头部下缘细线，视觉更干净 */
header.wp-block-group.has-base-background-color {
	border-bottom: 1px solid #eef2f6;
}

/* 登录/注册链接：弱化色，悬停主色 */
header p a[href*="wp-login"] {
	color: #6b7280;
	text-decoration: none;
}

header p a[href*="wp-login"]:hover {
	color: #2563eb;
}

/* 资讯卡片：悬停上浮 + 阴影加深 */
.ns-card {
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.ns-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
	transform: translateY(-3px);
}

/* 卡片摘要两行截断，布局更整齐 */
.ns-card .wp-block-post-excerpt p {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: 0;
}

/* 卡片标题行高收紧 */
.ns-card .wp-block-post-title {
	margin-top: 0.25rem;
}

/* 头条焦点区：卡片更舒展 */
.wp-block-group.has-surface-background-color .wp-block-post-title {
	margin-bottom: 0.25rem;
}

/* ===== 主导航（PHP 读取后台菜单，默认链接兜底） ===== */
.ns-nav {
	margin: 0 !important;
	padding: 0 !important;
}

.ns-nav-menu {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: flex-start !important;
	gap: 1.1rem !important;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.ns-nav-menu li {
	margin: 0 !important;
	padding: 0 !important;
	position: relative;
	flex: 0 0 auto !important;
	text-align: left;
}

.ns-nav-menu a {
	display: block;
	color: #1a1d21;
	text-decoration: none !important;
	font-size: 0.75rem;
	font-weight: 500;
	white-space: nowrap;
	line-height: 1.4;
	padding: 0.5rem 0.3rem;
	border-radius: 8px;
	transition: color 0.15s ease, background 0.15s ease;
}

.ns-nav-menu a:hover {
	color: #2563eb !important;
	background: transparent !important;
}

/* 有子菜单的项：右侧小箭头（参照 AeroCorePro nav-list） */
.ns-nav-menu li.has-children > a::after {
	content: "";
	display: inline-block;
	width: 5px;
	height: 5px;
	border-bottom: 1.5px solid currentColor;
	border-right: 1.5px solid currentColor;
	transform: rotate(45deg);
	margin-left: 6px;
	vertical-align: 2px;
	opacity: 0.55;
	transition: transform 0.2s ease;
}

/* 下拉展开时小箭头旋转朝上 */
.ns-nav-menu li.has-children:hover > a::after,
.ns-nav-menu li.has-children:focus-within > a::after {
	transform: rotate(225deg);
	opacity: 0.9;
}

/* 有层级的后台菜单：子菜单下拉面板（左对齐父项 + 玻璃效果 + 展开动画） */
.ns-nav-menu .sub-menu {
	position: absolute !important;
	top: 100% !important;
	left: 0 !important;
	z-index: 200 !important;
	display: none !important;
	min-width: 150px !important;
	margin: 0 !important;
	padding: 4px 0 !important;
	list-style: none !important;
	background: rgba(255, 255, 255, 0.88) !important;
	-webkit-backdrop-filter: saturate(180%) blur(14px) !important;
	backdrop-filter: saturate(180%) blur(14px) !important;
	border: 1px solid rgba(229, 231, 235, 0.8) !important;
	border-radius: 6px !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06) !important;
	text-align: left !important;
	opacity: 0;
	transform: translateY(12px);
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.ns-nav-menu li:hover > .sub-menu,
.ns-nav-menu li:focus-within > .sub-menu {
	display: block !important;
	opacity: 1 !important;
	transform: translateY(0) !important;
}

/* 下拉项逐条滑入动画 */
.ns-nav-menu .sub-menu li {
	opacity: 0;
	transform: translateX(-8px);
	transition: opacity 0.22s ease, transform 0.22s ease;
}

.ns-nav-menu li:hover > .sub-menu li,
.ns-nav-menu li:focus-within > .sub-menu li {
	opacity: 1;
	transform: translateX(0);
}

.ns-nav-menu li:hover > .sub-menu li:nth-child(1),
.ns-nav-menu li:focus-within > .sub-menu li:nth-child(1) { transition-delay: 0.03s; }
.ns-nav-menu li:hover > .sub-menu li:nth-child(2),
.ns-nav-menu li:focus-within > .sub-menu li:nth-child(2) { transition-delay: 0.06s; }
.ns-nav-menu li:hover > .sub-menu li:nth-child(3),
.ns-nav-menu li:focus-within > .sub-menu li:nth-child(3) { transition-delay: 0.09s; }
.ns-nav-menu li:hover > .sub-menu li:nth-child(4),
.ns-nav-menu li:focus-within > .sub-menu li:nth-child(4) { transition-delay: 0.12s; }
.ns-nav-menu li:hover > .sub-menu li:nth-child(5),
.ns-nav-menu li:focus-within > .sub-menu li:nth-child(5) { transition-delay: 0.15s; }
.ns-nav-menu li:hover > .sub-menu li:nth-child(6),
.ns-nav-menu li:focus-within > .sub-menu li:nth-child(6) { transition-delay: 0.18s; }
.ns-nav-menu li:hover > .sub-menu li:nth-child(7),
.ns-nav-menu li:focus-within > .sub-menu li:nth-child(7) { transition-delay: 0.21s; }
.ns-nav-menu li:hover > .sub-menu li:nth-child(8),
.ns-nav-menu li:focus-within > .sub-menu li:nth-child(8) { transition-delay: 0.24s; }
.ns-nav-menu li:hover > .sub-menu li:nth-child(9),
.ns-nav-menu li:focus-within > .sub-menu li:nth-child(9) { transition-delay: 0.27s; }
.ns-nav-menu li:hover > .sub-menu li:nth-child(10),
.ns-nav-menu li:focus-within > .sub-menu li:nth-child(10) { transition-delay: 0.3s; }
.ns-nav-menu li:hover > .sub-menu li:nth-child(11),
.ns-nav-menu li:focus-within > .sub-menu li:nth-child(11) { transition-delay: 0.33s; }
.ns-nav-menu li:hover > .sub-menu li:nth-child(12),
.ns-nav-menu li:focus-within > .sub-menu li:nth-child(12) { transition-delay: 0.36s; }

.ns-nav-menu .sub-menu li {
	margin: 0 !important;
	padding: 0 !important;
}

.ns-nav-menu .sub-menu a {
	display: block !important;
	padding: 0.5rem 0.85rem !important;
	border-radius: 6px !important;
	font-size: 0.75rem !important;
	text-align: left !important;
	white-space: nowrap !important;
	line-height: 1.4 !important;
}

.ns-nav-menu .sub-menu a:hover {
	background: #eef2ff !important;
	color: #2563eb !important;
}

/* 当前菜单项高亮（后台菜单的 current 状态）：蓝色文字 + 底部指示条 */
.ns-nav-menu li.current-menu-item > a,
.ns-nav-menu li.current-menu-ancestor > a,
.ns-nav-menu li.current_page_item > a {
	color: #2563eb !important;
	font-weight: 600 !important;
	background: #eef2ff;
}

.ns-nav-menu li.current-menu-item > a::after,
.ns-nav-menu li.current-menu-ancestor > a::after,
.ns-nav-menu li.current_page_item > a::after {
	content: "";
	display: block;
	height: 3px;
	border-radius: 3px;
	background: #2563eb;
	margin-top: 0.3rem;
}

/* 菜单项图标（阿里巴巴 iconfont） */
.ns-nav-menu .ns-nav-item > a {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.ns-nav-menu .ns-nav-item i[class*="icon"],
.ns-nav-menu .ns-nav-item i.iconfont {
	font-size: 1.05em;
	line-height: 1;
	font-style: normal;
}

/* 图标大小跟随菜单文字大小（压过后台自定义 CSS 固定 20px 的 .icon 规则；i/span/svg 直接子元素全兼容） */
.ns-nav-menu .ns-nav-item > a > i,
.ns-nav-menu .ns-nav-item > a > span,
.ns-nav-menu .ns-nav-item > a > svg,
.ns-nav-menu .sub-menu .ns-nav-item > a > i,
.ns-nav-menu .sub-menu .ns-nav-item > a > span,
.ns-nav-menu .sub-menu .ns-nav-item > a > svg {
	width: 1em !important;
	height: 1em !important;
	font-size: 1em !important;
	vertical-align: -0.125em !important;
	fill: currentColor !important;
}

/* 二级菜单项：block 布局 + 图标与文字间距（直接子元素选择器，兼容 i/span/svg 任何图标写法） */
.ns-nav-menu .sub-menu .ns-nav-item > a {
	display: block !important;
	width: 100%;
	box-sizing: border-box;
}

.ns-nav-menu .sub-menu .ns-nav-item > a > i,
.ns-nav-menu .sub-menu .ns-nav-item > a > span,
.ns-nav-menu .sub-menu .ns-nav-item > a > svg {
	margin-right: 0.35rem !important;
	vertical-align: -0.125em !important;
	flex-shrink: 0;
}

/* 阿里巴巴 iconfont（symbol 方式）图标 */
.icon {
	width: 20px;
	height: 20px;
	vertical-align: -3px;
	fill: currentColor;
	overflow: hidden;
}

/* 深色模式下导航子菜单 */
.ns-dark .ns-nav-menu .sub-menu {
	background: rgba(35, 35, 35, 0.8) !important;
	-webkit-backdrop-filter: saturate(180%) blur(14px) !important;
	backdrop-filter: saturate(180%) blur(14px) !important;
	border-color: rgba(51, 65, 85, 0.8) !important;
}

/* ===== 万能兜底：若头部被自定义模板覆盖、导航渲染为 WP 导航块，同样钉死布局 ===== */
header .wp-block-navigation {
	gap: 1.25rem !important;
}

header .wp-block-navigation__container {
	gap: 1.25rem !important;
	flex-wrap: nowrap !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

header .wp-block-navigation__container > li {
	margin: 0 !important;
	padding: 0 !important;
}

header .wp-block-navigation__container > li > a {
	text-decoration: none !important;
	white-space: nowrap !important;
	font-weight: 500 !important;
}

header .wp-block-navigation__container > li > a:hover {
	color: #2563eb !important;
}

header .wp-block-navigation__submenu-container {
	position: absolute !important;
	top: 100% !important;
	left: 0 !important;
	z-index: 20 !important;
	min-width: 170px !important;
	padding: 0.35rem !important;
	border-radius: 6px !important;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
}

header .wp-block-navigation__submenu-container li {
	margin: 0 !important;
	padding: 0 !important;
}

header .wp-block-navigation__submenu-container a {
	display: block !important;
	text-decoration: none !important;
	white-space: nowrap !important;
	padding: 0.5rem 0.75rem !important;
	border-radius: 6px !important;
}

header .wp-block-navigation__submenu-container a:hover {
	background: #f6f8fa !important;
	color: #2563eb !important;
}

/* ==========================================================
   经典 PHP 模板布局（header.php / index.php / single.php 等）
   ========================================================== */
.ns-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.25rem;
}

/* --- 头部（单行布局：Logo + 导航 + 右侧工具）--- 毛玻璃吸顶 --- */
.ns-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.72);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
	border-bottom: 1px solid rgba(238, 242, 246, 0.8);
	box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
}

/* 不支持毛玻璃的浏览器回退纯白 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.ns-header {
		background: #ffffff;
	}
}

.ns-header-top {
	display: flex;
	align-items: center;
	gap: 2rem;
	min-height: 56px;
	padding: 0.2rem 0;
	flex-wrap: nowrap;
}

.ns-brand {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	min-width: 0;
	flex-shrink: 0;
}

.ns-site-title {
	font-size: 1.25rem;
	font-weight: 800;
	color: #1a1d21;
	text-decoration: none;
	line-height: 1.2;
	white-space: nowrap;
}

.ns-site-title:hover {
	color: #2563eb;
}

.ns-tagline {
	font-size: 0.75rem;
	color: #6b7280;
	line-height: 1.2;
	white-space: nowrap;
	margin: 2px 0 0;
}

.ns-header-tools {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	flex-shrink: 0;
}

.ns-theme-toggle {
	cursor: pointer;
	border: 0;
	background: transparent;
	color: #334155;
	border-radius: 9999px;
	width: 32px;
	height: 32px;
	padding: 0;
	font-size: 0.9375rem;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease;
}

.ns-theme-toggle:hover {
	background: transparent;
	transform: rotate(20deg);
}

.ns-user-links {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.ns-user-links a {
	text-decoration: none;
	font-size: 0.8125rem;
	line-height: 1;
	color: #6b7280;
	padding: 0.25rem 0.35rem;
	border-radius: 6px;
	transition: color 0.2s ease;
}

.ns-user-links a:hover {
	color: #2563eb;
}

.ns-sep {
	color: #d1d5db;
	font-size: 0.8125rem;
	line-height: 1;
	user-select: none;
}

.ns-dark .ns-sep {
	color: #334155;
}

/* 菜单行跟随 Logo 同行：无独立第二行，桌面端不滚动 */
.ns-nav {
	margin: 0;
	padding: 0;
	flex: 1 1 auto;
	min-width: 0;
	overflow: visible;
}

.ns-header-tools {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	margin-left: auto;
	flex-shrink: 0;
}

/* --- 主体 --- */
.ns-main {
	padding: 1.5rem 1.25rem 2.5rem;
}

/* 主内容容器：左边文章 + 右侧边栏，两列独立卡片、中间留灰缝不粘连 */
.ns-main-card {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	column-gap: 1.5rem;
	overflow: hidden;
	align-items: start;
}

.ns-main-col {
	min-width: 0;
	padding: 1.5rem;
	background: #ffffff;
	border: 1px solid #eef2f6;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

/* 右侧边栏：独立卡片 */
.ns-sidebar {
	min-width: 0;
	border-left: 0;
	padding: 1.5rem;
	background: #ffffff;
	border: 1px solid #eef2f6;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

/* --- 侧边栏部件 --- */
.ns-widget {
	margin-bottom: 1.25rem;
}

.ns-stats {
	display: flex;
	border: 1px solid #eef2f6;
	border-radius: 6px;
	overflow: hidden;
}

.ns-stat {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.3rem;
	padding: 0.85rem 0.3rem;
	text-align: center;
}

.ns-stat + .ns-stat {
	border-left: 1px solid #eef2f6;
}

.ns-stat strong {
	font-size: 1.15rem;
	font-weight: 800;
	color: #2563eb;
	line-height: 1;
}

.ns-stat span {
	font-size: 0.75rem;
	color: #98a2b3;
}

.ns-sidebar-search {
	display: flex;
	border: 1px solid #e5e9f0;
	border-radius: 8px;
	overflow: hidden;
	background: #ffffff;
}

.ns-sidebar-search input {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: none;
	padding: 0.65rem 0.85rem;
	font-size: 0.875rem;
	color: #1a1d21;
	background: transparent;
}

.ns-sidebar-search button {
	border: 0;
	cursor: pointer;
	padding: 0 1rem;
	font-size: 0.8rem;
	font-weight: 600;
	color: #ffffff;
	background: #2563eb;
	transition: background 0.2s ease;
}

.ns-sidebar-search button:hover {
	background: #1d4ed8;
}

.ns-widget-title {
	font-size: 1rem;
	font-weight: 700;
	margin: 0 0 0.2rem;
	display: flex;
	align-items: center;
	gap: 0.45rem;
}

.ns-widget-title::before {
	content: "";
	width: 4px;
	height: 1em;
	border-radius: 2px;
	background: #2563eb;
	flex-shrink: 0;
}

.ns-widget-sub {
	font-size: 0.8rem;
	color: #2563eb;
	margin: 0 0 0.75rem;
}

/* --- 通用 WordPress 小工具样式适配（后台可自由添加任意小工具） --- */
.ns-widget ul {
	list-style: none;
	margin: 0.5rem 0 0;
	padding: 0;
}

.ns-widget ul li {
	margin: 0;
	padding: 0.5rem 0;
	border-bottom: 1px solid #f1f5f9;
	font-size: 0.875rem;
	line-height: 1.5;
}

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

.ns-widget ul li a {
	color: #475569;
	text-decoration: none;
	transition: color 0.15s ease;
}

.ns-widget ul li a:hover {
	color: #2563eb;
}

/* 文本 / 自定义 HTML 小工具 */
.ns-widget .textwidget {
	font-size: 0.875rem;
	color: #475569;
	line-height: 1.7;
}

.ns-widget .textwidget img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
}

/* 标签云 */
.ns-widget .tagcloud {
	margin-top: 0.5rem;
	line-height: 1;
}

.ns-widget .tagcloud a {
	display: inline-block;
	margin: 0 0.35rem 0.35rem 0;
	padding: 0.3rem 0.7rem;
	border-radius: 999px;
	background: #f1f5f9;
	color: #475569;
	font-size: 0.78rem !important;
	text-decoration: none;
	transition: all 0.15s ease;
}

.ns-widget .tagcloud a:hover {
	background: #2563eb;
	color: #ffffff;
}

/* 日历 */
.ns-widget .wp-calendar-table {
	width: 100%;
	font-size: 0.8rem;
	border-collapse: collapse;
}

.ns-widget .wp-calendar-table caption {
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 0.4rem;
	text-align: left;
	color: #1a1d21;
}

.ns-widget .wp-calendar-table td,
.ns-widget .wp-calendar-table th {
	padding: 0.35rem 0.1rem;
	text-align: center;
}

.ns-widget .wp-calendar-table a {
	color: #2563eb;
	font-weight: 600;
	text-decoration: none;
}

/* 搜索（WP 默认搜索小工具） */
.ns-widget .search-form {
	display: flex;
	border: 1px solid #e5e9f0;
	border-radius: 8px;
	overflow: hidden;
	background: #ffffff;
	margin-top: 0.5rem;
}

.ns-widget .search-form .search-field {
	flex: 1;
	min-width: 0;
	border: 0;
	outline: none;
	padding: 0.6rem 0.85rem;
	font-size: 0.875rem;
	color: #1a1d21;
	background: transparent;
}

.ns-widget .search-form .search-submit {
	border: 0;
	cursor: pointer;
	padding: 0 0.9rem;
	font-size: 0.8rem;
	font-weight: 600;
	color: #ffffff;
	background: #2563eb;
}

/* 最近评论 */
.ns-widget .recentcomments {
	color: #64748b;
	font-size: 0.82rem;
}

.ns-widget .recentcomments a {
	color: #2563eb;
}

/* 文章列表小工具（序号 + 左图右文 + 首篇大图外观） */
.ns-random-list {
	list-style: none;
	margin: 0.5rem 0 0;
	padding: 0;
}

/* 普通条：序号 + 左图右文 */
.ns-random-list li {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.55rem 0;
	border-bottom: 1px solid #f1f5f9;
	position: relative;
}

.ns-random-list li:last-child {
	border-bottom: 0;
}

/* 首篇大图：通栏大图卡片 + 标签右上角 + 标题叠图底部 */
.ns-random-list li.ns-random-featured {
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	padding: 0;
	margin-bottom: 0.9rem;
	border: 1px solid #eef2f6;
	border-radius: 8px;
	overflow: hidden;
	background: #ffffff;
	position: relative;
}

/* 通栏大图（固定高度，兼容无 aspect-ratio 的浏览器） */
.ns-random-list li.ns-random-featured .ns-random-thumb {
	flex: 0 0 auto;
	width: 100%;
	height: 120px;
	min-height: 120px;
	border-radius: 0;
	display: block;
	position: relative;
}

/* 图上渐变遮罩 */
.ns-random-list li.ns-random-featured .ns-random-thumb::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 72%;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.4) 55%, transparent);
	pointer-events: none;
}

/* 分类标签：封面右上角 */
.ns-random-list li.ns-random-featured .ns-random-tag {
	position: absolute;
	top: 0.65rem;
	right: 0.65rem;
	z-index: 2;
	color: #ffffff;
	background: rgba(37, 99, 235, 0.88);
}

/* 标题叠图底部 */
.ns-random-list li.ns-random-featured .ns-random-body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	padding: 1.4rem 0.85rem 0.7rem;
}

.ns-random-list li.ns-random-featured .ns-random-title {
	font-size: 0.95rem;
	font-weight: 500;
	color: #ffffff;
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.ns-random-list li.ns-random-featured .ns-random-title:hover {
	color: #93c5fd;
}

/* 序号：叠在封面左上角（不在封面前面占位） */
.ns-random-list li .ns-random-num {
	position: absolute;
	top: 0.4rem;
	left: 0.4rem;
	z-index: 2;
}

/* 序号 */
.ns-random-num {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	border-radius: 4px;
	color: #ffffff;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
}

.ns-random-thumb {
	flex: 0 0 96px;
	width: 96px;
	height: 60px;
	border-radius: 6px;
	overflow: hidden;
	position: relative;
	display: block;
}

.ns-random-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

/* 鼠标悬停：封面图放大 */
.ns-random-list li:hover .ns-random-thumb img {
	transform: scale(1.08);
}

.ns-random-thumb .ns-post-thumb-fallback {
	width: 100%;
	height: 100%;
	font-size: 0.95rem;
}

.ns-random-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.25rem;
}

.ns-random-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 0.875rem;
	line-height: 1.45;
	color: #334155;
	text-decoration: none;
}

.ns-random-title:hover {
	color: #2563eb;
}

.ns-random-tag {
	display: inline-block;
	padding: 0.08rem 0.45rem;
	border-radius: 4px;
	font-size: 0.7rem;
	line-height: 1.4;
	color: #2563eb;
	background: #eef2ff;
}

/* 跟随页面移动 */
.ns-sticky-wrap {
	position: sticky;
	top: 1rem;
}

.ns-dark .ns-random-list li {
	border-color: #3d3d3d;
	background: #232323;
}

.ns-dark .ns-random-list li.ns-random-featured {
	border-color: #3d3d3d;
	background: #232323;
}

.ns-dark .ns-random-title {
	color: #e2e8f0;
}

.ns-dark .ns-random-title:hover {
	color: #60a5fa;
}

.ns-dark .ns-random-tag {
	color: #93c5fd;
	background: #3d3d3d;
}

/* 深色模式：通用小工具 */
.ns-dark .ns-widget ul li {
	border-bottom-color: #3d3d3d;
}

.ns-dark .ns-widget ul li a {
	color: #cbd5e1;
}

.ns-dark .ns-widget ul li a:hover {
	color: #60a5fa;
}

.ns-dark .ns-widget .textwidget {
	color: #94a3b8;
}

.ns-dark .ns-widget .tagcloud a {
	background: #3d3d3d;
	color: #cbd5e1;
}

.ns-dark .ns-widget .tagcloud a:hover {
	background: #3b82f6;
	color: #ffffff;
}

.ns-dark .ns-widget .wp-calendar-table caption {
	color: #e2e8f0;
}

.ns-dark .ns-widget .search-form {
	background: #232323;
	border-color: #3d3d3d;
}

.ns-dark .ns-widget .search-form .search-field {
	color: #e2e8f0;
}

.ns-coupon-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

.ns-coupon-list li {
	border-bottom: 1px dashed #eef2f6;
}

.ns-coupon-list li:last-child {
	border-bottom: 0;
}

.ns-coupon-list a {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0.7rem 0.4rem;
	text-decoration: none;
	border-radius: 6px;
	transition: background 0.2s ease;
}

.ns-coupon-list a:hover {
	background: #f6f8fb;
}

.ns-coupon-list a span {
	font-size: 0.92rem;
	font-weight: 600;
	color: #1a1d21;
}

.ns-coupon-list a:hover span {
	color: #2563eb;
}

.ns-coupon-list a em {
	font-style: normal;
	font-size: 0.76rem;
	color: #98a2b3;
}

.ns-section {
	margin-bottom: 2.5rem;
}

.ns-section-title {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0 0 1rem;
	padding-left: 0.75rem;
	border-left: 4px solid #2563eb;
	line-height: 1.3;
}

/* --- 头条焦点（横排：封面左、标题内容右） --- */
.ns-featured {
	display: grid;
	grid-template-columns: minmax(0, 46%) minmax(0, 1fr);
	gap: 1.5rem;
	background: #ffffff;
	border: 1px solid #eef2f6;
	border-radius: 8px;
	padding: 1.25rem;
	box-shadow: 0 1px 3px rgba(16, 24, 40, 0.04);
	margin-bottom: 2.5rem;
}

.ns-featured-media {
	position: relative;
	display: block;
	border-radius: 6px;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: #e2e8f0;
	text-decoration: none;
}

.ns-featured-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.ns-featured:hover .ns-featured-media img {
	transform: scale(1.03);
}

.ns-featured-badge {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	background: rgba(37, 99, 235, 0.92);
	color: #ffffff;
	font-size: 0.75rem;
	line-height: 1;
	padding: 0.25rem 0.6rem;
	border-radius: 6px;
	z-index: 1;
}

.ns-featured-info {
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.ns-featured-tags {
	margin-bottom: 0.5rem;
}

.ns-featured-title {
	font-size: 1.35rem;
	font-weight: 800;
	line-height: 1.3;
	margin: 0 0 0.55rem;
}

.ns-featured-title a {
	color: #1a1d21;
	text-decoration: none;
}

.ns-featured-title a:hover {
	color: #2563eb;
}

.ns-featured-excerpt {
	color: #6b7280;
	font-size: 0.9rem;
	line-height: 1.65;
	margin-bottom: 0.75rem;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ns-featured-meta {
	display: flex;
	align-items: center;
	gap: 1rem;
	font-size: 0.8125rem;
	color: #9ca3af;
	margin-top: auto;
}

.ns-featured-meta span {
	display: inline-flex;
	align-items: center;
	gap: 0.28rem;
}

/* --- 分类胶囊 --- */
.ns-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ns-pills li {
	margin: 0;
}

.ns-pills a {
	display: inline-block;
	padding: 0.4rem 1rem;
	border: 1px solid #e5e7eb;
	border-radius: 9999px;
	background: #f6f8fa;
	color: #1a1d21;
	text-decoration: none;
	font-size: 0.875rem;
}

.ns-pills a:hover {
	border-color: #2563eb;
	color: #2563eb;
}

.ns-pills .current-cat a {
	border-color: #2563eb;
	color: #2563eb;
}

/* --- 资讯网格卡片 --- */
.ns-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.25rem;
}

/* 单篇文章页左栏较窄，相关文章两列展示 */
.ns-single .ns-grid {
	grid-template-columns: repeat(2, 1fr);
}

/* 相关文章标题不加粗 */
.ns-single .ns-card-title {
	font-weight: 400;
}

/* 相关文章无图时的占位（分类/标题首字） */
.ns-card-img-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.75rem;
	font-weight: 600;
	color: #94a3b8;
	background: linear-gradient(135deg, #eef2f6, #f8fafc);
	text-decoration: none;
}

/* ===== 相关文章：双排紧凑小卡（左图右文） ===== */
.ns-related {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.75rem;
}
.ns-related-item {
	display: flex;
	gap: 0.7rem;
	padding: 0.7rem;
	background: #f8fafc;
	border: 1px solid #eef2f6;
	border-radius: 10px;
	transition: all 0.2s;
}
.ns-related-item:hover {
	border-color: #bfdbfe;
	background: #eff6ff;
}
.ns-related-img {
	flex-shrink: 0;
	width: 92px;
	height: 68px;
	border-radius: 6px;
	overflow: hidden;
	background: #f1f5f9;
	display: block;
}
.ns-related-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.ns-related-img-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
	font-weight: 600;
	color: #94a3b8;
	background: linear-gradient(135deg, #eef2f6, #f8fafc);
	text-decoration: none;
}
.ns-related-body {
	min-width: 0;
}
.ns-related-title {
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.45;
	margin: 0 0 0.25rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ns-related-title a {
	color: #1a1d21;
	text-decoration: none;
}
.ns-related-title a:hover {
	color: #2563eb;
}
.ns-related-excerpt {
	font-size: 0.75rem;
	color: #94a3b8;
	line-height: 1.5;
	margin: 0 0 0.3rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ns-related-meta {
	font-size: 0.72rem;
	color: #b6c0cc;
	display: flex;
	gap: 0.5rem;
}

/* 相关文章深色适配 */
.ns-dark .ns-related-item {
	background: #1e293b;
	border-color: #334155;
}
.ns-dark .ns-related-item:hover {
	border-color: #3b82f6;
	background: #172554;
}
.ns-dark .ns-related-title a {
	color: #e2e8f0;
}
.ns-dark .ns-related-excerpt {
	color: #94a3b8;
}

.ns-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	padding: 1rem;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.ns-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
	transform: translateY(-3px);
}

.ns-card-img {
	display: block;
	border-radius: 6px;
	overflow: hidden;
	margin-bottom: 0.75rem;
	aspect-ratio: 16 / 9;
	background: #f1f5f9;
}

.ns-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ns-card-title {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
	margin: 0 0 0.5rem;
}

.ns-card-title a {
	color: #1a1d21;
	text-decoration: none;
}

.ns-card-title a:hover {
	color: #2563eb;
}

.ns-card-excerpt {
	font-size: 0.875rem;
	color: #6b7280;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin-bottom: 0.5rem;
}

.ns-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	font-size: 0.75rem;
	color: #9ca3af;
}

.ns-card-meta a {
	color: #2563eb;
	text-decoration: none;
}

/* --- 首页主文章列表（左图右文） --- */
.ns-post-list {
	display: flex;
	flex-direction: column;
	margin: 0;
	padding: 0;
}

.ns-post-item {
	display: flex;
	gap: 1.1rem;
	padding: 1.1rem 0;
	border-bottom: 1px solid #eef2f6;
}

.ns-post-item:last-child {
	border-bottom: 0;
}

.ns-post-thumb {
	flex-shrink: 0;
	position: relative;
	width: 200px;
	height: 134px;
	border-radius: 8px;
	overflow: hidden;
	background: #f1f5f9;
	text-decoration: none;
}

.ns-post-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.25s ease;
}

.ns-post-item:hover .ns-post-thumb img {
	transform: scale(1.04);
}

/* 无特色图时的渐变占位封面（分类首字） */
.ns-post-thumb-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 2.2rem;
	font-weight: 800;
	color: #ffffff;
	background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.ns-dark .ns-post-thumb-fallback {
	background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
}

/* 缩略图左上角分类徽章 */
.ns-post-cat {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 1;
	font-size: 0.72rem;
	line-height: 1;
	padding: 0.25rem 0.55rem;
	border-radius: 4px;
	background: rgba(37, 99, 235, 0.92);
	color: #ffffff;
}

.ns-post-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.ns-post-tags {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin-bottom: 0.4rem;
}

.ns-post-tag {
	font-size: 0.72rem;
	line-height: 1;
	padding: 0.22rem 0.5rem;
	border-radius: 4px;
	background: #eef2ff;
	color: #2563eb;
	text-decoration: none;
}

.ns-post-tag--hot {
	background: #fef2f2;
	color: #e03131;
}

.ns-post-title {
	font-size: 1.05rem;
	font-weight: 500;
	line-height: 1.4;
	margin: 0 0 0.4rem;
}

.ns-post-title a {
	color: #1a1d21;
	text-decoration: none;
}

.ns-post-title a:hover {
	color: #2563eb;
}

/* 标题前置顶徽章 */
.ns-post-sticky {
	display: inline-block;
	font-size: 0.72rem;
	line-height: 1;
	font-weight: 600;
	padding: 0.22rem 0.45rem;
	border-radius: 4px;
	background: #fef2f2;
	color: #e03131;
	margin-right: 0.4rem;
	vertical-align: 1px;
}

.ns-post-excerpt {
	font-size: 0.85rem;
	color: #6b7280;
	line-height: 1.65;
	margin: 0 0 0.55rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ns-post-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.9rem;
	font-size: 0.78rem;
	color: #98a2b3;
	margin-top: auto;
}

.ns-post-date,
.ns-post-stats {
	display: inline-flex;
	align-items: center;
}

.ns-post-stats {
	gap: 0.7rem;
}

.ns-post-stats span {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
}

.ns-meta-icon {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
}

/* 加载更多按钮 */
.ns-loadmore-wrap {
	text-align: center;
	padding: 1.5rem 0 0.25rem;
}

.ns-loadmore {
	display: inline-block;
	padding: 0.55rem 2.5rem;
	border: 1px solid #2563eb;
	border-radius: 6px;
	background: #ffffff;
	color: #2563eb;
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}

.ns-loadmore:hover {
	background: #eef2ff;
	border-color: #2563eb;
}

.ns-loadmore:disabled {
	opacity: 0.6;
	cursor: wait;
}

.ns-loadmore-tip {
	display: block;
	margin-top: 0.6rem;
	font-size: 0.75rem;
	color: #98a2b3;
}

.ns-dark .ns-loadmore {
	background: #232323;
	border-color: #3b82f6;
	color: #60a5fa;
}

.ns-dark .ns-loadmore:hover {
	background: #3d3d3d;
}

/* --- 热门排行 --- */
.ns-hot-list {
	list-style: none;
	margin: 0;
	padding: 0;
	counter-reset: ns-hot;
}

.ns-hot-list li {
	counter-increment: ns-hot;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.6rem 0;
	border-bottom: 1px dashed #eef2f6;
}

.ns-hot-list li::before {
	content: counter(ns-hot);
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	background: #f1f5f9;
	color: #2563eb;
	font-size: 0.8125rem;
	font-weight: 700;
}

.ns-hot-list li:nth-child(-n+3)::before {
	background: #2563eb;
	color: #ffffff;
}

.ns-hot-list a {
	color: #1a1d21;
	text-decoration: none;
	font-size: 0.9375rem;
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ns-hot-list a:hover {
	color: #2563eb;
}

.ns-hot-meta {
	flex-shrink: 0;
	font-size: 0.75rem;
	color: #9ca3af;
}

/* --- 订阅条 --- */
.ns-newsletter {
	background: #f6f8fa;
	border-radius: 14px;
	padding: 1.75rem 1.5rem;
	text-align: center;
}

.ns-newsletter-title {
	font-size: 1.125rem;
	font-weight: 700;
	margin: 0 0 0.25rem;
}

.ns-newsletter-desc {
	color: #6b7280;
	font-size: 0.875rem;
	margin: 0 0 1rem;
}

.ns-newsletter-form {
	display: flex;
	gap: 0.5rem;
	max-width: 380px;
	margin: 0 auto;
}

.ns-newsletter-form input {
	flex: 1;
	padding: 0.55rem 0.9rem;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	font-size: 0.875rem;
}

.ns-newsletter-form button {
	padding: 0.55rem 1.1rem;
	border: 0;
	border-radius: 8px;
	background: #2563eb;
	color: #ffffff;
	font-size: 0.875rem;
	cursor: pointer;
}

.ns-newsletter-form button:hover {
	background: #1d4ed8;
}

/* --- 单篇文章 --- */
.ns-single {
	max-width: 800px;
	margin: 0 auto;
}

.ns-single-header {
	margin-bottom: 1.25rem;
}

.ns-entry-title {
	font-size: 1.75rem;
	font-weight: 800;
	line-height: 1.35;
	margin: 0 0 0.75rem;
}

.ns-single-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	font-size: 0.8125rem;
	color: #9ca3af;
}

.ns-single-meta a {
	color: #2563eb;
	text-decoration: none;
}

.ns-single-img {
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 1.5rem;
}

.ns-single-content {
	font-size: 1.0625rem;
	line-height: 1.85;
	color: #1a1d21;
}

.ns-single-content img {
	border-radius: 6px;
}

.ns-post-nav {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin: 2rem 0;
	padding-top: 1rem;
	border-top: 1px solid #eef2f6;
	font-size: 0.875rem;
}

.ns-post-nav a {
	color: #2563eb;
	text-decoration: none;
}

/* --- 归档 / 搜索 / 404 --- */
.ns-archive-title {
	font-size: 1.375rem;
	font-weight: 800;
	margin: 0 0 1.25rem;
	padding-left: 0.75rem;
	border-left: 4px solid #2563eb;
}

.ns-pagination {
	margin-top: 2rem;
}

.ns-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.ns-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 0.6rem;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	color: #1a1d21;
	text-decoration: none;
	font-size: 0.875rem;
}

.ns-pagination .page-numbers.current {
	background: #2563eb;
	border-color: #2563eb;
	color: #ffffff;
}

.ns-pagination .page-numbers:hover {
	border-color: #2563eb;
	color: #2563eb;
}

.ns-empty {
	color: #6b7280;
	text-align: center;
	padding: 3rem 0;
}

.ns-404 {
	text-align: center;
	padding: 4rem 0;
}

.ns-404-code {
	font-size: 4rem;
	font-weight: 800;
	color: #e2e8f0;
	margin: 0;
	line-height: 1;
}

.ns-404-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0.5rem 0;
}

.ns-404-desc {
	color: #6b7280;
	margin-bottom: 1.25rem;
}

.ns-btn {
	display: inline-block;
	padding: 0.6rem 1.5rem;
	border-radius: 8px;
	background: #2563eb;
	color: #ffffff;
	text-decoration: none;
	font-size: 0.9375rem;
}

.ns-btn:hover {
	background: #1d4ed8;
	color: #ffffff;
}

/* --- 页脚 --- */
.ns-footer {
	background: #2a2a2a;
	color: #cbd5e1;
	padding: 1.75rem 0;
	margin-top: 2rem;
}

/* 底部侧边栏：页脚上方通栏小工具区 */
.ns-footer-widgets {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
	padding-bottom: 1.75rem;
	margin-bottom: 1.75rem;
	border-bottom: 1px solid #232323;
}

.ns-footer-widgets .ns-widget {
	margin-bottom: 0;
}

.ns-footer-widgets .ns-widget-title {
	color: #f1f5f9;
}

.ns-footer-widgets .ns-widget-title::before {
	background: #60a5fa;
}

.ns-footer-widgets .ns-widget ul li {
	border-bottom-color: #232323;
}

.ns-footer-widgets .ns-widget ul li a,
.ns-footer-widgets .textwidget {
	color: #94a3b8;
}

.ns-footer-widgets .ns-widget ul li a:hover {
	color: #60a5fa;
}

.ns-footer-widgets .tagcloud a {
	background: #232323;
	color: #cbd5e1;
}

.ns-footer-widgets .tagcloud a:hover {
	background: #3b82f6;
	color: #ffffff;
}

.ns-footer-widgets .search-form {
	background: #232323;
	border-color: #3d3d3d;
}

.ns-footer-widgets .search-form .search-field {
	color: #e2e8f0;
}

.ns-footer-row {
	display: flex;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.ns-footer-title {
	color: #f1f5f9;
	font-size: 1rem;
}

.ns-footer-desc {
	color: #94a3b8;
	font-size: 0.8125rem;
	margin: 0.25rem 0 0;
}

.ns-footer-col p {
	margin: 0.25rem 0;
	font-size: 0.8125rem;
}

.ns-footer a {
	color: #93c5fd;
	text-decoration: none;
}

.ns-footer a:hover {
	color: #ffffff;
}

/* --- 深色模式（经典模板） --- */
.ns-dark .ns-header {
	background: rgba(35, 35, 35, 0.68);
	-webkit-backdrop-filter: saturate(180%) blur(14px);
	backdrop-filter: saturate(180%) blur(14px);
	border-bottom-color: rgba(30, 41, 59, 0.6);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	.ns-dark .ns-header {
		background: #2a2a2a;
	}
}

.ns-dark .ns-header-nav {
	background: #232323;
	border-top-color: #232323;
}

.ns-dark .ns-site-title {
	color: #e2e8f0;
}

.ns-dark .ns-tagline {
	color: #94a3b8;
}

.ns-dark .ns-theme-toggle {
	background: transparent;
	color: #fbbf24;
	border-color: transparent;
}

.ns-dark .ns-theme-toggle:hover {
	background: transparent;
}

.ns-dark .ns-user-links a {
	color: #94a3b8;
}

.ns-dark .ns-user-links a:hover {
	color: #60a5fa;
}

body.ns-dark,
.ns-dark body {
	background: #111111;
}

.ns-dark .ns-main-card {
	background: transparent;
	border: 0;
	box-shadow: none;
}

.ns-dark .ns-main-col,
.ns-dark .ns-sidebar {
	background: #232323;
	border-color: #3d3d3d;
	box-shadow: none;
}

.ns-dark .ns-featured {
	background: #2a2a2a;
	border-color: #232323;
}

.ns-dark .ns-card {
	background: #2a2a2a;
	border-color: #232323;
}

.ns-dark .ns-card-title a,
.ns-dark .ns-featured-title a,
.ns-dark .ns-hot-list a {
	color: #e2e8f0;
}

.ns-dark .ns-card-title a:hover,
.ns-dark .ns-featured-title a:hover,
.ns-dark .ns-hot-list a:hover {
	color: #60a5fa;
}

.ns-dark .ns-card-excerpt,
.ns-dark .ns-featured-excerpt,
.ns-dark .ns-newsletter-desc {
	color: #94a3b8;
}

.ns-dark .ns-pills a {
	background: #232323;
	border-color: #3d3d3d;
	color: #e2e8f0;
}

.ns-dark .ns-newsletter {
	background: #232323;
}

.ns-dark .ns-newsletter-form input {
	background: #2a2a2a;
	border-color: #3d3d3d;
	color: #e2e8f0;
}

.ns-dark .ns-single-content {
	color: #e2e8f0;
}

.ns-dark .ns-hot-list li {
	border-bottom-color: #232323;
}

.ns-dark .ns-post-item {
	border-bottom-color: #232323;
}

.ns-dark .ns-post-thumb {
	background: #232323;
}

.ns-dark .ns-post-title a {
	color: #e2e8f0;
}

.ns-dark .ns-post-title a:hover {
	color: #60a5fa;
}

.ns-dark .ns-post-excerpt,
.ns-dark .ns-post-meta {
	color: #94a3b8;
}

/* 深色模式：导航主菜单文字变白 */
.ns-dark .ns-nav-menu a {
	color: #e2e8f0 !important;
}

.ns-dark .ns-nav-menu a:hover {
	color: #60a5fa !important;
	background: transparent !important;
}

.ns-dark .ns-nav-menu li.current-menu-item > a,
.ns-dark .ns-nav-menu li.current-menu-ancestor > a,
.ns-dark .ns-nav-menu li.current_page_item > a {
	color: #60a5fa !important;
	background: #232323 !important;
}

/* 深色模式：二级菜单文字变白（覆盖内联白底白字） */
.ns-dark .ns-nav-menu .sub-menu a {
	color: #e2e8f0 !important;
}

.ns-dark .ns-nav-menu .sub-menu a:hover {
	color: #60a5fa !important;
	background: #232323 !important;
}

/* 深色模式：侧边栏小工具（统计 / 搜索 / 省钱助手） */
.ns-dark .ns-stats {
	border-color: #3d3d3d;
	background: #232323;
}

.ns-dark .ns-stat + .ns-stat {
	border-left-color: #3d3d3d;
}

.ns-dark .ns-stat strong {
	color: #60a5fa;
}

.ns-dark .ns-stat span {
	color: #94a3b8;
}

.ns-dark .ns-sidebar-search {
	background: #232323;
	border-color: #3d3d3d;
}

.ns-dark .ns-sidebar-search input {
	color: #e2e8f0;
}

.ns-dark .ns-sidebar-search input::placeholder {
	color: #64748b;
}

.ns-dark .ns-widget-title {
	color: #f1f5f9;
}

.ns-dark .ns-widget-sub {
	color: #60a5fa;
}

.ns-dark .ns-coupon-list li {
	border-bottom-color: #3d3d3d;
}

.ns-dark .ns-coupon-list a {
	color: #e2e8f0;
}

.ns-dark .ns-coupon-list a:hover {
	color: #60a5fa;
}

/* 深色模式：分页 */
.ns-dark .ns-pagination .page-numbers {
	background: #232323;
	border-color: #3d3d3d;
	color: #e2e8f0;
}

.ns-dark .ns-pagination .page-numbers:hover {
	color: #60a5fa;
	border-color: #2563eb;
}

.ns-dark .ns-pagination .page-numbers.current {
	background: #2563eb;
	border-color: #2563eb;
	color: #ffffff;
}

/* 广告位 */
.ns-ad {
	margin-bottom: 1rem;
	text-align: center;
}

.ns-ad-home-top {
	margin-bottom: 1rem;
}

.ns-ad-sidebar {
	margin-bottom: 1rem;
	padding: 0.75rem;
	border: 1px solid #eef2f6;
	border-radius: 6px;
	background: #ffffff;
	text-align: center;
}

.ns-dark .ns-ad-sidebar {
	background: #232323;
	border-color: #3d3d3d;
}

/* --- 响应式 --- */
@media (max-width: 1100px) {
	.ns-container {
		padding: 0 0.75rem;
	}

	.ns-nav {
		overflow-x: auto;
		overflow-y: hidden;
	}
}

@media (max-width: 1024px) {
	.ns-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 768px) {
	.ns-main-card {
		grid-template-columns: 1fr;
	}

	.ns-sidebar {
		border-left: 0;
		border-top: 1px solid #eef2f6;
	}

	.ns-footer-widgets {
		grid-template-columns: 1fr;
	}

	.ns-featured {
		grid-template-columns: 1fr;
	}

	.ns-header-top {
		flex-wrap: wrap;
		gap: 1rem;
	}

	.ns-nav {
		overflow-x: auto;
		overflow-y: hidden;
	}

	.ns-nav-menu {
		flex-wrap: nowrap;
		justify-content: flex-start;
		gap: 0.4rem;
	}

	.ns-nav-menu li {
		flex: 0 0 auto;
	}

	.ns-featured {
		grid-template-columns: 1fr;
	}

	.ns-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.ns-post-item {
		gap: 0.8rem;
	}

	.ns-post-thumb {
		width: 112px;
		height: 84px;
	}

	.ns-post-title {
		font-size: 0.95rem;
	}
}

@media (max-width: 480px) {
	.ns-grid {
		grid-template-columns: 1fr;
	}

	.ns-related {
		grid-template-columns: 1fr;
	}

	.ns-newsletter-form {
		flex-direction: column;
	}
}

/* ===== 文章操作按钮（点赞/收藏/打赏/分享/二维码/海报） ===== */
.ns-post-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 1.5rem 0;
}
.ns-act {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.5rem 1rem;
	border: 1px solid #e2e8f0;
	border-radius: 999px;
	background: #fff;
	color: #475569;
	font-size: 0.875rem;
	cursor: pointer;
	transition: all 0.2s;
}
.ns-act:hover {
	border-color: #2563eb;
	color: #2563eb;
}
.ns-act svg {
	width: 16px;
	height: 16px;
}
.ns-act-on {
	border-color: #2563eb;
	color: #2563eb;
	background: #eff6ff;
}
.ns-act-count {
	font-size: 0.8rem;
	color: #94a3b8;
}

/* ===== 文章版权声明 ===== */
.ns-post-copyright {
	margin: 1.25rem 0;
	padding: 1rem 1.25rem;
	background: #f8fafc;
	border: 1px dashed #dbe2ea;
	border-radius: 10px;
	font-size: 0.875rem;
	line-height: 1.8;
	color: #64748b;
	display: flex;
	gap: 0.75rem;
}
.ns-post-copyright-label {
	flex-shrink: 0;
	color: #2563eb;
	font-weight: 700;
}

/* ===== 文章末尾翻页卡片 ===== */
.ns-post-nav-card {
	border-top: none;
	padding-top: 0;
	gap: 0.75rem;
}
.ns-post-nav-card .ns-post-prev,
.ns-post-nav-card .ns-post-next {
	flex: 1;
}
.ns-pn-link {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 0.9rem 1.1rem;
	background: #f8fafc;
	border: 1px solid #eef2f6;
	border-radius: 12px;
	transition: all 0.2s;
}
.ns-pn-link:hover {
	border-color: #2563eb;
	background: #eff6ff;
}
.ns-pn-label {
	font-size: 0.75rem;
	color: #94a3b8;
}
.ns-pn-title {
	font-size: 0.925rem;
	color: #1a1d21;
	font-weight: 600;
}
.ns-post-nav-card .ns-post-next {
	text-align: right;
}
.ns-post-nav-card .ns-post-next .ns-pn-link {
	align-items: flex-end;
}
.ns-pn-empty {
	color: #cbd5e1;
	font-size: 0.875rem;
	padding: 0.9rem 0;
}

/* ===== 图片灯箱 ===== */
.ns-lightbox-layer {
	position: fixed;
	inset: 0;
	z-index: 99998;
	background: rgba(15, 23, 42, 0.92);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4vh 4vw;
}
.ns-lightbox-inner {
	position: relative;
	max-width: 94vw;
	max-height: 92vh;
}
.ns-lightbox-inner img {
	max-width: 94vw;
	max-height: 92vh;
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.ns-lightbox-close,
.ns-modal-close {
	position: absolute;
	top: -42px;
	right: 0;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
}
.ns-lightbox-close:hover,
.ns-modal-close:hover {
	background: rgba(255, 255, 255, 0.3);
}

/* ===== 弹层（打赏/分享/二维码/海报） ===== */
.ns-modal {
	position: fixed;
	inset: 0;
	z-index: 99997;
	background: rgba(15, 23, 42, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 5vw;
	opacity: 0;
	transition: opacity 0.2s;
}
.ns-modal-open {
	opacity: 1;
}
.ns-modal-box {
	position: relative;
	max-width: 440px;
	width: 100%;
	background: #fff;
	border-radius: 16px;
	padding: 1.5rem 1.5rem 1.25rem;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.3);
}
.ns-modal-close {
	top: -40px;
	right: -4px;
}
.ns-reward-title,
.ns-share-title,
.ns-qr-title,
.ns-poster-title {
	font-size: 1rem;
	font-weight: 700;
	color: #1a1d21;
	margin-bottom: 1rem;
	text-align: center;
}
.ns-reward-list {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	justify-content: center;
}
.ns-reward-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
}
.ns-reward-item img {
	width: 150px;
	height: 150px;
	object-fit: contain;
	border-radius: 10px;
	border: 1px solid #eef2f6;
}
.ns-reward-name {
	font-size: 0.8125rem;
	color: #64748b;
}
.ns-share-row {
	display: flex;
	gap: 0.75rem;
	justify-content: center;
}
.ns-share-item {
	padding: 0.6rem 1.1rem;
	border-radius: 999px;
	border: 0;
	font-size: 0.875rem;
	cursor: pointer;
	text-decoration: none;
}
.ns-share-copy {
	background: #2563eb;
	color: #fff;
}
.ns-share-qq {
	background: #f1f5f9;
	color: #1a1d21;
	display: inline-flex;
	align-items: center;
}
.ns-qr-box {
	text-align: center;
}
.ns-qr-box img {
	width: 240px;
	height: 240px;
	border-radius: 10px;
}
.ns-poster-box {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	align-items: center;
}
.ns-poster-box img {
	max-width: 100%;
	max-height: 70vh;
	border-radius: 10px;
}
.ns-poster-download {
	background: #2563eb;
	color: #fff;
	padding: 0.6rem 1.2rem;
	border-radius: 999px;
	text-decoration: none;
	font-size: 0.875rem;
}

/* ===== 轻提示 ===== */
.ns-toast {
	position: fixed;
	left: 50%;
	bottom: 2rem;
	transform: translate(-50%, 1rem);
	background: rgba(15, 23, 42, 0.9);
	color: #fff;
	padding: 0.55rem 1.1rem;
	border-radius: 999px;
	font-size: 0.875rem;
	z-index: 99999;
	opacity: 0;
	pointer-events: none;
	transition: all 0.25s;
}
.ns-toast-show {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* ===== 图片阴影（文章设置开关） ===== */
.ns-img-shadow .ns-single-content img {
	box-shadow: 0 6px 20px rgba(15, 23, 42, 0.14);
}

/* ===== 代码块高度限制（文章设置开关） ===== */
.ns-highlight-limit .ns-single-content pre,
.ns-highlight-limit .ns-single-content pre code {
	max-height: 500px;
	overflow: auto;
}

/* ===== 深色模式适配 ===== */
.ns-dark .ns-post-copyright {
	background: #1e293b;
	border-color: #334155;
	color: #94a3b8;
}
.ns-dark .ns-act {
	background: #1e293b;
	border-color: #334155;
	color: #94a3b8;
}
.ns-dark .ns-act:hover {
	border-color: #3b82f6;
	color: #3b82f6;
}
.ns-dark .ns-act-on {
	background: #172554;
	border-color: #3b82f6;
	color: #3b82f6;
}
.ns-dark .ns-pn-link {
	background: #1e293b;
	border-color: #334155;
}
.ns-dark .ns-pn-link:hover {
	border-color: #3b82f6;
	background: #172554;
}
.ns-dark .ns-pn-title {
	color: #e2e8f0;
}
.ns-dark .ns-modal-box {
	background: #1e293b;
}
.ns-dark .ns-reward-title,
.ns-dark .ns-share-title,
.ns-dark .ns-qr-title,
.ns-dark .ns-poster-title {
	color: #e2e8f0;
}
.ns-dark .ns-share-qq {
	background: #334155;
	color: #e2e8f0;
}
.ns-dark .ns-reward-item img {
	border-color: #334155;
}
