/*
Begin 新版风格覆盖层
参照 Begin 2026（xianhuo.org 演示）的文章页正文与侧边栏视觉
加载于 style.css 之后，仅覆盖视觉样式，不改动原有文件
*/

:root {
	--be-shadow: rgba(0, 0, 0, 0.073) inset;
	--be-bg-body: #eff0f2;
	--be-bg-white: #fff;
	--be-bg-grey-f8: #f7f8f9;
	--be-bg-ht: #4d8cb8;
	--be-bg-htwo: #c40000;
	--be-hover: #4d8cb8;
	--be-blue: #4d8cb8;
	--be-grey-3: #333;
	--be-grey-4: #444;
	--be-grey-6: #666;
	--be-grey-9: #999;
	--be-border-t: #ececec;
}

/** 页面底色（灰底白卡片设计语言） **/
body {
	background: var(--be-bg-body);
}

/** 卡片体系：无边框、圆角 8px、内描边阴影 **/
.post,
#page .page,
.bulletin,
.type-attachment,
.authorbio,
#related-img,
.widget {
	background: var(--be-bg-white);
	border: none;
	border-radius: 8px;
	box-shadow: 0 0 0 1px var(--be-shadow);
	margin: 0 0 10px 0;
}

/** 详情页卡片加大内边距（新版 post-item 规格） **/
.single-post .post,
.page .post,
.single-picture .picture,
.single-tao .tao,
.single-video .video {
	padding: 30px 30px 31px 30px;
}

/** 侧边栏 widget 标题条 **/
#sidebar h3,
#sidebar-l h3 {
	background: var(--be-bg-grey-f8);
	height: 38px;
	line-height: 38px;
	margin: 1px 1px 0 1px;
	border: none;
	border-bottom: none;
	border-radius: 8px 8px 0 0;
}

.widget-title {
	padding: 0 0 0 16px;
}

/** widget 标题四圆点装饰（新版样式） **/
.title-i {
	width: 14px;
	height: auto;
}

.title-i span {
	background: var(--be-grey-9);
	width: 5px;
	height: 5px;
	margin: 0 2px 2px 0;
	border: none;
	border-radius: 50%;
	-webkit-transition: background 0.3s ease;
	transition: background 0.3s ease;
}

.title-i-t,
.title-i-b {
	background: var(--be-grey-9);
}

.widget-title:hover .title-i span,
.cat-title:hover .title-i span {
	background: var(--be-grey-6);
}

.widget-title .title-i {
	margin: 13px 10px 0 0;
}

/** 侧边栏文章列表（随机 / 热门文章） **/
.hot_commend ul li {
	border-bottom: none;
}

.hot_commend .thumbnail,
.new_cat .thumbnail {
	width: 100px;
	height: 75px;
	margin: 8px 15px 8px 0;
}

.hot_commend a img,
.new_cat a img {
	width: 100px;
	height: 75px;
	object-fit: cover;
}

.hot_commend .hot-title,
.new_cat .new-title {
	height: 53px;
	margin-top: 5px;
	line-height: 25px;
	overflow: hidden;
	white-space: normal;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	word-break: break-all;
}

.hot_commend .views,
.new_cat .date,
.new_cat .views {
	float: right;
	color: var(--be-grey-9);
}

/** 文章标题（新版 entry-header-c 居中变体 + 左色条） **/
.single-post .entry-header h1,
.single-bulletin .entry-header h1,
.single-video .entry-header h1,
.single-tao .entry-header h1,
.single-sites .entry-header h1,
.single-picture .entry-header h1 {
	font-size: 22px;
	font-size: 2.2rem;
	font-weight: 700;
	line-height: 1.5;
	text-align: center;
	margin: 20px -30px 0 -34px;
	padding: 5px 26px;
	border-left: 5px solid var(--be-bg-ht);
	border-right: none;
}

/** 文章信息行（居中排布） **/
.begin-single-meta {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	font-size: 13px;
	font-size: 1.3rem;
	line-height: 23px;
	margin: 5px 0 15px 0;
}

.begin-single-meta span {
	float: none;
	margin: 0 5px 0 0;
}

.begin-single-meta span:last-child {
	margin: 0;
}

.begin-single-meta a:hover {
	color: var(--be-hover);
}

/** 正文排版（新版规格） **/
.single-content {
	margin-top: 5px;
}

.single-content p {
	text-indent: 0;
	margin: 15px 0;
	text-align: justify;
}

.single-content p:first-child {
	margin: 0 0 15px 0;
}

.single-content p a,
.single-content p a:visited {
	color: var(--be-blue);
}

.single-content p a:hover {
	color: var(--be-grey-4) !important;
}

.single-content h2 {
	font-size: 20px;
	font-size: 2rem;
	line-height: 190%;
	margin: 10px -30px 10px -34px;
	padding: 0 30px;
	border-left: 5px solid var(--be-bg-htwo);
}

.single-content h3 {
	font-size: 19px;
	font-size: 1.9rem;
	line-height: 190%;
	margin: 2px -30px 10px -34px;
	padding: 0 30px;
	border-left: 5px solid var(--be-bg-ht);
}

.single-content h4 {
	font-size: 17px;
	font-size: 1.7rem;
	line-height: 190%;
	text-indent: 0;
	margin: 2px -30px 10px -34px;
	padding: 0 30px;
	border-left: 5px solid var(--be-bg-ht);
}

.single-content hr {
	height: 1px;
	margin: 10px -30px;
	border: none;
	border-top: 1px solid var(--be-border-t);
}

.single-content ul li,
.single-content ol li {
	line-height: 220%;
	margin: 0 35px 0 3em;
}

.single-content ul li {
	list-style: disc;
}

/** 文章标签（灰底白字胶囊） **/
.single-tag ul {
	margin: 0 -2px 6px -2px;
}

.single-tag li {
	width: 16.66666666666667%;
	padding: 0 2px 4px 2px;
}

.single-tag li a {
	background: var(--be-grey-6);
	color: #fff;
	padding: 6px 4px;
	border-radius: 5px;
	-webkit-transition: transform 0.1s linear;
	transition: transform 0.1s linear;
}

.single-tag li a:hover {
	background: var(--be-grey-6);
	color: #fff;
	transform: scale(0.95);
	-webkit-transition: all 0.1s ease-in 0s;
	transition: all 0.1s ease-in 0s;
}

/** 作者信息卡 **/
.authorbio {
	padding: 10px 15px;
}

.authorbio .avatar {
	width: 48px;
	height: 48px;
	margin: 7px 10px 0 0;
	border-radius: 50%;
}

/** 相关图片 **/
#related-img {
	border-radius: 8px;
}

.related-site-img {
	border-radius: 5px;
	overflow: hidden;
}

/** 上下篇：带缩略图双卡片（新版 post-nav-img 结构） **/
.post-nav-img {
	margin: 0 0 10px 0;
	overflow: hidden;
}

.nav-img-box {
	position: relative;
	background: var(--be-bg-white);
	float: left;
	width: 50%;
	margin: 0 -1px 0 0;
	box-shadow: 0 0 0 1px var(--be-shadow);
}

.post-previous-box {
	border-radius: 8px 0 0 8px;
}

.post-next-box {
	float: left;
	border-radius: 0 8px 8px 0;
}

.nav-thumbnail {
	position: absolute;
	top: 18px;
	left: 18px;
	width: 100px;
	height: 75px;
	overflow: hidden;
	border-radius: 5px;
}

.nav-thumbnail img {
	width: 100px;
	height: 75px;
	object-fit: cover;
	display: block;
}

.nav-img {
	height: 110px;
	padding: 20px 20px 20px 130px;
}

.nav-img a {
	display: block;
}

.post-nav-img .post-nav {
	color: var(--be-grey-9);
	margin: 5px 0 10px 0;
}

.nav-img-t {
	color: var(--be-grey-4);
	display: block;
	white-space: nowrap;
	word-wrap: normal;
	text-overflow: ellipsis;
	overflow: hidden;
}

.nav-img-box:hover .post-nav,
.nav-img-box:hover .nav-img-t {
	color: var(--be-grey-3);
}

/** 响应式 **/
@media screen and (max-width: 1025px) {
	#sidebar,
	#sidebar-l {
		width: 0;
		display: none;
	}

	#primary {
		width: 99.9%;
	}

	.entry-header h1 {
		margin: 0;
		font-size: 21px;
		font-size: 2.1rem;
	}
}

@media screen and (max-width: 600px) {
	.nav-thumbnail {
		width: 140px;
		left: 50%;
		margin-left: -70px;
		top: 15px;
	}

	.nav-img {
		height: 170px;
		padding: 100px 15px 20px 15px;
		text-align: center;
	}
}

@media screen and (max-width: 440px) {
	.post {
		padding: 15px;
	}

	.single-post .post {
		padding: 22px 15px 16px 15px;
	}

	.single-content h2,
	.single-content h3,
	.single-content h4 {
		margin-left: -15px;
		margin-right: -15px;
		padding: 0 15px;
	}

	.single-content hr {
		margin: 10px -15px;
	}
}
