@font-face {
  font-family: 'FontAwesome';
  font-style: normal;
  font-weight: normal;
  src: url("//blog.zhaishidan.cn/css/font/fontawesome-webfont.eot?#iefix") format('embedded-opentype'), url("//blog.zhaishidan.cn/css/font/fontawesome-webfont.woff") format('woff'), url("//blog.zhaishidan.cn/css/font/fontawesome-webfont.ttf") format('truetype'), url("//blog.zhaishidan.cn/css/font/fontawesome-webfont.svg#FontAwesomeRegular") format('svg');
}

* {
  margin: 0;
  padding: 0;
}
body {
  background: #eee;
  color: #444;
  font-family: "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif;
  font-size: 14px;
  text-shadow: 0 0 1px transparent;
}
@media screen and (max-width: 1260px) {
  body { margin: 0 30px; }
}
@media screen and (max-width: 600px) {
  body { font-size: 13px; }
}
h1, h2, h3, h4, h5, h6 {
  font-family: "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif;
}
h1 { font-size: 1.8em; }
h2 { font-size: 1.5em; }
h3 { font-size: 1.3em; }
a {
  text-decoration: none;
  color: #258fb8;
}
a:hover { text-decoration: underline; }
#tbCommentBody { width: 100%; }
#Header1_HeaderTitle { font-size: 32px; }
#blogTitle { float: left; }
.alignright { float: right; }
.clearfix { zoom: 1; }
.clearfix:before, .clearfix:after { content: ""; display: table; }
.clearfix:after { clear: both; }

#header, #main, #footer {
  width: 1200px;
  margin: 0 auto;
}
@media screen and (max-width: 1260px) {
  #main { width: 100%; }
}
#mainContent { width: 900px; float: left; }
@media screen and (max-width: 1260px) {
  #main-col { width: 100%; margin-right: -300px; }
}
@media screen and (max-width: 900px) {
  #main-col { margin-right: 0; float: none; }
}
@media screen and (max-width: 1260px) {
  #wrapper { margin-right: 300px; }
}
@media screen and (max-width: 900px) {
  #wrapper { margin-right: 0; }
}

#header {
  text-shadow: 0 0 1px #fff;
  margin: 50px auto;
  position: relative;
  height: 60px;
  color: #999;
}
#header a { color: #999; }
#header a:hover { color: #258fb8; text-decoration: none; }
#header h1 { font-weight: normal; font-size: 30px; line-height: 1; }
#header h2 { font-weight: normal; font-size: 0.9em; line-height: 1; margin-top: 10px; margin-left: 30px; }
#header #navigator {
  font-family: "Lato", Helvetica Neue, Helvetica, Arial, sans-serif;
  line-height: 2.5em;
  float: right;
  position: relative;
}
#header #navigator ul { list-style: none; }
#header #navigator ul li { float: left; margin-left: 30px; }
#header .blogStats { position: absolute; top: 35px; right: 0; float: right; }

/* --- 随笔列表分页 --- */
.topicListFooter { margin-bottom: 30px; margin-right: 0 !important; }
.topicListFooter a {
  display: inline-block;
  padding: 6px 8px;
  margin: 4px;
  text-align: center;
  vertical-align: middle;
  background-color: #fff;
}

/* --- 文章卡片 --- */
article {
  -webkit-box-shadow: 1px 2px 3px #ddd;
  box-shadow: 1px 2px 3px #ddd;
  background: #fff;
}
article.page { padding-left: 20px; }
article.page .icon { display: none; }

.dayTitle { display: none; }

.postTitle, .entrylistPosttitle {
  font-family: "Lato", Helvetica Neue, Helvetica, Arial, sans-serif;
  font-size: 1.8em;
  padding: 20px 20px 15px 40px;
  box-shadow: 1px 2px 0 #ddd;
  background: #fff;
}
.entrylistPostSummary, .postCon, .postBody {
  padding: 0 20px 15px 40px;
  -webkit-box-shadow: 1px 2px 3px #ddd;
  box-shadow: 0 2px 0 #ddd;
  background: #fff;
  position: relative;
}
.postDesc, .entrylistItemPostDesc {
  margin-bottom: 50px;
  padding: 10px 20px 15px 40px;
  color: #999;
  font-size: 0.9em;
  line-height: 16px;
  position: relative;
  min-height: 16px;
  box-shadow: 0 2px 3px #ddd;
  background: #fff;
}
@media screen and (max-width: 600px) {
  .postCon { padding-left: 20px; }
}

/* --- 正文核心样式 --- */
#cnblogs_post_body {
  text-align: justify;
  line-height: 1.6;
}
#cnblogs_post_body p,
#cnblogs_post_body blockquote,
#cnblogs_post_body ul,
#cnblogs_post_body ol,
#cnblogs_post_body dl,
#cnblogs_post_body table,
#cnblogs_post_body iframe,
#cnblogs_post_body h3,
#cnblogs_post_body h4,
#cnblogs_post_body h5,
#cnblogs_post_body h6,
#cnblogs_post_body .video-container {
  margin-top: 15px;
}
#cnblogs_post_body blockquote {
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  font-style: italic;
  font-size: 14px;
}
#cnblogs_post_body blockquote footer {
  border-top: none;
  font-size: 0.8em;
  line-height: 1;
  margin: 20px 0 0;
  padding-top: 0;
}
#cnblogs_post_body blockquote footer cite:before {
  content: '—';
  color: #ccc;
  padding: 0 0.5em;
}
#cnblogs_post_body code, #cnblogs_post_body pre {
  font-family: Monaco, Menlo, Consolas, Courier New, monospace;
}
#cnblogs_post_body code {
  background: #eee;
  color: #666;
  padding: 0 5px;
  margin: 0 2px;
  font-size: 0.9em;
  border: 1px solid #ddd;
  -webkit-border-radius: 3px;
  border-radius: 3px;
}
#cnblogs_post_body pre {
  background: #eee;
  overflow: auto;
  padding: 7px 15px;
  -webkit-border-radius: 2px;
  border-radius: 2px;
}
#cnblogs_post_body pre code {
  background: none;
  padding: 0;
  margin: 0;
  border: none;
  -webkit-border-radius: 0;
  border-radius: 0;
}
#cnblogs_post_body h1, #cnblogs_post_body h2 {
  font-weight: bold;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
  margin-top: 20px;
}
#cnblogs_post_body h3, #cnblogs_post_body h4, #cnblogs_post_body h5, #cnblogs_post_body h6 {
  font-weight: normal;
}
.postBody img, .entrylistPostSummary img, .postCon img, .postBody video {
  max-width: 100%;
  height: auto;
  border: none;
}
#cnblogs_post_body iframe { border: none; }
#cnblogs_post_body .caption {
  display: block;
  margin-top: 5px;
  color: #999;
  position: relative;
  font-size: 0.9em;
  padding-left: 25px;
}
#cnblogs_post_body img { max-width: 800px; }

/* --- 评论区域 --- */
.feedback_area_title {
  padding: 10px;
  font-size: 24px;
  font-weight: bold;
  color: #666;
  border-bottom: solid 6px #666;
}
.feedbackListSubtitle { font-size: 12px; color: #888; }
.feedbackItem {
  font-size: 14px;
  line-height: 24px;
  margin: 10px 0;
  padding: 20px;
  background: #F2F2F2;
  box-shadow: 0 0 5px #aaa;
}
#comment_form { margin: 10px 0; padding: 0; }
.commentform { margin: 10px 0; padding: 10px 20px; background: #fff; }

/* --- 侧边栏 --- */
#sideBar {
  width: 270px;
  line-height: 1.8em;
  float: right;
}
@media screen and (max-width: 900px) {
  #sideBar { float: none; width: 100%; }
}
.catListLink, .catListMyTeams, .catListComment, .catListFeedback { display: none; }
.search, .newsItem, .catListPostCategory, .catListPostArchive, .catListTag, .catListView, .catListBlogRank {
  background: #fff;
  -webkit-box-shadow: 1px 2px 3px #ddd;
  box-shadow: 1px 2px 3px #ddd;
  margin-bottom: 30px;
  word-wrap: break-word;
}
#blog-sidecolumn h3, .newsItem h3 {
  padding: 15px 20px;
  font-size: 1em;
  border-bottom: 1px solid #ddd;
  font-weight: normal;
}
#blog-sidecolumn ul, .newsItem #blog-news {
  font-size: 0.9em;
  padding: 15px 20px;
}
#blog-sidecolumn ul, #blog-sidecolumn ol, #blog-sidecolumn dl { list-style: none; }
.sidebar-block { background: #FFFFFF; }
#sidebar_toptags { margin-top: 30px; }
#blog-calendar { display: none !important; }

/* --- 推荐按钮固定 --- */
#div_digg {
  position: fixed;
  z-index: 999;
  bottom: 5px;
  width: 140px;
  right: 390px;
  border: 2px solid #258fb8;
  padding: 10px;
  background-color: #fff;
  border-radius: 5px 5px 5px 5px !important;
  box-shadow: 0 0 0 1px #5F5A4B, 1px 1px 6px 1px rgba(10, 10, 0, 0.5);
}

/* --- 代码块复制按钮 --- */
.cnblogs-markdown pre { position: relative; }
.cnblogs-markdown pre > span {
  position: absolute;
  top: 0;
  right: 0;
  border-radius: 2px;
  padding: 0 10px;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  cursor: pointer;
  display: none;
}
.cnblogs-markdown pre:hover > span { display: block; }
.cnblogs-markdown pre > .copyed { background: #67c23a; }

/* --- 代码块细节修正 --- */
.cnblogs_code pre { padding: 7px 15px !important; background: #f5f5f5; border: 0; margin-top: 0; }
.cnblogs_code th { border: 1px solid silver; padding: 3px; }
.cnblogs_code { padding: 0; }
#cnblogs_post_body pre { padding: 0; }
#cnblogs_post_body ol { padding-left: 40px; }
#cnblogs_post_body ul { margin-left: 35px; }
#cnblogs_post_body { overflow: hidden; }

/* --- 页脚 --- */
#footer {
  color: #999;
  margin-bottom: 50px;
  font: 0.9em/1.6 "Lato", Helvetica Neue, Helvetica, Arial, sans-serif;
  text-shadow: 0 0 1px #fff;
}
/* 隐藏右下角浮动推荐/反对框 */
#div_digg { display: none !important; }
/* === 评论区对齐 === */
/* 让"发表评论"标题、"编辑/预览"工具栏、"发表"按钮等与正文左对齐 */
.feedback_area_title,
.commentform,
#comment_form,
.blog_comment_block,
#blog-comments-placeholder {
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-sizing: border-box !important;
}

/* 评论输入框限制在主内容区内，不再拉宽 */
.comment_textarea,
textarea[id*="Comment"],
#tbCommentBody {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* 评论编辑器的外壳也跟着收紧 */
.comment_textarea_box,
.commentbox-main,
.commentbox-side {
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}

