/* 侧边栏滚动与高度适配 */
.docs-sidebar {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    scrollbar-width: thin;
}
.docs-sidebar .nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    border-radius: 0.5rem;
    margin-bottom: 0.125rem;
    color: var(--bs-body-color);
    transition: all 0.2s;
}
.docs-sidebar .nav-link:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
}
.docs-sidebar .nav-link.active {
    background-color: var(--bs-primary);
    color: white;
}
.docs-sidebar .nav-group-header {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--bs-secondary-color);
    padding: 0.75rem 0.75rem 0.25rem 0.75rem;
    margin-top: 0.5rem;
}
.docs-sidebar .nav-group-header:first-of-type {
    margin-top: 0;
}
/* 右侧内容区域 */
.docs-content {
    scroll-margin-top: 1rem;
}
.tab-pane {
    animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}


body {
    /* background-color: #f8f9fc; */
    padding: 0rem 0rem;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
}
.api-card {
    max-width: 1400px;
    margin: 0 auto;
    /* background: white; */
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    padding: 1.8rem 2rem 2.5rem 2rem;
}
h3 {
    border-left: 5px solid #FF910A;
    padding-left: 1rem;
    margin-top: 1.5rem;
    margin-bottom: 1.2rem;
    font-weight: 600;
}
h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    /* color: #1e2a3e; */
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}
.table th {
    /* background-color: #f1f5f9; */
    font-weight: 600;
}
code {
    /* background-color: #f4f6f8; */
    padding: 0.2rem 0.4rem;
    border-radius: 6px;
    font-size: 0.875em;
    color: #d63384;
}
pre {
    background: #1e2a3a;
    color: #eef2ff;
    padding: 1rem;
    border-radius: 12px;
    overflow-x: auto;
    font-size: 0.85rem;
}
.badge-method {
    background-color: #28a745;
    color: white;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-block;
}
.tool-section {
    /* background: #fef9e6; */
    border-left: 6px solid #FF910A;
    padding: 1.5rem;
    border-radius: 20px;
    margin-top: 2rem;
}
hr {
    margin: 2rem 0;
}
.endpoint-url {
    font-family: monospace;
    /* background: #eef2ff; */
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.9rem;
}
.note {
    /* background-color: #eef2ff; */
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
}
footer {
    font-size: 0.8rem;
    text-align: center;
    margin-top: 2rem;
    color: #5c6f87;
}


.sidebar-header {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
}
.sidebar-header h5 {
    color: var(--bs-secondary);
    letter-spacing: -0.3px;
}
.sidebar-header hr {
    opacity: 0.5;
}

 
/* 窄屏折叠导航容器样式调整 */
@media (max-width: 768px) {
    /* 原有水平滚动导航样式移除（因为采用折叠方案） */
    .docs-sidebar {
        position: relative;
        max-height: none;
        overflow: visible;
        margin-bottom: 0.5rem;
    }
    .docs-sidebar .nav {
        flex-direction: column; /* 折叠面板内保持垂直排列 */
    }
    /* 调整折叠按钮区域视觉，不占太多高度 */
    .collapse-nav-container .d-flex {
        /* background-color: #f8f9fa; */
        border-radius: 0.5rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.95rem;
    }
    .collapse-nav-container .btn {
        padding: 0.25rem 0.75rem;
        font-size: 0.85rem;
    }
    /* 移动端导航面板内链接样式与PC端一致 */
    #mobileNavList .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
        border-radius: 0.5rem;
        margin-bottom: 0.125rem;
        transition: all 0.2s;
    }
    #mobileNavList .nav-link:hover {
        background-color: rgba(var(--bs-primary-rgb), 0.1);
    }
    #mobileNavList .nav-link.active {
        background-color: var(--bs-primary);
        color: white;
    }
    #mobileNavList .nav-group-header {
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--bs-secondary-color);
        padding: 0.75rem 0.75rem 0.25rem 0.75rem;
        margin-top: 0.5rem;
    }
    #mobileNavList .nav-group-header:first-of-type {
        margin-top: 0;
    }
    /* 确保卡片容器内边距合适 */
    #mobileNavList .card-body {
        padding: 0.5rem;
    }
}