*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	font-size: 14px;
	line-height: 1.6;
	color: #333;
	background: #f0f0f0;
}

a {
	color: #333;
	text-decoration: none;
}

a:hover {
	color: #ff6600;
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

.site-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

/* Header */
.site-header {
	background: #fff;
	border-bottom: 1px solid #e8e8e8;
	margin-bottom: 20px;
}

.site-header .site-wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 72px;
	flex-wrap: wrap;
	gap: 12px;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

.site-logo {
	width: 48px;
	height: 48px;
	background: #ff6600;
	color: #fff;
	font-size: 26px;
	font-weight: bold;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	flex-shrink: 0;
}

.site-title-block .site-title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
}

.site-title-block .site-title a {
	color: #222;
}

.site-title-block .site-url {
	font-size: 12px;
	color: #999;
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
}

.main-navigation a {
	color: #333;
	font-size: 15px;
	padding: 4px 0;
}

.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation a:hover {
	color: #ff6600;
}

.header-search a {
	color: #666;
	font-size: 20px;
	padding: 8px;
}

/* Layout */
.content-area {
	display: flex;
	gap: 20px;
	align-items: flex-start;
	margin-bottom: 30px;
}

.main-column {
	flex: 1;
	min-width: 0;
}

.sidebar-column {
	width: 320px;
	flex-shrink: 0;
}

/* Article list */
.post-list .post-item {
	display: flex;
	gap: 16px;
	background: #fff;
	border: 1px solid #e8e8e8;
	padding: 16px;
	margin-bottom: 16px;
}

.post-list .post-thumb {
	width: 200px;
	flex-shrink: 0;
	overflow: hidden;
	background: #eee;
}

.post-list .post-thumb img {
	width: 100%;
	height: 140px;
	object-fit: cover;
	display: block;
}

.post-list .post-thumb-placeholder {
	width: 100%;
	height: 140px;
	background: linear-gradient(135deg, #ffe0cc 0%, #ff9966 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 13px;
}

.post-list .post-body {
	flex: 1;
	min-width: 0;
}

.post-list .entry-title {
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.4;
}

.post-list .entry-title a {
	color: #222;
}

.post-list .entry-title a:hover {
	color: #ff6600;
}

.post-list .entry-excerpt {
	color: #666;
	margin: 0 0 12px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.post-list .entry-meta {
	color: #999;
	font-size: 12px;
}

.post-list .entry-meta span {
	margin-right: 16px;
}

.post-list .entry-meta .meta-icon {
	margin-right: 4px;
}

/* Sidebar widgets */
.widget-box {
	background: #fff;
	border: 1px solid #e8e8e8;
	margin-bottom: 20px;
	padding: 0;
}

.widget-box .widget-title {
	margin: 0;
	padding: 14px 16px;
	font-size: 16px;
	font-weight: 700;
	border-bottom: 1px solid #f0f0f0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.widget-box .widget-title::before {
	content: "";
	display: inline-block;
	width: 4px;
	height: 16px;
	background: #e53935;
	border-radius: 2px;
}

/* Hot posts */
.hot-posts-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.hot-posts-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 16px;
	border-bottom: 1px solid #f5f5f5;
}

.hot-posts-list li:last-child {
	border-bottom: none;
}

.hot-posts-list .rank {
	color: #e53935;
	font-weight: 700;
	font-size: 16px;
	min-width: 20px;
	line-height: 1.4;
}

.hot-posts-list .rank.top3 {
	font-size: 18px;
}

.hot-posts-list a {
	flex: 1;
	line-height: 1.5;
	color: #333;
}

.hot-posts-list a:hover {
	color: #ff6600;
}

/* Random posts */
.random-posts-list {
	list-style: none;
	margin: 0;
	padding: 8px 0;
}

.random-posts-list li {
	display: flex;
	gap: 10px;
	padding: 10px 16px;
	border-bottom: 1px solid #f5f5f5;
}

.random-posts-list li:last-child {
	border-bottom: none;
}

.random-posts-list .mini-thumb {
	width: 56px;
	height: 56px;
	flex-shrink: 0;
	overflow: hidden;
	background: #eee;
}

.random-posts-list .mini-thumb img {
	width: 56px;
	height: 56px;
	object-fit: cover;
}

.random-posts-list .mini-body {
	flex: 1;
	min-width: 0;
}

.random-posts-list .mini-title {
	display: block;
	font-size: 13px;
	line-height: 1.4;
	margin-bottom: 4px;
	color: #333;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.random-posts-list .mini-title:hover {
	color: #ff6600;
}

.random-posts-list .mini-date {
	font-size: 12px;
	color: #999;
}

/* Single post */
.single-article {
	background: #fff;
	border: 1px solid #e8e8e8;
	padding: 24px;
	margin-bottom: 20px;
}

.single-article .entry-header {
	margin-bottom: 20px;
	padding-bottom: 16px;
	border-bottom: 1px solid #f0f0f0;
}

.single-article .entry-title {
	margin: 0 0 12px;
	font-size: 24px;
	line-height: 1.4;
}

.single-article .entry-meta {
	color: #999;
	font-size: 13px;
}

.single-article .entry-content {
	font-size: 15px;
	line-height: 1.8;
	color: #444;
}

.single-article .entry-content img {
	max-width: 100%;
	height: auto;
}

/* 文章底部：版权 / 上下篇 / 相关文章 */
.post-article-footer {
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid #f0f0f0;
}

.copyright-notice {
	background: #fafafa;
	border: 1px solid #eee;
	padding: 14px 16px;
	margin-bottom: 20px;
}

.copyright-notice .copyright-info {
	margin: 0;
	font-size: 13px;
	color: #666;
	line-height: 1.6;
}

.copyright-notice .copyright-article-ref {
	margin: 10px 0 0;
	font-size: 13px;
	color: #666;
	line-height: 1.6;
	word-break: break-all;
}

.post-adjacent-nav {
	margin-bottom: 24px;
}

.post-adjacent-nav .adjacent-item {
	padding: 10px 0;
	border-bottom: 1px dashed #eee;
	font-size: 14px;
	line-height: 1.5;
}

.post-adjacent-nav .adjacent-item:last-child {
	border-bottom: none;
}

.post-adjacent-nav .adjacent-label {
	color: #666;
}

.post-adjacent-nav a {
	color: #333;
}

.post-adjacent-nav a:hover {
	color: #ff6600;
}

.post-adjacent-nav .adjacent-none {
	color: #bbb;
}

.related-posts-title {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 700;
	padding-left: 10px;
	border-left: 4px solid #e53935;
}

.related-posts-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

.related-posts-grid li {
	background: #fafafa;
	border: 1px solid #eee;
	overflow: hidden;
}

.related-posts-grid .related-thumb {
	display: block;
	overflow: hidden;
	background: #eee;
}

.related-posts-grid .related-thumb img {
	width: 100%;
	height: 120px;
	object-fit: cover;
	display: block;
}

.related-posts-grid .related-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 120px;
	font-size: 12px;
	color: #999;
	background: linear-gradient(135deg, #ffe0cc 0%, #ff9966 100%);
}

.related-posts-grid .related-title {
	display: block;
	padding: 10px;
	font-size: 13px;
	line-height: 1.4;
	color: #333;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.related-posts-grid .related-title:hover {
	color: #ff6600;
}

.archive-header {
	background: #fff;
	border: 1px solid #e8e8e8;
	padding: 16px 20px;
	margin-bottom: 16px;
}

.archive-header h1 {
	margin: 0 0 8px;
	font-size: 20px;
}

.archive-header .archive-desc {
	color: #666;
	margin: 0;
	font-size: 14px;
}

/* Pagination */
.nav-links {
	display: flex;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
	margin: 20px 0;
}

.nav-links a,
.nav-links span {
	display: inline-block;
	padding: 8px 14px;
	background: #fff;
	border: 1px solid #e8e8e8;
	color: #333;
}

.nav-links span.current {
	background: #ff6600;
	border-color: #ff6600;
	color: #fff;
}

/* Footer */
.site-footer {
	background: #fff;
	border-top: 1px solid #e8e8e8;
	padding: 20px 0;
	text-align: center;
	color: #999;
	font-size: 13px;
	margin-top: 20px;
}

.site-footer p {
	margin: 0;
}

.site-footer a {
	color: inherit;
	text-decoration: none;
}

.site-footer a:hover {
	text-decoration: underline;
}

/* Search page */
.search-form-inline {
	display: flex;
	gap: 8px;
	margin-bottom: 20px;
}

.search-form-inline input[type="search"] {
	flex: 1;
	padding: 10px 12px;
	border: 1px solid #ddd;
	font-size: 14px;
}

.search-form-inline button {
	padding: 10px 20px;
	background: #ff6600;
	color: #fff;
	border: none;
	cursor: pointer;
	font-size: 14px;
}

@media (max-width: 992px) {
	.content-area {
		flex-direction: column;
	}

	.sidebar-column {
		width: 100%;
	}
}

@media (max-width: 640px) {
	.related-posts-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.post-list .post-item {
		flex-direction: column;
	}

	.post-list .post-thumb {
		width: 100%;
	}

	.site-header .site-wrap {
		flex-direction: column;
		align-items: flex-start;
	}
}
