@font-face {
    font-family: "iconfont";
    src: url("./fonts/iconfont.woff") format("woff"),
         url("./fonts/iconfont.ttf") format("truetype");
    font-style: normal;
    font-weight: normal;
    font-display: block;
}

:root {
    --theme: #3166e6;
    --theme-hover: #4c80ff;
    --theme-active: #2551bb;
    --link: #1e75e5;
    --panel-footer: #f7fbff;
    --error: #ee5555;
    --text: #333333;
    --muted: #999999;
    --line: #d2d2d2;
}

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

body {
    overflow: hidden;
    color: #000000;
    background: #073fc6;
    font: 12px/1.5 "PingFangSC-Regular", "Microsoft Yahei", "宋体", Arial, Helvetica, sans-serif;
    cursor: default;
    user-select: none;
}

button,
input {
    margin: 0;
    font: inherit;
}

button {
    border: 0;
}

a {
    text-decoration: none;
}

.iconfont {
    font-family: "iconfont" !important;
    font-style: normal;
    font-weight: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.login {
    width: 100%;
    height: 100%;
    min-height: 620px;
    overflow: hidden;
    background-color: #ffffff;
    background-image: url("./theme/images/login_bg.png");
    background-repeat: unset;
    background-position: 50% 50%;
    background-size: cover;
}

.login-head {
    height: 34px;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.login-head__content {
    position: relative;
    height: 34px;
    line-height: 34px;
    padding-right: 150px;
}

.login-head__img {
    display: block;
    float: left;
    width: auto;
    height: 32px;
    max-width: 80%;
    border: 0;
    vertical-align: middle;
}

.login-body {
    position: relative;
    height: calc(100% - 59px);
}

.login-content {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 720px;
    margin-top: -40px;
    transform: translate(-50%, -50%);
}

.login-content::after {
    display: table;
    clear: both;
    content: "";
}

.login-notice {
    position: relative;
    z-index: 1;
    float: left;
    width: 300px;
    min-height: 92px;
    padding: 0 15px 20px;
    overflow: hidden;
    border-radius: 6px;
    color: #ffffff;
}

.login-notice-bg {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: #3a74fd;
    opacity: 0.6;
}

.login-notice__title {
    height: 49px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 16px;
    line-height: 49px;
}

.login-notice__icon {
    margin-right: 5px;
}

.login-notice__content {
    min-height: 22px;
    max-height: 320px;
    margin: 0;
    overflow-y: auto;
    color: #ffffff;
    line-height: 18px;
    white-space: pre-line;
    user-select: text;
}

.login-panel {
    position: relative;
    float: right;
    width: 360px;
    min-height: 392px;
    padding-bottom: 48px;
    overflow: hidden;
    border-radius: 6px;
    background: #ffffff;
}

.login-panel__body {
    width: 272px;
    padding: 38px 44px 64px;
}

.view-container {
    width: 100%;
}

.include-box__title {
    min-height: 30px;
    margin: 0;
    color: var(--theme);
    font-size: 20px;
    font-weight: normal;
    line-height: 30px;
}

.field {
    position: relative;
    height: 60px;
    margin-top: 20px;
}

.field__label {
    position: absolute;
    z-index: 2;
    top: 30px;
    left: 4px;
    color: var(--muted);
    font-size: 14px;
    line-height: 21px;
    cursor: text;
    transition: top 0.25s ease, font-size 0.25s ease;
}

.field:focus-within .field__label,
.field:has(.field__input:not(:placeholder-shown)) .field__label {
    top: 9px;
    font-size: 12px;
}

.field__input {
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 60px;
    padding: 26px 4px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 14px;
    line-height: 26px;
    user-select: text;
    appearance: none;
    transition: border-color 0.25s ease;
}

.field__input:focus {
    border-bottom-color: var(--theme);
}

.field__line {
    position: absolute;
    z-index: 3;
    right: 50%;
    bottom: 0;
    left: 50%;
    height: 1px;
    background: var(--theme);
    transition: right 0.25s ease, left 0.25s ease;
    pointer-events: none;
}

.field:focus-within .field__line {
    right: 0;
    left: 0;
}

.altcha-field {
    width: 100%;
    margin-top: 18px;
}

altcha-widget {
    display: block;
    width: 100%;
    --altcha-color-base: #ffffff;
    --altcha-border-color: #d2d2d2;
    --altcha-color-text: #666666;
    --altcha-color-primary: #3166e6;
    --altcha-border-width: 1px;
    --altcha-padding: 12px;
    --altcha-border-radius: 3px;
    --altcha-max-width: 272px;
}

.altcha-overlay-close {
    top: 0.3rem !important;
}

.altcha-overlay-backdrop {
    background-color: #0000004d;
    z-index: var(--altcha-z-index) - 1;
}

.message {
    min-height: 18px;
    margin: 4px 0 0;
    color: var(--error);
    line-height: 18px;
    white-space: normal;
    user-select: text;
    visibility: hidden;
}

.message--visible {
    visibility: visible;
}

.button {
    box-sizing: border-box;
    display: block;
    width: 100%;
    height: 40px;
    margin-top: 10px;
    border-radius: 3px;
    background: var(--theme);
    color: #ffffff;
    font-size: 16px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    appearance: none;
    transition: background-color 0.3s ease;
}

.button:hover {
    background: var(--theme-hover);
}

.button:active {
    background: var(--theme-active);
}

.button:disabled {
    border: 1px solid #ebebeb;
    background: #f4f4f4;
    color: #bbbbbb;
    cursor: default;
}

.button__text {
    letter-spacing: 2px;
}

.button--line {
    border: 1px solid var(--theme);
    background: #ffffff;
    color: var(--theme);
}

.button--line:hover,
.button--line:active {
    background: #f5f7fe;
}

.login-panel__footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 48px;
    overflow: hidden;
    border-radius: 0 0 6px 6px;
    background: var(--panel-footer);
}

.login-panel__download {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0;
    outline: none;
    background: transparent;
    color: #999999;
    font-size: 12px;
    line-height: 48px;
    text-align: center;
    cursor: pointer;
    transition: color 0.2s ease;
}

.login-panel__download:hover,
.login-panel__download:focus-visible {
    color: var(--link);
}

.locale-switch {
    position: absolute;
    z-index: 30;
    top: 0;
    right: 0;
    height: 34px;
}

.locale-switch__toggle {
    display: flex;
    align-items: center;
    height: 34px;
    padding: 0;
    outline: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
}

.locale-switch__toggle:hover,
.locale-switch__toggle:focus-visible {
    color: #ffffff;
}

.locale-switch__chevron {
    margin-left: 6px;
    font-size: 16px;
    transform: translateY(-1px);
}

.locale-switch__menu {
    position: absolute;
    top: 34px;
    right: 0;
    width: 96px;
    padding: 4px 0;
    border: 1px solid #e3e8f0;
    border-radius: 3px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(17, 47, 100, 0.16);
}

.locale-switch__menu button {
    display: block;
    width: 100%;
    height: 30px;
    padding: 0 12px;
    outline: none;
    background: #ffffff;
    color: #666666;
    line-height: 30px;
    text-align: left;
    cursor: pointer;
}

.locale-switch__menu button:hover,
.locale-switch__menu button:focus-visible,
.locale-switch__menu button[aria-checked="true"] {
    background: #f2f6ff;
    color: var(--theme);
}

.privacy-consent {
    display: flex;
    align-items: center;
    min-height: 20px;
    margin-top: 7px;
    color: #777777;
    font-size: 11px;
    line-height: 18px;
    white-space: nowrap;
}

.privacy-consent input {
    width: 13px;
    height: 13px;
    margin: 0 5px 0 0;
    accent-color: var(--theme);
}

.privacy-consent__link {
    margin: 0 0 0 3px;
    padding: 0;
    outline: none;
    background: transparent;
    color: var(--link);
    cursor: pointer;
}

.privacy-consent__link:hover,
.privacy-consent__link:focus-visible {
    text-decoration: underline;
}

.download-dialog {
    box-sizing: border-box;
    width: 520px;
    min-height: 400px;
    padding: 24px 32px 20px;
    overflow: visible;
    border: 0;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.32);
    color: var(--text);
    font-family: "PingFangSC-Regular", "Microsoft Yahei", Arial, sans-serif;
    user-select: none;
}

.download-dialog::backdrop {
    background: rgba(8, 29, 72, 0.55);
}

.download-dialog h2 {
    margin: 0;
    color: var(--theme);
    font-size: 20px;
    font-weight: normal;
    line-height: 30px;
}

.dialog-close {
    position: absolute;
    top: 7px;
    right: 10px;
    width: 24px;
    height: 24px;
    padding: 0;
    outline: none;
    background: transparent;
    color: #b4b4b4;
    font: 26px/24px Arial, sans-serif;
    cursor: pointer;
}

.dialog-close:hover,
.dialog-close:focus-visible {
    color: #777777;
}

.client-stage {
    box-sizing: border-box;
    height: 214px;
}

.client-panel {
    width: 100%;
    height: 214px;
}

.client-panel--single {
    box-sizing: border-box;
    display: flex;
    padding-top: 20px;
    align-items: center;
    flex-direction: column;
}

.client-stage__icon {
    display: block;
    height: 100px;
    color: var(--theme);
    font-size: 96px;
    font-style: normal;
    line-height: 100px;
}

.client-stage__title {
    height: 20px;
    color: #666666;
    font-size: 14px;
    line-height: 20px;
}

.client-stage__download.button {
    display: block;
    width: 104px;
    height: 40px;
    margin-top: 12px;
    color: #ffffff;
    font-size: 14px;
    line-height: 40px;
}

.mobile-grid {
    box-sizing: border-box;
    display: flex;
    padding-top: 9px;
}

.mobile-client {
    width: 50%;
    text-align: center;
}

.mobile-client--full {
    width: 100%;
}

.mobile-client__media {
    width: 100%;
    height: 128px;
}

.mobile-client__media img,
.mobile-client__media canvas {
    display: block;
    width: 130px !important;
    height: 130px !important;
    margin: 0 auto;
}

.mobile-client__link,
.mobile-client__hint {
    display: block;
    height: 17px;
    margin-top: 8px;
    color: var(--link);
    font-size: 12px;
    line-height: 17px;
    letter-spacing: 0.5px;
}

.mobile-client__hint {
    color: #666666;
}

.mobile-client__link:hover,
.mobile-client__hint:hover {
    text-decoration: underline;
}

.download-dialog__end {
    height: 89px;
}

.download-dialog__end-head {
    box-sizing: border-box;
    display: flex;
    height: 30px;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: 1px solid #eeeeee;
    color: #b6b6b6;
    line-height: 20px;
}

.platform-tabs {
    display: flex;
    width: 100%;
    height: 59px;
}

.platform-tab {
    display: flex;
    width: 33.333%;
    height: 59px;
    padding: 0;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    outline: none;
    background: transparent;
    color: #c0c0c0;
    cursor: pointer;
}

.platform-tab i {
    height: 27px;
    font-size: 22px;
    font-style: normal;
    line-height: 27px;
}

.platform-tab span {
    height: 22px;
    line-height: 22px;
}

.platform-tab:hover,
.platform-tab:focus-visible,
.platform-tab.is-active {
    color: var(--theme);
}

.privacy-dialog {
    box-sizing: border-box;
    width: min(420px, calc(100vw - 32px));
    padding: 24px;
    border: 0;
    border-radius: 6px;
    box-shadow: 0 12px 36px rgba(20, 42, 84, 0.24);
    color: var(--text);
    font-family: "PingFangSC-Regular", "Microsoft Yahei", Arial, sans-serif;
    user-select: text;
}

.privacy-dialog::backdrop {
    background: rgba(12, 31, 68, 0.42);
}

.privacy-dialog h2 {
    margin: 0 0 12px;
    color: var(--theme);
    font-size: 18px;
    font-weight: normal;
}

.privacy-dialog p {
    margin: 0;
    color: #666666;
    line-height: 1.7;
}

.privacy-dialog .button {
    margin-top: 20px;
}

.dashboard-intro {
    margin: 4px 0 14px;
    color: var(--muted);
}

.dashboard-actions {
    display: grid;
    gap: 10px;
}

.dashboard-actions .button {
    margin-top: 0;
}

.result-box {
    box-sizing: border-box;
    width: 100%;
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px dashed #cbd4e2;
    border-radius: 3px;
    background: #f7fbff;
    color: #666666;
    line-height: 18px;
    user-select: text;
}

.result-box__label,
.result-box__password {
    margin: 0;
}

.result-box__label {
    color: var(--text);
}

.result-box__link {
    display: block;
    margin: 4px 0;
    overflow-wrap: anywhere;
    color: var(--link);
}

.result-box__link:hover {
    text-decoration: underline;
}

.result-box__password {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 4px;
}

.certificate-password {
    min-width: 0;
    outline: none;
    background: transparent;
    font-size: 10px;
    line-height: 18px;
    overflow-wrap: anywhere;
    white-space: normal;
    cursor: copy;
    user-select: text;
}

.certificate-password:hover,
.certificate-password:focus-visible {
    color: #d94242;
}

.regenerate-button {
    margin-left: auto;
    padding: 0;
    outline: none;
    background: transparent;
    color: var(--link);
    line-height: 20px;
    white-space: nowrap;
    cursor: pointer;
}

.regenerate-button:hover,
.regenerate-button:focus-visible {
    text-decoration: underline;
}

.regenerate-button:disabled {
    color: #bbbbbb;
    cursor: default;
    text-decoration: none;
}

.hidden {
    display: none !important;
}

@media (min-width: 1366px) {
    .login-content {
        width: 922px;
    }

    .login-notice {
        width: 442px;
    }
}

@media (max-height: 700px) {
    .login-content {
        margin-top: -18px;
        transform: translate(-50%, -50%) scale(0.92);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}


.login-notice__summary-row { display: block; }
.login-notice__summary { display: none; }
.login-notice__content { display: block; }
.login-notice__toggle { display: none; }
.login-notice__toggle { border: 0; padding: 0; color: inherit; background: transparent; font: inherit; cursor: pointer; }

@media (max-width: 800px) {
    html, body { width: 100%; min-width: 0; min-height: 100%; }
    .login { min-height: 100svh; height: auto; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; background-position: center top; }
    .login-head { position: sticky; top: 0; z-index: 10; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); background: rgba(7,63,198,.96); }
    .login-head__content { padding-right: 118px; }
    .login-body { display: grid; place-items: center; height: auto; min-height: calc(100svh - 59px); box-sizing: border-box; padding: 18px 8px 28px; }
    .login-content { position: static; display: flex; width: 90%; max-width: 560px; min-width: 320px; margin: 0 auto; transform: none; flex-direction: column; gap: 12px; }
    .login-notice { order: 0; float: none; width: calc(100% - 23px); min-width: 0; min-height: 0; margin-left: auto; margin-right: auto; padding: 0 16px; border-radius: 6px; }
    .login-notice__title { height: 42px; margin-bottom: 0; line-height: 42px; }
    .login-notice__summary-row { display: flex; align-items: flex-start; min-height: 40px; gap: 10px; padding: 10px 0; }
    .login-notice__summary { display: block; min-width: 0; flex: 1; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: pre-line; line-height: 18px; }
    .login-notice__summary.is-collapsed { display: none; }
    .login-notice__toggle { display: inline-block; flex: 0 0 auto; align-self: flex-end; color: rgba(255,255,255,.92); font-size: 13px; line-height: 18px; text-decoration: underline; }
    .login-notice__content { display: none; min-width: 0; flex: 1; max-height: none; margin: 0; padding: 0; overflow: visible; white-space: pre-line; overflow-wrap: anywhere; font-size: 12px; line-height: 18px; }
    .login-notice__content.is-expanded { display: block; }
    .login-panel { order: 1; float: none; width: calc(100% + 8px); min-width: 320px; min-height: 0; margin-left: -4px; margin-right: -4px; padding-bottom: 48px; }
    .login-panel__body { width: auto; padding: 30px 30px 42px; }
    .altcha-field, altcha-widget { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
    altcha-widget { --altcha-max-width: 100%; }
}