*, ::before, ::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: #e5e7eb;
}

::before, ::after {
    --tw-content: '';
}

html, :host {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    -o-tab-size: 4;
    tab-size: 4;
    font-family: ui-sans-serif, system-ui, -apple-system, sans-serif;
    font-feature-settings: normal;
    font-variation-settings: normal;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    line-height: inherit;
}

hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
}

abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
}

h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
}

a {
    color: inherit;
    text-decoration: inherit;
}

b, strong {
    font-weight: bolder;
}

code, kbd, samp, pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-feature-settings: normal;
    font-variation-settings: normal;
    font-size: 1em;
}

small {
    font-size: 80%;
}

sub, sup {
    font-size: 75%;
    line-height: 0;
    position: relative;
    vertical-align: baseline;
}

sub {
    bottom: -.25em;
}

sup {
    top: -.5em;
}

table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
}

button, input, optgroup, select, textarea {
    font-family: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    font-size: 100%;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    color: inherit;
    margin: 0;
    padding: 0;
}

button, select {
    text-transform: none;
}

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
    -webkit-appearance: button;
    background-color: transparent;
    background-image: none;
}

:-moz-focusring {
    outline: auto;
}

:-moz-ui-invalid {
    box-shadow: none;
}

progress {
    vertical-align: baseline;
}

::-webkit-inner-spin-button, ::-webkit-outer-spin-button {
    height: auto;
}

[type='search'] {
    -webkit-appearance: textfield;
    outline-offset: -2px;
}

::-webkit-search-decoration {
    -webkit-appearance: none;
}

::-webkit-file-upload-button {
    -webkit-appearance: button;
    font: inherit;
}

summary {
    display: list-item;
}

blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre {
    margin: 0;
}

fieldset {
    margin: 0;
    padding: 0;
}

legend {
    padding: 0;
}

ol, ul, menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

dialog {
    padding: 0;
}

textarea {
    resize: vertical;
}

input::-moz-placeholder, textarea::-moz-placeholder {
    opacity: 1;
    color: #9ca3af;
}

input::placeholder, textarea::placeholder {
    opacity: 1;
    color: #9ca3af;
}

button, [role='button'] {
    cursor: pointer;
}

:disabled {
    cursor: default;
}

img, svg, video, canvas, audio, iframe, embed, object {
    display: block;
    vertical-align: middle;
}

img, video {
    max-width: 100%;
    height: auto;
}

[hidden] {
    display: none;
}

:root {
    --primary-color: #4f46e5;
}

html {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.yz-standalone {
    font-family: system-ui, -apple-system, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.yz-shell {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    font-family: system-ui, -apple-system, sans-serif;
    color: #1e293b;
}

body.yz-standalone::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.08), transparent 25%), radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.08), transparent 25%);
    z-index: -1;
    pointer-events: none;
    transform: translateZ(0);
}

#nprogress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #ec4899, #f59e0b);
    z-index: 9999;
    width: 0;
    transition: width .2s ease;
    will-change: width;
    pointer-events: none;
}

.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.5);
    border-radius: 0.75rem;
    contain: layout style;
}

html.dark body.yz-standalone {
    background-color: #0a101f;
    color: #dbe4f3;
}

html.dark .yz-shell {
    color: #dbe4f3;
}

html.dark body.yz-standalone::before {
    background: radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.14), transparent 25%), radial-gradient(circle at 85% 30%, rgba(236, 72, 153, 0.1), transparent 25%);
}

html.dark ::-webkit-scrollbar-thumb {
    background: #2b3a58;
}

html.dark ::-webkit-scrollbar-thumb:hover {
    background: #3b4e74;
}

html.dark .glass-nav {
    background: rgba(10, 16, 31, 0.85);
    border: 1px solid rgba(36, 49, 78, 0.6);
}

html.dark .doc-sidebar, html.dark .doc-section, html.dark .doc-toc {
    background: #101a2e;
    border-color: #24314e;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
}

html.dark .doc-sidebar::-webkit-scrollbar-thumb,
html.dark .doc-toc::-webkit-scrollbar-thumb {
    background: #2b3a58;
}

html.dark .nav-search {
    background: rgba(22, 33, 54, .9);
}

html.dark .doc-search:focus-within, html.dark .nav-search:focus-within {
    background: #101a2e;
    border-color: rgba(129, 140, 248, 0.5);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

html.dark .doc-search>i, html.dark .nav-search>i {
    color: #71839d;
}

html.dark .doc-search input, html.dark .nav-search input {
    color: #e6edf9;
}

html.dark .doc-search input::placeholder, html.dark .nav-search input::placeholder {
    color: #71839d;
}

#theme-toggle .theme-option {
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .18s cubic-bezier(.34, 1.56, .64, 1);
}

#theme-toggle .theme-option:active {
    transform: scale(.85);
}

.sidebar-layout {
    display: flex;
    align-items: flex-start;
    flex: 1 1 auto;
    min-height: 0;
    position: relative;
}

.sidebar {
    width: 13.5rem;
    flex-shrink: 0;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(226, 232, 240, .8);
    border-radius: 0 0.75rem 0.75rem 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    contain: layout style;
    transition: transform .3s cubic-bezier(.22, 1, .36, 1);
    z-index: 35;
}

.sidebar .sidebar-inner {
    padding: .5rem .625rem 1.5rem;
    transition: opacity .2s ease;
    white-space: nowrap;
}

.sidebar-section-title {
    font-size: calc(.7rem + 1px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #9ca3af;
    padding: .875rem .625rem .25rem;
}

.sidebar-section-title:first-child {
    padding-top: .25rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: .5rem .625rem;
    border-radius: .5rem;
    font-size: calc(.875rem + 1px);
    color: #4b5563;
    transition: background-color .2s, color .2s, transform .18s cubic-bezier(.34, 1.56, .64, 1);
    text-decoration: none;
    line-height: 1.4;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

.sidebar-link + .sidebar-link {
    margin-top: 2px;
}

.sidebar-link:active {
    transform: scale(.97);
}

.sidebar-link:hover {
    background: #f3f4f6;
    color: #111827;
}

.sidebar-link.active {
    background: #eef2ff;
    color: #4f46e5;
    font-weight: 500;
}

.sidebar-link i {
    margin-right: .625rem;
    font-size: calc(1.125rem + 1px);
    flex-shrink: 0;
    width: 1.25rem;
    text-align: center;
}

.sidebar-link-locked {
    opacity: .5;
    cursor: not-allowed;
}

.sidebar-link-locked:hover {
    background: transparent;
    color: #4b5563;
}

.sidebar-link-locked .sidebar-lock-icon {
    margin-left: auto;
    margin-right: 0;
    width: auto;
    font-size: calc(.9rem + 1px);
}

.sidebar-link-logout {
    width: 100%;
    border: none;
    background: transparent;
    font-family: inherit;
    text-align: left;
}

.sidebar-link-logout:hover {
    background: #fef2f2;
    color: #dc2626;
}

.sidebar-link-logout:disabled {
    opacity: .6;
    cursor: not-allowed;
}

.sidebar-auth-mobile {
    display: none;
}

.sidebar-link-login {
    color: #4f46e5;
    font-weight: 500;
}

.sidebar-link-login:hover {
    background: #eef2ff;
    color: #4338ca;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .32);
    z-index: 55;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .3s ease, visibility .3s ease;
}

.sidebar-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: .5rem;
    color: #4b5563;
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: background-color .2s, color .2s, transform .2s cubic-bezier(.34, 1.56, .64, 1);
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
}

.sidebar-toggle-btn:active {
    transform: scale(.9);
}

.sidebar-toggle-btn:hover {
    background: #f3f4f6;
    color: #111827;
}

.sidebar-toggle-btn .icon-fold-d,
.sidebar-toggle-btn .icon-unfold-d,
.sidebar-toggle-btn .icon-fold-m,
.sidebar-toggle-btn .icon-unfold-m {
    display: none;
}

html.dark .sidebar {
    background: rgba(17, 24, 39, .92);
    border-color: rgba(55, 65, 81, .8);
}

html.dark .sidebar-section-title {
    color: #6b7280;
}

html.dark .sidebar-link {
    color: #9ca3af;
}

html.dark .sidebar-link:hover {
    background: rgba(55, 65, 81, .5);
    color: #f9fafb;
}

html.dark .sidebar-link.active {
    background: rgba(79, 70, 229, .15);
    color: #a5b4fc;
}

html.dark .sidebar-link-locked:hover {
    background: transparent;
    color: #9ca3af;
}

html.dark .sidebar-link-logout:hover {
    background: rgba(239, 68, 68, .12);
    color: #f87171;
}

html.dark .sidebar-link-login {
    color: #a5b4fc;
}

html.dark .sidebar-link-login:hover {
    background: rgba(79, 70, 229, .15);
    color: #c7d2fe;
}

html.dark .sidebar-toggle-btn {
    color: #9ca3af;
}

html.dark .sidebar-toggle-btn:hover {
    background: rgba(55, 65, 81, .5);
    color: #f9fafb;
}

.nav-search {
    position: relative;
    display: none;
    align-items: center;
    width: 14rem;
    height: 2.25rem;
    padding: 0 .625rem;
    margin-right: .25rem;
    background: #f3f4f6;
    border: 1px solid transparent;
    border-radius: .625rem;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
    flex-shrink: 0;
}

.nav-search:focus-within {
    background: #fff;
    border-color: #c7d2fe;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .15);
}

.nav-search>i {
    color: #9ca3af;
    font-size: 1rem;
    margin-right: .5rem;
    flex-shrink: 0;
}

.nav-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: .875rem;
    color: #111827;
    padding: 0;
}

.nav-search input::placeholder {
    color: #9ca3af;
}

.nav-search kbd {
    font-family: inherit;
    font-size: .6875rem;
    color: #6b7280;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .375rem;
    padding: .125rem .375rem;
    line-height: 1.2;
    flex-shrink: 0;
    pointer-events: none;
}

.nav-search-dropdown {
    position: absolute;
    top: calc(100% + .5rem);
    right: 0;
    width: 100%;
    min-width: 0;
    max-height: 20rem;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: .75rem;
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .18), 0 4px 12px rgba(0, 0, 0, .06);
    padding: .375rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-.375rem);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 70;
}

.nav-search-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-search-item {
    display: flex;
    align-items: center;
    padding: .5rem .625rem;
    border-radius: .5rem;
    font-size: .875rem;
    color: #374151;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}

.nav-search-item i {
    margin-right: .625rem;
    color: #6b7280;
    font-size: 1rem;
    width: 1.25rem;
    text-align: center;
    flex-shrink: 0;
}

.nav-search-item:hover, .nav-search-item.active {
    background: #eef2ff;
    color: #4f46e5;
}

.nav-search-item.active i, .nav-search-item:hover i {
    color: #4f46e5;
}

.nav-search-empty {
    padding: .875rem .625rem;
    text-align: center;
    color: #9ca3af;
    font-size: .8125rem;
}

html.dark .nav-search {
    background: rgba(22, 33, 54, .9);
}

html.dark .nav-search kbd {
    background: #101a2e;
    border-color: #24314e;
    color: #8b9bb4;
}

html.dark .nav-search-dropdown {
    background: #101a2e;
    border-color: #24314e;
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .6), 0 4px 12px rgba(0, 0, 0, .4);
}

html.dark .nav-search-item {
    color: #a8b6cc;
}

html.dark .nav-search-item i {
    color: #71839d;
}

html.dark .nav-search-item:hover, html.dark .nav-search-item.active {
    background: rgba(99, 102, 241, .16);
    color: #a5b4fc;
}

html.dark .nav-search-item.active i, html.dark .nav-search-item:hover i {
    color: #a5b4fc;
}

html.dark .nav-search-empty {
    color: #71839d;
}

.sidebar::-webkit-scrollbar,
.nav-search-dropdown::-webkit-scrollbar,
#main-content::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

a,
button,
[role="button"],
label,
summary,
input[type="button"],
input[type="submit"],
.sidebar-link,
.sidebar-toggle-btn {
    -webkit-tap-highlight-color: transparent;
}

button, [role="button"], .sidebar-link, .sidebar-toggle-btn {
    touch-action: manipulation;
}

html body.yz-standalone {
    min-height: 0;
    width: 100%;
}

#main-content {
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

@media (max-width: 639px) {
    .container-padding {
        padding-left: .75rem;
        padding-right: .75rem;
    }

    #site-header {
        margin-left: 18px;
        margin-right: 18px;
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    #site-header {
        margin-left: 26px;
        margin-right: 26px;
    }
}

@media (max-width: 1023px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 14.5rem;
        padding-top: env(safe-area-inset-top, 0px);
        transform: translate3d(-100%, 0, 0);
        will-change: transform;
        z-index: 60;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
        background: #fff;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    html.dark .sidebar {
        background: #111827;
    }

    .yz-shell.sidebar-open .sidebar {
        transform: translate3d(0, 0, 0);
    }

    .yz-shell.sidebar-open #main-content {
        overflow: hidden;
    }

    .yz-shell.sidebar-open .sidebar-backdrop {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .sidebar-section-title.sidebar-auth-mobile {
        display: block;
    }

    .sidebar-link-login.sidebar-auth-mobile {
        display: flex;
    }

    .yz-shell.sidebar-open .sidebar-toggle-btn .icon-fold-m {
        display: block;
    }

    .yz-shell.sidebar-open .sidebar-toggle-btn .icon-unfold-m {
        display: none;
    }

    .sidebar-toggle-btn {
        width: auto;
        height: auto;
        padding: .5rem;
        border-radius: .375rem;
        color: #4b5563;
    }

    .sidebar-toggle-btn i {
        font-size: 1.25rem;
    }

    #header-inner {
        padding-left: 0;
        padding-right: 7px;
    }

    #main-content {
        padding-top: 1rem;
        padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    }

    .yz-shell:not(.sidebar-open) .sidebar-toggle-btn .icon-unfold-m {
        display: block;
    }
}

@media (min-width: 1024px) {
    .sidebar {
        position: static;
        align-self: stretch;
        height: auto;
        margin-right: 0.5rem;
        transition: width .3s cubic-bezier(.22, 1, .36, 1);
    }

    .yz-shell.sidebar-collapsed .sidebar {
        width: 3.5rem;
        overflow: visible;
    }

    .yz-shell.sidebar-collapsed .sidebar .sidebar-inner {
        opacity: 1;
        pointer-events: auto;
        padding: .5rem .5rem 1.5rem;
    }

    .yz-shell.sidebar-collapsed .sidebar-section-title {
        display: none;
    }

    .yz-shell.sidebar-collapsed .sidebar-link {
        justify-content: center;
        padding: .5rem;
    }

    .yz-shell.sidebar-collapsed .sidebar-link i {
        margin-right: 0;
    }

    .yz-shell.sidebar-collapsed .sidebar-link span {
        display: none;
    }

    .yz-shell.sidebar-collapsed .sidebar-link .sidebar-lock-icon {
        display: none;
    }

    .yz-shell.sidebar-collapsed .sidebar-link::after {
        content: attr(data-tip);
        position: absolute;
        left: calc(100% + .5rem);
        top: 50%;
        transform: translateY(-50%);
        background: #1f2937;
        color: #fff;
        font-size: calc(.75rem + 1px);
        line-height: 1;
        padding: .375rem .5rem;
        border-radius: .375rem;
        white-space: nowrap;
        opacity: 0;
        pointer-events: none;
        transition: opacity .15s ease;
        z-index: 50;
        box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
    }

    .yz-shell.sidebar-collapsed .sidebar-link:hover::after,
.yz-shell.sidebar-collapsed .sidebar-link:focus-visible::after {
        opacity: 1;
    }

    html.dark .yz-shell.sidebar-collapsed .sidebar-link::after {
        background: #f9fafb;
        color: #111827;
    }

    .sidebar-toggle-btn {
        width: 3.5rem;
    }

    .yz-shell:not(.sidebar-collapsed) .sidebar-toggle-btn .icon-fold-d {
        display: block;
    }

    .yz-shell.sidebar-collapsed .sidebar-toggle-btn .icon-unfold-d {
        display: block;
    }

    .nav-search {
        display: flex;
    }
}

@media (min-width: 1280px) {
    .nav-search {
        width: 16rem;
    }
}

html {
    cursor: url('/js/index.ico'), auto;
}

a, button, input, select, textarea {
    cursor: url('/js/index.ico'), pointer;
}

[v-cloak] {
    display: none !important;
}

::view-transition-old(root), ::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}

::view-transition-old(root) {
    z-index: 1;
}

::view-transition-new(root) {
    z-index: 9999;
    backface-visibility: hidden;
}

html.theme-fade, html.theme-fade *, html.theme-fade *::before, html.theme-fade *::after {
    transition: background-color .56s cubic-bezier(.22, 1, .36, 1), background-image .56s cubic-bezier(.22, 1, .36, 1), border-color .56s cubic-bezier(.22, 1, .36, 1), color .56s cubic-bezier(.22, 1, .36, 1), box-shadow .56s cubic-bezier(.22, 1, .36, 1), fill .56s cubic-bezier(.22, 1, .36, 1), stroke .56s cubic-bezier(.22, 1, .36, 1), outline-color .56s cubic-bezier(.22, 1, .36, 1) !important;
}

@keyframes theme-icon-in {
    0% {
        opacity: 0;
        transform: rotate(-150deg) scale(.3);
    }

    55% {
        opacity: 1;
        transform: rotate(12deg) scale(1.15);
    }

    100% {
        opacity: 1;
        transform: rotate(0) scale(1);
    }
}

.theme-icon-in {
    animation: theme-icon-in .6s cubic-bezier(.34, 1.4, .64, 1);
}

@media (prefers-reduced-motion: reduce) {
    html.theme-fade, html.theme-fade *, html.theme-fade *::before, html.theme-fade *::after {
        transition: none !important;
    }

    .theme-icon-in {
        animation: none;
    }
}
