.page-article {
    padding: 50px 0;

    h1 {
        font-size: 32px;
    }

    .ant-affix .ant-anchor {
        margin-top: 50px;
    }

    .ant-anchor-link-title {
        white-space: normal;
    }

    // 不支持 h1 和 h6 锚点
    .anchor-h2 {
        padding-left: 16px;
    }

    .anchor-h3 {
        padding-left: 26px;
    }

    .anchor-h4 {
        padding-left: 36px;
    }

    .anchor-h5 {
        padding-left: 46px;
    }

    .markdown {
        line-height: 2;
        font-size: 16px;
        background: white;
        font-family: Source Sans Pro, Helvetica Neue, sans-serif;

        &-custom-block {
            padding: 16px 24px;
            border-left-width: 6px;
            border-left-style: solid;
            margin: 16px 0;
            border-top-left-radius: 5px;
            border-bottom-left-radius: 5px;

            &--tip {
                background-color: #e6f7ff; // level-1
                border-color: #69c0ff; // level-4
                color: #40a9ff; // level-5
            }

            &--warning {
                background-color: #fff7e6;
                border-color: #ffc069;
                color: #ffa940;
            }

            &--error {
                background-color: #fff1f0;
                border-color: #ff7875;
                color: #ff4d4f;
            }

            p:last-child {
                margin-bottom: 0;
            }

            &-title {
                font-weight: bolder;
                margin-bottom: 10px;

                &--tip {
                    color: #1890ff;
                }

                &--warning {
                    color: #fa8c16;
                }

                &--error {
                    color: #f5222d;
                }
            }
        }

        code {
            padding: 2px 4px;
            font-size: 0.9em;
            color: #f5222d;
            border-radius: 4px;
        }

        pre.hljs {
            background: #f8fafc;
            border-radius: 10px;
            padding: 12px 24px;
            font-size: 14px;

            code {
                padding: 0;
                font-size: 1em;
                color: rgba(0, 0, 0, 0.6);
                background-color: transparent;
                border-radius: 0;
            }
        }

        h1,
        h2,
        h3,
        h4,
        h5,
        h6 {
            a {
                color: rgba(0, 0, 0, 0.85);
            }

            &:hover {
                a {
                    color: #40a9ff;
                }
            }
        }

        h1 {
            font-size: 2em;
        }

        h2 {
            font-size: 1.6em;
        }

        h3 {
            font-size: 1.4em;
        }

        h4 {
            font-size: 1.2em;
        }

        h5 {
            font-size: 1.1em;
        }

        h6 {
            font-size: 1em;
        }

        sup {
            padding: 0 3px;
            a {
                font-size: 12px;
                font-weight: bold;
                font-style: italic;
            }
        }

        ul,
        ol {
            padding-left: 30px;

            li {
                p {
                    margin-bottom: 0;
                }
            }
        }

        // li {
        //     display: flex;
        //     align-items: center;
        // }

        input[type="checkbox"] {
            margin-right: 8px;
            height: 14px;
            width: 14px;
            cursor: pointer;
        }

        blockquote {
            display: block;
            position: relative;
            border-radius: 2px;
            margin: 24px 0;
            padding: 12px 24px;
            background-color: #f3f5f7;
            color: #8c8c8c;
            font-weight: 500;
            font-style: italic;

            p {
                margin-bottom: 0;
            }
        }

        img {
            display: block;
            margin: 25px auto;
            max-width: 100%;
            height: auto;
            border: 0;
            border-radius: 5px;
        }

        table {
            border-collapse: collapse;
            margin: 16px 0;
            display: block;
            overflow-x: auto;
            box-sizing: border-box;
            border-spacing: 2px;
            border-color: grey;

            thead {
                display: table-header-group;
                vertical-align: middle;
                border-color: inherit;
                // background-color: #f8fafc;
                background-color: #f5f5f5;
            }

            tbody {
                tr:hover {
                    background-color: #f8fafc;
                }
            }

            tr {
                border-top: 1px solid #dfe2e5;
            }

            td,
            th {
                border: 1px solid #dfe2e5;
                padding: 0.6em 1em;
            }
        }

        hr.footnotes-sep {
            margin: 48px 0 36px;
            border-color: #f0f0f0;
            position: relative;
            z-index: 0;

            &::before {
                content: "本文脚注";
                position: absolute;
                top: 0;
                left: 16px;
                display: inline-block;
                transform: translateY(-50%);
                z-index: 1;
                padding: 0 16px;
                background: white;
                color: rgba(0, 0, 0, 0.85);
                font-weight: 500;
                font-size: 1.1em;
                font-style: italic;
            }
        }

        section.footnotes {
            font-weight: 500;
            color: #595959;
            font-style: italic;
        }
    }
}
