﻿:root {
    --white: #FFF;
    --gray: #ABB8C3;
    --gray-dark: #343A40;
    --black: #000;
    --primary: #374AC8;
    --secondary: #FFC3CF;
    --tertiary: #FFF3C3;
    --quaternary: #D5C3FF;
    --quinary: #C3FFF3;
    --success: #00D084;
    --info: #F78DA7;
    --warning: #FF6900;
    --danger: #CF2E2E;
    --light: #FBF4EF;
    --dark: #111;
    --font-family-sans-serif: '有爱魔兽黑体 CN', 'HarmonyOS Sans SC', Noto Sans CJK SC, Sourse Han Sans CN, '思源黑体 CN', '思源黑体', Sarasa UI SC, Sarasa Gothic SC, Microsoft YaHei, WenQuanYi Micro Hei, sans-serif, system-ui;
    --font-family-monospace: Iosevka, Sarasa Mono SC, Sarasa Fixed SC, Sarasa Term SC, '等距更纱黑体 SC', '等距更纱黑体 T SC', '思源等宽', Source Han Mono, Source Code Pro, Inconsolata, Consolas, monospace;

    --duotone-bg: #24242e;
    --duotone-uno-1: #ebebff;
    --duotone-uno-2: #9d9dc8;
    --duotone-uno-3: #767693;
    --duotone-uno-4: #595969;
    --duotone-uno-5: #42424d;
    --duotone-duo-1: #fe8c52;
    --duotone-duo-2: #dd672c;
    --duotone-duo-3: #6a574d;
}

::selection {
    color: var(--white);
    background-color: var(--primary);
}

::-moz-selection {
    color: var(--white);
    background-color: var(--primary);
}

body {
    background: var(--light);
    font-family: var(--font-family-sans-serif);
}

h1,
h2,
h3,
a {
    color: var(--primary);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: .6em 0 .2em;
    font-weight: initial;
}

a:hover,
a:focus {
    color: var(--primary);
    opacity: .8;
}

blockquote {
    margin: 0;
    padding: 0 0 0 1em;
    border-left: 4px solid var(--secondary);
    font-style: initial;
    font-family: unset;
}

ul,
ol {
    padding: 0 0 0 2em;
}

.pagination a:hover,
.pagination a:focus {
    background: var(--primary);
    color: var(--light);
}

.navbar-brand {
    background: var(--primary);
    color: var(--light);
    padding: .3125rem 1rem;
}

a.navbar-brand:hover,
a.navbar-brand:focus {
    color: var(--light) !important;
}

.posttitle,
.sitetag {
    color: var(--primary);
    font-weight: lighter;
}

.entry-header,
.reactions-title {
    text-align: center;
}

.blog-grid-item .card {
    border-radius: .5em;
}

.blog-grid-item .card-title a {
    background-image: linear-gradient(180deg, transparent 89%, var(--quaternary) 0);
}

.blog-grid-item .card-footer {
    background-color: transparent;
    opacity: .7;
}

.blog-grid-item .post-date {
    margin: 0;
}

.blog-grid-item .post-readtime {
    float: left;
}

#table_of_contents {
    max-height: 75vh;
    overflow: auto;
}

#table_of_contents,
#table_of_contents ol {
    padding: 0;
}

#table_of_contents ol ol {
    padding-left: 1em
}

#table_of_contents>ol,
#table_of_contents>ol ol {
    counter-reset: item;
    list-style: none;
}

#table_of_contents>ol li a::before,
#table_of_contents>ol li ol li a::before {
    content: counters(item, ".") ". ";
    display: inline-block;
    counter-increment: item;
    margin-right: .2em;
}

.article-post>p:not([style]) {
    text-indent: 2em;
}

.blog-grid-item .card-text,
.article-post {
    word-break: break-all;
}

.firstpage .blog-grid-item:nth-child(1) .card {
    background: linear-gradient(45deg, var(--secondary) -50%, var(--quaternary), var(--quinary) 150%);
}

.firstpage .blog-grid-item:nth-child(1) .card .card-title a.text-dark {
    background-image: linear-gradient(180deg, transparent 89%, var(--info) 0);
}

.firstpage .blog-grid-item:nth-child(1) .card a {
    color: var(--light);
}

#menu {
    overflow-y: auto;
}

#menu:before,
#menu:after {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    content: '';
}

#menu:before {
    background: var(--tertiary);
    transition: all .5s ease-in-out;
}

#menu:after {
    background: var(--secondary);
    transition: all .4s ease-in-out;
}

#menu.active:before,
#menu.active:after {
    width: 0;
}

#menu::-webkit-scrollbar {
    width: 2px;
}

#menu::-webkit-scrollbar-track {
    background: var(--tertiary);
}

#menu::-webkit-scrollbar-thumb {
    background: var(--secondary);
}

#menu aside ul,
#menu aside ol {
    float: initial;
    width: initial;
    padding: unset;
}

#menu aside>.plugin {
    width: 100%;
    padding: 40px 30px 40px 100px;
}

#menu h3:before,
#menu h2:before {
    position: absolute;
    left: -1.5em;
    line-height: 1;
    content: '—';
    opacity: .5;
}

#menu h3,
#menu h2 {
    position: relative;
}

@media (max-width:600px) {
    #menu aside>.plugin {
        padding: 40px 30px;
    }
}

#menu>ul {
    float: initial;
    border-bottom: 1px dotted var(--gray);
}

.entry-featured-image>img {
    padding: .5em;
    background: var(--white);
    border-radius: .25em;
    box-shadow: 0 0 .1em rgba(0, 0, 0, .5), 0 .2em .3em rgba(0, 0, 0, .15), 0 .4em .5em rgba(0, 0, 0, .13), 0 .6em .7em rgba(0, 0, 0, .08), 0 .8em .9em rgba(0, 0, 0, .05);
}

.post-meta {
    font-size: .9em;
    opacity: .7;
    letter-spacing: 1px;
}

.dot:after {
    margin: 0 .25em;
    content: '·';
}

.nav-icon:not(.active) {
    background: var(--white);
}

.blackover {
    opacity: 0;
    transition: all .3s;
}

.blackover.active {
    background: rgba(251, 244, 239, .75);
    backdrop-filter: blur(4px);
    opacity: 1;
}

details {
    padding: .6rem 1rem;
    border: 1.5px solid var(--info);
    border-radius: 4px;
}

summary {
    cursor: pointer;
    font-weight: bold;
}

details[open] {
    padding-bottom: .75rem;
}

details[open] summary {
    margin-bottom: 6px;
}

details[open]>*:last-child {
    margin-bottom: 0;
}

pre,
code {
    font-family: var(--font-family-monospace);
}

.article-post pre.prettyprinted,
.article-post pre {
    background-color: var(--duotone-bg);
    padding: .5em 1em;
    border-radius: .5em
}

/* background */

.article-post pre.prettyprinted,
.article-post pre,
.article-post pre .pln {
    color: var(--duotone-uno-1);
}

/* plaintext */

.article-post pre .str {
    color: var(--duotone-uno-2);
}

/* string */
.article-post pre .kwd {
    color: var(--duotone-duo-1);
}

/* keyword */
.article-post pre .com {
    color: var(--duotone-uno-5);
}

/* comment */
.article-post pre .typ {
    color: var(--duotone-duo-2);
}

/* type */
.article-post pre .dec {
    color: var(--duotone-uno-2);
}

/* decimal */
.article-post pre .lit {
    color: var(--duotone-uno-3);
}

/* literal */
.article-post pre .pun {
    color: var(--duotone-uno-3);
}

/* punctuation */
.article-post pre .tag {
    color: var(--duotone-uno-3);
}

/* html/xml tag */
.article-post pre .atn {
    color: var(--duotone-duo-1);
}

/* html/xml attribute name */
.article-post pre .atv {
    color: var(--duotone-uno-2);
}

/* html/xml attribute value */