.tlgzs-article-toc {
    --toc-color: var(--b2color, #ff3657);
    --toc-soft: var(--b2lightcolor, rgba(255, 54, 87, .09));
    --toc-bg: rgba(255, 255, 255, .94);
    --toc-bg-solid: #fff;
    --toc-text: #272a33;
    --toc-body: #5f6470;
    --toc-muted: #a0a5af;
    --toc-line: rgba(32, 36, 48, .08);
    --toc-hover: rgba(32, 36, 48, .045);
    --toc-site-bg: #f7f9fa;
    position: fixed;
    z-index: 12;
    top: auto;
    right: 14px;
    bottom: var(--tlgzs-toc-panel-bottom, calc(76px + env(safe-area-inset-bottom, 0px)));
    left: auto;
    display: flex;
    width: min(320px, calc(100vw - 28px));
    max-height: min(68vh, 520px, calc(100vh - var(--tlgzs-toc-panel-bottom, 76px) - 12px));
    margin: 0;
    flex-direction: column;
    overflow: hidden;
    color: var(--toc-body);
    background: var(--toc-bg);
    border: 1px solid var(--toc-line);
    border-radius: 16px;
    box-shadow: 0 20px 55px rgba(28, 32, 44, .14), 0 3px 12px rgba(28, 32, 44, .06);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, 10px, 0) scale(.98);
    transform-origin: right bottom;
    transition: opacity .2s ease, transform .2s cubic-bezier(.2, .8, .2, 1), visibility .2s ease;
    box-sizing: border-box;
    backdrop-filter: blur(16px);
}
.tlgzs-article-toc.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}
.tlgzs-article-toc .tlgzs-article-toc__list {
    min-height: 0;
    flex: 1 1 auto;
    max-height: none;
}
.tlgzs-toc-launcher {
    position: fixed;
    z-index: 13;
    right: 14px;
    bottom: var(--tlgzs-toc-button-bottom, calc(16px + env(safe-area-inset-bottom, 0px)));
    display: flex;
    min-width: 88px;
    width: auto;
    height: 46px;
    padding: 0 15px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #fff;
    background: var(--b2color, #ff3657);
    border: 1px solid transparent;
    border-radius: 23px;
    box-shadow: 0 6px 18px rgba(94, 101, 112, .16), 0 1px 4px rgba(94, 101, 112, .08);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, 8px, 0) scale(.92);
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    backdrop-filter: blur(14px);
}
.tlgzs-toc-launcher.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}
.tlgzs-toc-launcher[aria-expanded="true"] {
    color: #fff;
    background: var(--b2color, #ff3657);
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(94, 101, 112, .16), 0 1px 4px rgba(94, 101, 112, .08);
}
.tlgzs-toc-launcher:hover {
    color: #fff;
    background: var(--b2color, #ff3657);
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(94, 101, 112, .16), 0 1px 4px rgba(94, 101, 112, .08);
    transform: none;
}
.tlgzs-toc-launcher:focus-visible,
.tlgzs-article-toc__toggle:focus-visible,
.tlgzs-article-toc__item a:focus-visible,
.tlgzs-article-toc__special:focus-visible {
    outline: 2px solid var(--b2color, #ff3657);
    outline-offset: 2px;
}
.tlgzs-toc-launcher svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    color: currentColor;
}
.tlgzs-toc-launcher span {
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}
.tlgzs-article-toc.is-desktop-anchor {
    right: auto;
    left: var(--tlgzs-toc-panel-left) !important;
}
.tlgzs-toc-launcher.is-desktop-anchor {
    right: auto;
    left: var(--tlgzs-toc-button-left);
}
.tlgzs-toc-launcher.is-external-hidden {
    display: none;
}
.tlgzs-article-toc.is-external-timeline {
    width: min(304px, calc(100vw - 28px));
    max-height: min(74vh, 650px, calc(100vh - var(--tlgzs-toc-panel-bottom, 50px) - 12px));
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    backdrop-filter: none;
}
.tlgzs-article-toc.is-external-timeline .tlgzs-article-toc__header,
.tlgzs-article-toc.is-external-timeline .tlgzs-article-toc__progress {
    display: none;
}
.tlgzs-article-toc.is-external-timeline .tlgzs-article-toc__list {
    padding: 13px 10px 14px 15px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
}
.tlgzs-article-toc.is-external-timeline .tlgzs-article-toc__specials {
    margin-top: 9px;
    padding: 0;
    background: transparent;
    border: 0;
}
.tlgzs-article-toc.is-external-timeline .tlgzs-article-toc__special {
    min-height: 54px;
    padding: 8px 7px;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
}
.tlgzs-article-toc.is-external-timeline .tlgzs-article-toc__item a {
    min-height: 47px;
    padding: 8px 10px 8px 7px;
    font-size: 14px;
    background: transparent;
}
.tlgzs-article-toc.is-external-timeline .tlgzs-article-toc__item a:hover,
.tlgzs-article-toc.is-external-timeline .tlgzs-article-toc__item a.is-active {
    background: transparent;
}
.tlgzs-article-toc.is-external-timeline .tlgzs-article-toc__item.is-level-3 a {
    font-size: 13.5px;
}
.tlgzs-article-toc.is-external-timeline .tlgzs-article-toc__number {
    font-size: 11px;
}
.tlgzs-article-toc.is-external-timeline .tlgzs-article-toc__marker i,
.tlgzs-article-toc.is-external-timeline .tlgzs-article-toc__item a:hover .tlgzs-article-toc__marker i,
.tlgzs-article-toc.is-external-timeline .tlgzs-article-toc__item a.is-active .tlgzs-article-toc__marker i {
    background: transparent;
    box-shadow: none;
}
.tlgzs-article-toc.is-external-timeline .tlgzs-article-toc__special,
.tlgzs-article-toc.is-external-timeline .tlgzs-article-toc__special:hover,
.tlgzs-article-toc.is-external-timeline .tlgzs-article-toc__special.is-active,
.tlgzs-article-toc.is-external-timeline .tlgzs-article-toc__special-icon {
    background: transparent;
}
.tlgzs-article-toc.is-external-timeline .tlgzs-article-toc__special-icon {
    color: var(--toc-color);
    box-shadow: none;
}
.tlgzs-article-toc.is-external-timeline .tlgzs-article-toc__special-text strong {
    font-size: 13.5px;
}
.tlgzs-article-toc.is-external-timeline .tlgzs-article-toc__special-text small {
    font-size: 11px;
}
.tlgzs-article-toc::before {
    display: none;
}
.tlgzs-article-toc__header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 11px;
    min-height: 68px;
    padding: 15px 14px 13px;
    border-bottom: 1px solid var(--toc-line);
    box-sizing: border-box;
}
.tlgzs-article-toc__icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    color: #fff;
    background: var(--toc-color);
    border: 1px solid transparent;
    border-radius: 10px;
}
.tlgzs-article-toc__icon svg {
    width: 18px;
    height: 18px;
    color: currentColor;
}
.tlgzs-article-toc__title {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 2px;
}
.tlgzs-article-toc__title strong {
    color: var(--toc-text);
    font-size: 14px;
    line-height: 1.35;
    letter-spacing: .01em;
}
.tlgzs-article-toc__title small {
    color: var(--toc-muted);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.3;
}
.tlgzs-article-toc__toggle {
    display: grid;
    width: 30px;
    height: 30px;
    padding: 0;
    flex: 0 0 30px;
    place-items: center;
    color: var(--toc-muted);
    background: var(--toc-hover);
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
    transition: color .16s ease, background-color .16s ease;
}
.tlgzs-article-toc__toggle:hover {
    color: var(--toc-color);
    background: var(--toc-soft);
}
.tlgzs-article-toc__toggle svg {
    width: 15px;
    height: 15px;
}
.tlgzs-article-toc__list {
    position: relative;
    display: block;
    min-height: 0;
    flex: 1 1 auto;
    max-height: calc(100vh - 226px);
    margin: 0;
    padding: 11px 10px 12px 13px;
    overflow-x: hidden;
    overflow-y: auto;
    list-style: none;
    scrollbar-width: thin;
    scrollbar-color: rgba(31, 35, 48, .16) transparent;
}
.tlgzs-article-toc__list:empty {
    display: none;
}
.tlgzs-article-toc__list::-webkit-scrollbar {
    width: 5px;
}
.tlgzs-article-toc__list::-webkit-scrollbar-thumb {
    background: rgba(31, 35, 48, .14);
    border-radius: 5px;
}
.tlgzs-article-toc__item {
    position: relative;
    z-index: 1;
    margin: 0;
    padding: 0;
    list-style: none;
}
.tlgzs-article-toc__item::before {
    display: none !important;
}
.tlgzs-article-toc__item::after {
    position: absolute;
    z-index: 0;
    top: 0;
    bottom: 0;
    left: 14px;
    width: 1px;
    content: "";
    background: var(--toc-line);
    pointer-events: none;
}
.tlgzs-article-toc__item:first-child::after {
    top: 50%;
}
.tlgzs-article-toc__item:last-child::after {
    bottom: 50%;
}
.tlgzs-article-toc__item.is-level-3 {
    display: none;
    margin-left: 0;
}
.tlgzs-article-toc__item.is-level-3.is-section-expanded {
    display: list-item;
}
.tlgzs-article-toc__item a {
    position: relative;
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 8px;
    padding: 7px 9px 7px 7px;
    color: var(--toc-body);
    font-size: 13px;
    line-height: 1.55;
    text-decoration: none;
    border-radius: 9px;
    transition: color .16s ease, background-color .16s ease;
    -webkit-tap-highlight-color: transparent;
}
.tlgzs-article-toc__item a:hover,
.tlgzs-article-toc__item a.is-active {
    color: var(--toc-color);
    background: var(--toc-soft);
}
.tlgzs-article-toc__item a.is-active {
    font-weight: 600;
}
.tlgzs-article-toc__marker {
    position: relative;
    z-index: 2;
    display: grid;
    width: 14px;
    height: 18px;
    flex: 0 0 14px;
    place-items: center;
}
.tlgzs-article-toc__marker i {
    display: block;
    width: 8px;
    height: 8px;
    background: var(--toc-bg-solid);
    border: 2px solid #c9cdd5;
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--toc-bg-solid);
    box-sizing: border-box;
    transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}
.tlgzs-article-toc__item a:hover .tlgzs-article-toc__marker i,
.tlgzs-article-toc__item a.is-active .tlgzs-article-toc__marker i {
    background: var(--toc-color);
    border-color: var(--toc-color);
}
.tlgzs-article-toc__item a.is-active .tlgzs-article-toc__marker i {
    transform: scale(1.22);
}
.tlgzs-article-toc__number {
    flex: 0 0 36px;
    padding-top: 0;
    color: var(--toc-muted);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}
.tlgzs-article-toc__item a.is-active .tlgzs-article-toc__number {
    color: var(--toc-color);
}
.tlgzs-article-toc__text {
    display: -webkit-box;
    min-width: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.tlgzs-article-toc__item.is-level-3 a {
    color: var(--toc-muted);
    font-size: 12.5px;
    transition: none;
}
.tlgzs-article-toc__item.is-level-3 .tlgzs-article-toc__number {
    margin-left: 12px;
}
.tlgzs-article-toc__item.is-level-3 .tlgzs-article-toc__marker i {
    width: 6px;
    height: 6px;
    border-width: 1px;
    transition: none;
}
.tlgzs-article-toc__item.is-level-3 a.is-active .tlgzs-article-toc__marker i {
    transform: none;
}
.tlgzs-article-toc__item.is-level-3 a:hover,
.tlgzs-article-toc__item.is-level-3 a.is-active {
    color: var(--toc-color);
}
.tlgzs-article-toc__specials {
    display: grid;
    flex: 0 0 auto;
    gap: 7px;
    padding: 9px 10px 10px;
    background: var(--toc-bg-solid);
    border-top: 1px solid var(--toc-line);
}
.tlgzs-article-toc__specials:empty {
    display: none;
}
.tlgzs-article-toc__special {
    display: flex;
    min-width: 0;
    min-height: 48px;
    padding: 7px 9px;
    align-items: center;
    gap: 9px;
    color: var(--toc-body);
    text-decoration: none;
    background: var(--toc-site-bg);
    border: 1px solid var(--toc-line);
    border-radius: 11px;
    box-sizing: border-box;
    transition: color .16s ease, border-color .16s ease, background-color .16s ease;
}
.tlgzs-article-toc__special:hover,
.tlgzs-article-toc__special.is-active {
    color: var(--toc-color);
    border-color: var(--toc-color);
    background: var(--toc-soft);
}
.tlgzs-article-toc__special-icon {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    color: #fff;
    background: var(--toc-color);
    border-radius: 9px;
    box-shadow: 0 5px 14px rgba(94, 101, 112, .2);
}
.tlgzs-article-toc__special-icon svg {
    width: 15px;
    height: 15px;
}
.tlgzs-article-toc__special-text {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 1px;
}
.tlgzs-article-toc__special-text strong {
    color: inherit;
    font-size: 12.5px;
    line-height: 1.35;
}
.tlgzs-article-toc__special-text small {
    overflow: hidden;
    color: var(--toc-muted);
    font-size: 10.5px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tlgzs-article-toc__progress {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 13px;
    left: 13px;
    height: 2px;
    overflow: hidden;
    background: transparent;
    border-radius: 0 0 2px 2px;
}
.tlgzs-article-toc__progress i {
    display: block;
    width: 0;
    height: 100%;
    background: var(--toc-color);
    border-radius: inherit;
    transition: width .12s linear;
}
.single-post .entry-content > h2[id],
.single-post .entry-content > h3[id] {
    scroll-margin-top: var(--tlgzs-toc-offset, 92px);
}
.single-post .tlgzs-toc-focus-target:focus {
    outline: none;
}
@media (max-width: 768px) {
    .tlgzs-article-toc {
        right: 12px;
        bottom: var(--tlgzs-toc-panel-bottom, calc(72px + env(safe-area-inset-bottom, 0px)));
        width: min(294px, calc(100vw - 32px));
        max-height: min(64vh, 480px, calc(100vh - var(--tlgzs-toc-panel-bottom, 72px) - 10px));
        border-radius: 14px;
        box-shadow: 0 16px 42px rgba(28, 32, 44, .14), 0 2px 8px rgba(28, 32, 44, .05);
    }
    .tlgzs-toc-launcher {
        right: 12px;
        bottom: var(--tlgzs-toc-button-bottom, calc(14px + env(safe-area-inset-bottom, 0px)));
        min-width: 84px;
        width: auto;
        height: 44px;
        padding: 0 13px;
        border-radius: 22px;
    }
    .tlgzs-article-toc__header {
        min-height: 62px;
        padding: 12px;
    }
    .tlgzs-article-toc__icon {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }
    .tlgzs-article-toc .tlgzs-article-toc__list {
        padding: 9px 8px 11px;
    }
    .tlgzs-article-toc__item a {
        padding: 8px 9px 8px 7px;
        font-size: 13px;
    }
    .tlgzs-article-toc__item a:hover,
    .tlgzs-article-toc__item a.is-active {
        background: transparent;
    }
    .tlgzs-article-toc__item a:hover .tlgzs-article-toc__marker i,
    .tlgzs-article-toc__item a.is-active .tlgzs-article-toc__marker i {
        background: transparent;
        box-shadow: none;
    }
    .tlgzs-article-toc__item.is-level-3 {
        margin-left: 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    .tlgzs-article-toc,
    .tlgzs-toc-launcher,
    .tlgzs-article-toc__toggle svg,
    .tlgzs-article-toc__marker i,
    .tlgzs-article-toc__progress i {
        transition: none;
    }
}
