pre {
    width: 100%;
    margin: 2em 0em;
}

table {
    margin: 0 auto;
}

hr {
    opacity: 0.2;
}

video {
    width: 100%;
    margin: 0.5em 0em;
    border-radius: 0.2em;

}

audio {
    width: 95%;
    margin: 0.5em 0em;
    border-radius: 0.2em;
}

table td,
table th {
    border: 1px solid gray;
}

img {
    display: block;
    border-radius: 5px;
}

.blog-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center;
    gap: 2em;
    width: 100%;
    margin: 0em auto;
    text-align: left;
    font-size: var(--font-size-tip);
    color: #a1a0a0;
}

.mermaid {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 1.5vw 0vw;
}

.content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0vw;
    min-height: 60vh;
    font-size: var(--font-size);
    padding-bottom: 0%;
    width: 100%;
    margin: 0px auto;
    line-height: 1.7em;
}

.content .mermaid {
    max-width: 100%;
}

.content .footnote {
    width: 100%;
    margin: 3em auto 1em;
    word-break: break-all;
}

.content .footnote::before {
    content: '引用';
    font-weight: bolder;
}

.content center {
    width: 70%;
    margin: 0px auto;
    color: gray;
    text-align: center;
}

.content p {
    width: 100%;
    margin: 1em 0em;
    overflow: hidden;
}

.blog-note {
    position: relative;
    width: 100%;
    margin: 1em auto 0em;
    text-align: right;
    border-radius: 5px;
    border: 1px solid rgba(189, 187, 187, 0.529);
    background-color: inherit;
    color: inherit;
    color: #a1a0a0;
}

.blog-note .blog-note-body {
    line-height: 1.7em !important;
    text-align: left;
    padding: 1em;
    word-break: break-all;
}

.blog-note .blog-note-body .note-text {
    flex: 1;
}

.blog-note .icon {
    position: absolute;
    left: 0em;
    top: -0.5em;
    font-size: var(--font-size);
}

.reply-btn,
.icon-link {
    display: inline-block;
    cursor: pointer;
}

.reply-btn:hover,
.icon-link:hover {
    transform: scale(1.1);
    color: var(--base-color);
}

.blog-note {
    width: 100%;
    text-align: right;
    font-size: var(--font-size);
}

.blog-note .blog.note-body {
    padding: 0.5em;
}

.blog-note .blog.note-text {
    flex: 1;
}

.blog-note .blog.note-head {
    font-weight: bold;
}

.toc {
    margin: 2em;
}

#post-toc+ul {
    margin: 1em 0em;
}

#post-toc+ul>li {
    list-style: none;
}


.footnotes {
    p {
        text-indent: 0em !important;
    }
}

.artalk {
    margin: 1em 0em;
}

.atk-item button {
    background: var(--base-color) !important;
}

.atk-list-no-comment {
    font-size: 1em !important;
}

h1.post-title {
    margin: 0.5em 0em;
    line-height: 1.5em;
    font-size: 1.5em;

}

.back-to-top {
    position: fixed;
    bottom: 1em;
    right: 1em;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--base-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(88, 88, 88, 0.25);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--base-color-hover);
    transform: translateY(-3px);
}

.arrow {
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
}

/* 圆环相关 */
.progress-ring {
    position: absolute;
    transform: rotate(-90deg);
}

.progress-ring__circle-bg {
    stroke: rgba(255, 255, 255, 0.15);
}

.progress-ring__circle {
    stroke: #4facfe;
    /* 你喜欢的进度条颜色 */
    stroke-linecap: round;
    transition: stroke-dashoffset 0.25s ease;
    /* 下面两个属性在 JS 中会动态设置 */
}

/* 很小的屏幕可以适当缩小 */
@media (max-width: 500px) {
    .back-to-top {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .progress-ring {
        width: 50px;
        height: 50px;
    }

    .progress-ring__circle-bg,
    .progress-ring__circle {
        r: 21;
        cx: 25;
        cy: 25;
    }
}