.smooth-scroll {
    scroll-behavior: smooth;
}
#toctoc {
    width: 100%;
    margin-bottom: 2rem;
    text-align: left;
}
#toctoc #toctoc-head {
    padding: 0.8rem 1rem;
    display: flex;
    justify-content: space-between;
}
#toctoc #toctoc-head a:hover {
    opacity: 0.9;
}
#toctoc #toctoc-body {
    padding: 0.5rem 1rem;
    font-size: 1rem;
}
#toctoc #toctoc-body .link {
    margin: 0.2rem 0;
}
#toctoc #toctoc-body a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
#toctoc #toctoc-body .link-h3 {
    padding-left: 1rem;
}
#toctoc #toctoc-body .link-h4 {
    padding-left: 2rem;
}
#toctoc #toctoc-body .link-h5 {
    padding-left: 3rem;
}
#toctoc #toctoc-body .link-h6 {
    padding-left: 4rem;
}
#toctoc a {
    text-decoration: none;
}
#toctoc {
    margin-top: 16px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 944px;
    border: 1px solid rgba(105, 177, 255, 0.35);
    border-radius: 12px;
    background: #1f2527;
    overflow: hidden;
}

#toctoc #toctoc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: #2d3f58 !important;
    color: #fff !important;
}

#toctoc #toctoc-head .toc-header {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

#toctoc #toctoc-head .toc-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background .2s ease, border-color .2s ease;
}

#toctoc #toctoc-head .toc-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.65);
}

#toctoc #toctoc-head .toc-toggle label {
    margin: 0;
    cursor: pointer;
}

#toctoc #toctoc-body {
    padding: 10px 12px;
    background: #1f2527;
    border-top: 1px solid rgba(105, 177, 255, 0.2);
}

#toctoc #toctoc-body a {
    text-decoration: none;
}

#toctoc #toctoc-body .link {
    margin: 0 0 8px;
    color: #d2d9e5;
    line-height: 1.5;
    transition: color .2s ease;
}

#toctoc #toctoc-body .link:hover {
    color: #69b1ff;
}

#toctoc #toctoc-body .link-h2 {
    font-size: 15px;
    font-weight: 600;
}

#toctoc #toctoc-body .link-h3 {
    font-size: 14px;
    padding-left: 12px;
}

#toctoc #toctoc-body .link-h4 {
    font-size: 13px;
    padding-left: 24px;
    opacity: 0.95;
}
