/*
Theme Name: 精智A5博客主题
Theme URI: https://example.com/jingzhi-a5
Author: 千问Go！
Description: 清新绿白配色的双栏博客主题：左侧圆形头像与竖排导航，右侧卡片式文章列表（缩略图、分类/日期/浏览量、摘要、Read More），还原参考设计图。
Version: 1.0.0
Requires at least: 5.6
Tested up to: 6.7
Requires PHP: 5.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jingzhi-a5
Tags: blog, two-columns, left-sidebar, custom-menu, featured-images
*/

:root {
	--green: #7cb342;
	--green-dark: #689f38;
	--bg: #eef2fa;
	--panel: #eceefb;
	--text: #333;
	--muted: #999;
	--body-text: #888;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
	font-size: 14px;
	line-height: 1.7;
}

a { color: var(--green); }

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

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

/* ---------- 整体双栏 ---------- */

.site {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	max-width: 1100px;
	margin: 28px auto 12px;
	padding: 0 16px;
}

.site-sidebar {
	flex: 0 0 300px;
	background: #fff;
	padding: 44px 24px 36px;
	text-align: center;
}

.site-main {
	flex: 1;
	min-width: 0;
	background: #fff;
	padding: 20px;
}

/* ---------- 左侧栏 ---------- */

.site-avatar {
	width: 150px;
	height: 150px;
	border-radius: 50%;
	border: 5px solid var(--green);
	object-fit: cover;
	display: inline-block;
	background: #fff;
}

.site-title {
	margin: 26px 0 18px;
	font-size: 20px;
	font-weight: 500;
}

.site-title a {
	color: var(--green);
	text-decoration: none;
}

.site-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-nav li { margin: 0 0 14px; }

.site-nav a {
	color: #666;
	text-decoration: none;
	font-size: 14px;
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.site-nav .current-menu-ancestor > a,
.site-nav .current-category-ancestor > a {
	color: var(--green);
}

/* ---------- 右侧文章面板 ---------- */

.posts-panel {
	background: var(--panel);
	padding: 20px;
}

.entry-card {
	display: flex;
	background: #fff;
	padding: 14px;
	margin-bottom: 20px;
}

.entry-thumb {
	flex: 0 0 180px;
	width: 180px;
	height: 140px;
	display: block;
	overflow: hidden;
	background: #f2f4f8;
	color: #c3cdd9;
}

.entry-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.entry-thumb svg {
	width: 44px;
	height: 44px;
	margin: 48px auto;
	display: block;
}

/* 无图文章：完整居中显示站点 logo，不裁切 */
.entry-thumb img.thumb-logo {
	object-fit: contain;
	padding: 24px 14px;
	background: #fff;
}

.entry-body {
	flex: 1;
	min-width: 0;
	padding-left: 16px;
}

.entry-title {
	margin: 0 0 6px;
	background: #fff;
	padding: 0;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.5;
	position: relative;
}

.entry-title a {
	color: #333;
	text-decoration: none;
}

.entry-title a:hover { color: var(--green); }

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	color: var(--muted);
	font-size: 12px;
	margin: 6px 0 8px;
}

.entry-meta span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.entry-meta svg { width: 13px; height: 13px; }

.entry-meta a {
	color: var(--muted);
	text-decoration: none;
}

.entry-meta a:hover { color: var(--green); }

.entry-excerpt {
	margin: 0 0 10px;
	color: var(--body-text);
	font-size: 13px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.read-more {
	color: var(--green);
	font-size: 13px;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 3px;
}

.read-more svg { width: 11px; height: 11px; }

.read-more:hover { color: var(--green-dark); }

.none-card { display: block; color: var(--body-text); }

/* ---------- 归档/搜索头部 ---------- */

.archive-header {
	background: #fff;
	padding: 16px;
	margin-bottom: 20px;
}

.archive-title {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
}

.archive-desc {
	margin: 6px 0 0;
	color: var(--body-text);
	font-size: 13px;
}

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

.pagination { margin-top: 20px; }

.pagination .nav-links {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
}

.page-numbers {
	background: #fff;
	color: #666;
	padding: 6px 12px;
	text-decoration: none;
	font-size: 13px;
}

.page-numbers:hover { color: var(--green); }

.page-numbers.current {
	background: var(--green);
	color: #fff;
}

.page-numbers.dots { background: transparent; }

/* ---------- 单篇/页面 ---------- */

.single-card {
	background: #fff;
	padding: 26px;
}

.single-thumb { margin: 0 0 18px; }

.single-thumb img { width: 100%; height: auto; }

.single-title {
	font-size: 24px;
	font-weight: 600;
	margin: 0 0 10px;
	line-height: 1.5;
}

.entry-content {
	color: #555;
	font-size: 15px;
	line-height: 1.9;
}

.entry-content a { color: var(--green); }

.entry-content h2,
.entry-content h3,
.entry-content h4 { color: var(--text); line-height: 1.5; }

.entry-content blockquote {
	border-left: 4px solid var(--green);
	margin: 1em 0;
	padding: .5em 1em;
	background: #f6f8f2;
	color: #777;
}

.entry-content pre,
.entry-content code {
	background: #f5f5f5;
	border-radius: 3px;
	font-family: "SF Mono", Menlo, Consolas, monospace;
	font-size: .9em;
}

.entry-content pre { padding: 12px; overflow: auto; }

.entry-content code { padding: 2px 5px; }

.entry-content pre code { padding: 0; }

.entry-tags { margin: 18px 0 0; }

.entry-tags a {
	display: inline-block;
	background: #f2f4f8;
	color: #777;
	padding: 2px 10px;
	margin: 0 6px 6px 0;
	font-size: 12px;
	text-decoration: none;
}

.entry-tags a:hover { color: var(--green); }

.post-nav {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 20px 0;
}

.post-nav a {
	color: var(--green);
	text-decoration: none;
	font-size: 13px;
}

.post-nav a:hover { color: var(--green-dark); }

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

.comments-area {
	background: #fff;
	padding: 26px;
	margin-top: 20px;
}

.comments-title { font-size: 18px; margin: 0 0 14px; }

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

.comment-list .comment-body {
	border-bottom: 1px solid #eee;
	padding: 12px 0;
}

.comment-list .children { list-style: none; padding-left: 24px; }

.comment-author img { border-radius: 50%; margin-right: 6px; vertical-align: middle; }

.comment-metadata a { color: var(--muted); font-size: 12px; text-decoration: none; }

.reply a { color: var(--green); font-size: 12px; text-decoration: none; }

.comment-form label { display: block; margin-bottom: 4px; color: #666; }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	border: 1px solid #ddd;
	padding: 8px 10px;
	font: inherit;
	margin-bottom: 12px;
}

.comment-form .submit {
	background: var(--green);
	border: none;
	color: #fff;
	padding: 8px 22px;
	font-size: 14px;
	cursor: pointer;
}

.comment-form .submit:hover { background: var(--green-dark); }

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

.search-form { display: flex; gap: 8px; max-width: 420px; }

.search-form .search-field {
	flex: 1;
	border: 1px solid #ddd;
	padding: 8px 10px;
	font: inherit;
}

.search-form .search-submit {
	background: var(--green);
	border: none;
	color: #fff;
	padding: 8px 18px;
	cursor: pointer;
}

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

.site-footer {
	text-align: center;
	color: #9aa4b5;
	font-size: 12px;
	margin: 10px 0 30px;
}

.site-footer p { margin: 4px 0; }

.site-footer a {
	color: inherit;
	text-decoration: none;
}

.site-footer a:hover { color: var(--green); }

/* ---------- 响应式 ---------- */

@media (max-width: 860px) {
	.site { flex-direction: column; }

	.site-sidebar {
		flex: none;
		width: 100%;
		padding: 28px 16px;
	}

	.site-nav ul {
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		gap: 4px 18px;
	}

	.site-nav li { margin: 0; }

	.entry-card { flex-direction: column; }

	.entry-thumb {
		flex: none;
		width: 100%;
		height: 180px;
	}

	.entry-thumb svg { margin: 68px auto; }

	.entry-body { padding-left: 0; margin-top: 10px; }

	.entry-title { margin-left: 0; }
}