/*
Theme Name: Jiandan Lite
Theme URI: https://example.com/jiandan-lite/
Author: Your Name
Author URI: https://example.com/
Description: 一个扁平化轻量化的 WordPress 主题，模仿煎蛋网风格，主色调为黑白灰，简洁干净。
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, news, two-columns, right-sidebar, custom-menu, featured-images, threaded-comments, translation-ready
Text Domain: jiandan-lite

这个主题基于 GPL v2 或更高版本发布。
*/

/* =Reset
-------------------------------------------------------------- */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	font-size: 16px;
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
	font-size: 14px;
	line-height: 1.6;
	color: #333;
	background-color: #fff;
}

/* =Layout
-------------------------------------------------------------- */
#page {
	max-width: 1000px;
	margin: 0 auto;
	background-color: #fff;
}

.site-content {
	display: flex;
	flex-wrap: wrap;
	padding: 20px 0;
	gap: 30px;
}

.content-area {
	flex: 1;
	min-width: 0;
}

.widget-area {
	width: 280px;
	flex-shrink: 0;
}

@media (max-width: 768px) {
	.site-content {
		flex-direction: column;
		padding: 15px;
		gap: 20px;
	}

	.widget-area {
		width: 100%;
	}
}

/* =Header
-------------------------------------------------------------- */
.site-header {
	background-color: #fff;
	border-bottom: 1px solid #eee;
	padding: 18px 0;
}

.site-branding {
	margin-bottom: 12px;
}

.site-title {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
}

.site-title a {
	color: #111;
	text-decoration: none;
}

.site-title a:hover {
	color: #666;
}

.site-description {
	font-size: 12px;
	color: #999;
	margin-top: 4px;
}

/* =Navigation
-------------------------------------------------------------- */
.main-navigation {
	background-color: #fff;
}

.main-navigation ul {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
}

.main-navigation li {
	position: relative;
	margin-right: 24px;
}

.main-navigation a {
	display: block;
	padding: 8px 0;
	color: #333;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: color 0.2s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
	color: #111;
}

.main-navigation ul ul {
	position: absolute;
	top: 100%;
	left: 0;
	background-color: #fff;
	border: 1px solid #eee;
	min-width: 160px;
	display: none;
	z-index: 999;
}

.main-navigation li:hover > ul {
	display: block;
}

.main-navigation ul ul li {
	width: 100%;
	margin-right: 0;
}

.main-navigation ul ul a {
	padding: 8px 12px;
	border-bottom: 1px solid #f5f5f5;
	font-size: 13px;
	font-weight: normal;
}

.main-navigation ul ul li:last-child a {
	border-bottom: none;
}

/* =Posts
-------------------------------------------------------------- */
.post {
	display: flex;
	gap: 18px;
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid #eee;
}

.post:last-child {
	border-bottom: none;
}

.post-thumbnail {
	flex-shrink: 0;
	width: 200px;
	height: 140px;
	overflow: hidden;
}

.post-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: opacity 0.2s ease;
}

.post-thumbnail a:hover img {
	opacity: 0.85;
}

.post-content-wrap {
	flex: 1;
	min-width: 0;
}

.entry-title {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 8px;
	line-height: 1.4;
}

.entry-title a {
	color: #222;
	text-decoration: none;
	transition: color 0.2s ease;
}

.entry-title a:hover {
	color: #666;
}

.entry-meta {
	font-size: 12px;
	color: #999;
	margin-bottom: 10px;
}

.entry-meta a {
	color: #999;
	text-decoration: none;
}

.entry-meta a:hover {
	color: #333;
}

.entry-meta .sep {
	margin: 0 6px;
	color: #ddd;
}

.entry-content {
	color: #555;
	font-size: 13px;
	line-height: 1.6;
}

.entry-content p {
	margin-bottom: 0;
}

.entry-content a {
	color: #333;
	text-decoration: none;
}

.entry-content a:hover {
	color: #000;
}

.entry-content img {
	max-width: 100%;
	height: auto;
}

.read-more {
	display: none;
}

/* Single post styles */
.single .post,
.page .post {
	display: block;
}

.single .post-thumbnail,
.page .post-thumbnail {
	width: 100%;
	height: auto;
	margin-bottom: 20px;
}

.single .entry-title,
.page .entry-title {
	font-size: 26px;
	margin-bottom: 12px;
}

.single .entry-content,
.page .entry-content {
	font-size: 15px;
	line-height: 1.8;
	color: #333;
}

.single .entry-content p,
.page .entry-content p {
	margin-bottom: 18px;
}

.entry-footer {
	margin-top: 25px;
	padding-top: 15px;
	border-top: 1px solid #eee;
}

@media (max-width: 600px) {
	.post {
		flex-direction: column;
	}

	.post-thumbnail {
		width: 100%;
		height: auto;
	}

	.post-thumbnail img {
		width: 100%;
		height: auto;
		aspect-ratio: 16/9;
	}
}

/* =Sidebar / Widgets
-------------------------------------------------------------- */
.widget {
	margin-bottom: 25px;
}

.widget-title {
	font-size: 14px;
	font-weight: 600;
	color: #111;
	margin-bottom: 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid #eee;
}

.widget ul {
	list-style: none;
}

.widget li {
	padding: 6px 0;
	font-size: 13px;
}

.widget li:last-child {
	border-bottom: none;
}

.widget a {
	color: #555;
	text-decoration: none;
	font-size: 13px;
	transition: color 0.2s ease;
}

.widget a:hover {
	color: #111;
}

.tagcloud a {
	display: inline-block;
	padding: 2px 8px;
	margin: 0 4px 6px 0;
	color: #666;
	font-size: 12px !important;
	text-decoration: none;
	border-bottom: 1px solid #ddd;
	transition: all 0.2s ease;
}

.tagcloud a:hover {
	color: #111;
	border-bottom-color: #111;
}

.widget_categories li,
.widget_archive li {
	display: flex;
	justify-content: space-between;
}

.widget select {
	width: 100%;
	padding: 6px 8px;
	border: 1px solid #ddd;
	font-size: 13px;
}

/* =Comments
-------------------------------------------------------------- */
.comments-area {
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid #eee;
}

.comments-title {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 15px;
	color: #111;
}

.comment-list {
	list-style: none;
}

.comment-body {
	padding: 12px 0;
	border-bottom: 1px solid #f5f5f5;
}

.comment-author {
	margin-bottom: 4px;
}

.comment-author .avatar {
	float: left;
	margin-right: 10px;
	border-radius: 50%;
	width: 36px;
	height: 36px;
}

.comment-author .fn {
	font-weight: 600;
	font-style: normal;
	font-size: 13px;
}

.comment-metadata {
	font-size: 11px;
	color: #999;
	margin-bottom: 8px;
}

.comment-metadata a {
	color: #999;
	text-decoration: none;
}

.comment-content {
	color: #444;
	font-size: 14px;
	line-height: 1.6;
}

.comment-content p {
	margin-bottom: 10px;
}

.reply {
	margin-top: 8px;
	font-size: 12px;
}

.reply a {
	color: #666;
	text-decoration: none;
}

.reply a:hover {
	color: #111;
}

.comment-respond {
	margin-top: 25px;
}

.comment-reply-title {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 12px;
}

.comment-form label {
	display: block;
	font-size: 13px;
	color: #333;
	margin-bottom: 4px;
}

.comment-form input,
.comment-form textarea {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #ddd;
	font-size: 14px;
	font-family: inherit;
	margin-bottom: 12px;
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: #999;
}

.form-submit .submit {
	width: auto;
	padding: 8px 20px;
	background-color: #111;
	color: #fff;
	border: none;
	cursor: pointer;
	font-size: 13px;
}

.form-submit .submit:hover {
	background-color: #333;
}

/* =Pagination
-------------------------------------------------------------- */
.pagination {
	margin-top: 30px;
	text-align: center;
}

.nav-links {
	display: flex;
	gap: 6px;
	justify-content: center;
	flex-wrap: wrap;
}

.page-numbers {
	display: inline-block;
	padding: 6px 12px;
	color: #666;
	text-decoration: none;
	font-size: 13px;
	border-bottom: 2px solid transparent;
	transition: all 0.2s ease;
}

.page-numbers:hover,
.page-numbers.current {
	color: #111;
	border-bottom-color: #111;
}

/* =Footer
-------------------------------------------------------------- */
.site-footer {
	background-color: #fff;
	border-top: 1px solid #eee;
	padding: 20px 0;
	text-align: center;
	margin-top: 20px;
}

.site-info {
	font-size: 12px;
	color: #999;
}

.site-info a {
	color: #666;
	text-decoration: none;
}

.site-info a:hover {
	color: #111;
}

/* =WordPress Core
-------------------------------------------------------------- */
.alignnone {
	margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
	display: block;
	margin: 5px auto 5px auto;
}

.alignright {
	float: right;
	margin: 5px 0 20px 20px;
}

.alignleft {
	float: left;
	margin: 5px 20px 20px 0;
}

.wp-caption {
	border: 1px solid #e5e5e5;
	max-width: 96%;
	padding: 5px 3px 10px;
	text-align: center;
}

.wp-caption img {
	border: 0 none;
	height: auto;
	margin: 0;
	max-width: 98.5%;
	padding: 0;
	width: auto;
}

.wp-caption-text {
	margin: 0;
	padding: 5px;
	font-size: 12px;
	color: #666;
}

.sticky {
	position: relative;
}

.gallery-caption {
	font-size: 12px;
	color: #666;
}

.bypostauthor {
	position: relative;
}

/* =Page Header
-------------------------------------------------------------- */
.page-header {
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid #eee;
}

.page-title {
	font-size: 20px;
	font-weight: 600;
	color: #111;
	margin-bottom: 8px;
}

.archive-description {
	font-size: 13px;
	color: #666;
}

/* =Search Form
-------------------------------------------------------------- */
.search-form {
	display: flex;
	gap: 0;
}

.search-form .search-field {
	flex: 1;
	padding: 8px 12px;
	border: 1px solid #ddd;
	font-size: 13px;
	font-family: inherit;
}

.search-form .search-field:focus {
	outline: none;
	border-color: #999;
}

.search-form .search-submit {
	padding: 8px 16px;
	background-color: #111;
	color: #fff;
	border: none;
	font-size: 13px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.search-form .search-submit:hover {
	background-color: #333;
}

.widget_search .search-form {
	margin-bottom: 0;
}

/* =404
-------------------------------------------------------------- */
.error-404 {
	text-align: center;
	padding: 40px 20px;
}

.error-404 .page-title {
	font-size: 72px;
	font-weight: 700;
	margin-bottom: 8px;
	color: #111;
	line-height: 1;
}

.error-404 .page-subtitle {
	font-size: 18px;
	margin-bottom: 20px;
	color: #666;
}

.error-404 .page-content {
	max-width: 400px;
	margin: 0 auto;
}

.error-404 .page-content p {
	margin-bottom: 20px;
	color: #666;
	font-size: 14px;
}

/* =No Results
-------------------------------------------------------------- */
.no-results {
	padding: 30px 0;
	text-align: center;
}

.no-results .page-title {
	font-size: 18px;
	margin-bottom: 15px;
}

.no-results .page-content p {
	margin-bottom: 15px;
	color: #666;
	font-size: 14px;
}

.no-results .search-form {
	max-width: 350px;
	margin: 20px auto 0;
}

/* =Sticky Post
-------------------------------------------------------------- */
.sticky {
	position: relative;
}

/* =Page Links
-------------------------------------------------------------- */
.page-links {
	clear: both;
	margin: 20px 0;
	font-size: 14px;
	color: #666;
}

.page-links a {
	color: #111;
	text-decoration: none;
	padding: 2px 8px;
	border-bottom: 1px solid #111;
}

.page-links a:hover {
	opacity: 0.7;
}
