:root {
    /* 颜色 */
    --main-color: #CAD19E;
    --main-light-color: #E0E4D1;
    --secondary-color: #DA958E;
    --secondary-light-color: #FFF7F0;
    --secondary-color-opacity: rgba(229, 216, 198, .2);
    --accent-color: #C0C0C0;
    --text-color: #535331;
    --background-color: #FBF8EF;
    --line-color: #fadfdc;
    --border-color: #535331;

    --purple-color: #B58EA3;
    --light-purple-color: #ede5e3;
    --pink-color: #FBABB6;
    --yellow-color: #F6BD49;
    --blue-color: #8F98A1;

    /* blog */
    --blog-info-text-color: #525f7f;
    --blog-tag-bg-color: #E2BCB7;
    --blog-quote-text-color: #666;
    --blog-quote-bg-color: rgba(229, 216, 198, .2);

    --collapsible-summary-color: rgba(229, 216, 198, .2);
    --collapsible-detail-color: #f8f8f8;

    /* 边框 */
    --border-style: 1px solid var(--border-color);
    --border-hover-style: 1px solid var(--secondary-color);
    --shadow-border: 0 8px 16px -4px #2c2d300c;

    /* markdown */
    --markdown-text-color: #9a7d66;
    --markdown-title-color: #884610;
    --pre-background-color: #f8f8f8;
    --accent-color-darker: #884610;
    --accent-color: #e96900;

    --card-padding: 0px;
    --sys-font-family: LXGW;
}

.theme-font {
    font-family: mincho;
    color: var(--text-color);
}

.formal-font {
    font-family: LXGW;
}

/* 内容样式配置选项 */
/* 位置 */
.row-center {
    display: flex;
    justify-content: center;
}

.row-right {
    display: flex;
    justify-content: flex-end;
}

.row-left {
    display: flex;
    justify-content: flex-start;
}

.row-space-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 文本样式配置选项 */
/* 位置 */
.text-center {
    text-align: center;
}

/* 颜色 */
.text-black {
    color: rgba(0, 0, 0, 0.61);
}

.text-theme {
    color: var(--main-color);

}

/* 卡片 */
.card {
    border-radius: 10px;
    box-shadow: 0 10px 35px 2px rgba(229, 216, 198, 0.15),
        0 5px 15px rgba(0, 0, 0, .07),
        0 2px 5px -5px rgba(0, 0, 0, .1);
}

/* 头像 */
.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: white 2px solid;
    margin: 10px;

    img {
        width: 100%;
        height: 100%;
        border-radius: 50%;
        object-fit: cover;
    }
}

/* 全局样式 */
.container {
    margin: 0 auto;
    width: 100vw;
    height: 100vh;
    background: var(--background-color);
    background-image: linear-gradient(var(--line-color) 1px, transparent 0px),
        linear-gradient(90deg, var(--line-color) 1px, transparent 0px);
    background-size: 20px 20px;
    position: relative;
    overflow: hidden;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: var(--main-color);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

a {
    text-decoration: none;
    color: inherit;
}

hr {
    margin: 10px 0 15px;
    border: 0;
    border-top: 1px solid #ccc;
}

/* markdown */
h1 {
    margin: 48px 0 22px -5px;
    font-size: 2.0rem;
    font-weight: bold;
    line-height: 2.0rem;
    text-align: center;
}

h2 {
    margin: 42px 0 18px -5px;
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1.8rem;
}

h3 {
    margin: 38px 0 15px -4px;
    font-size: 1.6rem;
    font-weight: bold;
    line-height: 1.7rem;
}

h4 {
    margin: 32px 0 12px -4px;
    font-size: 1.45rem;
    font-weight: bold;
    line-height: 1.45rem;
}

h5 {
    display: inline-block;
    float: inline-start;
    width: auto;
    font-weight: 100;
    font-size: 1rem;
    line-height: 1.1rem;
    padding: 15px 10px;
    color: var(--text-color);
    border-left: 3px solid var(--main-color);
    background-color: white;
    margin-bottom: 10px;
}

h6 {
    display: inline-block;
    float: inline-end;
    width: auto;
    font-weight: 100;
    font-size: 1rem;
    line-height: 1.1rem;
    padding: 15px 10px;
    color: var(--text-color);
    border-right: 3px solid var(--main-color);
    background-color: var(--main-light-color);
    margin-bottom: 10px;
    margin-right: 10px;
}

p {
    font-size: 1rem;
    line-height: 1.5rem;
    margin: 10px 6px;
}

hr {
    margin: 10px 0 15px;
    border: 0;
    border-top: 1px solid #ccc;
}

strong {
    color: var(--light-color);
}

blockquote {
    margin: 10px 15px;
    padding: 10px 10px;
    border-left: 3px solid var(--secondary-color);
    background-color: var(--blog-quote-bg-color);
}

li>a {
    color: var(--secondary-color);
}

/* 代码块*/
pre {
    padding: 1rem 1rem 1rem 1rem;
    border-radius: 0.35rem;
    tab-size: 4;
}

.code-area::after {
    content: " ";
    position: absolute;
    border-radius: 50%;
    background: #ff5f56;
    width: 12px;
    height: 12px;
    top: 0;
    left: 12px;
    margin-top: 12px;
    -webkit-box-shadow: 20px 0 #ffbd2e, 40px 0 #27c93f;
    box-shadow: 20px 0 #ffbd2e, 40px 0 #27c93f;
}

/* 行内代码 */
code {
    padding: 1px 5px;
    top: 13px !important;
    font-family: LXGW;
    color: #e96900;
    background-color: #f8f8f8;
    border-radius: 2px;
}

.code_copy {
    position: absolute;
    top: 0.7rem;
    right: 25px;
    z-index: 1;
    filter: invert(50%);
    cursor: pointer;
}

.codecopy_notice {
    position: absolute;
    top: 0.7rem;
    right: 6px;
    z-index: 1;
    filter: invert(50%);
    opacity: 0;
}

.code_lang {
    position: absolute;
    top: 1.2rem;
    right: 46px;
    line-height: 0;
    font-weight: bold;
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    z-index: 1;
    filter: invert(50%);
    cursor: pointer;
}

.code-expand {
    position: absolute;
    top: 4px;
    right: 0;
    filter: invert(50%);
    padding: 7px;
    z-index: 999 !important;
    cursor: pointer;
    transition: all .3s;
    transform: rotate(0deg);
}

.code-closed .code-expand {
    transform: rotate(-180deg) !important;
    transition: all .3s;
}

.code-closed pre::before {
    height: 0;
}



/* 回到顶部 */
.back-to-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    display: none;
    width: 40px;
    height: 40px;
    background-color: var(--main-color);
    color: var(--background-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--shadow-border);
    transition: opacity 0.3s;
}

.back-to-top:hover {
    background-color: var(--blog-tag-bg-color);

}