
/* 手机端优化 */
@media screen and (max-width: 768px){
    /*自定义的css规则*/

    /* 定制页面扩大按键 */
#divExpandViewArea{
    display: none;
}
/* 定制页面缩小按键 */
#divCollapseViewArea{
    display: none;
}
    /* 定制自己导航栏的样式 */
    #shwtop ul {
        margin: -6px;
        padding: 0;
        list-style-type: none; /*去除li前的标注*/
        background-color: #f3e6e6;
        overflow: hidden; /*隐藏溢出的部分，保持一行*/
        margin-right: 0px !important;margin-bottom: 0px !important;padding-bottom: 0px !important;padding-top: 0px !important;margin-top: auto !important;
        display: none;
    }
    
    #shwtop li {
        float: left; /*左浮动*/
    }
    #shwtop li a, .dropbtn {
    display: block!important;
    color: rgb(59, 19, 16) !important;
    text-align: center!important;
    text-decoration: none!important;
    font-size: 23px!important;
    font-weight: bold!important;
    padding: 7px 6px!important;
    }
    /*鼠标移上去，改变背景颜色*/
    #shwtop li a:hover, .dropdown:hover .dropbtn { 
        background-color: rgba(249, 226, 223, 0.409);
    }
    #shwtop .dropdown {
        /*
        display:inline-block将对象呈递为内联对象，
        但是对象的内容作为块对象呈递。
        旁边的内联对象会被呈递在同一行内，允许空格。
        */
        display: inline-block;
        z-index:9999;
    }
    #shwtop .dropdown-content {
        display: none;
        position: absolute;
        background-color: #f9f9f9;
        min-width: 160px;
        box-shadow: 0px 8px 16px 0px rgba(61, 8, 8, 0.2);
        z-index:10001!important;
    }
    #shwtop .dropdown-content a {
        display: block;
        color: rgb(42, 41, 41);
        padding: 8px 10px;
        text-decoration:none;
        z-index:10002!important;
    }
    #shwtop .dropdown-content a:hover {
        background-color: #f3e6e6;
        z-index:10002!important;
    }
    #shwtop .dropdown:hover .dropdown-content{
        display: block;
        z-index:10002!important;
    }
    /* 定制博客背景图片，url里面是你的图片位置信息 */
    body { 
     
     background-image:url(https://images.cnblogs.com/cnblogs_com/blogs/756086/galleries/2193493/o_aebac83d.jpg); 
     background-repeat: no-repeat; 
     background-attachment: fixed; 
     background-position: center 0;
     
     background-size: cover; 
     max-width: 100%;
     padding-top:0px;
    }


    #menuToggle
{
  display: block;
  position: fixed;
  top: 50px!important;
  left: 0px;
  
  z-index: 1;
  
  -webkit-user-select: none;
  user-select: none;
}
/* 禁止页面滑动 */
/* #menuToggle input:checked ~ html,body{
  overflow: hidden;
  height: 100%;
} */

    
    #GitHub{
    display: none;
    }

#topcolumn li{
padding-bottom: 91px!important;
}

}



#topcolumn li{
background-image: url(https://images.cnblogs.com/cnblogs_com/blogs/756086/galleries/2193493/o_fcf54c56.png);
background-size: contain;
background-color: #fefcf8;
padding-bottom: 0;
list-style: none;
}



#menuToggle
{
  display: block;
  position: fixed;
  top: -50px;
  left: 0px;
  
  z-index: 999;
  
  -webkit-user-select: none;
  user-select: none;
}

#menuToggle a
{
  text-decoration: none;
  color: #232323;
  
  transition: color 0.3s ease;
}

#menuToggle a:hover
{
  color: tomato;
}


#menuToggle input
{
    display: block;
    width: 66px;
    height: 54px;
    position: absolute;
    top: 22px;
    left: -14px;
    cursor: pointer;
    opacity: 0;
    z-index: 2; /* and place it over the hamburger */
    position: fixed;
  -webkit-touch-callout: none;
}

/*
 * Just a quick hamburger
 */
#menuToggle span
{
  display: block;
  width: 33px;
  height: 4px;
  margin-bottom: 5px;
  position: relative;
  left: 10px;
  top: -8px;
  background: rgba(34, 51, 85, 0.82);
  border-radius: 3px;
  
  z-index: 1;
  
  transform-origin: 4px 0px;
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
              opacity 0.55s ease;
}

#menuToggle span:first-child
{
  transform-origin: 0% 0%;
}

#menuToggle span:nth-last-child(2)
{
  transform-origin: 0% 100%;
}

/* 
 * Transform all the slices of hamburger
 * into a crossmark.
 */
#menuToggle input:checked ~ span
{
  opacity: 1;
  transform: rotate(45deg) translate(-2px, -1px);
  background: rgb(59, 19, 16);

}

/*
 * But let's hide the middle one.
 */
#menuToggle input:checked ~ span:nth-last-child(3)
{
  opacity: 0;
  transform: rotate(0deg) scale(0.2, 0.2);
}

/*
 * Ohyeah and the last one should go the other direction
 */
#menuToggle input:checked ~ span:nth-last-child(2)
{
  transform: rotate(-45deg) translate(0, -1px);
}


/*
 * Make this absolute positioned
 * at the top left of the screen
 */
#menu
{
  position: fixed;
  width: 300px;
  margin: -100px 0 0 -50px;
  padding: 50px;
  padding-top: 104px;
  padding-bottom: 250px;
  /* opacity: 0.95; */
  /* background: #102330; */
  background-image: url(https://images.cnblogs.com/cnblogs_com/blogs/756086/galleries/2193493/o_a0de7954.png);
    background-position: right;
    background-size: cover;
  list-style-type: none;
  -webkit-font-smoothing: antialiased;
  /* to stop flickering of text in safari */
  
  transform-origin: 0% 0%;
  transform: translate(-100%, 0);
  
  transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
}

#menu li
{
  opacity: 1;
  padding: 10px 0;
  font-size: 24px;
  padding-left: 29px;
  padding-top: 30px;
  color: rgb(59, 19, 16);
  font-weight: 600;
  text-shadow: 0px 0px 4px rgb(255 252 246);
}

/*
 * And let's slide it in from the left
 */
#menuToggle input:checked ~ ul
{
  transform: none;
}











/* 代码美化 */
/*! Color themes for Google Code Prettify | MIT License | github.com/jmblog/color-themes-for-google-code-prettify */
.pln{color:#4d4d4c}ol.linenums{margin-top:0;margin-bottom:0;color:#8e908c}li.L0,li.L1,li.L2,li.L3,li.L4,li.L5,li.L6,li.L7,li.L8,li.L9{padding-left:1em;background-color:#fff;list-style-type:decimal!important;}@media screen{.str{color:#718c00}.kwd{color:#8959a8}.com{color:#8e908c}.typ{color:#4271ae}.lit{color:#f5871f}.pun{color:#4d4d4c}.opn{color:#4d4d4c}.clo{color:#4d4d4c}.tag{color:#c82829}.atn{color:#f5871f}.atv{color:#3e999f}.dec{color:#f5871f}.var{color:#c82829}.fun{color:#4271ae}}
/*下面是我设置背景色，字体大小和字体*/
.cnblogs-markdown code{
background:#fff!important;
}
.cnblogs_code,.cnblogs_code span,.cnblogs-markdown .hljs{
    font-size:16px!important;
}
.syntaxhighlighter a, .syntaxhighlighter div, .syntaxhighlighter code, .syntaxhighlighter table, .syntaxhighlighter table td, .syntaxhighlighter table tr, .syntaxhighlighter table tbody, .syntaxhighlighter table thead, .syntaxhighlighter table caption, .syntaxhighlighter textarea {
    font-size: 16px!important;
}
.cnblogs_code, .cnblogs_code span, .cnblogs-markdown .hljs{
font-family:consolas, "Source Code Pro", monaco, monospace !important;
}



.progress {
    background-color: blue;

    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
}
$(function(){
    var $window = $(window);
    var $progress = $('.progress');
    var sHeight = $('body').height() - $window.height();
    $window.on('scroll', function() {
        window.requestAnimationFrame(function(){
            var value = Math.max(0, Math.min(1, $window.scrollTop() / sHeight));
            updateProgressBar(value);
        });
    });

    function updateProgressBar(value) {
        $progress.css({width: value * 100 + '%'});
    }
});


/* 1111 */
body {
    font-size: 14px;
    font-family: 'PingFang SC','Microsoft YaHei','Helvetica Neue','Helvetica','Arial',sans-serif;
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 0;
    margin-bottom: 10px;
    padding: 30px;
    padding-bottom: 10px;
    padding-top: 0;
    background-color: #d9d6cb;
}
:root {
    --cnblogs-toc-bg-color: rgba(245,245,245,.98);
    --cnblogs-toc-highlight-color: rgba(255,255,255,.9);
    --cnblogs-toc-color: #000;
}
:root {
    --highlighted-line-bg: #d1e3c9;
    --highlighted-line-bg-dark: #264b33;
}

a {
    color: #235 !important;
   
    text-decoration: none;
}
.vertical-middle>* {
    vertical-align: middle;
}
a:-webkit-any-link {
    color: -webkit-link;
    cursor: pointer;
}
#content h2 {
    font-size: 25px;
}
#content {
    /* FONT-WEIGHT: 200; */
    /* FONT-VARIANT: JIS04; */
    margin-left: 17.2%;
    padding-right: 0;
    margin-right: 0;
    border-left: 1px solid #ffe4e1;
    border-bottom: 1px solid #fff;
    padding: 10px;
    background-color: rgba(255,252,246,0.7);
}
#content .post {
    font-size: 16px;
    line-height: 1.8;
    padding-left: 10px;
   
}
.post h5, .post h2 {
    font-size: 22px;
    margin: 0;
    margin-bottom: 8px;
}
.post {
    border-color: rgba(255,252,246,0.7);
    border-bottom-width: 2px;
    border-right-width: 2px;
    padding: 4px;
    margin-bottom: 28px;
    border:hidden;
}
h2 {
    margin-top: 10px;
    font-size: 1em;
    font-weight: bold;
}






.Cal {
    border: 0px solid #999;
    width: 98%;
    font-family: Arial;
    font-size: 0px;
    margin-top: 0px;
    margin-bottom: 0px;
    height: 0px;
    background-color: #eee;
    margin-left: 0;
}
tbody {
    display: none;
    vertical-align: middle;
    border-color: inherit;
    border-top-color: inherit;
    border-right-color: inherit;
    border-bottom-color: inherit;
    border-left-color: inherit;
}

#leftmenu {
    /* display: none; */
    float: left;
    left: 0;
    width: 250px;
    /////
    margin-left: -2%;
    padding: 0;
    padding-top: 80px;
    padding-bottom: 5px;
    padding-left: 6px;
    overflow: hidden;
    background-color: rgb(226, 243, 246);
    opacity: 0.5;
}

p.date {
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 0;
    padding: 2px 0;
    color: #cecece;
    text-align: right;
    opacity: 0.7;
}
p.date a {
    color: #888 !important;
}
p.date span {
    background-color: #fffcf6;
}






#header{display:none;} 将默认的导航头屏蔽掉，这样才能把自己的导航栏加上去






/* 定制自己导航栏的样式 */
#shwtop ul {
    margin: 0;
    padding: 0;
    list-style-type: none; /*去除li前的标注*/
    background-color: rgb(79, 129, 146);
    overflow: hidden; /*隐藏溢出的部分，保持一行*/
    
}

#shwtop li {
    float: left; /*左浮动*/
}
#shwtop li a, .dropbtn {
    display: inline-block; /*设置成块*/
    color: rgb(59, 19, 16) !important;
    text-align: center;
    text-decoration: none;
    font-size:22px;
    font-weight:bold;
    padding: 16px 18px;
    
}
/*鼠标移上去，改变背景颜色*/
#shwtop li a:hover, .dropdown:hover .dropbtn { 
    background-color: rgba(249, 226, 223, 0.409);
    
}
#shwtop .dropdown {
    /*
    display:inline-block将对象呈递为内联对象，
    但是对象的内容作为块对象呈递。
    旁边的内联对象会被呈递在同一行内，允许空格。
    */
    display: inline-block;
    z-index:9999;
}
#shwtop .dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(61, 8, 8, 0.2);
    z-index:10000;
}
#shwtop .dropdown-content a {
    display: block;
    color: rgb(42, 41, 41);
    padding: 8px 10px;
    text-decoration:none;
    z-index:10000;
}
#shwtop .dropdown-content a:hover {
    background-color: #f3e6e6;
    z-index:10000;
}
#shwtop .dropdown:hover .dropdown-content{
    display: block;
    z-index:10000;
}

/* 去掉广告 */
#ad_t2,#opt_under_post,.c_ad_block,#under_post_news,#under_post_kb{
    display: none !important;
}

@media (max-width: 767px) {
  #home {
    padding-left: 0;
    padding-right: 0;
  }
  #div_digg {
    width: auto;
    padding: 0;
    right: -25px;
    bottom: 3px;
    box-shadow: none;
  }
  #div_digg .buryit {
    display: none;
  }
  #mainContent .forFlow {
    padding-right: 0;
  }
  #mainContent .post {
    padding: 0 20px;
  }

  #sideBar,
  #blog-comments-placeholder {
    padding: 0 0px;
  }
}

/* 定制页面扩大按键 */
#divExpandViewArea{
    position: fixed;
    color: white;
    padding: 7px 7px;
    left: 0px;
    top: 875px;
    cursor: pointer;
    opacity: 0.9;
    background-color: #225c8b;
}
/* 定制页面缩小按键 */
#divCollapseViewArea{
    position: fixed;
    color: white;
    padding: 6px 6px;
    left: 0px;
    top: 915px;
    cursor: pointer;
    opacity: 0.9;
    background-color: #225c8b;
}



.medium-zoom-image--opened {
    z-index: 10001;
}


/* 定制博客背景图片，url里面是你的图片位置信息 */
body { 
     background-color: #efefef;
     background-image:url(https://images.cnblogs.com/cnblogs_com/blogs/756086/galleries/2193493/o_aebac83d.jpg); 
     background-repeat: no-repeat; 
     background-attachment: fixed; 
     background-position: center 0; 
     background-size: cover; 
    padding-top:0px;
  }

  