/*评论框太大了...*/
div.commentform textarea {
    width: 400px;
    height: 80px;
    font-size: 1px;
    border: 1px solid #ccc;
    font-family: 'PingFang SC','Helvetica Neue','Helvetica','Arial',sans-serif;
}

/* p标签的字体太小 */
.postBody p, .postCon p {
    font-size: 13px;
}

/* 隐藏系统标题 */
#blogTitle { display: none; }

#header { height: 0px; }

/* 整体布局 */
#home {
  max-width: 100%;
  padding: 10px;
  background: transparent;
  box-shadow: none;
  margin-top: 10px;
  width: auto;
}

#main {
  width: 99%;
  min-width: 800px;
  text-align: left;
  margin-top: 10px; 
}

#mainContent {
  width: 100%;
  margin: 0 -280px 0 0;
}

#mainContent .forFlow {
  margin: 0 295px 0 0;
  background: #FEFEF2 url(/Skins/coffee/images/bg_left.gif) left top repeat-x;
  padding-top: 35px;
  padding-bottom: 15px;
}

/* 侧边栏 */
#sideBar {
  width: 240px;
  margin-top: 10px;
  float: left;
}

/* 增加列表项间距 */
.sidebar-block li { margin-bottom: 5px; }

/* 头像和社交 */
.c-portrait {
  text-align: center;
  padding: 20px 0;
  background: url('/Skins/coffee/images/bg_title.gif') no-repeat;
  background-position: 92% 40%;
  color: #a37459;
  margin-bottom: -50px;
}

/* 头像 */
.c-portrait a img {
  text-align: right;
  display: inline-block;
  height: 100px;
  border-radius: 50%;
}

/* 标题和签名 */
.c-portrait h1 {
  font-size: 28px;
  margin: 2px 0;
}

.c-portrait h1 a { color: #a37f59; }

/* **********************
 * 文章推荐的漂浮效果
 * **********************/
#div_digg {
    position: fixed;
    right: 5px;
    bottom: -20px;
    background: #fff;
    padding: 2px 10px 3px 10px;
    border-radius: 8px;
    border: 1px solid #888;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.3);
    float: right;
    margin-bottom: 4%;
    margin-right: 5px;
    font-size: 14px;
    width: 60px;
    text-align: center;
    margin-top: 5px;
    text-shadow: 0 0 black;
}

.diggit {
    float: right;
    width: 53px;
    height: 50px;
    background: url(//static.cnblogs.com/images/upup.gif) no-repeat;
    text-align: center;
    cursor: pointer;
    margin-top: 1px;
    padding-top: 1px;
}

/*反对*/
.buryit { display:none; }

/* **********************
 * 导航栏
 * **********************/
#navList a {
    height: 25px;
    float: left;
    text-align: center;
    font-size: 13px;
    padding-top: 4px;
    margin-right: 25px;
}

/* 修改目录的样式 */
.postBody li, .postCon ul {
    margin-left: 5px;
    margin-top: 7px;
}

.postBody li, .postCon li {
    list-style-type: disc;
    margin-bottom: 7px;
}

/* 修改引用、图片等的格式 */
.postBody blockquote {
    background: #fff8e5;
    border: 1px solid #dad1d1;
    /* 上右下左边界, 等同于padding-left... */
    padding: 0px 10px 0px 10px;
    margin-top: 0px;
    margin-bottom: -3px;
    line-height: 1.1em;
}

#cnblogs_post_body img {
    padding: 10px 5px 2px 10px;
    max-width: 900px;
    height: auto;
}

#cnblogs_post_body p {
    margin: 5px auto;
    text-indent: 0;
}

.cnblogs-markdown code, .cnblogs-post-body code {
    font-family: "Courier New",sans-serif;
    font-size: 13px;
    background-color: #f5f5f5;
    border: 1px solid #ccc;
    padding: 0px 2px;
    border-radius: 3px;
    line-height: 1.1;
    margin: 0px 2px;
    vertical-align: text-top;
    display: inline-block;
}

/*修改段落标题的样式*/
#cnblogs_post_body h1 {
    background: #c4f3ff7a;
    border-radius: 3px;
    box-shadow: 0 0 0 0px #5F5A4B, 0px 1px 6px 1px rgb(150 150 150 / 0.8);
    color: #3b72aa;
    font-family: "微软雅黑","宋体","黑体",Arial;
    font-size: 22px;
    /* font-weight: bold; */
    height: 27px;
    line-height: 30px;
    margin: 15px 0;
    padding: 3px 3px 3px 5px;
    /* text-shadow: 1px 1px 50px #222222; */
}

/*在边栏生成文章目录*/
#uprightSideBar {
    font-size: 12px;
    font-family: Courier, Arial, Helvetica, sans-serif;
    text-align: left;
    position: fixed; /*将div的位置固定到右侧*/
    top: 80px;
    right: 10px;
    width: auto;
    height: auto; 
    cursor: pointer;
}
#sideBarTab {
    float: left;
    width: 30px; 
    border: 3px solid #e5e5e5;
    border-right: none;
    border-radius: 10px;
    text-align: center;
    color: #90844e;
    background: #fff3cb;
    cursor: pointer;
}

#sideBarTab a:hover{
  text-decoration: none;
}

#sideBarTab a h2 {
  color: #90844e;
}

#sideBarContents {
    float: left;
    overflow: auto; 
    overflow-x:hidden;!important;
    width: auto;
    min-height: 100px;
    max-height: 400px;
    border: 3px solid #e5e5e5;
    border-right: none;
    border-radius: 10px;
    background: #fbf7e6;;
}
#sideBarContents .toc-list ul { margin: 2px; padding: 1px;}
#sideBarContents .toc-list ul li { margin-top: 1px; margin-left: 4px;}
#sideBarContents .toc-list ul li ul{ margin-left: 8px; }
#sideBarContents .toc-list ul li a:hover { color:#A7995A; }
#sideBarContents .toc-list ul li ul a:hover { color:#A7995A; }

/* **********************
 * 适配手机
 * **********************/
@media (max-width: 1000px) {
  #home {
    padding-left: 0;
    padding-right: 0;
  }
  #div_digg {
    width: auto;
    padding: 1px;
    right: 2px;
    bottom: 2px;
    border-radius: 10px;
    border: 1px solid #888;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
  }

  #div_digg .buryit { display: none; }
  #mainContent .forFlow { padding-right: 0; }
  #mainContent .post { padding: 0 20px; }

  #blog-comments-placeholder { padding: 0 15px; }

  #cnblogs_post_body h1 {
    background: #c4e5ff;
    border-radius: 4px;
    box-shadow: 0 0 0 1px #5F5A4B, 1px 1px 6px 1px rgba(10, 10, 0, 0.5);
    color: #ffffff;
    font-family: "微软雅黑","宋体","黑体",Arial;
    font-size: 19px;
    height: auto;
    line-height: 20px;
    margin: 15px 0 !important;
    padding: 8px 0 5px 5px;
  }

  #cnblogs_post_body h2 { font-size: 18px; }
  #cnblogs_post_body h3 { font-size: 15px; }

  #uprightSideBar{
    top: 20px;
    right: 5px;
    width: auto;
    height: auto;
    cursor: pointer;
  }
}