/* ============================================================
   优设 AI 导航式首页样式（仅 body.home）
   ============================================================ */

/* ---------- 首页顶栏覆盖（白底黑字） ---------- */
body.home .lx-header {
	position: sticky;
	background: #ffffff;
	box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}
/* 首页滚动后毛玻璃（覆盖上面的白底） */
body.home .lx-header.is-scrolled {
	-webkit-backdrop-filter: saturate(180%) blur(6px);
	backdrop-filter: saturate(180%) blur(6px);
	background: rgba(255, 255, 255, 0.9);
}
body.home[data-theme="dark"] .lx-header.is-scrolled {
	background: rgba(30, 32, 43, 0.9);
}
/* 头部布局与字号已统一到 main.css 默认值（logo 20px / 导航 15px），此处不再覆盖 */
body.home .lx-nav a:hover { background: #fff3ec; color: #ff6000; }
body.home .lx-nav .current-menu-item > a { background: #fff3ec; color: #ff6000; }
body.home .lx-header__tools .lx-btn--icon { color: #3c3c3c; }
body.home .lx-header__tools .lx-btn--icon:hover { color: #ff6000; }
body.home .lx-header__tools .lx-btn--ghost { color: #3c3c3c; }
body.home .lx-header__tools .lx-btn--ghost:hover { color: #ff6000; }
body.home .lx-header__tools .lx-btn--primary {
	background: #ff6000;
	border-color: #ff6000;
	color: #909399;
}
body.home .lx-header__tools .lx-btn--primary:hover { background: #e65500; color: #909399; }
body.home .lx-searchbar .lx-search__input { border-color: #e4e6ee; }

/* ---------- 首页主背景 ---------- */
body.home {
	background: #f6f7f9;
}
body.home .lx-main {
	background: transparent;
}

/* ---------- 布局 ---------- */
/* .ud-inner 不自带 padding，由内部元素（.ud-sidebar / .ud-content）各自承担 */
.ud-inner {
	max-width: 1920px;
	margin: 0 auto;
	display: flex;
	gap: 30px;
}

/* 单栏页面变体（详情 / 搜索 / 404 等）：覆盖 flex 为块级并自带动态留白 */
.ud-inner--narrow {
	display: block;
	max-width: 848px;
	padding: 24px 16px 60px;
}
.ud-inner--wide {
	display: block;
	max-width: 1232px;
	padding: 24px 16px 60px;
}
.ud-inner--notice {
	display: block;
	max-width: 632px;
	padding: 40px 16px 60px;
	text-align: center;
}

@media (max-width: 799px) {
	.ud-inner--narrow { padding: 16px 12px 40px; }
	.ud-inner--wide { padding: 16px 12px 40px; }
}

/* ---------- 左侧分类栏 ---------- */
/* 自身 sticky + 内部滚动：分类过多时侧栏独立滚动，不撑长页面 */
.ud-sidebar {
	position: sticky;
	top: 84px;
	align-self: flex-start;
	width: 196px;
	flex: 0 0 196px;
	max-height: calc(100vh - 100px);
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 0px 0 0px 27px;
	/* 滚动条显示在左侧：容器 rtl + 内部 ltr 恢复 */
	direction: rtl;
	scrollbar-width: thin;
	scrollbar-color: rgba(0, 0, 0, 0.08) transparent;
}
.ud-sidebar-nav {
	direction: ltr;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
/* 淡灰色细滚动条 */
.ud-sidebar::-webkit-scrollbar { width: 4px; }
.ud-sidebar::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.08); border-radius: 2px; }
.ud-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.15); }
.ud-sidebar::-webkit-scrollbar-track { background: transparent; }
body[data-theme="dark"] .ud-sidebar { scrollbar-color: rgba(255, 255, 255, 0.12) transparent; }
body[data-theme="dark"] .ud-sidebar::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); }
body[data-theme="dark"] .ud-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.25); }
.ud-sidebar-nav {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.ud-sidebar-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	border-radius: 10px;
	color: #5a5a5a;
	font-size: 14px;
	transition: all 0.15s ease;
}
.ud-sidebar-item:hover { background: #ffffff; color: #ff6000; }
.ud-sidebar-ico {
	width: 22px;
	flex: 0 0 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #909399;
	font-size: 16px;
	font-style: normal;
	transition: color 0.15s ease;
}
.ud-sidebar-item:hover .ud-sidebar-ico { color: #ff6000; }
.ud-sidebar-item.is-active .ud-sidebar-ico { color: #ffffff; }

/* ---------- 内容区 ---------- */
.ud-content { flex: 1; min-width: 0; padding: 24px 16px 60px 0; }

/* ---------- Hero 搜索区（优设式渐变卡片） ---------- */
.ud-hero { padding-bottom: 30px; }
.ud-hero-card {
	position: relative;
	overflow: hidden;
	border-radius: 18px;
	padding: 58px 24px 46px;
	text-align: center;
	background: linear-gradient(120deg, #3b6ef0 0%, #5b83f5 45%, #7d9bff 100%);
}
.ud-hero-card::before {
	content: "";
	position: absolute;
	left: -60px; top: 40px;
	width: 220px; height: 120px;
	border-radius: 24px;
	background: rgba(80, 220, 180, 0.35);
	transform: rotate(-12deg);
}
.ud-hero-card::after {
	content: "";
	position: absolute;
	right: -40px; bottom: -60px;
	width: 260px; height: 160px;
	border-radius: 28px;
	background: rgba(255, 255, 255, 0.12);
	transform: rotate(-8deg);
}
.ud-hero-title {
	position: relative; z-index: 1;
	margin: 0 0 10px;
	font-size: 40px; font-weight: 800;
	color: #ffffff;
	letter-spacing: 2px;
}
.ud-hero-sub {
	position: relative; z-index: 1;
	display: block;
	margin: 0 0 30px;
	font-size: 16px; font-weight: 400;
	color: rgba(255, 255, 255, 0.88);
}
.ud-search { position: relative; z-index: 1; }
.ud-search-tabs {
	display: flex; justify-content: center;
	gap: 6px; margin-bottom: 12px; padding-left: 0;
}
.ud-search-tab {
	border: none; background: none;
	padding: 5px 16px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.85);
	cursor: pointer;
	border-radius: 8px;
	transition: all 0.15s ease;
}
.ud-search-tab:hover { color: #ffffff; background: rgba(255, 255, 255, 0.12); }
.ud-search-tab.is-active {
	background: #ffffff; color: #33363d; font-weight: 600;
}
.ud-search-form {
	display: flex; align-items: center;
	background: #ffffff;
	border: none;
	border-radius: 14px;
	box-shadow: 0 8px 28px rgba(20, 40, 120, 0.18);
	overflow: hidden;
	width: 620px; max-width: 100%;
	margin: 0 auto;
}
.ud-search-input {
	flex: 1; min-width: 0;
	border: none; outline: none;
	padding: 14px 18px;
	font-size: 15px;
	color: #2b2f36;
	background: transparent;
}
.ud-search-input::placeholder { color: #b8c0c8; }
.ud-search-btn {
	border: none;
	background: #ff6000;
	color: #ffffff;
	font-size: 15px; font-weight: 600;
	padding: 13px 28px;
	cursor: pointer;
	transition: background 0.15s ease;
	white-space: nowrap;
}
.ud-search-btn:hover { background: #e65500; }
.ud-search-hot {
	display: inline-flex; align-items: center; gap: 4px;
	padding: 0 14px;
	color: #9ca7ae;
	font-size: 13px;
	text-decoration: none;
	border-left: 1px solid #eef0f3;
	white-space: nowrap;
}
.ud-search-hot:hover { color: #ff6000; }
.ud-search-hot::before {
	content: "";
	width: 5px; height: 5px;
	border-radius: 50%;
	background: #ff6000;
	display: inline-block;
}
.ud-hero-hot {
	margin-top: 18px;
	display: flex; justify-content: center; align-items: center;
	gap: 8px; flex-wrap: wrap;
}
.ud-hero-hot-label { color: #ffffff; font-size: 13px; margin-right: 2px; }
.ud-hero-hot-item {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.16);
	color: #ffffff;
	font-size: 13px;
	text-decoration: none;
	transition: background 0.15s ease;
}
.ud-hero-hot-item:hover { background: rgba(255, 255, 255, 0.32); }
.ud-block-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
}
.ud-block-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 22px;
	font-weight: 700;
	color: #2b2f36;
}
.ud-block-dot {
	width: 12px;
	height: 12px;
	border-radius: 4px;
	display: inline-block;
}
.ud-dot-1 { background: linear-gradient(135deg, #28c687, #4ae287); }
.ud-dot-2 { background: linear-gradient(135deg, #4093fb, #7bb3f4); }
.ud-dot-3 { background: linear-gradient(135deg, #ff6000, #ff980f); }
.ud-dot-4 { background: linear-gradient(135deg, #8f6bf2, #c2a0ff); }
.ud-dot-5 { background: linear-gradient(135deg, #46bbfe, #83baff); }
.ud-dot-6 { background: linear-gradient(135deg, #e06c6c, #ff8f8f); }
.ud-dot-7 { background: linear-gradient(135deg, #ff980f, #ffbf6a); }
.ud-dot-8 { background: linear-gradient(135deg, #4a89f0, #7bb3f4); }
.ud-block-more {
	color: #9ca7ae;
	font-size: 13px;
	text-decoration: none;
	background:#fff;border-radius:50%;
}
.ud-block-more:hover { color: #ff6000; }

/* ---------- 卡片网格（5 列） ---------- */
.ud-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 14px;
}

/* ---------- 卡片 ---------- */
.ud-item { min-width: 0; }
.ud-card {
	display: block;
	height: 100%;
	padding: 20px;
	background: #ffffff;
	border-radius: 10px;
	overflow: hidden;
	border: none;
	transition: all 0.2s;
}
.ud-card:hover {
	box-shadow: 0 8px 28px rgba(20, 25, 40, 0.08);
	transform: translateY(-2px);
}
.ud-title-row {
	line-height: 28px;
	margin-bottom: 12px;
	white-space: nowrap;
	overflow: hidden;
}
.ud-ico {
	display: inline-block;
	vertical-align: top;
	width: 28px;
	height: 28px;
	border-radius: 100%;
	overflow: hidden;
	margin-right: 5px;
}
.ud-ico img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.ud-title {
	display: inline-block;
	vertical-align: top;
	line-height: 28px;
	font-size: 16px;
	font-weight: 600;
	color: #3c3c3c;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: calc(100% - 38px);
}
.ud-card:hover .ud-title { color: #ff6000; }
.ud-desc {
	font-size: 12px;
	color: #8f8f8f;
	line-height: 18px;
	height: 36px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
@media (min-width: 1660px) {
	.ud-title-row { line-height: 32px; }
	.ud-ico { width: 32px; height: 32px; }
	.ud-title { line-height: 32px; }
}
.ud-tags {
	height: 20px;
	overflow: hidden;
	margin-top: 12px;
}
.ud-tag {
	display: inline-block;
	background-color: #f1f7fc;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	line-height: 20px;
	white-space: nowrap;
	font-size: 12px;
	padding: 0 6px;
	color: #9ca7ae;
	margin-right: 5px;
	font-style: normal;
}
.ud-tag--hot { background-color: #f1f7fc; color: #9ca7ae; }
.ud-tag--lang { background-color: #f1f7fc; color: #9ca7ae; }

/* ---------- 响应式 ---------- */
@media (max-width: 1499px) {
	.ud-sidebar { display: none; }
	.ud-grid { grid-template-columns: repeat(4, 1fr); }
	.ud-search-form { width: 560px; }
}
@media (max-width: 1099px) {
	.ud-hero-title { font-size: 32px; }
	.ud-grid { grid-template-columns: repeat(3, 1fr); }
	.ud-search-form { width: 100%; max-width: 520px; }
	.ud-search-hot { display: none; }
}
@media (max-width: 799px) {
	/* .ud-inner 无 padding，移动端由 .ud-content 全权承担 */
	.ud-content { padding: 16px 12px 40px; }
	.ud-hero { padding: 30px 0 24px; }
	.ud-hero-title { font-size: 26px; }
	.ud-hero-sub { display: block; margin: 6px 0 0; font-size: 14px; }
	.ud-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
		.ud-card { padding: 14px; }
		.ud-ico { width: 24px; height: 24px; }
	.ud-title { font-size: 14px; }
	.ud-search-form { width: 100%; }
	.ud-search-btn { padding: 12px 18px; }
}

/* ---------- 暗黑模式适配 ---------- */
body.home[data-theme="dark"] {
	background: #14151d;
}
body.home[data-theme="dark"] .lx-header { background: #1e202b; box-shadow: 0 1px 8px rgba(0,0,0,0.4); }
body.home[data-theme="dark"] .lx-logo { color: #e6e8f0; }
body.home[data-theme="dark"] .lx-nav a { color: #b9bfcf; }
body.home[data-theme="dark"] .lx-nav a:hover,
body.home[data-theme="dark"] .lx-nav .current-menu-item > a { background: rgba(255,96,0,0.15); color: #ff8733; }
body.home[data-theme="dark"] .lx-header__tools .lx-btn--icon { color: #b9bfcf; }
body.home[data-theme="dark"] .lx-header__tools .lx-btn--ghost { color: #b9bfcf; }
body.home[data-theme="dark"] .ud-hero-title { color: #e6e8f0; }
body.home[data-theme="dark"] .ud-block-title { color: #e6e8f0; }
body.home[data-theme="dark"] .ud-card { background: #1e202b; border-color: #2a2d3a; }
body.home[data-theme="dark"] .ud-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.5); border-color: #ff8733; }
body.home[data-theme="dark"] .ud-desc { color: #9aa0b5; }
body.home[data-theme="dark"] .ud-search-form { background: #1e202b; }
body.home[data-theme="dark"] .ud-search-input { color: #e6e8f0; }
body.home[data-theme="dark"] .ud-search-input::placeholder { color: #6b7180; }
body.home[data-theme="dark"] .ud-sidebar-item { color: #9aa0b5; }
body.home[data-theme="dark"] .ud-sidebar-item:hover { background: #1e202b; color: #ff8733; }
body.home[data-theme="dark"] .ud-search-tab.is-active { background: #1e202b; color: #ff8733; }
body.home[data-theme="dark"] .ud-tag--lang { background: #2a2d3a; color: #9aa0b5; }
body.home[data-theme="dark"] .ud-block-more { color: #6b7180; }

/* ---------- 归档页 / 详情页共用（全站优设风格） ---------- */
.ud-sidebar-item.is-active {
	background: #ff6000;
	color: #ffffff;
}
.ud-archive-head {
	display: flex;
	align-items: baseline;
	gap: 16px;
	margin-bottom: 24px;
}
.ud-archive-title {
	margin: 0;
	font-size: 26px;
	font-weight: 800;
	color: #2b2f36;
}
.ud-archive-desc { color: #9ca7ae; font-size: 14px; }

/* 分页（宽屏适配） */
.ud-content .pagination { margin: 10px 0 30px; justify-content: center; }
.ud-content .nav-links a, .ud-content .nav-links .current {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 10px;
	border-radius: 8px;
	background: #ffffff;
	color: #5a5a5a;
	font-size: 14px;
}
.ud-content .nav-links a:hover { color: #ff6000; border-color: #ff6000; }
.ud-content .nav-links .current { background: #ff6000; color: #909399; }

/* ---------- 详情页 ---------- */
.ud-inner--detail { max-width: 1480px; }
.ud-detail {
	background: #ffffff;
	border: 1px solid #eef0f3;
	border-radius: 16px;
	padding: 36px 40px;
}
.ud-detail-head {
	display: flex;
	align-items: center;
	gap: 22px;
}
.ud-detail-icon {
	width: 84px;
	height: 84px;
	flex: 0 0 84px;
	border-radius: 20px;
	overflow: hidden;
	background: #f3f5f7;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ud-detail-icon img { width: 84px; height: 84px; object-fit: contain; }
.ud-detail-title {
	margin: 0 0 6px;
	font-size: 30px;
	font-weight: 800;
	color: #2b2f36;
}
.ud-detail-desc { margin: 0 0 10px; color: #5a5a5a; font-size: 14px; }
.ud-detail-actions {
	display: flex;
	gap: 12px;
	margin: 26px 0 22px;
}
.ud-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 11px 26px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.15s ease;
	text-decoration: none;
}
.ud-btn--primary { background: #ff6000; border: 1px solid #ff6000; color: #909399; }
.ud-btn--primary:hover { background: #e65500; color: #909399; }
.ud-btn--ghost { background: #ffffff; border: 1px solid #e4e6ee; color: #5a5a5a; }
.ud-btn--ghost:hover { border-color: #ff6000; color: #ff6000; }
.ud-detail-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	padding: 16px 0;
	border-top: 1px dashed #eef0f3;
	border-bottom: 1px dashed #eef0f3;
	font-size: 13px;
	color: #5a5a5a;
	margin-bottom: 22px;
}
.ud-meta-item a { color: #4093fb; }
.ud-meta-item a:hover { color: #ff6000; }
.ud-detail-content { color: #3c3c3c; font-size: 15px; line-height: 1.9; }
.ud-panel-title { margin: 0 0 12px; font-size: 17px; font-weight: 700; color: #2b2f36; }
.ud-related { margin-top: 30px; }
.ud-related .ud-block-head { margin-bottom: 14px; }

/* 详情页暗黑 */
body[data-theme="dark"] .ud-sidebar-item.is-active { background: #ff6000; color: #ffffff; }
body[data-theme="dark"] .ud-archive-title { color: #e6e8f0; }
body[data-theme="dark"] .ud-detail { background: #1e202b; border-color: #2a2d3a; }
body[data-theme="dark"] .ud-detail-title { color: #e6e8f0; }
body[data-theme="dark"] .ud-detail-desc { color: #9aa0b5; }
body[data-theme="dark"] .ud-detail-content { color: #c5c9d6; }
body[data-theme="dark"] .ud-btn--ghost { background: #1e202b; border-color: #33364a; color: #9aa0b5; }
body[data-theme="dark"] .ud-detail-meta { color: #9aa0b5; border-color: #2a2d3a; }
body[data-theme="dark"] .ud-panel-title { color: #e6e8f0; }
body[data-theme="dark"] .ud-content .nav-links a { background: #1e202b; color: #9aa0b5; }
body[data-theme="dark"] .ud-content .nav-links .current { background: #ff8733; color: #909399; }

@media (max-width: 799px) {
	.ud-detail { padding: 22px 16px; }
	.ud-detail-head { flex-direction: column; align-items: flex-start; gap: 14px; }
	.ud-detail-title { font-size: 24px; }
	.ud-archive-head { flex-direction: column; gap: 6px; }
}
/* 首页左侧导航锚点滚动 */
.ud-block { scroll-margin-top: 84px; margin-bottom: 30px; }

/* ---------- 文章详情页组件 ---------- */
.ud-article { padding: 32px 32px 28px; }
.ud-article-title { margin: 0 0 12px; font-size: 26px; line-height: 1.4; color: #323232; }
.ud-article-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; color: #8a8a8a; font-size: 13px; }
.ud-article-meta__item { display: inline-flex; align-items: center; gap: 5px; }
.ud-article-meta__item i { font-size: 15px; color: #b0b6bf; }
.ud-article-thumb { margin: 20px 0 0; border-radius: 10px; overflow: hidden; }
.ud-article-thumb img { width: 100%; display: block; }
.ud-article-content { margin-top: 20px; font-size: 15px; line-height: 1.85; color: #3c3c3c; }
.ud-article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.ud-article-tags .ud-tag { text-decoration: none; }

/* 作者信息卡 */
.ud-author-box {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 28px;
	padding: 16px 18px;
	border-radius: 12px;
	background: #f8f9fb;
}
.ud-author-box__avatar { width: 56px; height: 56px; border-radius: 50%; flex: 0 0 56px; object-fit: cover; }
.ud-author-box__info { flex: 1; min-width: 0; }
.ud-author-box__name { font-size: 15px; font-weight: 700; color: #323232; }
.ud-author-box__desc { margin: 4px 0 0; font-size: 13px; color: #8a8a8a; line-height: 1.6; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ud-author-box__link { font-size: 13px; color: #ff6000; text-decoration: none; white-space: nowrap; }
.ud-author-box__link:hover { text-decoration: underline; }

/* 上一篇 / 下一篇 */
.ud-post-nav { display: flex; gap: 14px; margin-bottom: 30px; }
.ud-post-nav__item {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px 18px;
	border-radius: 12px;
	background: #ffffff;
	border: 1px solid #eef0f3;
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ud-post-nav__item:not(.is-empty):hover { border-color: #ffd7bf; box-shadow: 0 4px 14px rgba(255, 96, 0, 0.08); }
.ud-post-nav__item.is-next { text-align: right; }
.ud-post-nav__label { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: #a0a6af; }
.ud-post-nav__item.is-next .ud-post-nav__label { justify-content: flex-end; }
.ud-post-nav__title { font-size: 14px; font-weight: 600; color: #323232; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ud-related__empty { margin: 0; color: #999; text-align: center; padding: 20px 0; }

/* ---------- 用户中心（左菜单 + 右内容） ---------- */
.ux-center {
	display: flex;
	gap: 24px;
	align-items: flex-start;
}
.ux-side {
	position: sticky;
	top: 84px;
	flex: 0 0 232px;
	width: 232px;
	background: #ffffff;
	border-radius: 14px;
	padding: 20px 14px;
	display: flex;
	flex-direction: column;
}
.ux-side__user { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-bottom: 18px; border-bottom: 1px solid #f0f1f4; text-align: center; }
.ux-side__avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-bottom: 4px; }
.ux-side__name { font-size: 16px; font-weight: 700; color: #323232; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ux-side__mail { font-size: 12px; color: #a0a6af; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ux-side__nav { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; flex: 1; }
.ux-side__nav a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 14px;
	color: #5a5a5a;
	text-decoration: none;
	transition: all 0.15s ease;
}
.ux-side__nav a i { font-size: 18px; color: #909399; }
.ux-side__nav a:hover { background: #f6f7f9; color: #ff6000; }
.ux-side__nav a:hover i { color: #ff6000; }
.ux-side__nav a.is-active { background: #fff3e9; color: #ff6000; font-weight: 600; }
.ux-side__nav a.is-active i { color: #ff6000; }
.ux-side__nav em {
	margin-left: auto;
	font-style: normal;
	font-size: 12px;
	min-width: 20px;
	height: 20px;
	line-height: 20px;
	padding: 0 6px;
	border-radius: 10px;
	background: #eef0f3;
	color: #8a90a0;
	text-align: center;
}
.ux-side__nav a.is-active em { background: #ffe1c9; color: #ff6000; }
.ux-side__foot { border-top: 1px solid #f0f1f4; padding-top: 10px; }
.ux-side__foot a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; color: #e5484d; text-decoration: none; }
.ux-side__foot a:hover { background: #fef2f2; }

.ux-body { flex: 1; min-width: 0; padding-bottom: 60px; }
.ux-body__head { margin-bottom: 20px; }
.ux-body__head h2 { margin: 0 0 6px; font-size: 22px; color: #323232; }
.ux-body__head p { margin: 0; font-size: 13px; color: #a0a6af; }
.ux-body__head--row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }

/* 概览统计卡 */
.ux-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 30px; }
.ux-stat {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 20px 12px;
	background: #ffffff;
	border-radius: 14px;
	text-decoration: none;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ux-stat:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07); }
.ux-stat i { font-size: 24px; color: #ff6000; }
.ux-stat strong { font-size: 22px; color: #323232; line-height: 1.2; }
.ux-stat span { font-size: 13px; color: #a0a6af; }

.ux-section { background: #ffffff; border-radius: 14px; padding: 20px; margin-bottom: 20px; }
.ux-section .ud-block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ux-section .ud-block-head .ud-block-title { margin: 0; }
.ux-quick { display: flex; gap: 12px; flex-wrap: wrap; }

/* 收藏卡片包装 + 取消收藏 */
.ux-card-wrap { position: relative; }
.ux-unfav {
	margin-top: 8px;
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 7px 0;
	border: 1px solid #f0f1f4;
	border-radius: 8px;
	background: #ffffff;
	font-size: 12px;
	color: #e5484d;
	cursor: pointer;
	transition: all 0.15s ease;
}
.ux-unfav i { font-size: 14px; }
.ux-unfav:hover { background: #fef2f2; border-color: #ffd6d6; }

/* 投稿列表 */
.ux-post-list { display: flex; flex-direction: column; gap: 10px; }
.ux-post-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	background: #ffffff;
	border-radius: 12px;
}
.ux-post-type {
	flex: 0 0 auto;
	padding: 3px 10px;
	border-radius: 6px;
	background: #eef4ff;
	color: #3b6ef0;
	font-size: 12px;
}
.ux-post-row__main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ux-post-row__main a, .ux-post-row__main span:first-child { font-size: 14px; font-weight: 600; color: #323232; text-decoration: none; }
.ux-post-row__main a:hover { color: #ff6000; }
.ux-post-date { font-size: 12px; color: #a0a6af; }
.ux-badge { flex: 0 0 auto; padding: 3px 10px; border-radius: 6px; font-size: 12px; }
.ux-badge.is-ok { background: #e8f7ee; color: #2fa55a; }
.ux-badge.is-wait { background: #fff6e5; color: #d98a00; }
.ux-badge.is-draft { background: #eef0f3; color: #8a90a0; }
.ux-row-link { flex: 0 0 auto; font-size: 13px; color: #ff6000; text-decoration: none; }
.ux-row-link:hover { text-decoration: underline; }

/* 空状态 / 提示 */
.ux-empty { text-align: center; padding: 48px 0; color: #a0a6af; font-size: 14px; background: #ffffff; border-radius: 14px; }
.ux-empty a { color: #ff6000; text-decoration: none; }
.ux-notice { padding: 12px 16px; border-radius: 10px; font-size: 13px; margin: 0 0 16px; }
.ux-notice--ok { background: #e8f7ee; color: #2fa55a; }
.ux-notice--err { background: #fef2f2; color: #e5484d; }

/* 分页 */
.ux-pager { margin-top: 24px; display: flex; justify-content: center; }
.ux-pager .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	padding: 0 8px;
	margin: 0 3px;
	border-radius: 8px;
	background: #ffffff;
	color: #5a5a5a;
	font-size: 13px;
	text-decoration: none;
}
.ux-pager .page-numbers.current { background: #ff6000; color: #ffffff; }
.ux-pager .page-numbers:hover:not(.current) { background: #fff3e9; color: #ff6000; }

/* 账号资料表单 */
.ux-profile { background: #ffffff; border-radius: 14px; padding: 24px; max-width: 560px; }
.ux-profile__avatar { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid #f0f1f4; }
.ux-profile__avatar-img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.ux-profile__avatar-ops { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ux-profile__remove { font-size: 13px; color: #8a8a8a; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.ux-profile__hint { margin: 0; font-size: 12px; color: #b0b6bf; }
.ux-profile__field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.ux-profile__field label { font-size: 13px; color: #5a5a5a; font-weight: 600; }
.ux-profile__field input, .ux-profile__field textarea {
	padding: 10px 14px;
	border: 1px solid #e5e8ee;
	border-radius: 10px;
	font-size: 14px;
	color: #323232;
	background: #fafbfc;
	outline: none;
	transition: border-color 0.15s ease;
	font-family: inherit;
	resize: vertical;
}
.ux-profile__field input:focus, .ux-profile__field textarea:focus { border-color: #ff6000; background: #ffffff; }

/* 清空历史按钮 */
.ux-clear-history {
	padding: 8px 18px;
	border: 1px solid #ffd6d6;
	border-radius: 10px;
	background: #ffffff;
	color: #e5484d;
	font-size: 13px;
	cursor: pointer;
	transition: all 0.15s ease;
}
.ux-clear-history:hover { background: #fef2f2; }

/* 用户中心 · 暗黑模式 */
body[data-theme="dark"] .ux-side,
body[data-theme="dark"] .ux-stat,
body[data-theme="dark"] .ux-section,
body[data-theme="dark"] .ux-post-row,
body[data-theme="dark"] .ux-empty,
body[data-theme="dark"] .ux-profile,
body[data-theme="dark"] .ux-pager .page-numbers { background: #1e202b; }
body[data-theme="dark"] .ux-side__user { border-bottom-color: #2b2f3c; }
body[data-theme="dark"] .ux-side__name,
body[data-theme="dark"] .ux-body__head h2,
body[data-theme="dark"] .ux-stat strong,
body[data-theme="dark"] .ux-post-row__main a,
body[data-theme="dark"] .ux-post-row__main span:first-child { color: #e6e8f0; }
body[data-theme="dark"] .ux-side__nav a { color: #9aa0b0; }
body[data-theme="dark"] .ux-side__nav a:hover { background: #23262f; }
body[data-theme="dark"] .ux-side__nav a.is-active { background: #3a2a1c; }
body[data-theme="dark"] .ux-side__nav em { background: #2b2f3c; color: #8a90a0; }
body[data-theme="dark"] .ux-side__nav a.is-active em { background: #4a3423; color: #ffb27d; }
body[data-theme="dark"] .ux-side__foot { border-top-color: #2b2f3c; }
body[data-theme="dark"] .ux-side__foot a:hover { background: #2b2024; }
body[data-theme="dark"] .ux-unfav { background: transparent; border-color: #2b2f3c; }
body[data-theme="dark"] .ux-unfav:hover { background: #2b2024; border-color: #5a3437; }
body[data-theme="dark"] .ux-post-type { background: #1c2940; color: #7d9bff; }
body[data-theme="dark"] .ux-badge.is-ok { background: #16301f; color: #5ec98a; }
body[data-theme="dark"] .ux-badge.is-wait { background: #3a2f14; color: #f0b34e; }
body[data-theme="dark"] .ux-badge.is-draft { background: #2b2f3c; color: #8a90a0; }
body[data-theme="dark"] .ux-profile__field input, body[data-theme="dark"] .ux-profile__field textarea { background: #23262f; border-color: #2b2f3c; color: #e6e8f0; }
body[data-theme="dark"] .ux-profile__avatar { border-bottom-color: #2b2f3c; }
body[data-theme="dark"] .ux-clear-history { background: transparent; border-color: #5a3437; }
body[data-theme="dark"] .ux-clear-history:hover { background: #2b2024; }

@media (max-width: 899px) {
	.ux-center { flex-direction: column; }
	.ux-side { position: static; width: 100%; flex: none; }
	.ux-side__nav { flex-direction: row; flex-wrap: wrap; }
	.ux-side__nav a { padding: 8px 12px; }
	.ux-stats { grid-template-columns: repeat(2, 1fr); }
}

/* 文章详情组件 · 暗黑模式 */
body[data-theme="dark"] .ud-article { background: #1e202b; }
body[data-theme="dark"] .ud-article-title,
body[data-theme="dark"] .ud-post-nav__title { color: #e6e8f0; }
body[data-theme="dark"] .ud-article-meta,
body[data-theme="dark"] .ud-author-box__desc { color: #8a90a0; }
body[data-theme="dark"] .ud-article-meta__item i { color: #565d6d; }
body[data-theme="dark"] .ud-article-content { color: #c3c8d4; }
body[data-theme="dark"] .ud-author-box { background: #23262f; }
body[data-theme="dark"] .ud-author-box__name { color: #e6e8f0; }
body[data-theme="dark"] .ud-post-nav__item { background: #1e202b; border-color: #2b2f3c; }
body[data-theme="dark"] .ud-post-nav__item:not(.is-empty):hover { border-color: #5a4331; }
body[data-theme="dark"] .ud-post-nav__label { color: #6b7180; }
.ud-sidebar-item { scroll-margin-top: 84px; cursor: pointer; }

/* ---------- 首页文章卡片（6列两行，同网址卡片网格） ---------- */
.ud-news-scroll {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 14px;
}
.ud-news-card {
	background: #ffffff;
	border-radius: 10px;
	padding: 20px;
	text-decoration: none;
	color: #3c3c3c;
	transition: transform 0.2s, box-shadow 0.2s;
}
.ud-news-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 28px rgba(20, 25, 40, 0.1);
}
.ud-news-thumb {
	position: relative;
	height: 130px;
	margin-bottom: 15px;
	border-radius: 6px;
	background-color: #f3f5f7;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
.ud-news-badge {
	position: absolute;
	left: 8px;
	top: 8px;
	display: inline-block;
	padding: 2px 8px;
	background: #ff6000;
	color: #ffffff;
	font-size: 11px;
	font-weight: 600;
	border-radius: 4px;
}
.ud-news-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 14px;
	line-height: 1.5;
	color: #3c3c3c;
}
.ud-news-card:hover .ud-news-title { color: #ff6000; }
@media (max-width: 1499px) {
	.ud-news-scroll { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 1100px) {
	.ud-news-scroll { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
	.ud-news-scroll { grid-template-columns: repeat(2, 1fr); }
}
/* 文章卡片（优设风格） */
.ud-card-post {
	padding: 20px;
	border-radius: 12px;
	background: #fff;
	display: flex;
	flex-direction: column;
}
.ud-post-thumb {
	width: 100%;
	aspect-ratio: 16 / 10;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 16px;
}
.ud-post-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.2s;
}
.ud-card-post:hover .ud-post-thumb img {
	transform: scale(1.03);
}
.ud-post-main {
	display: flex;
	flex-direction: column;
}
.ud-post-title {
	font-size: 15px;
	line-height: 1.5625;
	font-weight: normal;
	color: #323232;
	margin-bottom: 12px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ud-post-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 12px;
}
.ud-post-date {
	color: #8a8a8a;
}
.ud-post-cat {
	color: #b5b5b5;
	background: #ffefda;
	color: #ff6000;
	padding: 2px 8px;
	border-radius: 4px;
	font-size: 11px;
}

/* ---------- 筛选栏 ---------- */
.ud-filter-bar {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px 16px;
	margin-bottom: 16px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.ud-filter-item {
	display: flex;
	align-items: center;
	gap: 8px;
}
.ud-filter-label {
	font-size: 13px;
	color: #8a8a8a;
	white-space: nowrap;
}
.ud-filter-select {
	padding: 6px 28px 6px 12px;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	font-size: 13px;
	color: #3c3c3c;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a8a8a' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right 10px center;
	appearance: none;
	-webkit-appearance: none;
	cursor: pointer;
	outline: none;
	transition: border-color 0.2s;
}
.ud-filter-select:hover,
.ud-filter-select:focus {
	border-color: #ff6000;
}
body[data-theme="dark"] .ud-filter-bar {
	background: #1a1a1a;
}
body[data-theme="dark"] .ud-filter-select {
	background-color: #2a2a2a;
	border-color: #333;
	color: #e5e5e5;
}
body[data-theme="dark"] .ud-filter-label {
	color: #888;
}

/* ---------- 收藏/点赞按钮（ud 风格） ---------- */
.lx-fav-btn,
.lx-like-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 8px 16px;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	background: #fff;
	font-size: 13px;
	color: #666;
	cursor: pointer;
	transition: all 0.2s;
	outline: none;
}
.lx-fav-btn:hover,
.lx-like-btn:hover {
	border-color: #ff6000;
	color: #ff6000;
}
.lx-fav-btn.is-faved {
	background: #fff5f0;
	border-color: #ff6000;
	color: #ff6000;
}
.lx-like-btn .lx-like-icon {
	font-size: 14px;
	color: #ef4444;
}
.lx-like-btn.is-liked {
	background: #fff0f0;
	border-color: #ef4444;
	color: #ef4444;
}
.lx-like-btn.is-loading {
	opacity: 0.6;
	pointer-events: none;
}
body[data-theme="dark"] .lx-fav-btn,
body[data-theme="dark"] .lx-like-btn {
	background: #2a2a2a;
	border-color: #333;
	color: #999;
}
body[data-theme="dark"] .lx-fav-btn:hover,
body[data-theme="dark"] .lx-like-btn:hover {
	border-color: #ff6000;
	color: #ff6000;
}

/* ============================================================
   优设 UISDC 风格：文章详情页（post-header / post-body / us-card）
   与文章归档页（archive-hero / cat-info / cat-menu）
   ============================================================ */

/* ---------- 详情页：顶部通栏 Banner 头（优设 post-header-7e7：主题色渐变 + 居中内容） ---------- */
.post-single { padding-bottom: 24px; }
.post-header {
	position: relative;
	overflow: hidden;
	padding: 60px 0 40px;
	margin-bottom: 28px;
	text-align: center;
}
/* 优设 group-singular-bg：独立背景层，主题色块打底（封面图为单独元素旋转，非 background-image） */
.singular-bg {
	position: absolute;
	inset: 0;
	background-color: var(--hero-color, #71c89d);
	z-index: 0;
}
.singular-bg .b-wrap {
	position: absolute;
	inset: 0;
	overflow: hidden;
}
/* 斜向高光渐变（优设 .group-singular-bg .b-wrap::after） */
.singular-bg .b-wrap::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(257.4deg, rgba(250, 250, 250, 0.2) 2%, var(--hero-color, #71c89d) 80%);
}
/* 封面图旋转元素（优设 .group-singular-bg .img：rotate(30deg)），img 本体 scale(2) 撑满旋转后角落 + blur */
.singular-bg .img {
	display: block;
	position: absolute;
	inset: 0;
	transform: rotate(30deg);
	filter: blur(4px);
}
.singular-bg .img img {
	position: absolute;
	right: 0;
	top: 0;
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
	transform: scale(2);
	filter: blur(10px);
	opacity: 0.9;
}
/* 优设 post-header-7e7::before：自头部 30% 高度起渐白融入页面 */
.post-header::before {
	content: '';
	position: absolute;
	top: 30%;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(246, 250, 255, 0.95) 100%);
	z-index: 2;
	pointer-events: none;
}
.post-header__container {
	position: relative;
	z-index: 3;
	max-width: 1232px;
	margin: 0 auto;
	padding: 0 16px;
	box-sizing: border-box;
}
/* 面包屑：左上角 absolute（优设 .post-crumbs） */
.post-header .post-crumbs {
	position: absolute;
	left: 30px;
	top: 2em;
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 14px;
	margin: 0;
	color: #fff;
	text-align: left;
}
.post-crumbs a { color: rgba(255, 255, 255, 0.9); text-decoration: none; }
.post-crumbs a:hover { color: #fff; }
.post-crumbs .ri-arrow-right-s-line { font-size: 14px; color: rgba(255, 255, 255, 0.6); }
.post-crumbs .is-current { color: #fff; }
.post-title {
	margin: 0 0 0.8em;
	font-size: 28px;
	line-height: 1.332;
	font-weight: 700;
	color: #fff;
}
.post-title a { color: #fff; text-decoration: none; }
/* meta：竖线分隔（优设 .meta-item::after），居中 + 20px 下边距 */
.post-meta { display: flex; flex-wrap: wrap; justify-content: center; margin: 0 0 20px; font-size: 14px; font-weight: 400; color: #fff; }
.post-meta .meta-item {
	display: inline-block;
	position: relative;
	margin-left: 1em;
	padding-left: 1em;
	white-space: nowrap;
	margin-bottom: 7px;
}
.post-meta .meta-item::after {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	margin-top: -5px;
	height: 10px;
	width: 0;
	border-right: 1px solid #fff;
	opacity: 0.59;
}
.post-meta .meta-item:first-child { margin-left: 0; padding-left: 0; }
.post-meta .meta-item:first-child::after { display: none; }
.post-meta a { color: #fff; text-decoration: none; }
.post-meta a:hover { color: rgba(255, 255, 255, 0.75); }
.post-meta .hide-xs { font-style: normal; }
.post-meta .meta-read .ri-time-line { font-size: 13px; vertical-align: -1px; margin-right: 2px; }
/* 收藏 / 点赞：白底 90% 方圆角按钮居中，hover 变橙（优设 .post-header-7e7 .post-btns .btn） */
.post-btns { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 20px 0; }
.post-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	line-height: 40px;
	padding: 0 33px;
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.9);
	color: #000;
	font-size: 14px;
	cursor: pointer;
	user-select: none;
	transition: background-color 0.18s ease, color 0.18s ease;
}
/* 优设头部按钮不显示计数（.post-header-7e7 .post-btns .count{display:none}），尾部按钮保留 */
.post-header .post-btn .count { display: none; }
.post-btn:hover { background: #ff6000; color: #fff; }
.post-btn:hover .ri-bookmark-line, .post-btn:hover .ri-thumb-up-line { color: #fff; }
.post-btn .ri-bookmark-line, .post-btn .ri-thumb-up-line { color: #ff6000; }
.post-btn .count { font-style: normal; font-size: 13px; opacity: 0.75; }
.post-btn.is-loading { opacity: 0.6; pointer-events: none; }
.post-btn.btn-fav.is-faved, .post-btn.btn-zan.is-liked { background: rgba(0, 0, 0, 0.08); color: #fff; }
.post-btn.btn-fav.is-faved .ri-bookmark-line, .post-btn.btn-zan.is-liked .ri-thumb-up-line { color: #fff; }
.post-btn.btn-fav.is-faved:hover, .post-btn.btn-zan.is-liked:hover { background: rgba(0, 0, 0, 0.08); }
/* 标签：半透明白底居中（tag 28px 行高 / padding 0 8px / #6a6a6a） */
.post-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.post-tags .tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 0 8px;
	line-height: 28px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.4);
	color: #6a6a6a;
	font-size: 13px;
	text-decoration: none;
	transition: background-color 0.18s ease, color 0.18s ease;
}
.post-tags .tag:hover { background: rgba(255, 140, 52, 0.1); color: #ff6000; }
.post-tags .tag .ri-price-tag-3-line { font-size: 13px; }

/* ---------- 详情页：正文列（三列 grid 在 .post-band 上，见宽屏块） ---------- */
.post-body {
	max-width: 1232px;
	margin: 0 auto;
	padding: 28px 16px 8px;
	box-sizing: border-box;
}
.post-content {
	background: #fff;
	border-radius: 16px;
	box-sizing: border-box;
}
.post-content__thumb { margin: 0 0 20px; }
.post-content__thumb img { width: 100%; border-radius: 10px; display: block; }

/* ---------- 详情页：正文富文本排版（优设 .article 同构） ---------- */
/* 基础：16px / #525252 / 行高 1.9 / 两端对齐（优设 .article） */
.post-article {
	font-size: 16px;
	color: #525252;
	line-height: 1.9;
	text-align: justify;
	word-break: break-word;
	overflow-wrap: break-word;
}
.post-article p { margin: 0 0 1.78571429em; }
.post-article p:last-child { margin-bottom: 0; }
/* 标题：h2 大节标题 / h3 递减，均带橙色竖条（优设 h3::before 圆角竖条） */
.post-article h2, .post-article h3, .post-article h4, .post-article h5, .post-article h6 { line-height: 1.4; color: #333; font-weight: 700; }
.post-article h2 {
	font-size: 171.42857143%;
	margin: 2.47619048em 0 1.23809524em;
	position: relative;
	padding-left: 0.71428571em;
}
.post-article h3 {
	font-size: 150%;
	margin: 2.47619048em 0 1.23809524em;
	position: relative;
	padding-left: 0.71428571em;
}
.post-article h2::before, .post-article h3::before {
	content: '';
	display: block;
	width: 0.19047619em;
	border-radius: 0.28571429em;
	background-color: #ff6000;
	position: absolute;
	left: 0;
	top: 0.19047619em;
	bottom: 0.19047619em;
}
.post-article h4 { font-size: 136%; margin: 1.8em 0 0.9em; }
.post-article h5 { font-size: 124%; margin: 1.6em 0 0.8em; }
.post-article h6 { font-size: 112%; margin: 1.4em 0 0.7em; }
.post-article h2:first-child, .post-article h3:first-child, .post-article h4:first-child { margin-top: 0; }
/* 强调 / 链接（优设：橙字 + 浅橙底边线，hover 加深） */
.post-article strong { color: #333; font-weight: 700; }
.post-article a { color: #ff6000; border-bottom: 1px solid #ffdfcc; word-break: break-all; text-decoration: none; }
.post-article a:hover { color: #ff6000; border-bottom-color: #ff6000; }
/* 列表：ul 空心圆点 / ol 十进制（优设 list-style circle / decimal） */
.post-article ul { margin: 0 0 1.5em; padding: 0 0 0 32px; }
.post-article ul li { list-style: circle; margin-bottom: 0.4em; }
.post-article ol { margin: 0 0 1.5em; padding: 0 0 0 2.8em; }
.post-article ol li { list-style-type: decimal; margin-bottom: 0.4em; }
/* 图片：圆角 10px（优设 .img-zoom img radius .625em），居中变体 */
.post-article img { max-width: 100%; height: auto; border-radius: 10px; }
.post-article img.aligncenter, .post-article .aligncenter img { display: block; margin: 0 auto 1.5em; }
/* 引用块（优设 blockquote：#f6f8fa 圆角卡 + 右下装饰引号） */
.post-article blockquote {
	margin: 0 0 1.8em;
	padding: 1.2em 3.4em 1.2em 1.2em;
	color: #525252;
	position: relative;
	background-color: #f6f8fa;
	border-radius: 10px;
}
.post-article blockquote p { margin-bottom: 1em; }
.post-article blockquote p:last-child { margin-bottom: 0; }
.post-article blockquote::before {
	content: '\201D';
	font-family: Georgia, 'Times New Roman', serif;
	font-style: normal;
	color: #cdcdcd;
	font-size: 40px;
	line-height: 1;
	display: block;
	position: absolute;
	right: 14px;
	bottom: 6px;
}
/* 代码：行内 code 浅底 / pre 块 #f6f8fa 圆角 + Consolas（优设 code-container） */
.post-article code {
	font-family: Consolas, 'Courier New', 'PingFang SC', 'Microsoft YaHei', monospace;
	font-size: 90%;
	background: #f6f8fa;
	border-radius: 4px;
	padding: 2px 6px;
	color: #c7254e;
}
.post-article pre {
	overflow-x: auto;
	margin: 0 0 1.5em;
	padding: 1.2em 1.4em;
	background: #f6f8fa;
	border-radius: 10px;
	font-size: 90%;
	line-height: 1.7;
}
.post-article pre code { background: transparent; padding: 0; color: #525252; font-size: 100%; border-radius: 0; }
/* 表格（下载信息表之外的普通表格兜底） */
.post-article table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: 14px; }
.post-article th, .post-article td { border: 1px solid #e8e8e8; padding: 8px 12px; text-align: left; }
.post-article th { background: #f6f8fa; color: #333; font-weight: 600; }
/* 分割线 / 媒体 / 图注 */
.post-article hr { border: 0; height: 1px; background: #ececec; margin: 2em 0; }
.post-article iframe, .post-article video { max-width: 100%; border-radius: 10px; }
.post-article figure { margin: 0 0 1.5em; }
.post-article figcaption { text-align: center; font-size: 13px; color: #9aa0ab; margin-top: 8px; }
@media (max-width: 768px) {
	.post-article { font-size: 15px; } /* 优设小屏 .15rem */
}
.article-author {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 28px;
	padding: 18px 20px;
	background: #f8f9fb;
	border-radius: 12px;
}
.article-author__avatar { border-radius: 50%; flex: none; }
.article-author__info { flex: 1; min-width: 0; }
.article-author__name { font-weight: 600; font-size: 15px; color: #222; }
.article-author__desc { margin: 4px 0 0; font-size: 13px; color: #7a7f89; line-height: 1.6; }
.article-author__link { flex: none; font-size: 13px; color: #ff6000; text-decoration: none; white-space: nowrap; }
.article-author__link:hover { opacity: 0.8; }
.post-btns--end { justify-content: center; margin: 24px 0 0; }
.post-btns--end .post-btn { background: #f2f3f5; color: #333; }
.post-btns--end .post-btn:hover { background: #ffe9dd; color: #ff6000; transform: none; }
.post-btns--end .post-btn.is-faved, .post-btns--end .post-btn.is-liked { background: #ff6000; color: #fff; }

.post-sidebar { display: none; }

/* ---------- 详情页：全宽白色背景带（正文白底占全宽，两侧灰底组件浮于其上） ---------- */
.post-band { background: #fff; }

/* ---------- 详情页：左侧操作栏（日期三行 年/月/日 + 点赞/收藏/分享） ---------- */
.post-rail { display: none; }
.rail-card {
	background: #fafafa;
	border-radius: 10px;
	padding: 20px 12px;
	text-align: center;
	box-sizing: border-box;
}
.rail-date { display: flex; flex-direction: column; align-items: center; gap: 4px; line-height: 1.4; }
.rail-date span { font-size: 15px; font-weight: 600; color: #333; font-variant-numeric: tabular-nums; letter-spacing: 0.5px; }
.rail-line { height: 1px; background: #ececec; margin: 16px 4px; }
.rail-item { margin-bottom: 18px; }
.rail-item:last-child { margin-bottom: 0; }
.rail-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	color: #555;
	font-size: 19px;
	cursor: pointer;
	transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.rail-btn:hover { color: #ff6000; transform: translateY(-2px); box-shadow: 0 6px 14px rgba(255, 96, 0, 0.18); }
.rail-btn.is-liked, .rail-btn.is-faved { background: #ff6000; color: #fff; box-shadow: 0 4px 12px rgba(255, 96, 0, 0.35); }
.rail-num { display: block; margin-top: 6px; font-size: 12px; color: #9aa0ab; font-style: normal; line-height: 1; }
/* 宽屏：优设方案——post-band 仅作 relative 容器，正文列 margin auto 纯居中；
   左右两栏 absolute 悬浮贴视口缘，完全不占布局宽度（优设 .post-menus/.post-sidebar absolute 同构） */
@media (min-width: 1331px) {
	.post-band { position: relative; padding: 28px 16px 8px; }
	.post-body { max-width: none; padding: 0; }
	/* 内容宽随大屏比例放大（优设 39.0625vw 模式），并用视口约束夹紧：防止与左右悬浮栏重叠 */
	.post-content {
		max-width: min(max(900px, calc(39.0625vw + 64px)), calc(100vw - 496px));
		width: 100%;
		margin: 0 auto;
		box-sizing: border-box;
	}
	/* 左栏悬浮层：贴正文列左缘（优设 .post-menus 贴内容侧同构），left 由正文宽度公式推导：
	   (100% - W)/2 为内容左缘，再外扩 rail 宽 120px + 间距 16px；内部卡片 sticky 跟随 */
	.post-rail {
		display: block;
		position: absolute;
		left: calc((100% - min(max(900px, calc(39.0625vw + 64px)), calc(100vw - 496px))) / 2 - 176px);
		top: 28px;
		bottom: 8px;
		width: 160px;
	}
	.post-rail .rail-card { position: sticky; top: 88px; }
	/* 右栏悬浮层：box 纵贯但不接收鼠标事件，交互集中在 sticky 内容上 */
	.post-sidebar {
		display: block;
		position: absolute;
		right: 16px;
		top: 28px;
		bottom: 8px;
		width: 320px;
		pointer-events: none;
	}
	.post-sidebar .sidebar-sticky {
		position: sticky;
		top: 88px;
		max-height: calc(100vh - 144px);
		overflow-y: auto;
		scrollbar-width: thin;
		pointer-events: auto;
	}
}

/* ---------- 悬浮工具条（优设 post-toolkit）：评论/收藏/分享/回顶部，正文区内贴底 ---------- */
.post-toolkit { display: none; }
.toolkit-group {
	background: #fafafa;
	border-radius: 10px;
	padding: 4px 0;
	box-sizing: border-box;
}
.toolkit-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	width: 58px;
	padding: 10px 0;
	background: none;
	border: 0;
	color: #787c7b;
	font-size: 12px;
	line-height: 1;
	font-family: inherit;
	text-decoration: none;
	cursor: pointer;
	position: relative;
	transition: color 0.18s ease;
}
.toolkit-btn i { font-size: 19px; line-height: 1; }
.toolkit-btn::after {
	content: '';
	position: absolute;
	left: 15px;
	right: 15px;
	bottom: 0;
	border-bottom: 1px solid #d8d8d8;
	opacity: 0.39;
}
.toolkit-item:last-child .toolkit-btn::after { display: none; }
.toolkit-btn:hover { color: #ff6000; }
.toolkit-btn.is-faved { color: #ff6000; }
/* 宽屏：正文右缘外贴底悬浮（JS 控制显隐与坐标，同优设 autofixed；空间不足时钳制到右栏内侧） */
@media (min-width: 1331px) {
	.post-toolkit {
		display: flex;
		flex-direction: column;
		gap: 14px;
		position: fixed;
		bottom: 28px;
		left: -200px;
		z-index: 30;
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.2s ease, visibility 0.2s ease;
	}
	.post-toolkit.is-visible { opacity: 1; visibility: visible; }
}

/* ---------- 分享弹窗：微信（二维码）/ 微博 / QQ空间 / 复制链接 ---------- */
.lx-share { position: fixed; inset: 0; z-index: 9999; display: none; }
.lx-share.is-open { display: block; }
.lx-share__mask { position: absolute; inset: 0; background: rgba(17, 20, 28, 0.5); }
.lx-share__panel {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 360px;
	max-width: calc(100vw - 32px);
	background: #fff;
	border-radius: 16px;
	padding: 20px;
	box-sizing: border-box;
	animation: lxSharePop 0.18s ease;
}
@keyframes lxSharePop {
	from { opacity: 0; transform: translate(-50%, -48%); }
	to { opacity: 1; transform: translate(-50%, -50%); }
}
.lx-share__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; font-size: 16px; color: #222; }
.lx-share__close { border: 0; background: transparent; font-size: 20px; color: #999; cursor: pointer; line-height: 1; padding: 4px; }
.lx-share__close:hover { color: #ff6000; }
.lx-share__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.lx-share__item {
	border: 0;
	background: transparent;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 10px 0;
	border-radius: 10px;
	text-decoration: none;
	color: #555;
	font-size: 12px;
	font-family: inherit;
	transition: background-color 0.18s ease;
}
.lx-share__item:hover { background: #f5f6f8; }
.lx-share__item i { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; }
.lx-share__item[data-lx-share="wechat"] i { background: #2aae67; }
.lx-share__item[data-lx-share="weibo"] i { background: #e64340; }
.lx-share__item[data-lx-share="qzone"] i { background: #3d9cf4; }
.lx-share__item[data-lx-share="copy"] i { background: #8e94ff; }
.lx-share__qr { text-align: center; margin-top: 16px; }
.lx-share__qr img { display: inline-block; border-radius: 8px; border: 1px solid #ececec; }
.lx-share__qr p { margin: 8px 0 0; font-size: 12px; color: #9aa0ab; }
.lx-share__tip { margin: 14px 0 0; text-align: center; font-size: 13px; color: #2aae67; }

/* ---------- 下载板块（优设 post-download）：正文顶部资源列表表格 ---------- */
.post-download { margin: 0 0 24px; font-size: 14px; }
.post-download table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; text-align: left; border: 1px solid #ececec; border-radius: 8px; overflow: hidden; }
.post-download th { background: #f6f6f6; color: #3c3c3c; font-weight: 500; padding: 10px 14px; white-space: nowrap; }
.post-download td { background: #fafbfb; color: #525252; padding: 10px 14px; }
.post-download td:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.post-download .dl-name { font-weight: 500; color: #3c3c3c; }
.post-download .dl-ver { font-style: normal; color: #8a8a8a; font-size: 12px; margin-left: 8px; }
.post-download .code { display: inline-block; padding: 1px 8px; border-radius: 4px; background: #ffefda; color: #ff6000; font-weight: 700; letter-spacing: 1px; }
.post-download .component-copy { margin-left: 8px; white-space: nowrap; cursor: pointer; }
.post-download .component-copy .txt { font-style: normal; color: #ff6000; font-size: 12px; }
.post-download .component-copy .txt:hover { color: #cc4d00; }
.post-download .dl-btn { display: inline-flex; align-items: center; gap: 4px; padding: 6px 16px; background: #ff6000; color: #fff; border-radius: .21428571em; font-size: 13px; line-height: 1.8; text-decoration: none; transition: all .2s; }
.post-download .dl-btn:hover { background: #e65600; color: #fff; }
.post-download .dl-btn i { font-size: 15px; }
.post-download__tip { margin: 8px 0 0; font-size: 12px; color: #9aa0ab; }
.post-download__tip i { vertical-align: -1px; }
@media (max-width: 768px) {
	.post-download { font-size: 13px; }
	.post-download th, .post-download td { padding: 8px; }
	.post-download .dl-btn { padding: 4px 10px; }
	/* 小屏隐藏「文件大小」列，对齐优设移动端 */
	.post-download table tr th:nth-child(2), .post-download table tr td:nth-child(2) { display: none; }
}

/* 作者卡（优设 post-widget-author） */
.post-widget-author {
	background: #fafafa;
	border-radius: 10px;
	padding: 30px 24px;
	text-align: center;
}
.author-avatar {
	width: 70px;
	margin: 0 auto 14px;
	border-radius: 100%;
	overflow: hidden;
	border: 4px solid #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
	background: #fff;
}
.author-avatar .author-avatar__img, .author-avatar img { display: block; width: 100%; height: auto; }
.author-name { margin: 0 0 14px; font-size: 22px; line-height: 1.18; font-weight: 700; color: #3f3f3f; }
.author-name a { color: #3f3f3f; text-decoration: none; }
.author-name a:hover { color: #ff6000; }
/* 数据两栏（人气 / 文章，中间竖分隔线） */
.author-data { display: flex; margin-bottom: 20px; }
.author-data .data-item {
	width: 50%;
	text-align: center;
	position: relative;
}
.author-data .data-item:first-child::after {
	content: '';
	position: absolute;
	right: 0;
	top: 50%;
	width: 0;
	height: 28px;
	margin-top: -14px;
	border-right: 1px solid #a0a0a0;
	opacity: 0.2;
}
.author-data .data-item strong { display: block; font-weight: 400; color: #323232; font-size: 18px; margin-bottom: 3px; }
.author-data .data-item i { display: block; font-style: normal; color: #b5b5b5; font-size: 13px; }
/* 双按钮：实底橙 + 描边橙 */
.author-btns { display: flex; margin-bottom: 22px; }
.author-btns .btn-follow, .author-btns .btn-home {
	width: 50%;
	display: block;
	margin: 0 5px;
	line-height: 38px;
	border-radius: 6px;
	font-size: 14px;
	cursor: pointer;
	text-decoration: none;
	transition: opacity 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}
.author-btns .btn-follow { background: #ff6000; color: #fff; border: 1px solid #ff6000; }
.author-btns .btn-follow:hover { opacity: 0.85; }
.author-btns .btn-home { background: #fff; color: #ff6000; border: 1px solid #ff6000; }
.author-btns .btn-home:hover { background: #fff3ec; }
/* 作者其他文章（编号橙块列表） */
.author-posts { text-align: left; }
.author-posts ul { margin: 0; padding: 0; list-style: none; }
.author-posts li { margin-bottom: 10px; }
.author-posts li:last-child { margin-bottom: 0; }
.author-posts a {
	display: block;
	position: relative;
	padding-left: 30px;
	color: #3c3c3c;
	font-size: 14px;
	line-height: 1.55;
	text-decoration: none;
}
.author-posts a:hover { color: #ff6000; }
.author-posts a .num {
	position: absolute;
	left: 0;
	top: 3px;
	width: 20px;
	height: 20px;
	line-height: 20px;
	text-align: center;
	background: #ff6000;
	border-radius: 4px;
	color: #fff;
	font-style: normal;
	font-size: 12px;
}
.author-posts a strong { font-weight: 400; }
/* 文章目录（优设 post-widget-menu：圆点列表 + 滚动高亮） */
.post-widget-menu {
	margin-top: 16px;
	background: #fafafa;
	border-radius: 10px;
	padding: 24px;
}
.post-widget-menu .widget-title {
	margin: 0 0 12px;
	font-size: 17px;
	font-weight: 700;
	color: #333;
	line-height: 1.5;
	padding-bottom: 12px;
	border-bottom: 1px solid #f2f2f2;
}
.post-menu { max-height: 320px; overflow-y: auto; scrollbar-width: thin; }
.post-menu ul { margin: 0; padding: 0; list-style: none; }
.post-menu li {
	position: relative;
	display: block;
	margin-bottom: 13px;
	padding-left: 14px;
	line-height: 1.45;
	font-size: 14px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.post-menu li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	width: 4px;
	height: 4px;
	margin-top: -2px;
	border-radius: 100%;
	background: #dadada;
	transition: background-color 0.15s ease, width 0.15s ease, height 0.15s ease, margin-top 0.15s ease;
}
.post-menu li a { color: #525252; text-decoration: none; }
.post-menu li:hover::before, .post-menu li.current::before { width: 6px; height: 6px; margin-top: -3px; background: #ff6000; }
.post-menu li:hover a, .post-menu li.current a { color: #ff6000; }
.post-menu__empty { margin: 0; font-size: 13px; color: #b5b5b5; }

/* ---------- 详情页：上一篇 / 下一篇（优设卡片式） ---------- */
.post-next-prev { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 24px; }
.post-next-prev__item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px 20px;
	background: #fff;
	border-radius: 12px;
	text-decoration: none;
	transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.post-next-prev__item:hover { box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.18); transform: translateY(-2px); }
.post-next-prev__item.is-next { text-align: right; }
.post-next-prev__label { font-size: 12px; color: #9aa0aa; }
.post-next-prev__title { font-size: 14px; font-weight: 500; color: #333; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.post-next-prev__item:hover .post-next-prev__title { color: #ff6000; }

/* ---------- 统一文章卡片（us-card，优设 /archives 规格） ---------- */
.archive-allposts {
	position: relative;
	background: #f3f5f7;
	padding-bottom: 48px;
}
.us-list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 22px;
	margin-top: 24px;
}
@media (min-width: 1920px) {
	.us-list { grid-template-columns: repeat(5, 1fr); }
}
.us-item { min-width: 0; }
.us-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 10px;
	padding: 20px;
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.us-card:hover { transform: translateY(-3px); box-shadow: 0 0 30px rgba(0, 0, 0, 0.05); }
.us-card__thumb {
	position: relative;
	aspect-ratio: 100 / 60;
	background: #eef0f3;
	border-radius: 8px;
	overflow: hidden;
}
.us-card__thumb.is-placeholder { background: linear-gradient(135deg, #f2f3f5 0%, #e6e9ee 100%); }
.us-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s ease; }
/* 优设 hover：图片微缩放 + 白色蒙层 */
.us-card__thumb::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0);
	transition: background-color 0.2s ease;
	pointer-events: none;
}
.us-card:hover .us-card__thumb img { transform: scale(1.06); }
.us-card:hover .us-card__thumb::after { background: rgba(255, 255, 255, 0.2); }
.us-card__main { padding: 13px 2px 2px; }
.us-card__title {
	margin: 0 0 14px;
	font-size: 16px;
	font-weight: 400;
	color: #323232;
	line-height: 1.5625;
	height: 3.125em;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.us-card:hover .us-card__title { color: #ff6000; }
.us-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: #8a8a8a; }
.us-card__left { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.us-card__time { flex: none; }
.us-card__author { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.us-card__avatar { border-radius: 50%; width: 18px; height: 18px; }
.us-card__name { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 80px; }
.us-card__tag {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	max-width: 45%;
	color: #8a8a8a;
	font-size: 12px;
}
.us-card__tag > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.us-card__tagico {
	flex: none;
	width: 16px;
	height: 16px;
	line-height: 16px;
	border-radius: 50%;
	background: #ffefda;
	color: #ff6000;
	font-size: 10px;
	text-align: center;
	transform: scale(0.9);
}
.us-empty { grid-column: 1 / -1; padding: 48px 0; text-align: center; color: #9aa0aa; font-size: 14px; }

/* ---------- 归档页：优设 /archives 顶部大图 + 连体白卡 ---------- */
.cat-page-bg {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: clamp(240px, 22vw, 400px);
	overflow: hidden;
	pointer-events: none;
}
.cat-page-bg__img {
	position: absolute;
	inset: -36px;
	background-size: cover;
	background-position: center;
	filter: blur(16px) saturate(1.05);
	transform: scale(1.06);
}
.cat-page-bg::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 30%;
	bottom: 0;
	background: linear-gradient(0deg, #f3f5f7 0%, rgba(243, 245, 247, 0) 100%);
}
.archive-hero {
	position: relative;
	z-index: 2;
	padding: 0 0 4px;
	margin-bottom: 24px;
}
/* ud-inner 默认 flex，hero 内改为块级避免面包屑被挤成竖排 */
.archive-hero .ud-inner { display: block; padding: 0 24px; }
/* 大图上的面包屑：白色 */
.archive-hero .post-crumbs { padding: 26px 0 18px; color: rgba(255, 255, 255, 0.92); }
.archive-hero .post-crumbs a { color: rgba(255, 255, 255, 0.92); }
.archive-hero .post-crumbs .is-current { color: #fff; }
.archive-hero .post-crumbs i { color: rgba(255, 255, 255, 0.6); }

/* 分类头 + 分类菜单：一张渐变白卡连体（优设 category-header / category-list-title） */
.cat-panel {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, #ffffff 26%);
	border-radius: 10px;
}
.cat-info {
	display: grid;
	grid-template-columns: 300px 1fr 210px;
	gap: 30px;
	align-items: center;
	padding: 28px 30px 20px;
}
.cat-info__thumb {
	aspect-ratio: 100 / 63.5;
	border-radius: 10px;
	overflow: hidden;
	background: linear-gradient(135deg, #ff8a4c, #ff6000);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 46px;
}
.cat-info__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-info__title {
	margin: 0 0 10px;
	font-size: 26px;
	font-weight: 700;
	color: #333;
	display: flex;
	align-items: center;
	gap: 10px;
}
.cat-info__titleico {
	width: 34px;
	height: 34px;
	line-height: 34px;
	flex: none;
	border-radius: 8px;
	background: #ffefda;
	color: #ff6000;
	font-size: 18px;
	text-align: center;
}
.cat-info__desc p { margin: 0 0 12px; font-size: 14px; color: #8a8a8a; line-height: 1.65; height: 3.3em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cat-info__hot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13px; height: 30px; overflow: hidden; }
.cat-info__hot-label { font-style: normal; color: #8a8a8a; }
/* 优设 btn-orange-light：橙 10% 透明底，hover 实底 */
.cat-info__hot-btn {
	padding: 0 12px;
	line-height: 28px;
	border-radius: 6px;
	background: rgba(255, 140, 52, 0.1);
	color: #ff6000;
	font-size: 13px;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.18s ease, color 0.18s ease;
}
.cat-info__hot-btn:hover { background: #ff6000; color: #fff; }
/* 右侧数字统计卡（优设 c-extra） */
.cat-info__extra {
	padding: 22px 18px;
	border-radius: 10px;
	background: linear-gradient(180deg, rgba(255, 96, 0, 0.06) 0%, rgba(255, 255, 255, 0.06) 100%);
	text-align: center;
}
.cat-info__extra strong { display: block; font-size: 34px; line-height: 1.2; color: #ff6000; margin-bottom: 4px; }
.cat-info__extra-txt { display: block; font-style: normal; font-size: 13px; color: #8a8a8a; margin-bottom: 16px; }
.cat-info__btn {
	display: block;
	line-height: 38px;
	border-radius: 8px;
	background: #ff6000;
	color: #fff;
	font-size: 14px;
	text-decoration: none;
	transition: background-color 0.18s ease;
}
.cat-info__btn:hover { background: #e65500; color: #fff; }

/* 分类菜单：与分类头同卡连体，菜单项均分宽度居中（优设 category-list-title） */
.cat-menu-bar {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 6px 24px 16px;
}
/* overflow 必须 visible，否则 hover 下拉会被裁剪 */
.cat-menu { display: flex; align-items: center; flex: 1; min-width: 0; }
.cat-menu .m-item {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	text-align: center;
}
.cat-menu .a-0 {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	padding: 0 10px;
	line-height: 34px;
	border-radius: 9px;
	font-size: 15px;
	color: #5a5a5a;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.cat-menu .m-item:hover .a-0,
.cat-menu .m-item.is-current .a-0,
.cat-menu .a-0.is-current { background: #ff6000; color: #fff; }
.cat-menu .a-0__caret {
	margin-left: -2px;
	font-size: 15px;
	opacity: 0.65;
	transition: transform 0.2s ease;
}
.cat-menu .m-item:hover .a-0__caret { transform: rotate(180deg); opacity: 1; }

/* 下级分类：hover 弹出白色圆角下拉（优设 m-sub，padding-top 作悬停桥接） */
.cat-menu .m-sub {
	position: absolute;
	left: 50%;
	top: 100%;
	transform: translateX(-50%);
	padding-top: 15px;
	display: none;
	z-index: 60;
}
.cat-menu .m-item:hover .m-sub { display: block; }
.cat-menu .m-sub-box {
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 6px 30px rgba(0, 0, 0, 0.08);
	padding: 12px;
}
.cat-menu .m-sub-wrap { display: flex; flex-direction: column; gap: 2px; white-space: nowrap; }
.cat-menu .a-1 {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px;
	border-radius: 8px;
	font-size: 14px;
	color: #5a5a5a;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s ease, color 0.15s ease;
}
.cat-menu .a-1:hover { color: #ff6000; background: #fff7f2; }
.cat-menu .a-1.is-current { color: #ff6000; background: #fff3ec; font-weight: 600; }
.cat-menu-sort { display: flex; align-items: center; flex: none; }

/* 列表区域与页面边缘留白（ud-inner 本身无 padding） */
.archive-allposts .ud-inner--page { padding-left: 30px; padding-right: 30px; }

/* ---------- 暗黑模式 ---------- */
body[data-theme="dark"] .singular-bg { background-color: var(--hero-color, #71c89d); }
body[data-theme="dark"] .post-header::before { background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(22, 25, 33, 0.95) 100%); }
body[data-theme="dark"] .post-content { background: #262a36; }
/* 正文富文本暗色（优设无暗色，按站点暗色体系推导） */
body[data-theme="dark"] .post-article { color: #b9bfcf; }
body[data-theme="dark"] .post-article h2, body[data-theme="dark"] .post-article h3,
body[data-theme="dark"] .post-article h4, body[data-theme="dark"] .post-article h5,
body[data-theme="dark"] .post-article h6, body[data-theme="dark"] .post-article strong { color: #e6e8ee; }
body[data-theme="dark"] .post-article a { color: #ff8a52; border-bottom-color: rgba(255, 138, 82, 0.35); }
body[data-theme="dark"] .post-article a:hover { border-bottom-color: #ff8a52; }
body[data-theme="dark"] .post-article blockquote { background: #2b3040; }
body[data-theme="dark"] .post-article blockquote::before { color: #4a5060; }
body[data-theme="dark"] .post-article code { background: #2b3040; color: #ff9d6b; }
body[data-theme="dark"] .post-article pre { background: #2b3040; }
body[data-theme="dark"] .post-article pre code { color: #b9bfcf; background: transparent; }
body[data-theme="dark"] .post-article th, body[data-theme="dark"] .post-article td { border-color: #333642; }
body[data-theme="dark"] .post-article th { background: #2b3040; color: #e6e8ee; }
body[data-theme="dark"] .post-article hr { background: #333642; }
body[data-theme="dark"] .post-article figcaption { color: #7a7f89; }
body[data-theme="dark"] .post-widget-author,
body[data-theme="dark"] .post-widget-menu { background: #22252f; }
body[data-theme="dark"] .post-widget-menu .widget-title { color: #e2e5ec; border-bottom-color: #333642; }
body[data-theme="dark"] .author-name a { color: #e6e8ee; }
body[data-theme="dark"] .author-data .data-item strong { color: #e6e8ee; }
body[data-theme="dark"] .author-btns .btn-home { background: #22252f; }
body[data-theme="dark"] .author-btns .btn-home:hover { background: #2b3040; }
body[data-theme="dark"] .author-posts a { color: #c7ccd8; }
body[data-theme="dark"] .post-menu li a { color: #b9bfcf; }
body[data-theme="dark"] .article-author { background: #2b3040; }
body[data-theme="dark"] .article-author__name { color: #e6e8ee; }
body[data-theme="dark"] .article-author__desc { color: #9aa2b4; }
body[data-theme="dark"] .post-btns--end .post-btn { background: #2b3040; color: #c7ccd8; }
body[data-theme="dark"] .post-btns--end .post-btn:hover { background: rgba(255, 96, 0, 0.18); color: #ff8733; }
body[data-theme="dark"] .post-next-prev__item { background: #262a36; }
body[data-theme="dark"] .post-next-prev__title { color: #d5d9e2; }
body[data-theme="dark"] .post-next-prev__item:hover { box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.6); }
body[data-theme="dark"] .archive-allposts { background: #1d2029; }
body[data-theme="dark"] .cat-page-bg::after { background: linear-gradient(0deg, #1d2029 0%, rgba(29, 32, 41, 0) 100%); }
body[data-theme="dark"] .us-card { background: #262a36; }
body[data-theme="dark"] .us-card:hover { box-shadow: 0 0 30px rgba(0, 0, 0, 0.35); }
body[data-theme="dark"] .us-card__thumb { background: #2b3040; }
body[data-theme="dark"] .us-card__thumb.is-placeholder { background: linear-gradient(135deg, #2b3040 0%, #23283a 100%); }
body[data-theme="dark"] .us-card__title { color: #e2e5ec; }
body[data-theme="dark"] .us-card:hover .us-card__title { color: #ff8733; }
body[data-theme="dark"] .us-card__meta { color: #8a92a5; }
body[data-theme="dark"] .us-card__tag { color: #a7aebd; }
body[data-theme="dark"] .cat-panel { background: linear-gradient(180deg, rgba(38, 42, 54, 0.55) 0%, #262a36 26%); }
body[data-theme="dark"] .cat-info__title { color: #eceef3; }
body[data-theme="dark"] .cat-info__desc p { color: #a7aebd; }
body[data-theme="dark"] .cat-info__hot-label { color: #8a92a5; }
body[data-theme="dark"] .cat-info__hot-btn { background: rgba(255, 96, 0, 0.15); color: #ff8733; }
body[data-theme="dark"] .cat-info__hot-btn:hover { background: #ff6000; color: #fff; }
body[data-theme="dark"] .cat-info__extra { background: linear-gradient(180deg, rgba(255, 96, 0, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%); }
body[data-theme="dark"] .cat-info__extra-txt { color: #9aa2b4; }
body[data-theme="dark"] .cat-menu .a-0 { color: #b9bfcf; }
body[data-theme="dark"] .cat-menu .m-item:hover .a-0,
body[data-theme="dark"] .cat-menu .m-item.is-current .a-0,
body[data-theme="dark"] .cat-menu .a-0.is-current { background: #ff6000; color: #fff; }
body[data-theme="dark"] .cat-menu .m-sub-box { background: #2b3040; box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5); }
body[data-theme="dark"] .cat-menu .a-1 { color: #b9bfcf; }
body[data-theme="dark"] .cat-menu .a-1:hover { color: #ff8733; background: rgba(255, 96, 0, 0.1); }
body[data-theme="dark"] .cat-menu .a-1.is-current { color: #ff8733; background: rgba(255, 96, 0, 0.15); }
/* 左侧操作栏 + 分享弹窗 */
body[data-theme="dark"] .post-band { background: #1d2029; }
body[data-theme="dark"] .rail-card { background: #22252f; }
body[data-theme="dark"] .rail-date span { color: #e6e8ee; }
body[data-theme="dark"] .rail-line { background: #333642; }
body[data-theme="dark"] .rail-btn { background: #2b3040; color: #c7ccd8; box-shadow: none; }
body[data-theme="dark"] .rail-btn:hover { color: #ff8733; }
body[data-theme="dark"] .rail-btn.is-liked, body[data-theme="dark"] .rail-btn.is-faved { background: #ff6000; color: #fff; }
body[data-theme="dark"] .rail-num { color: #8a92a5; }
body[data-theme="dark"] .toolkit-group { background: #22252f; }
body[data-theme="dark"] .toolkit-btn { color: #8a92a5; }
body[data-theme="dark"] .toolkit-btn::after { border-bottom-color: #333642; }
body[data-theme="dark"] .toolkit-btn:hover, body[data-theme="dark"] .toolkit-btn.is-faved { color: #ff8733; }
body[data-theme="dark"] .lx-share__panel { background: #262a36; }
body[data-theme="dark"] .lx-share__head { color: #e6e8ee; }
body[data-theme="dark"] .lx-share__item { color: #b9bfcf; }
body[data-theme="dark"] .lx-share__item:hover { background: #2b3040; }

/* 下载板块（优设 post-download）暗色 */
body[data-theme="dark"] .post-download table { border-color: #333845; }
body[data-theme="dark"] .post-download th { background: #262a36; color: #c9cdd8; }
body[data-theme="dark"] .post-download td { background: #1f232e; color: #9aa0ab; }
body[data-theme="dark"] .post-download .dl-name { color: #e6e8ee; }
body[data-theme="dark"] .post-download__tip { color: #6b7284; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
	.cat-info { grid-template-columns: 240px 1fr; }
	.cat-info__extra { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 18px; }
	.cat-info__extra strong { margin-bottom: 0; }
	.cat-info__extra-txt { margin-bottom: 0; }
	.cat-info__btn { line-height: 32px; padding: 0 18px; width: auto; }
	/* 平板以下：菜单恢复横滑，隐藏 hover 下拉（优设同款处理） */
	.cat-menu { overflow-x: auto; scrollbar-width: none; }
	.cat-menu::-webkit-scrollbar { display: none; }
	.cat-menu .m-sub { display: none !important; }
	.cat-menu .a-0__caret { display: none; }
}
@media (max-width: 768px) {
	.post-header { padding: 48px 0 32px; }
	.post-header .post-crumbs { left: 16px; top: 1.2em; font-size: 12px; }
	.post-title { font-size: 20px; }
	.post-btn { line-height: 38px; padding: 0 22px; }
	.post-content { padding: 20px 16px; }
	.post-next-prev { grid-template-columns: 1fr; }
	.cat-page-bg { height: 220px; }
	.cat-info { grid-template-columns: 1fr; gap: 16px; padding: 18px 16px 12px; }
	.cat-info__thumb { max-width: 320px; }
	.cat-info__title { font-size: 21px; }
	.cat-menu-bar { flex-direction: column; align-items: stretch; gap: 8px; padding: 0 12px 12px; }
	.cat-menu .m-item { flex: 0 0 auto; }
	.cat-menu .a-0 { padding: 0 14px; }
	.archive-allposts .ud-inner--page { padding-left: 16px; padding-right: 16px; }
	.us-list { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.us-card { padding: 12px; }
	.us-card__main { padding: 10px 2px 2px; }
	.us-card__title { font-size: 14px; height: auto; min-height: 2.8em; margin-bottom: 10px; }
	.us-card__name { display: none; }
}

/* ============================================================
 * 用户主页（author.php，优设 usercenter 同构）
 * ============================================================ */
.lx-usercenter { padding-bottom: 48px; }
/* 优设 1232px 容器：头部 / Tab 菜单 / 内容区三个板块统一限宽 */
.lx-usercenter .ud-inner--page { max-width: 1232px; box-sizing: border-box; }
.uc-content { display: block; padding: 0 24px; }

/* ① 头部：浅渐变底色 + 底部居中 45° 菱形装饰（优设 user-header::before，rem=100px 换算），无图片 */
.uc-header { position: relative; overflow: hidden; margin-bottom: 24px; background: linear-gradient(180deg, #edf4fb 0%, #f7fafd 100%); }
.uc-header::before {
	content: '';
	display: block;
	width: 400px;
	height: 400px;
	background-image: linear-gradient(-45deg, #edf4fb 31%, #ffffff 70%);
	position: absolute;
	left: 50%;
	bottom: -240px;
	margin-left: -70px;
	border-radius: 60px;
	transform: rotate(-45deg);
	opacity: 0.5;
	pointer-events: none;
}
.uc-header .ud-inner--page { position: relative; z-index: 2; display: block; padding: 44px 24px 26px; }

.uc-detail { display: flex; align-items: center; gap: 22px; }
.uc-avatar { flex: 0 0 auto; width: 104px; height: 104px; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 4px 18px rgba(30, 40, 60, 0.14); }
.uc-avatar__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uc-detail__main { min-width: 0; }
.uc-name { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; font-size: 24px; line-height: 1.3; color: #333; }
.uc-name__text { font-style: normal; font-weight: 700; }
.uc-name__badge {
	display: inline-block; padding: 3px 10px; border-radius: 999px;
	background: #fff3e8; color: #ff6000; font-size: 12px; font-weight: 600; line-height: 1.4;
}
.uc-desc { margin: 0; font-size: 14px; color: #6a6a6a; line-height: 1.7; }

.uc-data { display: flex; flex-wrap: wrap; gap: 8px 36px; margin-top: 22px; }
.uc-data__item { display: flex; align-items: baseline; gap: 6px; }
.uc-data__item strong { font-size: 20px; color: #333; font-weight: 700; }
.uc-data__item span { font-size: 13px; color: #9a9a9a; }

/* ② Tab 菜单（优设 user-menu：白底横排，current 橙底） */
.uc-menu { background: #fff; border-bottom: 1px solid #eef0f2; margin-bottom: 24px; }
body[data-theme="dark"] .uc-menu { background: #262a36; border-bottom-color: #2f3442; }
.uc-menu .ud-inner--page { display: block; padding: 0 24px; }
.uc-menu__scroller { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.uc-menu__scroller::-webkit-scrollbar { display: none; }
.uc-menu__item {
	display: inline-flex; align-items: center; gap: 6px;
	padding: 13px 18px; border-radius: 10px 10px 0 0;
	font-size: 15px; color: #555; white-space: nowrap;
	border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.uc-menu__item i { font-size: 17px; }
.uc-menu__item:hover { color: #ff6000; }
.uc-menu__item.is-current { color: #ff6000; border-bottom-color: #ff6000; font-weight: 600; }

/* ③ 列表：子标题行 + 卡片网格 */
.uc-submenu { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.uc-submenu__title { font-size: 17px; font-weight: 700; color: #333; }
.uc-submenu__count { font-size: 13px; color: #9a9a9a; }

.uc-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.uc-item__wrap { display: block; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 4px rgba(30, 40, 60, 0.06); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.uc-item__wrap:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(30, 40, 60, 0.12); }
.uc-item__thumb { position: relative; padding-top: 62.5%; background: #f0f2f5; }
.uc-item__thumb.is-placeholder { background: linear-gradient(135deg, #eef1f5, #e2e7ee); }
.uc-item__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.uc-item__term {
	position: absolute; left: 10px; bottom: 10px;
	max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
	padding: 3px 9px; border-radius: 6px;
	background: rgba(0, 0, 0, 0.55); color: #fff; font-size: 12px; line-height: 1.5;
}
.uc-item__main { padding: 12px 14px 14px; }
.uc-item__title {
	margin: 0 0 10px; font-size: 15px; line-height: 1.5; color: #333; font-weight: 600;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	min-height: 3em;
}
.uc-item__meta { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: #9a9a9a; }
.uc-item__meta .meta-views { display: inline-flex; align-items: center; gap: 4px; }
.uc-item__meta .meta-views i { font-size: 14px; }

/* 分页（复用主题既有 pagination 样式，补充留白） */
.lx-usercenter .pagination, .lx-usercenter .nav-links { margin-top: 28px; }

/* 响应式 */
@media (max-width: 1330px) {
	.uc-list { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (max-width: 900px) {
	.uc-list { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.uc-header .ud-inner--page { padding: 32px 16px 20px; }
	.uc-content { padding: 0 16px; }
	.uc-detail { gap: 16px; }
	.uc-avatar { width: 84px; height: 84px; }
	.uc-name { font-size: 20px; }
	.uc-data { gap: 6px 22px; margin-top: 16px; }
}
@media (max-width: 560px) {
	.uc-list { grid-template-columns: 1fr; }
}

/* 暗色模式 */
body[data-theme="dark"] .uc-header { background: linear-gradient(180deg, #2b3346 0%, #262a36 100%); }
body[data-theme="dark"] .uc-header::before { background-image: linear-gradient(-45deg, #2b3346 31%, #333a4d 70%); opacity: 0.4; }
body[data-theme="dark"] .uc-avatar { background: #2b3040; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4); }
body[data-theme="dark"] .uc-name { color: #e6e8ee; }
body[data-theme="dark"] .uc-name__badge { background: rgba(255, 96, 0, 0.16); color: #ff8a52; }
body[data-theme="dark"] .uc-desc { color: #9aa1b2; }
body[data-theme="dark"] .uc-data__item strong { color: #e6e8ee; }
body[data-theme="dark"] .uc-data__item span { color: #7d8496; }
body[data-theme="dark"] .uc-menu__item { color: #b9bfcf; }
body[data-theme="dark"] .uc-menu__item:hover, body[data-theme="dark"] .uc-menu__item.is-current { color: #ff8a52; }
body[data-theme="dark"] .uc-submenu__title { color: #e6e8ee; }
body[data-theme="dark"] .uc-item__wrap { background: #262a36; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3); }
body[data-theme="dark"] .uc-item__wrap:hover { box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45); }
body[data-theme="dark"] .uc-item__thumb { background: #2b3040; }
body[data-theme="dark"] .uc-item__title { color: #e6e8ee; }
body[data-theme="dark"] .uc-item__meta { color: #7d8496; }
