:root {
    --xy-green: #064835;
    --xy-green-deep: #032920;
    --xy-green-mid: #0b604a;
    --xy-gold: #d4a54f;
    --xy-gold-light: #f1d590;
    --xy-ink: #21332e;
    --xy-muted: #7a7468;
    --xy-line: #e7d7b8;
    --xy-paper: #fffdf7;
    --xy-paper-soft: #fbf3e3;
}

* {
    box-sizing: border-box;
    letter-spacing: 0;
}

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

body.xy-account-body {
    margin: 0;
    color: var(--xy-ink);
    background: var(--xy-paper-soft);
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

.xy-account-body button,
.xy-account-body input {
    font: inherit;
}

.xy-account-shell {
    display: grid;
    grid-template-columns: minmax(420px, 44%) minmax(460px, 1fr);
    min-height: 100vh;
}

.xy-account-art {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background: var(--xy-green-deep);
    border-right: 1px solid var(--xy-gold);
}

.xy-account-art > img,
.xy-account-art-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.xy-account-art > img {
    object-fit: cover;
    opacity: .92;
    filter: brightness(.92) saturate(.96);
}

.xy-account-art-shade {
    background: rgba(3, 41, 32, .42);
}

.xy-account-brand {
    position: absolute;
    top: 38px;
    left: 36px;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    color: #ffefbf;
}

.xy-account-seal {
    display: grid;
    place-items: center;
    width: 52px;
    height: 68px;
    color: #173d32;
    font-size: 23px;
    font-weight: 800;
    background: #e4b45d;
    border: 2px solid #f8dda0;
    border-radius: 8px;
    box-shadow: 0 0 0 1px #8d5d18, 0 0 0 4px rgba(244, 198, 99, .30), inset 0 0 0 2px rgba(83, 49, 12, .20), 0 10px 18px rgba(0, 0, 0, .22);
}

.xy-account-brand strong {
    display: block;
    color: #ffefbf;
    font-size: 21px;
}

.xy-account-brand small {
    display: block;
    margin-top: 7px;
    color: #eac974;
    font-size: 12px;
}

.xy-account-main {
    min-width: 0;
    min-height: 100vh;
    background: var(--xy-paper-soft);
}

.xy-account-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 72px;
    padding: 0 30px;
    background: rgba(255, 253, 247, .76);
    border-bottom: 1px solid var(--xy-line);
}

.xy-account-page-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.xy-account-page-brand > span {
    width: 4px;
    height: 36px;
    background: var(--xy-gold);
}

.xy-account-page-brand strong,
.xy-account-page-brand small {
    display: block;
}

.xy-account-page-brand strong {
    color: var(--xy-ink);
    font-size: 17px;
}

.xy-account-page-brand small {
    margin-top: 3px;
    color: var(--xy-muted);
    font-size: 11px;
}

.xy-account-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    height: auto;
    padding: 0 !important;
    background: transparent !important;
}

.xy-account-nav .layui-nav-item {
    height: 38px;
    line-height: 38px;
}

.xy-account-nav .layui-nav-item a {
    height: 38px;
    padding: 0 16px;
    color: #5d4a28 !important;
    background: #fffaf0;
    border: 1px solid #d8c5a0;
    border-radius: 4px;
}

.xy-account-nav .layui-nav-item a:hover {
    color: var(--xy-green) !important;
    border-color: var(--xy-gold);
}

.xy-account-nav .layui-this a {
    color: #ffe8ad !important;
    background: var(--xy-green);
    border-color: #8b681f;
    box-shadow: inset 0 -3px 0 rgba(212, 165, 79, .58);
}

.xy-account-nav .layui-this:after,
.xy-account-nav .layui-nav-bar {
    display: none;
}

.xy-account-content {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 72px);
    padding: 28px;
}

.xy-account-card {
    width: min(100%, 520px);
    padding: 28px 34px 30px;
    background: rgba(255, 253, 247, .94);
    border: 1px solid var(--xy-line);
    border-radius: 2px;
    box-shadow: 0 20px 52px rgba(91, 65, 22, .13);
}

.xy-account-heading {
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--xy-line);
}

.xy-account-heading span {
    color: #9c752e;
    font-size: 12px;
}

.xy-account-heading h1 {
    margin: 6px 0 0;
    color: var(--xy-ink);
    font-size: 25px;
    font-weight: 700;
}

.xy-account-form .layui-form-item {
    margin-bottom: 17px;
}

.xy-account-form .layui-form-label {
    float: none;
    display: block;
    width: auto;
    height: auto;
    margin: 0 0 7px;
    padding: 0;
    color: #625844;
    text-align: left;
    line-height: 1.4;
    background: transparent;
    border: 0;
    font-size: 12px;
    font-weight: 700;
}

.xy-account-form .layui-input-block {
    min-height: 0;
    margin-left: 0;
}

.xy-account-form .layui-input {
    height: 42px;
    padding: 0 12px;
    color: var(--xy-ink);
    background: #fffdf8;
    border: 1px solid #d9c8a8;
    border-radius: 4px;
}

.xy-account-form .layui-input:hover,
.xy-account-form .layui-input:focus {
    border-color: var(--xy-gold) !important;
    box-shadow: 0 0 0 2px rgba(212, 165, 79, .14);
}

.xy-account-form .layui-input::placeholder {
    color: #aaa08f;
}

.xy-password-field {
    position: relative;
}

.xy-password-field .layui-input {
    padding-right: 46px;
}

.xy-password-toggle {
    position: absolute;
    top: 1px;
    right: 1px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: #8d806a;
    background: transparent;
    border: 0;
    border-left: 1px solid #eadcc3;
    border-radius: 0 3px 3px 0;
    cursor: pointer;
}

.xy-password-toggle:hover,
.xy-password-toggle.is-visible {
    color: var(--xy-green);
    background: #f7eedc;
}

.xy-account-form .button_sms,
.xy-account-form .auth_submit {
    width: 100%;
    height: 40px;
    color: #5d4a28;
    background: #fffaf0;
    border: 1px solid #d8c5a0;
    border-radius: 4px;
}

.xy-account-form .button_sms:hover,
.xy-account-form .auth_submit:hover {
    color: var(--xy-green);
    border-color: var(--xy-gold);
}

.xy-account-form center {
    display: block;
}

.xy-account-form .from_button {
    width: 100%;
    height: 44px;
    margin-top: 4px;
    padding: 0 18px;
    color: #ffe8ad;
    background: var(--xy-green);
    border: 1px solid #8b681f;
    border-radius: 4px !important;
    box-shadow: inset 0 -3px 0 rgba(212, 165, 79, .58);
    font-size: 15px;
    font-weight: 700;
}

.xy-account-form .from_button:hover {
    color: #fff2c2;
    background: var(--xy-green-mid);
}

.xy-account-form .from_button:disabled {
    cursor: not-allowed;
    opacity: .64;
}

.xy-account-body .layui-layer {
    border: 1px solid var(--xy-line);
    box-shadow: 0 20px 52px rgba(33, 51, 46, .18);
}

.xy-account-body .layui-layer-title {
    color: #ffefbf;
    background: var(--xy-green);
    border-bottom-color: var(--xy-gold);
}

.xy-account-body .layui-layer-btn a {
    color: #ffe8ad;
    background: var(--xy-green);
    border-color: #8b681f;
    border-radius: 4px;
}

@media (max-width: 900px) {
    .xy-account-shell {
        grid-template-columns: 340px minmax(420px, 1fr);
    }
}

@media (max-width: 780px) {
    .xy-account-shell {
        display: block;
    }

    .xy-account-art {
        position: relative;
        height: 148px;
        border-right: 0;
        border-bottom: 1px solid var(--xy-gold);
    }

    .xy-account-brand {
        top: 24px;
        left: 24px;
    }

    .xy-account-main {
        min-height: auto;
    }

    .xy-account-topbar {
        min-height: 62px;
        padding: 10px 16px;
    }

    .xy-account-page-brand {
        display: none;
    }

    .xy-account-nav {
        width: 100%;
    }

    .xy-account-nav .layui-nav-item {
        flex: 1;
        text-align: center;
    }

    .xy-account-nav .layui-nav-item a {
        padding: 0 10px;
    }

    .xy-account-content {
        min-height: 0;
        padding: 16px;
    }

    .xy-account-card {
        padding: 24px 20px 26px;
    }
}

@media (max-width: 420px) {
    .xy-account-art {
        height: 126px;
    }

    .xy-account-seal {
        width: 46px;
        height: 60px;
        font-size: 21px;
    }

    .xy-account-brand strong {
        font-size: 18px;
    }

    .xy-account-brand small {
        font-size: 10px;
    }

    .xy-account-heading h1 {
        font-size: 22px;
    }
}

@media (min-width: 781px) and (max-height: 680px) {
    .xy-account-content {
        place-items: start center;
        padding-top: 20px;
        padding-bottom: 20px;
    }
}
