/* ============================================================
   博客排版助手 · 前端样式（.bp-* 组件）
   与 zibll 子比主题兼容；若主题自带 Prism，代码块自动高亮
   ============================================================ */

.bp-article {
	line-height: 1.9;
}

.bp-article p {
	margin: 0 0 1em;
	line-height: 1.9;
}

.bp-article h2 {
	margin: 34px 0 14px;
	font-size: 22px;
	line-height: 1.4;
}

.bp-article h3 {
	margin: 26px 0 12px;
	font-size: 18px;
	line-height: 1.4;
}

/* ---------- 提示框 ---------- */
.bp-note {
	position: relative;
	border-radius: 10px;
	padding: 14px 18px;
	margin: 18px 0;
	border: 1px solid;
	font-size: 15px;
	line-height: 1.75;
}

.bp-note__title {
	font-weight: 700;
	margin-bottom: 6px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.bp-note__title::before {
	content: '';
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
	display: inline-block;
	flex: 0 0 auto;
}

.bp-note__body p {
	margin: 0 0 0.6em;
}

.bp-note__body p:last-child {
	margin-bottom: 0;
}

.bp-note--info {
	background: #eef6ff;
	border-color: #b7d9ff;
	color: #1f3b5c;
}

.bp-note--tip {
	background: #f0fbf2;
	border-color: #b8e6c0;
	color: #1d4a28;
}

.bp-note--warning {
	background: #fff8ec;
	border-color: #ffd9a3;
	color: #5c4013;
}

.bp-note--danger {
	background: #fff1f0;
	border-color: #ffb8b5;
	color: #61150f;
}

/* ---------- 信息卡片 ---------- */
.bp-card {
	border: 1px solid #e6e9ef;
	border-radius: 12px;
	margin: 20px 0;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.bp-card--info .bp-card__title {
	background: linear-gradient(135deg, #1677ff, #3c9bff);
	color: #fff;
	padding: 10px 16px;
	font-weight: 600;
	font-size: 15px;
}

.bp-card__dl {
	margin: 0;
	padding: 0;
}

.bp-card__row {
	display: flex;
	padding: 9px 16px;
	border-top: 1px solid #f0f2f5;
	align-items: baseline;
	gap: 12px;
}

.bp-card__row:first-child {
	border-top: none;
}

.bp-card__row:nth-child(even) {
	background: #fafbfc;
}

.bp-card__row dt {
	flex: 0 0 84px;
	color: #8a94a6;
	font-weight: 500;
	font-size: 14px;
}

.bp-card__row dd {
	margin: 0;
	color: #26303e;
	word-break: break-all;
	font-size: 14.5px;
}

/* ---------- 步骤列表 ---------- */
.bp-steps {
	list-style: none;
	counter-reset: bpstep;
	margin: 18px 0;
	padding: 0;
}

.bp-steps li {
	position: relative;
	padding: 8px 0 8px 44px;
	line-height: 1.8;
	counter-increment: bpstep;
}

.bp-steps li::before {
	content: counter(bpstep);
	position: absolute;
	left: 0;
	top: 11px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #1677ff;
	color: #fff;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	line-height: 1;
}

/* ---------- 按钮 ---------- */
.bp-actions {
	margin: 22px 0;
}

.bp-btn {
	display: inline-block;
	padding: 10px 28px;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none !important;
	transition: all 0.2s ease;
	border: none;
	cursor: pointer;
	font-size: 15px;
	line-height: 1.5;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.bp-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}

.bp-btn--blue {
	background: #1677ff;
	color: #fff !important;
}

.bp-btn--blue:hover {
	background: #0b5fd9;
}

.bp-btn--green {
	background: #52c41a;
	color: #fff !important;
}

.bp-btn--green:hover {
	background: #3f9d13;
}

.bp-btn--orange {
	background: #fa8c16;
	color: #fff !important;
}

.bp-btn--orange:hover {
	background: #d9740d;
}

.bp-btn--red {
	background: #f5222d;
	color: #fff !important;
}

.bp-btn--red:hover {
	background: #d3101a;
}

.bp-btn--dark {
	background: #1f2330;
	color: #fff !important;
}

.bp-btn--dark:hover {
	background: #0d1017;
}

.bp-btn--gradient {
	background: linear-gradient(135deg, #1677ff, #7b61ff);
	color: #fff !important;
}

.bp-btn--gradient:hover {
	background: linear-gradient(135deg, #0b5fd9, #6a4ef0);
}

/* ---------- 功能特点列表 ---------- */
.bp-features {
	list-style: none;
	padding: 0;
	margin: 16px 0;
}

.bp-features li {
	position: relative;
	padding: 6px 0 6px 28px;
	line-height: 1.8;
}

.bp-features li::before {
	content: '✓';
	position: absolute;
	left: 4px;
	top: 5px;
	color: #52c41a;
	font-weight: 700;
}

/* ---------- 代码块 ---------- */
.bp-code {
	background: #1e2330;
	color: #e6e9f2;
	border-radius: 10px;
	padding: 16px 18px;
	overflow: auto;
	position: relative;
	margin: 18px 0;
	font-size: 13.5px;
	line-height: 1.65;
	tab-size: 4;
}

.bp-code::before {
	content: attr(data-lang);
	position: absolute;
	top: 8px;
	right: 12px;
	font-size: 11px;
	color: #8a94a6;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.bp-code code {
	background: transparent !important;
	color: inherit;
	padding: 0;
	border: none;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Courier New', monospace;
	white-space: pre;
}

/* Prism 启用时允许其覆盖代码颜色 */
.bp-code code[class*='language-'],
.bp-code code[class*='language-'] * {
	color: inherit;
}

/* ---------- 表格 ---------- */
.bp-table-wrap {
	overflow-x: auto;
	margin: 18px 0;
}

.bp-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.bp-table th,
.bp-table td {
	border: 1px solid #e6e9ef;
	padding: 9px 12px;
	text-align: left;
}

.bp-table thead th {
	background: #f5f7fa;
	font-weight: 600;
	white-space: nowrap;
}

.bp-table tbody tr:nth-child(even) td {
	background: #fafbfc;
}

/* ---------- 引用 ---------- */
.bp-quote {
	border-left: 4px solid #1677ff;
	background: #f7faff;
	margin: 18px 0;
	padding: 12px 16px;
	border-radius: 0 8px 8px 0;
	color: #45526b;
}

/* ---------- 通用列表 / 任务列表 ---------- */
.bp-list {
	padding-left: 24px;
	margin: 16px 0;
	line-height: 1.85;
}

.bp-task {
	list-style: none;
	margin-left: 4px;
}

.bp-task::before {
	content: '◻';
	margin-right: 8px;
	color: #8a94a6;
}

.bp-task-done::before {
	content: '✔';
	color: #52c41a;
}

/* ---------- 其他 ---------- */
.bp-hr {
	border: none;
	border-top: 2px dashed #e3e8f0;
	margin: 26px 0;
}

.bp-img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

/* ---------- 移动端适配 ---------- */
@media (max-width: 640px) {
	.bp-card__row {
		flex-direction: column;
		gap: 2px;
	}

	.bp-card__row dt {
		flex: none;
	}

	.bp-steps li {
		padding-left: 40px;
	}
}
