/* 人员能力验证证书查询页 — 手机/窄屏适配（在 style.css 之后加载） */

@media screen and (max-width: 1024px) {
    html {
        -webkit-text-size-adjust: 100%;
    }

    body {
        overflow-x: hidden;
    }

    .mid {
        padding: 20px 0 28px;
    }

    .wrap {
        max-width: 100%;
        min-width: 0;
        padding-left: 14px;
        padding-right: 14px;
        box-sizing: border-box;
    }

    .wrap.flex-between {
        flex-direction: column;
        align-items: stretch !important;
        row-gap: 16px;
    }

    .zscx {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
        height: auto;
        min-height: 220px;
        aspect-ratio: 418 / 486;
        background-size: contain;
        background-position: center bottom;
        flex-shrink: 0;
    }

    @supports not (aspect-ratio: 1) {
        .zscx {
            min-height: min(486px, 68vw);
        }
    }

    .cxr {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 0;
        margin: 0 auto;
    }

    .cxr::before {
        width: min(42vw, 180px);
        height: auto;
        min-height: 40px;
        background-size: contain;
        background-position: right top;
    }

    .cxr::after {
        width: min(48vw, 200px);
        height: auto;
        min-height: 90px;
        background-size: contain;
        background-position: left bottom;
        opacity: 0.9;
    }

    .cxrm {
        width: 100%;
        max-width: 100%;
        padding: 12px 14px 18px;
        box-sizing: border-box;
    }

    .cxrm li {
        padding: 18px 0 6px;
    }

    .cxrm li p {
        font-size: 15px;
    }

    .cx_input {
        font-size: 16px;
        min-height: 44px;
        line-height: 44px;
        padding-right: 8px;
    }

    /* 避免提示文字与输入框在窄屏重叠 */
    .tip {
        position: static;
        display: block;
        line-height: 1.4;
        margin-top: 6px;
        font-size: 13px;
    }

    .pt50 {
        padding-top: 24px !important;
    }

    .cx_btn {
        width: 100%;
        max-width: 100%;
        height: 52px;
        line-height: 52px;
        border-radius: 26px;
    }
}

@media screen and (max-width: 480px) {
    .mid {
        padding: 16px 0 24px;
    }

    .wrap {
        padding-left: 12px;
        padding-right: 12px;
    }

    .zscx {
        min-height: 200px;
        box-shadow: 0 0 12px rgba(11, 84, 147, 0.08);
    }

    .cxr::before,
    .cxr::after {
        opacity: 0.35;
    }

    .cxrm li {
        padding: 14px 0 4px;
    }
}
