.post-outline {
    position: fixed;
    top: 96px;
    left: max(16px, calc((100vw - 1160px) / 2 - 220px));
    width: 200px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: 12px 0;
    font-size: 13px;
    line-height: 1.5;
    color: #666;
    z-index: 20;
    scrollbar-width: thin;
}

.post-outline-title {
    margin: 0 0 10px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #999;
}

.post-outline-list,
.post-outline-root,
.post-outline-children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.post-outline-item {
    margin: 0;
}

.post-outline-item a {
    display: block;
    padding: 4px 12px;
    border-left: 2px solid transparent;
    color: #777;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

.post-outline-item a:hover,
.post-outline-item a.active {
    color: #3354AA;
    border-left-color: #3354AA;
    background: rgba(51, 84, 170, 0.06);
}

.post-outline-level-2 > a {
    font-weight: 600;
}

.post-outline-children .post-outline-item a {
    padding-left: 22px;
    font-size: 12px;
}

.post-outline-children .post-outline-children .post-outline-item a {
    padding-left: 32px;
}

.post-outline-children .post-outline-children .post-outline-children .post-outline-item a {
    padding-left: 42px;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    scroll-margin-top: 88px;
}

@media (max-width: 1400px) {
    .post-outline {
        display: none;
    }
}
