/* ============================================================
   染卷不卷 Child —— 全量样式 child.css
   使用 :root 中的 CSS 变量（见 style.css）
   所有按钮：无阴影 / 统一高度 36px / 圆角 8px
   ============================================================ */

/* ---------- 0. 布局系统重置：彻底覆盖父主题/Bootstrap 布局 ---------- */
/* 策略：在 body.rj-body 作用域下，完全替换父主题的 container/row/col 布局，
   避免与父主题原生 @media 规则冲突。所有断点统一行为。 */

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

body.rj-body {
	background: var(--rj-bg);
	color: var(--rj-text);
	font-size: var(--rj-fs-base);
	line-height: var(--rj-lh);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}


/* 彻底重置 #wrapper */
body.rj-body #wrapper {
	background: var(--rj-bg) !important;
	box-shadow: none !important;
	margin: 0 !important;
	max-width: none !important;
	width: 100% !important;
	position: relative !important;
	z-index: 1;
	/* sticky footer：内容不够高时页脚始终贴底 */
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}
/* 页脚用 margin-top:auto 自动占据剩余空间，无需改各模板 */
body.rj-body #wrapper > .site-footer {
	margin-top: auto;
}

/* 彻底重置 Bootstrap .container —— 所有断点统一 */
body.rj-body .container {
	width: 100% !important;
	max-width: 100% !important;
	padding-left: 15px !important;
	padding-right: 15px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	box-sizing: border-box !important;
}

/* 768px 以上限制最大宽度 */
@media (min-width: 768px) {
	body.rj-body .container {
		max-width: var(--rj-container-w) !important;
	}
}

/* 彻底重置 Bootstrap .container-fluid */
body.rj-body .container-fluid {
	width: 100% !important;
	padding-left: 15px !important;
	padding-right: 15px !important;
}

/* 彻底重置 Bootstrap .row —— 负外边距清零，改用 flex */
body.rj-body .row {
	margin-left: 0 !important;
	margin-right: 0 !important;
}

/* 彻底重置 Bootstrap 所有列类 —— 统一 float 和宽度重置 */
body.rj-body .row > [class*="col-"] {
	float: none !important;
	width: auto !important;
	position: relative !important;
	min-height: 0 !important;
	padding-left: 15px !important;
	padding-right: 15px !important;
}

/* 桌面端 (≥992px)：两栏 flex 布局 */
@media (min-width: 992px) {
	body.rj-body .row { display: flex !important; flex-wrap: wrap !important; }

	/* 所有页面统一 75%/25% 两栏 */
	body.rj-body .rj-blog-section .row > .col-md-9,
	body.rj-body .rj-single-section .row > .col-md-9,
	body.rj-body .rj-archive-section .row > .col-md-9,
	body.rj-body .blog-section .row > .col-md-9 {
		flex: 0 0 75%;
		width: 75% !important;
		float: none !important;
	}
	body.rj-body .rj-blog-section .row > .col-md-3,
	body.rj-body .rj-single-section .row > .col-md-3,
	body.rj-body .rj-archive-section .row > .col-md-3,
	body.rj-body .blog-section .row > .col-md-3 {
		flex: 0 0 25%;
		width: 25% !important;
		float: none !important;
	}
	body.rj-body .rj-blog-section .row > .col-md-12,
	body.rj-body .rj-single-section .row > .col-md-12,
	body.rj-body .rj-archive-section .row > .col-md-12,
	body.rj-body .blog-section .row > .col-md-12 {
		flex: 0 0 100%;
		width: 100% !important;
		float: none !important;
	}
}

/* 移动端 (<992px)：单列堆叠 */
@media (max-width: 991px) {
	body.rj-body .row { display: block !important; }
	body.rj-body .row:before,
	body.rj-body .row:after { display: table; content: " "; }
	body.rj-body .row:after { clear: both; }

	body.rj-body .row > [class*="col-"] {
		float: none !important;
		width: 100% !important;
		clear: both !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		margin-bottom: 16px;
	}

	body.rj-body .container { padding-left: 12px !important; padding-right: 12px !important; }
}

/* 侧栏：桌面端右侧，移动端下方 */
@media (min-width: 992px) {
	body.rj-body .sidebar {
		width: 100% !important;
		float: none !important;
	}
}
@media (max-width: 991px) {
	body.rj-body .sidebar {
		width: 100% !important;
		float: none !important;
		margin-top: 16px !important;
	}
}

/* ---- 防御层：彻底中和父主题 media-responsive.css 的残留规则 ---- */
/* 父主题 media-responsive.css 使用 960px/768px/480px 断点，与子主题的 992px/767px 断点存在冲突。
   以下规则确保即使该文件未被成功移除，子主题的布局系统也完全覆盖父主题的影响。 */

/* 960-1200px 区间：父主题 .format-standard { width: 50% } 等规则 */
@media only screen and (min-width: 960px) and (max-width: 1200px) {
	body.rj-body .format-standard { width: auto !important; left: auto !important; }
	body.rj-body .homepage-mycarousel .format-status,
	body.rj-body .homepage-mycarousel .format-aside,
	body.rj-body .homepage-mycarousel .format-quote { width: auto !important; }
	body.rj-body .about-img-area { margin: 0 !important; padding: 0 !important; position: static !important; }
	body.rj-body .slide-text-bg1 { width: auto !important; padding: 0 !important; }
	body.rj-body .sm-callout-btn { float: none !important; margin-top: 0 !important; }
}

/* 768-959px 区间：父主题 .format-standard { width: 50%; left: 15% } 等规则 */
@media only screen and (min-width: 768px) and (max-width: 959px) {
	body.rj-body .format-standard { width: auto !important; left: auto !important; }
	body.rj-body .homepage-mycarousel .format-status,
	body.rj-body .homepage-mycarousel .format-aside,
	body.rj-body .homepage-mycarousel .format-quote { width: auto !important; }
	body.rj-body .about-img-area { margin: 0 !important; padding: 0 !important; position: static !important; }
	body.rj-body .slide-text-bg1 { width: auto !important; }
	body.rj-body .sm-callout-btn { float: none !important; margin-top: 0 !important; }
}

/* 200-767px 区间：父主题的移动端规则（与子主题的响应式可能冲突） */
@media only screen and (min-width: 200px) and (max-width: 767px) {
	body.rj-body .format-standard { width: auto !important; left: auto !important; }
	body.rj-body .homepage-mycarousel .format-status,
	body.rj-body .homepage-mycarousel .format-aside,
	body.rj-body .homepage-mycarousel .format-quote { width: auto !important; }
	body.rj-body .homepage-mycarousel .format-video { width: auto !important; }
	body.rj-body .about-img-area { margin: 0 !important; padding: 0 !important; position: static !important; }
	body.rj-body .slide-text-bg1 { width: auto !important; }
	body.rj-body .header-contact-info { float: none !important; text-align: left !important; }
	body.rj-body .testmonial-area { padding: 0 !important; }
	body.rj-body .sm-callout-btn { float: none !important; margin-top: 0 !important; }
	body.rj-body .sm-top-btn { float: none !important; padding: 0 !important; }
	body.rj-body .carou-direction-nav .carou-prev,
	body.rj-body .carou-direction-nav :hover .carou-prev { left: auto !important; }
	body.rj-body .carou-direction-nav .carou-next,
	body.rj-body .carou-direction-nav :hover .carou-next { right: auto !important; }
}

/* 让父主题标题样式更克制 */
body.rj-body h1, body.rj-body h2, body.rj-body h3, body.rj-body h4 {
	color: var(--rj-text);
}
body.rj-body h1 { font-size: var(--rj-fs-h1); /*border-bottom: 2px solid var(--rj-brand); */padding-bottom: 8px; /*margin-top: 36px;*/ }
body.rj-body h2 { font-size: var(--rj-fs-h2); border-left: 3px solid var(--rj-brand); padding-left: 12px; margin-top: 28px; }
body.rj-body h3 { font-size: var(--rj-fs-h3); font-weight: 700; margin-top: 22px; }

/* ---------- 1. 按钮 ---------- */
.rj-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	height: var(--rj-btn-h);
	padding: 0 18px;
	font-size: var(--rj-fs-sm);
	font-weight: 500;
	border-radius: 8px;
	border: 1px solid transparent;
	cursor: pointer;
	box-shadow: none; /* 符合偏好：无按钮阴影 */
	transition: background .2s, color .2s, border-color .2s;
	text-decoration: none;
}
.rj-btn-primary {
	background: var(--rj-brand);
	color: #fff;
}
.rj-btn-primary:hover { background: var(--rj-brand-deep); color: #fff; text-decoration: none; }
.rj-btn-ghost {
	background: transparent;
	color: var(--rj-brand);
	border-color: var(--rj-border);
	width:100%;
	height:56px;
}
.rj-btn-ghost:hover { border-color: var(--rj-brand); background: var(--rj-bg-soft); text-decoration: none; }

/* ---------- 2. Header / 导航 ---------- */
body.rj-body .rj-site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
	border-bottom: 1px solid var(--rj-border);
	box-shadow: 0 1px 0 rgba(17,24,39,.04);
	transition: box-shadow .25s ease, transform .25s, background .25s;
}
/* 底部品牌色渐变装饰线 */
body.rj-body .rj-site-header::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: linear-gradient(90deg,
		transparent 0%,
		var(--rj-brand) 20%,
		var(--rj-accent) 50%,
		var(--rj-brand) 80%,
		transparent 100%);
	opacity: .35;
	pointer-events: none;
}
/* 滚动后：增强阴影 + 装饰线加深 */
body.rj-body .rj-site-header.is-scrolled {
	background: linear-gradient(180deg, #ffffff 0%, #f4f7fc 100%);
	box-shadow: 0 4px 20px rgba(17,24,39,.08);
}
body.rj-body .rj-site-header.is-scrolled::after {
	opacity: .7;
}
body.rj-body .rj-site-header.is-hidden { transform: translateY(-100%); }
body.rj-body .rj-header-inner {
	max-width: var(--rj-container-w);
	margin: 0 auto;
	padding: 12px 16px;
	display: flex;
	align-items: center;
	gap: 24px;
}
body.rj-body .rj-brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
body.rj-body .rj-brand .custom-logo-link img { max-height: 44px; width: auto; }
body.rj-body .rj-brand-text .site-title {
	font-size: 20px;
	font-weight: 700;
	margin: 0;
	color: var(--rj-text);
	letter-spacing: -.3px;
}
body.rj-body .rj-brand-text .site-title a { color: inherit; }
body.rj-body .rj-brand-text .site-title a:hover { color: var(--rj-brand); text-decoration: none; }
body.rj-body .rj-brand-text .site-description {
	font-size: var(--rj-fs-xs);
	color: var(--rj-text-sub);
	margin: 2px 0 0;
}

/* 主导航：居右对齐 */
body.rj-body .rj-nav { flex: 1 1 auto; display: flex; justify-content: flex-end; }
body.rj-body .rj-menu,
body.rj-body .rj-menu-fallback {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	list-style: none !important;
	list-style-type: none !important;
	margin: 0 !important;
	padding: 0 !important;
	gap: 2px !important;
}
body.rj-body .rj-menu > li,
body.rj-body .rj-menu-fallback > li {
	list-style: none !important;
	list-style-type: none !important;
	background: none !important;
	background-image: none !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
	display: block !important;
}
body.rj-body .rj-menu > li::before,
body.rj-body .rj-menu > li::after,
body.rj-body .rj-menu-fallback > li::before,
body.rj-body .rj-menu-fallback > li::after {
	display: none !important;
	content: none !important;
}
body.rj-body .rj-menu > li > a,
body.rj-body .rj-menu-fallback > li > a {
	display: inline-flex !important;
	align-items: center;
	height: 36px;
	padding: 0 14px;
	font-size: var(--rj-fs-sm);
	color: var(--rj-text) !important;
	border-radius: 6px;
	text-decoration: none;
	line-height: 36px !important;
}
body.rj-body .rj-menu > li > a:hover,
body.rj-body .rj-menu-fallback > li > a:hover {
	background: var(--rj-bg-soft) !important;
	color: var(--rj-brand) !important;
	text-decoration: none !important;
}
body.rj-body .rj-menu > li.current > a,
body.rj-body .rj-menu > li.current-menu-item > a,
body.rj-body .rj-menu > li.current_page_item > a {
	background: var(--rj-brand) !important;
	color: #fff !important;
}

/* 下拉子菜单 */
body.rj-body .rj-menu .rj-submenu,
body.rj-body .rj-menu .sub-menu,
body.rj-body .rj-menu .children {
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	border: 1px solid var(--rj-border);
	border-radius: 8px;
	box-shadow: var(--rj-shadow-card);
	min-width: 180px;
	padding: 6px;
	list-style: none !important;
	list-style-type: none !important;
	flex-direction: column !important;
	z-index: 9;
	visibility: hidden;
	opacity: 0;
	transition: opacity .15s, visibility .15s;
	margin: 0 !important;
}
body.rj-body .rj-menu li { position: relative; }
body.rj-body .rj-menu > li:hover > .rj-submenu,
body.rj-body .rj-menu > li:hover > .sub-menu,
body.rj-body .rj-menu > li:hover > .children { visibility: visible; opacity: 1; }
body.rj-body .rj-menu .rj-submenu li,
body.rj-body .rj-menu .sub-menu li {
	list-style: none !important;
	list-style-type: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: block !important;
	float: none !important;
}
body.rj-body .rj-menu .rj-submenu li::before,
body.rj-body .rj-menu .sub-menu li::before {
	display: none !important;
	content: none !important;
}
body.rj-body .rj-menu .rj-submenu a,
body.rj-body .rj-menu .sub-menu a {
	display: block !important;
	padding: 6px 10px !important;
	font-size: var(--rj-fs-sm) !important;
	color: var(--rj-text) !important;
	border-radius: 6px;
	line-height: 1.5 !important;
	height: auto !important;
}
body.rj-body .rj-menu .rj-submenu a:hover,
body.rj-body .rj-menu .sub-menu a:hover {
	background: var(--rj-bg-soft) !important;
	color: var(--rj-brand) !important;
}

/* 下拉箭头 */
body.rj-body .rj-caret {
	font-size: 10px;
	margin-left: 4px;
	opacity: .6;
}

/* 工具区 */
body.rj-body .rj-tools { display: flex; align-items: center; gap: 8px; }
body.rj-body .rj-theme-toggle,
body.rj-body .rj-search-toggle,
body.rj-body .rj-menu-toggle {
	display: inline-flex;
	width: 36px;
	height: 36px;
	background: transparent;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	box-shadow: none;
	color: var(--rj-text);
	transition: background .2s ease, color .2s ease, transform .2s ease;
	-webkit-appearance: none;
	appearance: none;
	padding: 0;
	font-family: inherit;
}
body.rj-body .rj-theme-toggle:hover,
body.rj-body .rj-search-toggle:hover,
body.rj-body .rj-menu-toggle:hover {
	background: var(--rj-bg-soft);
	color: var(--rj-brand);
}
body.rj-body .rj-theme-toggle:focus-visible,
body.rj-body .rj-search-toggle:focus-visible,
body.rj-body .rj-menu-toggle:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px rgba(26, 115, 232, .35);
}

/* 深浅切换图标：默认显示太阳（浅色），.is-dark 时显示月亮 */
body.rj-body .rj-theme-toggle .rj-icon {
	width: 20px;
	height: 20px;
	transition: opacity .2s ease, transform .25s ease;
}
body.rj-body .rj-theme-toggle .rj-icon-moon { display: none; }
body.rj-body .rj-theme-toggle.is-dark .rj-icon-sun { display: none; }
body.rj-body .rj-theme-toggle.is-dark .rj-icon-moon { display: inline-block; color: #fbbf24; }
body.rj-body .rj-theme-toggle.is-dark:hover { color: #fbbf24; }

/* 汉堡按钮：三根横线竖排 —— 必须 flex-direction: column，否则 3 个 <span> 会横排变成 "---" */
body.rj-body .rj-menu-toggle {
	display: none !important;   /* 仅移动端显示 */
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 4px;
	padding: 8px 0;
}
body.rj-body .rj-menu-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--rj-text);
	border-radius: 2px;
	transition: transform .2s, opacity .2s;
}
body.rj-body .rj-search-toggle { font-size: 16px; }

/*
 * 顶部内联搜索：点击搜索图标向左滑出
 * 关键：输入框和右侧 toggle 按钮之间 .rj-tools 有 gap:8px，
 * 必须用 margin-right: -9px（1px 叠边 + 8px gap 抵消）把两个元素的边框精准贴成 1px，
 * 否则中间永远会断开留白。
 */
body.rj-body .rj-inline-search {
	display: flex;
	align-items: center;
	width: 0;
	max-width: 0;
	opacity: 0;
	visibility: hidden;
	overflow: hidden;
	transform-origin: right center;
	transform: translateX(4px) scaleX(0);
	transition: width .25s ease, max-width .25s ease, opacity .22s ease, visibility .25s ease, transform .25s ease;
}
body.rj-body .rj-tools.is-search-open .rj-inline-search {
	width: 100%;
	max-width: 400px;
	opacity: 1;
	visibility: visible;
	transform: translateX(0) scaleX(1);
	/* 抵消 .rj-tools { gap: 8px } + 叠 1px 边框 = 9px */
	margin-right: -9px;
	position: relative;
	z-index: 2;
}

/* 输入框：左半圆 + 完整 4 边，右边 1px 与按钮叠合 */
body.rj-body .rj-search-input {
	flex: 1;
	height: 38px;
	padding: 0 12px 0 16px;
	background: var(--rj-bg-card);
	border: 1px solid var(--rj-border);
	border-radius: 10px 0 0 10px;
	color: var(--rj-text);
	font-size: 14px;
	outline: none;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
	font-family: inherit;
	transition: background .2s ease, border-color .2s ease;
}
body.rj-body .rj-search-input::placeholder {
	color: var(--rj-text-sub);
	opacity: .9;
}
body.rj-body .rj-search-input:focus {
	border-color: var(--rj-brand);
	z-index: 3;
}

/*
 * 打开状态：toggle 按钮 = 胶囊右半边
 *   - 与输入框同样的背景/高度
 *   - 绝对保证左边无 border-radius / 无独立阴影
 *   - 搜索图标隐藏，显示 ✕
 */
body.rj-body .rj-tools.is-search-open .rj-search-toggle {
	height: 38px;
	width: 40px;
	flex: 0 0 40px;
	background: var(--rj-bg-card);
	color: var(--rj-text-sub);
	border: 1px solid var(--rj-border);
	border-radius: 0 10px 10px 0;
	box-shadow: none !important;
	transform: none !important;
	outline: none !important;
	position: relative;
	z-index: 1;
}
/* 打开状态：按钮仍然显示搜索图标（语义和行为一致：点它=执行搜索）*/
body.rj-body .rj-tools.is-search-open .rj-search-toggle {
	background: var(--rj-brand);
	color: #fff;
	border-color: var(--rj-brand);
}
body.rj-body .rj-tools.is-search-open .rj-search-toggle:hover {
	filter: brightness(1.08);
	background: var(--rj-brand);
	color: #fff;
}
body.rj-body .rj-tools.is-search-open .rj-search-toggle:active {
	transform: scale(.96);
}

/*
 * focus 联动：输入框或按钮 focus 时，两个元素组成的"整体胶囊"
 * 只在外围画一层品牌蓝 3px 光晕。中间接缝处：
 *   - 给 toggle 按钮加左边框（颜色=focus 蓝），用 z-index 让按钮盖在输入框上
 *   - 这样接缝处就是一整条蓝色，看不到断开
 */
body.rj-body .rj-tools.is-search-open .rj-search-input:focus,
body.rj-body .rj-tools.is-search-open:has(.rj-search-input:focus) .rj-search-input,
body.rj-body .rj-tools.is-search-open:has(.rj-search-toggle:focus) .rj-search-input {
	border-color: var(--rj-brand);
}
body.rj-body .rj-tools.is-search-open .rj-search-input:focus + .rj-search-toggle,
body.rj-body .rj-tools.is-search-open:has(.rj-search-input:focus) .rj-search-toggle,
body.rj-body .rj-tools.is-search-open .rj-search-toggle:focus,
body.rj-body .rj-tools.is-search-open .rj-search-toggle:focus-visible {
	border-color: var(--rj-brand);
	outline: none !important;
	box-shadow: none !important;
}
/* 接缝 focus 处的补边：让按钮 z-index 升到上面画左边框 */
body.rj-body .rj-tools.is-search-open:has(.rj-search-input:focus) .rj-search-toggle,
body.rj-body .rj-tools.is-search-open:has(.rj-search-toggle:focus) .rj-search-toggle {
	border-left: 1px solid var(--rj-brand);
	z-index: 3;
}

/* 屏幕空间不够时，导航自动收缩让位（给搜索框最大 400px 空间） */
body.rj-body .rj-tools.is-search-open + .rj-nav {
	flex: 0 0 auto;
}

/* 阅读进度条 */
body.rj-body .rj-reading-progress {
	position: fixed;
	top: 0; left: 0;
	width: 100%;
	height: 3px;
	background: transparent;
	z-index: 1100;
	pointer-events: none;
}
body.rj-body .rj-reading-progress span {
	display: block;
	width: 0%;
	height: 100%;
	background: var(--rj-brand);
	transition: width .1s linear;
}

/* ---------- 3. 通用区块头 ---------- */
.rj-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 0 18px 0 18px;
}
.rj-section-title {
	font-size: 20px;
	font-weight: 600;
	margin: 0 !important;
	color: var(--rj-text);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: none !important;
	padding: 0 !important;
}
.rj-section-title i { color: var(--rj-accent); }
.rj-section-more {
	font-size: var(--rj-fs-sm);
	color: var(--rj-brand);
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

/* ---------- 5. AI 系列卡 ---------- */
.rj-series { padding: 16px 0; }
.rj-series-track { overflow: hidden; /*padding:0 16px;*/}
.rj-series-row {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}
.rj-series-card {
	flex: 1 1 260px;
	min-width: 0;
	max-width: 100%;
	background: var(--rj-bg-card);
	border: 1px solid var(--rj-border);
	border-radius: var(--rj-radius);
	overflow: hidden;
	box-shadow: var(--rj-shadow-card);
	transition: transform .2s, box-shadow .2s;
}
.rj-series-card:hover { transform: translateY(-2px); box-shadow: var(--rj-shadow-hover); }
.rj-series-link { display: block; color: inherit; }
.rj-series-link:hover { text-decoration: none; }
.rj-series-thumb { aspect-ratio: 16/9; background: var(--rj-bg-soft); overflow: hidden; }
.rj-series-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rj-series-thumb--placeholder {
	display: flex; align-items: center; justify-content: center;
	color: #fff; position: relative;
}
.rj-series-thumb--placeholder::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.20) 100%);
}
.rj-series-letter {
	font-size: 36px;
	font-weight: 700;
	color: #fff;
	text-shadow: 0 2px 10px rgba(0,0,0,.22);
	line-height: 1;
	position: relative;
	z-index: 1;
}
.rj-series-body { padding: 12px 14px; }
.rj-series-card-title {
	font-size: 15px;
	font-weight: 600;
	color: var(--rj-text);
	margin: 0 0 8px;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.rj-series-meta { display: flex; gap: 12px; font-size: var(--rj-fs-xs); color: var(--rj-text-sub); }
.rj-series-meta i { margin-right: 4px; }

/* ---------- 6. 文章卡片流 ---------- */
.rj-blog-section { padding: 8px 0 40px; }
.rj-feed { display: flex; flex-direction: column; gap: 16px; }
.rj-feed-col { min-width: 0; padding-right: 24px; }
.rj-single-col { max-width: 100%; padding-right: 24px; }
.rj-archive-section .rj-feed-col { min-width: 0; padding-right: 24px; }
.rj-archive-section .col-md-9 { padding-right: 24px; }

/* 以下布局规则已在文件顶部的"布局系统重置"区块统一处理，此处不再重复。 */

.rj-card {
	background: var(--rj-bg-card);
	border: 1px solid var(--rj-border);
	border-radius: var(--rj-radius);
	overflow: hidden;
	box-shadow: var(--rj-shadow-card);
	transition: transform .2s, box-shadow .2s;
	display: flex;
	flex-direction: row;
	align-items: stretch;
}
.rj-card:hover { transform: translateY(-2px); box-shadow: var(--rj-shadow-hover); }

/* 左图：加宽到 280px */
.rj-card-thumb {
	display: flex;
	flex: 0 0 280px;
	max-width: 280px;
	aspect-ratio: 16/10;
	background: var(--rj-bg-soft);
	overflow: hidden;
	height: auto;
}
.rj-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.rj-card-thumb--ph { display: flex; align-items: center; justify-content: center; color: #fff; position: relative; }
.rj-card-thumb--ph::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.20) 100%);
}
.rj-card-letter {
	font-size: 48px;
	font-weight: 700;
	color: #fff;
	text-shadow: 0 2px 12px rgba(0,0,0,.22);
	line-height: 1;
	position: relative;
	z-index: 1;
}

/* 右文 */
.rj-card-body {
	flex: 1 1 auto;
	padding: 16px 18px;
	min-width: 0;
	display: flex;
	flex-direction: column;
}
.rj-card-cats { margin-bottom: 8px; font-size: var(--rj-fs-xs); }
.rj-card-cats a { color: var(--rj-brand); }
.rj-card-cats a:hover { color: var(--rj-brand-deep); }
.rj-card-title {
	font-size: 18px;
	font-weight: 600;
	color: var(--rj-text);
	margin: 0 0 10px;
	line-height: 1.5;
}
.rj-card-title a { color: inherit; }
.rj-card-title a:hover { color: var(--rj-brand); text-decoration: none; }
.rj-card-excerpt {
	font-size: var(--rj-fs-sm);
	color: var(--rj-text-sub);
	line-height: 1.7;
	margin: 0 0 12px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.rj-card-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	font-size: var(--rj-fs-xs);
	color: var(--rj-text-sub);
}
.rj-meta { display: inline-flex; align-items: center; gap: 4px; }
.rj-meta i { color: var(--rj-text-muted); }
.rj-card-more { margin-left: auto; }
.rj-card-more a { color: var(--rj-brand); }

/* 加载更多 */
.rj-loadmore-wrap { text-align: center; margin-top: 24px; }
.rj-loadmore-spinner[hidden] { display: none; }
.rj-loadmore.is-loading .rj-loadmore-text { opacity: .6; }

/* ---------- 7. 文章页 ---------- */
.rj-single-section { padding: 16px 0 40px; }
.rj-article { background: var(--rj-bg-card); border: 1px solid var(--rj-border); border-radius: var(--rj-radius); padding: 24px 28px; box-shadow: var(--rj-shadow-card); }
.rj-article-head { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--rj-border); }
.rj-article-cats { font-size: var(--rj-fs-xs); margin-bottom: 8px; }
.rj-article-cats a { color: var(--rj-brand); }
.rj-article-title { font-size: 26px; font-weight: 700; color: var(--rj-text); margin: 0 0 12px; border: none; padding: 0; }
.rj-article-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: var(--rj-fs-xs); color: var(--rj-text-sub); }
.rj-article-meta .rj-meta a { color: var(--rj-text-sub); }
.rj-article-meta .rj-meta a:hover { color: var(--rj-brand); }

.rj-entry-content {
	max-width: none;
	margin: 0;
	font-size: 16px;
	line-height: var(--rj-lh);
	color: var(--rj-text);
}
.rj-entry-content p { margin: 16px 0; color: var(--rj-text); }
.rj-entry-content h2 { font-size: 22px; }
.rj-entry-content h3 { font-size: 18px; }
/* H3 视觉标记：品牌色小方块，层级低于 H2 的左侧长竖线 */
body.rj-body .rj-entry-content h3::before {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 10px;
	background: var(--rj-brand);
	vertical-align: middle;
}
.rj-entry-content a { text-decoration: underline; text-underline-offset: 2px; }
.rj-entry-content blockquote {
	margin: 18px 0;
	padding: 12px 16px;
	background: var(--rj-bg-soft);
	border-left: 4px solid var(--rj-brand);
	border-radius: 0 6px 6px 0;
	color: var(--rj-text-sub);
}
.rj-entry-content img { border-radius: 8px; margin: 16px 0; }
.rj-entry-content ul, .rj-entry-content ol { padding-left: 22px; margin: 16px 0; }
.rj-entry-content li { margin: 6px 0; }

/* 文章内表格：细边框 + 表头底色 + 斑马纹（深浅模式自动适配） */
.rj-entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
	font-size: var(--rj-fs-sm);
}
.rj-entry-content table th,
.rj-entry-content table td {
	padding: 10px 14px;
	border: 1px solid var(--rj-border);
	text-align: left;
	vertical-align: top;
}
.rj-entry-content table thead th {
	background: var(--rj-bg-soft);
	font-weight: 600;
	color: var(--rj-text);
	white-space: nowrap;
}
.rj-entry-content table tbody tr:nth-child(even) {
	background: var(--rj-bg-soft);
}
/* 区块表格若选了 WP 自带"条纹"样式，重置其 odd 行底色，避免与上方 even 斑马纹叠加 */
.rj-entry-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background: transparent;
}
.rj-entry-content table tbody tr:hover {
	background: rgba(26, 115, 232, .06);
}
/* 移动端：宽表格横向滚动，避免撑破布局 */
@media (max-width: 767px) {
	.rj-entry-content table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}

/* 代码块：深色背景 + 自动换行 + 行号 */
.rj-code-wrap {
	position: relative;
	margin: 20px 0;
	border-radius: 10px;
	overflow: hidden;
	background: #0f172a;
	box-shadow: 0 4px 24px rgba(15, 23, 42, .18);
}
.rj-code-wrap pre {
	position: relative;
	background: #0f172a;
	color: #e2e8f0;
	padding: 16px 16px 16px 0;
	margin: 0;
	overflow: auto;
	max-height: calc(30 * 1.7em + 32px);   /* 最多显示 30 行，超出滚动 */
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
	font-size: 13.5px;
	line-height: 1.7;
	tab-size: 4;
	-moz-tab-size: 4;
	border:none;
}
/* 代码块滚动条美化 */
.rj-code-wrap pre::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}
.rj-code-wrap pre::-webkit-scrollbar-track {
	background: transparent;
}
.rj-code-wrap pre::-webkit-scrollbar-thumb {
	background: rgba(148, 163, 184, .25);
	border-radius: 4px;
}
.rj-code-wrap pre::-webkit-scrollbar-thumb:hover {
	background: rgba(148, 163, 184, .4);
}
.rj-code-wrap pre code {
	background: transparent;
	color: inherit;
	padding: 0;
	font-size: inherit;
	display: block;
}
/* 每一行：行号 + 文本 */
.rj-code-row {
	display: flex;
	align-items: flex-start;
	min-height: 1.7em;
}
.rj-code-ln {
	flex: 0 0 auto;
	min-width: 44px;
	padding: 0 12px 0 16px;
	text-align: right;
	color: #475569;
	user-select: none;
	-webkit-user-select: none;
	border-right: 1px solid rgba(148, 163, 184, .12);
	background: rgba(255,255,255,.015);
	white-space: pre;
	font-variant-numeric: tabular-nums;
}
.rj-code-txt {
	flex: 1 1 auto;
	padding: 0 16px;
	white-space: pre-wrap;
	word-break: break-word;
	word-wrap: break-word;
	overflow-wrap: break-word;
	min-width: 0;
}

/* 图片点击外壳：正文内图片显示放大光标 */
.entry-content .rj-lightbox-link {
	display: inline-block;
	position: relative;
	cursor: zoom-in;
	line-height: 0;
	text-decoration: none;
	border: none;
	box-shadow: none;
	background: transparent;
}
.entry-content .rj-lightbox-link img {
	display: block;
	max-width: 100%;
	height: auto;
}

/* ===== Lightbox 全屏蒙层 ===== */
.rj-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.rj-lightbox.is-open {
	display: flex;
}
.rj-lightbox-mask {
	position: absolute;
	inset: 0;
	background: rgba(5, 8, 16, .88);
	-webkit-backdrop-filter: blur(8px) saturate(180%);
	backdrop-filter: blur(8px) saturate(180%);
	cursor: zoom-out;
	animation: rjLbFadeIn .22s ease both;
}
.rj-lightbox-stage {
	position: relative;
	z-index: 2;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px 12px;
	box-sizing: border-box;
	animation: rjLbFadeIn .28s ease both;
}
@keyframes rjLbFadeIn {
	from { opacity: 0; }
	to   { opacity: 1; }
}

/* 控制按钮 */
.rj-lb-btn {
	position: absolute;
	z-index: 5;
	width: 42px;
	height: 42px;
	padding: 0;
	border: none;
	background: rgba(255, 255, 255, .1);
	color: #fff;
	font-size: 20px;
	line-height: 42px;
	text-align: center;
	border-radius: 50%;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	box-shadow: 0 2px 12px rgba(0, 0, 0, .3);
	transition: background .2s ease, transform .2s ease;
	user-select: none;
	font-family: inherit;
}
.rj-lb-btn:hover { background: rgba(255, 255, 255, .22); transform: scale(1.06); }
.rj-lb-btn:focus { outline: none; box-shadow: 0 0 0 2px rgba(26, 115, 232, .45), 0 2px 12px rgba(0,0,0,.3); }
.rj-lb-btn:disabled { opacity: .35; cursor: not-allowed; transform: none; }

.rj-lb-close { top: 16px; right: 20px; font-size: 26px; line-height: 40px; }
.rj-lb-prev  { top: 50%; left: 16px;  transform: translateY(-50%); }
.rj-lb-prev:hover { transform: translateY(-50%) scale(1.06); }
.rj-lb-next  { top: 50%; right: 16px; transform: translateY(-50%); }
.rj-lb-next:hover { transform: translateY(-50%) scale(1.06); }

/* 图片容器 */
.rj-lb-img-wrap {
	position: relative;
	max-width: 100%;
	max-height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 68px;
	box-sizing: border-box;
	animation: rjLbPopIn .3s ease both;
}
@keyframes rjLbPopIn {
	from { opacity: 0; transform: scale(.94); }
	to   { opacity: 1; transform: scale(1); }
}
.rj-lb-img-wrap.is-loading .rj-lb-img { opacity: 0; }

.rj-lb-img {
	display: block;
	max-width: 100%;
	max-height: calc(100vh - 140px);
	object-fit: contain;
	image-rendering: auto;
	border-radius: 8px;
	box-shadow: 0 18px 60px rgba(0, 0, 0, .5);
	transition: opacity .2s ease;
}

/* 加载 spinner */
.rj-lb-spinner {
	position: absolute;
	width: 44px;
	height: 44px;
	border: 3px solid rgba(255,255,255,.18);
	border-top-color: #1a73e8;
	border-radius: 50%;
	opacity: 0;
	pointer-events: none;
	animation: rjLbSpin 1s linear infinite;
}
.rj-lb-img-wrap.is-loading .rj-lb-spinner { opacity: 1; }
@keyframes rjLbSpin { to { transform: rotate(360deg); } }

/* 描述和计数 */
.rj-lb-caption {
	margin-top: 14px;
	padding: 0 12px;
	color: rgba(255, 255, 255, .78);
	font-size: 14px;
	line-height: 1.6;
	max-width: 80vw;
	text-align: center;
	word-break: break-word;
	min-height: 16px;
}
.rj-lb-counter {
	margin-top: 6px;
	padding: 4px 12px;
	color: rgba(255, 255, 255, .55);
	font-size: 12px;
	line-height: 1;
	letter-spacing: 1px;
	border-radius: 20px;
	background: rgba(255, 255, 255, .06);
}

/* 触摸态/移动端：按钮更大，间距缩小 + 搜索框自适应 */
@media (max-width: 767px) {
	.rj-lb-img-wrap { padding: 0 4px; }
	.rj-lb-img     { max-height: calc(100vh - 180px); }
	.rj-lb-prev    { left: 4px;  width: 36px; height: 36px; line-height: 36px; font-size: 18px; }
	.rj-lb-next    { right: 4px; width: 36px; height: 36px; line-height: 36px; font-size: 18px; }
	.rj-lb-close   { top: 10px; right: 10px; }
	.rj-lb-caption { font-size: 13px; max-width: 92vw; }
	body.rj-body .rj-tools.is-search-open .rj-inline-search { max-width: 52vw; margin-right: -9px; }
	body.rj-body .rj-search-input { font-size: 13px; height: 36px; }
	body.rj-body .rj-tools.is-search-open .rj-search-toggle { height: 36px; width: 38px; flex-basis: 38px; }
}

/* 打开 lightbox 时，禁止背景滚动 */
.rj-lb-lock-scroll { overflow: hidden !important; }

/* 文章标签 */
.rj-article-tags { margin: 20px 0; font-size: var(--rj-fs-sm); color: var(--rj-text-sub); }
.rj-article-tags i { margin-right: 6px; }
.rj-article-tags a {
	display: inline-block;
	height: 26px;
	line-height: 26px;
	padding: 0 10px;
	margin: 0 4px 4px 0;
	background: var(--rj-bg-soft);
	color: var(--rj-text-sub);
	border-radius: 13px;
	font-size: var(--rj-fs-xs);
}
.rj-article-tags a:hover { background: var(--rj-brand); color: #fff; text-decoration: none; }

/* 作者卡 */
.rj-author-wrap { margin: 24px 0 20px; padding: 16px; background: var(--rj-bg-soft); border-radius: var(--rj-radius); }
.rj-author-card { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rj-author-avatar-wrap img { border-radius: 50%; display: block; }
.rj-author-info { flex: 1; min-width: 200px; }
.rj-author-name { font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.rj-author-name a { color: var(--rj-text); }
.rj-author-name a:hover { color: var(--rj-brand); text-decoration: none; }
.rj-author-badge {
	display: inline-block;
	font-size: var(--rj-fs-xs);
	color: var(--rj-brand-deep);
	background: var(--rj-accent-soft);
	padding: 2px 8px;
	border-radius: 10px;
	margin-bottom: 4px;
}
.rj-author-desc { font-size: var(--rj-fs-sm); color: var(--rj-text-sub); margin: 4px 0 0; }

/* 上下篇导航 */
.rj-post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin: 20px 0;
}
.rj-post-nav-prev, .rj-post-nav-next {
	padding: 12px 14px;
	background: var(--rj-bg-soft);
	border-radius: 8px;
	font-size: var(--rj-fs-sm);
}
.rj-post-nav-next { text-align: right; }
.rj-pn-label { display: inline-block; font-size: var(--rj-fs-xs); color: var(--rj-text-sub); margin-bottom: 4px; }
.rj-post-nav a { color: var(--rj-text); }
.rj-post-nav a:hover { color: var(--rj-brand); text-decoration: none; }

/* ---------- 8. 侧栏 TOC（JS 动态定位） ---------- */
.rj-single-aside { padding-left: 20px; }
.rj-toc-sticky-wrap {
	position: sticky;   /* 纯 CSS 吸顶：不脱离文档流，不引起侧栏跳动 */
	top: 80px;          /* 吸顶于 sticky header 下方 */
	z-index: 10;        /* 盖过向上滚过的小工具卡片 */
	min-height: 60px;
	margin-bottom: 20px;
}
/* 侧栏任意指定小工具跟随 TOC 下方吸顶（原生实现，替代"固定Widget"插件）
   用法：WP 后台 → 外观 → 小工具 → 选中要固定的小工具区块 →
        设置面板"高级" → 附加 CSS 类填 "rj-pin"（可标记任意多个，自上而下依次吸顶）。
   加在区块内层的类由 reading.js 自动提升到外层 .widget 容器；
   每个 pin 的 top 偏移由 JS 计算内联写入；视口放不下的自动放弃吸顶；
   被"移动端隐藏"类隐藏的小工具自动跳过。 */
@media (min-width: 992px) {
	/* 关键：sticky 只能在父容器盒子范围内吸附。
	   .sidebar 默认高度=自身内容高度，远小于被 flex 拉伸的侧栏列，
	   pin 没有活动空间导致"看似没固定"。
	   把"包含 .sidebar 的列"改为纵向 flex 让 .sidebar 撑满列高：
	   同时覆盖文章页 .rj-single-aside 与父主题输出的 .col-md-3 列
	   （首页/分类/标签/搜索页）。:has() 现代浏览器均支持。 */
	body.rj-body div[class*="col-"]:has(> .sidebar) {
		display: flex;
		flex-direction: column;
	}
	body.rj-body div[class*="col-"]:has(> .sidebar) > .sidebar {
		flex: 1 1 auto;
	}

	/* rj-pin 吸顶：全站任意页面的侧栏小工具通用 */
	body.rj-body .sidebar .widget.rj-pin {
		position: sticky;
		z-index: 5;
	}
}
.rj-toc {
	background: var(--rj-bg-card);
	border: 1px solid var(--rj-border);
	border-radius: var(--rj-radius);
	padding: 14px 16px;
	box-shadow: var(--rj-shadow-card);
	max-height: calc(100vh - 120px);
	overflow-y: auto;
	position: relative;
}
.rj-toc-title { font-size: var(--rj-fs-sm); font-weight: 600; color: var(--rj-text); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--rj-border); }
.rj-toc-list { list-style: none; padding: 0; margin: 0; font-size: var(--rj-fs-xs); }
.rj-toc-list li { margin: 0; }
.rj-toc-list a {
	display: block;
	padding: 6px 8px;
	color: var(--rj-text-sub);
	border-left: 2px solid transparent;
	border-radius: 0 4px 4px 0;
	line-height: 1.5;
}
.rj-toc-list a:hover { color: var(--rj-brand); background: var(--rj-bg-soft); text-decoration: none; }
.rj-toc-list a.is-active { color: var(--rj-brand); border-left-color: var(--rj-brand); background: var(--rj-bg-soft); font-weight: 500; }
.rj-toc-list .rj-toc-sub a { padding-left: 22px; font-size: 11px; }

.rj-toc-mobile { display: none; margin: 16px 0; background: var(--rj-bg-soft); border-radius: 8px; padding: 8px 12px; }
.rj-toc-mobile summary { cursor: pointer; font-weight: 600; font-size: var(--rj-fs-sm); color: var(--rj-text); list-style: none; }
.rj-toc-mobile summary::-webkit-details-marker { display: none; }
.rj-toc-mobile[open] .rj-toc { margin-top: 10px; box-shadow: none; border: none; }

/* ---------- 8.5 主侧栏小工具（美化父主题原始样式） ---------- */
.sidebar { padding: 0; }
.sidebar .widget {
	background: var(--rj-bg-card);
	border: 1px solid var(--rj-border);
	border-radius: var(--rj-radius);
	box-shadow: var(--rj-shadow-card);
	padding: 18px 20px;
	margin-bottom: 20px;
}
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title,
.sidebar .widgettitle {
	font-size: 15px;
	font-weight: 600;
	color: var(--rj-text);
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--rj-border);
	letter-spacing: 0 !important;
	word-spacing: 0 !important;
}
.sidebar .widget ul,
.sidebar .widget ol {
	list-style: none;
	padding: 0;
	margin: 0;
}
.sidebar .widget ul li {
	padding: 8px 0;
	border-bottom: 1px solid var(--rj-border);
	font-size: var(--rj-fs-sm);
	color: var(--rj-text-sub);
}
.sidebar .widget ul li:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar .widget ul li:first-child { padding-top: 0; }
.sidebar .widget ul li a { color: var(--rj-text); }
.sidebar .widget ul li a:hover { color: var(--rj-brand); text-decoration: none; }
.sidebar .widget ul.children,
.sidebar .widget ul.sub-menu { padding-left: 12px; }

/* 侧栏段落 */
.sidebar .widget p { font-size: var(--rj-fs-sm); color: var(--rj-text-sub); line-height: 1.7; margin: 0 0 10px; }
.sidebar .widget p:last-child { margin-bottom: 0; }

/* 侧栏搜索框 */
.sidebar .widget_search .search-form { display: flex; gap: 6px; }
.sidebar .widget_search .search-field {
	flex: 1;
	height: 36px;
	padding: 0 12px;
	font-size: var(--rj-fs-sm);
	border: 1px solid var(--rj-border);
	border-radius: 8px;
	background: var(--rj-bg-card);
	box-shadow: none;
}
.sidebar .widget_search .search-field:focus {
	outline: none;
	border-color: var(--rj-brand);
	box-shadow: 0 0 0 3px rgba(26,115,232,.12);
}
.sidebar .widget_search .search-submit {
	height: 36px;
	padding: 0 14px;
	border: none;
	background: var(--rj-brand);
	color: #fff;
	border-radius: 8px;
	box-shadow: none;
	cursor: pointer;
	font-size: var(--rj-fs-xs);
	font-weight: 500;
}
.sidebar .widget_search .search-submit:hover { background: var(--rj-brand-deep); }

/* 侧栏标签云 —— 3D 镂空球形旋转
 * 兼容 WP 旧版 <div class="tagcloud"> 和 新版块标签云 <p class="wp-block-tag-cloud">
 * JS 会给容器加 .rj-sphere 类并把标签定位到球面上。
 */
.sidebar .widget_tag_cloud .tagcloud,
.sidebar .widget_tag_cloud .wp-block-tag-cloud {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;        /* 球形容器正方形 */
	margin: -4px 0 -8px;        /* 抵消小部件上下内边距，让球体更大更饱满 */
	perspective: 1000px;
	overflow: hidden;           /* 隐藏溢出，保持小部件边界整洁 */
	cursor: grab;
	user-select: none;
}
.sidebar .widget_tag_cloud .tagcloud.rj-sphere,
.sidebar .widget_tag_cloud .wp-block-tag-cloud.rj-sphere {
	cursor: grab;
}
.sidebar .widget_tag_cloud .tagcloud a,
.sidebar .widget_tag_cloud .wp-block-tag-cloud a {
	position: absolute;
	top: 50%;
	left: 50%;
	display: inline-block;
	padding: 2px 8px;
	font-size: var(--rj-fs-xs) !important;  /* 覆盖 WP 内联 size，缩放由 JS 控制 */
	font-weight: 500;
	line-height: 1.4;
	color: var(--rj-text-sub);             /* 与其他小工具字体颜色一致 */
	background: transparent;
	border: none;
	border-radius: 0;
	text-decoration: none;
	white-space: nowrap;
	transform-style: preserve-3d;
	opacity: .55;
	transition: color .18s ease, text-shadow .18s ease, opacity .18s ease;
}
.sidebar .widget_tag_cloud .tagcloud a:hover,
.sidebar .widget_tag_cloud .wp-block-tag-cloud a:hover {
	color: var(--rj-brand);                /* hover 时蓝色，与其他小工具链接一致 */
	text-shadow: none;
	opacity: 1 !important;
	text-decoration: none;
}

/* 侧栏近期评论 */
.sidebar .widget_recent_comments .recentcomments {
	padding: 8px 0;
	border-bottom: 1px solid var(--rj-border);
	font-size: var(--rj-fs-sm);
	color: var(--rj-text-sub);
}
.sidebar .widget_recent_comments .recentcomments:last-child { border-bottom: none; }
.sidebar .widget_recent_comments .recentcomments a { color: var(--rj-brand); }

/* 侧栏日历 */
.sidebar .widget_calendar #wp-calendar { width: 100%; font-size: var(--rj-fs-xs); }
.sidebar .widget_calendar #wp-calendar caption { padding-bottom: 8px; color: var(--rj-text-sub); }
.sidebar .widget_calendar #wp-calendar th,
.sidebar .widget_calendar #wp-calendar td { text-align: center; padding: 4px; }
.sidebar .widget_calendar #wp-calendar tbody a { color: var(--rj-brand); font-weight: 600; }

/* 侧栏图片小工具 */
.sidebar .widget_media_image img { border-radius: 8px; max-width: 100%; height: auto; }

/* ---------- 9. 页脚 ---------- */
.rj-footer { background: #1f2329; color: #cbd2da; padding: 32px 0 20px; /*margin-top: 40px; */}
.rj-footer a { color: #fff; }
.rj-footer a:hover { color: var(--rj-accent); text-decoration: none; }

/* 页脚在桌面端保持块级布局，不使用 flex 两栏系统 */
@media (min-width: 992px) {
	body.rj-body .rj-footer .row {
		display: block !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
	body.rj-body .rj-footer .row > [class*="col-"] {
		float: none !important;
		width: 100% !important;
		flex: none !important;
		clear: both !important;
	}
}

.rj-footer-info { text-align: center; font-size: var(--rj-fs-sm); color: #9ca3af; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); }
.rj-footer-extra a { color: #9ca3af; }
.rj-footer .widget { color: #cbd2da; }
.rj-footer .widget-title { color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); padding-bottom: 8px; }
.rj-footer .widget ul li { border-bottom: 1px solid rgba(255,255,255,.06); }
.rj-footer .widget ul li a { color: #cbd2da; }
.rj-footer-beian {
	text-align: center;
	font-size: var(--rj-fs-sm);
	color: #9ca3af;
	margin-top: 8px;
}
.rj-footer-beian a {
	color: #9ca3af;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.rj-footer-beian a:hover { color: var(--rj-accent); }
.rj-beian-sep { margin: 0 8px; opacity: .5; }
.rj-police-icon { vertical-align: middle; }

/* ---------- 9. 作者信息卡（blog-author-inner 覆盖父主题） ---------- */
body.rj-body .blog-author {
	background: var(--rj-bg-card);
	border: 1px solid var(--rj-border);
	border-radius: var(--rj-radius);
	box-shadow: var(--rj-shadow-card);
	margin: 24px 0 20px;
	overflow: hidden;
}
body.rj-body .blog-author-inner {
	position: relative;
	z-index: 1;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 24px;
	gap: 24px;
}
body.rj-body .blog-author-inner::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	/*background: linear-gradient(180deg, var(--rj-brand) 0%, var(--rj-accent) 100%);*/
	border-radius: 4px 0 0 4px;
}
body.rj-body .author-info {
	flex: 1;
	min-width: 0;
}
body.rj-body .blog-author h6 {
	color: var(--rj-text);
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 4px;
}
body.rj-body .blog-author h6 a {
	color: var(--rj-text);
	text-decoration: none;
}
body.rj-body .blog-author h6 a:hover {
	color: var(--rj-brand);
}
body.rj-body .blog-author p {
	color: var(--rj-text-sub);
	margin: 0 0 12px;
	line-height: 1.55;
	font-size: var(--rj-fs-sm);
}
body.rj-body .author-stats {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}
body.rj-body .author-stats .stat-item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: var(--rj-bg-soft);
	padding: 4px 12px;
	border-radius: 14px;
	color: var(--rj-brand);
	font-size: var(--rj-fs-xs);
	font-weight: 500;
}
body.rj-body .author-stats .stat-item i {
	font-size: 12px;
}
body.rj-body .blog-author-social {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	align-items: center;
	gap: 8px;
}
body.rj-body .blog-author-social li {
	display: inline-flex;
}
body.rj-body .blog-author-social li a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	background: var(--rj-bg-soft);
	border-radius: 50%;
	color: var(--rj-text-sub);
	transition: background .25s ease, color .25s ease, transform .25s ease;
	font-size: 13px;
	text-decoration: none;
}
body.rj-body .blog-author-social li a:hover {
	background: var(--rj-brand);
	color: #fff;
	transform: translateY(-2px);
}
body.rj-body .blog-author-social li.email-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	background: var(--rj-bg-soft);
	border-radius: 50%;
	color: var(--rj-text-sub);
	font-size: 13px;
	cursor: default;
}
body.rj-body .blog-author-right {
	flex-shrink: 0;
}
body.rj-body .wechat-qrcode {
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--rj-border);
}
body.rj-body .wechat-qrcode img {
	width: 300px;
	height: auto;
	display: block;
}

/* 回到顶部 */
.rj-scrollup {
	position: fixed;
	right: 20px;
	bottom: 20px;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--rj-brand);
	color: #fff;
	border-radius: 50%;
	box-shadow: var(--rj-shadow-card);
	z-index: 900;
	opacity: 0;
	visibility: hidden;
	transition: opacity .25s, visibility .25s, background .2s;
}
.rj-scrollup.is-visible { opacity: 1; visibility: visible; }
.rj-scrollup:hover { background: var(--rj-brand-deep); text-decoration: none; }

/* ---------- 9.7 诗歌（诗与远方）模板 ---------- */
body.rj-body .rj-poems-section {
	padding: 28px 0 48px;
}

body.rj-body .rj-poems-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 24px;
	margin-bottom: 24px;
	border-radius: var(--rj-radius);
	background: linear-gradient(135deg, rgba(26,115,232,.08) 0%, rgba(255,106,0,.05) 100%);
	border: 1px solid var(--rj-border);
}
body.rj-body .rj-poems-head .rj-archive-title {
	font-size: var(--rj-fs-h2);
	margin: 0 0 4px;
	color: var(--rj-text);
}
body.rj-body .rj-poems-head .rj-archive-desc {
	margin: 0;
	color: var(--rj-text-sub);
	font-size: var(--rj-fs-sm);
	font-style: italic;
}
body.rj-body .rj-poems-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
body.rj-body .rj-poems-tab {
	display: inline-flex;
	align-items: center;
	height: 34px;
	padding: 0 14px;
	font-size: var(--rj-fs-sm);
	color: var(--rj-text-sub);
	background: var(--rj-bg-card);
	border: 1px solid var(--rj-border);
	border-radius: 999px;
	text-decoration: none;
	transition: color .2s, border-color .2s, background .2s;
	line-height: 1;
}
body.rj-body .rj-poems-tab:hover {
	color: var(--rj-brand);
	border-color: var(--rj-brand);
	background: var(--rj-bg-soft);
	text-decoration: none;
}
body.rj-body .rj-poems-tab.is-active {
	color: #fff;
	background: var(--rj-brand);
	border-color: var(--rj-brand);
	box-shadow: 0 2px 6px rgba(26,115,232,.25);
}

body.rj-body .rj-poems-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 16px;
}
@media (min-width: 992px) {
	body.rj-body .rj-poems-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
}
@media (max-width: 767px) {
	body.rj-body .rj-poems-grid { grid-template-columns: 1fr; gap: 14px; }
	body.rj-body .rj-poems-head { padding: 18px 16px; }
	body.rj-body .rj-poems-head .rj-archive-title { font-size: 22px; }
}

body.rj-body .rj-poem-card {
	display: flex;
	flex-direction: column;
	gap: 0;
	background: var(--rj-bg-card);
	border: 1px solid var(--rj-border);
	border-radius: var(--rj-radius);
	box-shadow: var(--rj-shadow-card);
	overflow: hidden;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
body.rj-body .rj-poem-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--rj-shadow-hover);
	border-color: rgba(26, 115, 232, .28);
}
body.rj-body .rj-poem-thumb {
	display: block;
	position: relative;
	aspect-ratio: 21 / 5;            /* 变扁，减少卡片高度 */
	max-height: 130px;
	overflow: hidden;
	line-height: 0;
	background: var(--rj-bg-soft);
}
body.rj-body .rj-poem-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
body.rj-body .rj-poem-body {
	padding: 12px 14px 12px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
	min-width: 0;
}
body.rj-body .rj-poem-title {
	margin: 0;
	font-size: 17px;
	line-height: 1.35;
	font-weight: 600;
	letter-spacing: .01em;
}
body.rj-body .rj-poem-title a {
	color: var(--rj-text);
	text-decoration: none;
	transition: color .2s ease;
}
body.rj-body .rj-poem-title a:hover { color: var(--rj-brand); text-decoration: none; }

body.rj-body .rj-poem-excerpt {
	color: var(--rj-text-sub);
	font-size: var(--rj-fs-sm);
	line-height: 1.72;
	margin: 0;
	font-family: inherit;
	background: transparent;
	padding: 0;
	border: none;
	white-space: pre-wrap;             /* 保留换行，诗歌灵魂 */
	word-break: break-word;
	flex: 1;
	/* 行数上限（配合 rj_poem_content 的 5 行截断） */
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 6;
	-webkit-box-decoration-break: clone;
	overflow: hidden;
}
body.rj-body .rj-poem-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 8px;
	font-size: var(--rj-fs-xs);
	color: var(--rj-text-muted);
	margin-top: 2px;
	padding-top: 8px;
	border-top: 1px dashed var(--rj-border);
}
body.rj-body .rj-poem-sep { opacity: .5; }
body.rj-body .rj-poem-author { font-weight: 500; color: var(--rj-text-sub); }
body.rj-body .rj-poem-tags { margin-left: auto; display: inline-flex; gap: 4px; }
body.rj-body .rj-poem-tag {
	display: inline-block;
	height: 20px;
	line-height: 18px;
	padding: 0 8px;
	border-radius: 999px;
	font-size: 11px;
	color: var(--rj-accent);
	background: var(--rj-accent-soft);
	text-decoration: none;
	border: 1px solid transparent;
	transition: border-color .2s, color .2s, background .2s;
}
body.rj-body .rj-poem-tag:hover {
	color: #fff;
	background: var(--rj-accent);
	text-decoration: none;
	border-color: var(--rj-accent);
}

/* 旧诗歌模板（.poem-card）的卡片尺寸 + 换行兜底，即使 template_include 没有命中也好用 */
body.rj-body .content-grid {
	gap: 20px;
}
body.rj-body .poem-card {
	border-radius: 10px !important;
	overflow: hidden;
}
body.rj-body .poem-card .thumbnail {
	height: 110px !important;
}
body.rj-body .poem-content {
	padding: 14px 16px !important;
}
body.rj-body .poem-title {
	font-size: 18px !important;
	margin-bottom: 8px !important;
	padding-bottom: 6px !important;
}
body.rj-body .poem-text {
	font-size: 16px !important;
	line-height: 1.75 !important;
	white-space: pre-wrap !important;        /* 关键：保留换行 */
	word-break: break-word;
	font-family: inherit !important;         /* 不强制楷体，统一字体，避免用户屏幕没装楷体时回退 */
}
body.rj-body .poem-author {
	margin-top: 8px !important;
	font-size: 13px !important;
}

body.rj-body .rj-poems-pagination { margin: 28px 0 8px; text-align: center; }
body.rj-body .rj-poems-pagination .nav-links { display: inline-flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: center; }

/* 诗歌页 100% 消除右侧空白的 CSS 兜底：
   无论 template_include 走哪份模板、侧栏判断是否生效，
   只要 <body> 带了 .rj-poems-page，就强制主列全宽、侧栏不显示。 */
body.rj-body.rj-poems-page .container > .row > [class*="col-md-"]:first-child {
	flex: 0 0 100% !important;
	max-width: 100% !important;
	width: 100% !important;
}
body.rj-body.rj-poems-page .container > .row > .sidebar,
body.rj-body.rj-poems-page .container > .row > [class*="col-md-4"].sidebar {
	display: none !important;
}
body.rj-body.rj-poems-page .rj-poems-section .container {
	max-width: 1440px !important;
}

/* 深色模式下诗歌页面在 CSS 变量基础上做的微调 + 对比度保障 */
html[data-theme="dark"] body.rj-body .rj-poems-head {
	background: linear-gradient(135deg, rgba(76,154,255,.18) 0%, rgba(255,138,51,.12) 100%);
}
html[data-theme="dark"] body.rj-body .rj-poem-card:hover {
	border-color: rgba(76, 154, 255, .38);
}
html[data-theme="dark"] body.rj-body .rj-poem-meta {
	border-top-color: rgba(255, 255, 255, .08);
}
html[data-theme="dark"] body.rj-body .rj-poem-title,
html[data-theme="dark"] body.rj-body .rj-poem-title a {
	color: var(--rj-text) !important;   /* 标题必须读得清 */
}
html[data-theme="dark"] body.rj-body .rj-poem-excerpt {
	color: #c9cdd4 !important;          /* 正文提高 2 级对比 */
}
html[data-theme="dark"] body.rj-body .rj-poem-author {
	color: #b2bac7 !important;
}
html[data-theme="dark"] body.rj-body .rj-poem-date {
	color: #98a2b3 !important;
}
html[data-theme="dark"] body.rj-body .rj-poem-head .rj-archive-desc {
	color: var(--rj-text-sub) !important;
}

/* —— 11.13 旧诗歌模板（父主题 spicepress/template/template-poems.php）深色兜底
   无论 WP 后台页面模板下拉框选的是父主题旧路径还是子主题路径，
   只要页面加载了就必须保证可读。直接覆盖旧模板内联的羊皮纸配色。—— */
html[data-theme="dark"] body.rj-body .poems,
html[data-theme="dark"] body.rj-body .poeams,
html[data-theme="dark"] body.rj-body .p-body {
	background-color: var(--rj-bg) !important;
	background-image: radial-gradient(rgba(76, 154, 255, .06) 8%, transparent 0) !important;
	color: #e5e7eb !important;              /* 正文对比度 AAA */
}
html[data-theme="dark"] body.rj-body .poeams .p-header {
	background: linear-gradient(to bottom, #1a2233, #141b27) !important;
	box-shadow: 0 1px 0 rgba(255, 255, 255, .05) !important;
	border-bottom-color: var(--rj-border) !important;
}
html[data-theme="dark"] body.rj-body .p-header a,
html[data-theme="dark"] body.rj-body .p-main a {
	color: #c9cdd4 !important;
}
html[data-theme="dark"] body.rj-body .p-header a:hover,
html[data-theme="dark"] body.rj-body .p-main a:hover {
	color: var(--rj-brand) !important;
}
html[data-theme="dark"] body.rj-body .tabs-container .tab {
	color: #c9cdd4 !important;
}
html[data-theme="dark"] body.rj-body .tabs-container .tab:hover {
	color: #ffffff !important;
	background-color: rgba(76, 154, 255, .12) !important;
}
html[data-theme="dark"] body.rj-body .tabs-container .tab.active {
	color: #ffffff !important;
}
html[data-theme="dark"] body.rj-body .tabs-container .tab.active::after {
	background-color: var(--rj-brand) !important;
}
html[data-theme="dark"] body.rj-body .poem-card {
	/* 米色羊皮纸 → 纯深色卡片；强制提对比 */
	background: linear-gradient(to bottom, #18202f, #141b27) !important;
	border-color: var(--rj-border) !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .5) !important;
}
html[data-theme="dark"] body.rj-body .poem-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, .65) !important;
	border-color: rgba(76, 154, 255, .35) !important;
}
html[data-theme="dark"] body.rj-body .poem-card .thumbnail {
	border-bottom-color: rgba(255, 255, 255, .06) !important;
}
html[data-theme="dark"] body.rj-body .poem-title {
	color: #f1f3f7 !important;            /* 从 #4a4531 改到浅灰白，+AAA */
	border-bottom-color: rgba(255, 255, 255, .12) !important;
}
html[data-theme="dark"] body.rj-body .poem-title i {
	color: #a9b0bd !important;              /* 从暗棕色改为浅蓝灰 */
}
html[data-theme="dark"] body.rj-body .poem-text {
	color: #d7dbe3 !important;              /* 从暗棕灰改为浅灰白 */
}
html[data-theme="dark"] body.rj-body .poem-author {
	color: #98a2b3 !important;              /* 棕色署名改为蓝灰，右对齐仍保留 */
}
html[data-theme="dark"] body.rj-body .p-footer {
	background: linear-gradient(to top, #1a2233, #141b27) !important;
	color: #c9cdd4 !important;
	border-top-color: var(--rj-border) !important;
}
html[data-theme="dark"] body.rj-body .poem-content {
	background: transparent !important;
}

/* ---------- 过渡断点：浏览器拉窄到 1130~992px 区间，菜单和头部紧凑化 ---------- */
@media (max-width: 1130px) and (min-width: 992px) {
	body.rj-body .rj-header-inner { gap: 16px; padding: 10px 12px; }
	body.rj-body .rj-brand { gap: 8px; }
	body.rj-body .rj-brand-text .site-title { font-size: 17px; }
	body.rj-body .rj-brand-text .site-description { font-size: 12px; }
	body.rj-body .rj-menu > li > a,
	body.rj-body .rj-menu-fallback > li > a {
		height: 34px;
		line-height: 34px !important;
		padding: 0 10px;
		font-size: 13px;
	}
	body.rj-body .rj-tools { gap: 4px; }
	body.rj-body .rj-theme-toggle,
	body.rj-body .rj-search-toggle { width: 34px; height: 34px; }
	/* 限制搜索框打开时最大宽度，避免挤掉导航菜单 */
	body.rj-body .rj-tools.is-search-open .rj-inline-search { max-width: 240px; }
}

/* ---------- 10. 响应式（组件微调，布局已在顶部统一处理） ---------- */
@media (max-width: 991px) {
	/* Header 移动端 */
	body.rj-body .rj-header-inner { flex-wrap: wrap; gap: 12px; }
	body.rj-body .rj-nav { order: 3; flex: 0 0 100%; }
	body.rj-body .rj-menu,
	body.rj-body .rj-menu-fallback { flex-direction: column !important; gap: 0 !important; }
	body.rj-body .rj-menu > li > a,
	body.rj-body .rj-menu-fallback > li > a { width: 100%; justify-content: flex-start; }
	body.rj-body .rj-menu .rj-submenu,
	body.rj-body .rj-menu .sub-menu { position: static; visibility: visible; opacity: 1; box-shadow: none; border: none; padding-left: 12px; }

	/* 移动端汉堡菜单 —— 必须用 body.rj-body 前缀保证特异性 ≥ 桌面规则 */
	body.rj-body .rj-menu-toggle { display: inline-flex !important; }
	body.rj-body .rj-search-toggle { display: inline-flex !important; }
	body.rj-body .rj-nav { display: none !important; max-height: 0; overflow: hidden; transition: max-height .3s; }
	body.rj-body .rj-nav.is-open { display: block !important; max-height: 80vh; overflow-y: auto; }

	/* 文章/卡片组件微调 */
	.rj-single-col { max-width: 100% !important; padding-right: 0 !important; }
	.rj-feed-col { padding-right: 0 !important; }
	.rj-single-aside { padding-left: 0 !important; }
	.rj-toc-sticky-wrap { display: none !important; }
	.rj-toc-mobile { display: block !important; }
	.rj-post-nav { grid-template-columns: 1fr !important; }
}

@media (max-width: 768px) {
	.rj-article { padding: 16px; }
	.rj-article-title { font-size: 22px; }
	.rj-entry-content { font-size: 15px; }
	.rj-series-card { flex: 1 1 100%; }
	.rj-brand-text .site-title { font-size: 18px; }

	/* 移动端文章列表：卡片全宽无侧栏 */
	.rj-feed { gap: 16px; }
	.rj-card { flex-direction: column; }
	.rj-card-thumb { flex: 0 0 auto; width: 100%; aspect-ratio: 16/9; }
	.rj-card-body { padding: 14px; }
}

@media (max-width: 480px) {
	.rj-btn { width: 100%; }
	.rj-card-body { padding: 14px; }
	.rj-card-title { font-size: 16px; }
	.rj-card-meta { gap: 8px; }
	.rj-card-more { margin-left: 0; width: 100%; }
	.rj-header-inner { padding: 10px 12px; }
	.rj-brand { gap: 8px; }
	.rj-brand-text .site-title { font-size: 16px; }
	.rj-brand-text .site-description { font-size: 12px; }
}

/* ---------- 11. 兼容父主题残留样式 ---------- */
/* 父主题 .post-content-area 的 fadeInDown 动画保留，避免破坏视觉 */
.rj-card { animation: rj-fadeIn .4s ease both; }
@keyframes rj-fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 父主题 navbar-custom 旧背景图覆盖（子主题已不用该结构，保险性隐藏） */
.navbar-custom { background: #fff !important; height: auto !important; border-bottom: 1px solid var(--rj-border) !important; }

/* empty 提示 */
.rj-empty { text-align: center; color: var(--rj-text-sub); padding: 40px 0; }

/* ============================================================
   12. 归档页 / 标签页 / 搜索页 共用样式
   ============================================================ */
.rj-archive-section { padding: 16px 0 40px; }
.rj-feed-col { min-width: 0; }

/* 归档头 */
.rj-archive-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding: 20px 22px;
	background: var(--rj-bg-card);
	border: 1px solid var(--rj-border);
	border-radius: var(--rj-radius);
	box-shadow: var(--rj-shadow-card);
	margin: 0px 0 24px;
}
.rj-archive-head-text {
	flex: 1;
	min-width: 200px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.rj-archive-title {
	font-size: 22px;
	font-weight: 700;
	color: var(--rj-text);
	margin: 0;
	border: none;
	padding: 0;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.rj-archive-title .fa-hashtag,
.rj-archive-title .fa-search { color: var(--rj-brand); }
.rj-archive-sub {
	font-size: var(--rj-fs-sm);
	color: var(--rj-text-sub);
	margin: 6px 0 0;
	line-height: 1.6;
}
.rj-archive-count {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 32px;
	padding: 0 14px;
	font-size: var(--rj-fs-sm);
	font-weight: 500;
	color: var(--rj-brand-deep);
	background: var(--rj-accent-soft);
	border-radius: 16px;
	white-space: nowrap;
}
.rj-archive-count i { color: var(--rj-accent); }
.rj-archive-count span { font-weight: 700; }

/* 美化数字分页 */
.rj-pagination {
	margin: 28px 0 8px;
	text-align: center;
}
.rj-pagination .nav-links {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: center;
}
.rj-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 12px;
	font-size: var(--rj-fs-sm);
	color: var(--rj-text-sub);
	background: var(--rj-bg-card);
	border: 1px solid var(--rj-border);
	border-radius: 8px;
	box-shadow: none;
	transition: background .2s, color .2s, border-color .2s;
	text-decoration: none;
}
.rj-pagination .page-numbers:hover {
	color: var(--rj-brand);
	border-color: var(--rj-brand);
	background: var(--rj-bg-soft);
	text-decoration: none;
}
.rj-pagination .page-numbers.current {
	background: var(--rj-brand);
	color: #fff;
	border-color: var(--rj-brand);
	cursor: default;
}
.rj-pagination .page-numbers.current:hover { background: var(--rj-brand); }
.rj-pagination .page-numbers.dots {
	background: transparent;
	border-color: transparent;
	color: var(--rj-text-muted);
	min-width: auto;
	padding: 0;
}
.rj-pagination .page-numbers.dots:hover { background: transparent; border-color: transparent; color: var(--rj-text-muted); }
.rj-pagination .prev,
.rj-pagination .next { font-weight: 500; }

/* 覆盖父主题 pagination 阴影 */
body.rj-body .navigation.pagination,
body.rj-body .navigation.pagination .nav-links,
body.rj-body .navigation.pagination .page-numbers,
body.rj-body .navigation.pagination .next,
body.rj-body .navigation.pagination .prev {
	box-shadow: none !important;
	-webkit-box-shadow: none !important;
}
body.rj-body .navigation.pagination .page-numbers {
	background: var(--rj-bg-card) !important;
	border: 1px solid var(--rj-border) !important;
	border-radius: 8px !important;
	padding: 0 12px !important;
	height: 36px !important;
	line-height: 34px !important;
	margin: 0 3px !important;
	color: var(--rj-text-sub) !important;
	text-decoration: none !important;
	transition: background .2s, color .2s, border-color .2s !important;
}
body.rj-body .navigation.pagination .page-numbers:hover {
	color: var(--rj-brand) !important;
	border-color: var(--rj-brand) !important;
	background: var(--rj-bg-soft) !important;
	text-decoration: none !important;
}
body.rj-body .navigation.pagination .page-numbers.current,
body.rj-body .navigation.pagination .page-numbers.current:hover {
	background: var(--rj-brand) !important;
	color: #fff !important;
	border-color: var(--rj-brand) !important;
	cursor: default !important;
}
body.rj-body .navigation.pagination .page-numbers.dots {
	background: transparent !important;
	border-color: transparent !important;
	color: var(--rj-text-muted) !important;
}
body.rj-body .navigation.pagination {
	margin: 28px 0 8px !important;
	text-align: center !important;
}
body.rj-body .navigation.pagination .nav-links {
	display: inline-flex !important;
	align-items: center !important;
	gap: 2px !important;
	flex-wrap: wrap !important;
	justify-content: center !important;
}

/* 空状态 */
.rj-empty-state {
	text-align: center;
	padding: 56px 24px;
	background: var(--rj-bg-card);
	border: 1px solid var(--rj-border);
	border-radius: var(--rj-radius);
	box-shadow: var(--rj-shadow-card);
}
.rj-empty-state > i {
	font-size: 40px;
	color: var(--rj-text-muted);
	margin-bottom: 16px;
}
.rj-empty-state h2 {
	font-size: 20px;
	font-weight: 600;
	color: var(--rj-text);
	margin: 0 0 8px;
	border: none;
	padding: 0;
}
.rj-empty-state p {
	font-size: var(--rj-fs-sm);
	color: var(--rj-text-sub);
	margin: 0 0 20px;
}

/* 搜索页：重搜框 */
.rj-search-again { margin: 0 auto 24px; max-width: 540px; }
.rj-search-again .search-form { display: flex; gap: 8px; }
.rj-search-again .search-field {
	flex: 1;
	height: 40px;
	padding: 0 14px;
	font-size: var(--rj-fs-base);
	border: 1px solid var(--rj-border);
	border-radius: 8px;
	background: var(--rj-bg-card);
}
.rj-search-again .search-field:focus {
	outline: none;
	border-color: var(--rj-brand);
	box-shadow: 0 0 0 3px rgba(26,115,232,.12);
}
.rj-search-again .search-submit {
	height: 40px;
	padding: 0 20px;
	border: none;
	background: var(--rj-brand);
	color: #fff;
	border-radius: 8px;
	box-shadow: none;
	cursor: pointer;
	font-size: var(--rj-fs-sm);
	font-weight: 500;
}
.rj-search-again .search-submit:hover { background: var(--rj-brand-deep); }

/* 热门标签建议 */
.rj-search-tags {
	margin: 0 auto 24px;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	max-width: 540px;
}
.rj-search-tags-label {
	font-size: var(--rj-fs-xs);
	color: var(--rj-text-sub);
	width: 100%;
	margin-bottom: 4px;
}
.rj-search-tag {
	display: inline-block;
	height: 28px;
	line-height: 28px;
	padding: 0 12px;
	font-size: var(--rj-fs-xs);
	color: var(--rj-text-sub);
	background: var(--rj-bg-soft);
	border-radius: 14px;
}
.rj-search-tag:hover { background: var(--rj-brand); color: #fff; text-decoration: none; }

/* ---------- 归档页响应式 ---------- */
@media (max-width: 768px) {
	.rj-archive-head { padding: 16px; }
	.rj-archive-title { font-size: 18px; }
	.rj-archive-count { font-size: var(--rj-fs-xs); }
	.rj-pagination .page-numbers { min-width: 32px; height: 32px; padding: 0 8px; }
	.rj-empty-state { padding: 40px 16px; }
	.rj-empty-state > i { font-size: 32px; }
	.rj-empty-state h2 { font-size: 18px; }
}

@media (max-width: 480px) {
	.rj-archive-head { flex-direction: column; align-items: flex-start; }
	.rj-archive-count { align-self: flex-start; }
	.rj-pagination .prev span,
	.rj-pagination .next span { display: none; } /* 移动端只留箭头，节省空间 */
}

/* ============================================================
   13. 404 错误页样式
   ============================================================ */
.rj-404-section { padding: 24px 0 48px; }
.rj-404-card {
	max-width: 680px;
	margin: 0 auto 32px;
	text-align: center;
	background: var(--rj-bg-card);
	border: 1px solid var(--rj-border);
	border-radius: var(--rj-radius);
	box-shadow: var(--rj-shadow-card);
	padding: 48px 28px 40px;
}
.rj-404-big {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 80px;
	font-weight: 800;
	line-height: 1;
	color: var(--rj-brand);
	letter-spacing: 2px;
}
.rj-404-big i {
	color: var(--rj-accent);
	font-size: 64px;
	margin: 0 4px;
	animation: rj-shake 1.2s ease-in-out infinite;
}
@keyframes rj-shake {
	0%, 100% { transform: rotate(0deg); }
	25%      { transform: rotate(-8deg); }
	75%      { transform: rotate(8deg); }
}
.rj-404-title {
	font-size: 26px;
	font-weight: 700;
	color: var(--rj-text);
	margin: 20px 0 10px;
	border: none;
	padding: 0;
}
.rj-404-desc {
	font-size: var(--rj-fs-sm);
	color: var(--rj-text-sub);
	line-height: 1.7;
	margin: 0 auto 24px;
	max-width: 480px;
}

/* 404 搜索框 */
.rj-404-search { margin: 0 auto 24px; max-width: 480px; }
.rj-404-search .search-form { display: flex; gap: 8px; }
.rj-404-search .search-field {
	flex: 1;
	height: 40px;
	padding: 0 14px;
	font-size: var(--rj-fs-base);
	border: 1px solid var(--rj-border);
	border-radius: 8px;
	background: var(--rj-bg-card);
}
.rj-404-search .search-field:focus {
	outline: none;
	border-color: var(--rj-brand);
	box-shadow: 0 0 0 3px rgba(26,115,232,.12);
}
.rj-404-search .search-submit {
	height: 40px;
	padding: 0 20px;
	border: none;
	background: var(--rj-brand);
	color: #fff;
	border-radius: 8px;
	box-shadow: none;
	cursor: pointer;
	font-size: var(--rj-fs-sm);
	font-weight: 500;
}
.rj-404-search .search-submit:hover { background: var(--rj-brand-deep); }

/* 404 热门标签 */
.rj-404-tags {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0 auto 24px;
	max-width: 480px;
}
.rj-404-tags-label {
	font-size: var(--rj-fs-xs);
	color: var(--rj-text-sub);
	width: 100%;
	margin-bottom: 4px;
}
.rj-404-tag {
	display: inline-block;
	height: 28px;
	line-height: 28px;
	padding: 0 12px;
	font-size: var(--rj-fs-xs);
	color: var(--rj-text-sub);
	background: var(--rj-bg-soft);
	border-radius: 14px;
}
.rj-404-tag:hover { background: var(--rj-brand); color: #fff; text-decoration: none; }

/* 404 操作按钮 */
.rj-404-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
}

/* 404 推荐文章 */
.rj-404-recommend { margin-top: 16px; }
.rj-404-feed {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}
.rj-404-feed .rj-card { animation: none; }

/* ============================================================
   14. 单页（page.php）样式
   ============================================================ */
.rj-page-section { padding: 16px 0 40px; }
.rj-page {
	background: var(--rj-bg-card);
	border: 1px solid var(--rj-border);
	border-radius: var(--rj-radius);
	box-shadow: var(--rj-shadow-card);
	padding: 28px 32px;
}
.rj-page-head {
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--rj-border);
}
.rj-page-title {
	font-size: 28px;
	font-weight: 700;
	color: var(--rj-text);
	margin: 0 0 10px;
	border: none;
	padding: 0;
}
.rj-page-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	font-size: var(--rj-fs-xs);
	color: var(--rj-text-sub);
}
.rj-page-meta .rj-edit-link a { color: var(--rj-brand); }
.rj-page-meta .rj-edit-link a:hover { text-decoration: underline; }
.rj-page-thumb { margin: 0 0 20px; }
.rj-page-thumb img { width: 100%; border-radius: 8px; }
.rj-page-content { max-width: none; margin: 0; }

/* 404 / page 响应式 */
@media (max-width: 768px) {
	.rj-404-card { padding: 32px 18px 28px; }
	.rj-404-big { font-size: 64px; }
	.rj-404-big i { font-size: 52px; }
	.rj-404-title { font-size: 22px; }
	.rj-404-feed { grid-template-columns: 1fr; }
	.rj-page { padding: 18px; }
	.rj-page-title { font-size: 22px; }
	.rj-page-content { font-size: 15px; }
}

@media (max-width: 480px) {
	.rj-404-actions { flex-direction: column; align-items: stretch; }
	.rj-404-actions .rj-btn { width: 100%; }
}

/* ============================================================
   15. 评论列表与表单样式
   ============================================================ */
.rj-comments-section {
	margin: 28px 0 0;
	padding: 20px 22px;
	background: var(--rj-bg-card);
	border: 1px solid var(--rj-border);
	border-radius: var(--rj-radius);
	box-shadow: var(--rj-shadow-card);
}
.rj-comments-head { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--rj-border); }
.rj-comments-title {
	font-size: 18px;
	font-weight: 600;
	color: var(--rj-text);
	margin: 0;
	border: none;
	padding: 0;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.rj-comments-title i { color: var(--rj-brand); }

.rj-comments-list { list-style: none; padding: 0; margin: 0; }
.rj-comments-list .children { list-style: none; padding-left: 0; margin: 16px 0 0; }

/* 单条评论 */
.rj-comment-item { margin: 12px 0; }
.rj-comment {
	display: flex;
	gap: 12px;
	padding: 14px;
	background: var(--rj-bg-soft);
	border-radius: 8px;
	border: 1px solid transparent;
	transition: border-color .2s;
}
.rj-comment:hover { border-color: var(--rj-border); }
.rj-comment-avatar { flex: 0 0 48px; }
.rj-comment-avatar img { border-radius: 50%; display: block; width: 48px; height: 48px; }
.rj-comment-body { flex: 1; min-width: 0; }

.rj-comment-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin-bottom: 8px;
}
.rj-comment-author { font-size: 14px; font-weight: 600; color: var(--rj-text); }
.rj-comment-author a { color: var(--rj-text); }
.rj-comment-author a:hover { color: var(--rj-brand); text-decoration: none; }
.rj-comment-time { font-size: var(--rj-fs-xs); color: var(--rj-text-muted); display: inline-flex; align-items: center; gap: 4px; }

.rj-comment-content { font-size: var(--rj-fs-sm); color: var(--rj-text); line-height: 1.7; word-wrap: break-word; }
.rj-comment-content p { margin: 6px 0; color: var(--rj-text); }
.rj-comment-awaiting {
	display: inline-block;
	margin-bottom: 6px;
	font-size: var(--rj-fs-xs);
	color: var(--rj-accent);
	background: var(--rj-accent-soft);
	padding: 2px 8px;
	border-radius: 4px;
	font-style: normal;
}
.rj-comment-edit a { font-size: var(--rj-fs-xs); color: var(--rj-text-sub); }
.rj-comment-edit a:hover { color: var(--rj-brand); text-decoration: underline; }
.rj-comment-reply { margin-top: 8px; }
.rj-comment-reply a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	height: 26px;
	padding: 0 10px;
	font-size: var(--rj-fs-xs);
	color: var(--rj-brand);
	background: transparent;
	border: 1px solid var(--rj-border);
	border-radius: 6px;
	box-shadow: none;
}
.rj-comment-reply a:hover { background: var(--rj-bg-card); border-color: var(--rj-brand); text-decoration: none; }

/* 嵌套评论缩进（桌面端缩进，移动端左侧竖线） */
.rj-comments-list .children .rj-comment-item { padding-left: 0; }
.rj-comments-list .children .rj-comment { background: var(--rj-bg-card); border-left: 3px solid var(--rj-brand); }

.rj-comment-pagination { margin-top: 16px; }
.rj-comment-pagination .nav-links { gap: 8px; }
.rj-comment-pagination .page-numbers { height: 32px; min-width: 32px; padding: 0 10px; font-size: var(--rj-fs-xs); }
.rj-comment-pagination a { text-decoration: none; }

.rj-comments-closed {
	margin: 24px 0 0;
	padding: 14px;
	text-align: center;
	font-size: var(--rj-fs-sm);
	color: var(--rj-text-sub);
	background: var(--rj-bg-soft);
	border-radius: 8px;
}

/* 评论表单 */
.rj-comment-form {
	margin-top: 28px;
	padding: 22px;
	background: var(--rj-bg-card);
	border: 1px solid var(--rj-border);
	border-radius: var(--rj-radius);
	box-shadow: var(--rj-shadow-card);
}
.rj-comment-form .comment-reply-title {
	font-size: 18px;
	font-weight: 600;
	color: var(--rj-text);
	margin: 0 0 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid var(--rj-border);
	display: flex;
	align-items: center;
	gap: 8px;
}
.rj-comment-form .comment-reply-title i { color: var(--rj-brand); }
.rj-comment-form .comment-reply-title small {
	margin-left: auto;
	font-size: var(--rj-fs-xs);
	font-weight: 400;
}
.rj-comment-form .comment-reply-title small a { color: var(--rj-text-sub); }
.rj-comment-form .comment-reply-title small a:hover { color: var(--rj-brand); text-decoration: none; }

.rj-comment-notes { font-size: var(--rj-fs-xs); color: var(--rj-text-sub); margin: 0 0 16px; }
.rj-comment-form-field { margin: 0 0 12px; }
.rj-comment-form-textarea { margin: 0 0 12px; }

/* 输入框（统一 40px 高、无阴影、圆角） */
.rj-input {
	width: 100%;
	height: 40px;
	padding: 0 14px;
	font-size: var(--rj-fs-sm);
	color: var(--rj-text);
	background: var(--rj-bg-card);
	border: 1px solid var(--rj-border);
	border-radius: 8px;
	box-shadow: none;
	transition: border-color .2s, box-shadow .2s;
}
.rj-input:focus {
	outline: none;
	border-color: var(--rj-brand);
	box-shadow: 0 0 0 3px rgba(26,115,232,.12);
}
.rj-textarea {
	width: 100%;
	padding: 12px 14px;
	font-size: var(--rj-fs-sm);
	color: var(--rj-text);
	background: var(--rj-bg-card);
	border: 1px solid var(--rj-border);
	border-radius: 8px;
	box-shadow: none;
	resize: vertical;
	min-height: 120px;
	line-height: 1.6;
	transition: border-color .2s, box-shadow .2s;
}
.rj-textarea:focus {
	outline: none;
	border-color: var(--rj-brand);
	box-shadow: 0 0 0 3px rgba(26,115,232,.12);
}

/* 桌面端：昵称/邮箱/网站三列 */
@media (min-width: 768px) {
	.rj-comment-form .rj-field-author,
	.rj-comment-form .rj-field-email,
	.rj-comment-form .rj-field-url {
		display: inline-block;
		width: calc(33.333% - 18px);
		margin-right: 12px;
		vertical-align: top;
	}
	.rj-comment-form .rj-field-url { margin-right: 0; }
}

.rj-submit-btn {
	margin-top: 8px;
	width: auto;
	min-width: 120px;
}

/* cookie 同意勾选（WP 默认会输出）样式整理 */
.rj-comment-form .comment-form-cookies-consent {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: var(--rj-fs-xs);
	color: var(--rj-text-sub);
	margin: 0 0 12px;
}
.rj-comment-form .comment-form-cookies-consent input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: var(--rj-brand);
}

/* 评论响应式 */
@media (max-width: 768px) {
	.rj-comments-section { padding: 16px; }
	.rj-comment { padding: 12px; }
	.rj-comment-avatar { flex-basis: 40px; }
	.rj-comment-avatar img { width: 40px; height: 40px; }
	.rj-comment-form { padding: 16px; }

	/* 作者卡移动端堆叠 */
	body.rj-body .blog-author-inner {
		flex-direction: column;
		text-align: center;
		padding: 16px 18px;
		gap: 16px;
	}
	body.rj-body .blog-author-inner::before {
		left: 50%;
		top: 0;
		right: 0;
		bottom: auto;
		width: 100%;
		height: 4px;
		border-radius: 4px 4px 0 0;
		transform: translateX(-50%);
	}
	body.rj-body .author-info { text-align: center; }
	body.rj-body .author-stats { justify-content: center; }
	body.rj-body .wechat-qrcode img { width: 100px; }
}

@media (max-width: 480px) {
	.rj-comment { flex-direction: column; gap: 8px; }
	.rj-comment-avatar { flex-basis: auto; }
	.rj-comment-avatar img { width: 36px; height: 36px; }
	.rj-comment-head { flex-direction: column; align-items: flex-start; gap: 4px; }
	.rj-submit-btn { width: 100%; }
}

/* ================================================================
   11. 深色模式补丁（data-theme="dark" 时生效）
   选择器优先级：html[data-theme="dark"] body.rj-body — 与 child.css 原有
   body.rj-body 平级或略高，保证只覆盖颜色不影响结构。
   仅补写直接硬编码颜色的 30+ 处位置，不重复覆盖 var(--rj-*) 的地方。
   ================================================================ */
html[data-theme="dark"] body.rj-body {
	color-scheme: dark;
}

/* —— 11.1 Header 渐变与搜索展开 —— */
html[data-theme="dark"] body.rj-body .rj-site-header {
	background: linear-gradient(180deg, #141b27 0%, #0f1622 100%);
	box-shadow: 0 1px 0 rgba(255, 255, 255, .04);
}
html[data-theme="dark"] body.rj-body .rj-site-header::after {
	opacity: .45;
}
html[data-theme="dark"] body.rj-body.is-scrolled .rj-site-header {
	background: linear-gradient(180deg, #10161f 0%, #0b111a 100%);
}
html[data-theme="dark"] body.rj-body .rj-search-input {
	background: var(--rj-bg);
	border-color: var(--rj-border);
}
html[data-theme="dark"] body.rj-body .rj-search-input:focus {
	background: var(--rj-bg-card);
	border-color: var(--rj-brand);
}
html[data-theme="dark"] body.rj-body .site-title a,
html[data-theme="dark"] body.rj-body .rj-brand-text .site-title a {
	color: var(--rj-text);
}

/* —— 11.2 白色硬编码背景的区块 —— */
html[data-theme="dark"] body.rj-body .navbar-custom,
html[data-theme="dark"] body.rj-body .breadcrumb-area,
html[data-theme="dark"] body.rj-body .archive-head,
html[data-theme="dark"] body.rj-body .blog-section .blog-lg,
html[data-theme="dark"] body.rj-body .blog-section .blog-sm,
html[data-theme="dark"] body.rj-body .blog-detail-section,
html[data-theme="dark"] body.rj-body .page-section {
	background-color: transparent !important;    /* 跟随 body */
}
html[data-theme="dark"] body.rj-body .navbar-custom {
	border-bottom-color: var(--rj-border) !important;
}
html[data-theme="dark"] body.rj-body .stiky-header {
	background: var(--rj-bg-card) !important;
	border-bottom-color: var(--rj-border) !important;
	box-shadow: none !important;
	min-height: 0 !important;
}
/* 分页块上误叠加的 .stiky-header 会把父主题的 min-height:70px 强加到分页容器上，
   造成页码按钮下方多出一条深色"填充带"。清掉所有非头部使用此 class 的副作用。 */
html[data-theme="dark"] body.rj-body .navigation.pagination.stiky-header,
html[data-theme="dark"] body.rj-body .navigation.stiky-header {
	min-height: 0 !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	z-index: auto !important;
	box-shadow: none !important;
	background: transparent !important;
	border-bottom: none !important;
}
body.rj-body .navigation.pagination.stiky-header,
body.rj-body .navigation.stiky-header {
	min-height: 0 !important;
	top: auto !important;
	left: auto !important;
	right: auto !important;
	z-index: auto !important;
	box-shadow: none !important;
	background: transparent !important;
	border-bottom: none !important;
}

/* —— 11.3 页脚：浅色模式下本身就是深色，微调让对比度合理 —— */
html[data-theme="dark"] body.rj-body .rj-footer {
	background: #080b11;
	color: #c5cbd3;
	border-top: 1px solid var(--rj-border);
}
html[data-theme="dark"] body.rj-body .rj-footer a { color: var(--rj-text); }
html[data-theme="dark"] body.rj-body .rj-footer .widget { color: #c5cbd3; }
html[data-theme="dark"] body.rj-body .rj-footer .widget-title {
	color: var(--rj-text);
	border-bottom-color: rgba(255, 255, 255, .08);
}
html[data-theme="dark"] body.rj-body .rj-footer-info {
	color: var(--rj-text-sub);
	border-top-color: rgba(255, 255, 255, .06);
}
html[data-theme="dark"] body.rj-body .rj-footer-extra a { color: var(--rj-text-sub); }

/* —— 11.4 代码块：本身是暗色，提升边框/对比度 —— */
html[data-theme="dark"] body.rj-body .rj-code-wrap {
	background: #0a1020;
	box-shadow: 0 4px 20px rgba(0, 0, 0, .5);
}
html[data-theme="dark"] body.rj-body .rj-code-wrap pre {
	background: #0a1020;
	color: #e4e7ed;
}
/* 文章表格 hover 行高亮：深色下用浅蓝半透明 */
html[data-theme="dark"] body.rj-body .rj-entry-content table tbody tr:hover {
	background: rgba(76, 154, 255, .10);
}
html[data-theme="dark"] body.rj-body .rj-code-ln {
	color: #4d5b75;
	background: rgba(255, 255, 255, .018);
	border-right-color: rgba(148, 163, 184, .1);
}

/* —— 11.5 Lightbox 蒙层：本来就黑，微调更贴合深底 —— */
html[data-theme="dark"] body.rj-body .rj-lightbox-mask {
	background: rgba(2, 4, 9, .92);
}
html[data-theme="dark"] body.rj-body .rj-lb-img {
	box-shadow: 0 18px 60px rgba(0, 0, 0, .75);
}

/* —— 11.6 表单输入（搜索框 / 评论 / 登录） —— */
html[data-theme="dark"] body.rj-body input[type="text"],
html[data-theme="dark"] body.rj-body input[type="search"],
html[data-theme="dark"] body.rj-body input[type="email"],
html[data-theme="dark"] body.rj-body input[type="url"],
html[data-theme="dark"] body.rj-body input[type="password"],
html[data-theme="dark"] body.rj-body textarea,
html[data-theme="dark"] body.rj-body select {
	background: var(--rj-bg-soft);
	color: var(--rj-text);
	border-color: var(--rj-border);
}
html[data-theme="dark"] body.rj-body input::placeholder,
html[data-theme="dark"] body.rj-body textarea::placeholder {
	color: var(--rj-text-muted);
}
html[data-theme="dark"] body.rj-body input:focus,
html[data-theme="dark"] body.rj-body textarea:focus,
html[data-theme="dark"] body.rj-body select:focus {
	outline: none;
	border-color: var(--rj-brand);
	box-shadow: 0 0 0 2px rgba(76, 154, 255, .18);
	background: var(--rj-bg-card);
}

/* —— 11.7 父主题侧栏小工具 / 日历 / 标签云等兜底 —— */
html[data-theme="dark"] body.rj-body .sidebar .widget {
	background: var(--rj-bg-card);
	border-color: var(--rj-border);
	box-shadow: var(--rj-shadow-card);
}
html[data-theme="dark"] body.rj-body .sidebar .widget-title {
	color: var(--rj-text);
	border-bottom-color: var(--rj-border);
}
html[data-theme="dark"] body.rj-body .sidebar .widget a,
html[data-theme="dark"] body.rj-body .sidebar .widget li,
html[data-theme="dark"] body.rj-body .sidebar .widget p,
html[data-theme="dark"] body.rj-body .sidebar .widget span {
	color: var(--rj-text-sub);
}
html[data-theme="dark"] body.rj-body .sidebar .widget a:hover {
	color: var(--rj-brand);
}
html[data-theme="dark"] body.rj-body .sidebar .widget_calendar caption,
html[data-theme="dark"] body.rj-body .sidebar .widget_calendar th,
html[data-theme="dark"] body.rj-body .sidebar .widget_calendar td#today {
	color: var(--rj-text);
	background: var(--rj-bg-soft);
	border-color: var(--rj-border);
}
html[data-theme="dark"] body.rj-body .sidebar .widget_calendar table,
html[data-theme="dark"] body.rj-body .sidebar .widget_calendar th,
html[data-theme="dark"] body.rj-body .sidebar .widget_calendar td {
	border-color: var(--rj-border);
	color: var(--rj-text-sub);
}
html[data-theme="dark"] body.rj-body .sidebar .widget_tag_cloud .tagcloud a:hover,
html[data-theme="dark"] body.rj-body .sidebar .widget_tag_cloud .wp-block-tag-cloud a:hover {
	color: var(--rj-brand);
}

/* —— 11.8 评论区 —— */
html[data-theme="dark"] body.rj-body .comment-respond,
html[data-theme="dark"] body.rj-body .rj-comment {
	border-color: var(--rj-border);
}
html[data-theme="dark"] body.rj-body .comment-author .fn a,
html[data-theme="dark"] body.rj-body .comment-metadata a,
html[data-theme="dark"] body.rj-body .comment-content,
html[data-theme="dark"] body.rj-body .reply a {
	color: var(--rj-text-sub);
}
html[data-theme="dark"] body.rj-body .comment-content p { color: var(--rj-text); }

/* —— 11.9 归档头 / 面包屑 —— */
html[data-theme="dark"] body.rj-body .rj-archive-head {
	background: linear-gradient(135deg, rgba(76, 154, 255, .12) 0%, rgba(255, 138, 51, .08) 100%);
	border-bottom-color: var(--rj-border);
}
html[data-theme="dark"] body.rj-body .breadcrumb-area {
	color: var(--rj-text-sub);
}

/* —— 11.10 父主题大量元素颜色硬编码的全局兜底 —— */
/* 只匹配那些在父主题 spicepress/style.css 中写死了浅底/深字，且变量未覆盖的地方。
   采用低特异性写法，避免误伤。 */
html[data-theme="dark"] body.rj-body h1,
html[data-theme="dark"] body.rj-body h2,
html[data-theme="dark"] body.rj-body h3,
html[data-theme="dark"] body.rj-body h4,
html[data-theme="dark"] body.rj-body h5,
html[data-theme="dark"] body.rj-body h6 { color: var(--rj-text); }
html[data-theme="dark"] body.rj-body p,
html[data-theme="dark"] body.rj-body li,
html[data-theme="dark"] body.rj-body td,
html[data-theme="dark"] body.rj-body th,
html[data-theme="dark"] body.rj-body dl,
html[data-theme="dark"] body.rj-body dt,
html[data-theme="dark"] body.rj-body dd,
html[data-theme="dark"] body.rj-body blockquote,
html[data-theme="dark"] body.rj-body cite,
html[data-theme="dark"] body.rj-body address {
	color: inherit;
}
/* 父主题 body 默认背景 #f5f5f5，深色下需要彻底清掉 */
html[data-theme="dark"] body { background: var(--rj-bg) !important; }
html[data-theme="dark"] body.rj-body blockquote {
	border-left-color: var(--rj-brand);
	background: var(--rj-bg-soft);
	color: var(--rj-text-sub);
}
html[data-theme="dark"] body.rj-body pre,
html[data-theme="dark"] body.rj-body code,
html[data-theme="dark"] body.rj-body kbd,
html[data-theme="dark"] body.rj-body samp,
html[data-theme="dark"] body.rj-body tt {
	color: var(--rj-text);
	background: transparent;
}
/* 父主题表格默认白底深字 */
html[data-theme="dark"] body.rj-body table,
html[data-theme="dark"] body.rj-body th,
html[data-theme="dark"] body.rj-body td,
html[data-theme="dark"] body.rj-body thead,
html[data-theme="dark"] body.rj-body tbody {
	border-color: var(--rj-border);
}
html[data-theme="dark"] body.rj-body thead { background: var(--rj-bg-soft); }
html[data-theme="dark"] body.rj-body tr:nth-child(even) { background: rgba(255, 255, 255, .015); }

/* —— 11.11 水平分隔线 / 详情总结 —— */
html[data-theme="dark"] body.rj-body hr,
html[data-theme="dark"] body.rj-body .entry-content hr {
	border-top-color: var(--rj-border);
	background: var(--rj-border);
}
html[data-theme="dark"] body.rj-body details {
	background: var(--rj-bg-soft);
	border-color: var(--rj-border);
}
html[data-theme="dark"] body.rj-body summary { color: var(--rj-text); }

/* —— 11.12 选择文本高亮色 + 滚动条（仅 webkit） —— */
html[data-theme="dark"] ::selection {
	background: rgba(76, 154, 255, .35);
	color: #fff;
}
html[data-theme="dark"] body.rj-body::-webkit-scrollbar,
html[data-theme="dark"] *::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}
html[data-theme="dark"] body.rj-body::-webkit-scrollbar-track,
html[data-theme="dark"] *::-webkit-scrollbar-track {
	background: #0b0f17;
}
html[data-theme="dark"] body.rj-body::-webkit-scrollbar-thumb,
html[data-theme="dark"] *::-webkit-scrollbar-thumb {
	background: #2a3344;
	border-radius: 8px;
}
html[data-theme="dark"] body.rj-body::-webkit-scrollbar-thumb:hover,
html[data-theme="dark"] *::-webkit-scrollbar-thumb:hover {
	background: #3a465c;
}

