.docs-page {
    margin: 0;
    padding: 0;
    background: #0a0e10;
    color: #c7d2ce;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

.docs-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7, 11, 13, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(246, 248, 246, 0.08);
}

.docs-topbar-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.docs-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.docs-brand-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.docs-brand-name {
    font-size: 15px;
    font-weight: 600;
    color: #f6f8f6;
}

.docs-brand-divider {
    width: 1px;
    height: 16px;
    background: rgba(246, 248, 246, 0.15);
    margin: 0 4px;
}

.docs-brand-label {
    font-size: 13px;
    color: #8fa199;
    font-weight: 500;
}

.docs-search {
    flex: 1;
    max-width: 520px;
}

.docs-search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(246, 248, 246, 0.1);
    border-radius: 8px;
    padding: 0 12px;
    height: 36px;
    transition: all 0.2s;
}

.docs-search-box:focus-within {
    border-color: rgba(123, 228, 149, 0.4);
    background: rgba(255, 255, 255, 0.06);
}

.docs-search-box svg {
    color: #6b7c75;
    flex-shrink: 0;
}

.docs-search-box input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #f6f8f6;
    font-size: 14px;
    padding: 0 10px;
}

.docs-search-box input::placeholder {
    color: #6b7c75;
}

.docs-search-box kbd {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(246, 248, 246, 0.1);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 12px;
    color: #6b7c75;
    font-family: monospace;
}

.docs-top-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.docs-top-nav a {
    padding: 6px 12px;
    font-size: 14px;
    color: #8fa199;
    border-radius: 6px;
    transition: all 0.2s;
}

.docs-top-nav a:hover {
    color: #f6f8f6;
    background: rgba(255, 255, 255, 0.04);
}

.docs-top-nav a.active {
    color: #7be495;
    background: rgba(123, 228, 149, 0.08);
}

.docs-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.docs-version-select {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(246, 248, 246, 0.1);
    border-radius: 6px;
    color: #c7d2ce;
    padding: 6px 10px;
    font-size: 13px;
    cursor: pointer;
    outline: none;
}

.docs-version-select:hover {
    border-color: rgba(246, 248, 246, 0.2);
}

.docs-language-form {
    margin: 0;
}

.docs-github-link {
    color: #8fa199;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.docs-github-link:hover {
    color: #f6f8f6;
}

.docs-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    max-width: 1600px;
    margin: 0 auto;
    min-height: calc(100vh - 56px);
}

.docs-sidebar {
    border-right: 1px solid rgba(246, 248, 246, 0.06);
    padding: 24px 0;
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
    overflow-y: auto;
}

.docs-sidebar-inner {
    padding: 0 12px;
}

.docs-sidebar-section {
    margin-bottom: 20px;
}

.docs-sidebar-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #6b7c75;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    user-select: none;
}

.docs-sidebar-arrow {
    color: #6b7c75;
    transition: transform 0.2s;
}

.docs-sidebar-items {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.docs-nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    font-size: 14px;
    color: #8fa199;
    border-radius: 6px;
    transition: all 0.15s;
    line-height: 1.4;
}

.docs-nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: #f6f8f6;
}

.docs-nav-item.active {
    background: rgba(123, 228, 149, 0.1);
    color: #7be495;
    font-weight: 500;
}

.docs-nav-icon {
    font-size: 14px;
}

.docs-main {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 0;
}

.docs-content-wrapper {
    padding: 32px 48px;
    max-width: 820px;
}

.docs-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7c75;
    margin-bottom: 24px;
}

.docs-breadcrumb a {
    color: #8fa199;
}

.docs-breadcrumb a:hover {
    color: #7be495;
}

.docs-breadcrumb-sep {
    color: #4a5952;
}

.docs-breadcrumb-current {
    color: #c7d2ce;
}

.docs-article {
    color: #c7d2ce;
    font-size: 15px;
    line-height: 1.75;
}

.docs-article h1 {
    font-size: 34px;
    font-weight: 700;
    color: #f6f8f6;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.docs-article h2 {
    font-size: 24px;
    font-weight: 600;
    color: #f6f8f6;
    margin: 40px 0 20px;
    padding-top: 8px;
    letter-spacing: -0.01em;
}

.docs-article h3 {
    font-size: 18px;
    font-weight: 600;
    color: #e8ebe9;
    margin: 28px 0 14px;
}

.docs-article p {
    margin: 0 0 18px;
}

.docs-article ul,
.docs-article ol {
    margin: 0 0 18px;
    padding-left: 24px;
}

.docs-article li {
    margin-bottom: 6px;
}

.docs-article a {
    color: #7be495;
    text-decoration: none;
    border-bottom: 1px solid rgba(123, 228, 149, 0.2);
    transition: all 0.15s;
}

.docs-article a:hover {
    border-bottom-color: #7be495;
}

.docs-article code {
    background: rgba(123, 228, 149, 0.08);
    color: #9af0b0;
    padding: 2px 7px;
    border-radius: 4px;
    font-family: "JetBrains Mono", "Consolas", "Monaco", monospace;
    font-size: 13px;
    border: 1px solid rgba(123, 228, 149, 0.1);
}

.docs-article pre {
    background: #060a0b;
    border: 1px solid rgba(246, 248, 246, 0.08);
    border-radius: 8px;
    padding: 18px 20px;
    overflow-x: auto;
    margin: 0 0 22px;
    line-height: 1.6;
}

.docs-article pre code {
    background: none;
    border: none;
    padding: 0;
    color: #e8ebe9;
    font-size: 13px;
}

.docs-article blockquote {
    background: rgba(86, 213, 200, 0.04);
    border-left: 3px solid #56d5c8;
    padding: 14px 18px;
    margin: 0 0 22px;
    border-radius: 0 8px 8px 0;
    color: #b7c5c0;
}

.docs-article blockquote p:last-child {
    margin-bottom: 0;
}

.docs-callout {
    background: rgba(123, 228, 149, 0.05);
    border: 1px solid rgba(123, 228, 149, 0.15);
    border-radius: 8px;
    padding: 18px 20px;
    margin: 0 0 22px;
}

.docs-callout-title {
    font-weight: 600;
    color: #7be495;
    margin-bottom: 8px;
    font-size: 15px;
}

.docs-callout p:last-child {
    margin-bottom: 0;
}

.docs-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 22px;
    font-size: 14px;
}

.docs-article thead {
    border-bottom: 1px solid rgba(246, 248, 246, 0.1);
}

.docs-article th {
    text-align: left;
    padding: 12px 14px;
    color: #f6f8f6;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.02);
}

.docs-article td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(246, 248, 246, 0.05);
    color: #c7d2ce;
}

.docs-article tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.docs-footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(246, 248, 246, 0.08);
}

.docs-footer-prev,
.docs-footer-next {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(246, 248, 246, 0.08);
    border-radius: 8px;
    transition: all 0.2s;
}

.docs-footer-prev:hover,
.docs-footer-next:hover {
    border-color: rgba(123, 228, 149, 0.25);
    background: rgba(123, 228, 149, 0.04);
}

.docs-footer-next {
    text-align: right;
}

.docs-footer-label {
    display: block;
    font-size: 12px;
    color: #6b7c75;
    margin-bottom: 4px;
}

.docs-footer-prev a,
.docs-footer-next a {
    color: #f6f8f6;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

.docs-toc-sidebar {
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
    overflow-y: auto;
    padding: 32px 0;
    border-left: 1px solid rgba(246, 248, 246, 0.05);
}

.docs-toc-inner {
    padding: 0 20px;
}

.docs-toc-title {
    font-size: 11px;
    font-weight: 600;
    color: #6b7c75;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.docs-toc {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.docs-toc-item {
    padding: 6px 12px;
    font-size: 13px;
    color: #6b7c75;
    border-radius: 4px;
    border-left: 2px solid transparent;
    transition: all 0.15s;
    text-decoration: none;
    line-height: 1.4;
}

.docs-toc-item:hover {
    color: #c7d2ce;
    background: rgba(255, 255, 255, 0.03);
}

.docs-sidebar-toggle {
    display: none;
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 90;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1a2023;
    border: 1px solid rgba(246, 248, 246, 0.1);
    color: #c7d2ce;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1200px) {
    .docs-toc-sidebar {
        display: none;
    }

    .docs-main {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .docs-layout {
        grid-template-columns: 1fr;
    }

    .docs-sidebar {
        position: fixed;
        left: -100%;
        top: 56px;
        width: 280px;
        height: calc(100vh - 56px);
        background: #0a0e10;
        z-index: 95;
        transition: left 0.3s ease;
        border-right: 1px solid rgba(246, 248, 246, 0.08);
    }

    .docs-sidebar.show {
        left: 0;
    }

    .docs-sidebar-toggle {
        display: flex;
    }

    .docs-content-wrapper {
        padding: 24px 20px;
    }

    .docs-article h1 {
        font-size: 26px;
    }

    .docs-top-nav {
        display: none;
    }

    .docs-search {
        display: none;
    }
}
