:root {
	--primary: #3b82f6;
	--bg-dark: #0a0f1a;
}

/* ========== 文章主体 ========== */
.article-section {
	padding: 50px 0 100px;
}

.article-wrapper {
	display: flex;
	gap: 60px;
}

/* 文章内容 */
.article-main {
	width: 1150px;
	flex-shrink: 0;
}

/* 面包屑 */
.breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--fg-muted);
	margin-bottom: 24px;
}

.breadcrumb a {
	color: var(--fg-muted);
	text-decoration: none;
	transition: color 0.3s ease;
}

.breadcrumb a:hover {
	color: var(--primary);
}

.breadcrumb span {
	color: var(--fg);
}

.breadcrumb svg {
	width: 14px;
	height: 14px;
	opacity: 0.4;
}

/* 文章标题 */
.article-title {
	font-size: 36px;
	font-weight: 700;
	color: var(--fg);
	line-height: 1.4;
	margin-bottom: 24px;
}

/* 文章元信息 */
.article-meta {
	display: flex;
	align-items: center;
	gap: 30px;
	padding-bottom: 30px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	margin-bottom: 40px;
}

.meta-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--fg-muted);
}

.meta-item svg {
	width: 16px;
	height: 16px;
}

.meta-tag {
	background: linear-gradient(135deg, var(--blue), var(--purple));
	color: #fff;
	font-size: 12px;
	padding: 4px 12px;
	border-radius: 4px;
}

/* 文章正文 */
.article-content {
	font-size: 16px;
	color: var(--fg);
}

.article-content h2 {
	font-size: 24px;
	font-weight: 600;
	color: var(--fg);
	margin: 48px 0 24px;
}

.article-content h3 {
	font-size: 20px;
	font-weight: 600;
	color: var(--fg);
	margin: 36px 0 20px;
}

.article-content p {
	margin-bottom: 20px;
	text-align: justify;
}

.article-content img {
	max-width: 100%;
	border-radius: 12px;
	margin: 30px 0;
}

.article-content blockquote {
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.06) 0%, rgba(124, 58, 237, 0.06) 100%);
	border-left: 4px solid var(--primary);
	padding: 24px 30px;
	margin: 30px 0;
	border-radius: 0 12px 12px 0;
	font-size: 15px;
	color: var(--fg-muted);
}

.article-content ul,
.article-content ol {
	padding-left: 24px;
	margin-bottom: 20px;
}

.article-content li {
	margin-bottom: 10px;
}

/* 图片占位 */
.article-image-placeholder {
	width: 100%;
	aspect-ratio: 16/9;
	background: linear-gradient(135deg, rgba(59, 130, 246, 0.06) 0%, rgba(124, 58, 237, 0.06) 100%);
	border-radius: 12px;
	margin: 30px 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(59, 130, 246, 0.1);
}

.article-image-placeholder svg {
	width: 50%;
	height: 50%;
}

/* 分隔线 */
.article-divider {
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
	margin: 50px 0;
}

/* 文章底部 */
.article-footer {
	margin-top: 50px;
}

/* 上下篇导航 */
.article-nav {
	display: flex;
	justify-content: space-between;
	gap: 30px;
	padding: 30px 0;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-items {
	flex: 1;
	text-decoration: none;
	padding: 20px 24px;
	background: rgba(59, 130, 246, 0.03);
	border-radius: 12px;
	border: 1px solid rgba(59, 130, 246, 0.08);
	transition: all 0.3s ease;
}

.nav-items:hover {
	border-color: rgba(59, 130, 246, 0.25);
	background: rgba(59, 130, 246, 0.06);
}

.nav-items.prev {
	text-align: left;
}

.nav-items.next {
	text-align: right;
}

.nav-label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--fg-muted);
	margin-bottom: 8px;
}

.nav-items.next .nav-label {
	justify-content: flex-end;
}

.nav-label svg {
	width: 14px;
	height: 14px;
}

.nav-title {
	font-size: 15px;
	font-weight: 500;
	color: var(--fg);
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.nav-items:hover .nav-title {
	color: var(--primary);
}

.nav-items.disabled {
	opacity: 0.4;
	pointer-events: none;
}

/* 分享 */
.article-share {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 40px;
}

.share-label {
	font-size: 14px;
	color: var(--fg-muted);
}

.share-btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(59, 130, 246, 0.08);
	border: 1px solid rgba(59, 130, 246, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
}

.share-btn:hover {
	background: linear-gradient(135deg, var(--blue), var(--purple));
	border-color: transparent;
}

.share-btn:hover svg {
	color: #fff;
}

.share-btn svg {
	width: 18px;
	height: 18px;
	color: var(--primary);
}

/* ========== 侧边栏 ========== */
.article-sidebar {
	flex-shrink: 0;
	flex: 1;
}

.sidebar-widget {
	position: sticky;
	top: 30px;
	background: #fff;
	border-radius: 16px;
	border: 1px solid rgba(0, 0, 0, 0.06);
	padding: 28px;
}

.widget-title {
	font-size: 18px;
	font-weight: 600;
	color: var(--fg);
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	position: relative;
}

.widget-title::before {
	content: '';
	position: absolute;
	bottom: -1px;
	left: 0;
	width: 40px;
	height: 2px;
	background: linear-gradient(90deg, var(--blue), var(--purple));
}

/* 热门文章 */
.hot-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.hot-item {
	display: flex;
	gap: 16px;
	text-decoration: none;
	transition: all 0.3s ease;
}

.hot-item:hover .hot-title {
	color: var(--primary);
}

.hot-num {
	width: 28px;
	height: 28px;
	flex-shrink: 0;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	font-weight: 600;
}

.hot-item:nth-child(1) .hot-num {
	background: linear-gradient(135deg, var(--blue), var(--purple));
	color: #fff;
}

.hot-item:nth-child(2) .hot-num {
	background: linear-gradient(135deg, var(--purple), #9333ea);
	color: #fff;
}

.hot-item:nth-child(3) .hot-num {
	background: linear-gradient(135deg, #06b6d4, var(--blue));
	color: #fff;
}

.hot-item:nth-child(n+4) .hot-num {
	background: rgba(59, 130, 246, 0.1);
	color: var(--fg-muted);
}

.hot-title {
	font-size: 14px;
	color: var(--fg);
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.3s ease;
}

.hot-date {
	font-size: 12px;
	color: var(--fg-muted);
	margin-top: 6px;
}

/* 响应式 */
@media (max-width: 1200px) {
	.article-wrapper {
		flex-direction: column;
		gap: 20px;
	}

	.article-main {
		width: 100%;
	}

	.article-sidebar {
		width: 100%;
	}

	.sidebar-widget {
		position: static;
		padding:20px
	}
}

@media (max-width: 768px) {
	.container {
		padding: 0 20px;
	}

	.article-title {
		font-size: 18px;
	}

	.article-content h2 {
		margin: 24px 0 24px;
	}

	.article-nav {
		padding: 20px 0;
	}

	.article-footer {
		margin-top: 0px;
	}

	.article-meta {
		flex-wrap: wrap;
		gap: 16px;
		padding-bottom: 15px
	}

	.article-content p {
		line-height: 2;
	}

	.article-content {
		font-size: 15px;
	}

	.article-title {
		margin-bottom: 15px;
	}

	.article-content h2 {
		font-size: 20px;
	}

	.article-nav {
		flex-direction: column;
		gap: 16px;
	}

	.nav-items.next {
		text-align: left;
	}

	.nav-items.next .nav-label {
		justify-content: flex-start;
	}

	.article-share {
		flex-wrap: wrap;
	}

	.article-section {
		padding: 25px 0 50px;
	}
}