/* 全局样式 */
.shoptimizer-archive>.col-full {
	/* 	max-width: 1400px; */
	padding: 0;
}

#primary {
	margin: 0 auto;
	max-width: 1400px;
}

.content-area {
	float: none;
}

.progress {
	position: fixed;
	bottom: 0;
	height: 5px;
	background: #9B3749;
	z-index: 999;
}

.toc {
	position: fixed;
	top: 100px;
	width: 13%;
	transform: translateX(-110%);
	/*top: 100px;
  right: 20px;
  width: 20%;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 999;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  padding: 10px;*/
}

.toc-title {
	font-size: 16px;
	padding: 0 5px 10px;
	color: #9B3749;
	letter-spacing: 1px;
	text-shadow: 2px 1px 2px #e6e6e6;
	text-transform: uppercase;
}

.toc_ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.toc_ul li {
	padding: 5px;
	border-top-width: 1px;
	align-items: center;
	border-top: 1px solid #d7d9dd;
}

.toc_ul li a {
	font-size: 14px;
	line-height: 24px;
	display: inline-block;
	transition: all 0ms;
	color: #0f0f0f;
}

/* blog nav list strat */
.articre_toc {
	border: 1px #000 solid;
	border-radius: 10px;
	margin-bottom: 15px;
}

.articre_toc_list p {
	font-size: 24px !important;
	margin-bottom: 0 !important;
	font-weight: 600;
	text-align: center;
	line-height: 45px !important;
	padding: 7px 0 3px;
	background-color: #9c3749;
	color: #fff;
	border-radius: 10px 10px 0 0;
	border-bottom: 1px #000 solid;
}

.articre_toc_ul {
	list-style-type: none !important;
	margin: 0 !important;
	padding: 20px !important;
}

.articre_toc_ul li {
	padding: 5px 0;
}

.toc_inc {
	padding-right: 10px;
}

.articre_toc_ul li a {
	border-bottom: 0 !important;
	font-size: 16px;
	line-height: 26px;
}

.author_image img {
	border-radius: 25px;
	width: 30px;
	margin-right: 10px;
}

.articre_toc_ul li a:hover {
	border-bottom: 1px solid #C4C4C4;
	-webkit-transition: .3s ease-in-out;
	transition: .3s ease-in-out;
}

/* 移动端样式 */
@media screen and (max-width: 1024px) {

	#spier-block,
	#secondary,
	.toc {
		display: none !important;
	}

	#primary {
		width: 100%;
		margin: 0 auto;
	}
}

@media screen and (min-width: 1025px) and (max-width: 1400px) {
	#spier-block {
		margin-left: 0 !important;
		width: 14% !important;
	}

	.widget_post_list {
		width: 25% !important;
	}
}

@media screen and (max-width: 1024px) {

	#spier-block,
	.type_instagram {
		display: none !important;
	}

	.articre_toc {
		margin-bottom: 10px;
		margin-top: 10px;
	}
}

/* 电脑端样式 */
@media screen and (min-width: 1025px) {
	#primary {
		width: 100%;
		/* margin-left: 20%;
        margin-right: 20%; */
	}

	#secondary {
		/* position: absolute; */
		width: 100%;
		right: 0;
	}
}

.entry-meta .author {
	display: none;
}

.author-block {
	background: #d4bec133;
	max-width: 800px;
	width: 100%;
	display: grid;
	padding: 42px 35px 62px;
	grid-template-rows: 100px auto;
	grid-template-columns: 100px auto;
	border-radius: 6px;
}

.author-block a {
	text-decoration: none;
	display: inline-block;
	font-weight: 600;
	color: #3d3d3d;
	letter-spacing: 0px !important;
}

.author-block .img-container {
	width: 100px;
	height: 100px;
	position: relative;
	overflow: hidden;
	border-radius: 50%;
	grid-column: 1 / 2;
	grid-row: 1 / 3;
}

.author-block .img-container img {
	display: inline;
	margin: 0 auto;
	height: 100%;
	width: 100%;
}

.author-block .block-header {
	grid-column: 2 / 3;
	grid-row: 1 / 2;
	margin-left: 35px;
	padding-top: 15px;
}

.author-block .block-header .written-by {
	font-size: 16px;
	line-height: 24px;
	margin-bottom: 3px;
}

.author-block .block-header .author-name {
	font-size: 24px;
	line-height: 30px;
	font-weight: 500;
}

.author-block .block-body {
	grid-column: 2 / 3;
	grid-row: 2 / 3;
	margin-left: 35px;
	padding-top: 5px;
}

.author-block .block-body .author-bio {
	font-size: 16px;
	line-height: 24px;
	margin-bottom: 0;
}

.author-block .block-body .author-bio a {
	margin: 0;
	padding: 0;
	font-weight: 600;
}

.author-block .block-body a {
	padding: 3px;
	margin-top: 13px;
}

@media (max-width: 768px) {
	.author-block {
		grid-template-columns: 60px auto;
		grid-template-rows: 80px;
		padding: 30px 25px 35px;
	}

	.author-block .img-container {
		width: 70px;
		height: 70px;
		margin-right: 0;
	}

	.author-block .block-header {
		padding-top: 10px;
		margin-left: 30px;
	}

	.author-block .block-header .author-name {
		font-size: 22px;
	}

	.author-block .block-body {
		grid-column: 1 / 3;
		margin-left: 0;
		padding-top: 10px;
	}

	.author-block .block-body .author-bio {
		font-size: 14px;
		line-height: 24px;
	}
}

/* 博客样式修改 */
.post-featured-image img {
	width: 100%;
	border-radius: 20px;
}

/* 隐藏文章内容中的第一张图片 */
#main .type-post>img:first-of-type,
#main .type-post>img:first-child {
	display: none !important;
}

#primary {
	--primary-text: #A1394B;
	--border-radius: 10px;
}

.widget .widget-title {
	color: var(--primary-text);
}

.entry-content h2 {
	color: var(--primary-text);
}

.wp-block-image img {
	border-radius: var(--border-radius);
}

/* 第二段style */
/* 右侧边栏整体样式 */
.custom-right-sidebar {
	background: #fff;
}

/* 右侧小模块通用样式 */
.sidebar-module {
	margin-bottom: 40px;
	padding-bottom: 20px;
	border-bottom: 1px solid #eee;
}

.sidebar-module h3 {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 20px;
	border-left: 4px solid #9B3749;
	/* 装饰线 */
	padding-left: 10px;
}

/* 文章和产品列表样式 */
.sidebar-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.sidebar-list li {
	margin-bottom: 15px;
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.sidebar-list li a:first-child {
	width: 60px;
	flex-shrink: 0;
}

.sidebar-list img {
	width: 60px;
	height: 60px;
	object-fit: cover;
	border-radius: 5px;
}

.sidebar-list a.title-link {
	font-size: 14px;
	line-height: 1.4;
	color: #333;
	text-decoration: none;
	font-weight: 500;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	text-overflow: ellipsis;
}

.sidebar-list a.title-link:hover {
	color: #9B3749;
}

/* 邮件订阅样式 */
.newsletter-box input[type="email"] {
	width: 100%;
	padding: 10px;
	margin-bottom: 10px;
	border: 1px solid #ddd;
	border-radius: 5px;
}

.newsletter-box button {
	width: 100%;
	background-color: #9B3749;
	color: white;
	border: none;
	padding: 10px;
	border-radius: 5px;
	cursor: pointer;
}

/* 响应式：平板和手机变为单列 */
@media (max-width: 1024px) {
	.custom-post-layout-container {
		grid-template-columns: 1fr;
		/* 单列 */
		gap: 20px;
	}

	#spier-block {
		display: none;
		/* 移动端通常隐藏左侧悬浮目录 */
	}

	.custom-right-sidebar {
		margin-top: 40px;
	}
}

/* 第三段style */
/* 简约版相关文章样式 */
.simple-related-posts {
	margin: 40px 0;
	padding: 15px;
	max-width: 100%;
	background-color: #F6F6F6;
	border-radius: 5px;
}

.simple-related-title {
	font-size: 20px;
	color: #333;
	margin-bottom: 15px;
	font-weight: 600;
	position: relative;
	padding-left: 15px;
}

.simple-related-title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	height: 60%;
	width: 4px;
	background: #9B3749;
	border-radius: 2px;
}

.simple-related-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.simple-related-item {
	position: relative;
	padding-left: 30px;
	border-bottom: 1px solid #D5D5D5;
	padding: 7px 30px;
}

.simple-related-item::before {
	content: "";
	position: absolute;
	left: 0;
	color: #9B3749;
	background: url('https://www.beyourlover.com/wp-content/uploads/2025/04/blog-article-icon.svg') no-repeat;
	background-size: cover;
	width: 25px;
	height: 27px;
}

.simple-related-link {
	color: #444;
	text-decoration: none;
	font-size: 15px;
	transition: all 0.3s ease;
	display: inline-block;
	padding: 5px 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	width: 100%;
}

.simple-related-link:hover {
	color: #9B3749;
	transform: translateX(5px);
}

/* 响应式设计 */
@media (max-width: 768px) {
	.simple-related-posts {
		margin: 30px 0;
	}

	.simple-related-title {
		font-size: 18px;
	}

	.simple-related-link {
		font-size: 14px;
		max-width: 56vw;
	}
}

/* 第四段style */
/* 博客上下按钮样式 */
.post-navigation {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	margin: 30px 0;
}

.nav-previous,
.nav-next {
	width: 48%;
}

.nav-previous a,
.nav-next a {
	display: flex;
	text-decoration: none;
	color: #333;
	border: 1px solid #d7d9dd;
	border-radius: 10px;
	padding: 20px;
}

.post-navigation .nav-previous-text {
	flex: 1;
	overflow: hidden;
	/* 隐藏溢出内容 */
}

.nav-previous svg,
.nav-next svg {
	width: 35px;
	flex-shrink: 0;
	margin: 5px;
}

.nav-next {
	text-align: right;
}

.nav-next a {
	justify-content: flex-end;
}

.nav-next svg {
	transform: rotate(-180deg);
}

.nav-title {
	display: block;
	font-size: 0.9em;
	color: #666;
}

.nav-post-title {
	display: block;
	font-weight: bold;
	white-space: nowrap;
	/* 禁止换行 */
	overflow: hidden;
	/* 隐藏溢出内容 */
	text-overflow: ellipsis;
	/* 显示省略号 */
}

@media (max-width: 768px) {

	.nav-previous,
	.nav-next {
		width: 100%;
	}

	.nav-post-title-grid {
		display: grid;
		grid-template-columns: auto 1fr;
		/* 或其他适合的布局 */
	}

	/* .nav-post-title{
			max-width: 250px;
		} */
}

/* 第五段style */
.grid-container {
	display: grid;
	grid-template-columns: 250px 700px 250px;
	/* 三列宽度 */
	justify-content: center;
	/* 整体居中 */
	max-width: 1440px;
	/* 可选：限制最大宽度 */
	margin: 0 auto;
	/* 水平居中 */
	padding: 20px 0;
	width: 100%;
	gap: 10px;
}

/* 响应式设计：小屏幕时堆叠 */
@media (max-width: 1024px) {
	.grid-container {
		grid-template-columns: 1fr;
		/* 单列 */
	}

	.left-sidebar,
	.right-sidebar {
		display: none;
		/* 隐藏侧边栏或调整布局 */
	}
}

/* 模块样式示例 */
.left-sidebar,
.right-sidebar {
	padding: 15px;
	border-radius: 5px;
}

.main-content {
	background: white;
	padding: 20px;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* comparison分类表格样式 */
.category-comparison table td {
	border: none;
	padding: 1em 2em;
}

.category-comparison table tr:nth-child(2n+1) {
	background: rgb(246, 247, 248);
}

.category-comparison table tr:first-child td:first-child {
	border-top-left-radius: 16px;
}

.category-comparison table tr:first-child td:last-child {
	border-top-right-radius: 16px;
}

.category-comparison table tr:last-child td:first-child {
	border-bottom-left-radius: 16px;
}

.category-comparison table tr:last-child td:last-child {
	border-bottom-right-radius: 16px;
}