.head_box_mx {
    color: white;
    position: relative;
    text-align: center;
    box-sizing: border-box;
    margin-top: -100px;
    padding: 100px 20px 120px;
    width: 100%;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.moxing_background {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: var(--theme-color);
    z-index: 0;
}

.moxing_background.b.bg_1 {
    background: linear-gradient(135deg, var(--theme-color) 0%, #667eea 100%);
}

.moxing_background .b-wrap {
    position: absolute;
    left: 50%;
    right: 0;
    top: 0;
    bottom: 0;
    overflow: hidden;
}

.moxing_background .b-wrap::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: linear-gradient(257.4deg, rgba(250, 250, 250, 0.2) 2%, var(--theme-color) 80%);
}

.moxing_background .img {
    display: block;
    position: absolute;
    left: 0;
    right: -130px;
    top: -100px;
    bottom: 0;
    transform: rotate(20deg);
    filter: blur(4px);
}

.moxing_background img {
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(0.9);
    transition: transform 1s ease;
}

.moxing_head_info_post_title {
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    margin: 1rem 0 1rem 0 !important;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.mxbk_tags-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.mulu_one_two {
    display: flex;
    align-items: center;
    justify-content: center;
}

.mulu_one_two span {
    display: inline-flex;
    align-items: flex-start;
    background-color: rgba(255, 255, 250, 0.2);
    color: white;
    padding: 7px 10px;
    margin-right: 5px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 14px;
}

.mx_footer_meta {
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    flex-wrap: wrap;
    margin-top: 30px;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.mx_footer_meta span {
    margin-right: 5px;
}

.mx_waves {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8vh;
    margin-bottom: 0;
    min-height: 50px;
    max-height: 100px;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.mx_waves .parallax > use {
    animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.mx_waves .parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.mx_waves .parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.mx_waves .parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}

.mx_waves .parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes move-forever {
    0% { transform: translate3d(-90px, 0, 0); }
    100% { transform: translate3d(85px, 0, 0); }
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in-up {
    position: relative;
    animation: fade-in-up 0.5s ease-out forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.api-content-wrap .fixed-wrap-content {
    margin-left: 0;
    width: 100%;
}

.links-card .pay-tag {
    font-size: 10px;
    padding: 3px 6px;
    right: auto;
    width: auto;
    top: 0;
    left: auto;
    right: 0;
    border-radius: 0 var(--main-radius) 0 var(--main-radius);
    background: var(--this-bg, rgba(0, 0, 0, 0.5));
    color: var(--this-color, #fff);
    line-height: 1.4;
    z-index: 1;
}

.api-endpoint {
    margin-bottom: 20px;
}

.api-endpoint-url code,
.api-endpoint-badge code {
    font-size: 1.1em;
    padding: 6px 12px;
    border-radius: var(--main-radius);
    background: rgba(0, 0, 0, 0.05);
}

.api-endpoint-badge code {
    background: var(--focus-color-opacity1);
    color: var(--theme-color);
    font-weight: bold;
}

.api-description {
    margin-bottom: 20px;
}

.api-params-table,
.api-headers-table,
.api-resp-codes-table,
.api-error-codes-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: var(--main-bg-color);
    border-radius: var(--main-radius);
    overflow: hidden;
}

.api-params-table th,
.api-params-table td,
.api-headers-table th,
.api-headers-table td,
.api-resp-codes-table th,
.api-resp-codes-table td,
.api-error-codes-table th,
.api-error-codes-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--main-border-color);
}

.api-params-table th,
.api-headers-table th,
.api-resp-codes-table th,
.api-error-codes-table th {
    background: var(--focus-color-opacity05);
    font-weight: 600;
}

.api-params-table tbody tr:last-child td,
.api-headers-table tbody tr:last-child td,
.api-resp-codes-table tbody tr:last-child td,
.api-error-codes-table tbody tr:last-child td {
    border-bottom: none;
}

.api-params-table code,
.api-headers-table code,
.api-resp-codes-table code,
.api-error-codes-table code {
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
}

.api-test-form {
    padding: 10px 0;
}

.api-test-form .form-group {
    margin-bottom: 15px;
}

.api-test-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

.api-test-form .form-control {
    width: 100%;
}

.api-test-form .but {
    margin-right: 10px;
}

#test-response {
    min-height: 60px;
    padding: 15px;
    background: var(--main-bg-color);
    border: 1px solid var(--main-border-color);
    border-radius: var(--main-radius);
    white-space: pre-wrap;
    word-break: break-all;
    font-family: monospace;
}

.post-tab .tab-content {
    padding-top: 15px;
}

.post-tab .tab-pane {
    display: none;
}

.post-tab .tab-pane.active.in {
    display: block;
}

.post-tab .tab-pane pre {
    background: var(--main-bg-color);
    border: 1px solid var(--main-border-color);
    border-radius: var(--main-radius);
    padding: 15px;
    overflow-x: auto;
}

.post-tab .tab-pane pre code {
    background: transparent;
    padding: 0;
    display: block;
    font-family: monospace;
    line-height: 1.6;
}

@media screen and (max-width: 767px) {
    .head_box_mx {
        padding: 70px 15px 80px;
        min-height: 40vh;
        margin-top: -60px;
    }

    .moxing_head_info_post_title {
        font-size: 1.8rem;
        margin: 10px 0;
    }

    .mxbk_tags-container {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }

    .mulu_one_two {
        flex-wrap: wrap;
        justify-content: center;
    }

    .mulu_one_two span {
        padding: 5px 8px;
        font-size: 12px;
        margin-right: 0;
    }

    .mx_footer_meta {
        margin-top: 10px;
        padding: 0 10px;
    }

    .mx_waves {
        display: block;
        height: 6vh;
        min-height: 40px;
    }

    .links-card .pay-tag {
        font-size: 9px;
        padding: 2px;
    }

    .api-params,
    .api-headers,
    .api-resp-codes,
    .api-error-codes {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 15px;
    }

    .api-params-table,
    .api-headers-table,
    .api-resp-codes-table,
    .api-error-codes-table {
        min-width: 600px;
        display: table;
    }

    .api-params-table thead,
    .api-headers-table thead,
    .api-resp-codes-table thead,
    .api-error-codes-table thead {
        display: table-header-group;
    }

    .api-test-form .form-group {
        margin-bottom: 12px;
    }

    .api-test-form .but {
        display: block;
        width: 100%;
        margin-bottom: 10px;
    }

    .api-test-form .but.ml10 {
        margin-left: 0;
    }

    .api-test-form .relative {
        display: flex;
        flex-direction: column;
    }

    .post-tab .tab-nav-theme {
        white-space: nowrap;
    }

    .post-tab .tab-nav-theme li {
        float: none;
        display: inline-block;
    }

    .api-endpoint-url code {
        display: block;
        word-break: break-all;
        white-space: pre-wrap;
    }
}

/* 聚合管理 - 已开通页移动端适配 */
.api-mgr-myvip .api-mgr-user-box {
    display: block;
}

.api-mgr-info-card {
    flex: 1 1 0;
    min-width: 0;
}

@media screen and (max-width: 767px) {
    .api-mgr-myvip {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 15px !important;
        padding: 15px;
    }

    .api-mgr-myvip .api-mgr-user-box {
        width: 100%;
    }

    .api-mgr-myvip .vip-img.abs-right {
        display: none;
    }

    .api-mgr-dashboard > .flex {
        flex-wrap: wrap;
    }

    .api-mgr-dashboard > .flex .api-mgr-info-card {
        flex-basis: calc(50% - 5px);
        min-width: calc(50% - 5px);
        margin-bottom: 10px;
    }
}

@media screen and (max-width: 480px) {
    .api-mgr-dashboard > .flex .api-mgr-info-card {
        flex-basis: 100%;
        min-width: 100%;
    }
}
