body.public-guest-page {
    --public-accent: #087aa8;
    --public-accent-dark: #075e82;
    --public-ink: #243241;
    --public-muted: #506172;
    --public-border: #d5e1ef;
    --public-surface: #ffffff;
    --public-surface-soft: #f3f8ff;
    min-height: 100vh;
    background: #edf5ff;
    color: var(--public-ink);
}

body.public-guest-page {
    min-width: 0;
    max-width: none;
}

body.public-guest-page > main {
    min-height: 100vh;
}

body.public-guest-page main > article {
    box-sizing: border-box;
    min-height: 100vh;
    height: auto;
    padding: 2rem;
    overflow: visible;
}

body.public-guest-page main > article > .content {
    box-sizing: border-box;
    min-width: 0;
    height: auto;
    margin: auto;
    color: var(--public-ink);
}

body.public-guest-page .publicBackLink {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.35rem;
    margin: 1.25rem 0.85rem 0;
    padding: 0 0.65rem;
    border-radius: 0.5rem;
    color: var(--public-accent-dark);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 2rem;
    text-decoration: none;
    transition: background-color 160ms ease-out;
}

body.public-guest-page .publicBackLink::before {
    content: "‹";
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1;
}

body.public-guest-page .publicBackLink:hover {
    background: rgba(8, 122, 168, 0.08);
    text-decoration: none;
}

body.public-contact-page .publicBackLink {
    margin: 0 0 1.25rem -0.65rem;
}

body.public-guest-page .publicPageHeading,
body.public-guest-page main > article > .content > div:first-of-type {
    box-sizing: border-box;
}

body.public-guest-page .publicPageTitle,
body.public-guest-page .hintTitle {
    color: var(--public-ink);
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

body.public-guest-page .contactTitle {
    color: var(--public-muted);
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1.7;
    text-align: center;
}

body.public-contact-page .publicSecondaryAction {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    min-height: 2.5rem;
    margin-top: 0.9rem;
    padding: 0 1rem;
    border: 1px solid var(--public-border);
    border-radius: 0.7rem;
    background: #f8fbff;
    color: var(--public-accent-dark);
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 160ms ease-out, background-color 160ms ease-out;
}

body.public-contact-page .publicSecondaryAction:hover {
    border-color: var(--public-accent);
    background: var(--public-surface);
}

body.public-auth-form-page main > article {
    display: flex;
    align-items: center;
    justify-content: center;
}

body.public-auth-form-page main > article > .content {
    display: flex;
    width: 100%;
    max-width: 30rem;
    flex: none;
    flex-direction: column;
    border: 1px solid rgba(45, 84, 120, 0.14);
    border-radius: 1.5rem;
    background: var(--public-surface);
    box-shadow: 0 1.5rem 4.5rem rgba(36, 65, 92, 0.18);
    overflow: hidden;
}

body.public-forget-password-page .input_block,
body.public-forget-password-page .hintInputBox {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
}

body.public-forget-password-page main > article > .content {
    max-width: 28rem;
    padding-top: 1rem;
}

body.public-forget-password-page .publicBackLink {
    margin: 0 1rem;
}

body.public-forget-password-page .publicBackLink::before {
    content: "";
    box-sizing: border-box;
    width: 0.55rem;
    height: 0.55rem;
    flex: none;
    border-bottom: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: rotate(45deg);
}

body.public-forget-password-page .hintTitle {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 0.75rem 2rem 0.25rem;
    color: #203141;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: left;
    text-wrap: balance;
}

body.public-forget-password-page .hintInputBox form {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0.75rem 2rem 1.5rem;
    border: 0;
    border-radius: 0;
    background: transparent;
}

body.public-forget-password-page .hintInputBox form > .line {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    width: 100%;
    min-height: 0;
    margin-top: 0.75rem;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transition: none;
}

body.public-forget-password-page .hintInputBox form > .line:first-of-type {
    margin-top: 0.25rem;
}

body.public-forget-password-page .hintInputBox form > .line:focus-within {
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.public-forget-password-page .hintInputBox form > .line:not(:last-of-type)::after {
    display: none;
}

body.public-forget-password-page .hintInputBox .line > label {
    display: block;
    box-sizing: border-box;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    color: #506172;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
}

body.public-forget-password-page .hintInputBox .line > input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: 3rem;
    margin: 0;
    padding: 0 0.95rem;
    border: 1px solid #c5d3e0;
    border-radius: 0.75rem;
    background: #ffffff;
    box-shadow: none;
    color: #203141;
    font-size: 0.95rem;
    line-height: 1.4;
    outline: none;
    transition: border-color 160ms ease-out, box-shadow 160ms ease-out, background-color 160ms ease-out;
}

body.public-forget-password-page .hintInputBox .line > input::placeholder {
    color: #6a7d8f;
    opacity: 1;
}

body.public-forget-password-page .hintInputBox .line:focus-within > input {
    border-color: var(--public-accent);
    background: #f8fcff;
    box-shadow: 0 0 0 3px rgba(8, 122, 168, 0.12);
}

body.public-forget-password-page .hintInputBox .line > input[type="number"] {
    -moz-appearance: textfield;
}

body.public-forget-password-page .hintInputBox .line > input[type="number"]::-webkit-outer-spin-button,
body.public-forget-password-page .hintInputBox .line > input[type="number"]::-webkit-inner-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

body.public-forget-password-page .hintInputBox .imgCode,
body.public-forget-password-page .hintInputBox .sendCode {
    position: relative;
}

body.public-forget-password-page .hintInputBox .imgCode > input {
    padding-right: 7.25rem;
}

body.public-forget-password-page .hintInputBox .sendCode > input {
    padding-right: 6.75rem;
}

body.public-forget-password-page .hintInputBox .imgCode > img {
    position: absolute;
    right: 0.35rem;
    bottom: 0.35rem;
    z-index: 1;
    box-sizing: border-box;
    width: 6.4rem;
    height: 2.3rem;
    border: 1px solid #d7e2ec;
    border-radius: 0.45rem;
    background: #f7fafc;
    object-fit: cover;
    cursor: pointer;
}

body.public-forget-password-page .hintInputBox .imgCode > img.codeImg {
    display: none;
}

/* 覆盖 myapp / myapp-pc / FrmForgetPassword 共享样式，仅限本页 */
body.public-forget-password-page .hintInputBox form > .line:nth-of-type(n+2) {
    margin-top: 0.75rem;
}

body.public-forget-password-page .hintInputBox form > .hideLine {
    display: none;
}

body.public-forget-password-page .hintInputBox .line > input[readonly="readonly"] {
    border: 1px solid #c5d3e0;
    border-radius: 0.75rem;
    background: #f7fafc;
    color: #506172;
}

body.public-forget-password-page .hintInputBox .imgCode {
    position: relative;
}

body.public-forget-password-page .hintInputBox .sendCode > span {
    position: absolute;
    right: 0.35rem;
    bottom: 0;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: auto;
    min-width: 5.75rem;
    height: 3rem;
    margin: 0;
    padding: 0 0.65rem;
    border: 0;
    border-radius: 0.55rem;
    background: transparent !important;
    color: #075e82 !important;
    font-size: 0.86rem;
    font-weight: 650;
    line-height: 1.2;
    text-align: center;
    word-break: keep-all;
    white-space: nowrap;
    transform: none;
    cursor: pointer;
    user-select: none;
}

body.public-forget-password-page .hintInputBox .sendCode > span:hover {
    color: var(--public-accent) !important;
}

body.public-forget-password-page .hintInputBox button[type="submit"],
body.public-forget-password-page .pwd_modify button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 3rem;
    margin-top: 1rem;
    border: 0;
    border-radius: 0.7rem;
    background: #028738;
    box-shadow: 0 0.55rem 1.1rem rgba(2, 135, 56, 0.18);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 750;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 160ms ease-out, transform 160ms ease-out, box-shadow 160ms ease-out;
}

body.public-forget-password-page .hintInputBox button[type="submit"]:hover,
body.public-forget-password-page .pwd_modify button:hover {
    background: #039a40;
}

body.public-forget-password-page .hintInputBox button[type="submit"]:active,
body.public-forget-password-page .pwd_modify button:active {
    transform: translateY(1px);
    box-shadow: 0 0.3rem 0.7rem rgba(2, 135, 56, 0.14);
}

body.public-forget-password-page .hintInputBox .hint {
    box-sizing: border-box;
    width: auto;
    margin: 0.25rem 2rem 2rem;
    padding: 0.85rem 1rem;
    border: 1px solid #e4edf5;
    border-radius: 0.75rem;
    background: #f7fafc;
    color: var(--public-muted);
}

body.public-forget-password-page .hintInputBox .hint > p {
    margin: 0;
    color: inherit;
    font-size: 0.8rem;
    line-height: 1.7;
}

body.public-forget-password-page .hintInputBox .hint > p:not(:last-of-type) {
    margin-bottom: 0.35rem;
}

body.public-forget-password-page .pwd_modify {
    box-sizing: border-box;
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 2rem 2rem 2.5rem;
    gap: 0.75rem;
}

body.public-forget-password-page .pwd_modify img {
    width: 4.5rem;
    height: 4.5rem;
}

body.public-forget-password-page .pwd_modify span {
    margin: 0.25rem 0 0.5rem;
    font-size: 1.05rem;
}

body.public-forget-password-page .pwd_modify button {
    max-width: 20rem;
    margin-top: 0.5rem;
}

body.public-contact-page main > article {
    padding: 3.5rem 3rem;
}

body.public-contact-page main > article > .content {
    width: 100%;
    max-width: 64rem;
    padding: 2.5rem;
}

body.public-contact-page main > article > .content > div:first-of-type {
    margin: 0 0 1.5rem;
    padding: 0;
}

body.public-contact-page .publicPageTitle {
    display: block;
    margin-bottom: 0.5rem;
}

body.public-contact-page .bgDiv {
    width: 100%;
    max-width: 50.625rem;
    min-height: 0;
    aspect-ratio: 15 / 8;
    height: auto;
    border-radius: 1rem;
    background: var(--public-surface-soft);
}

body.public-contact-page .bgDiv > img {
    position: absolute;
    inset: 0;
    width: 100%;
    min-width: 0;
    max-width: none;
    max-height: none;
    height: 100%;
    margin: 0;
    object-fit: cover;
    opacity: 0.6;
}

body.public-contact-page .bgDiv > div > span {
    padding-left: 20px;
}

body.public-contact-page .bgDiv > div {
    box-sizing: border-box;
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: 3rem 1.75rem 1.75rem;
}

body.public-contact-page .bgDiv > div > span {
    margin-bottom: 0.75rem;
    color: var(--public-ink);
    font-size: 0.95rem;
    line-height: 1.3;
}

body.public-contact-page .bgDiv > div > span > img {
    margin-top: 0.1rem;
}

body.public-contact-page .bgDiv > div > span > span:first-of-type {
    color: #3c5367;
    font-weight: 500;
}

body.public-document-page main > article > .content {
    width: 100%;
    max-width: 56rem;
    border: 1px solid rgba(45, 84, 120, 0.14);
    border-radius: 1.5rem;
    background: var(--public-surface);
    box-shadow: 0 1.5rem 4.5rem rgba(36, 65, 92, 0.18);
    overflow: hidden;
}

body.public-document-page #page,
body.public-document-page #page > div {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    min-height: 0;
    margin: 0 !important;
    background: transparent !important;
    color: var(--public-ink) !important;
}

body.public-document-page #page > div > div {
    box-sizing: border-box;
    padding: clamp(1.5rem, 4vw, 3.5rem) !important;
}

body.public-document-page #page h1 {
    margin: 0 0 2rem !important;
    color: var(--public-ink) !important;
    font-size: clamp(1.55rem, 3vw, 2rem) !important;
    font-weight: 650 !important;
    line-height: 1.35 !important;
    text-align: center;
}

body.public-document-page #page h2 {
    margin: 2rem 0 0.9rem !important;
    padding: 0 0 0.7rem !important;
    border-bottom: 1px solid #e6eef6 !important;
    color: var(--public-ink) !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
}

body.public-document-page #page h3 {
    margin: 1.4rem 0 0.65rem !important;
    color: #33495c !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
}

body.public-document-page #page p,
body.public-document-page #page li {
    color: #33495c !important;
    font-size: 0.95rem !important;
    line-height: 1.85 !important;
    letter-spacing: 0 !important;
    word-spacing: 0 !important;
    text-align: justify;
}

body.public-document-page #page p {
    margin: 0.8rem 0 !important;
}

body.public-document-page #page ul,
body.public-document-page #page ol {
    margin: 0.8rem 0 !important;
    padding-left: 1.5rem !important;
}

body.public-document-page #page a {
    color: var(--public-accent-dark) !important;
    text-underline-offset: 0.18rem;
}

body.public-document-page #page table {
    display: block;
    width: 100% !important;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    -webkit-overflow-scrolling: touch;
}

body.public-document-page #page a {
    overflow-wrap: anywhere;
}

@media screen and (max-width: 767px),
       (max-device-aspect-ratio: 1/1) and (orientation: portrait),
       (max-aspect-ratio: 1/1) and (orientation: portrait) {
    body.public-guest-page {
        background: var(--public-surface);
    }

    body.public-guest-page main > article {
        min-height: 100svh;
        padding: 0;
    }

    body.public-auth-form-page main > article {
        align-items: stretch;
    }

    body.public-auth-form-page main > article > .content,
    body.public-contact-page main > article > .content,
    body.public-document-page main > article > .content {
        min-height: 100svh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    body.public-forget-password-page main > article > .content {
        padding-top: max(1rem, env(safe-area-inset-top));
    }

    body.public-forget-password-page .publicBackLink {
        margin: 0 0.6rem;
    }

    body.public-forget-password-page .hintInputBox {
        display: flex;
        min-height: 100svh;
        flex-direction: column;
        justify-content: flex-start;
    }

    body.public-forget-password-page .hintTitle {
        padding: 0.75rem 1.25rem 0.25rem;
        font-size: 1.4rem;
    }

    body.public-forget-password-page .hintInputBox form {
        padding: 0.65rem 1.25rem 0.5rem;
    }

    body.public-forget-password-page .hintInputBox form > .line {
        margin-top: 0.75rem;
    }

    body.public-forget-password-page .hintInputBox .line > input {
        height: 3.05rem;
        font-size: 1rem;
    }

    body.public-forget-password-page .hintInputBox .sendCode > span {
        height: 3.05rem;
        min-width: 5.5rem;
        font-size: 0.85rem;
    }

    body.public-forget-password-page .hintInputBox button[type="submit"] {
        height: 3.05rem;
        margin-top: 1rem;
        background: #4281e9;
        box-shadow: 0 0.55rem 1.1rem rgba(20, 84, 190, 0.24);
    }

    body.public-forget-password-page .hintInputBox button[type="submit"]:hover {
        background: #3a74d4;
    }

    body.public-forget-password-page .hintInputBox .hint {
        margin: 1.1rem 1.25rem max(1.5rem, env(safe-area-inset-bottom));
        padding: 0.85rem 0.9rem;
    }

    body.public-contact-page main > article > .content {
        padding: max(1.5rem, env(safe-area-inset-top)) 1rem max(1.5rem, env(safe-area-inset-bottom));
    }

    body.public-contact-page .publicPageHeading {
        margin-bottom: 1.25rem;
    }

    body.public-contact-page .phoneContact {
        padding: 1rem;
        border: 1px solid #e6eef6;
        border-radius: 0.75rem;
        background: #f8fbff;
    }

    body.public-contact-page .callQQ > div:nth-child(2) {
        border-color: var(--public-border);
        background: var(--public-surface);
    }

    body.public-document-page #page > div > div {
        padding: max(1.5rem, env(safe-area-inset-top)) 1.25rem max(2rem, env(safe-area-inset-bottom)) !important;
    }

    body.public-document-page #page h1 {
        margin-bottom: 1.5rem !important;
        font-size: 1.5rem !important;
    }

    body.public-document-page #page h2 {
        margin-top: 1.7rem !important;
        font-size: 1.05rem !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.public-guest-page *,
    body.public-guest-page *::before,
    body.public-guest-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
