/* API 文档样式 */
.doc-page {
    min-height: 640px;
    padding: 32px 0 0;
    background: #fff;
}

.doc-page__layout {
    display: grid;
    grid-template-columns: 208px minmax(0, 1fr);
    align-items: start;
    gap: 40px;
    position: relative;
}

.doc-page__layout--with-outline {
    grid-template-columns: 208px minmax(0, 1fr) 148px;
    gap: 32px;
}

.doc-page__layout:before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 208px;
    width: 1px;
    content: '';
    background: #edf0f5;
}

.doc-page__sidebar {
    position: sticky;
    top: 24px;
    padding: 4px 18px 4px 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.doc-page__skip-link {
    position: fixed;
    top: 8px;
    left: 16px;
    z-index: 110;
    padding: 8px 12px;
    color: #fff;
    background: var(--site-primary);
    border-radius: 4px;
    transform: translateY(-160%);
    transition: transform var(--site-transition);
}

.doc-page__skip-link:focus {
    transform: translateY(0);
}

.doc-page .doc-nav {
    max-height: calc(100vh - 106px);
    overflow-y: auto;
    scrollbar-width: thin;
}

.doc-page .doc-nav__item {
    display: flex;
    align-items: center;
    min-height: 34px;
    padding: 0 8px;
    color: var(--site-text-secondary);
    font-size: 14px;
    line-height: 1.45;
    border-radius: 2px;
    transition: color var(--site-transition), background-color var(--site-transition);
}

.doc-page .doc-nav__item.is-active {
    color: var(--site-primary);
    font-weight: 600;
    background: transparent;
}

.doc-page .doc-nav__item--group {
    color: var(--site-text);
    font-weight: 600;
}

.doc-page .doc-nav__heading {
    display: flex;
    align-items: center;
}

.doc-page .doc-nav__heading .doc-nav__item--group {
    flex: 1 1 auto;
}

.doc-page .doc-nav__group-trigger {
    width: auto;
    margin: 0;
    cursor: pointer;
    text-align: left;
    background: transparent;
    border: 0;
}

.doc-page .doc-nav__toggle {
    flex: 0 0 34px;
    width: 34px;
    min-height: 34px;
    padding: 0;
    cursor: pointer;
    background: transparent;
    border: 0;
    border-radius: 2px;
}

.doc-page .doc-nav__toggle:hover,
.doc-page .doc-nav__toggle:focus {
    background: transparent;
}

.doc-page .doc-nav__toggle:after {
    display: inline-block;
    width: 6px;
    height: 6px;
    content: '';
    border-right: 1px solid #64748b;
    border-bottom: 1px solid #64748b;
    transform: translateY(-2px) rotate(45deg);
    transition: transform var(--site-transition);
}

.doc-page .doc-nav__toggle[aria-expanded="false"]:after {
    transform: translateX(-2px) rotate(-45deg);
}

.doc-page .doc-nav__group {
    margin: 6px 0 14px;
    padding: 0 0 4px 12px;
}

.doc-page .doc-nav__group[hidden] {
    display: none !important;
}

.doc-page .doc-nav__item--child {
    min-height: 36px;
    padding: 0 10px;
    font-size: 14px;
    line-height: 1.55;
}

.doc-page .doc-main {
    top: auto;
    width: auto;
    height: auto;
    min-width: 0;
    padding: 0;
    color: var(--site-text);
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.doc-page__intro {
    padding: 0 0 34px;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.doc-page__intro h1 {
    margin: 0;
    color: var(--site-text);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.35;
}

.doc-page__intro p {
    margin: 10px 0 0;
    color: var(--site-text-secondary);
    font-size: 15px;
    line-height: 1.8;
}

.doc-interface-list {
    margin-top: 38px;
}

.doc-interface-list__group + .doc-interface-list__group {
    margin-top: 34px;
}

.doc-interface-list__group h2 {
    margin: 0 0 14px;
    color: var(--site-text);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
}

.doc-interface-list__table-wrap {
    overflow: visible;
}

.doc-interface-list__group .doc-version-comparison-link {
    display: inline-block;
    margin-left: 12px;
    color: var(--site-primary);
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
    vertical-align: middle;
}

.doc-version-comparison__summary {
    margin: 0 0 18px;
    color: var(--site-text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

.doc-interface-list__group,
.doc-version-comparison h2 {
    scroll-margin-top: 28px;
}

.doc-interface-list .doc-version-comparison thead th:nth-child(1) {
    width: 20%;
}

.doc-interface-list .doc-version-comparison thead th:nth-child(2),
.doc-interface-list .doc-version-comparison thead th:nth-child(3) {
    width: 40%;
}

.doc-interface-list table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.doc-interface-list th,
.doc-interface-list td {
    padding: 16px 18px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #edf1f6;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.doc-interface-list thead th {
    color: #34445d;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    background: #f5f8fc;
}

.doc-interface-list thead th:nth-child(1) {
    width: 25%;
}

.doc-interface-list thead th:nth-child(2) {
    width: 52%;
}

.doc-interface-list thead th:nth-child(3) {
    width: 23%;
}

.doc-interface-list tbody td {
    color: #5a6980;
    font-size: 14px;
    line-height: 1.7;
}

.doc-interface-list tbody a {
    color: var(--site-primary);
    font-weight: 500;
    line-height: 1.65;
}

.doc-interface-list__fee {
    color: #394b63 !important;
    white-space: normal;
}

.doc-interface-list__fee.is-free {
    color: #4f8a5b !important;
}

.doc-receipt-flow {
    padding: 0 0 30px;
    border-bottom: 1px solid #e8edf5;
}

.doc-receipt-flow h2,
.doc-receipt-note h2 {
    margin: 0;
    color: var(--site-text);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
}

.doc-receipt-flowchart {
    margin-top: 20px;
    padding: 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2eaf4;
    border-radius: 8px;
}

.doc-receipt-flowchart__legend {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 12px;
    color: #64748b;
    font-size: 12px;
    line-height: 1;
}

.doc-receipt-flowchart__legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.doc-receipt-flowchart__legend span:before {
    width: 8px;
    height: 8px;
    content: '';
    border-radius: 50%;
}

.doc-receipt-flowchart__legend .is-merchant:before {
    background: #6a9ce2;
}

.doc-receipt-flowchart__legend .is-platform:before {
    background: #8c9aad;
}

.doc-receipt-flowchart__desktop {
    display: block;
    width: 100%;
    height: auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

.doc-receipt-flowchart__lane {
    stroke-width: 1;
}

.doc-receipt-flowchart__lane--merchant {
    fill: #f8fbff;
    stroke: #dbe8f7;
}

.doc-receipt-flowchart__lane--platform {
    fill: #fafcff;
    stroke: #e3eaf2;
}

.doc-receipt-flowchart__lane-label {
    fill: #64748b;
    font-size: 14px;
    font-weight: 600;
}

.doc-receipt-flowchart__line {
    fill: none;
    stroke: #8da3be;
    stroke-width: 1.5;
}

.doc-receipt-flowchart__line--dashed {
    stroke-dasharray: 5 5;
}

.doc-receipt-flowchart__line--rework {
    stroke: #c27870;
}

.doc-receipt-flowchart__path-label {
    fill: #718096;
    font-size: 12px;
}

.doc-receipt-flowchart__path-label--error {
    fill: #b4534c;
}

.doc-receipt-flowchart__node rect {
    stroke-width: 1.25;
}

.doc-receipt-flowchart__node text,
.doc-receipt-flowchart__decision text {
    fill: #334155;
    font-size: 14px;
    font-weight: 600;
    text-anchor: middle;
}

.doc-receipt-flowchart__node .doc-receipt-flowchart__subtext {
    fill: #64748b;
    font-size: 11px;
    font-weight: 400;
}

.doc-receipt-flowchart__node .doc-receipt-flowchart__code {
    fill: #2f69b8;
    font-family: Consolas, "Courier New", monospace;
    font-size: 11px;
    font-weight: 400;
}

.doc-receipt-flowchart__node--merchant rect {
    fill: #fff;
    stroke: #9ebce5;
}

.doc-receipt-flowchart__node--platform rect {
    fill: #f4f8fd;
    stroke: #bdccdd;
}

.doc-receipt-flowchart__node--success rect {
    fill: #f5fbf7;
    stroke: #9bc9a7;
}

.doc-receipt-flowchart__node--success text:first-of-type {
    fill: #316e42;
}

.doc-receipt-flowchart__node--reject rect,
.doc-receipt-flowchart__node--cancel rect {
    fill: #fff9f8;
    stroke: #e4aaa4;
}

.doc-receipt-flowchart__node--reject text:first-of-type,
.doc-receipt-flowchart__node--cancel text:first-of-type {
    fill: #a9433c;
}

.doc-receipt-flowchart__node--resubmit rect {
    fill: #fffdf8;
    stroke: #dcc283;
}

.doc-receipt-flowchart__node--resubmit text:first-of-type {
    fill: #87621e;
}

.doc-receipt-flowchart__decision path {
    fill: #fff;
    stroke: #8098b4;
    stroke-width: 1.25;
}

.doc-receipt-flowchart__mobile {
    display: none;
    margin: 0;
    padding: 0;
    list-style: none;
}

.doc-receipt-notes {
    padding-top: 34px;
}

.doc-receipt-note {
    min-width: 0;
    padding: 0;
}

.doc-receipt-note + .doc-receipt-note {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e8edf5;
}

.doc-receipt-note ul {
    max-width: 720px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid #edf1f5;
}

.doc-receipt-note li {
    display: grid;
    grid-template-columns: 148px minmax(0, 1fr);
    gap: 24px;
    padding: 12px 0;
    color: #6b7a90;
    font-size: 13px;
    line-height: 1.65;
    border-bottom: 1px solid #f0f3f7;
}

.doc-receipt-note li:last-child {
    border-bottom: 0;
}

.doc-receipt-note strong {
    color: #34445d;
    font-weight: 500;
    text-align: left;
}

@media (max-width: 767px) {
    .doc-receipt-flowchart {
        padding: 16px;
    }

    .doc-receipt-flowchart__legend,
    .doc-receipt-flowchart__desktop {
        display: none;
    }

    .doc-receipt-flowchart__mobile {
        display: grid;
        gap: 12px;
    }

    .doc-receipt-flowchart__mobile li {
        position: relative;
        display: grid;
        grid-template-columns: 30px minmax(0, 1fr);
        column-gap: 10px;
        padding: 0 0 12px;
        border-bottom: 1px solid #edf1f5;
    }

    .doc-receipt-flowchart__mobile li:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .doc-receipt-flowchart__mobile b {
        display: inline-flex;
        grid-row: span 2;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        color: var(--site-primary);
        font-size: 11px;
        font-weight: 600;
        line-height: 1;
        background: #edf5ff;
        border-radius: 50%;
    }

    .doc-receipt-flowchart__mobile strong {
        color: #334155;
        font-size: 14px;
        font-weight: 600;
        line-height: 1.55;
    }

    .doc-receipt-flowchart__mobile span {
        margin-top: 3px;
        color: #64748b;
        font-size: 12px;
        line-height: 1.7;
    }

    .doc-receipt-flowchart__mobile code {
        padding: 1px 3px;
        color: #2f69b8;
        font-family: Consolas, "Courier New", monospace;
        font-size: 11px;
        background: #eef5ff;
        border-radius: 3px;
    }

    .doc-receipt-note + .doc-receipt-note {
        margin-top: 24px;
        padding-top: 24px;
    }

    .doc-receipt-note li {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 14px;
    }

}
.doc-page__quickstart {
    margin: 0 0 30px;
    padding: 20px 22px 18px;
    background: #f7faff;
    border: 1px solid #e1ebf8;
    border-radius: 8px;
}

.doc-page__quickstart-heading h2 {
    margin: 0;
    color: var(--site-text);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
}

.doc-page__quickstart-section > .doc-page__quickstart-heading {
    margin-bottom: 16px;
}

.doc-page__quickstart-heading p {
    margin: 5px 0 0;
    color: var(--site-text-secondary);
    font-size: 13px;
    line-height: 1.65;
}

.doc-page__quickstart-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.doc-page__quickstart-list li {
    display: flex;
    gap: 10px;
    min-width: 0;
}

.doc-page__quickstart-list > li > span {
    display: inline-flex;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-top: 1px;
    color: var(--site-primary);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    background: #e8f2ff;
    border-radius: 50%;
}

.doc-page__quickstart-list strong,
.doc-page__quickstart-list p,
.doc-page__quickstart-list a {
    display: block;
}

.doc-page__quickstart-list strong {
    color: var(--site-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
}

.doc-page__quickstart-list p {
    margin: 3px 0 5px;
    color: var(--site-text-secondary);
    font-size: 12px;
    line-height: 1.65;
}

.doc-page__quickstart-list a {
    width: fit-content;
    color: var(--site-primary);
    font-size: 12px;
    line-height: 1.5;
}

.doc-interface-list tbody a:hover, .doc-interface-list tbody a:focus,
.doc-page__quickstart-list a:hover, .doc-page__quickstart-list a:focus {
    color: var(--site-primary-hover);
    text-decoration: underline;
}

.doc-page .code-line {
    margin: 0 !important;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.doc-page .code-line h1 {
    display: flex;
    align-items: center;
    height: auto;
    min-height: 34px;
    margin: 0 0 20px;
    padding: 0;
    color: var(--site-text);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    border-left: 0;
}

.doc-page .code-line p {
    height: auto;
    min-height: 0;
    margin: 6px 0;
    padding: 0;
    color: var(--site-text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

.doc-page .doc-main h1 {
    margin-bottom: 12px;
}

.doc-page .doc-main p.doc-page__summary {
    margin: 0 0 20px;
    color: var(--site-text-secondary);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.doc-page .doc-page__intro p.doc-page__summary {
    margin-bottom: 0;
}

.doc-faq {
    display: grid;
    gap: 34px;
}

.doc-faq__section {
    scroll-margin-top: 24px;
}

.doc-faq__section > h2 {
    margin: 0 0 22px;
    padding-bottom: 12px;
    color: var(--site-text);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    border-bottom: 1px solid #e9edf2;
}

.doc-faq__item {
    padding: 0;
}

.doc-faq__item + .doc-faq__item {
    margin-top: 24px;
}

.doc-faq__item h3 {
    margin: 0 0 8px;
    color: var(--site-text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
}

.doc-faq__item p {
    margin: 0;
    color: var(--site-text-secondary);
    font-size: 14px;
    line-height: 1.8;
}

.doc-version-comparison-link:hover, .doc-version-comparison-link:focus-visible,
.doc-faq__item a:hover, .doc-faq__item a:focus {
    text-decoration: underline;
}

.doc-faq__item code {
    padding: 2px 5px;
    color: #315a8a;
    background: #f2f6fb;
    border-radius: 4px;
    font-family: Consolas, "Liberation Mono", monospace;
    font-size: .92em;
}

.doc-page .code-line p b {
    display: inline-block;
    min-width: 76px;
    color: var(--site-text);
    font-weight: 500;
}

.doc-page .code-line h4 {
    margin: 0 0 10px;
    color: var(--site-text);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
}

.doc-page .layui-table {
    width: 100%;
    margin: 0;
    color: var(--site-text-secondary);
    font-size: 14px;
    border-color: #e7ebf0;
    table-layout: fixed;
}

.doc-page .layui-table thead tr {
    background: #f7faff;
}

.doc-page .layui-table th,
.doc-page .layui-table td {
    padding: 12px 14px;
    line-height: 1.65;
    border-color: #e7ebf0;
}

.doc-page .layui-table th {
    color: #3d4a5c;
    font-weight: 600;
}

.doc-page .layui-table tr > :first-child:nth-last-child(4) {
    width: 18%;
}

.doc-page .layui-table tr > :nth-child(2):nth-last-child(3) {
    width: 11%;
}

.doc-page .layui-table tr > :nth-child(3):nth-last-child(2) {
    width: 17%;
}

.doc-page .layui-table tr > :nth-child(4):last-child {
    width: 54%;
}

.doc-page .layui-table tr > :first-child:nth-last-child(3) {
    width: 24%;
}

.doc-page .layui-table tr > :nth-child(2):nth-last-child(2) {
    width: 20%;
}

.doc-page .layui-table tr > :nth-child(3):last-child {
    width: 56%;
}

.doc-page .layui-table td:first-child,
.doc-page .layui-table td:nth-child(2):nth-last-child(2),
.doc-page .layui-table td:nth-child(3):nth-last-child(2) {
    color: #334155;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 13px;
}

.doc-page .layui-table.doc-parameter-table--grouped tr > th,
.doc-page .layui-table.doc-parameter-table--grouped tr > td {
    width: auto;
    overflow-wrap: anywhere;
}

.doc-page .layui-table.doc-parameter-table--grouped tr > td {
    color: var(--site-text-secondary);
    font-family: inherit;
    font-size: 14px;
}

.doc-page .layui-table a {
    color: var(--site-primary) !important;
}

.doc-page .layui-code {
    margin: 0;
    color: #abb2bf;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.8;
    background: #282c34;
    border: 1px solid #3b4048;
    border-radius: 8px;
}

.doc-page .layui-code code.hljs {
    padding: 12px 18px;
    color: inherit;
    background: transparent;
    border-radius: inherit;
    font: inherit;
    font-variant-ligatures: none;
    -webkit-font-smoothing: antialiased;
}

/* 代码块复制按钮：按钮挂在 .doc-code 容器上，代码横向滚动时位置保持固定 */
.doc-page .doc-code {
    position: relative;
}

.doc-page .doc-code .layui-code code.hljs {
    padding-right: 76px;
}

.doc-page .doc-code__copy {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
    min-width: 52px;
    height: 26px;
    padding: 0 10px;
    color: #9aa3ad;
    font-size: 12px;
    line-height: 24px;
    text-align: center;
    background: rgba(40, 44, 52, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    cursor: pointer;
    transition: color var(--site-transition), background var(--site-transition),
        border-color var(--site-transition);
}

.doc-page .doc-code__copy:hover,
.doc-page .doc-code__copy:focus {
    color: #fff;
    background: #3b4048;
    border-color: rgba(255, 255, 255, 0.28);
}

.doc-page .doc-code__copy.is-copied {
    color: #7fd18b;
    border-color: rgba(127, 209, 139, 0.5);
}

.doc-page .doc-code__copy.is-failed {
    color: #ff9a9a;
    border-color: rgba(255, 154, 154, 0.5);
}

.doc-page .doc-code-example__hint {
    height: auto;
    margin: -4px 0 12px;
    color: var(--site-text-secondary);
    font-size: 13px;
    line-height: 1.65;
}

.doc-code-example__tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0 0 12px;
    border-bottom: 1px solid #e7ebf0;
}

.doc-code-example__tab {
    min-height: 36px;
    padding: 0;
    color: var(--site-text-secondary);
    font-size: 14px;
    line-height: 34px;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: color var(--site-transition), border-color var(--site-transition);
}

.doc-page .doc-nav__item:hover, .doc-page .doc-nav__item:focus,
.doc-code-example__tab:hover, .doc-code-example__tab:focus {
    color: var(--site-primary);
    background: transparent;
}

.doc-code-example__tab.is-active {
    color: var(--site-primary);
    font-weight: 600;
    border-bottom-color: var(--site-primary);
}

.doc-page__directory-trigger, .doc-page__directory-backdrop, .doc-page__sidebar-header,
.doc-code-example__panel[hidden] {
    display: none;
}

.doc-demo__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.doc-demo__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 36px;
    padding: 6px 16px;
    color: var(--site-text-secondary);
    font-size: 14px;
    line-height: 22px;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
}

.doc-demo__button:hover {
    color: var(--site-primary);
    border-color: var(--site-primary);
}

.doc-demo__button--primary,
.doc-demo__button--primary:hover {
    color: #fff;
    background: var(--site-primary);
    border-color: var(--site-primary);
}

.doc-demo__button--primary:hover {
    background: var(--site-primary-hover);
    border-color: var(--site-primary-hover);
}

.doc-demo a:focus-visible {
    outline: 2px solid var(--site-primary);
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .doc-demo__button { min-height: 44px; }

}
.doc-page__outline {
    position: sticky;
    top: 34px;
    padding: 8px 0 8px 16px;
    border-left: 1px solid #e9edf2;
}

.doc-page__outline-title {
    margin-bottom: 10px;
    color: var(--site-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

.doc-page__outline a {
    display: block;
    padding: 5px 0;
    color: var(--site-text-secondary);
    font-size: 13px;
    line-height: 1.5;
    transition: color var(--site-transition);
}

.doc-faq__item a,
.doc-page__outline a:hover, .doc-page__outline a:focus {
    color: var(--site-primary);
}

@media (max-width: 1260px) {
    .doc-page__layout--with-outline {
        grid-template-columns: 208px minmax(0, 1fr);

    }

    .doc-page__outline {
        display: none;
    }

}
@media (max-width: 1100px) {
    .doc-page__layout {
        grid-template-columns: 204px minmax(0, 1fr);
        gap: 20px;
    }

    .doc-page__layout:before {
        left: 204px;
    }

    .doc-page .code-line {
        padding-right: 26px;
        padding-left: 26px;
    }

}
@media (max-width: 767px) {
    .doc-receipt-notes,
    .doc-page {
        padding-top: 24px;
    }

    .doc-page__layout {
        display: block;
    }

    .doc-page__layout:before {
        display: none;
    }

    .doc-page__sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 122;
        display: flex;
        flex-direction: column;
        width: min(300px, 86vw);
        margin: 0;
        padding: 0;
        overflow: hidden;
        background: #fff;
        border: 0;
        box-shadow: 8px 0 24px rgba(15, 23, 42, .12);
        transform: translateX(-105%);
        transition: transform .22s ease-out;
    }

    .doc-page__sidebar.is-open {
        transform: translateX(0);
    }

    .doc-page__directory-trigger {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        min-height: 44px;
        margin: 0 0 20px;
        padding: 4px 16px;
        color: var(--site-text);
        font-size: 15px;
        line-height: 1.4;
        cursor: pointer;
        touch-action: manipulation;
        background: #fff;
        border: 1px solid #d9d9d9;
        border-radius: 6px;
        box-shadow: 0 2px 0 rgba(0, 0, 0, .02);
    }

    .doc-page__directory-trigger:hover,
    .doc-page__directory-trigger:focus {
        color: var(--site-primary);
        border-color: var(--site-primary);
    }

    .doc-page__directory-trigger-icon {
        position: relative;
        width: 15px;
        height: 12px;
        border-top: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor;
    }

    .doc-page__directory-trigger-icon:after {
        position: absolute;
        top: 50%;
        right: 0;
        left: 0;
        height: 1.5px;
        content: '';
        background: currentColor;
        transform: translateY(-50%);
    }

    .doc-page__directory-backdrop.is-open {
        position: fixed;
        inset: 0;
        z-index: 121;
        display: block;
        background: rgba(0, 0, 0, .45);
    }

    .doc-page__sidebar-header {
        display: flex;
        flex: 0 0 57px;
        align-items: center;
        gap: 14px;
        height: 57px;
        padding: 0 24px;
        border-bottom: 1px solid var(--site-border);
    }

    .doc-page__sidebar-header strong {
        color: var(--site-text);
        font-size: 16px;
        font-weight: 600;
    }

    .doc-page__directory-close {
        position: relative;
        width: 24px;
        height: 44px;
        padding: 0;
        cursor: pointer;
        touch-action: manipulation;
        background: transparent;
        border: 0;
    }

    .doc-page__directory-close span:before,
    .doc-page__directory-close span:after {
        position: absolute;
        top: 21px;
        left: 4px;
        width: 16px;
        height: 1px;
        content: '';
        background: var(--site-text-muted);
    }

    .doc-page__directory-close span:before {
        transform: rotate(45deg);
    }

    .doc-page__directory-close span:after {
        transform: rotate(-45deg);
    }

    .doc-page .doc-nav {
        display: block;
        flex: 1 1 auto;
        max-height: none;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 14px 24px 24px;
        white-space: normal;

    }

    .doc-page .doc-nav__group {
        display: block;
        margin: 0 0 8px;
        padding: 0;
    }

    .doc-page .doc-nav__heading {

        width: 100%;
    }

    .doc-page .doc-nav__toggle {
        flex-basis: 44px;
        min-height: 44px;
    }

    .doc-page .doc-nav__item, .doc-page .doc-nav__item--child {
        flex: 0 0 auto;
        min-height: 44px;
        padding: 8px 16px;

        line-height: 1.5;
        white-space: normal;
        border-radius: 8px;
    }

    .doc-page .doc-nav__item--child {
        padding-left: 40px;
    }

    .doc-page .doc-nav__item.is-active {
        color: var(--site-primary);
        background: var(--site-primary-soft);
    }

    .doc-page__intro {
        padding: 0 0 24px;
    }

    .doc-page__intro h1 {
        font-size: 24px;
    }

    .doc-page__quickstart {
        margin-bottom: 24px;
        padding: 16px;
    }

    .doc-page__quickstart-list {
        grid-template-columns: 1fr;
        gap: 14px;

    }

    .doc-interface-list,
    .doc-interface-list__group + .doc-interface-list__group {
        margin-top: 28px;
    }

    .doc-interface-list__group h2 {
        margin-bottom: 12px;
        font-size: 17px;
    }

    .doc-interface-list th,
    .doc-interface-list td {
        padding: 12px 10px;
        font-size: 13px;
        line-height: 1.65;
    }

    .doc-page .code-line {

        padding: 0;

    }

    .doc-page .code-line h1 {
        margin-bottom: 16px;
        font-size: 18px;
    }

    .doc-page .code-line p b {
        min-width: 70px;
    }

    .doc-page .code-line > .doc-section {
        margin-top: 20px !important;
        overflow-x: auto;
    }

    .doc-page .layui-table {
        min-width: 620px;
    }

}
.doc-section { margin: 20px 0 0; }

/* Shared document annotations and reference links. */
.doc_text_small { font-size: 12px; }
.doc_link_muted { color: #393d49; }
