body.page-template-page-documentation {
    font-size: 16px;
    line-height: 1.6;
    background: #fff;
}
.qq-docs-landing,
.qq-docs-landing h1,
.qq-docs-landing h2,
.qq-docs-landing h3,
.qq-docs-landing h4,
.qq-docs-landing p,
.qq-docs-landing a {
    font-family: var(--qq-font, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif);
    color: inherit;
}
.qq-docs-landing .qq-wrap {
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
    box-sizing: border-box;
}
.qq-docs-landing .section-sm { padding: 64px 0; }

.qq-docs-landing .docs-hero {
    background: var(--qq-grad-hero, linear-gradient(180deg, #0a0e17 0%, #070b12 100%));
    color: var(--qq-text-inv, #e8edf5);
    padding: 64px 0 48px;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.qq-docs-landing .docs-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--qq-line-dark, rgba(148,163,184,.14)) 1px, transparent 1px),
        linear-gradient(90deg, var(--qq-line-dark, rgba(148,163,184,.14)) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(800px 400px at 50% 0, #000, transparent 70%);
    opacity: .5;
}
.qq-docs-landing .docs-hero .qq-wrap { position: relative; z-index: 2; text-align: center; }
.qq-docs-landing .docs-hero h1 {
    font-size: clamp(32px, 4.5vw, 46px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
    margin: 0;
    color: #fff;
}
.qq-docs-landing .docs-hero p {
    color: var(--qq-text-inv-2, #93a2ba);
    font-size: 18px;
    line-height: 1.6;
    margin: 14px auto 0;
    max-width: 560px;
}

.qq-docs-landing .doc-search {
    max-width: 560px;
    margin: 30px auto 0;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 14px;
    padding: 14px 20px;
}
.qq-docs-landing .doc-search input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: #fff;
    font-size: 15px;
    line-height: 1.4;
    min-width: 0;
}
.qq-docs-landing .doc-search input::placeholder { color: var(--qq-text-inv-2, #93a2ba); }
.qq-docs-landing .doc-search svg { width: 20px; height: 20px; color: var(--qq-lime-400, #a3e635); flex: 0 0 auto; }
.qq-docs-landing .doc-search .kbd {
    font-family: var(--qq-mono, "JetBrains Mono", ui-monospace, Consolas, monospace);
    font-size: 12px;
    color: var(--qq-text-inv-2, #93a2ba);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 6px;
    padding: 2px 7px;
    flex: 0 0 auto;
}

.qq-docs-landing .docs-sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.qq-docs-landing .docs-sec-head h2 {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
    margin: 0;
    color: var(--qq-text, #0b1220);
}
.qq-docs-landing .docs-all-link {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--qq-text-3, #8a97ab);
    text-decoration: none;
}
.qq-docs-landing .docs-all-link:hover { color: var(--qq-lime-700, #4d7c0f); }

.qq-docs-landing .qs-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}
.qq-docs-landing .qs {
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--qq-border, #e3e8ef);
    background: #fff;
    transition: var(--qq-tr, .25s ease);
    display: block;
    text-decoration: none;
    color: var(--qq-text, #0b1220);
    height: auto;
    min-height: 0;
    margin: 0;
    box-sizing: border-box;
}
.qq-docs-landing .qs:hover {
    border-color: var(--qq-lime-400, #a3e635);
    transform: translateY(-3px);
    box-shadow: var(--qq-sh, 0 6px 20px -6px rgba(15,23,42,.12));
    color: var(--qq-text, #0b1220);
}
.qq-docs-landing .qs .ico {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--qq-lime-50, #f7fee7);
    color: var(--qq-lime-700, #4d7c0f);
    display: grid;
    place-items: center;
    margin-bottom: 14px;
}
.qq-docs-landing .qs .ico svg { width: 22px; height: 22px; display: block; }
.qq-docs-landing .qs h4 {
    font-size: 16px !important;
    font-weight: 800;
    line-height: 1.15 !important;
    letter-spacing: -.02em;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--qq-text, #0b1220);
}
.qq-docs-landing .qs p {
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: var(--qq-text-2, #47536b);
    margin: 6px 0 0 !important;
    padding: 0 !important;
}

.qq-docs-landing .docs-cat-head {
    max-width: 720px;
    margin: 0 auto 40px;
    text-align: center;
}
.qq-docs-landing .docs-cat-head h2 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
    margin: 0;
    color: var(--qq-text, #0b1220);
}

.qq-docs-landing .cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.qq-docs-landing .cat {
    border: 1px solid var(--qq-border, #e3e8ef);
    border-radius: 16px;
    padding: 26px;
    background: #fff;
}
.qq-docs-landing .cat .ch { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.qq-docs-landing .cat .ci {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #fff;
    flex: 0 0 auto;
}
.qq-docs-landing .cat .ci svg { width: 20px; height: 20px; display: block; }
.qq-docs-landing .cat h3 {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
    margin: 0;
    color: var(--qq-text, #0b1220);
}
.qq-docs-landing .cat a.item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--qq-text-2, #47536b);
    border-bottom: 1px solid var(--qq-bg-muted, #eef2f6);
    text-decoration: none;
}
.qq-docs-landing .cat a.item:last-child { border: none; }
.qq-docs-landing .cat a.item:hover { color: var(--qq-lime-700, #4d7c0f); padding-left: 6px; }
.qq-docs-landing .cat a.item svg {
    width: 15px;
    height: 15px;
    color: var(--qq-text-3, #8a97ab);
    margin-left: auto;
    flex: 0 0 auto;
}

.qq-docs-landing .docs-cta-band {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 40px;
    border: 1px solid var(--qq-lime-300, #bef264);
    background: linear-gradient(120deg, var(--qq-lime-50, #f7fee7), #fff);
    border-radius: 18px;
    flex-wrap: wrap;
}
.qq-docs-landing .docs-cta-band h2 {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.02em;
    margin: 0;
    color: var(--qq-text, #0b1220);
}
.qq-docs-landing .docs-cta-band p {
    color: var(--qq-text-2, #47536b);
    font-size: 16px;
    line-height: 1.6;
    margin: 8px 0 0;
}
.qq-docs-landing .docs-cta-band > div:first-child { flex: 1; min-width: 260px; }
.qq-docs-landing .docs-cta-band .btn {
    min-height: 0;
    border-width: 1.5px;
}

.is-doc-hidden { display: none !important; }

@media (max-width: 960px) {
    .qq-docs-landing .qs-grid { grid-template-columns: repeat(2, 1fr); }
    .qq-docs-landing .cat-grid { grid-template-columns: 1fr; }
}

body.page-template-page-documentation .qq-header { background: rgba(7, 11, 18, .92); }
.qq-docs-landing .docs-hero h1 { color: #fff; }
.qq-docs-landing .docs-hero p { color: var(--qq-text-inv-2, #93a2ba); }
.qq-footer h5 { color: #fff; }
.qq-footer p { color: var(--qq-text-inv-2, #93a2ba); }

body.qq-doc-article { background: var(--qq-bg-soft, #f6f8fa); }
body.qq-doc-article .qq-header.light { background: rgba(255,255,255,.92); }

.doc-shell {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 300px;
    column-gap: 40px;
    padding-right: 24px;
    background: var(--qq-bg-soft, #f6f8fa);
}
.doc-nav {
    border-right: 1px solid var(--qq-border, #e3e8ef);
    background: #fff;
    height: calc(100vh - 68px);
    position: sticky;
    top: 68px;
    overflow-y: auto;
    padding: 24px 18px;
}
.doc-nav .ver {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--qq-bg-soft, #f6f8fa);
    font-size: 13px;
    margin-bottom: 14px;
}
.doc-nav .ver .muted { font-size: 12px; color: var(--qq-text-3, #8a97ab); }
.doc-nav .grp {
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--qq-text-3, #8a97ab);
    font-weight: 700;
    margin: 18px 0 8px;
    padding: 0 12px;
}
.doc-nav > a {
    display: block;
    padding: 8px 12px;
    border-radius: 9px;
    font-size: 14px;
    color: var(--qq-text-2, #47536b);
    text-decoration: none;
}
.doc-nav > a:hover { background: var(--qq-bg-soft, #f6f8fa); color: var(--qq-text, #0b1220); }
.doc-nav > a.active { background: var(--qq-lime-50, #f7fee7); color: var(--qq-lime-700, #4d7c0f); font-weight: 700; }

.doc-nav .sidebar-search { position: relative; margin-bottom: 8px; }
.doc-nav .search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--qq-border, #e3e8ef);
    border-radius: 10px;
    background: var(--qq-bg-soft, #f6f8fa);
}
.doc-nav .search-icon { width: 16px; height: 16px; color: var(--qq-text-3, #8a97ab); flex: 0 0 auto; }
.doc-nav .search-input-wrapper input {
    flex: 1;
    border: 0;
    outline: 0;
    background: none;
    font-size: 13px;
    min-width: 0;
    color: var(--qq-text, #0b1220);
}
.doc-nav .search-shortcut {
    font-family: var(--qq-mono, ui-monospace, Consolas, monospace);
    font-size: 11px;
    color: var(--qq-text-3, #8a97ab);
    border: 1px solid var(--qq-border, #e3e8ef);
    border-radius: 5px;
    padding: 1px 6px;
}
.doc-nav .search-results {
    display: none;
    position: absolute;
    left: 0; right: 0; top: calc(100% + 6px);
    background: #fff;
    border: 1px solid var(--qq-border, #e3e8ef);
    border-radius: 10px;
    box-shadow: var(--qq-sh, 0 6px 20px -6px rgba(15,23,42,.12));
    z-index: 20;
    max-height: 280px;
    overflow: auto;
}
.doc-nav .search-results.active { display: block; }
.doc-nav .search-result-item,
.doc-nav .no-results {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    font-size: 13px;
    color: var(--qq-text-2, #47536b);
    text-decoration: none;
}
.doc-nav .search-result-item:hover { background: var(--qq-bg-soft, #f6f8fa); color: var(--qq-text, #0b1220); }
.doc-nav .search-result-item svg { width: 14px; height: 14px; flex: 0 0 auto; }

.doc-nav .docs-version-switcher { margin-bottom: 12px; }
.doc-nav .version-trigger {
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    border-radius: 9px;
    border: 1px solid var(--qq-border, #e3e8ef);
    background: #fff;
    font-size: 13px;
    font-weight: 600;
}
.doc-nav .version-dropdown { display: none; margin-top: 6px; }
.doc-nav .version-dropdown.active { display: block; }
.doc-nav .version-option {
    display: block;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--qq-text-2, #47536b);
}

.doc-main {
    padding: 40px 0 72px;
    max-width: none;
    background: var(--qq-bg-soft, #f6f8fa);
    min-width: 0;
}
.doc-crumb { font-size: 13px; color: var(--qq-text-3, #8a97ab); margin-bottom: 12px; }
.doc-crumb a { color: var(--qq-text-3, #8a97ab); text-decoration: none; }
.doc-crumb a:hover { color: var(--qq-lime-700, #4d7c0f); }
.doc-main h1,
.doc-main .doc-title { font-size: 34px; font-weight: 800; line-height: 1.2; margin: 0 0 8px; color: var(--qq-text, #0b1220); }
.doc-main .doc-description { color: var(--qq-text-2, #47536b); font-size: 16px; margin: 8px 0 0; }
.doc-topmeta {
    display: flex;
    gap: 14px;
    color: var(--qq-text-3, #8a97ab);
    font-size: 13px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--qq-border, #e3e8ef);
}
.doc-main .prose { font-size: 16px; line-height: 1.8; color: #24303f; }
.doc-main .prose h2 { font-size: 24px; font-weight: 800; margin: 40px 0 14px; scroll-margin-top: 92px; color: var(--qq-text, #0b1220); }
.doc-main .prose h3 { font-size: 18px; font-weight: 800; margin: 26px 0 10px; color: var(--qq-text, #0b1220); }
.doc-main .prose p { margin: 14px 0; }
.doc-main .prose ul, .doc-main .prose ol { margin: 14px 0; padding-left: 22px; }
.doc-main .prose li { margin: 8px 0; }
.doc-main .prose code {
    font-family: var(--qq-mono, ui-monospace, Consolas, monospace);
    background: #eef2f6;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 14px;
    color: #b5389a;
}
.doc-main .prose pre {
    background: var(--qq-ink-900, #0a0e17);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    overflow-x: auto;
    color: #cbd5e1;
}
.doc-main .prose pre code { background: none; color: inherit; padding: 0; font-size: 13.5px; line-height: 1.7; }
.doc-main .prose .wp-block-table,
.doc-main .prose figure.wp-block-table {
    display: block;
    width: 100%;
    margin: 20px 0;
    overflow-x: auto;
}
.doc-main .prose table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14.5px;
    line-height: 1.55;
    background: #fff;
}
.doc-main .prose th,
.doc-main .prose td {
    border: 1px solid #d7deea;
    padding: 10px 14px;
    text-align: left;
    vertical-align: top;
}
.doc-main .prose thead th {
    background: #f4f7ee;
    color: #0b1220;
    font-weight: 700;
}
.doc-main .prose tbody tr:nth-child(even) td {
    background: #fafbfd;
}
.doc-main .overview-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.doc-main .overview-card {
    background: #fff;
    border: 1px solid var(--qq-border, #e3e8ef);
    border-radius: 14px;
    padding: 18px;
}
.doc-main .overview-card h3 { font-size: 16px; margin: 0 0 10px; }
.doc-main .card-links { list-style: none; padding: 0; margin: 0; }
.doc-main .card-links a { color: var(--qq-text-2, #47536b); text-decoration: none; font-size: 14px; }
.doc-main .card-links a:hover { color: var(--qq-lime-700, #4d7c0f); }

.doc-pager {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--qq-border, #e3e8ef);
}
.doc-pager a {
    flex: 1;
    padding: 16px 20px;
    border: 1px solid var(--qq-border, #e3e8ef);
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    color: inherit;
}
.doc-pager a:hover { border-color: var(--qq-lime-400, #a3e635); }
.doc-pager .k { font-size: 12px; color: var(--qq-text-3, #8a97ab); }
.doc-pager .t { font-weight: 700; margin-top: 4px; color: var(--qq-text, #0b1220); }

.doc-aside {
    width: 300px;
    padding: 32px 0 48px;
    height: auto;
    overflow: visible;
}
.doc-aside .toch {
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--qq-text-3, #8a97ab);
    font-weight: 700;
    margin-bottom: 12px;
}
.doc-aside .toc a,
.doc-aside .toc-nav a {
    display: block;
    padding: 6px 0 6px 12px;
    border-left: 2px solid var(--qq-border, #e3e8ef);
    font-size: 13.5px;
    color: var(--qq-text-2, #47536b);
    text-decoration: none;
}
.doc-aside .toc a.active,
.doc-aside .toc-nav a.active {
    color: var(--qq-lime-700, #4d7c0f);
    border-color: var(--qq-lime-500, #84cc16);
    font-weight: 700;
}
.doc-aside .qq-side { margin-top: 24px; display: grid; gap: 16px; }
.doc-aside .qq-side .side-card { padding: 18px; }

.doc-mobile-toggle {
    display: none;
    position: fixed;
    top: 80px;
    left: 14px;
    z-index: 40;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--qq-border, #e3e8ef);
    box-shadow: var(--qq-sh, 0 6px 20px -6px rgba(15,23,42,.12));
    align-items: center;
    justify-content: center;
}
.doc-mobile-toggle svg { width: 20px; height: 20px; }
.docs-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(11, 18, 32, .35);
    z-index: 35;
}
.docs-overlay.active { display: block; }

@media (max-width: 1180px) {
    .doc-shell { grid-template-columns: 260px minmax(0, 1fr); padding-right: 24px; }
    .doc-aside { display: none; }
}
@media (max-width: 900px) {
    .doc-shell { grid-template-columns: 1fr; padding-right: 0; }
    .doc-nav {
        display: none;
        position: fixed;
        left: 0; top: 68px; bottom: 0;
        z-index: 36;
        height: auto;
    }
    .doc-nav.open { display: block; }
    .doc-main { padding: 28px 20px 56px; max-width: none; }
    .doc-mobile-toggle { display: flex; }
    .doc-main .overview-cards { grid-template-columns: 1fr; }
}
