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

/* ---------- 0. 重置 / 基础 ---------- */
*,*::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;
}

.rj-wrapper { background: var(--rj-bg) !important; box-shadow: none !important; }

a { color: var(--rj-brand); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--rj-brand-deep); text-decoration: underline; }

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

.container { max-width: var(--rj-container-w); }

/* 让父主题标题样式更克制 */
.rj-body h1, .rj-body h2, .rj-body h3, .rj-body h4 {
	color: var(--rj-text);
}
.rj-body h1 { font-size: var(--rj-fs-h1); border-bottom: 2px solid var(--rj-brand); padding-bottom: 8px; margin-top: 36px; }
.rj-body h2 { font-size: var(--rj-fs-h2); border-left: 3px solid var(--rj-brand); padding-left: 12px; margin-top: 28px; }
.rj-body h3 { font-size: var(--rj-fs-h3); 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);
}
.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: #fff;
	border-bottom: 1px solid var(--rj-border);
	box-shadow: 0 1px 0 rgba(17,24,39,.04);
	transition: box-shadow .25s ease, transform .25s ease;
}
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; }
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-search-toggle,
body.rj-body .rj-menu-toggle {
	display: none;
	width: 36px;
	height: 36px;
	background: transparent;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	box-shadow: none;
}
body.rj-body .rj-menu-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--rj-text);
	border-radius: 2px;
	position: relative;
	transition: transform .2s, opacity .2s;
}
body.rj-body .rj-menu-toggle span + span { margin-top: 3px; }
body.rj-body .rj-search-toggle { font-size: 16px; color: var(--rj-text); }

/* 搜索展开框 */
body.rj-body .rj-search-box {
	max-height: 0;
	overflow: hidden;
	background: #fff;
	border-bottom: 1px solid transparent;
	transition: max-height .25s ease, border-color .25s ease, padding .25s ease;
}
body.rj-body .rj-search-box.is-open {
	max-height: 120px;
	border-bottom: 1px solid var(--rj-border);
	padding: 12px 0;
}
body.rj-body .rj-search-box .search-form { display: flex; gap: 8px; max-width: 600px; margin: 0 auto; }
body.rj-body .rj-search-box .search-field {
	flex: 1;
	height: 36px;
	padding: 0 12px;
	border: 1px solid var(--rj-border);
	border-radius: 8px;
}
body.rj-body .rj-search-box .search-submit {
	height: 36px;
	padding: 0 16px;
	border: none;
	background: var(--rj-brand);
	color: #fff;
	border-radius: 8px;
	box-shadow: none;
	cursor: pointer;
}

/* 阅读进度条 */
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: 32px 0 16px;
}
.rj-section-title {
	font-size: 20px;
	font-weight: 600;
	margin: 0;
	color: var(--rj-text);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: none;
	padding: 0;
}
.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-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
.rj-series-row {
	display: flex;
	gap: 16px;
	min-width: min-content;
}
.rj-series-card {
	flex: 0 0 280px;
	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; }

.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); }

/* 左图：固定宽度，右侧自适应 */
.rj-card-thumb {
	display: flex;
	flex: 0 0 220px;
	max-width: 220px;
	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-single-col { max-width: 820px; }
.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: var(--rj-content-w);
	margin: 0 auto;
	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; }
.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-code-wrap { position: relative; margin: 18px 0; }
.rj-code-wrap pre {
	background: #1e293b;
	color: #e2e8f0;
	padding: 16px 16px 16px 16px;
	border-radius: 8px;
	overflow-x: auto;
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
	font-size: 14px;
	line-height: 1.6;
	margin: 0;
}
.rj-code-wrap pre code {
	background: transparent;
	color: inherit;
	padding: 0;
	font-size: inherit;
	white-space: pre;
}
.rj-copy-btn {
	position: absolute;
	top: 8px;
	right: 8px;
	height: 28px;
	padding: 0 10px;
	font-size: 12px;
	background: rgba(255,255,255,.12);
	color: #e2e8f0;
	border: 1px solid rgba(255,255,255,.2);
	border-radius: 6px;
	cursor: pointer;
	box-shadow: none;
	z-index: 1;
	transition: background .2s;
}
.rj-copy-btn:hover { background: rgba(255,255,255,.22); }
.rj-copy-btn.is-copied { background: var(--rj-brand); border-color: var(--rj-brand); }

/* 文章标签 */
.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: relative;
	min-height: 60px;
	margin-bottom: 20px;
}
.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: -.2px;
}
.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); }

/* 侧栏标签云 */
.sidebar .widget_tag_cloud .tagcloud { display: flex; flex-wrap: wrap; gap: 6px; }
.sidebar .widget_tag_cloud .tagcloud a {
	display: inline-block;
	height: 26px;
	line-height: 26px;
	padding: 0 10px;
	font-size: var(--rj-fs-xs) !important;
	color: var(--rj-text-sub);
	background: var(--rj-bg-soft);
	border-radius: 13px;
}
.sidebar .widget_tag_cloud .tagcloud a:hover { background: var(--rj-brand); color: #fff; 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; }
.rj-footer-info { text-align: center; font-size: var(--rj-fs-xs); 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: 12px;
	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: all .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: 120px;
	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; }

/* ---------- 10. 响应式 ---------- */
@media (max-width: 991px) {
	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; }

	/* 移动端汉堡菜单 */
	.rj-menu-toggle { display: inline-flex; }
	.rj-search-toggle { display: inline-flex; }
	.rj-nav { display: none; max-height: 0; overflow: hidden; transition: max-height .3s; }
	.rj-nav.is-open { display: block; max-height: 80vh; overflow-y: auto; }

	.rj-single-col { max-width: 100%; }
	.rj-single-aside { padding-left: 12px; }
	.rj-toc-sticky-wrap { display: none; }
	.rj-toc-mobile { display: block; }
	.rj-post-nav { grid-template-columns: 1fr; }

	/* 容器适配：移动端全宽 */
	.container { padding: 0 12px; }
	.rj-feed-col, .sidebar { padding: 0; margin: 0; }
	.rj-feed-col { margin-bottom: 24px; }

	/* 文章列 + 侧栏全宽堆叠 */
	.rj-blog-section .row { flex-direction: column; }
	.rj-blog-section .col-md-9,
	.rj-blog-section .col-md-3,
	.rj-blog-section .col-sm-7,
	.rj-blog-section .col-sm-5,
	.rj-blog-section .col-xs-12 {
		width: 100% !important;
		float: none !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: 0 0 240px; }
	.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-left: 4px solid var(--rj-brand);
	border-radius: var(--rj-radius);
	box-shadow: var(--rj-shadow-card);
	margin: 16px 0 24px;
}
.rj-archive-head-text { flex: 1; min-width: 200px; }
.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; }

/* 空状态 */
.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: var(--rj-content-w); margin: 0 auto; }

/* 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% - 8px);
		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%; }
}

