
/* ------------------ 博客 ------------------ */

/* <!-- 文章列表 --> */
.my-box {
    margin-bottom: 100px;
    margin-top: 1rem;
}

.article-list {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.article-list .article {
    background-color: #ffffff;
    border-radius: 0.75rem;
    transition: box-shadow 0.2s cubic-bezier(.4, 0, .2, 1);
    overflow: hidden;
    padding: 2rem;
    display: block;

    transition-property: all;
    transition-timing-function: cubic-bezier(.4,0,.2,1);
    transition-duration: .3s;

    box-shadow: 0 0 20px -5px rgba(0, 0, 0, 0.1);

}

.article-list .article:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.article-time{
    font-size: .875rem;
    line-height: 1.25rem;
    color: #909090;
    display: inline-block;
    background: #f5f5f5;
    border-radius: 2px;
    padding: 2px 9px;
}

.article-title {
    color: #111827;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 2rem;
    margin-bottom: .75rem;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-content {
    color: #4b5563;
    line-height: 1.625;
    margin: 0;
    height: 50px;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.article-footer {
    display: flex;
    align-items: center;
    color: var(--main-color);
    margin-top: 1.5rem;
}

.article-footer span {
    font-weight: 500;
    font-size: .875rem;
    line-height: 1.25rem;
}

.article-footer svg {
    width: 1rem;
    height: 1rem;
    margin-left: .5rem;
}

.article-top {
    display: inline-block;
    align-items: center;
    color: var(--secondary-color);
}

.article-top:hover {
    color: var(--main-color);
}

.article-top span {
    font-weight: 500;
    font-size: .975rem;
    line-height: 1.25rem;
}

.article-top svg {
    width: 1rem;
    height: 1rem;
}

.col-12{
    padding-left: 0;
    padding-right: 0;
}

.col-lg-6{
    padding-left: 15px;
    padding-right: 15px;
}

.col-md-6 {
    padding-left: 15px;
    padding-right: 15px;
}

/* <!-- 文章详情 --> */
.article-main {
    background-color: #ffffff;
    padding: 0 30px 20px 30px;
    border-radius: 10px;
    margin-top: 2rem;

    border: 1px solid rgb(236, 236, 236);
    /* box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); */
}

.article-main p {
    margin-bottom: 10px;
}

.article-main .article-title{
    font-size: 2.05rem;
    line-height: 2.5rem;
}

#article-content {
    display: block;
    height: auto;
}

#article-content p>code {
    border: 1px solid #ddd;
    background: #f6f6f6;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 14px;
    color: var(--main-color);
}

#article-content img {
    max-width: 100%;
}

/* <!-- 转载协议 --> */
.agreement {
    border-top: 1px solid #f6f6f6;
    margin-top: 3rem;
    padding-top: 1rem;
}

.quote {
    background-color: #f6f6f6;
    padding: 1rem;
}

.quote p:last-child {
    text-align: justify;
}

/* <!-- 页码 --> */
.page-box {
    display: flex;
    align-items: center;
}
.page-info {
    margin: 0 20px;
}
.page-form {
    margin-right: 20px;
}
.page-form input{
    width: 55px !important;
}

@media (max-width: 992px) {
    .page-box {
        justify-content: space-between;
    }
}



/* <!-- 富文本 --> */
pre code.hljs {
    padding: 0.1rem !important;
}
.editormd-html-preview pre.prettyprint {
    padding: 10px;
    border: 1px solid #ddd;
    white-space: pre-wrap;
    word-wrap: break-word;
    background-color: #333333;
}
.editormd-html-preview ol.linenums {
    padding-left: 2em;
    margin-top: 0;
    margin-bottom: 0;
}
.markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6 {
    position: relative;
    margin-top: 1em;
    margin-bottom: 16px;
    font-weight: bold;
    line-height: 1.4;
    font-size: 1.25em;
    color: #333333;
}
.markdown-body > *:first-child {
    margin-top: 0 !important;
}


/* <!-- 加载 --> */        
#loader {
    position: absolute;
    top: calc(50% - 20px);
    left: calc(50% - 20px);
    z-index: 999999;
}

@keyframes loader {
    0% {
        left: -100px
    }

    100% {
        left: 110%;
    }
}

#box {
    width: 50px;
    height: 50px;
    background: #fff;
    animation: animate .5s linear infinite;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 3px;
}

@keyframes animate {
    17% {
        border-bottom-right-radius: 3px;
    }

    25% {
        transform: translateY(9px) rotate(22.5deg);
    }

    50% {
        transform: translateY(18px) scale(1, .9) rotate(45deg);
        border-bottom-right-radius: 40px;
    }

    75% {
        transform: translateY(9px) rotate(67.5deg);
    }

    100% {
        transform: translateY(0) rotate(90deg);
    }
}

#shadow {
    width: 50px;
    height: 5px;
    background: #000;
    opacity: 0.1;
    position: absolute;
    top: 59px;
    left: 0;
    border-radius: 50%;
    animation: shadow .5s linear infinite;
}

@keyframes shadow {
    50% {
        transform: scale(1.2, 1);
    }
}


.prettyprinted {
    position: relative;
}

.btn-copy {
    position: absolute;
    top: 5px;
    right: 5px;
}