:where([class^="ri-"])::before {
    content: "\f3c2";
}

body {
    font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.theme-switch {
    position: relative;
    width: 60px;
    height: 30px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2b2b2b;
    transition: .4s;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--color-primary);
}

input:checked + .slider:before {
    transform: translateX(30px);
}


.nav-active {
    font-weight: 500;
    color: var(--color-primary);
}

.markdown-body ul li {
    list-style: outside;
}

.markdown-body ol li {
    list-style: decimal;
}
.markdown-body pre {
    padding: 0 !important;
}

.markdown-body a {
    color: var(--color-primary);
}

.markdown-body pre {
    padding: 0!important;
    border-radius: 4px!important;
}
