@font-face {
    font-family: "Barlow";
    font-style: normal;
    font-weight: 500;
    src: url("../fonts/Barlow-Medium_1.ttf") format("truetype");
}

@font-face {
    font-family: "Barlow";
    font-style: normal;
    font-weight: 600;
    src: url("../fonts/Barlow-SemiBold_1.ttf") format("truetype");
}

@font-face {
    font-family: "Alibaba PuHuiTi";
    font-style: normal;
    font-weight: 400;
    src: url("../fonts/Alibaba-PuHuiTi-Regular_1.ttf") format("truetype");
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-width: 320px;
    min-height: 100%;
    margin: 0;
}

body {
    overflow: hidden;
    background: #3d0445;
    font-family: "Alibaba PuHuiTi", "Microsoft YaHei", sans-serif;
}

.login-page {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 720px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 78% 45%, rgba(126, 28, 136, .74), transparent 38%),
        linear-gradient(133deg, #3d0445 0%, rgba(102, 8, 116, .9) 100%);
}

.login-header {
    position: absolute;
    z-index: 4;
    top: clamp(38px, 8.45vh, 91px);
    left: clamp(28px, 6vw, 115px);
    right: clamp(28px, 10vw, 192px);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
}

.brand-lockup {
    display: flex;
    align-items: center;
    min-width: 0;
    height: 50px;
    gap: 17px;
}

.brand-lockup img {
    width: clamp(226px, 15.26vw, 293px);
    height: auto;
    display: block;
}

.brand-lockup span {
    width: 1px;
    height: 22px;
    flex: 0 0 auto;
    background: rgba(255, 255, 255, .92);
}

.brand-lockup strong {
    color: #fff;
    font-size: clamp(15px, 1.04vw, 20px);
    font-weight: 400;
    line-height: 26px;
    letter-spacing: 2px;
    white-space: nowrap;
}

.login-button {
    min-width: 110px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 28px;
    border-radius: 999px;
    border: 0;
    color: #fff;
    background: #1c51fe;
    text-decoration: none;
    font-size: 20px;
    font-family: inherit;
    line-height: 26px;
    letter-spacing: 2px;
    box-shadow: 0 12px 28px rgba(28, 81, 254, .28);
    transition: transform .18s ease, box-shadow .18s ease;
    cursor: pointer;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(28, 81, 254, .36);
}

.login-page.is-auth-open > .wave-particles,
.login-page.is-auth-open > .login-header,
.login-page.is-auth-open > .map-stage,
.login-page.is-auth-open > .mission-panel {
    filter: blur(8px);
}

.login-page.is-auth-open > .map-stage {
    transform: translate(var(--map-shift-x), var(--map-lift-y));
}

.admin-login-modal {
    position: fixed;
    z-index: 20;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px;
    visibility: hidden;
    opacity: 0;
    background: rgba(17, 10, 27, .45);
    backdrop-filter: blur(13px);
    transition: opacity .22s ease, visibility .22s ease;
}

.admin-login-modal.is-visible {
    visibility: visible;
    opacity: 1;
}

.admin-login-card {
    position: relative;
    width: min(1040px, 94vw);
    height: min(720px, 86vh);
    display: grid;
    grid-template-columns: minmax(420px, .95fr) minmax(360px, .78fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 34px 100px rgba(0, 0, 0, .48);
    transform: translateY(22px) scale(.98);
    transition: transform .24s ease;
}

.admin-login-modal.is-visible .admin-login-card {
    transform: translateY(0) scale(1);
}

.admin-login-close {
    position: absolute;
    z-index: 6;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    color: #1f2937;
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .16);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease;
}

.admin-login-close:hover {
    transform: rotate(90deg);
    background: #fff;
}

.career-login-art {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 42px 44px;
    overflow: hidden;
    color: #111827;
    background:
        radial-gradient(circle at 72% 30%, rgba(255, 255, 255, .32), transparent 34%),
        radial-gradient(circle at 24% 78%, rgba(255, 255, 255, .28), transparent 35%),
        linear-gradient(135deg, #b7bdc6 0%, #8c929c 50%, #68707c 100%);
}

.career-login-art::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .13) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: .38;
}

.career-login-brand,
.career-login-links,
.career-characters {
    position: relative;
    z-index: 1;
}

.career-login-brand,
.career-mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #111827;
    font-size: 19px;
    font-weight: 700;
}

.career-login-brand img,
.career-mobile-brand img {
    width: 34px;
    height: 34px;
    padding: 5px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .22);
    object-fit: contain;
}

.career-characters {
    width: 550px;
    height: 400px;
    max-width: 100%;
    margin: 30px auto 8px;
    transform-origin: bottom center;
    transform: scale(.86);
}

.career-character {
    position: absolute;
    bottom: 0;
    display: block;
    transform-origin: bottom center;
    transition: transform .5s ease, height .5s ease;
    box-shadow: 0 18px 32px rgba(15, 23, 42, .08);
}

.career-character span {
    position: absolute;
    display: block;
    border-radius: 50%;
}

.career-purple {
    left: 70px;
    z-index: 1;
    width: 180px;
    height: 400px;
    border-radius: 10px 10px 0 0;
    background: #6c3ff5;
}

.career-purple span,
.career-black span {
    width: 18px;
    height: 18px;
    top: 42px;
    background: #fff;
}

.career-purple span::after,
.career-black span::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 5px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2d2d2d;
    transform: translate(var(--eye-x, 0), var(--eye-y, 0));
    transition: transform .12s ease;
}

.career-purple span:first-child {
    left: 46px;
}

.career-purple span:nth-child(2) {
    left: 92px;
}

.career-black {
    left: 240px;
    z-index: 2;
    width: 120px;
    height: 310px;
    border-radius: 8px 8px 0 0;
    background: #2d2d2d;
}

.career-black span {
    width: 16px;
    height: 16px;
    top: 32px;
}

.career-black span:first-child {
    left: 27px;
}

.career-black span:nth-child(2) {
    left: 66px;
}

.career-orange {
    left: 0;
    z-index: 3;
    width: 240px;
    height: 200px;
    border-radius: 120px 120px 0 0;
    background: #ff9b6b;
}

.career-yellow {
    left: 310px;
    z-index: 4;
    width: 140px;
    height: 230px;
    border-radius: 70px 70px 0 0;
    background: #e8d754;
}

.career-orange span,
.career-yellow span {
    width: 12px;
    height: 12px;
    background: #2d2d2d;
    transform: translate(var(--eye-x, 0), var(--eye-y, 0));
    transition: transform .12s ease;
}

.career-orange span {
    top: 92px;
}

.career-orange span:first-child {
    left: 84px;
}

.career-orange span:nth-child(2) {
    left: 126px;
}

.career-yellow span {
    top: 44px;
}

.career-yellow span:first-child {
    left: 52px;
}

.career-yellow span:nth-child(2) {
    left: 88px;
}

.career-yellow b {
    position: absolute;
    left: 40px;
    top: 88px;
    width: 80px;
    height: 4px;
    border-radius: 999px;
    background: #2d2d2d;
    transform: translate(var(--eye-x, 0), var(--eye-y, 0));
    transition: transform .12s ease;
}

.career-characters.is-typing .career-purple {
    height: 430px;
    transform: skewX(-10deg) translateX(34px);
}

.career-characters.is-typing .career-black {
    transform: skewX(8deg) translateX(18px);
}

.career-characters.is-password-visible .career-purple span::after,
.career-characters.is-password-visible .career-black span::after,
.career-characters.is-password-visible .career-orange span,
.career-characters.is-password-visible .career-yellow span,
.career-characters.is-password-visible .career-yellow b {
    --eye-x: -4px;
    --eye-y: -3px;
}

.career-login-links {
    display: flex;
    gap: 30px;
    color: rgba(31, 41, 55, .72);
    font-size: 13px;
}

.career-login-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 54px 58px;
    color: #111827;
    background: #fff;
}

.career-mobile-brand {
    display: none;
    justify-content: center;
    margin-bottom: 34px;
}

.career-form-head {
    margin-bottom: 34px;
    text-align: center;
}

.career-form-head h2 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0;
}

.career-form-head p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.career-field {
    display: block;
    margin-bottom: 20px;
}

.career-field > span {
    display: block;
    margin-bottom: 8px;
    color: #111827;
    font-size: 14px;
    font-weight: 600;
}

.career-field input {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 1px solid rgba(203, 213, 225, .9);
    border-radius: 10px;
    outline: 0;
    color: #111827;
    background: #fff;
    font-size: 15px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.career-field input:focus {
    border-color: #5b61c8;
    box-shadow: 0 0 0 4px rgba(91, 97, 200, .12);
}

.career-field em {
    position: relative;
    display: block;
    font-style: normal;
}

.career-field em input {
    padding-right: 48px;
}

.career-field em button {
    position: absolute;
    right: 12px;
    top: 50%;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    color: #6b7280;
    background: transparent;
    transform: translateY(-50%);
    cursor: pointer;
}

.career-field em svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.career-form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 2px 0 24px;
    font-size: 14px;
}

.career-remember {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #374151;
    cursor: pointer;
}

.career-remember input {
    width: 16px;
    height: 16px;
    accent-color: #5b61c8;
}

.career-form-row a,
.career-signup a {
    color: #4d54bd;
    font-weight: 700;
    text-decoration: none;
}

.career-error {
    margin: 0 0 16px;
    padding: 11px 13px;
    border: 1px solid rgba(239, 68, 68, .22);
    border-radius: 10px;
    color: #b91c1c;
    background: rgba(239, 68, 68, .08);
    font-size: 14px;
    line-height: 1.5;
}

.career-submit,
.career-google {
    width: 100%;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.career-submit {
    border: 0;
    color: #fff;
    background: #111827;
    box-shadow: 0 14px 28px rgba(17, 24, 39, .18);
}

.career-submit:hover,
.career-google:hover {
    transform: translateY(-2px);
}

.career-submit:hover {
    box-shadow: 0 20px 36px rgba(17, 24, 39, .28);
}

.career-google {
    margin-top: 18px;
    border: 1px solid rgba(203, 213, 225, .95);
    color: #111827;
    background: #fff;
}

.career-google svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.career-google:hover {
    border-color: rgba(91, 97, 200, .42);
    box-shadow: 0 15px 26px rgba(15, 23, 42, .08);
}

.career-signup {
    margin: 28px 0 0;
    color: #6b7280;
    font-size: 14px;
    text-align: center;
}

.map-stage {
    position: absolute;
    z-index: 2;
    --map-shift-x: 0;
    --map-lift-y: 0;
    left: clamp(-6px, 4.42vw, 85px);
    top: clamp(142px, 16.1vh, 174px);
    width: clamp(680px, 56.98vw, 1094px);
    filter: drop-shadow(13px 16px 17px rgba(0, 0, 0, .54));
    transform: translate(var(--map-shift-x), var(--map-lift-y));
    transition: transform .24s ease, filter .24s ease;
    pointer-events: auto;
    cursor: default;
}

.map-stage:hover {
    --map-lift-y: -8px;
    filter: drop-shadow(18px 24px 28px rgba(0, 0, 0, .62));
}

.map-stage img {
    width: 100%;
    height: auto;
    display: block;
}

.mission-panel {
    position: absolute;
    z-index: 3;
    left: clamp(740px, 54vw, 1036px);
    top: clamp(322px, 36.3vh, 392px);
    width: min(764px, 42vw);
}

.mission-panel h1 {
    width: max-content;
    max-width: 100%;
    margin: 0;
    color: #fff;
    font-size: clamp(36px, 2.6vw, 50px);
    font-weight: 400;
    line-height: 1.42;
    letter-spacing: clamp(10px, 1.04vw, 20px);
    white-space: nowrap;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 238px);
    gap: 24px;
    margin-top: 47px;
}

.stat-card {
    position: relative;
    width: 238px;
    height: 118px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 22px;
    border: 2px solid rgba(43, 116, 255, .4);
    background:
        linear-gradient(90deg, #2b74ff 0 10px, transparent 10px calc(100% - 10px), #2b74ff calc(100% - 10px) 100%) top / 100% 10px no-repeat,
        linear-gradient(90deg, #2b74ff 0 10px, transparent 10px calc(100% - 10px), #2b74ff calc(100% - 10px) 100%) bottom / 100% 10px no-repeat,
        linear-gradient(180deg, #2b74ff 0 10px, transparent 10px calc(100% - 10px), #2b74ff calc(100% - 10px) 100%) left / 10px 100% no-repeat,
        linear-gradient(180deg, #2b74ff 0 10px, transparent 10px calc(100% - 10px), #2b74ff calc(100% - 10px) 100%) right / 10px 100% no-repeat,
        rgba(43, 116, 255, .05);
    backdrop-filter: blur(16.6px);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background-color .22s ease;
    will-change: transform;
}

.stat-card:hover {
    transform: translateY(-8px);
    border-color: rgba(83, 151, 255, .72);
    background-color: rgba(43, 116, 255, .12);
    box-shadow: 0 18px 34px rgba(0, 0, 0, .28), 0 0 24px rgba(43, 116, 255, .18);
}

.stat-card strong {
    color: #fff;
    font-family: "Barlow", Arial, sans-serif;
    font-size: 40px;
    font-weight: 600;
    line-height: 48px;
    white-space: nowrap;
}

.stat-card span {
    margin-top: 4px;
    color: rgba(255, 255, 255, .75);
    font-size: 18px;
    font-weight: 400;
    line-height: 26px;
    white-space: nowrap;
}

.wave-particles {
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    bottom: -2px;
    width: 100%;
    height: 39vh;
    min-height: 300px;
    pointer-events: none;
}

@media (max-width: 1360px) {
    .login-page {
        min-height: 660px;
    }

    .map-stage {
        left: -34px;
        top: 20vh;
        width: 58vw;
    }

    .mission-panel {
        left: 52vw;
        top: 38vh;
        width: 44vw;
    }

    .stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .stat-card {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 980px) {
    body {
        overflow: auto;
    }

    .login-page {
        min-height: 960px;
        height: auto;
    }

    .login-header {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        padding: 34px 28px 0;
    }

    .brand-lockup {
        gap: 12px;
    }

    .brand-lockup img {
        width: 210px;
    }

    .brand-lockup strong {
        font-size: 14px;
        letter-spacing: 1px;
    }

    .login-button {
        min-width: 92px;
        height: 44px;
        padding: 0 22px;
        font-size: 17px;
    }

    .map-stage {
        left: 50%;
        top: 144px;
        width: min(88vw, 660px);
        --map-shift-x: -50%;
    }

    .mission-panel {
        left: 28px;
        right: 28px;
        top: 560px;
        width: auto;
        text-align: center;
    }

    .mission-panel h1 {
        margin: 0 auto;
        font-size: 34px;
        letter-spacing: 8px;
    }

    .stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        margin-top: 32px;
    }

    .stat-card {
        height: 104px;
        padding-top: 20px;
    }

    .stat-card strong {
        font-size: 31px;
        line-height: 38px;
    }

    .stat-card span {
        font-size: 14px;
    }

    .wave-particles {
        height: 330px;
    }

    .admin-login-modal {
        padding: 24px;
    }

    .admin-login-card {
        width: min(520px, 94vw);
        height: auto;
        max-height: 88vh;
        display: block;
        overflow-y: auto;
    }

    .career-login-art {
        display: none;
    }

    .career-login-form {
        padding: 52px 42px 42px;
    }

    .career-mobile-brand {
        display: flex;
    }
}

@media (max-width: 680px) {
    .login-page {
        min-height: 900px;
    }

    .login-header {
        align-items: center;
        padding: 24px 18px 0;
    }

    .brand-lockup img {
        width: 168px;
    }

    .brand-lockup span,
    .brand-lockup strong {
        display: none;
    }

    .map-stage {
        top: 122px;
        width: 112vw;
    }

    .mission-panel {
        top: 470px;
        left: 18px;
        right: 18px;
    }

    .mission-panel h1 {
        font-size: 26px;
        letter-spacing: 5px;
    }

    .stat-grid {
        grid-template-columns: 1fr;
        max-width: 260px;
        margin: 28px auto 0;
    }

    .stat-card {
        height: 96px;
    }

    .wave-particles {
        height: 310px;
        opacity: .9;
    }

    .admin-login-modal {
        padding: 16px;
    }

    .admin-login-card {
        width: 100%;
        border-radius: 22px;
    }

    .admin-login-close {
        top: 12px;
        right: 12px;
    }

    .career-login-form {
        padding: 48px 24px 30px;
    }

    .career-form-head h2 {
        font-size: 27px;
    }

    .career-form-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}
