* {
    box-sizing: border-box;
}

[v-cloak] {
    display: none;
}

body.user-page {
    margin: 0;
    min-height: 100vh;
    font-family: PingFang SC, Helvetica Neue, Arial, sans-serif;
    background:
        linear-gradient(135deg, rgba(21, 94, 117, .13) 0%, rgba(255, 255, 255, 0) 34%),
        linear-gradient(315deg, rgba(22, 163, 74, .1) 0%, rgba(255, 255, 255, 0) 30%),
        linear-gradient(180deg, #f7fbff 0%, #eef6f8 100%);
    color: #142033;
}

body.user-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(20, 32, 51, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 32, 51, .045) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(135deg, rgba(0, 0, 0, .5), transparent 74%);
}

body.user-page::after {
    content: "";
    position: fixed;
    inset: -18% -12%;
    pointer-events: none;
    background:
        radial-gradient(circle at 76% 16%, rgba(37, 99, 235, .1), transparent 28%),
        radial-gradient(circle at 34% 78%, rgba(20, 184, 166, .1), transparent 30%),
        radial-gradient(circle at 52% 42%, rgba(15, 118, 110, .055), transparent 38%);
    opacity: .72;
}

.user-shell {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr);
    grid-template-rows: 60px minmax(0, 1fr);
}

.user-sidebar {
    position: relative;
    grid-row: 1 / span 2;
    background:
        linear-gradient(180deg, transparent 46%, rgba(255, 255, 255, .74) 100%),
        linear-gradient(155deg, rgba(15, 118, 110, .07), transparent 34%),
        linear-gradient(24deg, rgba(37, 99, 235, .045), transparent 42%),
        rgba(248, 251, 253, .9);
    color: #526273;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    border-right: 1px solid rgba(205, 218, 229, .82);
    box-shadow: 12px 0 34px rgba(31, 65, 92, .065);
    backdrop-filter: blur(18px);
    overflow: hidden;
}

.user-sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 18% 12%, rgba(20, 184, 166, .075), transparent 28%),
        linear-gradient(112deg, transparent 0 22%, rgba(20, 184, 166, .035) 22.4%, transparent 23% 63%, rgba(37, 99, 235, .03) 63.4%, transparent 64%);
    opacity: .72;
}

.user-sidebar::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(20, 184, 166, .24), transparent);
}

.user-brand {
    position: relative;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    border-bottom: 1px solid rgba(205, 218, 229, .72);
    min-width: 0;
}

.user-brand-logo,
.user-avatar {
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, #0f766e, #2563eb);
    flex: 0 0 auto;
}

.user-brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    box-shadow: 0 12px 24px rgba(15, 118, 110, .22);
}

.user-brand-logo img,
.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-brand-name {
    color: #334155;
    font-size: 16px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-nav {
    position: relative;
    padding: 14px 10px;
}

.user-nav-item {
    width: 100%;
    height: 42px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0 12px;
    background: transparent;
    color: #637487;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    text-align: left;
    text-decoration: none;
    transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.user-nav-item + .user-nav-item,
.user-nav-group + .user-nav-item,
.user-nav-item + .user-nav-group,
.user-nav-group + .user-nav-group {
    margin-top: 6px;
}

.user-nav-mark {
    width: 16px;
    height: 16px;
    position: relative;
    display: inline-block;
    flex: 0 0 16px;
    color: currentColor;
}

.user-nav-mark::before,
.user-nav-mark::after,
.user-nav-arrow::before,
.user-nav-arrow::after {
    content: "";
    position: absolute;
    box-sizing: border-box;
}

.user-nav-mark-home::before {
    left: 2px;
    top: 6px;
    width: 12px;
    height: 8px;
    border: 2px solid currentColor;
    border-top: 0;
    border-radius: 2px;
}

.user-nav-mark-home::after {
    left: 3px;
    top: 2px;
    width: 10px;
    height: 10px;
    border-left: 2px solid currentColor;
    border-top: 2px solid currentColor;
    transform: rotate(45deg);
}

.user-nav-mark-user::before {
    left: 5px;
    top: 2px;
    width: 6px;
    height: 6px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.user-nav-mark-user::after {
    left: 3px;
    bottom: 2px;
    width: 10px;
    height: 6px;
    border: 2px solid currentColor;
    border-radius: 8px 8px 3px 3px;
}

.user-nav-mark-lock::before {
    left: 3px;
    bottom: 2px;
    width: 10px;
    height: 8px;
    border: 2px solid currentColor;
    border-radius: 2px;
}

.user-nav-mark-lock::after {
    left: 5px;
    top: 2px;
    width: 6px;
    height: 7px;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
}

.user-nav-mark-location::before {
    left: 3px;
    top: 1px;
    width: 10px;
    height: 13px;
    border: 2px solid currentColor;
    border-radius: 8px 8px 8px 2px;
    transform: rotate(45deg);
}

.user-nav-mark-location::after {
    left: 6px;
    top: 4px;
    width: 4px;
    height: 4px;
    border: 1px solid currentColor;
    border-radius: 50%;
}

.user-nav-mark-wallet::before {
    left: 1px;
    top: 4px;
    width: 14px;
    height: 10px;
    border: 2px solid currentColor;
    border-radius: 3px;
}

.user-nav-mark-wallet::after {
    right: 1px;
    top: 7px;
    width: 5px;
    height: 4px;
    border: 2px solid currentColor;
    border-right: 0;
    border-radius: 3px 0 0 3px;
}

.user-nav-mark-coin::before,
.user-nav-mark-coin::after {
    left: 3px;
    width: 10px;
    height: 5px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.user-nav-mark-coin::before {
    top: 3px;
}

.user-nav-mark-coin::after {
    bottom: 3px;
}

.user-nav-mark-transfer::before,
.user-nav-mark-transfer::after {
    width: 11px;
    height: 6px;
    border-top: 2px solid currentColor;
}

.user-nav-mark-transfer::before {
    left: 2px;
    top: 4px;
    border-right: 2px solid currentColor;
    transform: skewX(-28deg);
}

.user-nav-mark-transfer::after {
    right: 2px;
    bottom: 1px;
    border-left: 2px solid currentColor;
    transform: skewX(-28deg);
}

.user-nav-mark-reading::before {
    left: 2px;
    top: 3px;
    width: 12px;
    height: 10px;
    border: 2px solid currentColor;
    border-radius: 2px;
}

.user-nav-mark-reading::after {
    left: 8px;
    top: 4px;
    width: 1px;
    height: 8px;
    background: currentColor;
}

.user-nav-mark-bell::before {
    left: 4px;
    top: 2px;
    width: 8px;
    height: 10px;
    border: 2px solid currentColor;
    border-radius: 8px 8px 4px 4px;
}

.user-nav-mark-bell::after {
    left: 6px;
    bottom: 1px;
    width: 4px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.user-nav-mark-dot::before {
    left: 5px;
    top: 5px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.user-nav-mark-api::before {
    left: 2px;
    top: 3px;
    width: 12px;
    height: 10px;
    border: 2px solid currentColor;
    border-radius: 3px;
}

.user-nav-mark-api::after {
    left: 5px;
    top: 6px;
    width: 6px;
    height: 2px;
    border-top: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
}

.user-nav-arrow {
    width: 12px;
    height: 12px;
    position: relative;
    display: inline-block;
    flex: 0 0 12px;
}

.user-nav-arrow::before {
    left: 2px;
    top: 3px;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.user-nav-item i:first-child,
.user-subnav-item i {
    width: 16px;
    text-align: center;
}

.user-nav-group-title {
    appearance: none;
}

.user-nav-text {
    min-width: 0;
}

.user-nav-group-title .user-nav-text {
    flex: 1;
}

.user-nav-group.is-open .user-nav-arrow {
    transform: rotate(180deg);
}

.user-nav-item:hover {
    background: rgba(15, 118, 110, .055);
    color: #315d68;
}

.user-nav-group.is-open .user-nav-group-title {
    background: rgba(15, 118, 110, .05);
    color: #315d68;
}

.user-nav-item.is-active {
    background: rgba(15, 118, 110, .085);
    border-color: rgba(15, 118, 110, .13);
    color: #245967;
    box-shadow: inset 3px 0 0 rgba(20, 184, 166, .72), 0 7px 16px rgba(31, 79, 105, .06);
}

.user-subnav {
    display: none;
    padding: 4px 0 2px 14px;
}

.user-nav-group.is-open .user-subnav {
    display: block;
}

.user-subnav-item {
    height: 36px;
    border-radius: 8px;
    padding: 0 10px;
    color: #738294;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    text-decoration: none;
    transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}

.user-subnav-item + .user-subnav-item {
    margin-top: 3px;
}

.user-subnav-item:hover {
    background: rgba(15, 118, 110, .05);
    color: #315d68;
}

.user-subnav-item.is-active {
    background: rgba(20, 184, 166, .09);
    color: #245967;
    box-shadow: inset 3px 0 0 rgba(20, 184, 166, .68);
}

.user-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 22px;
    background: rgba(255, 255, 255, .76);
    border-bottom: 1px solid rgba(213, 226, 239, .88);
    min-width: 0;
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 30px rgba(20, 32, 51, .05);
}

body.user-page.user-page-navigating .user-topbar::after {
    content: "";
    position: fixed;
    z-index: 80;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    pointer-events: none;
    background-image: linear-gradient(90deg, transparent, rgba(20, 184, 166, .92), rgba(37, 99, 235, .9), transparent);
    background-size: 220px 3px;
    background-repeat: no-repeat;
    animation: userPageProgress .8s ease-in-out infinite;
}

.user-top-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.user-menu-toggle {
    display: none;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(15, 118, 110, .22);
    border-radius: 8px;
    background: rgba(255, 255, 255, .78);
    color: #0f766e;
    cursor: pointer;
}

.user-page-title {
    font-size: 18px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-account-trigger {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: background .16s ease, border-color .16s ease;
}

.user-account-trigger:hover {
    background: rgba(15, 118, 110, .07);
    border-color: rgba(15, 118, 110, .15);
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 14px;
}

.user-account-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 700;
}

.user-main {
    position: relative;
    grid-column: 2;
    padding: 22px;
    min-width: 0;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease;
}

body.user-page.user-page-ready .user-main {
    opacity: 1;
    transform: translateY(0);
}

body.user-page.user-page-leaving .user-main {
    opacity: .28;
    transform: translateY(8px);
}

body.user-page.user-page-navigating .user-shell::after {
    content: "正在进入...";
    position: fixed;
    z-index: 81;
    top: 76px;
    right: 24px;
    min-height: 34px;
    padding: 0 14px 0 38px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(20, 184, 166, .18);
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 16px 36px rgba(20, 32, 51, .1);
    color: #0f766e;
    font-size: 13px;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

body.user-page.user-page-navigating .user-shell::before {
    content: "";
    position: fixed;
    z-index: 82;
    top: 86px;
    right: 110px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(15, 118, 110, .18);
    border-top-color: #0f766e;
    animation: userPageSpin .72s linear infinite;
}

@keyframes userPageProgress {
    0% {
        background-position: -220px 0;
    }

    100% {
        background-position: 100vw 0;
    }
}

@keyframes userPageSpin {
    to {
        transform: rotate(360deg);
    }
}

.user-card,
.user-panel {
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(222, 233, 244, .92);
    border-radius: 8px;
    box-shadow: 0 16px 42px rgba(20, 32, 51, .08);
    backdrop-filter: blur(14px);
}

.user-card {
    padding: 20px;
}

.user-panel {
    padding: 18px;
}

.user-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.user-section-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #142033;
}

.user-section-sub {
    margin-top: 4px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.7;
}

.user-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

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

.user-metric {
    padding: 18px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(222, 233, 244, .9);
}

.user-metric-label {
    color: #64748b;
    font-size: 13px;
}

.user-metric-value {
    margin-top: 10px;
    color: #0f766e;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 900;
}

.user-row-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.user-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.user-list {
    display: grid;
    gap: 12px;
}

.user-list-item {
    padding: 14px;
    border-radius: 8px;
    border: 1px solid rgba(222, 233, 244, .9);
    background: rgba(255, 255, 255, .72);
}

.user-item-title {
    color: #142033;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.5;
}

.user-item-meta {
    margin-top: 6px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.user-empty {
    padding: 34px 16px;
    color: #64748b;
    text-align: center;
}

.user-loading,
.user-error {
    padding: 24px;
    color: #64748b;
}

.user-error {
    color: #b91c1c;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(15, 118, 110, .09);
    color: #0f766e;
    font-size: 12px;
    font-weight: 700;
}

.user-detail-html {
    color: #26364f;
    font-size: 14px;
    line-height: 1.9;
    word-break: break-word;
}

.user-detail-html img,
.user-detail-html video {
    max-width: 100%;
    height: auto;
}

.user-pagination {
    display: flex;
    justify-content: flex-end;
    margin-top: 16px;
}

.user-table-wrap {
    overflow-x: auto;
}

.user-copyable {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 28px;
    padding: 0 7px;
    border-radius: 6px;
    color: #0f766e;
    cursor: pointer;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    transition: background .16s ease, color .16s ease;
}

.user-copyable:hover {
    background: rgba(15, 118, 110, .08);
    color: #0c5d57;
}

.user-api-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #64748b;
    font-size: 12px;
}

.user-card.user-api-integration-card {
    padding: 0;
    overflow: hidden;
}

.user-api-integration {
    border: 0;
}

.user-api-integration .el-collapse-item__header {
    height: auto;
    min-height: 70px;
    padding: 0 20px;
    border-bottom: 0;
    color: #1e293b;
    line-height: 1.4;
}

.user-api-integration .el-collapse-item__wrap {
    border-bottom: 0;
}

.user-api-integration-title {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.user-api-integration-title strong {
    display: block;
    font-size: 15px;
}

.user-api-integration-title span {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 12px;
}

.user-api-integration-title > .el-icon-connection {
    color: #0f766e;
    font-size: 20px;
}

.user-api-integration-body {
    padding: 0 20px 20px;
    border-top: 1px solid rgba(222, 233, 244, .92);
}

.user-api-example-toolbar {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 16px;
    padding: 18px 0 14px;
}

.user-api-example-label {
    margin-bottom: 7px;
    color: #64748b;
    font-size: 12px;
    line-height: 1;
}

.user-api-example-mode {
    min-width: 92px;
}

.user-api-example-actions {
    display: flex;
    gap: 8px;
}

.user-api-example-tip {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding: 10px 12px;
    border: 1px solid rgba(14, 116, 144, .16);
    border-radius: 8px;
    background: rgba(236, 253, 245, .68);
    color: #475569;
    font-size: 12px;
    line-height: 1.65;
}

.user-api-example-tip > i {
    margin-top: 3px;
    color: #0f766e;
}

.user-api-code-tabs {
    margin-top: 16px;
}

.user-api-code-tabs .el-tabs__header {
    margin-bottom: 12px;
}

.user-api-markdown {
    color: #475569;
    font-size: 13px;
    line-height: 1.7;
}

.user-api-markdown h2 {
    margin: 0 0 8px;
    color: #1e293b;
    font-size: 14px;
}

.user-api-markdown p {
    margin: 0 0 12px;
}

.user-api-markdown pre,
.user-api-markdown pre.hljs {
    overflow-x: auto;
    margin: 0;
    padding: 16px;
    border: 1px solid rgba(15, 23, 42, .9);
    border-radius: 8px;
    background: #111827;
}

.user-api-markdown pre code,
.user-api-markdown pre.hljs code {
    padding: 0;
    background: transparent;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    line-height: 1.7;
}

.user-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.user-form-grid .is-full {
    grid-column: 1 / -1;
}

@media (max-width: 860px) {
    .user-shell {
        display: block;
    }

    .user-sidebar {
        position: fixed;
        z-index: 30;
        top: 0;
        left: 0;
        width: 236px;
        transform: translateX(-100%);
        transition: transform .18s ease;
    }

    .user-sidebar.is-open {
        transform: translateX(0);
    }

    .user-topbar {
        grid-column: auto;
        height: 60px;
        padding: 0 14px;
    }

    .user-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .user-main {
        grid-column: auto;
        padding: 14px;
    }

    body.user-page.user-page-navigating .user-shell::after {
        top: 72px;
        right: 14px;
    }

    body.user-page.user-page-navigating .user-shell::before {
        top: 82px;
        right: 100px;
    }

    .user-grid,
    .user-grid-3,
    .user-form-grid {
        grid-template-columns: 1fr;
    }

    .user-account-name {
        display: none;
    }
}

@media (max-width: 520px) {
    .user-card,
    .user-panel {
        padding: 14px;
    }

    .user-section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .user-pagination {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .user-nav-item,
    .user-account-trigger,
    .user-sidebar,
    .user-main {
        transition: none;
    }

    .user-main,
    body.user-page.user-page-ready .user-main,
    body.user-page.user-page-leaving .user-main {
        opacity: 1;
        transform: none;
    }

    body.user-page.user-page-navigating .user-topbar::after,
    body.user-page.user-page-navigating .user-shell::before {
        animation: none;
    }
}
