* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}
body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}
.api-docs-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}
.api-sidebar {
    width: 260px;
    background-color: #fff;
    border-right: 1px solid #e5e7eb;
    height: 100%;
    overflow-y: auto;
    box-shadow: 0 0 8px rgba(0,0,0,0.05);
}
.sidebar-header {
    padding: 20px 16px;
    border-bottom: 1px solid #e5e7eb;
}
.sidebar-header h2 {
    font-size: 18px;
    color: #1d2129;
    font-weight: 600;
    margin-bottom: 4px;
}
.sidebar-header p {
    font-size: 12px;
    color: #86909c;
}
.api-nav {
    padding: 8px 0;
}
.nav-group {
    margin-bottom: 4px;
}
.group-title {
    padding: 10px 16px;
    font-size: 14px;
    color: #1d2129;
    font-weight: 500;
    cursor: pointer;
    /* display: flex; */
    align-items: center;
    justify-content: space-between;
}
.group-title:hover {
    background-color: #f5f7fa;
}
.group-title i:first-child {
    margin-right: 8px;
    color: #4e5969;
    font-size: 14px;
}
.group-arrow {
    font-size: 12px;
    color: #c9cdD4;
    transition: all 0.2s ease;
}
.group-items {
    display: none;
    list-style: none;
    background-color: #f9fafb;
}
.group-items.active {
    display: block;
}
.nav-item {
    list-style: none;
}
.nav-item a {
    display: block;
    padding: 8px 16px 8px 36px;
    font-size: 13px;
    color: #4e5969;
    text-decoration: none;
    transition: all 0.2s ease;
}
.nav-item a:hover {
    background-color: #e8f3ff;
    color: #1890ff;
}
.nav-item.active a {
    background-color: #e8f3ff;
    color: #1890ff;
    font-weight: 500;
    border-left: 2px solid #1890ff;
}
.api-content {
    flex: 1;
    height: 100%;
    overflow: hidden;
}
.content-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background-color: #fff;
}
@media (max-width: 768px) {
    .api-docs-container {
        flex-direction: column;
    }
    .api-sidebar {
        width: 100%;
        height: auto;
        max-height: 200px;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
    }
}
.api-doc-body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.8;
    padding: 40px;
    color: #1d2129;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
}
.api-doc-body h1 {
    font-size: 24px;
    color: #1d2129;
    font-weight: 600;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}
.api-doc-body h2 {
    font-size: 18px;
    color: #1d2129;
    font-weight: 600;
    margin: 32px 0 16px;
}
.api-doc-body h3 {
    font-size: 16px;
    color: #4e5969;
    font-weight: 500;
    margin: 24px 0 12px;
}
.api-doc-body p {
    font-size: 14px;
    color: #4e5969;
    margin: 8px 0;
}
.api-doc-body .tip-box {
    padding: 12px 16px;
    background-color: #e8f3ff;
    border-left: 4px solid #1890ff;
    margin: 16px 0;
    border-radius: 2px;
}
.api-doc-body .tip-box p {
    color: #4e5969;
    font-size: 13px;
    margin: 0;
}
.api-doc-body pre {
    background-color: #f7f8fa;
    padding: 16px;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    overflow-x: auto;
    margin: 12px 0;
    font-family: "Consolas", "Monaco", monospace;
    font-size: 13px;
    line-height: 1.5;
}
.api-doc-body code {
    font-family: "Consolas", "Monaco", monospace;
    font-size: 13px;
    color: #e53935;
}
.api-doc-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 14px;
}
.api-doc-body table th, .api-doc-body table td {
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    text-align: left;
}
.api-doc-body table th {
    background-color: #f9fafb;
    color: #1d2129;
    font-weight: 500;
}
.api-doc-body table td {
    color: #4e5969;
}
.api-doc-body .status-code {
    display: inline-block;
    padding: 2px 8px;
    background-color: #e8f3ff;
    color: #1890ff;
    border-radius: 2px;
    font-size: 12px;
    margin-right: 8px;
}
.api-doc-body ul {
    margin: 8px 0 8px 20px;
    color: #4e5969;
    font-size: 14px;
}