body {
    font-family: "Microsoft Yahei", Verdana, sans-serif;
    margin: auto;
    padding: 20px;
    max-width: 720px;
    text-align: left;
    background-color: rgb(250, 248, 241);
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.7;
    color: #444;
}

/* custom scrollbar */
::-webkit-scrollbar {
    width: 20px;
}

::-webkit-scrollbar-track {
    background-color: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #d6dee1;
    border-radius: 20px;
    border: 6px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #a8bbbf;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong,
b {
    color: #222;
}

a {
    color: #3273dc;
    cursor: pointer;
    text-decoration: none;
}

a:hover {
    text-decoration: underline; 
}

.title {
    text-decoration: none;
    border: 0;
}

.title h1 {
    font-size: 1.5em;
}

.title span {
    font-weight: 400;
}

.bear::before {
    content: "ᕦʕ •ᴥ•ʔᕤ";
    font-weight: 400;
}

.bear:hover::before {
    content: "ᕙʕ ಠᴥಠʔᕗ";
    font-weight: 400;
}

nav a {
    margin-right: 10px;
    color: #444;
}

textarea,
input:not([type="submit"], [id="searchInput"]) {
    background-color: inherit;
    color: inherit;
    border: 1px dashed;
    padding: 5px;
    font-size: 16px;
}

.full-width textarea,
.full-width input:not([type="submit"], [type="checkbox"], [type="radio"]) {
    width: calc(100% - 15px);
}

.nav-image {
    height: 3.14rem;
    border-radius: 12.5%;
}

textarea:required,
input:required:not([type="submit"]) {
    border: 1px solid;
}

textarea.full-screen {
    position: fixed;
    background-color: white;
    top: -2px;
    bottom: -2px;
    left: 0;
    width: calc(100vw - 30px);
    max-width: 720px;
    border: 10px solid;
    border-width: 10px calc(50vw - 370px);
}

@media only screen and (max-width: 750px) {
    textarea.full-screen {
        border-width: 10px;
    }
}

button.floating {
    position: fixed;
    bottom: 20px;
    right: 25px;
}

button#toggle-full-screen {
    float: right;
}

content {
    line-height: 1.6;
}

table {
    width: 100%;
}

hr {
    border-top: 1px dashed;
}

img {
    max-width: 100%;
    /* Make it center */
    margin: 0 auto 0 auto;
    display: block;
}

code {
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
    font-size: 85%;
    padding: 2px 4px;
    font-weight: 550;
    word-wrap: break-word;
}

pre {
    padding: 5px 8px;
}

pre code {
    padding: 1px 0;
    font-weight: normal;
}

.highlight,
.code {
    padding: 1px 15px;
    color: #c7254e;
    background-color: #f9f2f4;
    border-radius: 3px;
    margin-block-start: 1em;
    margin-block-end: 1em;
    overflow:auto;
}

blockquote {
    border-left: 2px solid #999;
    color: #222;
    padding-left: 20px;
    font-style: italic;
    margin-inline-start: 10px;
    margin-inline-end: 10px;
}

footer {
    padding: 25px 0;
    text-align: left;
}

.helptext {
    color: #777;
    font-size: small;
}

.errorlist {
    color: #eba613;
    font-size: small;
}

#id_favicon {
    width: 20px;
    text-align: center;
}

#date-range,
#initial-values,
#import-contacts {
    display: none;
}

#date-range:target,
#initial-values:target,
#import-contacts:target {
    display: block;
}

/* dashboard post list and analytics */
ul.post-list {
    list-style-type: none;
    padding: unset;
}

ul.post-list li {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px dashed;
}

ul.post-list li span {
    flex: 0 0 130px;
}

ul.post-list li span.number {
    flex: 0 0 50px;
}

ul.post-list li a {
    flex: max-content;
}

ul.post-list li small {
    text-align: right;
    flex: 0 0 115px;
}

/* blog posts */
ul.blog-posts {
    list-style-type: none;
    padding: unset;
}

ul.blog-posts li {
    display: flex;
}

ul.blog-posts li span {
    flex: 0 0 130px;
}

ul.blog-posts li a:visited {
    color: #8b6fcb;
}

/* discovery feed */
ul.discover-posts {
    list-style-type: none;
    padding: unset;
}

ul.discover-posts li {
    display: flex;
    line-height: 1.2;
}

ul.discover-posts li span {
    flex: 0 0 40px;
}

ul.discover-posts li a:visited {
    color: #8b6fcb;
}

ul.discover-posts li div {
    padding-bottom: 8px;
}

ul.discover-posts li small {
    color: #777 !important;
}

ul.discover-posts li small a {
    color: #777 !important;
}

ul.blog-posts {
    padding-bottom: 0.61803rem;
}

ul.blog-posts li {
    padding-top: 0.61803rem;
}

small a {
    padding-right: 0.61803rem;
}

hr {
    border: 1.61803px solid;
}

body:hover {
    border-width: 0;
}


small a {
    padding-right: 0.61803rem;
}

.mini-note {
    font-size: 15px;
    color: rgb(18, 18, 18);
    margin-top: 20px;
}

.mini-note p {
    margin-top: 4px;
    margin-bottom: 4px;
}

.mini-note small {
    color: #333;
}

input#searchInput {
    background: 0 0;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: .55em;
    margin: 0 5px 0;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 8px;
}

.image-caption {
    text-align: center;
    font-size: 14px;
    color: gray;
}

.tag-collection {
    line-height: 2.0;
    display: block;
}

p.publish-date {
    font-size: 15px;
    color: gray;
    margin-top: 5px;
    margin-bottom: 5px;
}

h1.title {
    font-size: 2em;
    margin-bottom: 5px;
}

h3.subtitle {
    font-size: 1.5em;
    font-weight: normal;
    color: #222;
    margin-top: 0;
    margin-bottom: 0;
}

.section-head {
    font-size: 1.6rem;
    margin: 80px 0 20px;
}

.section-head:before {
    content: "";
    display: block;
    width: 45px;
    height: 2px;
    background: rgb(221, 221, 221);
    margin: 15px 0;
}

/** 对于Flash详情页的特殊样式 **/
.paper-section-head-flash_detail {
    margin: 40px 0 20px;
}

/** 前后文章导航 **/

.post-nav span {
    font-size: 14px;
    margin: 0 0 10px;
    color: rgb(153, 153, 153);
}

.post-nav a {
    margin-bottom: 20px;
    display: block;
    color: rgb(18, 18, 18);
}

.post-nav a h4 {
    font-size: 16px;
    font-weight: 400;
    margin: 5px 0;
    color: rgb(18, 18, 18);
}

.highlight {
    margin: auto;
}

footer small a {
    padding-right: 0;
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #01242e;
        color: #ddd;
    }

    nav a {
        color: #ddd;
    }

    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    strong,
    b {
        color: #eee;
    }

    a {
        color: #8cc2dd;
    }

    /* code {
        color: #eee;
        background-color: #777;
    }

    pre code {
        color: rgb(51, 51, 51);
        background-color: transparent;
    } */

    blockquote {
        color: #ccc;
    }

    .helptext {
        color: #aaa;
    }

    h3.subtitle {
        color: #eee;
    }

    .mini-note {
        color: #eee;
    }
    
    .mini-note small {
        color: #eee;
    }

    .post-nav span {
        color: rgb(210, 210, 210);
    }
    
    .post-nav a {
        color: rgb(237, 237, 237);
    }
    
    .post-nav a h4 {
        color: rgb(237, 237, 237);
    }

    input#searchInput {
        color: #ddd;
    }

    img {
        background-color: #ffffff;
    }
}