/* ---- Global Layout — from reference HTML ---- */
.container {
	width: min(1120px, 92%);
	margin: 0 auto;
}

main {
	padding: 42px 0 74px;
}

/* ---- WordPress Editor fallback (no ACF) ---- */
.blog-content-wp-editor {
	line-height: 1.7;
}

.blog-content-wp-editor h2 {
	font-size: 31px;
	line-height: 1.22;
	margin: 48px 0 16px;
	letter-spacing: -0.025em;
}

.blog-content-wp-editor h3 {
	font-size: 22px;
	line-height: 1.35;
	margin: 30px 0 10px;
}

.blog-content-wp-editor p {
	margin: 0 0 16px;
}

.blog-content-wp-editor ul,
.blog-content-wp-editor ol {
	margin-top: 8px;
	padding-left: 22px;
}

.blog-content-wp-editor li {
	margin-bottom: 8px;
}

.blog-content-wp-editor img {
	max-width: 100%;
	height: auto;
	border-radius: 18px;
	margin: 26px 0 34px;
}

.blog-content-wp-editor blockquote {
	background: #f8fafc;
	border-left: 5px solid #0f766e;
	border-radius: 16px;
	padding: 22px;
	margin: 24px 0;
}

.blog-content-wp-editor table {
	width: 100%;
	border-collapse: collapse;
	margin: 22px 0 30px;
	font-size: 15px;
	border-radius: 16px;
	overflow: hidden;
}

.blog-content-wp-editor th,
.blog-content-wp-editor td {
	border: 1px solid #e5e7eb;
	padding: 13px 14px;
	vertical-align: top;
	text-align: left;
}

.blog-content-wp-editor th {
	background: #f1f5f9;
	color: #111827;
	font-weight: 600;
}

/* ===========================================================
 * 博客文章模板样式
 * 基于参考 HTML: eva-side-indentation-blog
 * ===========================================================
 * 引入: 在 template-blog-article.php 中 enqueue
 * =========================================================== */

/* ---- Hero ---- */
.blog-hero {
	background: linear-gradient(135deg, #0f766e 0%, #164e63 100%);
	color: #fff;
	padding: 62px 0 58px;
}

.blog-hero .breadcrumb {
	font-size: 14px;
	margin-bottom: 18px;
	color: rgba(255, 255, 255, 0.86);
}

.blog-hero .breadcrumb a {
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
}

.blog-hero .breadcrumb a:hover {
	text-decoration: underline;
}

.blog-hero .breadcrumb .sep {
	margin: 0 6px;
	opacity: 0.6;
}

.blog-hero .breadcrumb .current {
	color: rgba(255, 255, 255, 0.7);
}

.blog-hero h1 {
	max-width: 960px;
	font-size: clamp(34px, 5vw, 58px);
	line-height: 1.08;
	margin: 0 0 20px;
	letter-spacing: -0.035em;
}

.hero-summary {
	max-width: 830px;
	font-size: 19px;
	margin: 0;
	color: rgba(255, 255, 255, 0.94);
}

/* ---- Hero Meta (single post) ---- */
.hero-meta {
	margin-top: 16px;
	font-size: 14px;
	color: rgba(255, 255, 255, 0.8);
}

.hero-meta .meta-sep {
	margin: 0 8px;
	opacity: 0.5;
}

.hero-meta a {
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
}

.hero-meta a:hover {
	text-decoration: underline;
}


/* ---- Post Navigation ---- */
.post-navigation {
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid #e5e7eb;
}

.nav-links {
	display: flex;
	justify-content: space-between;
	gap: 20px;
}

.nav-previous,
.nav-next {
	flex: 1;
}

.nav-links .nav-subtitle {
	display: block;
	font-size: 13px;
	color: #64748b;
	margin-bottom: 4px;
}

.nav-links a {
	color: #0f766e;
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
}

.nav-links a:hover {
	text-decoration: underline;
}

/* ---- Comments ---- */
.blog-layout .comments-area {
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid #e5e7eb;
}

.blog-layout .comments-area .comment-reply-title {
	font-size: 22px;
	margin-bottom: 16px;
}

.blog-layout .comments-area .comment {
	padding: 16px 0;
	border-bottom: 1px solid #f1f5f9;
}

.blog-layout .comments-area .comment-author {
	font-weight: 600;
	color: #1f2937;
}

.blog-layout .comments-area .comment-metadata {
	font-size: 13px;
	color: #64748b;
}

/* ---- Layout ---- */
.blog-layout {
	max-width: 920px;
	margin: 0 auto;
}

.blog-layout article {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 20px;
	padding: 36px;
	box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

/* ---- Section ---- */
.blog-section {
	margin-bottom: 34px;
}

/* ---- Intro Box (绿色左边框) ---- */
.intro-box {
	background: #ecfdf5;
	border-left: 5px solid #0f766e;
	border-radius: 16px;
	padding: 22px;
	margin-bottom: 34px;
}

.intro-box p:last-child {
	margin-bottom: 0;
}

/* ---- Headings ---- */
.blog-layout article h2 {
	font-size: 31px;
	line-height: 1.22;
	margin: 48px 0 16px;
	letter-spacing: -0.025em;
	scroll-margin-top: 28px;
}

.blog-layout article h2:first-child {
	margin-top: 0;
}


.blog-layout article div:not(".process-card") p {
	margin: 0 0 16px;
	line-height: 1.7;
}

.blog-layout article ul,
.blog-layout article ol {
	margin-top: 8px;
}

.blog-layout article li {
	margin-bottom: 8px;
}

/* ---- Highlight (蓝色高亮框) ---- */
.highlight {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	padding: 18px 20px;
	border-radius: 14px;
	margin: 24px 0;
}

/* ---- Warning (橙色警告框) ---- */
.warning {
	background: #fff7ed;
	border: 1px solid #fed7aa;
	color: #7c2d12;
	padding: 16px 18px;
	border-radius: 14px;
	margin: 20px 0;
}

/* ---- Image Card ---- */
.image-card {
	margin: 26px 0 34px;
	border: 1px solid #e5e7eb;
	border-radius: 18px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.image-card img {
	display: block;
	width: 100%;
	height: auto;
	background: #e2e8f0;
}

.caption {
	font-size: 14px;
	color: #64748b;
	background: #f8fafc;
	padding: 12px 16px;
	margin: 0;
}

/* ---- Process Grid (2列步骤卡片) ---- */
.process-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 18px;
	margin: 24px 0 34px;
}

.process-card {
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.process-card h3 {
	font-size: 18px;
	margin: 14px 14px 6px;
}

.process-card p {
	color: #64748b;
	font-size: 14px;
	margin: 0 14px 16px;
}

/* ---- Steps (编号步骤列表) ---- */
.steps {
	counter-reset: step;
	list-style: none;
	padding: 0;
	display: grid;
	gap: 16px;
	margin: 22px 0;
}

.steps li {
	counter-increment: step;
	position: relative;
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	padding: 18px 18px 18px 62px;
	margin: 0;
}

.steps li::before {
	content: counter(step);
	position: absolute;
	left: 18px;
	top: 18px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #0f766e;
	color: #fff;
	display: grid;
	place-items: center;
	font-weight: 700;
	font-size: 14px;
}


/* ---- Table ---- */
.blog-layout article table {
	width: 100%;
	border-collapse: collapse;
	margin: 22px 0 30px;
	font-size: 15px;
	border-radius: 16px;
	overflow: hidden;
}

.blog-layout article th,
.blog-layout article td {
	border: 1px solid #e5e7eb;
	padding: 13px 14px;
	vertical-align: top;
	text-align: left;
}

/* ---- 表头行 #f1f5f9：<thead> 或 <tbody> 第一行，不管 th/td ---- */
.blog-layout article table thead th,
.blog-layout article .blog-section table:not(:has(thead)) tbody tr:first-child td,
.blog-layout article .blog-section table:not(:has(thead)) tbody tr:first-child th {
	background: #f1f5f9;
	color: #111827;
	font-weight: 600;
}

/* ---- 数据行：无背景色，不受 nth-child 影响 ---- */
.blog-layout article .blog-section table tbody tr xtd,
.blog-layout article .blog-section table tbody tr th {
	background: none;
}

/* ---- Card Grid ---- */
.grid-3,
.grid-2 {
	display: grid;
	gap: 18px;
	margin: 22px 0;
}

.grid-3 {
	grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
	grid-template-columns: repeat(2, 1fr);
}

.card {
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	overflow: hidden;
}

.card img {
	display: block;
	width: 100%;
	height: auto;
	background: #e2e8f0;
}

.card-content {
	padding: 18px;
}

.card h3 {
	margin-top: 0;
	font-size: 20px;
}

.card p {
	color: #64748b;
	font-size: 14px;
	margin: 0;
}

/* ---- FAQ ---- */
.faq-item {
	border-top: 1px solid #e5e7eb;
	padding-top: 18px;
	margin-top: 18px;
}

.faq-item:first-child {
	border-top: none;
	padding-top: 0;
	margin-top: 0;
}

/* ---- CTA Box ---- */
.cta-box {
	margin-top: 46px;
	background: linear-gradient(135deg, #ecfeff 0%, #f0fdfa 100%);
	border: 1px solid #ccfbf1;
	border-radius: 22px;
	padding: 30px;
}

.cta-box h2 {
	margin-top: 0;
}

.button {
	display: inline-block;
	background: #0f766e;
	color: #fff;
	font-weight: 700;
	padding: 12px 20px;
	border-radius: 999px;
	margin-top: 8px;
	text-decoration: none;
}

.button:hover {
	background: #115e59;
	color: #fff;
	text-decoration: none;
}

/* ---- Responsive ---- */
@media (max-width: 760px) {
	.blog-layout article {
		padding: 26px;
	}

	.process-grid,
	.grid-3,
	.grid-2 {
		grid-template-columns: 1fr;
	}

	.blog-hero {
		padding: 48px 0;
	}

	.blog-hero h1 {
		font-size: clamp(28px, 7vw, 40px);
	}
}
