/**
 * Author:           hahaya
 * Contact:          http://hahaya.github.com
 */

/* 重置浏览器CSS */
html{color:#000;}
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td,hr,button,article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{margin:0;padding:0;}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block;}
body,button,input,select,textarea{font-size:12px/1.5;}
input,select,textarea{font-size:100%;}
table{border-collapse:collapse;border-spacing:0;}
th{text-align:inherit;}
fieldset,img,a img{border:0;}
iframe{display:block;}
abbr,acronym{border:0;font-variant:normal;}
del{text-decoration:line-through;}
address,caption,cite,code,dfn,em,th,var {font-style:normal;font-weight:500;}
ol,ul {list-style:none;}
caption,th{text-align:left;}
h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:500;}
q:before,q:after {content:'';}
sup{vertical-align:text-top;}
sub{vertical-align:text-bottom;}

.clearfix:after {visibility:hidden;display:block;font-size:0;content:" ";clear:both;height:0;}
.clearfix{zoom:1;}
body .hide{display:none;}
.left,.right{display:inline;}
.left{float:left;}
.right{float:right;}


/***********default settings**********/
body {font-family: "微软雅黑","Arial","Helvetica","sans-serif";font-size:16px;overflow-x:hidden;_height:100%;background-color: #FFFFFA;}
a {color:#4A75B5;text-decoration:none;outline:none;
    -webkit-transition: all .4s ease;
    -moz-transition: all .4s ease;
    -o-transition: all .4s ease;
    transition: all .4s ease;
}
a[target="_blank"], a[href=^http] { cursor: alias;}
a:hover {
    text-decoration:underline;
    -webkit-transition: all .4s ease;
    -moz-transition: all .4s ease;
    -o-transition: all .4s ease;
    transition: all .4s ease;
}
a.external {padding-right:13px;background:url(/images/icons.gif) no-repeat right 1px;}
a.external:hover {background-position:right -15px;}
.entry-title,.entry-title a {font-size:30px;font-weight:bold;margin-bottom:6px;color:#333;border-bottom: 1px solid #CCC;padding-bottom: 10px;}
.entry-title a:hover {text-decoration:none;color:#F00;}
.entry-date {color:#999; font-size: 16px;line-height: 30px;text-indent: 0em !important;}

h2 {font-size:22px;font-weight:bold;margin-bottom:25px; margin-top: 25px;}
h3 {font-size:18px;font-weight:bold;margin-bottom:25px;}
h4,h5,h6 {font-weight:bold;margin-bottom:15px;}
p {margin-bottom:30px;line-height:1.8em; }
code {background:#EEE;border:1px solid #ccc;padding:0 5px;font-family:"Courier";line-height:14px;font-size:14px;word-wrap:break-word;border-radius: 4px;margin:0 3px;}
pre {background-color:#000;padding:15px;overflow:auto;_overflow:hidden;_width:650px;margin-bottom:20px;font-size:14px;border: 1px solid #eee;-webkit-border-radius: 4px 4px 4px 4px;-moz-border-radius: 4px 4px 4px 4px;border-radius: 4px 4px 4px 4px;color:#b9bdb6}
pre code{background-color:transparent;border:none;padding:0;word-wrap:normal;}
pre.prettyprint  ol{margin:0; margin-left:25px;list-style-type:decimal;}
pre.prettyprint ol li, pre.prettyprint ul li {
    margin-bottom: 0;
}
table{
    border: 1px solid #CCC;
    margin: 15px 0;
    box-shadow: 3px 3px 5px #CCC;
    border-radius: 5px;
}
table th {
    background: #F8F8F8;
    text-align: center;
}
table td, table th {
    padding: 5px;
    border: 1px solid #CCC;
}
/************layout style*****************/
.page-loc { font-size: 18px; border-bottom: 1px solid #CCC; padding-bottom: 10px; margin-bottom: 30px; }
.page-rss { margin-left: 20px; }
.page-top-nav, #copyr {
    overflow: hidden; 
    font-weight: bold;
    color: #333;
    border-bottom: none;
    background-color: #AAD2F0;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    -moz-box-shadow: inset 0px 1px 0px 0px #eeeeee;
    -webkit-box-shadow: inset 0px 1px 0px 0px #EEE;
    box-shadow: inset 0px 1px 0px 0px #EEE;
    background: -webkit-gradient( linear, left top, left bottom, color-stop(0.05, #AAD2F0), color-stop(1, #8BC1ED) );
    background: -moz-linear-gradient( center top, #aad2f0 5%, #8bc1ed 100% );
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#aad2f0', endColorstr='#8bc1ed');
    background-color: #AAD2F0;
    border: 1px solid #DCDCDC;
    text-shadow: 1px 1px 0px #EEE;
}
.page-top-nav {
    padding: 0.3em 0.5em;
    margin: 0 0 1em 0;
    margin-bottom: 30px;
}
.page-top-nav .categoryList { float:left;line-height: 40px;margin-top: 0;margin-bottom: 0;max-width: 380px; white-space: nowrap;overflow:hidden;}
.page-paginator{float:right;line-height: 40px;}
.page-paginator span { display: inline-block; width: 280px; text-overflow: ellipsis;white-space: nowrap;}




#content {width:680px;margin:60px auto 20px;*padding-top:40px;min-height:400px;height:auto !important;height:400px;position:relative;}

/****************entry style**************/
#content .entry{margin-bottom:55px;}
/*
.entry p { text-indent: 2em;}
.entry blockquote p { text-indent: 0;}
*/
.entry ul, .entry ol {margin: 25px 0 25px 35px;}
.entry ul li,.entry ol li{margin-bottom:5px;list-style:circle;line-height:24px;font-size: 14px;}
.entry ol li{list-style:decimal;}
.entry blockquote{margin:20px;background:#FCFCFC;border-left:6px solid #DBDBDB;font-size: 13px;padding:10px; line-height: 24px;padding-left: 20px;}
.entry blockquote p {margin-bottom: 10px;}
.entry img{border: 1px solid #CCC; max-width:650px;_width:500px;display:block;margin:15px 0;padding:3px;box-shadow: 5px 5px 8px #CCC;}
.entry img:hover {
    opacity:0.8;-moz-opacity:0.8;filter:alpha(opacity=80);
}

.index-content .aside {
    position: fixed; _position:absolute;
    top: 0;
    left: 0;
    _zoom: 1;
    _bottom:0;
    width: 30%;
    height: 100%;
    max-width: 500px;
    _width:200px;
    background:#000;
    box-shadow:inset -1px 0 0 rgba(0,0,0,0.3);
    background-size:cover;
    background-position:50% 50%;
    _display:none;
}
.blog .aside{
    background-image:url(/images/blog.jpg);
}
.life .aside{
    background-image:url(/images/life.jpg)
}
.project .aside{
    background-image:url(/images/project.jpg);
}

.index-content .section { margin-left:30%;_margin-left:200px; padding-top:80px; padding-right:15%;_overflow:hidden;}

.index-content .artical-list { width:70%; margin:0 auto; }
.index-content .artical-list li { margin-bottom:70px; }
.index-content h2 { font-size:20px; margin-bottom:15px; }
.index-content h2 a { color:#444 }
.index-content h2 a:hover { color:#E50053; text-decoration:none; }
.index-content .title-desc {color:#999;font-size:14px;line-height:1.6em;}
.stick-top {color: #FFA500; position: relative; top: -5px; right: -5px; font-size: small;}

.index-content .artical-cate { width:70%; margin:0 auto; }
.index-content .artical-cate li { display:inline-block; *float:left; zoom:1; font-size:18px; width:24%; cursor:pointer; }
.index-content .artical-cate li a,
.index-content .artical-cate li a:visited { display:inline-block; zoom:1; color:#000; width:100%; }
.index-content .artical-cate li a:hover { text-decoration:none; }
.index-content .artical-cate li.on span{ color:red; }

.index-content .cate-bar { height:3px; width:70%; margin:0 auto;margin-bottom:100px;*margin-bottom:60px;*margin-top:8px; }
.index-content #cateBar { display:inline-block; zoom:1; height:3px; background:red; position:relative; width:0;_line-height:0;_font-size:0; }

/***************GitHub banner******************/
/***************add by hahaya*****************/
.github{
    opacity: 0.6;
}

.github:hover{
    opacity: 0.9;
}


/***************Wiki Style*****************/
.wiki * {
    -webkit-transition: all .4s ease;
    -moz-transition: all .4s ease;
    -o-transition: all .4s ease;
    transition: all .4s ease;
}
.wiki h2{cursor:pointer;}
.wiki h2:hover{color:red;}
.wiki ul{margin-left:30px;margin-bottom:20px;list-style:disc}
.wiki ul li{margin-bottom:5px;}
.wiki ul ul{list-style:circle;margin-top:10px;margin-bottom:10px;}

/***************contact style*************/
#disqus_container {font-size:12px;}
#disqus_container a.comment{font-size:14px;}
h3.about {color:#777;margin-top:20px;font-size:22px;margin-bottom:10px}
.about-link a {margin-right:10px;font-weight:bold;font-style:italic;font-size:13px;color:#E50053}

/**************翻页样式**************/
.pagination { margin-left: 130px; margin-bottom: 100px; *overflow:hidden;}
.pagination .previous, .pagination .pages, .pagination .next { display: inline-block; line-height: 24px; *float:left;}
.pagination .previous *, .pagination .next * { line-height: 24px; vertical-align: super;}

.pagination .disabled { color: #CCC;}
.pagination ul.pages { margin-left: 0;padding:0 8px;}
.pagination li { list-style: none;float:left; width:24px; margin: 0 8px; text-align: center;}
.pagination li a {height: 24px; display: inline-block; border: 1px solid #ccc; color:#13964C; width: 24px; text-align: center;text-decoration: none}
.pagination li a:hover { background:#F8F8F8; font-weight: bold;}

/**************功能按钮样式**************/
#page-leader {
    position: fixed;left:50%;margin-left:350px;top: 35%;z-index: 100;; _position:absolute;
    opacity: .4; filter:alpha(opacity=40); -moz-opacoty: .4;
}
#page-leader:hover {
    opacity: 1; filter:alpha(opacity=100); -moz-opacoty: 1;
    -webkit-transition: all .4s ease;
    -moz-transition: all .4s ease;
    -o-transition: all .4s ease;
    transition: all .4s ease;
}

#page-leader span {
    display: block;
    border: 1px solid #CCC;
    margin-top: 10px;
    background: #F8F8F8;
    color: #999;
    cursor: pointer;
    line-height: 20px;
    text-align: center;
    font-size: 12px;
    border-radius: 1px;
}

#page-leader span:hover {
    background: #FFF;
    color: #F00;
    _width:10px;
}

.barretSay { color:  #999; font-size: 14px; line-height: 24px;}
/*#menuIndex {padding:10px;}
#menuIndex:hover {border:1px dashed #CCC;background:#FEFEFE;}
#menuIndex .menu-unfold { position:;}*/
/**************滚动条样式**************/
.text-justify {
    text-align:justify;
    text-justify:distribute-all-lines;/*ie6-8*/
    text-align-last:justify;/* ie9*/
    -moz-text-align-last:justify;/*ff*/
    -webkit-text-align-last:justify;/*chrome 20+*/
}
figure p { text-align: center}

::selection {
    background: #FDE6BA;
    color: #000;
    text-shadow: 3px 3px 3px #CCC;
}
::-webkit-scrollbar-track-piece {
    background-color:#f5f5f5;
    border-left:1px solid #d2d2d2;
}
::-webkit-scrollbar {
    width:13px;
    height:13px;
}
::-webkit-scrollbar-thumb {
    background-color:#c2c2c2;
    background-clip:padding-box;
    border:1px solid #979797;
    min-height:28px;
}
::-webkit-scrollbar-thumb:hover {
    border:1px solid #636363;
    background-color:#929292;
}
/*内容样式*/
pre::-webkit-scrollbar {width:10px;height:10px;background:#F6F6F6;border-top:1px solid #CCC;padding-top:1px;}
pre::-webkit-scrollbar-thumb {background:#EEE;border-radius:5px;border:1px solid #CCC;border-bottom:0px;}
pre::-webkit-scrollbar-thumb:hover {background:#DDD;}

pre::-webkit-scrollbar {width:10px;height:10px;background:#CCC;}
pre::-webkit-scrollbar-thumb {background:#999;border-radius:5px;}
pre::-webkit-scrollbar-thumb:hover {background:#666;}
pre::-webkit-scrollbar-corner {background:#CCC;}
pre::-webkit-color-swatch {border:none;}

/*RunatServer*/

.ES6 {
    width: 70%;
    margin: 0 auto !important;
}

.ES6 .artical-list {
    width: auto;
    margin:auto;
}

.ES6 .artical-list li h1.title {
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 30px;
    margin-top: 60px;
}
.ES6 .artical-list li {
    margin-bottom: 0;
}
.page-ctrl {
    overflow: hidden;
    padding-top: 20px;
    font-family: 宋体;
    color: #202020;
    font-weight: bold;
    zoom: 1;color: #4A75B5;
    border-top: 1px solid #4A75B5;
    margin-top: 20px;
}
.page-ctrl a {
    display: inline-block;
    max-width: 250px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    vertical-align: text-bottom;
}
.page-ctrl *:hover {
    color:red;
}
.page-old {
    float: left;
}
.page-old a{
    margin-left: 6px;
}
.page-new {
    float: right;
}
.page-new a{
    margin-right: 6px;
}
.rss {
    width: 60px;
    height: 60px;
    position: fixed;
    right: -20px;
    bottom: -20px;
    background: url(/images/rss80.png);
    z-index: 1000;
    _display:none;
}
.rss:hover {
    right:0;
    bottom: 0;
}
.footer {
    margin-top: 30px;
    margin-top: 30px;
    border-top: 1px dashed #CCC;
    padding-top: 10px;
}
.footer a {
    color: orange;
}
/*==========
  categories
============*/
.categories { padding:25px 15px;}
.cate-title { padding:10px 0;}
.cate-title a { font-weight: bold; color:orange; display:inline-block; padding: 3px 8px; margin:5px 8px 5px 0; background:#F4F4F4; box-shadow: 3px 3px 5px #CCC;}
.cate-title a:hover sup { color:#000;}
.cate-list {}
.cate-list h3 {margin-bottom: 0; margin-top: 15px; line-height: 50px; font-size: 22px;}
.cate-list li { padding-left: 8px; line-height: 24px; }
.cate-list a {}
.cate-list time {color: #AAA; font-family: Monaco, "Courier New", monospace;}

/*==========
   about me
============*/
.aboutMe {
    width: 70% !important;
}
.aboutDl {
    margin-bottom: 50px;
}
.aboutDl dd {
    text-indent: 2em;
    line-height: 30px;
}
.aboutDl dt {
    font-size: 24px;
    font-weight: bold;
    line-height: 50px;
    margin-top: 20px;
}
.aboutDl strong {
    margin-right: 5px;
    text-align: left;
}
.aboutDl img {
    float: right;
    width: 200px;
    margin: 15px;
    box-shadow: 3px 3px 5px #CCC;
}

/*==========
   sidebar
============*/
.sidebar {/*width: 260px; position:absolute; right: -285px;top: 66px; overflow:hidden;*/}
.sidebar .recent {/*width:230px; float:left; padding: 10px;background: #F4F4F4;box-shadow: 2px 2px #FFF,4px 5px #E2E2E2;*/ margin-bottom: 30px;}
.sidebar .recent b {display: block; border-bottom: 1px solid #CCC; padding-bottom: 8px; font-size: 18px; }
.side-list { padding:10px;}
.side-list li { height:24px;}
.side-list a {color:#2C383B; white-space: nowrap; font-size: 14px; line-height: 24px; text-overflow: ellipsis; overflow:hidden;display:block;}
.friend-link {/* padding:10px */}
.friend-link a {margin-right: 10px; white-space: nowrap;}

/*==========
   category
============*/
.categoryList {
    margin-top: 40px;
    margin-bottom: 15px;
}
.categoryList a {
    display: inline-block;
    padding: 3px 8px;
    height: 20px;
    line-height: 20px;
    background: #eee;
    color: #FF7406;
    border-radius: 4px;
    box-shadow: 3px 3px 3px #CCC;
    font-size: 14px;
    margin: 0 3px;
    margin-bottom: 8px;
    *vertical-align: middle;
}
.categoryList a:hover {
    background: #CCC;
    color: #333;
    text-decoration: none;
}
.categoryList strong {
    margin-right: -7px;
}
.aboutMe .bdsharebuttonbox  {
    display:none;
}
#copyr {
    line-height: 20px;
    padding-top: 10px;
    padding-right: 10px;
    padding-bottom: 10px;
    padding-left: 60px;
    background-image: url(/images/warn.png);
    background-repeat: no-repeat;
    background-position: 15px;
    font-size: 12px; 
}
.web-search {width: 120px; margin-right: 20px; height: 20px; line-height: 20px; font-size: 14px; text-indent: 3px; border-bottom: 1px solid #CCC;color: #999;}
.web-search:focus {color:#333;}
.recent .web-search {margin-top: 20px; width: 150px; height: 24px; line-height: 24px; text-indent: 0.5em;}
.f-submit {border: 1px solid #CCC; height: 24px; line-height: 24px; padding: 0 10px; cursor: pointer; background:#EEE;}
.f-submit:hover { background:#E3E3E3;}


/**************目录导航**************/
#menuIndex {position:fixed;top:80px;left:15px;/*top:40px; margin-left:300px; left:50%;*/ width:200px;overflow:auto; _position:absolute;}
#menuIndex a {display:block; padding:2px 0; }
#menuIndex a:hover {text-decoration:none;}
#menuIndex ul li{font-size:12px;margin-bottom:5px;word-wrap:break-word;padding-left:10px;}
#menuIndex ul li.on{background-color:#f5f5f5;}
#menuIndex li.h1{font-size:14px;font-weight:normal;padding-left:0;margin-bottom:10px;}
#menuIndex li.h3{padding-left:25px;}

.home-menu { position:fixed; top:15px; left:15px; z-index:5; font-size:0; _position:absolute;}
.home-menu-icon { line-height:38px; padding:0 8px; display:inline-block; color:#fff; font-size:18px;  background:#000; }
.home-follow { margin-left:2px; line-height:38px; padding:0 8px; display:inline-block; color:#fff; font-size:18px; background:#000;  }
.home-menu-icon:hover,
.home-follow:hover { color:#fff; text-decoration:none; }
.home-contact { color:#fff; margin-top:2px; background:#000; padding:8px 0 7px; text-align:center; display:none;}
.home-contact a { width:30px; display:inline-block; }
.home-contact img { width:18px; }

@media screen and (max-width: 750px){
    body {font-size:14px}
    #content {width:85%;margin:100px auto 50px; }

    h2{font-size:20px;}
    h3{font-size:16px;}
    embed {display:none;}

    .rss{
        display:none;
    }
    .entry-title,.entry-title a {font-size:24px;}
    .entry-date {margin-bottom:40px;}
    .entry img{max-width:90%;}
    .entry pre ol li{margin-bottom:0;line-height:1em;}
    .entry pre code{line-height:1em;font-size:12px;}

    .index-content .aside { position:relative; width:100%; height:300px; max-width:none; }
    .index-content .section { margin-left:0; padding-right:0; }
    .index-content .section ul { width:85%; }
    .index-content .cate-bar { width:85%; }
    .index-content .artical-cate { margin-top:50px; }

    .blog .aside,
    .life .aside,
    .project .aside {display:none;background-image:none;}

    .aboutDl img {
        float: none;
        display:block;
        width: 65%;
    }
    /*.sidebar {position:static; width:auto;}
    .sidebar .recent { width:auto;float:none;}
    #relative-page { display:none !important;}
    #page-leader {
        right: 3% !important;
        left: auto !important;
    }*/
}

@media screen and (max-width: 450px){
    .weibo-con { float:none; }
    .contact-more { margin-top:15px; }
    .contact-more a { margin-left:0; margin-right:40px; }
    .index-content #cateBar {
        display:none;
    }
    .index-content .artical-cate li { display:block; width: auto;}
    .index-content .artical-cate li a { line-height: 30px; }
    .index-content .cate-bar {margin-bottom: 50px;}
    .aboutDl img {
        float: none;
        display:block;
        width: 75%;
    }
    .page-loc span {display:none;}
}

@media (max-width: 1020px){
    #menuIndex {display:none;}
    .home-menu { position:absolute; }
    .index-content .cate-bar ,
    .index-content .artical-list,
    .index-content .artical-cate { width:85%; }
    /*#content {margin-left: 30px;}
    #page-leader {
        left: 370px;
    }*/
}
