/* ========== diy.css 自定义样式(重建版 v30) ========== */

/* ---------- 1. 导航基础 ---------- */
body { }
.diy-navbar-transition .site-header {
	box-shadow: none;
	background-color: #000 !important;
}
.site-footer { }
.diy-navbar-transition .navbar .menu-item > a {
	color: #fff;
	font-size: 20px;
	line-height: 68px;
}
.diy-navbar-transition .navbar .navbar-button {
	background-color: transparent !important;
	color: #333;
}
.diy-navbar-transition .burger:before,
.diy-navbar-transition .burger:after {
	background-color: #333;
}

/* ---------- 2. 卡片标题与角标 ---------- */
.entry-header .diy-entry-title {
	font-size: 16px;
	font-family: "SimHei";
	color: #000;
	letter-spacing: -0.2px;
	margin-bottom: 0;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	white-space: normal;
	height: 24px;
	line-height: 18px;
}
.header-gap {
	height: 68px;
}
.navbar {
	height: 68px;
}
.item_label {
	width: 72px;
	height: 72.5px;
	position: absolute;
	top: 0;
	z-index: 70;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-orient: horizontal;
	-webkit-box-direction: normal;
	-ms-flex-direction: row;
	flex-direction: row;
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	justify-content: center;
	right: 0;
}
.item_label .image_auto {
	width: 72px;
	height: 72.5px;
	line-height: 32px;
	z-index: 1;
	text-align: center;
	background-size: 72px 72.5px;
}
.item_label .image_auto_1 {
	background-image: url(../image/jzattr1.gif);
}
.item_label .image_auto_2 {
	background-image: url(../image/jzattr2.gif);
}
.item_label .image_auto_3 {
	background-image: url(../image/jzattr3.gif);
}
.item_label .image_txt {
	font-size: 16px;
	color: #fff;
	font-weight: 600;
	margin-bottom: 20px;
}
.navbar .logo {
	margin-right: 12px;
	width: auto;
	max-height: 56px;
	position: relative;
	margin-top: 7px;
}

/* ---------- 3. 移动端基础适配 ---------- */
@media (max-width: 768px) {
	.index-span-dot {
		font-size: 12px !important;
	}
	.index-dot {
		width: 4px !important;
		height: 4px !important;
		margin-right: 1px !important;
	}
	.post-grid .entry-media {
		margin: -2px;
	}
	.item_label .image_txt {
		font-size: 12px;
		color: #fff;
		font-weight: normal;
		margin-bottom: 20px;
	}
	.item_label .image_auto {
		width: 49px;
		height: 49.5px;
		line-height: 18px;
		z-index: 1;
		text-align: center;
		background-size: 49px 49.5px;
		background-repeat: no-repeat;
	}
	.item_label {
		top: -12px;
		right: -12px;
	}
	.navbar .logo {
		margin-right: 12px;
		width: auto;
		max-height: 30px;
		position: relative;
	}
	.navbar {
		height: 48px;
	}
	.header-gap {
		height: 48px;
	}
}

/* ---------- 4. 摘要 / 买服浮窗 / 搜索 ---------- */
.entry-excerpt {
	margin-top: 0;
	letter-spacing: 0;
}
.post-grid .entry-header {
	margin-top: 10px;
}
.maifen_box {
	position: fixed;
	bottom: 140px;
	left: 1px;
	display: block;
	width: 135px;
	height: auto;
	z-index: 998;
}
.maifen_box img {
	width: 100%;
}
.module.search-bg .container {
	z-index: 1;
	margin: auto;
	padding-bottom: 40px;
	padding-top: 30px;
	max-width: 820px;
}
@media (max-width: 768px) {
	.module.search-bg .container {
		padding-top: 0;
		padding-bottom: 10px;
		max-width: 100%;
	}
}
.search-form .search-fields {
	border-radius: 30px;
}

/* ---------- 5. 文章代码块 ---------- */
.article-content pre:after,
.wp-block-code:after {
	content: " ";
	position: absolute;
	-webkit-border-radius: 50%;
	border-radius: 50%;
	background: #fc625d;
	width: 0;
	height: 0;
	top: 0;
	left: 0;
	margin-top: 8px;
	-webkit-box-shadow: 20px 0 #fdbc40, 40px 0 #35cd4b;
	box-shadow: 20px 0 #fdbc40, 40px 0 #35cd4b;
}
.wp-block-code,
.article-content pre {
	position: relative;
	padding: 12px 0 0;
	background: transparent;
	border-radius: 3px;
	border: 0;
	overflow-y: unset;
	color: #333 !important;
}
.slicknav_menu .menu-item > a {
	font-size: 18px;
}
.off-canvas {
	width: 180px;
}

/* ---------- 6. 弹层 ---------- */
.layer_notice {
	float: left;
	height: auto;
	width: auto;
	overflow: hidden;
	background: #ffffff;
	padding: 10px;
	display: none;
	text-align: center;
}
.layer_notice img {
	display: block;
	margin: 0 auto;
}
.layer_cadpa {
	height: auto;
	width: auto;
	overflow: hidden;
	background: #ffffff;
	padding: 10px;
	display: none;
	text-align: center;
}
.layer_cadpa img {
	display: block;
	margin: 0 auto;
}
.layer_jvbao {
	height: auto;
	width: auto;
	overflow: hidden;
	background: #ffffff;
	padding: 10px;
	display: none;
	text-align: center;
}
.layer_jvbao img {
	display: block;
	margin: 0 auto;
}
.flzs_box {
	height: auto;
	width: 500px;
	overflow: hidden;
	background: #ffffff;
	padding: 10px;
	display: none;
	text-align: center;
}
.flzs_box img {
	display: block;
	margin: 0 auto;
}
.layui-all-shade {
	z-index: 19891015;
	background-color: rgb(0, 0, 0);
	opacity: 0.9;
	width: 100%;
	height: 100%;
	position: fixed;
}

/* ---------- 7. 卡片容器基础 ---------- */
.posts-wrapper .post-list,
.posts-wrapper .post-grid,
.carousel .post-grid {
	position: relative;
	overflow: hidden;
	background-color: #fff;
	padding: 14px;
	border-radius: 0.5rem;
	-webkit-transition: all 0.3s;
	-o-transition: all 0.3s;
	transition: all 0.3s;
}
@media (max-width: 768px) {
	.posts-wrapper .post-list,
	.posts-wrapper .post-grid,
	.carousel .post-grid {
		padding: 5px;
	}
	.entry-header .diy-entry-title {
		height: 26px;
		line-height: 26px;
	}
	.post-grid .entry-header {
		margin-top: 4px;
	}
	.search-form .search-fields button {
		height: 44px;
	}
}
@keyframes breathing {
	0% {
		transform: scale(1);
	}
	50% {
		transform: scale(1.08);
	}
	100% {
		transform: scale(1);
	}
}

/* ---------- 8. 推广浮层定位 ---------- */
.cadpa-box {
	position: absolute;
	height: auto;
	width: 80px;
	overflow: hidden;
	padding: 10px;
	text-align: center;
	right: 80px;
	top: 145px;
	cursor: pointer;
	z-index: 999;
}
.cadpa-box img {
	display: block;
	margin: 0 auto;
}
.jvbao-box {
	position: fixed;
	height: auto;
	width: 143px;
	overflow: hidden;
	padding: 10px;
	text-align: center;
	left: 18px;
	top: 575px;
	cursor: pointer;
	z-index: 999;
}
.jvbao-box img {
	display: block;
	margin: 0 auto;
}
.mfjb-box {
	position: fixed;
	height: auto;
	width: 224px;
	overflow: hidden;
	padding: 10px;
	text-align: center;
	left: 8px;
	top: 465px;
	cursor: pointer;
	z-index: 999;
}
.mfjb-box img {
	display: block;
	margin: 0 auto;
}
.djzxkf-box {
	position: fixed;
	height: auto;
	width: 194px;
	overflow: hidden;
	padding: 10px;
	text-align: center;
	left: 8px;
	top: 258px;
	cursor: pointer;
	z-index: 999;
}
.djzxkf-box img {
	display: block;
	margin: 0 auto;
}
.flzs-box {
	position: fixed;
	height: auto;
	width: 192px;
	overflow: hidden;
	padding: 10px;
	text-align: center;
	left: 9px;
	top: 60px;
	cursor: pointer;
	z-index: 999;
}
.flzs-box img {
	display: block;
	margin: 0 auto;
}
.hongbao-box {
	position: fixed;
	height: auto;
	width: 214px;
	overflow: hidden;
	padding: 0;
	text-align: center;
	left: -10px;
	top: 330px;
	cursor: pointer;
	z-index: 999;
}
.hongbao-box img {
	display: block;
	margin: 0 auto;
}
.navbar .nav-list > .menu-item > a {
	margin: 0 18px;
}
@media (max-width: 1800px) {
	.mfjb-box {
		display: none !important;
	}
	.mfjb-box img {
		display: none !important;
	}
}
@media (max-width: 768px) {
	.cadpa-box {
		position: absolute;
		height: auto;
		width: 40px;
		overflow: hidden;
		padding: 10px;
		text-align: center;
		right: 0;
		top: 60px;
	}
	.jvbao-box {
		position: absolute;
		height: auto;
		width: 52px;
		overflow: hidden;
		padding: 10px;
		text-align: center;
		left: 0;
		top: 130px;
		z-index: 999;
	}
	.hongbao-box {
		position: fixed;
		height: auto;
		width: 59px;
		overflow: hidden;
		padding: 0;
		text-align: center;
		left: 0;
		top: 68px;
		cursor: pointer;
		z-index: 999;
	}
	.djzxkf-box {
		position: fixed;
		height: auto;
		width: 108px;
		overflow: hidden;
		padding: 10px;
		text-align: center;
		left: -10px;
		top: 158px;
	}
	.djzxkf-box img {
		display: block;
		margin: 0 auto;
	}
	.az-contents {
		display: none;
	}
}
@media (min-width: 992px) {
	.col-lg-2 {
		-ms-flex: 0 0 20%;
		flex: 0 0 20%;
		max-width: 20%;
	}
	.navbar .main-menu {
	}
}
@media (max-width: 992px) {
	.canvas-opened .off-canvas {
		z-index: 9999;
	}
	.post-grid .entry-header .entry-title {
		font-size: 13px;
	}
}
@media (min-width: 1200px) {
	.wide-screen .container,
	.wide-screen .container-lg,
	.wide-screen .container-md,
	.wide-screen .container-sm,
	.wide-screen .container-xl {
		max-width: 1315px;
	}
}
.diy-navbar-transition .burger:before,
.diy-navbar-transition .burger:after {
	background-color: #fff;
}

/* ---------- 9. 板块标题：金色文字 + 描金下划线 ---------- */
body.ink-theme .section-title {
	justify-content: center !important;
	-webkit-justify-content: center !important;
	text-align: center;
	font-family: "Noto Serif SC", serif !important;
	font-weight: 900 !important;
	position: relative;
	width: -moz-fit-content;
	width: fit-content;
	border: none;
	background: none;
	-webkit-box-shadow: none;
	box-shadow: none;
	color: #8a6d2f !important;
	text-shadow: none;
	font-size: 1.6rem !important;
	letter-spacing: 10px !important;
	text-indent: 10px !important;
	padding: 6px 0 22px !important;
	margin: 0 auto 20px !important;
}
/* 首个标题位于顶部深色区，用亮金 */
body.ink-theme .section-title.title-light,
body.ink-theme.blog #main .section:first-of-type .section-title {
	color: #d3ba74 !important;
	text-shadow: none;
}
/* 隐藏旧版印章伪元素 */
body.ink-theme .section-title::before {
	content: none !important;
	display: none !important;
}
/* 文字下方描金笔触 */
body.ink-theme .section-title::after {
	content: "" !important;
	display: block;
	position: absolute;
	left: 0 !important;
	right: 0 !important;
	bottom: 6px !important;
	top: auto !important;
	width: auto !important;
	height: 4px !important;
	border-radius: 2px;
	background: linear-gradient(to right,
		transparent 0%,
		rgba(184, 150, 78, 0.35) 15%,
		#b8964e 38%,
		#e6cf85 50%,
		#b8964e 62%,
		rgba(184, 150, 78, 0.35) 85%,
		transparent 100%) !important;
	transform: none !important;
	box-shadow: none !important;
	border: none !important;
	outline: none !important;
	animation: none !important;
}
/* 第二、三板块标题(mt-5)顶边距 */
body.ink-theme .section-title.mt-5 {
	margin-top: 48px !important;
}
/* 移动端标题缩小 */
@media (max-width: 768px) {
	body.ink-theme .section-title {
		font-size: 1.15rem !important;
		letter-spacing: 5px !important;
		text-indent: 5px !important;
		padding: 4px 0 16px !important;
		margin: 10px auto 12px !important;
	}
	body.ink-theme .section-title.mt-5 {
		margin-top: 14px !important;
	}
	body.ink-theme .section-title::after {
		height: 3px !important;
		bottom: 4px !important;
	}
}

/* ---------- 10. 金边卡片 ---------- */
body.ink-theme .posts-wrapper .post-grid,
body.ink-theme .posts-wrapper .post-list,
body.ink-theme .carousel .post-grid {
	border: 3px solid transparent;
	background:
		linear-gradient(#fff, #fff) padding-box,
		linear-gradient(135deg,
			#8a6d2f 0%,
			#cbb069 15%,
			#f0e0ae 30%,
			#b8964e 48%,
			#8a6d2f 52%,
			#d3ba74 68%,
			#f5e9c0 84%,
			#9a7b3f 100%) border-box;
	-webkit-box-shadow: 0 2px 10px rgba(138, 109, 47, 0.18);
	box-shadow: 0 2px 10px rgba(138, 109, 47, 0.18);
	padding: 0;
}
/* 卡内图片顶到边框，去圆角 */
body.ink-theme .post-grid .entry-media {
	margin: 0;
	border-radius: 0;
}
body.ink-theme .post-grid .entry-media img,
body.ink-theme .post-grid .entry-media .placeholder {
	border-radius: 0;
}
/* 文字区自身 padding 保持间距 */
body.ink-theme .post-grid .entry-wrapper {
	padding: 8px 12px 12px;
}
/* hover：金色调阴影 */
body.ink-theme .posts-wrapper .post-grid:hover {
	-webkit-box-shadow: 0 1rem 3rem rgba(138, 109, 47, 0.28);
	box-shadow: 0 1rem 3rem rgba(138, 109, 47, 0.28);
}
/* 标签圆点改金色 */
body.ink-theme .index-span-dot .index-dot {
	background-color: #b8964e !important;
}

/* ---------- 11. 页脚(纯黑，文字距底部留空) ---------- */
body.ink-theme .site-footer {
	background: #000;
	color: #b9ae98;
	margin-top: 0;
}
body.ink-theme .site-footer .footer-copyright {
	padding: 20px 0;
	border-top: none;
}
body.ink-theme .site-footer a {
	color: #d3ba74;
}
body.ink-theme .site-footer a:hover {
	color: #f0e0ae;
}
/* 移动端留白缩小(避开底部固定菜单栏) */
@media (max-width: 1024px) {
	body.ink-theme .site-footer .footer-copyright {
		padding-bottom: 20px;
	}
}

/* ---------- 12. 卡片文字配色 ---------- */
body.ink-theme .entry-header .diy-entry-title,
body.ink-theme .entry-header .diy-entry-title a {
	color: #1f2329 !important;
}
body.ink-theme .entry-excerpt {
	color: #5c6675 !important;
}
body.ink-theme .index-span-dot {
	color: #4f4f4f !important;
}

/* ---------- 13. 移动端汉堡按钮与间距 ---------- */
@media (max-width: 991px) {
	.navbar .actions {
		display: -webkit-box !important;
		display: -ms-flexbox !important;
		display: flex !important;
		-webkit-box-align: center;
		-ms-flex-align: center;
		align-items: center;
	}
}
@media (max-width: 1199px) {
	.posts-wrapper .post-grid {
		margin-bottom: 12px;
	}
}
@media (max-width: 768px) {
	body.ink-theme .section {
		padding-top: 12px;
	}
	.posts-wrapper .post-grid {
		margin-bottom: 10px !important;
	}
	body.ink-theme .entry-excerpt {
		font-size: 12px !important;
	}
	/* 移动端卡片文字区收紧 */
	body.ink-theme .post-grid .entry-wrapper {
		padding: 6px 8px 8px;
	}
	/* 标题右侧标签过长时省略 */
	body.ink-theme .index-span-dot {
		max-width: 45%;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}
}

/* ---------- 14. 移动端隐藏左侧悬浮广告 ---------- */
@media (max-width: 768px) {
	.cadpa-box,
	.jvbao-box,
	.mfjb-box,
	.djzxkf-box,
	.flzs-box,
	.hongbao-box,
	.cadpa-box1 {
		display: none !important;
	}
	.cadpa-box img,
	.jvbao-box img,
	.mfjb-box img,
	.djzxkf-box img,
	.flzs-box img,
	.hongbao-box img,
	.cadpa-box1 img {
		display: none !important;
	}
}

/* ---------- 15. 顶部视频横幅 ---------- */
.home-widget .container-full {
	position: relative;
	overflow: hidden;
}
/* 视频实际尺寸 1920x500，用 aspect-ratio 固定占位高度，
   避免刷新瞬间视频未加载导致高度塌陷成一条黑线 */
.home-widget .slider-img {
	aspect-ratio: 1920 / 500;
}
/* 过渡图：覆盖在视频上，底部约 10% 渐变为页面背景色，
   盖住滚动/刷新时视频底部边缘闪现的黑线，并与下方内容柔和衔接 */
.home-widget .slider-mask {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	aspect-ratio: 1920 / 500;
	z-index: 1;
	pointer-events: none;
}
@media (max-width: 768px) {
	/* 移动端视频加宽裁切铺满 */
	.home-widget .slider-img {
		width: 150% !important;
		max-width: 150% !important;
		margin-left: -25% !important;
		margin-right: auto !important;
	}
}
