/* global ==================================================== */

body,html {
    height: 100%
}

body {
    background: var(--body-bg-color);
    box-sizing: border-box;
    color: var(--text-color);
    font-family: Noto Serif SC,'PingFang SC','Microsoft YaHei',sans-serif;
    font-size: 1em;
    line-height: 2;
    min-height: 100%;
    position: relative;
    transition: padding .2s ease-in-out;
}


body:before {
    content: ' ';
    position: fixed;
    z-index: -1;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url("images/background.png") center 0 no-repeat;
    background-size: cover
}

.main {
    align-items: stretch;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    width: 900px
}

@media (min-width: 1200px) {
    .main {
        width:900px
    }
}

@media (min-width: 1600px) {
    .main {
        width:1350px
    }
}

@media (max-width: 991px) {
    .main {
        display:block;
        width: auto
    }
}

.main-inner {
    border-radius: initial;
    box-sizing: border-box;
    width: calc(100% - 292px)
}

@media (max-width: 991px) {
    .main-inner {
        border-radius:initial;
        width: 100%
    }
}

.headband {
    background: 0 0 !important;
    height: 3px !important;
    padding-bottom: 12px !important;
}

/* header and sidebar ==================================================== */

header.header {
    background: 0 0;
    display: block; 
    unicode-bidi: isolate;
}

.header .header-inner {
    background: rgba(255,255,255,.71)!important;
}

.header .header-inner .menu hr {
    margin: 20px 20px
}

.header .sidebar .sidebar-inner {
    background: rgba(255,255,255,.71)!important
}


.header-inner {
    background: var(--content-bg-color);
    border-radius: initial;
    box-shadow: initial;
    width: 280px;
}

@media (max-width: 991px) {
    .header-inner {
        border-radius:initial;
        width: auto
    }
}

/* tmp */
#header {
    /* margin: 10px !important; */
    margin-top: 0 !important;
    padding: 25px !important;
    text-align: center;
    background-color: black;
}

#header h1 a {
    color: white !important;
}

#header #blogDesc {
    display: none;
}

.navbar .container {
    width: auto;
}

.nav.navbar-nav hr {
    margin: 20px 0px;
}

#search {
    width: 100% !important;
    padding: 0 0 10px 0 !important;
}
#searchInput {
    border: none !important;
    border-radius: 0% !important;
    font-size: 16px !important;
    box-shadow: none !important;
    background-color: #eee !important;
}

#searchInput:focus {
    box-shadow: none !important;
}

.input-group-addon {
    border: none !important;
    font-size: 16px !important;
}
.input-group-addon:hover {
    /*font-size: 18px !important;*/
    color: black !important;
}


/* poster ==================================================== */

.main-inner {
    background: rgba(255,255,255,.004)!important;
    border-radius: initial;
    box-shadow: initial;
    box-sizing: border-box;
    padding: 0;
    height: auto;
}

@media (max-width: 767px) {
    .main-inner {
        width:100%!important;
    }
}

@media (min-width: 768px) and (max-width:991px) {
    .main-inner {
        width:100%!important;
    }
}


.main-inner {
    border-radius: initial;
    box-sizing: border-box;
    width: calc(100% - 292px)
}

@media (max-width: 991px) {
    .main-inner {
        border-radius:initial;
        width: 100%
    }
}


.main-inner .post-block {
    background: rgba(255,255,255,.71)!important;
    margin-bottom: 15px
}

.main-inner .post-block .post-content {
    padding: 40px
}

.main-inner .post-block .post-content .post-body {
    counter-reset: counter_img
}

.main-inner .post-block .post-content .post-body .medium-zoom-image {
    counter-increment: counter_img
}

.main-inner .post-block .post-content .post-body img+figcaption {
    visibility: hidden
}

.main-inner .post-block .post-content .post-body img+figcaption:after {
    display: block;
    visibility: visible;
    content: "图 " counter(counter_h1) "-" counter(counter_img) "　" attr(data-alt)
}

.main-inner .post-block .post-content .post-body .table-container::-webkit-scrollbar {
    display: none
}

.main-inner .post-block .post-content .post-body p {
    text-indent: 2em;
    margin: 0 0 10px!important
}

.main-inner .post-block .post-content .post-footer .post-copyright ul {
    border-left: 3px solid grey;
    background-color: #f9f9f9
}

.main-inner .post-block>.post-body {
    padding: 40px
}

.main-inner .post-block>.post-header {
    padding: 40px;
    margin-bottom: 0
}

.main-inner .post-block:first-of-type {
    padding-top: 0
}


/* common ==================================================== */

:root {
    --body-bg-color: #f5f7f9;
    --content-bg-color: #fff;
    --card-bg-color: #f5f5f5;
    --text-color: #222;
    --blockquote-color: #666;
    --link-color: #555;
    --link-hover-color: #222;
    --brand-color: #fff;
    --brand-hover-color: #fff;
    --table-row-odd-bg-color: #f9f9f9;
    --table-row-hover-bg-color: #f5f5f5;
    --menu-item-bg-color: #f5f5f5;
    --theme-color: #222;
    --btn-default-bg: #fff;
    --btn-default-color: #555;
    --btn-default-border-color: #555;
    --btn-default-hover-bg: #222;
    --btn-default-hover-color: #fff;
    --btn-default-hover-border-color: #222;
    --highlight-background: #fafafa;
    --highlight-foreground: #383a42;
    --highlight-gutter-background: #e6e6e7;
    --highlight-gutter-foreground: #4b4d54;
    color-scheme: light
}

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%
}

*, body {
    margin: 0;
    font-size: 16px;
}

main {
    display: block
}

h1 {
    font-size: 2em;
    margin: .67em 0
}

hr {
    box-sizing: content-box;
    height: 0;
    overflow: visible
}

hr {
    background-image: repeating-linear-gradient(-45deg,#ddd,#ddd 4px,transparent 4px,transparent 8px);
    border: 0;
    height: 3px;
    margin: 40px 0
}

pre {
    font-family: monospace,monospace;
    font-size: 1em
}

a {
    background: 0 0
}

abbr[title] {
    border-bottom: none;
    text-decoration: underline;
    text-decoration: underline dotted
}

b,strong {
    font-weight: bolder
}

code,kbd,samp {
    font-family: monospace,monospace;
    font-size: 1em
}

small {
    font-size: 80%
}

sub,sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline
}

sub {
    bottom: -.25em
}

sup {
    top: -.5em
}

img {
    border-style: none
}

button,input,optgroup,select,textarea {
    font-family: inherit;
    font-size: 100%;
    line-height: 1.15;
    margin: 0
}

button,input {
    overflow: visible
}

button,select {
    text-transform: none
}

[type=button],[type=reset],[type=submit],button {
    -webkit-appearance: button
}

[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner {
    border-style: none;
    padding: 0
}

[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring {
    outline: 1px dotted ButtonText
}
