*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body,
#root {
    min-height: 100%;
}

html {
    color: #1d2433;
    background: #eef3f8;
    color-scheme: light;
    font-family: Arial, "Microsoft Yahei", "Helvetica Neue", Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    scrollbar-color: #9aa7ba #eef3f8;
    scrollbar-width: thin;
}

body {
    min-height: 100vh;
    margin: 0;
    background:
        linear-gradient(rgba(39, 53, 74, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(39, 53, 74, 0.05) 1px, transparent 1px),
        radial-gradient(circle at 12% 8%, rgba(0, 184, 148, 0.12), transparent 28%),
        linear-gradient(135deg, #f8fbff 0%, #eef3f8 48%, #f5f7fb 100%);
    background-size: 28px 28px, 28px 28px, auto, auto, auto;
}

::selection {
    background: #14b8a6;
    color: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
p,
h1,
h2,
h3 {
    margin: 0;
    padding: 0;
}

ul {
    list-style: none;
}

button,
input {
    font: inherit;
}

.hidden {
    display: none !important;
}

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

#root {
    display: flex;
    flex-direction: column;
}

.header {
    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(83, 98, 124, 0.16);
    box-shadow: 0 18px 50px rgba(32, 45, 64, 0.08);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-wrapper {
    align-items: center;
    display: flex;
    gap: 24px;
    height: 72px;
    margin: 0 auto;
    max-width: 1120px;
    padding: 0 24px;
    position: relative;
}

.header-left {
    align-items: center;
    color: #172033;
    display: flex;
    font-size: 22px;
    font-weight: 700;
    gap: 12px;
    letter-spacing: 0;
    line-height: 1.2;
    min-width: 0;
}

.header-left::before {
    background: linear-gradient(135deg, #14b8a6, #2563eb 54%, #8b5cf6);
    border-radius: 4px;
    box-shadow: 0 0 24px rgba(20, 184, 166, 0.34);
    content: "";
    display: inline-block;
    height: 36px;
    width: 10px;
}

.user-info {
    color: #4a5568;
    margin-left: auto;
    white-space: nowrap;
}

.user-info .name {
    background: #f2f6fb;
    border: 1px solid rgba(83, 98, 124, 0.14);
    border-radius: 8px;
    color: #1d2433;
    display: inline-block;
    line-height: 28px;
    padding: 0 12px;
}

.body {
    align-items: stretch;
    display: grid;
    flex: 1;
    gap: 18px;
    grid-template-columns: 220px minmax(0, 1fr);
    margin: 18px auto;
    max-width: 1120px;
    min-height: calc(100vh - 210px);
    padding: 0 24px;
    width: 100%;
}

.wrapper {
    min-width: 0;
}

.nav-wrapper,
.container-wrapper {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(83, 98, 124, 0.14);
    box-shadow: 0 22px 60px rgba(32, 45, 64, 0.08);
    overflow: hidden;
    position: relative;
}

.nav-wrapper {
    border-radius: 8px;
    padding: 18px 14px;
}

.container-wrapper {
    border-radius: 8px;
    min-height: 520px;
    padding: 42px 52px;
}

.level-1 > li {
    color: #172033;
    font-weight: 700;
}

.level-1 > li > span:not(.icon) {
    display: inline-block;
    line-height: 24px;
    vertical-align: top;
}

.icon {
    background-position: center;
    background-repeat: no-repeat;
    background-size: 18px 18px;
    display: inline-block;
    height: 24px;
    margin-right: 8px;
    opacity: 0.86;
    vertical-align: top;
    width: 24px;
}

.icon.user {
    background-image: url("/img/icon-user.4c0599ba.png");
}

.icon.product {
    background-image: url("/img/icon-product.4d2a60cb.png");
}

.level-2 {
    margin-top: 14px;
}

.level-2 > li + li {
    margin-top: 8px;
}

.level-2 a {
    border-radius: 6px;
    border: 1px solid transparent;
    color: #546179;
    display: block;
    font-size: 13px;
    font-weight: 500;
    line-height: 36px;
    padding: 0 12px 0 32px;
    position: relative;
    transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.level-2 a::before {
    background: #9aa7ba;
    border-radius: 50%;
    content: "";
    height: 6px;
    left: 14px;
    position: absolute;
    top: 15px;
    width: 6px;
}

.level-2 a:hover,
.level-2 .active a {
    background: #eef8f7;
    border-color: rgba(20, 184, 166, 0.18);
    color: #0f766e;
    transform: translateX(2px);
}

.level-2 a:hover::before,
.level-2 .active a::before {
    background: #14b8a6;
    box-shadow: 0 0 12px rgba(20, 184, 166, 0.44);
}

.form-wrapper {
    margin: 0 auto;
    max-width: 680px;
}

.form-wrapper form {
    display: block;
}

.form-wrapper .title {
    color: #172033;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 30px;
    padding-bottom: 14px;
    position: relative;
    text-align: left;
}

.form-wrapper .title::after {
    background: linear-gradient(90deg, #14b8a6, #2563eb, transparent);
    bottom: 0;
    box-shadow: 0 0 16px rgba(20, 184, 166, 0.28);
    content: "";
    height: 2px;
    left: 0;
    position: absolute;
    width: 96px;
}

.line {
    align-items: center;
    display: flex;
    gap: 12px;
    min-height: 40px;
}

.line + .line {
    margin-top: 16px;
}

.line label {
    align-items: center;
    display: grid;
    flex: 1;
    gap: 12px;
    grid-template-columns: 132px minmax(0, 1fr);
    min-width: 0;
}

.line .text {
    color: #53627a;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    text-align: right;
}

.line label > span:not(.text) {
    color: #68758c;
    font-size: 13px;
}

.input {
    background: #f9fbfd;
    border: 1px solid #c9d4e4;
    caret-color: #14b8a6;
    border-radius: 6px;
    color: #172033;
    height: 40px;
    outline: 0;
    padding: 0 12px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
    width: 100%;
}

.input:hover {
    background: #fff;
    border-color: #9aa7ba;
}

.input:focus {
    background: #fff;
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.16);
}

.input:focus-visible {
    outline: 2px solid rgba(20, 184, 166, 0.28);
    outline-offset: 1px;
}

.btn-blue,
input.btn-blue {
    align-items: center;
    background: linear-gradient(135deg, #14b8a6, #2563eb);
    background-size: 160% 160%;
    background-position: 0% 50%;
    border: 0;
    border-radius: 6px;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-weight: 700;
    height: 40px;
    justify-content: center;
    min-width: 112px;
    padding: 0 18px;
    transition:
        background-position 0.3s ease,
        box-shadow 0.16s ease,
        filter 0.16s ease,
        transform 0.16s ease;
    white-space: nowrap;
}

.btn-blue:hover,
input.btn-blue:hover {
    background-position: 100% 50%;
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.24);
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.btn-blue:focus-visible,
input.btn-blue:focus-visible {
    outline: 2px solid rgba(20, 184, 166, 0.42);
    outline-offset: 3px;
}

.btn-blue.disabled,
.btn-blue:disabled,
input.btn-blue:disabled {
    background: #aab5c5;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.verify-code {
    flex: 0 0 auto;
}

.line-center {
    margin-top: 34px;
    padding-left: 144px;
}

.submit,
.save {
    min-width: 180px;
}

.tip,
.tip-center {
    color: #dc2626;
    font-size: 13px;
}

.tip {
    flex: 0 0 150px;
}

.tip-center {
    margin-top: 18px;
    min-height: 20px;
    padding-left: 144px;
}

.tip-center.success {
    color: #059669;
}

.change-password {
    margin-top: 34px;
}

#forgetPasswordForm {
    display: none;
}

.page-forget-password #hasPhone .line label {
    grid-template-columns: max-content minmax(0, 1fr);
}

.page-forget-password #hasPhone .line .text {
    white-space: nowrap;
}

.footer {
    color: #677389;
    margin: 0 auto;
    max-width: 1120px;
    padding: 8px 24px 28px;
    width: 100%;
}

.footer .row-1,
.footer .img-wrapper {
    display: none;
}

.footer .row-2 {
    border-top: 1px solid rgba(83, 98, 124, 0.14);
    padding-top: 16px;
}

.license {
    font-size: 12px;
    line-height: 1.8;
    text-align: center;
}

.license a {
    color: #2563eb;
}

.popUp {
    background: #fff;
    border: 1px solid rgba(83, 98, 124, 0.16);
    border-radius: 8px;
    box-shadow: 0 28px 80px rgba(32, 45, 64, 0.24);
    color: #1d2433;
    overflow: hidden;
    padding-bottom: 0;
    position: fixed;
    z-index: 9999;
}

.popUp-title {
    background: linear-gradient(135deg, #172033, #26364f);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    height: 40px;
    line-height: 40px;
    padding: 0 14px;
}

.popUp-title .close {
    color: #fff;
    float: right;
    line-height: 40px;
}

.popUp-title .closeImg-::before {
    content: "x";
}

.popUp-content {
    padding: 18px;
}

.popUp-wrapper .popUp-text,
.popUp .popUp-text,
.popUp-text {
    font-size: 14px;
    line-height: 1.7;
    text-align: center;
}

.popUp-footer {
    border-top: 1px solid #e2e8f0;
    padding: 12px 14px;
    text-align: right;
}

.popUp-mask {
    background: rgba(15, 23, 42, 0.45);
    bottom: 0;
    display: block;
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 9998;
}

.btn-confirm-default,
.btn-cancel-default {
    border: 1px solid #2563eb;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    height: 32px;
    padding: 0 14px;
}

.btn-confirm-default {
    background: #2563eb;
    color: #fff;
}

.btn-cancel-default {
    background: #fff;
    color: #2563eb;
    margin-left: 8px;
}

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

@media (max-width: 860px) {
    .header-wrapper {
        height: auto;
        min-height: 64px;
    }

    .body {
        grid-template-columns: 1fr;
        margin-top: 14px;
    }

    .nav-wrapper {
        padding: 12px;
    }

    .level-1 > li {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .level-2 {
        display: flex;
        gap: 8px;
        margin-top: 0;
        width: 100%;
    }

    .level-2 > li {
        flex: 1;
        margin-top: 0;
    }

    .level-2 > li + li {
        margin-top: 0;
    }

    .level-2 a {
        line-height: 34px;
        padding-left: 28px;
    }

    .container-wrapper {
        min-height: 0;
        padding: 28px 18px;
    }

    .line {
        align-items: stretch;
        flex-direction: column;
    }

    .line label {
        grid-template-columns: 1fr;
    }

    .page-forget-password #hasPhone .line label {
        grid-template-columns: 1fr;
    }

    .line .text {
        text-align: left;
    }

    .line > .tip {
        flex-basis: auto;
        flex-grow: 0;
        flex-shrink: 1;
        min-height: 0;
        width: 100%;
    }

    .verify-code {
        width: 100%;
    }

    .line-center,
    .tip-center {
        padding-left: 0;
    }

    .submit,
    .save {
        width: 100%;
    }

    .page-bind-phone .container-wrapper {
        padding: 24px 18px 28px;
    }

    .page-bind-phone .form-wrapper {
        max-width: 100%;
    }

    .page-bind-phone .form-wrapper .title {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 24px;
    }

    .page-bind-phone .line {
        gap: 10px;
    }

    .page-bind-phone .line + .line {
        margin-top: 14px;
    }

    .page-bind-phone .line label {
        gap: 8px;
    }

    .page-bind-phone .line .text {
        font-size: 14px;
    }

    .page-bind-phone .input {
        font-size: 16px;
        height: 44px;
        padding: 0 14px;
    }

    .page-bind-phone .verify-code {
        height: 44px;
        min-width: 0;
        width: 100%;
    }

    .page-bind-phone .line-center {
        margin-top: 26px;
    }

    .page-bind-phone .submit {
        height: 44px;
        min-width: 0;
    }
}

@media (max-width: 520px) {
    .header-wrapper,
    .body,
    .footer {
        padding-left: 14px;
        padding-right: 14px;
    }

    .header-left {
        font-size: 18px;
    }

    .user-info {
        display: none;
    }

    .page-bind-phone .container-wrapper {
        padding: 20px 14px 24px;
    }

    .page-bind-phone .form-wrapper .title {
        font-size: 15px;
        margin-bottom: 20px;
    }
}
