/**
 * 作者公开归档页（访客可见）.
 */

.leafs-author-public {
	padding-bottom: 48px;
}

.leafs-author-public .leafs-breadcrumb--author-public {
	margin-bottom: 20px;
	font-size: 0.88rem;
	color: var(--leafs-muted);
}

.leafs-author-public .leafs-breadcrumb--author-public a {
	color: var(--leafs-link);
	text-decoration: none;
}

.leafs-author-public .leafs-breadcrumb--author-public a:hover {
	color: var(--leafs-brand-hover, var(--leafs-link));
}

.leafs-author-public .leafs-breadcrumb__current {
	color: var(--leafs-text);
	font-weight: 600;
}

/* Hero（与文章详情侧栏作者卡片：上浮、阴影、头像光圈一致；SVG 由 leafs-author-card-deco.css 提供） */
.leafs-author-public__hero {
	position: relative;
	overflow: hidden;
	padding: 0;
	margin-bottom: 28px;
	border-radius: 14px;
	background: var(--leafs-surface);
	border: 1px solid var(--leafs-border);
	box-shadow: var(--leafs-shadow-sm);
	transition:
		transform 0.25s ease-out,
		box-shadow 0.25s ease-out;
}

.leafs-author-public__hero:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12);
}

html[data-leafs-theme="dark"] .leafs-author-public__hero:hover {
	box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.45);
}

@media (prefers-reduced-motion: reduce) {
	.leafs-author-public__hero {
		transition: none;
	}

	.leafs-author-public__hero:hover {
		transform: none;
	}

	.leafs-author-public__avatar {
		transition: none;
	}

	.leafs-author-public__hero:hover .leafs-author-public__avatar {
		transform: none;
	}

	.leafs-author-public .leafs-author-public__pagination .leafs-pagination ul.page-numbers a {
		transition: none;
	}

	.leafs-author-public .leafs-author-public__pagination .leafs-pagination ul.page-numbers a:hover {
		transform: none;
	}

	.leafs-author-public-post-card:hover {
		transform: none;
	}
}

.leafs-author-public__hero-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 24px 32px;
	align-items: flex-start;
	padding: 0 24px 28px;
}

.leafs-author-public__avatar-wrap {
	flex-shrink: 0;
	margin-top: -28px;
	position: relative;
	z-index: 1;
}

.leafs-author-public__avatar {
	width: 112px;
	height: 112px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	box-shadow:
		0 0 0 3px var(--leafs-surface),
		0 0 0 5px color-mix(in srgb, var(--leafs-brand) 38%, transparent),
		0 12px 32px rgba(0, 0, 0, 0.12);
	transition:
		transform 0.25s ease-out,
		box-shadow 0.25s ease-out;
}

.leafs-author-public__hero:hover .leafs-author-public__avatar {
	transform: scale(1.05);
	box-shadow:
		0 0 0 3px var(--leafs-surface),
		0 0 0 8px color-mix(in srgb, var(--leafs-brand) 45%, transparent),
		0 14px 36px rgba(0, 0, 0, 0.14);
}

.leafs-author-public__hero-main {
	flex: 1 1 220px;
	min-width: 0;
}

.leafs-author-public__kicker {
	margin: 0 0 6px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--leafs-brand);
}

.leafs-author-public__title {
	margin: 0 0 8px;
	font-size: clamp(1.65rem, 3vw + 0.5rem, 2.1rem);
	font-weight: 800;
	line-height: 1.2;
	color: var(--leafs-text);
	letter-spacing: -0.02em;
}

.leafs-author-public__tagline {
	margin: 0 0 18px;
	font-size: 0.9rem;
	line-height: 1.55;
	max-width: 36rem;
}

.leafs-author-public__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 28px;
	margin-bottom: 16px;
	padding: 14px 0;
	border-top: 1px solid var(--leafs-border);
	border-bottom: 1px solid var(--leafs-border);
}

.leafs-author-public__stat {
	display: flex;
	align-items: baseline;
	gap: 8px;
}

.leafs-author-public__stat-num {
	font-size: 1.35rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	color: var(--leafs-brand);
	line-height: 1;
}

.leafs-author-public__stat-label {
	font-size: 0.82rem;
	color: var(--leafs-muted);
	font-weight: 500;
}

.leafs-author-public__bio {
	margin: 0 0 16px;
	font-size: 0.95rem;
	line-height: 1.65;
	color: var(--leafs-text);
	max-width: 40rem;
}

.leafs-author-public__hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
}

.leafs-author-public__social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.leafs-author-public__social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	color: var(--leafs-muted);
	background: var(--leafs-surface2);
	border: 1px solid var(--leafs-border);
	text-decoration: none;
	transition:
		color 0.2s ease,
		transform 0.2s ease,
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.leafs-author-public__social-link:hover {
	color: var(--leafs-brand);
	border-color: color-mix(in srgb, var(--leafs-brand) 35%, var(--leafs-border));
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.leafs-author-public__social-link .leafs-author-card__social-fallback {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1;
}

.leafs-author-public__btn-uc {
	flex-shrink: 0;
}

/* List */
.leafs-author-public__list-section {
	margin-top: 8px;
}

.leafs-author-public__list-head {
	margin-bottom: 18px;
}

.leafs-author-public__list-title {
	margin: 0 0 4px;
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--leafs-text);
}

.leafs-author-public__list-desc {
	margin: 0;
	font-size: 0.86rem;
}

/* 公开内容：左文章、右工具；桌面两列等高面板；窄屏上下堆叠 */
.leafs-author-public__columns {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px 24px;
	align-items: stretch;
}

.leafs-author-public__column {
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.leafs-author-public__column-panel.leafs-surface-card {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
	padding: 16px 16px 18px;
	box-shadow: var(--leafs-shadow-sm);
}

.leafs-author-public__column-title {
	margin: 0 0 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--leafs-border);
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--leafs-text);
	letter-spacing: 0.02em;
}

.leafs-author-public__column-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-height: 0;
}

.leafs-author-public__column-body .leafs-card,
.leafs-author-public__column-body .leafs-author-public-post-card {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

@media (min-width: 768px) {
	.leafs-author-public__columns:not(.leafs-author-public__columns--posts-only) {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.leafs-author-public__column-empty {
	margin: 0;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 140px;
	padding: 20px 14px;
	text-align: center;
	border-radius: 12px;
	border: 1px dashed var(--leafs-border);
	background: var(--leafs-surface2);
}

.leafs-author-public__column-empty-title {
	margin: 0 0 6px;
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--leafs-text);
}

.leafs-author-public__column-empty-desc {
	margin: 0;
	font-size: 0.82rem;
	line-height: 1.5;
}

/* 文章行卡片：左图右文 / 移动端上图下文 */
.leafs-author-public-post-card {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 16px 18px;
	padding: 16px 18px;
	border-radius: 14px;
	border: 1px solid var(--leafs-border);
	background: var(--leafs-surface);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, var(--leafs-shadow-sm);
	transition:
		border-color 0.22s ease,
		box-shadow 0.22s ease,
		transform 0.22s ease;
}

.leafs-author-public-post-card:hover {
	border-color: color-mix(in srgb, var(--leafs-brand) 22%, var(--leafs-border));
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.05) inset,
		0 10px 28px -12px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
}

html[data-leafs-theme="dark"] .leafs-author-public-post-card:hover {
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.03) inset,
		0 14px 36px -12px rgba(0, 0, 0, 0.45);
}

.leafs-author-public-post-card__thumb {
	flex: 0 0 80px;
	width: 80px;
	height: 80px;
	border-radius: 12px;
	overflow: hidden;
	background: var(--leafs-surface2);
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04) inset;
}

.leafs-author-public-post-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	vertical-align: middle;
}

.leafs-author-public-post-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(145deg, var(--leafs-surface2), color-mix(in srgb, var(--leafs-border) 65%, var(--leafs-surface2)));
	color: color-mix(in srgb, var(--leafs-muted) 85%, var(--leafs-brand));
}

.leafs-author-public-post-card__placeholder-svg {
	opacity: 0.85;
}

.leafs-author-public-post-card__body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.leafs-author-public-post-card__title {
	margin: 0;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.01em;
}

.leafs-author-public-post-card__title a {
	color: var(--leafs-text);
	text-decoration: none;
}

.leafs-author-public-post-card__title a:hover {
	color: var(--leafs-link);
}

.leafs-author-public-post-card__cats {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 8px;
	align-items: center;
}

.leafs-author-public-post-card__cat {
	display: inline-flex;
	align-items: center;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.4;
	text-decoration: none;
	color: var(--leafs-muted);
	background: color-mix(in srgb, var(--leafs-surface2) 88%, var(--leafs-border));
	border: 1px solid color-mix(in srgb, var(--leafs-border) 80%, transparent);
	transition:
		color 0.18s ease,
		background 0.18s ease,
		border-color 0.18s ease;
}

.leafs-author-public-post-card__cat:hover {
	color: var(--leafs-brand);
	border-color: color-mix(in srgb, var(--leafs-brand) 35%, var(--leafs-border));
	background: color-mix(in srgb, var(--leafs-brand) 10%, var(--leafs-surface2));
}

html[data-leafs-theme="dark"] .leafs-author-public-post-card__cat {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.1);
	color: var(--leafs-muted);
}

html[data-leafs-theme="dark"] .leafs-author-public-post-card__cat:hover {
	background: color-mix(in srgb, var(--leafs-brand) 18%, transparent);
	border-color: color-mix(in srgb, var(--leafs-brand) 40%, transparent);
	color: var(--leafs-mint, var(--leafs-brand));
}

.leafs-author-public-post-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 6px;
	font-size: 0.8125rem;
	color: var(--leafs-muted);
	line-height: 1.45;
}

.leafs-author-public-post-card__time {
	font-variant-numeric: tabular-nums;
}

.leafs-author-public-post-card__dot {
	opacity: 0.55;
	user-select: none;
}

.leafs-author-public-post-card__stat {
	font-variant-numeric: tabular-nums;
}

@media (max-width: 600px) {
	.leafs-author-public-post-card {
		flex-direction: column;
		align-items: center;
		text-align: center;
		padding: 18px 16px;
	}

	.leafs-author-public-post-card__thumb {
		flex: 0 0 auto;
	}

	.leafs-author-public-post-card__body {
		align-items: center;
		text-align: center;
		width: 100%;
	}

	.leafs-author-public-post-card__cats {
		justify-content: center;
	}

	.leafs-author-public-post-card__meta {
		justify-content: center;
	}
}

/* 分页（仅作者公开页）：立体方钮、当前页品牌绿、浅灰未选；提高选择器权重避免被全局链接着色覆盖 */
.leafs-author-public .leafs-author-public__pagination {
	margin-top: 12px;
	padding: 24px 0 10px;
}

.leafs-author-public .leafs-author-public__pagination > nav.pagination.leafs-pagination {
	width: 100%;
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	box-shadow: none;
}

.leafs-author-public .leafs-author-public__pagination .leafs-pagination {
	margin-top: 0;
	width: 100%;
	justify-content: center;
	gap: 0;
}

.leafs-author-public .leafs-author-public__pagination .leafs-pagination ul.page-numbers {
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
	align-items: center;
}

.leafs-author-public .leafs-author-public__pagination .leafs-pagination ul.page-numbers li {
	display: flex;
	align-items: center;
}

.leafs-author-public .leafs-author-public__pagination .leafs-pagination ul.page-numbers a,
.leafs-author-public .leafs-author-public__pagination .leafs-pagination ul.page-numbers span:not(.dots) {
	min-width: 44px;
	min-height: 44px;
	padding: 0 12px;
	border-radius: 10px;
	font-weight: 600;
	font-size: 0.9rem;
	font-variant-numeric: tabular-nums;
	box-sizing: border-box;
	transition:
		background 0.18s ease,
		border-color 0.18s ease,
		color 0.18s ease,
		box-shadow 0.18s ease,
		transform 0.18s ease;
}

.leafs-author-public .leafs-author-public__pagination .leafs-pagination ul.page-numbers a {
	background: #f8f9fa !important;
	border: 1px solid #dee2e6 !important;
	color: var(--leafs-text) !important;
	text-decoration: none !important;
	filter: none !important;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.85) inset,
		0 1px 3px rgba(15, 23, 42, 0.06);
}

.leafs-author-public .leafs-author-public__pagination .leafs-pagination ul.page-numbers a:hover {
	background: #eef1f4 !important;
	border-color: #ced4da !important;
	color: var(--leafs-text) !important;
	filter: none !important;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.75) inset,
		0 2px 8px rgba(15, 23, 42, 0.08);
	transform: translateY(-1px);
}

html[data-leafs-theme="dark"] .leafs-author-public .leafs-author-public__pagination .leafs-pagination ul.page-numbers a {
	background: var(--leafs-surface2) !important;
	border-color: var(--leafs-border) !important;
	color: var(--leafs-text) !important;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.04) inset,
		0 2px 8px rgba(0, 0, 0, 0.35);
}

html[data-leafs-theme="dark"] .leafs-author-public .leafs-author-public__pagination .leafs-pagination ul.page-numbers a:hover {
	background: color-mix(in srgb, var(--leafs-surface2) 88%, var(--leafs-brand)) !important;
	border-color: color-mix(in srgb, var(--leafs-border) 65%, var(--leafs-brand)) !important;
	filter: none !important;
}

.leafs-author-public .leafs-author-public__pagination .leafs-pagination ul.page-numbers a:focus-visible {
	outline: 2px solid var(--leafs-focus-ring);
	outline-offset: 2px;
}

.leafs-author-public .leafs-author-public__pagination .leafs-pagination ul.page-numbers span.current {
	background: var(--leafs-brand) !important;
	border: 1px solid var(--leafs-brand) !important;
	color: #fff !important;
	font-weight: 700;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.2) inset,
		0 2px 0 rgba(0, 0, 0, 0.12) inset,
		0 4px 14px color-mix(in srgb, var(--leafs-brand) 45%, transparent);
	transform: none;
}

.leafs-author-public .leafs-author-public__pagination .leafs-pagination ul.page-numbers span.dots {
	min-width: auto;
	min-height: auto;
	padding: 0 6px;
	border: none !important;
	background: transparent !important;
	color: #868e96 !important;
	font-weight: 500;
	font-size: 0.95rem;
	box-shadow: none !important;
	transform: none;
}

html[data-leafs-theme="dark"] .leafs-author-public .leafs-author-public__pagination .leafs-pagination ul.page-numbers span.dots {
	color: var(--leafs-muted) !important;
}

.leafs-author-public .leafs-author-public__pagination .leafs-pagination ul.page-numbers a.prev,
.leafs-author-public .leafs-author-public__pagination .leafs-pagination ul.page-numbers a.next {
	min-width: auto;
	padding: 0 18px;
	border-radius: 10px;
	font-weight: 600;
	white-space: nowrap;
}

.leafs-author-public__empty {
	padding: 36px 28px;
	text-align: center;
	border-radius: 16px;
	border: 1px dashed var(--leafs-border);
	background: var(--leafs-surface2);
}

.leafs-author-public__empty-title {
	margin: 0 0 8px;
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--leafs-text);
}

html[data-leafs-theme="dark"] .leafs-author-public__avatar {
	box-shadow:
		0 0 0 3px var(--leafs-surface),
		0 0 0 5px color-mix(in srgb, var(--leafs-brand) 45%, transparent),
		0 12px 36px rgba(0, 0, 0, 0.35);
}

@supports not (color: color-mix(in srgb, black 50%, white)) {
	.leafs-author-public__avatar {
		box-shadow:
			0 0 0 3px var(--leafs-surface),
			0 0 0 5px rgba(45, 106, 79, 0.35),
			0 12px 32px rgba(0, 0, 0, 0.12);
	}

	.leafs-author-public__hero:hover .leafs-author-public__avatar {
		box-shadow:
			0 0 0 3px var(--leafs-surface),
			0 0 0 8px rgba(45, 106, 79, 0.42),
			0 14px 36px rgba(0, 0, 0, 0.14);
	}

	.leafs-author-public__social-link:hover {
		border-color: rgba(45, 106, 79, 0.4);
	}

	.leafs-author-public .leafs-author-public__pagination .leafs-pagination ul.page-numbers a:hover {
		border-color: rgba(45, 106, 79, 0.45) !important;
		background: rgba(45, 106, 79, 0.1) !important;
	}

	.leafs-author-public .leafs-author-public__pagination .leafs-pagination ul.page-numbers span.current {
		box-shadow:
			0 1px 0 rgba(255, 255, 255, 0.2) inset,
			0 6px 20px rgba(45, 106, 79, 0.38);
	}

	.leafs-author-public-post-card:hover {
		border-color: var(--leafs-border);
	}

	.leafs-author-public-post-card__placeholder {
		background: linear-gradient(145deg, var(--leafs-surface2), var(--leafs-border));
		color: rgba(45, 106, 79, 0.55);
	}

	.leafs-author-public-post-card__cat:hover {
		border-color: rgba(45, 106, 79, 0.35);
		background: rgba(45, 106, 79, 0.08);
		color: var(--leafs-brand);
	}
}

@media (max-width: 600px) {
	.leafs-author-public__hero-inner {
		padding: 0 18px 22px;
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.leafs-author-public__avatar-wrap {
		margin-top: -20px;
	}

	.leafs-author-public__avatar {
		width: 96px;
		height: 96px;
	}

	.leafs-author-public__hero-main {
		text-align: center;
	}

	.leafs-author-public__stats {
		justify-content: center;
	}

	.leafs-author-public__hero-actions {
		justify-content: center;
	}

	.leafs-author-public__social {
		justify-content: center;
	}

	.leafs-author-public__bio {
		margin-left: auto;
		margin-right: auto;
	}
}
