.vp-doc h3 {
    margin: 0;
}

.vp-doc p {
    margin: 0;
}

.VPBadge {
    display: inline-block;
    margin-left: 13px;
    border: 1px solid transparent;
    border-radius: 5px;
    padding: 0 10px;
    line-height: 15px;
    font-size: 10px;
    font-weight: 500;
    transform: translateY(-2px);
}

.VPSidebar {
    background-color: transparent !important;
}

.VPSidebar .curtain {
    background-color: white !important;
}

.dark .VPSidebar .curtain {
    background-color: hsl(var(--background)) !important;
}

.dark .VPNavBar:not(.home.top) .content-body {
    background-color: hsl(var(--background)) !important;
}

.fill-emerald-500 {
    fill: #10b981;
}

.fill-slate-300 {
    fill: #cbd5e1;
}

.fill-slate-500 {
    fill: #64748b;
}

.fill-red-500 {
    fill: #ef4444;
}

.min-h-32 {
    min-height: 8rem;
}

.h-32 {
    height: 8rem;
}

.bg-blue-200 {
    background-color: #bfdbfe;
}

.bg-blue-300 {
    background-color: #93c5fd;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

.w-20 {
    width: 5rem;
}

.h-20 {
    height: 5rem;
}

.sidebar-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.sidebar-item img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.version-badge {
    position: absolute;
    left: -100px; /* 默认没有图片时的位置 */
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.sidebar-text-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    max-width: 200px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar-text-wrapper::-webkit-scrollbar {
    display: none;
}

/* hover 效果 */
.sidebar-item:hover .version-badge {
    opacity: 1;
}

/* 当有图片时调整位置 */
.sidebar-item img + .sidebar-text-wrapper + .version-badge {
    left: -90px;
}