/* 博客列表 / 详情样式：只作用于 .blog-* 类，避免影响主题其它页面 */

.blog-header,
.blog-list,
.blog-article {
	--ink: #1b2733;
	--muted: #5d6c7b;
	--line: #e9edf2;
	--accent: #0a84ff;
	--accent-soft: #eff6ff;
	--radius: 16px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ---------- 列表标题 ---------- */
.blog-heading {
	margin: 0;
	font-size: 32px;
	font-weight: 700;
	letter-spacing: -.02em;
	line-height: 1.25;
	color: var(--ink);
}

.blog-heading::after {
	content: '';
	display: block;
	width: 48px;
	height: 4px;
	margin-top: 14px;
	border-radius: 2px;
	background: linear-gradient(90deg, #0a84ff, #7cc4ff);
}

/* 目录页顶部引导文字（含大词） */
.blog-intro {
	margin: 18px 0 0;
	color: var(--muted);
	font-size: 15.5px;
	line-height: 1.8;
}

.blog-total {
	margin: 10px 0 0;
	color: #93a0ae;
	font-size: 13px;
	letter-spacing: .02em;
}

/* ---------- 列表：一行一篇的横向卡片 ---------- */
.blog-list {
	display: block;
	margin: 26px 0 8px;
}

.blog-card {
	display: flex;
	gap: 20px;
	padding: 22px 24px;
	margin-bottom: 16px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.blog-card:hover {
	transform: translateY(-3px);
	border-color: #d6e6fb;
	box-shadow: 0 14px 34px rgba(16, 24, 40, .10);
}

.blog-thumb {
	display: block;
	flex-shrink: 0;
	width: 220px;
	height: 140px;
	overflow: hidden;
	border-radius: 12px;
	background: #f2f5f9;
	text-decoration: none;
}

.blog-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.blog-card:hover .blog-thumb img {
	transform: scale(1.04);
}

.blog-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}

.blog-title {
	margin: 0 0 10px;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.45;
	letter-spacing: -.01em;
}

.blog-title a {
	color: var(--ink);
	text-decoration: none;
	transition: color .15s ease;
}

.blog-title a:hover {
	color: var(--accent);
}

.blog-excerpt {
	margin: 0 0 12px;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.72;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.blog-footer-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid #f1f4f8;
}

.blog-meta {
	font-size: 12px;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #93a0ae;
}

.blog-read-more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--accent);
	text-decoration: none;
}

.blog-read-more::after {
	content: '';
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12h12.2l-4.6-4.6L14 6l6 6-6 6-1.4-1.4 4.6-4.6H5z'/></svg>") center / contain no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M5 12h12.2l-4.6-4.6L14 6l6 6-6 6-1.4-1.4 4.6-4.6H5z'/></svg>") center / contain no-repeat;
	transition: transform .18s ease;
}

.blog-read-more:hover::after {
	transform: translateX(3px);
}

/* ---------- 分页 / 空状态 ---------- */
.blog-pager {
	display: flex;
	gap: 12px;
	margin: 24px 0 8px;
}

.blog-pager-link {
	display: inline-block;
	padding: 10px 20px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
	color: var(--ink);
	font-size: 14px;
	text-decoration: none;
	transition: border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.blog-pager-link:hover {
	border-color: var(--accent);
	color: var(--accent);
	box-shadow: 0 6px 16px rgba(10, 132, 255, .12);
}

.blog-empty {
	margin: 32px 0;
	padding: 48px 0;
	text-align: center;
	color: #93a0ae;
	font-size: 15px;
}

/* ---------- 详情 ---------- */
.blog-article {
	max-width: 760px;
	margin: 0 auto;
}

.blog-article h1 {
	margin: 0 0 14px;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -.02em;
	color: var(--ink);
}

.blog-article .blog-card-date {
	display: inline-block;
	margin-bottom: 6px;
	padding: 5px 12px;
	border-radius: 999px;
	background: var(--accent-soft);
	color: #0a6fd0;
	font-size: 12.5px;
	letter-spacing: .04em;
}

.blog-article-cover {
	display: block;
	width: 100%;
	margin: 22px 0 4px;
	border-radius: var(--radius);
	box-shadow: 0 10px 30px rgba(16, 24, 40, .10);
}

/* 正文排版 */
.blog-article .content {
	margin-top: 22px;
	font-size: 17px;
	line-height: 1.85;
	color: #2f3c49;
}

.blog-article .content > *:first-child {
	margin-top: 0;
}

.blog-article .content p {
	margin: 0 0 1.1em;
}

.blog-article .content h2 {
	position: relative;
	margin: 1.9em 0 .7em;
	padding-left: 14px;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.4;
	color: var(--ink);
}

.blog-article .content h2::before {
	content: '';
	position: absolute;
	left: 0;
	top: .22em;
	bottom: .22em;
	width: 4px;
	border-radius: 2px;
	background: linear-gradient(180deg, #0a84ff, #7cc4ff);
}

.blog-article .content h3 {
	margin: 1.5em 0 .6em;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.5;
	color: var(--ink);
}

.blog-article .content strong {
	color: var(--ink);
}

.blog-article .content a {
	color: var(--accent);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.blog-article .content ul,
.blog-article .content ol {
	margin: 0 0 1.2em;
	padding-left: 1.3em;
}

.blog-article .content li {
	margin-bottom: .5em;
}

.blog-article .content blockquote {
	margin: 1.5em 0;
	padding: 16px 20px;
	border-left: 4px solid #bfe0ff;
	border-radius: 0 10px 10px 0;
	background: #f7fafd;
	color: #4a5a6a;
}

.blog-article .content blockquote p:last-child {
	margin-bottom: 0;
}

.blog-article .content img {
	display: block;
	max-width: 100%;
	margin: 1.4em 0;
	border-radius: 12px;
	box-shadow: 0 8px 24px rgba(16, 24, 40, .08);
}

.blog-article .content hr {
	margin: 2em 0;
	border: 0;
	border-top: 1px solid var(--line);
}

/* ---------- 上一篇 / 下一篇 ---------- */
.blog-article-nav {
	display: flex;
	gap: 18px;
	margin-top: 40px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}

.blog-nav-link {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
	padding: 16px 18px;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: #fff;
	text-decoration: none;
	transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.blog-nav-link:hover {
	border-color: #cfe4ff;
	background: #fbfdff;
	box-shadow: 0 10px 24px rgba(10, 132, 255, .10);
}

.blog-nav-label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #8b98a6;
}

.blog-nav-title {
	display: -webkit-box;
	overflow: hidden;
	color: var(--ink);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.5;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.blog-nav-next {
	align-items: flex-end;
	text-align: right;
}

.blog-nav-empty {
	border: none;
	background: transparent;
	box-shadow: none;
}

.blog-back {
	margin-top: 28px;
}

.blog-back a {
	color: var(--accent);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

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

/* ---------- 标签 ---------- */
.blog-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.blog-article-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0 18px;
}

.blog-tag {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: #fff;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.4;
	text-decoration: none;
	transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.blog-tag:hover,
.blog-tag.is-active {
	border-color: #bfe0ff;
	background: var(--accent-soft);
	color: var(--accent);
}

/* 侧栏里的标签：比目录页筛选时更紧凑一些 */
.list-widget .blog-tag {
	padding: 4px 10px;
	font-size: 12.5px;
}

/* 列表卡片里的文章标签（参考 Element UI el-tag 的样式） */
.blog-card-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 2px 0 12px;
}

.blog-card-tags a {
	display: inline-flex;
	align-items: center;
	height: 22px;
	padding: 0 9px;
	border: 1px solid #d9ecff;
	border-radius: 4px;
	background: #ecf5ff;
	color: #409eff;
	font-size: 12px;
	line-height: 1;
	text-decoration: none;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.blog-card-tags a:hover {
	border-color: #c6e2ff;
	background: #d9ecff;
	color: #337ecc;
}

/* ---------- 列表页：内容 + 侧栏 ---------- */
.list-layout {
	display: flex;
	gap: 26px;
	align-items: flex-start;
}

.list-main {
	flex: 1;
	min-width: 0;
}

.list-sidebar {
	width: 280px;
	flex-shrink: 0;
}

.list-widget {
	margin-bottom: 16px;
	padding: 18px;
	background: #fff;
	border: 1px solid #e9edf2;
	border-radius: 16px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
}

.list-widget h3 {
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid #eef2f7;
	color: #1b2733;
	font-size: 15px;
	font-weight: 700;
}

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

.list-widget li {
	padding: 7px 0;
	border-bottom: 1px dashed #eef2f7;
	font-size: 14px;
	line-height: 1.55;
}

.list-widget li:last-child {
	border-bottom: none;
}

.list-widget li a {
	color: #2f3c49;
	text-decoration: none;
}

.list-widget li a:hover {
	color: #0a84ff;
}

.list-search {
	display: flex;
	gap: 6px;
}

.list-search input {
	flex: 1;
	min-width: 0;
	padding: 8px 12px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	font-size: 14px;
	outline: none;
}

.list-search input:focus {
	border-color: #0a84ff;
}

.list-search button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 38px;
	padding: 0;
	border: none;
	border-radius: 8px;
	background: #0a84ff;
	color: #fff;
	font-size: 14px;
	cursor: pointer;
}

.list-search button:hover {
	background: #0a6fd0;
}

@media (min-width: 1020px) {
	.list-sidebar {
		position: sticky;
		top: 90px;
	}
}

@media (max-width: 900px) {
	.list-layout {
		flex-direction: column;
	}

	.list-sidebar {
		width: 100%;
		position: static;
	}
}

/* ---------- 移动端 ---------- */
@media (max-width: 640px) {
	.blog-heading {
		font-size: 26px;
	}

	.blog-card {
		flex-direction: column;
		gap: 14px;
		padding: 18px;
	}

	.blog-thumb {
		width: 100%;
		height: 180px;
	}

	.blog-title {
		font-size: 18px;
	}

	.blog-article h1 {
		font-size: 26px;
	}

	.blog-article .content {
		font-size: 16px;
		line-height: 1.8;
	}

	.blog-article .content h2 {
		font-size: 20px;
	}

	.blog-article .content h3 {
		font-size: 17px;
	}

	.blog-article-nav {
		flex-direction: column;
	}

	.blog-nav-next {
		align-items: flex-start;
		text-align: left;
	}
}
