.resume-apply-modal[hidden],
.resume-apply-modal [hidden] { display: none !important; }

.resume-apply-modal {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(82, 84, 91, 0.48);
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.resume-auth-dialog .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.resume-auth-dialog {
    position: relative;
    width: min(430px, 100%);
    min-height: 365px;
    max-height: calc(100vh - 48px);
    overflow: auto;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    color: #333;
    outline: none;
}

.resume-auth-close {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #c7c7c7;
    font-size: 27px;
    font-weight: 200;
    line-height: 22px;
    cursor: pointer;
}

.resume-auth-close:hover,
.resume-auth-close:focus-visible { color: #e53232; }

.resume-auth-mode-switch {
    position: absolute;
    z-index: 2;
    top: 17px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #999;
    font-size: 12px;
    cursor: pointer;
}

.resume-auth-mode-switch > span:last-child {
    display: block;
    min-width: 78px;
    padding: 6px 8px;
    border-radius: 0 0 4px 4px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(28, 36, 49, 0.08);
}

.resume-auth-mode-icon {
    position: relative;
    display: block;
    width: 24px;
    height: 24px;
    border: 0;
    background: transparent url("/trade_2026_v1/_assets/local-img/icon-pc.png") center / contain no-repeat;
}

.resume-auth-mode-icon::after {
    display: none;
}

.resume-auth-mode-switch.is-qr .resume-auth-mode-icon {
    background-image: url("/trade_2026_v1/_assets/local-img/lg_sw_qr.png");
}

.resume-auth-mode-switch.is-phone .resume-auth-mode-icon {
    width: 24px;
    height: 24px;
    margin-left: 0;
    border: 0;
    background: transparent url("/trade_2026_v1/_assets/local-img/reg_sw_qr.png") center / contain no-repeat;
}

.resume-auth-content {
    width: min(310px, calc(100% - 40px));
    margin: 0 auto;
    padding: 52px 0 22px;
    text-align: center;
}

/* 扫码、短信和密码登录共用固定内容高度，切换方式时弹窗不再跳动。 */
.resume-auth-content > [data-auth-view="qr-login"],
.resume-auth-content > [data-auth-view="form-login"] {
    height: 354px;
}

/* 微信与手机号注册共用固定内容高度，切换注册方式时弹窗不再跳动。 */
.resume-auth-content > [data-auth-view="wechat-register"],
.resume-auth-content > [data-auth-view="phone-register"] {
    height: 328px;
}

.resume-auth-tabs {
    display: flex;
    justify-content: center;
    gap: 62px;
    margin-bottom: 24px;
}

.resume-auth-tabs button,
.resume-auth-heading {
    position: relative;
    margin: 0;
    padding: 0 0 9px;
    border: 0;
    background: transparent;
    color: #666;
    font-size: 17px;
    font-weight: 400;
    white-space: nowrap;
}

.resume-auth-tabs button { cursor: pointer; }

.resume-auth-tabs button.is-active {
    color: #222;
    font-weight: 700;
}

.resume-auth-tabs button.is-active::after,
.resume-auth-heading::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 36px;
    height: 2px;
    border-radius: 4px;
    background: #e33232;
    transform: translateX(-50%);
}

.resume-auth-qr {
    display: grid;
    grid-template-columns: repeat(29, 1fr);
    width: 150px;
    height: 150px;
    margin: 0 auto 22px;
    padding: 4px;
    background: #fff;
}

.resume-auth-qr > i { background: #fff; }
.resume-auth-qr > i.is-dark { background: #050505; }

.resume-auth-qr-image {
    object-fit: contain;
}

.resume-auth-qr-copy,
.resume-auth-register-copy {
    color: #999;
    font-size: 13px;
    line-height: 1.65;
}

.resume-auth-qr-copy p,
.resume-auth-register-copy p { margin: 0; }
.resume-auth-qr-copy strong { color: #111; }

.resume-auth-highlight {
    display: inline-block;
    margin-top: 7px !important;
    padding: 1px 5px;
    background: #ffe4d9;
    color: #ff684b;
}

.resume-auth-bottom-link {
    margin: 11px 0 0;
    color: #999;
    font-size: 13px;
}

.resume-auth-bottom-link button,
.resume-auth-register-link,
.resume-auth-forgot,
.resume-auth-agreement button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #e63131;
    font: inherit;
    cursor: pointer;
}

.resume-auth-form {
    display: grid;
    gap: 21px;
    margin-top: 4px;
    text-align: left;
}

.resume-auth-form > label:not(.resume-auth-agreement),
.resume-auth-code-field,
.resume-auth-password-field {
    display: flex;
    align-items: center;
    height: 44px;
    overflow: hidden;
    border-radius: 5px;
    background: #f5f5f6;
}

.resume-auth-form input[type="text"],
.resume-auth-form input[type="tel"],
.resume-auth-form input[type="password"] {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 22px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #333;
    font: inherit;
    font-size: 13px;
}

.resume-auth-form input::placeholder { color: #777; opacity: 1; }

.resume-auth-form label.is-invalid,
.resume-auth-form .resume-auth-code-field.is-invalid,
.resume-auth-form .resume-auth-password-field.is-invalid {
    box-shadow: inset 0 0 0 1px #ed3d3d;
}

.resume-auth-code-field > button {
    flex: 0 0 108px;
    height: 50%;
    border: 0;
    border-left: 1px solid #999;
    background: transparent;
    color: #e71919;
    font-size: 13px;
    cursor: pointer;
}

.resume-auth-password-field > button {
    flex: 0 0 38px;
    height: 100%;
    border: 0;
    background: transparent url("/trade_2026_v1/_assets/local-img/eye.png") center bottom / 18px auto no-repeat;
    cursor: pointer;
}

.resume-auth-password-field > button.is-visible {
    background-position: center top;
}

.resume-auth-agreement-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: 14px;
}

.resume-auth-agreement {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #999;
    font-size: 12px;
    line-height: 14px;
    white-space: nowrap;
}

.resume-auth-forgot {
    flex: 0 0 auto;
    font-size: 12px;
    line-height: 14px;
    white-space: nowrap;
}

.resume-auth-agreement input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: #ef3d3d;
}

.resume-auth-primary {
    height: 40px;
    border: 0;
    border-radius: 5px;
    background: #f64040;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.resume-auth-register-link {
    margin-top: 12px;
    color: #777;
    font-size: 14px;
}

.resume-auth-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin-top: 22px;
    color: #aaa;
    font-size: 12px;
}

.resume-auth-social button {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    cursor: pointer;
}

.resume-auth-social .is-qq {
    background-image: url("/trade_2026_v1/_assets/local-img/lg_qq.png");
}

.resume-auth-social .is-weibo {
    background-image: url("/trade_2026_v1/_assets/local-img/lg_weibo.png");
}

.resume-auth-social .is-baidu {
    background-image: url("/trade_2026_v1/_assets/local-img/lg_baidu.png");
}

.resume-auth-heading {
    display: inline-block;
    margin: 6px 0 30px;
    color: #222;
    font-weight: 700;
}

.resume-auth-register-copy { margin-top: 31px; }
.resume-auth-register-form { margin-top: -7px; }

.resume-auth-toast {
    position: fixed;
    z-index: 1002;
    left: 50%;
    bottom: 45px;
    max-width: calc(100vw - 40px);
    transform: translateX(-50%);
    padding: 9px 18px;
    border-radius: 22px;
    background: rgba(45, 45, 45, 0.94);
    color: #fff;
    font-size: 14px;
    text-align: center;
}

.resume-apply-trigger {
    padding: 4px 10px;
    border: 0;
    border-radius: 999px;
    background: #eef3ff;
    color: #315fbe;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.resume-apply-trigger:hover,
.resume-apply-trigger:focus-visible { background: #315fbe; color: #fff; }
body.resume-modal-open { overflow: hidden; }

@media (max-width: 680px) {
    .resume-apply-modal { padding: 12px; }
    .resume-auth-dialog { min-height: min(365px, calc(100vh - 24px)); }
}
