/*
Theme Name: 诗词阁 ShiCiGe
Theme URI: https://www.shicige.com/
Author: 诗词阁
Author URI: https://www.shicige.com/
Description: 为「诗词阁」(www.shicige.com) 制作的 WordPress 主题，版式依据 2006 年的「漫言阁个人博客系统 v4.0 Beta1」(L-Blog 内核) 一比一移植：716px 定宽居中、160px 左侧栏、内容头 Blue 渐变框、四套皮肤可实时切换（剑蓝 / 忧红 / 皇素 / 逍遥），并保留原版的滚动公告、站点日历、日志分类图标、日志搜索、用户登陆框等经典元素。四张横幅与页脚版权图内的品牌字样已换为「诗词阁 / ShiCiGe.Com」。
Version: 3.3.3
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: manyange
Tags: two-columns, left-sidebar, fixed-width, custom-header, custom-menu, custom-colors, translation-ready
*/

/* ============================================================
   1. 基础：与皮肤 CSS 互补的结构样式
   （颜色、字体、背景、内容框由 skins/*.css 决定）
   ============================================================ */

html,
body {
	margin: 0;
	padding: 0;
}

body {
	color: #333;
	-webkit-text-size-adjust: 100%;
}

img {
	border: 0;
	max-width: 100%;
	height: auto;
}

/* 外框 716px（内宽 700px）：blog_main.gif 竖向平铺出左右两条蓝色边框 */
.wrap {
	width: 716px;
	margin: 0 auto;
	background: url(images/blog_main.gif) repeat-y;
}

/* 内层 700px，两侧各留 8px 露出外框纹理 */
.inner {
	padding: 0 8px;
	overflow: hidden;
}

/* ============================================================
   2. 顶部横幅（对应原 header.asp 的 td_head / nybann.swf 区域）
   ============================================================ */

.banner {
	position: relative;
	width: 700px;
	height: 100px;
	overflow: hidden;
	background-repeat: no-repeat;
	background-position: center top;
	background-size: 700px 100px;
	background-image: url(images/top1.png);
}

.banner-title {
	position: absolute;
	left: 0;
	bottom: 0;
	display: inline-block;
	padding: 5px 120px 6px 10px;
	background: rgba(9, 45, 74, .72);
	background: linear-gradient(90deg, rgba(9, 45, 74, .82) 0%, rgba(9, 45, 74, .55) 55%, rgba(9, 45, 74, 0) 100%);
	color: #fff;
	font: bold 20px Georgia, Arial, "宋体";
	letter-spacing: 1px;
	line-height: 1.25;
	text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}

.banner-title a,
.banner-title a:link,
.banner-title a:visited {
	color: #fff;
	text-decoration: none;
}

.banner-desc {
	display: block;
	margin-top: 2px;
	font: normal 11px Georgia, Arial, "宋体";
	color: #dbe9f5;
	letter-spacing: 0;
	text-shadow: 0 1px 1px rgba(0, 0, 0, .5);
}

/* ============================================================
   3. 导航条（37px，对应原 menubg / bar_bg_mid / menubg2）
   ============================================================ */

.navbar {
	width: 700px;
	height: 37px;
	table-layout: fixed;
	border-collapse: collapse;
	/* 导航条文字颜色随皮肤走：各皮肤 css 里的 .navbar{color:…} 覆盖这一层兜底 */
	color: #fff;
}

/* 原版行为：导航条内所有链接统一用 .header a 的颜色（见原 styles/css*.css）。
   这里只写 inherit，具体色值交给皮肤，避免四套皮肤都吃同一个 #fff。 */
.navbar a,
.navbar a:link,
.navbar a:visited {
	color: inherit;
	text-decoration: none;
}

.navbar a:hover {
	color: #fffa20;
}

.navbar .nav-brand {
	width: 120px;
	height: 37px;
	background: url(images/menubg2.gif) repeat-x;
	text-align: center;
	vertical-align: middle;
	overflow: hidden;
}

.navbar .nav-brand a,
.navbar .nav-brand a:link,
.navbar .nav-brand a:visited {
	font: bold 12px Georgia, Arial, "宋体";
	text-decoration: none;
	white-space: nowrap;
}

.navbar .nav-arrow {
	width: 38px;
	height: 37px;
	background: url(images/bar_bg_mid.gif) no-repeat;
}

.navbar .nav-links {
	height: 37px;
	vertical-align: middle;
	text-align: right;
	padding-right: 2px;
	background: url(images/menubg.gif) repeat-x;
	white-space: nowrap;
	overflow: hidden;
}

/* WP 菜单：ul 转行内排列，保持原版「小图标 + 文字」横排 */
.navbar .nav-menu {
	display: inline;
	margin: 0;
	padding: 0;
	list-style: none;
}

.navbar .nav-menu li {
	display: inline;
	margin: 0 9px 0 0;
	padding: 0;
	list-style: none;
	white-space: nowrap;
	font-size: 13px;
}

.navbar .nav-menu li a,
.navbar .nav-menu li a:link,
.navbar .nav-menu li a:visited {
	text-decoration: none;
}

.navbar .nav-menu img {
	vertical-align: middle;
	margin-right: 2px;
	border: 0;
}

.navbar .skin-select {
	margin: 0 0 0 4px;
	vertical-align: middle;
}

/* ============================================================
   4. 两栏主体：160px 侧栏 + 内容区，中间 6px 缝
   ============================================================ */

.layout {
	display: flex;
	align-items: flex-start;
	width: 700px;
}

.sidebar {
	flex: 0 0 160px;
	width: 160px;
	margin-right: 6px;
	/* 160px 含内边距：原版是「160 宽 + 内边距」，不算 box-sizing 会把整行撑到 716、被 .inner 裁掉 */
	box-sizing: border-box;
	padding: 4px;
	background: #f8f8f8;
	overflow: hidden;
	align-self: flex-start;
}

.content {
	flex: 1 1 auto;
	width: 534px;
	max-width: 534px;
	box-sizing: border-box;
	padding: 4px;
	background: #fff;
	overflow: hidden;
	min-width: 0;
}

body.sidebar-off .sidebar,
body.sidebar-hidden .sidebar {
	display: none;
}

body.sidebar-off .content,
body.sidebar-hidden .content {
	width: 690px;
	max-width: 690px;
	box-sizing: border-box;
}

/* 侧栏隐藏时导航条上的按钮仍可用 */
.nav-toggle {
	cursor: pointer;
}

/* 侧栏区块之间的空行（原模板大量使用 <br>） */
.widget-gap {
	height: 8px;
	line-height: 8px;
	font-size: 0;
	overflow: hidden;
}

/* ============================================================
   5. 公告滚动条（对应 index.asp 的 marqueeBox）
   ============================================================ */

.announce {
	position: relative;
	overflow: hidden;
	height: 17px;
	margin: 0 0 6px;
	line-height: 17px;
}

.announce div {
	line-height: 17px;
	white-space: nowrap;
	overflow: hidden;
}

/* ============================================================
   6. 日志正文与列表
   ============================================================ */

.entry-head,
.content_head {
	display: block;
	height: auto;
}

.entry-head img,
.content_head img {
	vertical-align: absmiddle;
	vertical-align: middle;
}

.entry-title {
	font-weight: bold;
}

.entry-meta,
.posted-in {
	color: #555;
}

.entry-body,
.content_main {
	display: block;
}

.entry-body p {
	margin: 0;
	padding: 0 0 4px;
}

.entry-body a {
	color: #036;
}

.entry-body a:hover {
	color: #f00;
}

.entry-tags {
	margin: 4px 0 0;
	font-weight: bold;
}

.entry-tags a {
	font-weight: normal;
}

.entry-more {
	margin-top: 4px;
}

.entry-foot {
	margin-top: 6px;
	text-align: right;
}

.read-more-icon {
	vertical-align: middle;
}

/* 摘要里的图片 */
.entry-body img {
	max-width: 100%;
	height: auto;
}

/* 单篇正文：字体大小调节用的容器 */
#fontzoom {
	display: block;
	font-size: 13px;
	line-height: 1.6;
}

#fontzoom p {
	margin: 0 0 6px;
}

/* 上一篇 / 下一篇 */
.post-nav {
	width: 100%;
	margin: 0 0 4px;
	border-collapse: collapse;
}

.post-nav td {
	width: 50%;
	padding: 0;
	font-size: 13px;
}

.post-nav td.left {
	text-align: left;
}

.post-nav td.right {
	text-align: right;
}

/* 文章内的媒体、代码、引用 */
.entry-body pre,
.entry-body code {
	font-family: Consolas, "Courier New", monospace;
	font-size: 13px;
}

.entry-body pre {
	padding: 6px;
	background: #fafafa;
	border: 1px dashed #666;
	overflow: auto;
}

.entry-body blockquote {
	margin: 6px 0;
	padding: 4px 8px;
	border-left: 3px solid #5f90a9;
	background: #f6fbff;
	color: #555;
}

/* ============================================================
   7. 分页（对应 MultiPage：icon_ar + [1][2] + icon_al + 跳转框）
   ============================================================ */

.pagination {
	margin: 4px 0;
	color: #999;
}

.pagination a {
	color: #999;
	text-decoration: none;
}

.pagination a:hover {
	color: #f00;
}

.pagination .current {
	font-weight: bold;
	text-decoration: underline;
	color: #999;
}

.pagination .pages {
	margin: 0 1px;
}

.pagination .jump {
	margin-left: 2px;
}

/* ============================================================
   8. 评论区
   ============================================================ */

.comment-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.comment-list li {
	margin: 0 0 0;
	padding: 0;
	list-style: none;
}

.comment-list .comment-body .content_main {
	font-size: 13px;
}

.comment-list .comment-meta {
	color: #666;
	font-size: 12px;
}

.comment-list .comment-meta a {
	font-weight: bold;
}

.comment-list .reply {
	margin-top: 2px;
	font-size: 12px;
}

.comment-list .reply a {
	color: #036;
}

.comment-list .avatar {
	float: left;
	margin: 0 6px 4px 0;
	border: 1px solid #b6d8e0;
}

/* 评论表单：照原版 bgcolor=#CCCCCC 的 1px 网格 */
.comment-form-table {
	width: 100%;
	border-collapse: collapse;
	background: #ccc;
}

.comment-form-table td {
	padding: 4px;
	background: #fff;
	vertical-align: top;
	font-size: 13px;
}

.comment-form-table .form-head {
	padding: 4px;
	background: #efefef;
	font-weight: bold;
}

.comment-form-table label {
	font-weight: bold;
}

.comment-form-table input[type="text"],
.comment-form-table input[type="email"],
.comment-form-table input[type="url"] {
	width: 60%;
}

.comment-form-table textarea {
	width: 100%;
	height: 130px;
}

.form-submit input {
	cursor: pointer;
}

.comment-notes,
.logged-in-as {
	margin: 0 0 4px;
	color: #666;
	font-size: 12px;
}

/* ============================================================
   9. 侧栏小工具通用排版
   ============================================================ */

.widget {
	margin: 0;
}

/* 说明：本条只解决尺寸溢出，颜色/底纹由各皮肤 css 里的 .widget 规则接管 */
.widget,
.widget .siderbar_head,
.widget .siderbar_main,
.widget .siderbar_head + :not(.siderbar_main),
.content_head,
.content_main,
.content_main table,
.siderbar_head,
.siderbar_main {
	box-sizing: border-box;
	max-width: 100%;
}

.widget .siderbar_head img {
	margin-right: 2px;
}

.widget .siderbar_main a:hover {
	color: #f00;
}

.widget .side-more {
	margin: 4px 0 0;
	text-align: right;
	font-size: 12px;
}

.widget ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.widget ul li {
	margin: 0 0 2px;
	padding: 0;
	list-style: none;
}

/* 日历表（原 Calendar 子过程） */
.calendar-table {
	width: 100%;
	background-repeat: repeat;
	background-position: left top;
	border-collapse: separate;
	border-spacing: 1px;
}

.calendar-table td {
	padding: 2px;
	text-align: center;
	font-size: 12px;
	color: #666;
}

.calendar-table .cal-title {
	font-size: 12px;
	color: #555;
	padding-bottom: 2px;
}

.calendar-table .cal-week {
	background: #f8f8f8;
	font-weight: bold;
}

.calendar-table .cal-day {
	background: transparent;
}

.calendar-table .cal-day a {
	color: #036;
	font-weight: bold;
	display: block;
}

.calendar-table .cal-day a:hover {
	color: #f00;
}

.calendar-table .calendar-today {
	background: url(images/bg_today.gif) no-repeat center;
}

.calendar-table .calendar-thisday {
	background: url(images/bg_thisday.gif) no-repeat center;
}

/* 用户登陆/用户中心 */
.side-login form {
	margin: 0;
	text-align: center;
}

.side-login input[type="text"],
.side-login input[type="password"] {
	width: 96px;
	height: 19px;
	margin: 1px 0;
}

.side-login .row {
	margin: 2px 0;
	white-space: nowrap;
}

.side-login .actions {
	margin-top: 4px;
}

.side-user .avatar {
	float: right;
	margin: 0 0 4px 4px;
	border: 1px solid #b6d8e0;
}

.side-user .links a {
	display: block;
	white-space: nowrap;
}

/* 站点统计 */
.side-stats {
	line-height: 1.7;
}

.side-stats b {
	color: #036;
}

/* 友情链接 */
.hyperlink {
	border-left-width: 4px;
	border-left-style: solid;
	border-left-color: #698cc3;
	margin: 4px 0;
	width: 142px;
	padding-left: 6px;
	overflow: hidden;
}

/* 搜索 */
.side-search form {
	margin: 0;
}

.side-search input[type="text"] {
	width: 118px;
}

.side-search .search-submit-img {
	vertical-align: middle;
	cursor: pointer;
	border: 0;
	background: transparent;
	margin-left: 2px;
}

.side-search .search-opts {
	display: block;
	margin-top: 3px;
	color: #666;
	font-size: 12px;
}

.side-search .search-opts input {
	height: 13px;
	width: 13px;
	vertical-align: -2px;
}

/* 标签云 / 其他小工具里的标签 */
.tagcloud a,
.wp-tag-cloud a {
	margin-right: 4px;
	line-height: 1.8;
}

/* ============================================================
   10. 页脚（对应 footer.asp 的 copyright.gif + 版权文字）
   ============================================================ */

.footer {
	width: 700px;
	padding: 4px 0 8px;
}

.footer-table {
	width: 680px;
	margin: 0 auto;
	border-collapse: collapse;
}

.footer-table td {
	vertical-align: middle;
	font: 11px Verdana, Arial, Helvetica, sans-serif;
	color: #333;
	line-height: 1.6;
}

.footer-table td.right {
	text-align: right;
	width: 210px;
}

.footer-note {
	color: #555;
}

.footer-note a {
	color: #036;
}

/* ============================================================
   11. 通用工具类与 WordPress 兼容
   ============================================================ */

.screen-reader-text {
	position: absolute !important;
	left: -9999em;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.alignleft {
	float: left;
	margin: 2px 8px 4px 0;
}

.alignright {
	float: right;
	margin: 2px 0 4px 8px;
}

.aligncenter {
	display: block;
	margin: 2px auto;
}

.wp-caption {
	max-width: 100%;
	margin: 4px 0;
}

.wp-caption-text {
	color: #666;
	font-size: 12px;
	text-align: center;
}

.sticky .content_head {
	border-top-color: #f00;
}

.gallery-caption {
	color: #666;
	font-size: 12px;
}

.bypostauthor {
	display: block;
}

.not-found {
	padding: 10px;
}

.not-found h2 {
	margin: 0 0 6px;
	font-size: 14px;
}

/* 页面（page.php）复用日志框，但不需要作者行 */
.page .entry-foot {
	display: none;
}

/* 文章密码保护表单 */
.post-password-form input[type="password"] {
	width: 160px;
}

/* ============================================================
   12. 评论区（照原版 bgcolor=#CCCCCC + #EFEFEF 标题条）
   ============================================================ */

.sidebar .widget {
	margin: 0 0 8px;
}

.comment-head {
	line-height: 20px;
}

.comment-head .avatar {
	vertical-align: middle;
	margin: 0 4px 0 0;
	border: 1px solid #b6d8e0;
}

.comment-form {
	margin: 6px 0 0;
	background: #ccc;
	border: 1px solid #ccc;
}

.comment-form .form-head {
	padding: 4px;
	background: #efefef;
	font-weight: bold;
	font-size: 13px;
	margin-bottom: 1px;
}

.comment-form p {
	display: flex;
	align-items: center;
	margin: 1px 0 0;
	padding: 4px;
	background: #fff;
}

.comment-form .comment-form-comment {
	align-items: flex-start;
}

.comment-form label {
	flex: 0 0 62px;
	width: 62px;
	font-weight: bold;
	font-size: 13px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
	flex: 1 1 auto;
	min-width: 0;
	max-width: 320px;
	box-sizing: border-box;
}

.comment-form textarea {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
	max-width: 100%;
	box-sizing: border-box;
	height: 130px;
	font-family: Georgia, Arial, "宋体";
	font-size: 13px;
}

/* 「保存我的名称/邮箱/网址」这一行不能被压成竖排窄条 */
.comment-form .comment-form-cookies-consent {
	align-items: flex-start;
	flex-wrap: wrap;
}

.comment-form .comment-form-cookies-consent label {
	flex: 1 1 auto;
	width: auto;
	font-weight: normal;
	line-height: 1.6;
}

.comment-form .form-submit {
	display: block;
	margin: 1px 0 0;
	padding: 4px;
	background: #fff;
	text-align: center;
}

.comment-form .form-submit input {
	margin: 0 4px;
	cursor: pointer;
}

.comment-form .comment-notes,
.comment-form .logged-in-as {
	margin: 0;
	padding: 4px;
	background: #fff;
	color: #666;
	font-size: 12px;
}

