/**
 * 博客子页 — Element UI 卡片风格
 * 动态 / 新闻 / 时间轴 / 归档 / 标签 / 留言 / 搜索
 */

body.blog-subpage .pb-container.pb-content {
	margin-top: 0 !important;
}

body.blog-subpage .pb-container.pb-content > .content-wrapper {
	width: 100%;
	max-width: 100%;
}

body.blog-subpage .pb-container.pb-content > .content-wrapper > .row {
	margin-left: 0;
	margin-right: 0;
	width: 100%;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
}

body.blog-subpage .left-content {
	padding-right: 10px;
}

body.blog-subpage .right-content {
	padding-left: 10px;
}

.subpage-wrap {
	max-width: 100%;
	margin: 0 0 1rem;
}

.subpage-hero {
	background: #fff;
	color: #303133;
	border: 1px solid #ebeef5;
	border-radius: 4px;
	padding: 18px 20px 16px 22px;
	margin-bottom: 14px;
	box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.06);
	position: relative;
}

.subpage-hero::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: #409eff;
	border-radius: 4px 0 0 4px;
}

.subpage-hero h1 {
	margin: 0 0 6px;
	font-size: 20px;
	font-weight: 600;
	color: #303133;
	letter-spacing: 0;
}

.subpage-hero p {
	margin: 0;
	color: #909399;
	font-size: 13px;
	line-height: 1.6;
}

.subpage-meta {
	margin-top: 10px;
	font-size: 12px;
	color: #c0c4cc;
}

.subpage-empty {
	text-align: center;
	padding: 40px 20px;
	background: #fff;
	border-radius: 4px;
	border: 1px dashed #dcdfe6;
	color: #909399;
	box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.04);
}

.subpage-empty i {
	font-size: 36px;
	opacity: 0.35;
	display: block;
	margin-bottom: 10px;
	color: #409eff;
}

.subpage-empty .sp-empty-illust {
	display: block;
	width: 120px;
	height: 96px;
	margin: 0 auto 12px;
	opacity: 0.9;
}

/* 动态卡片 */
.sp-dynamic-list .sp-dynamic-card {
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.06);
	border: 1px solid #ebeef5;
	margin-bottom: 12px;
	overflow: hidden;
	transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.sp-dynamic-list .sp-dynamic-card:hover {
	border-color: #c6e2ff;
	box-shadow: 0 4px 16px rgba(64, 158, 255, 0.12);
	transform: translateY(-2px);
}

.sp-dynamic-card .sp-dynamic-body {
	padding: 16px 16px 8px;
	color: #303133;
	line-height: 1.7;
	font-size: 14px;
}

.sp-dynamic-card .sp-dynamic-body img {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
	margin: 8px 0;
}

.sp-dynamic-card .sp-dynamic-footer {
	padding: 10px 16px 12px;
	border-top: 1px solid #ebeef5;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 12px;
	color: #909399;
	background: #fafafa;
}

/* 资讯列表 */
.sp-news-loading,
.sp-news-error {
	background: #fff;
	border: 1px solid #ebeef5;
	border-radius: 4px;
	padding: 16px;
	margin-bottom: 12px;
	color: #606266;
	box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.04);
}

.sp-news-error {
	color: #f56c6c;
	background: #fef0f0;
	border-color: #fde2e2;
}

.sp-news-list {
	background: #fff;
	border: 1px solid #ebeef5;
	border-radius: 4px;
	box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.06);
	overflow: hidden;
}

.sp-news-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border-bottom: 1px solid #ebeef5;
	color: #303133 !important;
	transition: background 0.15s;
}

.sp-news-item:last-child {
	border-bottom: none;
}

.sp-news-item:hover {
	background: #ecf5ff;
}

.sp-news-rank {
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	line-height: 22px;
	text-align: center;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	background: #909399;
	border-radius: 4px;
}

.sp-news-rank.hot {
	background: #409eff;
}

.sp-news-title {
	flex: 1;
	min-width: 0;
	font-size: 14px;
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.sp-news-hot {
	flex-shrink: 0;
	font-size: 12px;
	color: #e6a23c;
	background: #fdf6ec;
	padding: 2px 8px;
	border-radius: 4px;
}

/* 时间轴 / 归档 */
.sp-timeline,
.sp-archive-list,
.sp-tag-panel,
.sp-comment-panel,
.sp-search-panel {
	background: #fff;
	border: 1px solid #ebeef5;
	border-radius: 4px;
	box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.06);
	padding: 16px;
	margin-bottom: 12px;
}

.sp-timeline-item,
.sp-archive-item {
	display: block;
	padding: 12px 0;
	border-bottom: 1px dashed #ebeef5;
	color: #303133 !important;
}

.sp-timeline-item:last-child,
.sp-archive-item:last-child {
	border-bottom: none;
}

.sp-timeline-item:hover,
.sp-archive-item:hover {
	color: #409eff !important;
}

.sp-tag-cloud a {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 0 8px 8px 0;
	padding: 6px 12px;
	border: 1px solid #dcdfe6;
	border-radius: 4px;
	background: #fff;
	color: #606266 !important;
	font-size: 13px;
	transition: all 0.2s;
}

.sp-tag-cloud a:hover {
	color: #fff !important;
	background: #409eff;
	border-color: #409eff;
}

/* 留言 / 搜索表单控件 */
.sp-comment-panel input,
.sp-comment-panel textarea,
.sp-search-panel input {
	border: 1px solid #dcdfe6 !important;
	border-radius: 4px !important;
	padding: 8px 12px !important;
	transition: border-color 0.2s;
}

.sp-comment-panel input:focus,
.sp-comment-panel textarea:focus,
.sp-search-panel input:focus {
	border-color: #409eff !important;
	outline: none;
	box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.15);
}

.sp-comment-panel button,
.sp-search-panel button {
	background: #409eff !important;
	border: 1px solid #409eff !important;
	color: #fff !important;
	border-radius: 4px !important;
	padding: 8px 16px !important;
	transition: background 0.2s;
}

.sp-comment-panel button:hover,
.sp-search-panel button:hover {
	background: #66b1ff !important;
	border-color: #66b1ff !important;
}

@media (max-width: 991px) {
	body.blog-subpage .left-content,
	body.blog-subpage .right-content {
		padding-left: 0;
		padding-right: 0;
	}
}
