* {
    margin: 0;
    padding: 0;
}

img {
    display: inline-block;
    width: 100%;
}

body,
html {
    height: 100%;
    touch-action: manipulation;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    user-select: none;
    /* 禁止双击放大 */
    overscroll-behavior: none;
    height: 100vh;
    height: -webkit-fill-available;
    height: 100dvh;
    /* 防止滚动条跳动 */
    scrollbar-gutter: stable;
}

.ams-pane {
    font-size: 14rem;
    color: #10162f;
}

.ams-main {
    display: flex;
    flex-direction: column;
    background: #f4f5f7;
    height: 100vh;
    height: -webkit-fill-available;
    height: 100dvh;
    /* 防止滚动条跳动 */
    scrollbar-gutter: stable;
    transition: height 0.1s;
}

.ams-visible-box {
    height: 100dvh !important; /* 动态视口高度，自动排除浏览器UI */
}

.ams-header {
    background: #fff;
    height: 64rem;
    padding: 0 16rem;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: space-between;
    position: sticky !important;
    bottom: 0rem;
    top: 0rem;
    z-index: 9;
    flex-shrink: 0;
    box-shadow: 0rem -4rem 12rem 0rem rgba(8, 21, 50, 0.2);
}

.ams-header_left-logo {
    width: 40rem;
    height: 40rem;
}
.ams-header_left-logo img{
    width: 40rem;
    height: 40rem;
    border-radius: 6px;
    object-fit: cover;
}

/* pc元素适配内容 */
.ams-header_left-desc {
    display: none;
}

.ams-header_right {
    display: flex;
    align-content: center;
    line-height: 20rem;
}

.ams-header_right img {
    width: 22rem;
    height: 22rem;
    margin-right: 6rem;
}

.ams-content-box {
    padding: 0 16rem;
    height: 100%;
    overflow: auto;
    flex-grow: 1 !important; /* 占据剩余空间 */
    min-height: 0 !important; /* 关键：允许缩小 */
    overflow: auto; /* 内容溢出时滚动 */
}

.p-c-box {
    overflow: hidden;
    width: 100%;
    height: 347rem;
    background: #ffffff;
    border-radius: 10rem 10rem 10rem 10rem;
    margin-top: 16rem;
    text-align: center;
}

.c-h1 {
    margin-top: 16rem;
    font-weight: 500;
    font-size: 14rem;
    color: #10162f;
}

.c-money {
    font-weight: bold;
    font-size: 32rem;
    line-height: 58rem;
}

.c-h2 {
    font-weight: 400;
    font-size: 12rem;
    color: #8a8c92;
}

.c-qr-code {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #ffffff;
    box-shadow: 2rem 2rem 16rem 0rem rgba(26, 39, 91, 0.08);
    border-radius: 4rem 4rem 4rem 4rem;
    width: 170rem;
    height: 170rem;
    box-sizing: border-box;
    margin: 22rem auto 14rem;
}

.p-c-order {
    width: 100%;
    margin-top: 16rem;
}

.c-o-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 400;
    font-size: 14rem;
    color: #8a8c92;
    text-align: left;
    min-height: 50rem;
    margin: 0 16rem;
    border-bottom: 1rem solid #f1f2f5;
}

.item-right {
    font-weight: 500;
    font-size: 14rem;
    color: #10162f;
}

.p-c-text {
    margin-top: 16rem;
    margin-bottom: 6rem;
    font-weight: 400;
    font-size: 12rem;
    color: #626262;
    line-height: 20rem;
}

.ams-foot {
    width: 100%;
    height: 60rem;
    background: #ffffff;
    padding: 16rem;
    box-sizing: border-box;
    box-shadow: 0rem -4rem 12rem 0rem rgba(8, 21, 50, 0.08);
    position: fixed;
    bottom: 0;
    left: 0;
}
.ams-foot-more{
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: space-between;
}
.ams-foot-one{
    display: flex;
    align-content: center;
    align-items: center;
    justify-content: center;
}


.p-g-button {
    text-align: center;
    height: 40rem;
    /*width: 164rem;*/
    line-height: 40rem;
    font-weight: 500;
    padding: 0 10rem;
    box-sizing: border-box;
    font-size: 14rem;
    color: #ffffff;
    background: #2f50f7;
    box-shadow: 0rem 1rem 3rem 0rem rgba(0, 0, 0, 0.06);
    border-radius: 6rem 6rem 6rem 6rem;
}

.p-c-img-b,
.ams-button {
    display: none;
}

.c-o-item-border {
    padding: 16rem 0rem;
    background: #fff;
    border-radius: 10rem 10rem 10rem 10rem;
}

.ams-content {
    padding-bottom: 62rem;
    /*flex-grow: 1; !* 占据剩余空间 *!*/
    /*min-height: 0; !* 关键：允许缩小 *!*/
    overflow: hidden;
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
}

.str-order {
    width: auto;
    width: 220rem;
    word-break: break-all;
    white-space: pre-line;
    line-height: 1.5;
    text-align: right;
    padding: 8rem 0rem;
    box-sizing: border-box;
}

canvas {
    margin: 5% auto;
    width: 90%;
    height: 90%;
}

.overtime-s-center {
    flex-grow: 1; /* 占据剩余空间 */
    min-height: 0; /* 关键：允许缩小 */
    overflow: auto; /* 内容溢出时滚动 */
}

#overtime .overtime-content {
    height: 100%;
    padding: 0 16rem;
    overflow: auto;
}

#overtime .p-c-box {
    overflow: hidden;
    width: 100%;
    height: 377rem;
    background: #fff;
    border-radius: 10rem;
    margin-top: 16rem;
    text-align: center;
    margin-bottom: 24rem;
    padding: 16rem;
    padding-top: 60rem;
    box-sizing: border-box;
}

#overtime .over-img {
    width: 58rem;
    height: 58rem;
    margin-bottom: 24rem;
}

#overtime .c-h1 {
    font-weight: 600;
    font-size: 24rem;
    color: #10162f;
    margin-top: 0rem;
}

#overtime .c-h2 {
    font-weight: 400;
    font-size: 16rem;
    color: #6b6d75;
    margin-top: 16rem;
}

#overtime .c-h3 {
    font-weight: 400;
    font-size: 14rem;
    color: #8a8c92;
    margin-top: 40rem;
}

/* 当屏幕宽度大于 768 时应用的样式 */
@media all and (min-width: 769px) and (orientation: landscape) {
    /* 在这里添加你的样式规则 */
    .ams-foot {
        display: none;
    }

    .ams-main {
        display: flex;
        flex-direction: column;
        background: #f4f5f7;
        height: 100vh;
    }

    .ams-header {
        height: 88rem;
        padding: 0 32rem;
    }

    .ams-header_left {
        font-size: 16rem;
        color: #848795;
        display: flex;
        align-items: center;
        align-content: center;
        justify-content: center;
    }

    .ams-header_left-desc {
        display: block;
        height: 20rem;
        line-height: 20rem;
        margin-left: 16rem;
        padding-left: 16rem;
        border-left: 1rem solid #d9d9d9;
    }

    .ams-header_right {
        font-size: 16rem;
        line-height: 24rem;
    }

    .ams-header_right img {
        width: 24rem;
        height: 24rem;
        margin-right: 6rem;
    }

    .ams-content {
        flex: 1;
        /* height: 542rem; */
        /* margin: 225rem auto; */
        display: flex;
        align-items: center;
        align-content: center;
        justify-content: center;
    }

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

    .p-c-box,
    .p-c-img-b,
    .p-c-order {
        display: flex;
        flex-direction: column;
        border-radius: 0;
        height: 100%;
        margin: 0;
        height: 542rem;
        box-sizing: border-box;
    }

    .c-o-item-border {
        background: transparent;
    }

    .p-c-img-b {
        display: block;
    }

    .ams-content-box-b {
        display: flex;
        box-shadow: 2rem 2rem 20rem 0rem rgba(22, 28, 51, 0.04);
        border-radius: 12rem 12rem 12rem 12rem;
    }

    .p-c-box {
        width: 416rem;
    }

    .c-h1 {
        margin-top: 67rem;
    }

    .c-money {
        height: 74rem;
        line-height: 74rem;
        font-size: 34rem;
    }

    .c-h1 {
        font-size: 16rem;
    }

    .c-h2 {
        font-size: 14rem;
    }

    .c-qr-code {
        width: 230rem;
        height: 230rem;
        margin-top: 41rem;
        margin-bottom: 16rem;
    }

    .p-c-order {
        width: 416rem;
        background: #f9fafc;
        /* padding: 52rem 0rem; */
    }

    .c-o-item-border {
        padding-top: 42rem;
    }

    .p-c-img {
        width: auto;
        height: 100%;
        margin-left: 16rem;
        height: 542rem;
    }

    .c-o-item {
        font-size: 14rem;
        min-height: 50rem;
        line-height: 52rem;
        margin: 0 52rem;
    }

    .p-c-text {
        margin: 30rem 52rem 0rem;
    }

    .ams-button {
        flex: 1;
        display: flex;
        box-sizing: border-box;
        align-content: center;
        align-items: center;
        justify-content: center;
    }

    .p-g-button {
        overflow: hidden;
        height: 40rem;
        padding-bottom: 10rem;
        width: 148rem;
        line-height: 40rem;
        font-size: 14rem;
        cursor: pointer;
        /* transition: all 0.2s; */
        transform-origin: 50% -10%; /* 右下角 */
        animation: elastic-shake 1.4s infinite;
    }

    .p-g-button-hover {
        color: #ffffff;
        background: #fff;
        height: auto;
        animation: none;
    }
    .str-order {
        padding: 10rem 0rem;
    }

    .overtime-s-center {
        flex-grow: 1; /* 占据剩余空间 */
        min-height: 0; /* 关键：允许缩小 */
        overflow: auto; /* 内容溢出时滚动 */
    }

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

    #overtime .p-c-box {
        width: 832rem;
        height: 542rem;
        box-shadow: 2rem 2rem 20rem 0rem rgba(22, 28, 51, 0.04);
        border-radius: 12rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0rem;
    }

    #overtime .overtime-content-b {
        display: flex;
        border-radius: 12rem;
    }

    #overtime .c-h1 {
        font-size: 24rem;
    }

    #overtime .over-img {
        width: 58rem;
        height: 58rem;
        margin-bottom: 24rem;
    }

    #overtime .c-h2 {
        font-size: 16rem;
    }

    #overtime .c-h3 {
        font-size: 14rem;
        margin-top: 40rem;
    }

    #overtime .p-g-button {
        overflow: hidden;
        height: 40rem;
        padding-bottom: 10rem;
        width: 148rem;
        line-height: 40rem;
        font-size: 14rem;
        cursor: pointer;
        transform-origin: 50% -10%;
        animation: elastic-shake 1.4s infinite;
    }

    #overtime .p-g-button-hover {
        color: #2f50f7;
        background: #fff;
        height: auto;
        padding-bottom: 10rem;
        width: 148rem;
        line-height: 40rem;
        font-size: 14rem;
        animation: none;
        transform: translateY(-90rem);
    }
}

.h5-p-b {
    background: #fff;
}

.c-qr-code-img {
    width: 90%;
    height: 90%;
    margin: 0 auto;
    overflow: hidden;
}

.btn-disabled{
    background: #999999;
    color: #ffffff;
}

.ams-status-fail{
    font-weight: 600;
    color: #f56c6c;
}
.ams-status-success{
    font-weight: 600;
    color: #67c23a;
}

.loading-box{
    width: 100%;
    height: 100%;
    flex-grow: 1 !important; /* 占据剩余空间 */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 加载器样式 */
.loading-box-loader {
    width: 50px;
    height: 50px;
    border: 6px solid #e3e6e8;
    border-top: 6px solid #999999;
    border-radius: 50%;
    animation: loading-spin 2s linear infinite;
}

/* 旋转动画 */
@keyframes loading-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes elastic-shake {
    0% {
        transform: translateX(0rem) rotate(3deg);
    }

    50% {
        transform: translateX(0rem) rotate(-3deg);
    }

    100% {
        transform: translateX(0rem) rotate(3deg);
    }
}