/* 自定义全局css */

body, blockquote {
    margin: 0;
    padding: 0;
    font-size: 15px;
    font-family: Consolas, 宋体;
    color: #000;
    word-break: break-all;
}

input, img {
    vertical-align: middle;
    border: 0 none;
    outline-style: none;
    padding: 0;
    margin: 0;
}

::selection {
    background-color: #ff8621;
}

a {
    color: #175199;
    text-decoration: none;
}

/* 清除浮动 */
.clearfix::after {
    content: "";
    height: 0;
    line-height: 0;
    display: block;
    clear: both;
    visibility: hidden;
}

.clearfix {
    zoom: 1;
}

/*自定义css*/
body {
    background-color: #F6F6F6;
    line-height: 1.6;
}

article {
    width: 888px;
    margin: 0 auto;
    background-color: #FFFFFF;
    border-bottom: 1px solid #E4D0D0;
}


header {
    min-height: 120px;
    overflow: hidden;
    border-bottom: 1px solid #E4D0D0;
}

header h1 {
    text-align: center;
    margin: 25px auto 0;
    font-weight: 900;
    font-size: 40px;
    line-height: normal;
    font-family: Georgia, 华文行楷;
    color: #1a1a1a;
}

header #info {
    padding: 10px 20px;
    font-weight: 500;
    color: gray;
    overflow: hidden;
}

header #info #time {
    float: left;
}

header #info #author {
    float: right;
}

.content {
    margin: 10px;
    max-width: 100%;
    overflow: hidden;
    word-break: break-all;
}

/*让标题自动标号排序*/
.doc h2 {
    counter-increment: counter_h2;
    counter-reset: counter_h3 counter_h4 counter_h5 counter_h6;
}

.doc h2::before {
    content: counter(counter_h2) " ";
}

.doc h3 {
    counter-increment: counter_h3;
    counter-reset: counter_h4 counter_h5 counter_h6;
}

.doc h3::before {
    content: counter(counter_h2) "." counter(counter_h3) " ";
}

.doc h4 {
    counter-increment: counter_h4;
    counter-reset: counter_h5 counter_h6;
}

.doc h4::before {
    content: counter(counter_h2) "." counter(counter_h3) "." counter(counter_h4) " ";
}

.doc h5 {
    counter-increment: counter_h5;
    counter-reset: counter_h6;
}

.doc h5::before {
    content: counter(counter_h2) "." counter(counter_h3) "." counter(counter_h4) "." counter(counter_h5) " ";
}

.doc h6 {
    counter-increment: counter_h6;
}

.doc h6::before {
    content: counter(counter_h2) "." counter(counter_h3) "." counter(counter_h4) "." counter(counter_h5) "." counter(counter_h6) " ";
}

.content dl dt {
    font-weight: 900;
    font-size: 1.17em;
}

.content img, embed {
    display: block;
    margin: 1em auto;
    box-sizing: border-box;
    max-width: 100%;
    border: 1px dotted black;
    box-shadow: 0px 0px 25px #5c5c80;
    border-radius: 15px;
}

.content img.origin {
    display: inline-block;
    margin: 0;
    box-sizing: content-box;
    border: 0;
    box-shadow: inherit;
    border-radius: 0;
}

.content pre, .content code {
    white-space: pre-wrap;
    word-break: break-all;
}

.content blockquote {
    margin: 1.4em 0;
    padding-left: 1em;
    color: #646464;
    border-left: 5px solid #D3D3D3;
    display: block;
    line-height: 1.6;
}

table {
    border-collapse: collapse;
    border: 1px solid #aaa;
    margin: 0 auto;
}

table th {
    background-color: #3F3F3F;
    border: 1px solid #3F3F3F;
    color: #fff;
}

table td {
    border: 1px solid #aaa;
    padding: 0 4px;
}

table.atCenter td {
    text-align: center;
}

table tr:nth-child(odd) {
    background-color: #F5F5F5;
}

table tr:nth-child(even) {
    background-color: #fff;
}

em {
    color: rgb(164, 34, 16);
    font-weight: 900;
    font-style: normal;
}

strong {
    background-color: rgba(0, 255, 55, 0.33);
    font-weight: normal;
    font-style: normal;
}

.content hr {
    height: 70px;
    margin: 50px 0 10px 0;
    background-image: url(/collection/image/common/hr_icon.png);
    background-position: center center;
    border: 0;
}

footer {
    height: 100px;
}

.atLeft {
    text-align: left;
}

.atRight {
    text-align: right;
}

.atCenter {
    text-align: center;
}

.syntaxhighlighter code, .syntaxhighlighter div {
    word-break: normal;
}

.syntaxhighlighter pre, .syntaxhighlighter code {
    white-space: pre;
}

/*目录插件*/
#k-catelog {
    position: relative;
    overflow: hidden;
}

.k-catelog-list {
    width: 2px;
    height: 500px;
    position: fixed;
    left: 0px;
    top: 120px;
    overflow-y: hidden;
    overflow-x: hidden;
    font-family: 幼圆;
    color: black;
    font-size: 20px;
    font-weight: 900;
    border: 1px solid #e0e0e0;
    background-color: #00ff00a6;
    z-index: 1;
}

.k-catelog-list > ul {
    padding: 0;
    display: none;
}

.k-catelog-list li {
    list-style: none;
}

.k-catelog-link {
    cursor: pointer;
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    transition: background 0.5s;
    -moz-transition: background 0.5s;
    /* Firefox 4 */
    -webkit-transition: background 0.5s;
    /* Safari and Chrome */
    -o-transition: background 0.5s;
    /* Opera */
}

.k-catelog-link-active {
    background: rgba(117, 113, 117, 0.72);
    color: white;
}