/*
Theme Name: KGJ FYS
Theme URI: http://www.kgj.cc
Author: KGJ
Description: 复刻 emlog FYS V2 布局的 WordPress 主题。保留原站的头部、卡片流、侧栏与配色，去掉会员中心与登录注册模块。
Version: 1.0
Text Domain: kgj-fys
*/

/* ---------- WordPress widget 适配（让原生小工具长得和 FYS 一致） ---------- */
.widget ul li {
	border-bottom: 1px solid #eee;
	padding: 8px 15px;
	font-size: 14px;
	line-height: 1.6;
}
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: #777; }
.widget ul li a:hover { color: #45B6F7; }
.widget { margin-bottom: 15px; background-color: #fff; }
.widget .screen-reader-text { display: none; }
.widget select { margin: 10px 15px; max-width: 90%; }

/* 搜索小工具 */
.widget_search form { padding: 15px; }
.widget_search input[type="text"] {
	width: 70%;
	height: 32px;
	line-height: 32px;
	padding: 0 8px;
	border: 1px solid #eaeaea;
	border-radius: 2px;
}
.widget_search input[type="submit"] {
	height: 32px;
	line-height: 32px;
	padding: 0 14px;
	background-color: #45B6F7;
	color: #fff;
	border: none;
	border-radius: 2px;
	cursor: pointer;
}

/* 标签云 */
.widget_tag_cloud .tagcloud { padding: 15px; }
.widget_tag_cloud .tagcloud a {
	display: inline-block;
	margin: 0 6px 8px 0;
	padding: 4px 10px;
	background-color: #fbfbfb;
	border: 1px solid #eaeaea;
	border-radius: 2px;
	color: #777;
	font-size: 13px !important;
}
.widget_tag_cloud .tagcloud a:hover {
	background-color: #45B6F7;
	border-color: #45B6F7;
	color: #fff;
}

/* 日历小工具 */
.widget_calendar table { width: 92%; margin: 10px auto; }
.widget_calendar th, .widget_calendar td { text-align: center; padding: 4px 0; font-size: 13px; }
.widget_calendar caption { padding: 10px 0; font-weight: bold; color: #666; }

/* ---------- 文章列表卡片 ---------- */
/* 无图时不留左侧空白 */
.excerpt.no-thumb { padding-left: 10px; }

/* 列表内分类链接（原站是 header 里的分类名） */
.excerpt .cat-link {
	display: inline-block;
	font-size: 12px;
	color: #999;
	margin-right: 8px;
}
.excerpt .cat-link:hover { color: #45B6F7; }

/* ---------- 文章页 ---------- */
.article-content img { max-width: 100%; height: auto; }
.article-content h2, .article-content h3 { margin-top: 22px; }
.article-content blockquote {
	border-left: 4px solid #45B6F7;
	background-color: #fbfbfb;
	padding: 12px 16px;
	color: #666;
	margin: 16px 0;
}
.article-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.article-content table th, .article-content table td {
	border: 1px solid #eaeaea;
	padding: 8px 10px;
}
.article-content pre {
	background-color: #f7f7f7;
	border: 1px solid #eaeaea;
	border-radius: 3px;
	padding: 12px;
	overflow: auto;
}
.article-content a { color: #45B6F7; }

/* 文章页导航链接 */
.article-paging a { color: #777; }
.article-paging a:hover { color: #45B6F7; }

/* ---------- 评论 ---------- */
.commentlist .children { list-style: none; }
.commentlist .comment-body { padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.commentlist .comment-author img { border-radius: 50%; margin-right: 8px; vertical-align: middle; }
.commentlist .comment-meta { font-size: 12px; color: #999; }
.commentlist .reply a { font-size: 12px; color: #45B6F7; }
.commentlist .comment-content { margin-top: 8px; font-size: 14px; color: #555; line-height: 1.8; }
.comment-form p { margin-bottom: 12px; }
.comment-form label { display: block; font-size: 13px; color: #777; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"],
.comment-form input[type="url"], .comment-form textarea {
	width: 100%;
	border: 1px solid #eaeaea;
	border-radius: 3px;
	padding: 8px 10px;
	font-size: 14px;
	color: #555;
	box-sizing: border-box;
}
.comment-form .submit {
	background-color: #45B6F7;
	color: #fff;
	border: none;
	border-radius: 3px;
	padding: 8px 22px;
	cursor: pointer;
	font-size: 14px;
}
.comment-form .submit:hover { opacity: .9; }
.comment-navigation { margin: 15px 0; font-size: 13px; }

/* ---------- 分页 ---------- */
.pagination .page-numbers {
	float: left;
	margin: 0 2px;
	padding: 5px 12px;
	background-color: #ddd;
	color: #666;
	border-radius: 2px;
	opacity: .88;
}
.pagination .page-numbers:hover { opacity: 1; }
.pagination .page-numbers.current { background-color: #45B6F7; color: #fff; }

/* ---------- 页脚 ---------- */
.footer a { color: #999; }
.footer a:hover { color: #fff; }

/* ---------- 搜索页/归档页标题条 ---------- */
.mbx {
	padding: 10px 15px;
	background-color: #fff;
	border: 1px solid #eaeaea;
	margin-bottom: 15px;
	font-size: 13px;
	color: #999;
	border-radius: 2px;
}
.mbx a { color: #777; }
.mbx a:hover { color: #45B6F7; }

/* ---------- 正文附件（由 emlog 附件迁移而来） ---------- */
.article-content .kgj-att {
	display: block;
	margin: 16px 0;
	text-align: center;
}
.article-content .kgj-att img {
	max-width: 100%;
	height: auto;
	display: inline-block;
	border-radius: 4px;
	box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.article-content .kgj-att-file {
	display: inline-block;
	padding: 4px 12px;
	margin: 6px 0;
	background: #f6f8fa;
	border: 1px solid #e3e8ee;
	border-radius: 4px;
	color: #2b6cb0;
	text-decoration: none;
}
.article-content .kgj-att-file:hover { background: #eef3f9; }
.article-content .kgj-att-size { color: #999; font-size: 12px; margin-left: 4px; }
