
.article-header {
    display: flex;
    justify-content: center;
    align-items: center;

    .title {
        font-size: 24px;
        font-weight: 700;
        line-height: 30px;
        margin-bottom: 0;
    }
}

.article-date {
    color: var(--text-color);
    font-size: 14px;
    margin-top: 10px;
    text-align: right;
}

.article-toc {
    border-radius: 4px;
    border: 1px solid var(--border-color);
    padding: 10px;

    .toc-title {
        margin-bottom: 5px;
        font-weight: 500;

        &:hover {
            cursor: pointer;
        }
    }

    #toc-trigger:checked + .toc-content {
        display: block;
    }

    .toc-content {
        display: none;

        span {
            white-space: break-spaces;
            word-break: break-all;
        }

        a {
            &:hover {
                color: var(--theme-color);
                text-decoration: underline;
            }
        }

        .toc-item {
            &:not(:last-child) {
                margin-bottom: 5px;
            }
        }

        ol {
            list-style-type: none;
            padding-inline-start: 10px;
            margin-block-start: 0;
            margin-block-end: 0;
        }
    }
}

/* markdown文章内容部分见 markdown-content.css */