/**
 * B1 主题样式
 */

/* ----------------------------------------------------------------
   设计变量
   ---------------------------------------------------------------- */

:root {
	--b1-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
	--b1-font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

	--b1-color-bg: #f4f4f5;
	--b1-color-surface: #ffffff;
	--b1-color-surface-2: #fafafa;
	--b1-color-text: #18181b;
	--b1-color-text-2: #3f3f46;
	--b1-color-muted: #71717a;
	--b1-color-border: #e4e4e7;
	--b1-color-border-2: #d4d4d8;
	--b1-color-accent: #4f46e5;
	--b1-color-accent-hover: #4338ca;
	--b1-color-accent-soft: #eef2ff;

	--b1-radius-sm: 6px;
	--b1-radius: 10px;
	--b1-radius-lg: 14px;
	--b1-shadow-sm: 0 1px 2px rgba(24, 24, 27, 0.06);
	--b1-shadow: 0 4px 16px rgba(24, 24, 27, 0.08);
	--b1-shadow-lg: 0 12px 32px rgba(24, 24, 27, 0.1);

	--b1-container: 1120px;
	--b1-sidebar: 300px;
	--b1-header-h: 64px;

	--b1-space-1: 0.25rem;
	--b1-space-2: 0.5rem;
	--b1-space-3: 0.75rem;
	--b1-space-4: 1rem;
	--b1-space-5: 1.25rem;
	--b1-space-6: 1.5rem;
	--b1-space-8: 2rem;
	--b1-space-10: 2.5rem;
}

/* ----------------------------------------------------------------
   重置与基础
   ---------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body.b1-body {
	margin: 0;
	font-family: var(--b1-font);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--b1-color-text-2);
	background: var(--b1-color-bg);
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--b1-color-accent);
	text-decoration: none;
	transition: color 0.15s ease;
}

a:hover,
a:focus-visible {
	color: var(--b1-color-accent-hover);
}

.b1-site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

/* ----------------------------------------------------------------
   工具类
   ---------------------------------------------------------------- */

.b1-container {
	width: 100%;
	max-width: var(--b1-container);
	margin-inline: auto;
	padding-inline: var(--b1-space-5);
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	position: static;
	width: auto;
	height: auto;
	margin: 0;
	overflow: visible;
	clip: auto;
	white-space: normal;
}

.b1-skip-link:focus {
	display: block;
	padding: var(--b1-space-3) var(--b1-space-4);
	background: var(--b1-color-accent);
	color: #fff;
	text-align: center;
}

/* ----------------------------------------------------------------
   页头
   ---------------------------------------------------------------- */

.b1-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.92);
	border-bottom: 1px solid var(--b1-color-border);
	backdrop-filter: blur(10px);
}

.b1-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--b1-space-3) var(--b1-space-4);
	min-height: var(--b1-header-h);
	padding-block: var(--b1-space-3);
}

.b1-header__brand {
	display: flex;
	align-items: center;
	flex: 1 1 auto;
	min-width: 0;
}

.b1-header__title {
	display: inline-flex;
	align-items: center;
	gap: var(--b1-space-3);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1;
	color: var(--b1-color-text);
	text-decoration: none;
	letter-spacing: -0.02em;
}

.b1-header__icon {
	width: 32px;
	height: 32px;
	border-radius: var(--b1-radius-sm);
	object-fit: cover;
	flex-shrink: 0;
}

.b1-header__name {
	line-height: 1;
}

.b1-header__title:hover {
	color: var(--b1-color-accent);
	text-decoration: none;
}

.b1-header__logo {
	display: flex;
	align-items: center;
	line-height: 0;
}

.b1-header__logo img {
	max-height: 40px;
	width: auto;
}

.b1-header__nav {
	display: flex;
	align-items: center;
	width: 100%;
}

.b1-header__search {
	width: 100%;
	max-width: 220px;
}

.b1-header-search-toggle {
	display: none;
}

.b1-header-search-inline {
	min-width: 0;
}

.b1-header-search-panel {
	display: none;
}

.b1-header-search-panel .b1-search-form__inner {
	height: 2.5rem;
}

.b1-header-search-panel .b1-search-form__input {
	height: 100%;
	font-size: 1rem;
}

.b1-header-search-panel .b1-search-form__submit {
	height: 100%;
}

.b1-header__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex: 0 0 auto;
	gap: var(--b1-space-3);
	min-width: 0;
	margin-left: auto;
}

.b1-header__login {
	flex-shrink: 0;
}

.b1-header-login {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.35em;
	height: 2.25rem;
	padding: 0 0.65rem;
	border: 1px solid var(--b1-color-border);
	border-radius: var(--b1-radius-sm);
	background: var(--b1-color-surface);
	color: var(--b1-color-text-2);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1;
	text-decoration: none;
	transition:
		color 0.15s ease,
		border-color 0.15s ease,
		background-color 0.15s ease,
		box-shadow 0.2s ease;
}

.b1-header-login:hover,
.b1-header-login:focus-visible {
	border-color: var(--b1-color-border-2);
	background: var(--b1-color-accent-soft);
	color: var(--b1-color-accent);
	text-decoration: none;
}

.b1-header-login:focus-visible {
	outline: 2px solid var(--b1-color-accent);
	outline-offset: 2px;
}

.b1-header-login .b1-icon {
	color: currentColor;
}

.b1-header-login--user {
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	overflow: hidden;
	background: var(--b1-color-border);
}

.b1-header-login--user:hover,
.b1-header-login--user:focus-visible {
	background: var(--b1-color-surface);
}

.b1-header-login__avatar {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.b1-nav__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--b1-space-1) var(--b1-space-5);
	margin: 0;
	padding: 0;
	list-style: none;
}

.b1-nav__list > li {
	display: flex;
	align-items: center;
}

.b1-nav__list a {
	display: inline-flex;
	align-items: center;
	line-height: 1.4;
	color: var(--b1-color-text-2);
	font-size: 0.9375rem;
	font-weight: 500;
	text-decoration: none;
}

.b1-nav__list a:hover,
.b1-nav__list .current-menu-item > a {
	color: var(--b1-color-accent);
}

@media (max-width: 899px) {
	.b1-header__inner {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		grid-template-areas:
			"brand actions"
			"nav nav";
		align-items: center;
		gap: var(--b1-space-2) var(--b1-space-3);
		padding-block: var(--b1-space-2);
	}

	.b1-header.is-search-open .b1-header__inner {
		grid-template-areas:
			"brand actions"
			"nav nav"
			"search search";
	}

	.b1-header__brand {
		grid-area: brand;
		display: flex;
		align-items: center;
		align-self: center;
		min-height: 2.25rem;
		min-width: 0;
	}

	.b1-header__actions {
		grid-area: actions;
		display: flex;
		align-items: center;
		align-self: center;
		flex: none;
		margin-left: 0;
		min-height: 2.25rem;
	}

	.b1-header__nav {
		grid-area: nav;
		width: 100%;
		min-width: 0;
		overflow-x: auto;
		-ms-overflow-style: none;
		scrollbar-width: none;
	}

	.b1-header__nav::-webkit-scrollbar {
		display: none;
	}

	.b1-nav__list {
		flex-wrap: nowrap;
		width: max-content;
		max-width: 100%;
	}

	.b1-nav__list > li {
		flex-shrink: 0;
	}

	.b1-header__logo img {
		max-height: 1.875rem;
	}

	.b1-header__icon {
		width: 1.875rem;
		height: 1.875rem;
	}

	.b1-header__title {
		min-height: 2.25rem;
		font-size: 1.125rem;
		gap: var(--b1-space-2);
	}

	.b1-header__name {
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.b1-header__search {
		display: flex;
		align-items: center;
		width: auto;
		max-width: none;
		flex: none;
		line-height: 0;
	}

	.b1-header__login {
		display: flex;
		align-items: center;
		line-height: 0;
	}

	.b1-header-search-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 2.25rem;
		height: 2.25rem;
		padding: 0;
		border: 1px solid var(--b1-color-border);
		border-radius: var(--b1-radius-sm);
		background: var(--b1-color-surface);
		color: var(--b1-color-text-2);
		cursor: pointer;
		transition:
			color 0.15s ease,
			border-color 0.15s ease,
			background-color 0.15s ease;
	}

	.b1-header-search-toggle:hover,
	.b1-header-search-toggle:focus-visible,
	.b1-header.is-search-open .b1-header-search-toggle {
		border-color: var(--b1-color-border-2);
		background: var(--b1-color-accent-soft);
		color: var(--b1-color-accent);
	}

	.b1-header-search-toggle:focus-visible {
		outline: 2px solid var(--b1-color-accent);
		outline-offset: 2px;
	}

	.b1-header-search-toggle .b1-icon {
		color: currentColor;
	}

	.b1-header-search-inline {
		display: none;
	}

	.b1-header-search-panel {
		grid-area: search;
		display: block;
		padding-top: var(--b1-space-2);
	}

	.b1-header-search-panel[hidden] {
		display: none;
	}

	.b1-header-search-panel .b1-search-form {
		width: 100%;
	}

	.b1-header-login__label {
		display: none;
	}

	.b1-header-login:not(.b1-header-login--user) {
		width: 2.25rem;
		padding: 0;
	}
}

@media (min-width: 900px) {
	.b1-header__inner {
		display: flex;
		flex-wrap: nowrap;
		align-items: center;
		gap: var(--b1-space-3) var(--b1-space-6);
		padding-block: var(--b1-space-3);
		min-height: var(--b1-header-h);
	}

	.b1-header__brand {
		flex: 0 0 auto;
	}

	.b1-header__nav {
		flex: 1 1 auto;
		width: auto;
		min-width: 0;
	}

	.b1-header__actions {
		flex: 0 0 auto;
		margin-left: auto;
		gap: var(--b1-space-4);
	}

	.b1-header__search {
		width: auto;
		max-width: 240px;
	}

	.b1-header-search-toggle {
		display: none;
	}

	.b1-header-search-inline {
		display: block;
	}

	.b1-header-search-panel {
		display: none !important;
	}
}

/* ----------------------------------------------------------------
   布局
   ---------------------------------------------------------------- */

.b1-main {
	flex: 1;
	padding-block: var(--b1-space-8);
}

.b1-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--b1-space-8);
	align-items: start;
}

.b1-layout__content {
	background: var(--b1-color-surface);
	border: 1px solid var(--b1-color-border);
	border-radius: 0;
	box-shadow: var(--b1-shadow-sm);
	padding: var(--b1-space-6);
	min-width: 0;
}

@media (min-width: 768px) {
	.b1-layout:not(.b1-layout--full) {
		grid-template-columns: minmax(0, 1fr) var(--b1-sidebar);
	}

	.b1-sidebar__panel {
		position: sticky;
		top: calc(var(--b1-header-h) + var(--b1-space-4));
	}
}

@media (max-width: 767px) {
	.b1-main > .b1-container.b1-layout {
		padding-inline: 0;
	}

	.b1-layout__content {
		padding-inline: 0;
		border-inline: none;
	}

	.b1-sidebar__panel {
		padding-inline: 0;
		border-inline: none;
	}

	.b1-page-header,
	.b1-page-header--card,
	.b1-breadcrumb,
	.pagination,
	.navigation.pagination,
	.b1-article__header,
	.b1-article__content,
	.b1-article__footer,
	.b1-article-nav,
	.b1-comments,
	.comments-area,
	.b1-error,
	.b1-no-results {
		padding-inline: var(--b1-space-4);
	}
}

/* ----------------------------------------------------------------
   页面标题
   ---------------------------------------------------------------- */

.b1-page-header {
	margin-bottom: var(--b1-space-6);
	padding-bottom: var(--b1-space-5);
	border-bottom: 1px solid var(--b1-color-border);
}

.b1-page-header--card {
	position: relative;
	padding: var(--b1-space-5);
	background: var(--b1-color-surface-2);
	border: 1px solid var(--b1-color-border);
	border-bottom: 1px solid var(--b1-color-border);
	box-shadow: var(--b1-shadow-sm);
}

.b1-page-header--card .b1-page-header__corner {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 1;
	display: inline-flex;
	align-items: stretch;
}

.b1-page-header--card .b1-page-header__corner .b1-page-header__label {
	position: static;
	border-radius: 0;
}

.b1-page-header--has-label .b1-page-header__title {
	padding-inline: 4.5rem;
}

.b1-page-header--has-label:has(.b1-header-edit) .b1-page-header__title {
	padding-inline: 5.5rem;
}

.b1-page-header__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--b1-space-2) var(--b1-space-3);
	margin-top: var(--b1-space-3);
}

.b1-header-edit {
	flex-shrink: 0;
	font-size: 0;
	line-height: 0;
}

.b1-header-edit .b1-article__edit-link {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.7rem;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--b1-color-accent);
	background: var(--b1-color-accent-soft);
	text-decoration: none;
	border-radius: 0;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.b1-header-edit .b1-article__edit-link:hover,
.b1-header-edit .b1-article__edit-link:focus-visible {
	color: var(--b1-color-accent-hover);
	background: #e0e7ff;
}

.b1-page-header__label {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	padding: 0.25rem 0.7rem;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--b1-color-accent);
	background: var(--b1-color-accent-soft);
}

.b1-page-header__label .b1-icon {
	color: var(--b1-color-accent);
}

.b1-page-header__count {
	margin: 0;
	font-size: 0.875rem;
	color: var(--b1-color-muted);
	white-space: nowrap;
}

.b1-page-header--card .b1-page-header__description {
	margin-top: var(--b1-space-3);
	padding-top: var(--b1-space-3);
	border-top: 1px solid var(--b1-color-border);
}

.b1-page-header--card .b1-page-header__description p {
	margin: 0;
}

.b1-page-header--card .b1-page-header__description p + p {
	margin-top: var(--b1-space-2);
}

.b1-page-header--card .b1-page-header__title {
	text-align: center;
}

.b1-page-header__title {
	margin: 0;
	font-size: clamp(1.5rem, 3vw, 1.875rem);
	font-weight: 700;
	line-height: 1.2;
	color: var(--b1-color-text);
	letter-spacing: -0.02em;
}

.b1-page-header__description {
	margin-top: var(--b1-space-2);
	color: var(--b1-color-muted);
	font-size: 0.9375rem;
}

/* ----------------------------------------------------------------
   面包屑
   ---------------------------------------------------------------- */

.b1-breadcrumb {
	margin-bottom: var(--b1-space-5);
}

.b1-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--b1-space-1) var(--b1-space-2);
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--b1-color-muted);
}

.b1-breadcrumb__item {
	display: inline-flex;
	align-items: center;
	min-width: 0;
}

.b1-breadcrumb__item:not(:first-child)::before {
	content: "/";
	margin-right: var(--b1-space-2);
	color: var(--b1-color-border-2);
}

.b1-breadcrumb__link {
	color: var(--b1-color-muted);
	text-decoration: none;
	transition: color 0.15s ease;
}

.b1-breadcrumb__link:hover {
	color: var(--b1-color-accent);
}

.b1-breadcrumb__text {
	display: block;
	color: var(--b1-color-text-2);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.b1-breadcrumb__item--current .b1-breadcrumb__text {
	color: var(--b1-color-text);
	font-weight: 500;
}

/* ----------------------------------------------------------------
   图标
   ---------------------------------------------------------------- */

.b1-icon {
	display: inline-block;
	flex-shrink: 0;
	vertical-align: -0.125em;
	color: var(--b1-color-muted);
}

/* ----------------------------------------------------------------
   文章列表卡片
   ---------------------------------------------------------------- */

.b1-post-list {
	display: flex;
	flex-direction: column;
	gap: var(--b1-space-4);
}

.b1-card {
	margin: 0;
}

.b1-card__link {
	display: grid;
	grid-template-columns: 152px 1fr;
	gap: var(--b1-space-5);
	align-items: start;
	padding: var(--b1-space-4);
	background: var(--b1-color-surface-2);
	border: 1px solid var(--b1-color-border);
	border-radius: 0;
	color: inherit;
	text-decoration: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.b1-card__link:hover {
	border-color: var(--b1-color-border-2);
	box-shadow: var(--b1-shadow);
	transform: translateY(-1px);
	text-decoration: none;
}

.b1-card__link:hover .b1-card__title {
	color: var(--b1-color-accent);
}

.b1-card__media {
	overflow: hidden;
	border-radius: 0;
	aspect-ratio: 400 / 260;
	background: var(--b1-color-border);
}

.b1-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.b1-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 96px;
	background: linear-gradient(145deg, #f4f4f5 0%, #e4e4e7 100%);
}

.b1-card__placeholder-icon {
	display: block;
	width: 36px;
	height: 36px;
	opacity: 0.4;
	background-color: #a1a1aa;
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='8.5' cy='10' r='1.5'/%3E%3Cpath d='M21 16l-5.5-5.5L5 21'/%3E%3C/svg%3E");
	mask-size: contain;
	mask-repeat: no-repeat;
	mask-position: center;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='8.5' cy='10' r='1.5'/%3E%3Cpath d='M21 16l-5.5-5.5L5 21'/%3E%3C/svg%3E");
	-webkit-mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-position: center;
}

.b1-card__body {
	display: flex;
	flex-direction: column;
	min-height: calc(152px * 260 / 400);
	min-width: 0;
}

.b1-card__title {
	margin: 0 0 var(--b1-space-2);
	order: 1;
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--b1-color-text);
	transition: color 0.15s ease;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.b1-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	order: 3;
	gap: var(--b1-space-2) var(--b1-space-3);
	margin-top: auto;
	margin-bottom: 0;
	font-size: 0.8125rem;
	color: var(--b1-color-muted);
}

.b1-card__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
}

.b1-card__excerpt {
	order: 2;
	font-size: 0.875rem;
	line-height: 1.55;
	color: var(--b1-color-muted);
}

.b1-card__excerpt p {
	margin: 0;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

@media (max-width: 767px) {
	.b1-post-list {
		padding-inline: var(--b1-space-4);
	}

	.b1-card__link {
		grid-template-columns: 108px 1fr;
		gap: var(--b1-space-3);
		align-items: start;
		padding: var(--b1-space-4);
	}

	.b1-card__body {
		min-height: calc(108px * 3 / 4);
		padding: 0;
	}

	.b1-card__media {
		aspect-ratio: 4 / 3;
	}

	.b1-card__title {
		font-size: 0.9375rem;
		margin-bottom: 0;
	}

	.b1-card__meta {
		flex-wrap: nowrap;
		gap: var(--b1-space-2);
		min-width: 0;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior-x: contain;
		-ms-overflow-style: none;
		scrollbar-width: none;
		font-size: 0.75rem;
	}

	.b1-card__meta::-webkit-scrollbar {
		display: none;
	}

	.b1-card__meta-item {
		flex-shrink: 0;
		white-space: nowrap;
	}

	.b1-card__excerpt {
		display: none;
	}
}

/* ----------------------------------------------------------------
   文章详情
   ---------------------------------------------------------------- */

.b1-article {
	margin-bottom: var(--b1-space-6);
}

.b1-article__header--stack {
	margin-bottom: var(--b1-space-6);
	padding-bottom: var(--b1-space-5);
	border-bottom: 1px solid var(--b1-color-border);
	text-align: left;
}

.b1-article--page .b1-article__header--stack {
	text-align: center;
}

.b1-article--page .b1-article__title {
	margin-bottom: 0;
}

.b1-article__meta-cats {
	align-items: center;
}

.b1-article__meta-cats-list {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35em;
}

.b1-article__meta-cat {
	color: var(--b1-color-muted);
	text-decoration: none;
}

.b1-article__meta-cat:hover {
	color: var(--b1-color-accent);
	text-decoration: none;
}

.b1-article__meta-cats-list .b1-article__meta-cat + .b1-article__meta-cat::before {
	content: "/";
	margin-right: 0.35em;
	color: var(--b1-color-border-2);
}

.b1-article__title {
	margin: 0 0 var(--b1-space-3);
	font-size: clamp(1.375rem, 3vw, 1.875rem);
	font-weight: 700;
	line-height: 1.25;
	color: var(--b1-color-text);
	letter-spacing: -0.02em;
}

.b1-article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--b1-space-2) var(--b1-space-4);
	font-size: 0.875rem;
	color: var(--b1-color-muted);
}

.b1-article__meta:empty {
	display: none;
}

.b1-article__meta-edit {
	margin-left: auto;
}

.b1-article__edit-link {
	color: var(--b1-color-muted);
	font-weight: 500;
	text-decoration: none;
	transition: color 0.15s ease;
}

.b1-article__edit-link:hover,
.b1-article__edit-link:focus-visible {
	color: var(--b1-color-accent);
}

.b1-article__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
}

.b1-article__author a {
	color: var(--b1-color-muted);
}

.b1-article__author a:hover {
	color: var(--b1-color-accent);
}

.b1-article__comments a {
	color: var(--b1-color-muted);
}

.b1-article__comments a:hover {
	color: var(--b1-color-accent);
}

.b1-article__figure {
	margin: 0 0 var(--b1-space-6);
	max-width: 100%;
	width: fit-content;
}

.b1-article__image {
	height: auto;
	max-width: 100%;
}

.b1-article__content {
	font-size: 1.0625rem;
	line-height: 1.8;
	color: var(--b1-color-text-2);
	overflow-wrap: break-word;
	word-break: break-word;
}

.b1-article__content > *:first-child {
	margin-top: 0;
}

.b1-article__content p {
	margin: 0 0 1.25em;
}

.b1-article__content h2,
.b1-article__content h3,
.b1-article__content h4 {
	margin: 1.75em 0 0.65em;
	line-height: 1.3;
	color: var(--b1-color-text);
}

.b1-article__content h2 {
	font-size: 1.3125rem;
}

.b1-article__content h3 {
	font-size: 1.125rem;
}

.b1-article__content ul,
.b1-article__content ol {
	margin: 0 0 1.25em;
	padding-left: 1.4em;
}

.b1-article__content a,
.entry-content a {
	overflow-wrap: anywhere;
	word-break: break-word;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.b1-article__content img {
	border-radius: var(--b1-radius-sm);
}

.b1-article__content blockquote {
	margin: 1.5em 0;
	padding: var(--b1-space-4) var(--b1-space-5);
	border-left: 3px solid var(--b1-color-accent);
	background: var(--b1-color-surface-2);
	border-radius: 0 var(--b1-radius-sm) var(--b1-radius-sm) 0;
	color: var(--b1-color-muted);
}

.b1-article__content pre,
.b1-article__content code {
	font-family: var(--b1-font-mono);
	font-size: 0.9em;
}

.b1-article__content pre {
	overflow-x: auto;
	max-width: 100%;
	padding: var(--b1-space-4);
	background: #27272a;
	color: #fafafa;
	border-radius: var(--b1-radius-sm);
}

.b1-code-block {
	position: relative;
	margin: var(--b1-space-4) 0;
}

.b1-code-block pre {
	margin: 0;
	padding-right: calc(3.75rem + var(--b1-space-2));
}

.b1-code-block__copy {
	position: absolute;
	top: var(--b1-space-2);
	right: var(--b1-space-2);
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 3.25rem;
	height: 1.75rem;
	padding: 0 0.55rem;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: var(--b1-radius-sm);
	background: rgba(255, 255, 255, 0.08);
	color: #fafafa;
	font-family: var(--b1-font);
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	transition:
		background-color 0.15s ease,
		border-color 0.15s ease,
		color 0.15s ease;
}

.b1-code-block__copy:hover,
.b1-code-block__copy:focus-visible {
	border-color: rgba(255, 255, 255, 0.28);
	background: rgba(255, 255, 255, 0.16);
}

.b1-code-block__copy:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.45);
	outline-offset: 2px;
}

.b1-code-block__copy.is-copied {
	border-color: rgba(134, 239, 172, 0.45);
	background: rgba(34, 197, 94, 0.2);
	color: #bbf7d0;
}

.b1-article__content :not(pre) > code {
	padding: 0.12em 0.35em;
	background: var(--b1-color-surface-2);
	border-radius: 4px;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.b1-article__pages {
	margin-top: var(--b1-space-6);
	padding-top: var(--b1-space-5);
	border-top: 1px solid var(--b1-color-border);
	font-size: 0.9375rem;
}

.b1-article__footer {
	margin-top: var(--b1-space-6);
	padding-top: var(--b1-space-5);
	border-top: 1px solid var(--b1-color-border);
}

.b1-article__footer:empty {
	display: none;
}

.b1-article__tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--b1-space-2);
}

.b1-article__tags-label {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--b1-color-muted);
}

.b1-article__tag {
	display: inline-block;
	padding: 0.2rem 0.55rem;
	font-size: 0.8125rem;
	color: var(--b1-color-text-2);
	background: var(--b1-color-surface-2);
	border: 1px solid var(--b1-color-border);
	border-radius: var(--b1-radius-sm);
	text-decoration: none;
}

.b1-article__tag:hover {
	border-color: var(--b1-color-border-2);
	background: #fff;
	text-decoration: none;
}

.b1-article-nav {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--b1-space-3);
	margin-top: var(--b1-space-8);
	padding-top: var(--b1-space-6);
	border-top: 1px solid var(--b1-color-border);
}

@media (min-width: 600px) {
	.b1-article-nav {
		grid-template-columns: 1fr 1fr;
	}

	.b1-article-nav__item:only-child {
		grid-column: 1 / -1;
		max-width: 50%;
	}

	.b1-article-nav__item--prev:only-child {
		justify-self: start;
	}

	.b1-article-nav__item--next:only-child {
		justify-self: end;
		margin-left: auto;
	}
}

.b1-article-nav__item {
	display: block;
	padding: var(--b1-space-4) var(--b1-space-5);
	background: var(--b1-color-surface-2);
	border: 1px solid var(--b1-color-border);
	border-radius: 0;
	color: inherit;
	text-decoration: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.b1-article-nav__item:hover {
	border-color: var(--b1-color-border-2);
	box-shadow: var(--b1-shadow-sm);
	text-decoration: none;
}

.b1-article-nav__item--next {
	text-align: right;
}

.b1-article-nav__label {
	display: block;
	font-size: 0.75rem;
	color: var(--b1-color-muted);
	margin-bottom: var(--b1-space-1);
}

.b1-article-nav__title {
	display: block;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--b1-color-text);
}

.b1-article-nav__item:hover .b1-article-nav__title {
	color: var(--b1-color-accent);
}

@media (max-width: 767px) {
	.b1-main {
		padding-block: var(--b1-space-4);
	}

	.b1-layout__content {
		padding-block: var(--b1-space-3);
	}

	.b1-breadcrumb {
		margin-bottom: var(--b1-space-3);
	}

	.b1-article {
		margin-bottom: var(--b1-space-4);
	}

	.b1-article__header--stack {
		margin-bottom: var(--b1-space-4);
		padding-bottom: var(--b1-space-3);
	}

	.b1-article__title {
		margin-bottom: var(--b1-space-2);
		font-size: clamp(1.25rem, 5vw, 1.5rem);
	}

	.b1-article__meta {
		gap: var(--b1-space-1) var(--b1-space-3);
		font-size: 0.8125rem;
	}

	.b1-article__figure {
		margin-bottom: var(--b1-space-4);
	}

	.b1-article__content {
		font-size: 1rem;
		line-height: 1.75;
	}

	.b1-article__content p {
		margin-bottom: 1em;
	}

	.b1-article__content h2,
	.b1-article__content h3,
	.b1-article__content h4,
	.b1-article__content h5,
	.b1-article__content h6 {
		margin: 1.1em 0 0.4em;
		line-height: 1.25;
	}

	.b1-article__content h2 {
		font-size: 1.1875rem;
	}

	.b1-article__content h3 {
		font-size: 1.0625rem;
	}

	.b1-article__content h4 {
		font-size: 1rem;
	}

	.b1-article__content h5 {
		font-size: 0.9375rem;
	}

	.b1-article__content h6 {
		font-size: 0.875rem;
	}

	.b1-article__content ul,
	.b1-article__content ol {
		margin-bottom: 1em;
	}

	.b1-article__content blockquote {
		margin: 1.15em 0;
		padding: var(--b1-space-3) var(--b1-space-4);
	}

	.b1-article__pages {
		margin-top: var(--b1-space-4);
		padding-top: var(--b1-space-3);
	}

	.b1-article__footer {
		margin-top: var(--b1-space-4);
		padding-top: var(--b1-space-3);
	}

	.b1-article-nav {
		margin-top: var(--b1-space-5);
		padding-top: var(--b1-space-4);
	}

	.b1-article-nav__item {
		padding: var(--b1-space-3) var(--b1-space-4);
	}

	.b1-breadcrumb,
	.b1-article__header,
	.b1-article__content,
	.b1-article__footer,
	.b1-article-nav {
		padding-inline: var(--b1-space-3);
	}
}

/* ----------------------------------------------------------------
   侧边栏
   ---------------------------------------------------------------- */

.b1-sidebar__panel {
	padding: var(--b1-space-5);
	background: var(--b1-color-surface);
	border: 1px solid var(--b1-color-border);
	border-radius: 0;
	box-shadow: var(--b1-shadow-sm);
}

.b1-widget {
	margin-bottom: var(--b1-space-6);
}

.b1-widget:last-child {
	margin-bottom: 0;
}

@media (max-width: 767px) {
	.b1-widget.b1-widget--hide-mobile {
		display: none !important;
	}
}

.b1-widget__title {
	margin: 0 0 var(--b1-space-4);
	padding-bottom: var(--b1-space-3);
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--b1-color-text);
	border-bottom: 2px solid var(--b1-color-accent-soft);
}

.b1-widget__title-inner {
	display: inline-flex;
	align-items: center;
	gap: 0.4em;
}

.b1-widget__title-icon {
	flex-shrink: 0;
	color: var(--b1-color-accent);
}

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

.b1-widget li {
	padding: var(--b1-space-2) 0;
	border-bottom: 1px solid var(--b1-color-border);
	font-size: 0.9375rem;
}

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

.b1-widget a {
	color: var(--b1-color-text-2);
	text-decoration: none;
}

.b1-widget a:hover {
	color: var(--b1-color-accent);
	text-decoration: none;
}

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

/* 聚合文章 */
.b1-widget-recent-posts__item {
	padding: var(--b1-space-3) 0;
}

.b1-widget-recent-posts__item--has-thumb {
	display: flex;
	gap: var(--b1-space-3);
	align-items: flex-start;
}

.b1-widget-recent-posts__thumb {
	flex-shrink: 0;
	width: 72px;
	overflow: hidden;
	background: var(--b1-color-border);
}

.b1-widget-recent-posts__image {
	width: 100%;
	height: auto;
	aspect-ratio: 400 / 260;
	object-fit: cover;
}

.b1-widget-recent-posts__placeholder {
	min-height: auto;
	aspect-ratio: 400 / 260;
}

.b1-widget-recent-posts__placeholder-icon {
	width: 24px;
	height: 24px;
}

.b1-widget-recent-posts__body {
	min-width: 0;
}

.b1-widget-recent-posts__title {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.4;
	color: var(--b1-color-text-2);
}

.b1-widget-recent-posts__title:hover {
	color: var(--b1-color-accent);
}

.b1-widget-recent-posts__meta {
	display: block;
	margin-top: var(--b1-space-1);
	font-size: 0.8125rem;
	color: var(--b1-color-muted);
}

.b1-widget-recent-posts__date,
.b1-widget-recent-posts__stat {
	display: block;
}

/* 最新评论 */
.b1-widget-recent-comments__item {
	padding: var(--b1-space-3) 0;
}

.b1-widget-recent-comments__item--has-avatar {
	display: flex;
	gap: var(--b1-space-3);
	align-items: flex-start;
}

.b1-widget-recent-comments__avatar {
	flex-shrink: 0;
	line-height: 0;
}

.b1-widget-recent-comments__avatar-img {
	display: block;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}

.b1-widget-recent-comments__body {
	min-width: 0;
}

.b1-widget-recent-comments__author {
	display: block;
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.3;
	color: var(--b1-color-text);
}

.b1-widget-recent-comments__author:hover {
	color: var(--b1-color-accent);
}

.b1-widget-recent-comments__excerpt {
	display: block;
	margin-top: var(--b1-space-1);
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.45;
	color: var(--b1-color-text-2);
}

.b1-widget-recent-comments__excerpt:hover {
	color: var(--b1-color-accent);
}

.b1-widget-recent-comments__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--b1-space-1) var(--b1-space-2);
	margin-top: var(--b1-space-1);
	font-size: 0.8125rem;
	line-height: 1.4;
	color: var(--b1-color-muted);
}

.b1-widget-recent-comments__post {
	color: var(--b1-color-muted);
}

.b1-widget-recent-comments__post:hover {
	color: var(--b1-color-accent);
}

.b1-widget-recent-comments__date {
	color: var(--b1-color-muted);
}

/* 分类 */
.b1-widget-categories__count {
	font-size: 0.8125rem;
	color: var(--b1-color-muted);
}

/* 标签 */
.b1-widget-tags__cloud {
	display: flex;
	flex-wrap: wrap;
	gap: var(--b1-space-2);
}

.b1-widget-tags__tag {
	display: inline-block;
	padding: 0.2rem 0.55rem;
	font-size: 0.8125rem;
	color: var(--b1-color-text-2);
	background: var(--b1-color-surface-2);
	border: 1px solid var(--b1-color-border);
	text-decoration: none;
}

.b1-widget-tags__tag:hover {
	border-color: var(--b1-color-border-2);
	background: #fff;
	color: var(--b1-color-accent);
	text-decoration: none;
}

/* 站点简介 */
.b1-widget-about__image {
	width: 100%;
	height: auto;
	margin-bottom: var(--b1-space-3);
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.b1-widget-about__text {
	font-size: 0.9375rem;
	line-height: 1.65;
	color: var(--b1-color-text-2);
}

.b1-widget-about__text p {
	margin: 0 0 0.75em;
}

.b1-widget-about__text p:last-child {
	margin-bottom: 0;
}

.b1-widget-about__more {
	display: inline-block;
	margin-top: var(--b1-space-3);
	font-size: 0.875rem;
	font-weight: 600;
}

/* 特别推荐 */
.b1-widget-featured__card {
	position: relative;
	display: block;
	padding: var(--b1-space-4);
	background: var(--b1-color-surface);
	border: 1px solid var(--b1-color-border);
	border-radius: var(--b1-radius-sm);
	text-decoration: none;
	transition:
		border-color 0.15s ease,
		box-shadow 0.15s ease;
}

.b1-widget-featured__card:has(.b1-widget-featured__badge) {
	padding-top: calc(var(--b1-space-4) + 1.65rem);
}

.b1-widget-featured__card:hover {
	border-color: var(--b1-color-border-2);
	box-shadow: var(--b1-shadow-sm);
	text-decoration: none;
}

.b1-widget-featured__badge {
	position: absolute;
	top: 0;
	left: var(--b1-space-3);
	margin: 0;
	padding: 0.2rem 0.5rem;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.4;
	color: #fff;
	background: #f25f5c;
	border-radius: 0 0 var(--b1-radius-sm) var(--b1-radius-sm);
}

.b1-widget-featured__item-title {
	margin: 0 0 var(--b1-space-2);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
	color: #ef6b5a;
}

.b1-widget-featured__card--red .b1-widget-featured__badge {
	background: #f25f5c;
}

.b1-widget-featured__card--red .b1-widget-featured__item-title {
	color: #ef6b5a;
}

.b1-widget-featured__card--red:hover .b1-widget-featured__item-title {
	color: #e85545;
}

.b1-widget-featured__card--orange .b1-widget-featured__badge {
	background: #f97316;
}

.b1-widget-featured__card--orange .b1-widget-featured__item-title {
	color: #ea580c;
}

.b1-widget-featured__card--orange:hover .b1-widget-featured__item-title {
	color: #c2410c;
}

.b1-widget-featured__card--amber .b1-widget-featured__badge {
	background: #f59e0b;
}

.b1-widget-featured__card--amber .b1-widget-featured__item-title {
	color: #d97706;
}

.b1-widget-featured__card--amber:hover .b1-widget-featured__item-title {
	color: #b45309;
}

.b1-widget-featured__card--green .b1-widget-featured__badge {
	background: #22c55e;
}

.b1-widget-featured__card--green .b1-widget-featured__item-title {
	color: #16a34a;
}

.b1-widget-featured__card--green:hover .b1-widget-featured__item-title {
	color: #15803d;
}

.b1-widget-featured__card--blue .b1-widget-featured__badge {
	background: #3b82f6;
}

.b1-widget-featured__card--blue .b1-widget-featured__item-title {
	color: #2563eb;
}

.b1-widget-featured__card--blue:hover .b1-widget-featured__item-title {
	color: #1d4ed8;
}

.b1-widget-featured__card--purple .b1-widget-featured__badge {
	background: #a855f7;
}

.b1-widget-featured__card--purple .b1-widget-featured__item-title {
	color: #9333ea;
}

.b1-widget-featured__card--purple:hover .b1-widget-featured__item-title {
	color: #7e22ce;
}

.b1-widget-featured__card--indigo .b1-widget-featured__badge {
	background: #6366f1;
}

.b1-widget-featured__card--indigo .b1-widget-featured__item-title {
	color: #4f46e5;
}

.b1-widget-featured__card--indigo:hover .b1-widget-featured__item-title {
	color: #4338ca;
}

.b1-widget-featured__card--pink .b1-widget-featured__badge {
	background: #ec4899;
}

.b1-widget-featured__card--pink .b1-widget-featured__item-title {
	color: #db2777;
}

.b1-widget-featured__card--pink:hover .b1-widget-featured__item-title {
	color: #be185d;
}

.b1-widget-featured__desc {
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.6;
	color: var(--b1-color-muted);
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}

/* 搜索小工具 */
.b1-widget-search .b1-search-form__inner {
	border-radius: 0;
}

/* ----------------------------------------------------------------
   搜索表单
   ---------------------------------------------------------------- */

.b1-search-form {
	margin: 0;
}

.b1-error .b1-search-form {
	max-width: 26rem;
	margin-inline: auto;
}

.b1-search-form__inner {
	display: flex;
	align-items: stretch;
	width: 100%;
	border: 1px solid var(--b1-color-border);
	border-radius: var(--b1-radius-sm);
	overflow: hidden;
	background: var(--b1-color-surface);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.b1-search-form__inner:focus-within {
	border-color: var(--b1-color-accent);
	box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}

.b1-search-form__field {
	flex: 1;
	display: flex;
	min-width: 0;
	margin: 0;
}

.b1-search-form__input {
	flex: 1;
	width: 100%;
	min-width: 0;
	padding: 0.5rem 0.75rem;
	border: none;
	font-size: 0.9375rem;
	line-height: 1.5;
	background: transparent;
	color: var(--b1-color-text);
}

.b1-search-form__input:focus {
	outline: none;
}

.b1-search-form__input::placeholder {
	color: var(--b1-color-muted);
}

.b1-search-form__submit {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 0.625rem;
	background: var(--b1-color-accent);
	color: #fff;
	border: none;
	cursor: pointer;
}

.b1-search-form__submit .b1-icon {
	color: currentColor;
}

.b1-search-form__submit:hover {
	background: var(--b1-color-accent-hover);
}

.b1-header__search .b1-search-form__inner {
	height: 2.25rem;
}

.b1-header__search .b1-search-form__input {
	height: 100%;
	padding: 0 0.65rem;
	font-size: 0.875rem;
	line-height: 1;
}

.b1-header__search .b1-search-form__submit {
	height: 100%;
	padding: 0 0.55rem;
}

/* ----------------------------------------------------------------
   分页
   ---------------------------------------------------------------- */

.pagination,
.navigation.pagination {
	margin-top: var(--b1-space-6);
	padding-top: var(--b1-space-5);
	border-top: 1px solid var(--b1-color-border);
}

.nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: var(--b1-space-2);
	justify-content: center;
}

.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	padding: 0.4rem 0.75rem;
	border: 1px solid var(--b1-color-border);
	border-radius: var(--b1-radius-sm);
	font-size: 0.875rem;
	color: var(--b1-color-text-2);
	text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover {
	background: var(--b1-color-accent);
	border-color: var(--b1-color-accent);
	color: #fff;
	text-decoration: none;
}

/* ----------------------------------------------------------------
   错误与空状态
   ---------------------------------------------------------------- */

.b1-error,
.b1-no-results {
	text-align: center;
	padding: var(--b1-space-6) 0;
}

.b1-error__title,
.b1-no-results__title {
	margin: 0 0 var(--b1-space-4);
	font-size: clamp(1.375rem, 3vw, 1.75rem);
	font-weight: 700;
	color: var(--b1-color-text);
}

.b1-error__message,
.b1-no-results__message {
	margin-bottom: var(--b1-space-5);
	color: var(--b1-color-muted);
}

.b1-error__link a {
	font-weight: 500;
}

/* ----------------------------------------------------------------
   页脚
   ---------------------------------------------------------------- */

.b1-footer {
	margin-top: auto;
	padding-block: var(--b1-space-6);
	background: #000000;
	border-top: none;
}

.b1-footer__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--b1-space-4);
	text-align: center;
}

.b1-footer__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--b1-space-2) var(--b1-space-5);
	margin: 0;
	padding: 0;
	list-style: none;
}

.b1-footer__list a {
	font-size: 0.875rem;
	color: #d4d4d8;
	text-decoration: none;
}

.b1-footer__list a:hover {
	color: #ffffff;
	text-decoration: none;
}

.b1-footer__copy {
	margin: 0;
	font-size: 0.8125rem;
	color: #71717a;
}

.b1-footer__icp {
	margin: var(--b1-space-2) 0 0;
	font-size: 0.8125rem;
}

.b1-footer__icp a {
	color: #71717a;
	text-decoration: none;
}

.b1-footer__icp a:hover {
	color: #ffffff;
	text-decoration: none;
}

/* ----------------------------------------------------------------
   浮动操作（评论、返回顶部）
   ---------------------------------------------------------------- */

.b1-floating-actions {
	position: fixed;
	right: var(--b1-space-5);
	bottom: var(--b1-space-5);
	z-index: 100;
	display: flex;
	flex-direction: column-reverse;
	align-items: flex-end;
	gap: var(--b1-space-3);
}

.b1-floating-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border-radius: var(--b1-radius-sm);
	box-shadow: var(--b1-shadow);
	cursor: pointer;
	text-decoration: none;
	transition:
		opacity 0.2s ease,
		visibility 0.2s ease,
		transform 0.2s ease,
		background-color 0.15s ease,
		border-color 0.15s ease,
		box-shadow 0.2s ease;
}

.b1-floating-btn .b1-icon {
	color: currentColor;
}

.b1-floating-btn--comments {
	background: var(--b1-color-surface);
	color: var(--b1-color-accent);
	border: 1px solid var(--b1-color-border);
}

.b1-floating-btn--comments:hover,
.b1-floating-btn--comments:focus-visible {
	border-color: var(--b1-color-border-2);
	background: var(--b1-color-accent-soft);
	box-shadow: var(--b1-shadow-lg);
	text-decoration: none;
}

.b1-floating-btn--comments:focus-visible {
	outline: 2px solid var(--b1-color-accent);
	outline-offset: 2px;
}

.b1-floating-btn--edit {
	background: var(--b1-color-surface);
	color: var(--b1-color-muted);
	border: 1px solid var(--b1-color-border);
}

.b1-floating-btn--edit:hover,
.b1-floating-btn--edit:focus-visible {
	border-color: var(--b1-color-border-2);
	background: var(--b1-color-accent-soft);
	color: var(--b1-color-accent);
	box-shadow: var(--b1-shadow-lg);
	text-decoration: none;
}

.b1-floating-btn--edit:focus-visible {
	outline: 2px solid var(--b1-color-accent);
	outline-offset: 2px;
}

.b1-floating-btn--back-top,
.b1-back-top {
	border: none;
	background: var(--b1-color-accent);
	color: #fff;
}

.b1-back-top[hidden] {
	display: none !important;
}

.b1-floating-btn--back-top.is-visible,
.b1-back-top.is-visible {
	animation: b1-back-top-in 0.2s ease;
}

@keyframes b1-back-top-in {
	from {
		opacity: 0;
		transform: translateY(0.5rem);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.b1-floating-btn--back-top:hover,
.b1-floating-btn--back-top:focus-visible,
.b1-back-top:hover,
.b1-back-top:focus-visible {
	background: var(--b1-color-accent-hover);
	box-shadow: var(--b1-shadow-lg);
}

.b1-floating-btn--back-top:focus-visible,
.b1-back-top:focus-visible {
	outline: 2px solid var(--b1-color-accent);
	outline-offset: 2px;
}

@media (max-width: 600px) {
	.b1-floating-actions {
		right: var(--b1-space-4);
		bottom: var(--b1-space-4);
	}

	.b1-floating-btn {
		width: 2.5rem;
		height: 2.5rem;
	}
}

/* ----------------------------------------------------------------
   评论
   ---------------------------------------------------------------- */

.b1-comments,
.comments-area {
	margin-top: var(--b1-space-8);
	padding-top: var(--b1-space-6);
	border-top: 1px solid var(--b1-color-border);
}

.b1-comments__title {
	display: flex;
	align-items: center;
	gap: var(--b1-space-2);
	margin: 0 0 var(--b1-space-5);
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--b1-color-text);
}

.b1-comments__title-icon {
	color: var(--b1-color-accent);
}

.b1-comments__nav {
	margin-bottom: var(--b1-space-5);
	font-size: 0.875rem;
}

.b1-comments__nav .nav-links {
	justify-content: space-between;
	border: none;
	padding: 0;
	margin: 0;
}

.b1-comments__list,
.comment-list {
	margin: var(--b1-space-6) 0 0;
	padding: 0;
	list-style: none;
}

.b1-comments__list .children {
	margin: var(--b1-space-4) 0 0;
	padding: 0 0 0 var(--b1-space-8);
	list-style: none;
}

.b1-comment {
	margin-bottom: var(--b1-space-5);
}

.b1-comment__body,
.comment-body {
	display: flex;
	align-items: flex-start;
	gap: var(--b1-space-3);
	margin: 0;
	padding: 0;
	background: transparent;
	border: none;
}

.b1-comment__aside {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
}

.b1-comment__avatar-wrap {
	position: relative;
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	line-height: 0;
}

.b1-comment__avatar {
	display: block;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
}

.b1-comment.b1-comment--admin > .b1-comment__body > .b1-comment__aside .b1-comment__avatar {
	box-shadow:
		0 0 0 2px var(--b1-color-accent),
		0 0 0 4px var(--b1-color-accent-soft);
}

.b1-comment__main {
	display: flex;
	flex: 1;
	flex-direction: column;
	justify-content: flex-start;
	gap: var(--b1-space-2);
	min-width: 0;
}

.b1-comment__header-top {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: space-between;
	gap: var(--b1-space-2);
	margin-bottom: 0;
}

.b1-comment__header-meta {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: var(--b1-space-2);
	min-width: 0;
	line-height: 1.3;
}

.b1-comment__author {
	font-size: 0.8125rem;
	font-weight: 400;
	line-height: 1.3;
	color: var(--b1-color-text);
}

.b1-comment__badge {
	position: absolute;
	right: -2px;
	bottom: -2px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border: 2px solid var(--b1-color-surface);
	border-radius: 50%;
	color: #fff;
	background: #dc2626;
	line-height: 0;
}

.b1-comment__badge .b1-icon {
	color: currentColor;
	stroke-width: 2.25;
}

.b1-comment__date {
	font-size: 0.8125rem;
	font-weight: 400;
	line-height: 1.3;
	color: var(--b1-color-muted);
	white-space: nowrap;
}

.b1-comment__header-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	flex-shrink: 0;
	gap: var(--b1-space-2);
}

.b1-comment__edit {
	flex-shrink: 0;
	font-size: 0;
	line-height: 0;
}

.b1-comment__edit .comment-edit-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1rem;
	height: 1rem;
	border-radius: var(--b1-radius-sm);
	color: var(--b1-color-accent);
	text-decoration: none;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.b1-comment__edit .comment-edit-link:hover,
.b1-comment__edit .comment-edit-link:focus-visible {
	color: var(--b1-color-accent-hover);
	background: var(--b1-color-accent-soft);
}

.b1-comment__reply {
	flex-shrink: 0;
	font-size: 0;
	line-height: 0;
}

.b1-comment__reply .comment-reply-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1rem;
	height: 1rem;
	border-radius: var(--b1-radius-sm);
	color: var(--b1-color-accent);
	text-decoration: none;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.b1-comment__reply .comment-reply-link:hover,
.b1-comment__reply .comment-reply-link:focus-visible {
	color: var(--b1-color-accent-hover);
	background: var(--b1-color-accent-soft);
}

.b1-comment__awaiting {
	display: block;
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.45;
	color: var(--b1-color-muted);
}

.b1-comment__content {
	flex: 1;
	min-height: 0;
	padding: var(--b1-space-3) var(--b1-space-3);
	color: var(--b1-color-text-2);
	font-size: 0.875rem;
	line-height: 1.45;
	background: var(--b1-color-surface-2);
	border: 1px solid var(--b1-color-border);
	border-radius: 0;
}

.b1-comment__content p {
	margin: 0;
}

.b1-comment__content p + p {
	margin-top: var(--b1-space-3);
}

.b1-comment__content--admin {
	position: relative;
	overflow: hidden;
	background: linear-gradient(120deg, var(--b1-color-accent-soft) 0%, #ede9fe 50%, #fce7f3 100%);
	border-color: rgba(79, 70, 229, 0.18);
}

.b1-comment__content-mark {
	position: absolute;
	right: var(--b1-space-2);
	bottom: var(--b1-space-1);
	z-index: 0;
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	color: #dc2626;
	opacity: 0.28;
	pointer-events: none;
	line-height: 1;
}

.b1-comment__content-mark-text {
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.b1-comment__content--admin > :not(.b1-comment__content-mark) {
	position: relative;
	z-index: 1;
}

.b1-comment__content--admin a {
	color: var(--b1-color-accent);
}

.b1-comments__closed {
	margin: 0 0 var(--b1-space-4);
	font-size: 0.875rem;
	color: var(--b1-color-muted);
}

#respond {
	margin: 0 0 var(--b1-space-6);
}

.b1-comment > #respond,
.comment > #respond {
	margin-top: var(--b1-space-4);
	padding-left: var(--b1-space-8);
}

.b1-comment-form {
	margin: 0;
}

.b1-comment-form .comment-reply-title,
.b1-comment-form .comment-form {
	margin: 0;
}

.b1-comment-form__layout {
	display: flex;
	gap: var(--b1-space-3);
	align-items: flex-start;
}

.b1-comment-form__avatar {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	line-height: 0;
}

.b1-comment-form__avatar-img {
	display: block;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
}

.b1-comment-form__main {
	flex: 1;
	min-width: 0;
}

.b1-comment-form label {
	display: block;
	margin-bottom: var(--b1-space-2);
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--b1-color-text-2);
}

.b1-comment-form__fields {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--b1-space-3);
	margin-bottom: var(--b1-space-3);
}

.b1-comment-form__fields p {
	margin: 0;
}

.b1-comment-form .comment-form-comment {
	margin: 0;
}

.b1-comment-form input[type="text"],
.b1-comment-form input[type="email"],
.b1-comment-form input[type="url"],
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
	width: 100%;
	padding: 0.65rem 0.85rem;
	border: 1px solid var(--b1-color-border);
	border-radius: 0;
	font-size: 0.9375rem;
	font-family: inherit;
	margin-bottom: 0;
	background: var(--b1-color-surface);
}

.b1-comment-form__composer {
	overflow: hidden;
	border: 1px solid var(--b1-color-border);
	border-radius: 0;
	background: var(--b1-color-surface);
}

.b1-comment-form__editor .comment-form-comment {
	margin: 0;
}

.b1-comment-form__composer textarea {
	display: block;
	width: 100%;
	min-height: 4.5rem;
	padding: 0.75rem 0.85rem;
	border: none;
	border-radius: 0;
	font-size: 0.9375rem;
	font-family: inherit;
	margin: 0;
	resize: vertical;
	background: var(--b1-color-surface);
}

.b1-comment-form input:focus,
.b1-comment-form__composer textarea:focus {
	outline: none;
	border-color: var(--b1-color-border-2);
	box-shadow: none;
}

.b1-comment-form input::placeholder,
.b1-comment-form__composer textarea::placeholder {
	color: var(--b1-color-muted);
}

.b1-comment-form__composer .b1-comment-form__actions {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: var(--b1-space-3);
	margin: 0;
	padding: 0;
	background: var(--b1-color-bg);
	border-top: 1px solid var(--b1-color-border);
}

.b1-comment-form__composer #cancel-comment-reply-link {
	margin-right: auto;
	padding: var(--b1-space-2) var(--b1-space-3);
}

.b1-comment-form__composer .b1-comment-form__submit,
.b1-comment-form__composer input[type="submit"] {
	padding: 0.65rem 1.25rem;
	background: var(--b1-color-accent);
	color: #fff;
	border: none;
	border-radius: 0;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.b1-comment-form__submit,
.b1-comment-form input[type="submit"],
.comment-form input[type="submit"] {
	padding: 0.55rem 1.15rem;
	background: var(--b1-color-accent);
	color: #fff;
	border: none;
	border-radius: 0;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.b1-comment-form__submit:hover,
.b1-comment-form input[type="submit"]:hover,
.comment-form input[type="submit"]:hover {
	background: var(--b1-color-accent-hover);
}

#cancel-comment-reply-link {
	display: inline-flex;
	align-items: center;
	font-size: 0.875rem;
	line-height: 1;
	color: var(--b1-color-muted);
	text-decoration: none;
}

#cancel-comment-reply-link:hover {
	color: var(--b1-color-accent);
}

.b1-comment-form .logged-in-as,
.b1-comment-form .comment-notes,
.b1-comment-form .required-field-message {
	display: none;
}

@media (max-width: 767px) {
	.b1-comments,
	.comments-area {
		margin-top: var(--b1-space-5);
		padding-top: var(--b1-space-4);
		padding-inline: var(--b1-space-3);
	}

	.b1-comments__title {
		margin-bottom: var(--b1-space-3);
		font-size: 1rem;
	}

	.b1-comments__nav {
		margin-bottom: var(--b1-space-3);
		font-size: 0.8125rem;
	}

	.b1-comments__list,
	.comment-list {
		margin-top: var(--b1-space-4);
	}

	.b1-comments__list .children {
		margin-top: var(--b1-space-3);
		padding-left: var(--b1-space-4);
	}

	.b1-comment {
		margin-bottom: var(--b1-space-3);
	}

	.b1-comment__body,
	.comment-body {
		gap: var(--b1-space-2);
	}

	.b1-comment__aside,
	.b1-comment__avatar-wrap,
	.b1-comment__avatar {
		width: 36px;
		height: 36px;
	}

	.b1-comment__main {
		gap: var(--b1-space-1);
	}

	.b1-comment__author,
	.b1-comment__date {
		font-size: 0.75rem;
	}

	.b1-comment__content {
		padding: var(--b1-space-2);
		font-size: 0.8125rem;
		line-height: 1.5;
	}

	.b1-comment__content p + p {
		margin-top: var(--b1-space-2);
	}

	.b1-comment__awaiting {
		font-size: 0.8125rem;
	}

	.b1-comments__closed {
		margin-bottom: var(--b1-space-3);
		font-size: 0.8125rem;
	}

	#respond {
		margin-bottom: var(--b1-space-4);
	}

	.b1-comment > #respond,
	.comment > #respond {
		margin-top: var(--b1-space-3);
		padding-left: var(--b1-space-4);
	}

	.b1-comment-form__layout {
		gap: var(--b1-space-2);
	}

	.b1-comment-form__avatar,
	.b1-comment-form__avatar-img {
		width: 36px;
		height: 36px;
	}

	.b1-comment-form__fields {
		grid-template-columns: 1fr;
		gap: var(--b1-space-2);
		margin-bottom: var(--b1-space-2);
	}

	.b1-comment-form input[type="text"],
	.b1-comment-form input[type="email"],
	.b1-comment-form input[type="url"],
	.comment-form input[type="text"],
	.comment-form input[type="email"],
	.comment-form input[type="url"] {
		padding: 0.55rem 0.75rem;
		font-size: 0.875rem;
	}

	.b1-comment-form__composer textarea {
		min-height: 4rem;
		padding: 0.65rem 0.75rem;
		font-size: 0.875rem;
	}
}

/* 旧模板兼容 */
.b1-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--b1-space-2) var(--b1-space-4);
	font-size: 0.875rem;
	color: var(--b1-color-muted);
}

.b1-meta__item {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
}

.b1-meta__categories-list {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 0.25em 0.5em;
}

.b1-meta__category {
	color: var(--b1-color-accent);
}
