/**
 * Blog index / archive / single / author: brand accent, aligned with jili ph theme.
 */

.lv-blog-hero,
.lv-blog-list-wrap {
	--lv-accent: #22d3ee;
	--lv-accent-soft: rgba(34, 211, 238, 0.1);
}

.lv-blog-hero {
	background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
	border-color: rgba(15, 23, 42, 0.08);
}

/* 单篇详情顶栏：面包屑 + 站点名，上下各 10px（不依赖 Tailwind 的 py-*） */
.lv-single-hero .lv-single-hero__inner {
	box-sizing: border-box;
	padding-top: 10px;
	padding-bottom: 10px;
}

.lv-breadcrumb a {
	color: #22d3ee;
}
.lv-breadcrumb a:hover {
	color: #b38f00;
}

/* 单篇文章详情：与面包屑之间留白（上下各 10px，不依赖 Tailwind） */
.lv-single-article {
	margin-top: 10px;
	margin-bottom: 10px;
}

/* 作者卡片头像（比默认更小） */
.lv-author-card-avatar {
	width: 3rem;
	height: 3rem;
	flex: 0 0 auto;
}
.lv-author-card-avatar__img,
.lv-author-card-avatar img {
	width: 100% !important; /* 覆盖 get_avatar 内联宽高 */
	height: 100% !important;
	max-width: 100%;
	max-height: 100%;
	object-fit: cover;
	display: block;
}
@media (min-width: 640px) {
	.lv-author-card-avatar {
		width: 3.5rem;
		height: 3.5rem;
	}
}

/* 作者归档页头：小头像 + 与右侧文案间距（不依赖 Tailwind gap） */
.lv-author-hero__row {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.25rem;
	margin-top: 1.5rem;
	box-sizing: border-box;
}
@media (min-width: 640px) {
	.lv-author-hero__row {
		flex-direction: row;
		align-items: flex-start;
		gap: 2rem;
	}
	.lv-author-hero__row .lv-author-hero__text {
		text-align: left;
	}
	.lv-author-hero-avatar {
		margin-top: 0.125rem; /* 与首行大标题基线略对齐 */
	}
}
.lv-author-hero__text {
	min-width: 0;
	width: 100%;
}
@media (min-width: 640px) {
	.lv-author-hero__text {
		flex: 1 1 0%;
		width: auto;
	}
}
.lv-author-hero-avatar {
	width: 3.5rem;
	height: 3.5rem;
	flex: 0 0 auto;
	box-sizing: border-box;
}
.lv-author-hero-avatar__img,
.lv-author-hero-avatar img {
	width: 100% !important;
	height: 100% !important;
	max-width: 100%;
	max-height: 100%;
	object-fit: cover;
	display: block;
}
@media (min-width: 640px) {
	.lv-author-hero-avatar {
		width: 4rem;
		height: 4rem;
	}
}

/* 列表每一项：与 Tailwind 的 py/border 无关，保证篇与篇之间有明确间距与分隔 */
.lv-post-row {
	box-sizing: border-box;
	margin: 0;
	padding-top: 1.25rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid rgba(148, 163, 184, 0.55);
}
.lv-post-row:first-of-type,
.lv-post-row:first-child {
	padding-top: 0;
}
.lv-post-row:last-of-type,
.lv-post-row:last-child {
	border-bottom: none;
	padding-bottom: 0;
	margin-bottom: 0;
}
@media (min-width: 640px) {
	.lv-post-row {
		padding-top: 1.5rem;
		padding-bottom: 1.75rem;
	}
	.lv-post-row:first-of-type,
	.lv-post-row:first-child {
		padding-top: 0;
	}
	.lv-post-row:last-of-type,
	.lv-post-row:last-child {
		padding-bottom: 0;
	}
}

.lv-post-row__media {
	aspect-ratio: 16 / 10;
}
@media (min-width: 640px) {
	.lv-post-row__media {
		aspect-ratio: 4 / 3;
		max-height: 220px;
	}
}

/* 列表行：左文右图，小屏上图下文（与 Tailwind 类重复时可作为兜底） */
.lv-post-row__inner {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	align-items: stretch;
}
.lv-post-row__text {
	order: 2;
}
.lv-post-row__thumb {
	order: 1;
	width: 100%;
}
@media (min-width: 640px) {
	.lv-post-row__inner {
		flex-direction: row;
		align-items: center;
		gap: 1.75rem;
	}
	.lv-post-row__text {
		order: 1;
		flex: 1 1 0%;
		min-width: 0;
	}
	.lv-post-row__thumb {
		order: 2;
		flex: 0 0 40%;
		max-width: 40%;
		width: 40%;
	}
}

/* Sidebar: hot topics strip + list */
.lv-blog-sidebar {
	width: 100%;
	box-sizing: border-box;
}

.lv-sidebar-widget--hot {
	margin-bottom: 1.25rem;
}
.lv-sidebar-widget__label {
	margin: 0 0 0.75rem 0;
	display: inline-block;
	padding: 0.4rem 0.75rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #0a0f1a;
	background: #22d3ee;
	border-radius: 0.25rem;
}

.lv-sidebar-hot__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}

.lv-sidebar-hot__link {
	text-decoration: none;
	color: inherit;
}

.lv-sidebar-hot__thumb {
	display: block;
	aspect-ratio: 16 / 10;
	width: 100%;
}

/* Default WP widgets in blog sidebar */
.lv-blog-sidebar .widget {
	margin-bottom: 1.5rem;
}
.lv-blog-sidebar .widget-title {
	margin: 0 0 0.75rem 0;
	padding: 0.4rem 0.75rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #0a0f1a;
	background: #22d3ee;
	border-radius: 0.25rem;
}
.lv-blog-sidebar .widget-title a {
	color: inherit;
	text-decoration: none;
}

/**
 * Two-column blog layout: main + aside (不依赖已编译 Tailwind 是否含 lg:flex-row / flex-1 等)
 */
.lv-blog-sidebar-wrap {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 2rem;
	width: 100%;
}

@media (min-width: 1024px) {
	.lv-blog-sidebar-wrap {
		flex-direction: row;
		align-items: flex-start;
		gap: 2.5rem;
	}

	.lv-blog-sidebar-wrap__main {
		flex: 1 1 0%;
		min-width: 0;
	}

	.lv-blog-sidebar {
		width: 20rem;
		max-width: 22rem;
		flex: 0 0 auto;
	}
}

.lv-pagination-shell .page-numbers {
	color: #475569;
}
.lv-pagination-shell .page-numbers.current,
.lv-pagination-shell a.page-numbers:hover {
	background: #22d3ee;
	border-color: #22d3ee;
	color: #0a0f1a;
}

/* 博客模板移动端：统一略小一号 + 顶栏/侧栏/分页 */
@media (max-width: 639.98px) {
	.lv-blog-hero h1,
	.lv-blog-list-wrap h1 {
		font-size: clamp(1.15rem, 4.5vw, 1.65rem);
		line-height: 1.2;
	}
	.lv-breadcrumb,
	.lv-breadcrumb a,
	.lv-single-breadcrumb,
	.lv-single-breadcrumb a {
		font-size: 0.75rem;
	}
	.lv-blog-hero > .mx-auto > p,
	.lv-blog-hero > div > p {
		font-size: 0.65rem;
	}
	.lv-post-row h2,
	.lv-post-row h2 a {
		font-size: 1.05rem;
		line-height: 1.3;
	}
	.lv-post-row .line-clamp-3,
	.lv-post-row p {
		font-size: 0.8125rem;
	}
	.lv-post-row time,
	.lv-post-row .text-xs {
		font-size: 0.7rem;
	}
	.lv-single-article h1 {
		font-size: 1.2rem;
		line-height: 1.3;
	}
	.lv-single-article .entry-content,
	.lv-single-article .entry-content p,
	.lv-single-article .lv-single-prose {
		font-size: 0.9375rem;
	}
	.lv-single-article .lv-single-prose h2,
	.lv-single-article .entry-content h2 {
		font-size: 1.05rem;
	}
	.lv-single-article .lv-single-prose h3,
	.lv-single-article .entry-content h3 {
		font-size: 0.95rem;
	}
	.lv-sidebar-widget__label,
	.lv-blog-sidebar .widget-title {
		font-size: 0.65rem;
		padding: 0.3rem 0.6rem;
	}
	.lv-sidebar-hot__title {
		font-size: 0.8125rem;
	}
	.lv-pagination-shell {
		font-size: 0.8125rem;
	}
	.lv-pagination-shell .page-numbers {
		padding: 0.35rem 0.55rem;
		min-width: 2.25rem;
	}
	.lv-author-hero__text h1 {
		font-size: 1.25rem;
		line-height: 1.25;
	}
	.lv-author-hero__text p {
		font-size: 0.875rem;
	}
	.lv-blog-list-wrap h2 {
		font-size: 1.05rem;
	}
	.post-navigation-wrapper a,
	.post-navigation a {
		font-size: 0.8125rem;
	}
	#lv-author-card-title {
		font-size: 0.8125rem;
	}
	.post-navigation-wrapper span {
		font-size: 0.75rem;
	}
	/* 侧栏在窄屏与主列上下排列已 OK；略收紧上下间距 */
	.lv-blog-sidebar-wrap {
		gap: 1.5rem;
	}
	.lv-blog-sidebar {
		margin-top: 0.5rem;
	}
}

