:root {
    --lite-bg: #f5f8fc;
    --lite-panel: #ffffff;
    --lite-ink: #172033;
    --lite-muted: #65758b;
    --lite-line: #dfe7f1;
    --lite-blue: #0052d9;
    --lite-blue-dark: #003cab;
    --lite-cyan: #14b8a6;
    --lite-red: #ef4444;
    --lite-sidebar: #ffffff;
    --lite-sidebar-soft: #ecf2fe;
}

html {
    background: #fff;
}

* {
    box-sizing: border-box;
}

body.developer-entry,
body.developer-auth,
body.developer-console {
    margin: 0;
    color: var(--lite-ink);
    background: var(--lite-bg);
    font-family: Inter, "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

body.developer-auth {
    min-height: 100vh;
    overflow-x: hidden;
    background: #fff;
}

body.auth-modal-open {
    overflow: hidden;
}

body.auth-modal-open .auth-home-shell {
    filter: blur(1.6px) saturate(1.02);
    transform: scale(1.002);
}

body.auth-modal-open .auth-ambient-canvas {
    filter: saturate(1.04);
    transform: scale(1.001);
}

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

.entry-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 18px;
    background:
        linear-gradient(135deg, rgba(0, 82, 217, .12), rgba(20, 184, 166, .08)),
        #f8fbff;
}

.entry-card {
    width: min(520px, 100%);
    padding: 40px;
    border: 1px solid rgba(0, 82, 217, .14);
    border-radius: 8px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 24px 70px rgba(22, 34, 58, .12);
}

.entry-kicker,
.auth-kicker,
.page-kicker {
    margin: 0 0 10px;
    color: var(--lite-blue);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
}

.entry-title {
    margin: 0;
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: 0;
}

.entry-copy {
    margin: 16px 0 26px;
    color: var(--lite-muted);
    font-size: 15px;
    line-height: 1.8;
}

.primary-btn,
.secondary-btn,
.danger-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: .18s ease;
}

.primary-btn {
    color: #fff;
    background: var(--lite-blue);
}

.primary-btn:hover {
    color: #fff;
    background: var(--lite-blue-dark);
}

.secondary-btn {
    color: var(--lite-blue);
    background: #eef5ff;
    border-color: #cfe0ff;
}

.secondary-btn.is-active {
    color: #fff;
    background: #0052d9;
    border-color: #0052d9;
}

.danger-btn {
    color: #fff;
    background: var(--lite-red);
}

.ghost-btn {
    color: var(--lite-muted);
    background: transparent;
    border-color: var(--lite-line);
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #cfe0ff;
    border-radius: 8px;
    color: #0052d9;
    background: #eef5ff;
    transition: .18s ease;
}

.icon-btn:hover {
    color: #fff;
    background: #0052d9;
}

.icon-btn .layui-icon {
    font-size: 18px;
}

.auth-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(8, 18, 34, .62);
    z-index: 50;
}

.auth-modal.is-open {
    display: flex;
}

.auth-frame-wrap {
    width: min(460px, 100%);
    height: min(720px, calc(100vh - 36px));
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .28);
}

.auth-frame {
    width: 100%;
    height: 100%;
    border: 0;
}

.auth-close {
    position: fixed;
    top: 18px;
    right: 18px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .18);
    cursor: pointer;
    font-size: 22px;
}

.auth-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 20px 16px;
    background: transparent;
}

.auth-ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: #fff;
}

.auth-ambient-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    transform-origin: center;
    transition: filter .28s ease, transform .28s ease;
}

.auth-home-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0 32px 52px;
    background: transparent;
    transform-origin: center;
    transition: filter .28s ease, transform .28s ease;
}

.auth-home-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 12;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding: 0 40px;
    background: rgba(255, 255, 255, .76);
    border-bottom: 1px solid rgba(219, 231, 246, .62);
    backdrop-filter: blur(16px);
}

.auth-home-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    max-width: min(520px, 58vw);
    color: #101827;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
}

.auth-home-brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-home-brand-mark {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border: 3px solid #101827;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, #0052d9, #9db6d8) border-box;
    box-shadow: 6px 6px 0 rgba(0, 82, 217, .16);
}

.auth-home-hero {
    flex: 1;
    display: flex;
    align-items: flex-end;
    padding: 128px 0 48px;
}

.auth-home-hero-inner {
    width: min(1360px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr);
    gap: 72px;
    align-items: end;
}

.auth-home-title-block h1 {
    margin: 0;
    color: #101827;
    font-size: 76px;
    font-weight: 760;
    line-height: 1.02;
    letter-spacing: 0;
    text-shadow: 0 0 22px rgba(255, 255, 255, .94), 0 0 5px #fff;
}

.auth-home-title-block h1 span {
    display: block;
    margin-top: 6px;
    color: #8793a7;
}

.auth-home-cta-block {
    max-width: 560px;
    padding-bottom: 12px;
    text-shadow: 0 0 18px rgba(255, 255, 255, .96);
}

.auth-home-kicker {
    margin: 0 0 8px;
    color: #101827;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0;
}

.auth-home-lede {
    margin: 0;
    color: #334155;
    font-size: 17px;
    line-height: 1.72;
}

.auth-home-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
}

.auth-home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 152px;
    min-height: 62px;
    padding: 0 28px;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.auth-home-btn:hover {
    transform: translateY(-1px);
}

.auth-home-btn-primary {
    color: #fff;
    background: linear-gradient(180deg, #266fe8 0%, #0052d9 100%);
    box-shadow: 0 18px 34px rgba(0, 82, 217, .22);
}

.auth-home-btn-primary:hover {
    background: linear-gradient(180deg, #0052d9 0%, #003cab 100%);
    box-shadow: 0 20px 38px rgba(0, 82, 217, .28);
}

.auth-home-btn-secondary {
    color: #101827;
    border-color: #cfdced;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 14px 32px rgba(22, 34, 58, .08);
}

.auth-home-btn-secondary:hover {
    border-color: #b7c9e5;
    background: #fff;
}

.auth-modal[hidden] {
    display: none;
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 28px;
    overflow-y: auto;
    background: transparent;
}

.auth-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    border: 0;
    background:
        radial-gradient(circle at 50% 48%, rgba(255, 255, 255, .12), transparent 42%),
        linear-gradient(135deg, rgba(255, 255, 255, .04), rgba(226, 237, 252, .10));
    backdrop-filter: blur(.8px) saturate(1.04);
    -webkit-backdrop-filter: blur(.8px) saturate(1.04);
    cursor: default;
}

.auth-modal-panel {
    position: relative;
    z-index: 1;
    width: min(900px, 100%);
    filter: none;
}

.auth-modal-panel .auth-split-card {
    width: 100%;
}

/* 开发者/代理登录改为单卡片（去掉"已登录账号"面板），面板收窄居中即可 */
.auth-modal .auth-modal-panel-login {
    width: min(440px, 100%);
}
.auth-modal-panel-login .auth-card-login {
    width: 100%;
}

.auth-modal-close {
    position: absolute;
    top: -18px;
    right: -18px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #cfe0f4;
    border-radius: 50%;
    color: #1f2a3d;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 14px 30px rgba(22, 34, 58, .12);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.auth-query-card {
    min-height: 430px;
}

.auth-query-summary {
    margin-top: 26px;
    padding: 18px;
    border: 1px solid #d4e2f2;
    border-radius: 8px;
    color: #526178;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 12px 28px rgba(0, 82, 217, .045);
}

.auth-query-summary span,
.auth-query-summary strong {
    display: block;
}

.auth-query-summary span {
    margin-bottom: 8px;
    color: #0052d9;
    font-size: 13px;
    font-weight: 900;
}

.auth-query-summary strong {
    color: #172033;
    font-size: 24px;
    line-height: 1.15;
}

.auth-query-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.auth-query-actions .auth-submit {
    margin-top: 8px;
}

.auth-card {
    width: min(420px, 100%);
    padding: 30px;
    border: 1px solid #d8e6f6;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 24px 64px rgba(22, 34, 58, .12), 0 1px 0 rgba(255, 255, 255, .9) inset;
}

.auth-split-shell {
    place-items: start center;
    align-content: center;
    overflow-y: auto;
    padding-top: 76px;
    padding-bottom: 28px;
}

.auth-split-card {
    position: relative;
    width: min(900px, calc(100% - 36px));
    min-height: 468px;
    display: grid;
    grid-template-columns: minmax(350px, 420px) minmax(400px, 1fr);
    isolation: isolate;
    overflow: hidden;
    border: 1px solid rgba(199, 218, 242, .92);
    border-radius: 8px;
    background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
    box-shadow:
        0 36px 72px -30px rgba(0, 82, 217, .22),
        0 16px 34px -22px rgba(22, 34, 58, .18),
        0 1px 0 rgba(255, 255, 255, .9) inset;
}

.auth-split-card::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc(46.6% - 58px);
    z-index: 2;
    width: 116px;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 48% 22%, rgba(0, 82, 217, .075), transparent 62%),
        radial-gradient(ellipse at 48% 78%, rgba(148, 163, 184, .09), transparent 64%),
        linear-gradient(90deg,
            rgba(241, 247, 255, 0) 0%,
            rgba(244, 249, 255, .24) 22%,
            rgba(248, 252, 255, .56) 46%,
            rgba(255, 255, 255, .7) 62%,
            rgba(255, 255, 255, 0) 100%);
    opacity: .62;
}

.auth-account-pane,
.auth-form-pane {
    position: relative;
    z-index: 1;
    min-width: 0;
    padding: 33px 31px;
}

.auth-account-pane {
    border-radius: 8px 0 0 8px;
    border-right: 0;
    background:
        radial-gradient(circle at 18% -6%, rgba(0, 82, 217, .11), transparent 34%),
        radial-gradient(circle at 100% 18%, rgba(147, 197, 253, .14), transparent 34%),
        linear-gradient(90deg, rgba(248, 252, 255, 0) 0%, rgba(248, 252, 255, 0) 68%, rgba(255, 255, 255, .62) 100%),
        linear-gradient(145deg, #f8fcff 0%, #f1f7ff 54%, #f7fbff 100%);
}

.auth-account-pane::after {
    content: "";
    position: absolute;
    top: 0;
    right: -54px;
    bottom: 0;
    z-index: 3;
    width: 108px;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 45% 18%, rgba(0, 82, 217, .055), transparent 64%),
        radial-gradient(ellipse at 52% 78%, rgba(148, 163, 184, .075), transparent 68%),
        linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
                rgba(239, 246, 255, .14) 24%,
                rgba(250, 253, 255, .54) 52%,
                rgba(255, 255, 255, 0) 100%);
    opacity: .66;
}

.auth-form-pane {
    padding-top: 54px;
    border-radius: 0 8px 8px 0;
    background:
        linear-gradient(90deg, rgba(239, 246, 255, .42) 0%, rgba(255, 255, 255, .96) 15%, rgba(255, 255, 255, 0) 38%),
        radial-gradient(ellipse at 0% 50%, rgba(219, 234, 254, .13), transparent 48%),
        radial-gradient(circle at 100% 0%, rgba(219, 234, 254, .26), transparent 35%),
        linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 255, 255, .995)),
        #fff;
}

.auth-form-pane .auth-title {
    margin-bottom: 25px;
}

.auth-mode-tabs {
    justify-content: flex-start;
    height: 44px;
    margin-bottom: 19px;
    padding: 4px;
    gap: 4px;
    border-color: #d6e5f7;
    background: rgba(248, 251, 255, .9);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .95) inset;
}

.auth-account-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.auth-add-account {
    min-height: 37px;
    padding: 0 14px;
    white-space: nowrap;
    border-color: #cfe0ff;
    color: #155dfc;
    background: rgba(239, 246, 255, .82);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .86) inset;
}

.auth-account-list {
    display: grid;
    gap: 12px;
    max-height: 390px;
    margin-top: 19px;
    padding-right: 4px;
    overflow-y: auto;
}

.auth-account-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 64px;
    padding: 8px 8px 8px 10px;
    border: 1px solid #d4e2f2;
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 12px 28px rgba(0, 82, 217, .045), 0 1px 0 rgba(255, 255, 255, .94) inset;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.auth-account-item:hover {
    transform: translateY(-1px);
    border-color: #b9d0f0;
    box-shadow: 0 18px 36px rgba(0, 82, 217, .08), 0 1px 0 rgba(255, 255, 255, .96) inset;
}

.auth-account-select {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    width: 100%;
    min-height: 46px;
    padding: 0 3px 0 0;
    border: 0;
    border-radius: 7px;
    color: inherit;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition: background .18s ease, opacity .18s ease;
}

.auth-account-select:hover {
    background: rgba(239, 246, 255, .62);
}

.auth-account-select:disabled {
    cursor: wait;
    opacity: .76;
}

.auth-account-avatar {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border: 1px solid rgba(0, 82, 217, .22);
    border-radius: 50%;
    color: #0052d9;
    background:
        linear-gradient(#f7fbff, #eef5ff) padding-box,
        linear-gradient(135deg, rgba(0, 82, 217, .22), rgba(124, 58, 237, .2)) border-box;
    box-shadow: 0 8px 20px rgba(0, 82, 217, .1);
    font-weight: 800;
}

.auth-account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-account-meta {
    flex: 1 1 auto;
    display: grid;
    gap: 3px;
    min-width: 0;
}

.auth-account-meta strong,
.auth-account-meta small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auth-account-meta strong {
    color: #172033;
    font-size: 15px;
    line-height: 1.18;
}

.auth-account-meta small {
    color: var(--lite-muted);
    font-size: 13px;
    line-height: 1.2;
}

.auth-account-enter {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 30px;
    margin-left: auto;
    padding: 0 12px;
    border: 1px solid rgba(0, 82, 217, .24);
    border-radius: 999px;
    color: #155dfc;
    background: linear-gradient(180deg, rgba(248, 251, 255, .95), rgba(230, 240, 255, .82));
    box-shadow: 0 8px 20px rgba(0, 82, 217, .09), 0 1px 0 rgba(255, 255, 255, .92) inset;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.auth-account-select.is-loading .auth-account-enter {
    color: transparent;
    position: relative;
}

.auth-account-select.is-loading .auth-account-enter::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(0, 82, 217, .18);
    border-top-color: #0052d9;
    border-radius: 50%;
    animation: auth-enter-spin .72s linear infinite;
}

@keyframes auth-enter-spin {
    to {
        transform: rotate(360deg);
    }
}

.auth-account-delete {
    min-height: 34px;
    padding: 0 11px;
    font-size: 12px;
    color: #475569;
    border-color: #d7e5f5;
    background: rgba(255, 255, 255, .76);
}

.auth-account-empty {
    margin-top: 16px;
    padding: 18px;
    border: 1px dashed #c9d8ee;
    border-radius: 8px;
    color: var(--lite-muted);
    background: rgba(255, 255, 255, .7);
    font-size: 13px;
    line-height: 1.6;
}

.auth-title {
    margin: 0 0 6px;
    color: #172033;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.16;
    letter-spacing: 0;
}

.auth-mode-switch {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    margin-bottom: 18px;
    padding: 4px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #f8fbff;
}

.auth-mode-switch a {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 6px;
    color: #526178;
    font-size: 14px;
    font-weight: 800;
    transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}

.auth-mode-switch a.is-active {
    color: #fff;
    background: linear-gradient(180deg, #266fe8 0%, #0052d9 100%);
    box-shadow: 0 12px 24px rgba(0, 82, 217, .22), 0 1px 0 rgba(255, 255, 255, .24) inset;
}

.auth-subtitle {
    margin: 0 0 24px;
    color: var(--lite-muted);
    font-size: 14px;
}

.auth-field {
    margin-bottom: 15px;
}

.auth-field label {
    display: block;
    margin-bottom: 8px;
    color: #0f1f38;
    font-size: 13px;
    font-weight: 800;
}

.auth-input,
.lite-input,
.lite-select,
.lite-textarea {
    width: 100%;
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid #d3dfed;
    border-radius: 6px;
    color: var(--lite-ink);
    background: #fff;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.lite-textarea {
    min-height: 92px;
    padding-top: 10px;
    resize: vertical;
}

.auth-input:focus,
.lite-input:focus,
.lite-select:focus,
.lite-textarea:focus {
    border-color: #0052d9;
    box-shadow: 0 0 0 4px rgba(0, 82, 217, .10);
}

.auth-code-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    gap: 10px;
}

.auth-code-img {
    width: 120px;
    height: 44px;
    border: 1px solid var(--lite-line);
    border-radius: 6px;
    object-fit: cover;
    cursor: pointer;
}

.auth-submit {
    width: 100%;
    min-height: 44px;
    margin-top: 8px;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    color: var(--lite-muted);
    font-size: 13px;
}

.auth-links a {
    color: #155dfc;
    font-weight: 800;
}

body.developer-auth .primary-btn {
    background: linear-gradient(180deg, #266fe8 0%, #0052d9 100%);
    box-shadow: 0 14px 28px rgba(0, 82, 217, .18);
}

body.developer-auth .primary-btn:hover {
    background: linear-gradient(180deg, #0052d9 0%, #003cab 100%);
    box-shadow: 0 16px 32px rgba(0, 82, 217, .23);
}

body.developer-auth .secondary-btn:hover,
body.developer-auth .ghost-btn:hover {
    border-color: #bfd3f1;
    background: #f8fbff;
}

/* 框架（对应控制台草图 10）：顶栏通栏在上，侧栏纯菜单在下 */

.lite-layout {
    min-height: calc(100vh - 64px);
    display: grid;
    grid-template-columns: 248px 1fr;
}

.lite-sidebar {
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    display: flex;
    flex-direction: column;
    padding: 16px 14px;
    background: var(--lite-sidebar);
    color: var(--lite-ink);
    border-right: 1px solid var(--lite-line);
    overflow-y: auto;
}

.lite-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 28px;
    padding: 0 8px;
    font-size: 17px;
    font-weight: 800;
}

.lite-brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #fff;
    background: linear-gradient(135deg, var(--lite-blue), var(--lite-cyan));
}

.lite-brand-avatar,
.lite-user-avatar {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--lite-blue), var(--lite-cyan));
    font-weight: 800;
}

.lite-brand-avatar {
    width: 34px;
    height: 34px;
}

.lite-user-avatar {
    width: 32px;
    height: 32px;
    color: #0052d9;
    background: #eef5ff;
    border: 1px solid #cfe0ff;
}

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

.lite-nav-title {
    margin: 24px 8px 10px;
    color: #8b96a9;
    font-size: 12px;
    font-weight: 800;
}

.lite-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    margin-bottom: 6px;
    padding: 0 12px;
    border-radius: 8px;
    color: #3c4658;
    font-weight: 700;
    transition: color .15s ease, background .15s ease;
}

.lite-nav-link:hover {
    color: var(--lite-blue);
    background: #f2f6fd;
}

.lite-nav-link.is-active {
    color: var(--lite-blue);
    background: var(--lite-sidebar-soft);
}

/* ==== 侧栏分组折叠菜单（收纳篮，含展开/收起过渡动画） ==== */

.lite-nav-group {
    margin-bottom: 4px;
}

.lite-nav-group-head {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #3c4658;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: color .15s ease, background .15s ease;
}

.lite-nav-group-head:hover {
    color: var(--lite-blue);
    background: #f2f6fd;
}

.lite-nav-arrow {
    margin-left: auto;
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transform-origin: center;
    opacity: .5;
    transition: transform .22s ease;
}

.lite-nav-group.is-open .lite-nav-arrow {
    transform: rotate(-135deg) translateY(-2px);
}

.lite-nav-group-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .26s ease;
}

.lite-nav-group.is-open .lite-nav-group-body {
    grid-template-rows: 1fr;
}

.lite-nav-group-inner {
    overflow: hidden;
    min-height: 0;
}

.lite-nav-sub {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 38px;
    margin: 2px 0;
    padding: 0 12px 0 40px;
    border-radius: 8px;
    color: #5f6b7f;
    font-size: 13.5px;
    font-weight: 600;
    transition: color .15s ease, background .15s ease, padding-left .15s ease;
}

.lite-nav-sub:hover {
    color: var(--lite-blue);
    background: #f2f6fd;
    padding-left: 43px;
}

.lite-nav-sub.is-active {
    color: var(--lite-blue);
    background: var(--lite-sidebar-soft);
    font-weight: 700;
}

.lite-nav-sub.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 18px;
    border-radius: 2px;
    background: var(--lite-blue);
    transform: translateY(-50%);
}

/* 页面切换过渡：内容区淡入上移 */
.lite-content {
    animation: liteFadeUp .28s ease;
}

@keyframes liteFadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .lite-content { animation: none; }
    .lite-nav-group-body { transition: none; }
    .lite-nav-arrow { transition: none; }
}

.lite-sidebar-footer {
    margin-top: auto;
    padding-top: 14px;
}

.lite-main {
    min-width: 0;
    background: var(--lite-bg);
}

.lite-topbar {
    position: sticky;
    top: 0;
    z-index: 46;
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 24px;
    border-bottom: 1px solid var(--lite-line);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
}

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

.lite-topbar h1 {
    margin: 0;
    font-size: 20px;
    letter-spacing: 0;
}

/* 内容区页面标题（蓝色竖条，同草图 10） */
.lite-page-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    color: var(--lite-ink);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: .5px;
}

.lite-page-title::before {
    content: "";
    width: 5px;
    height: 22px;
    flex: 0 0 auto;
    border-radius: 3px;
    background: var(--lite-blue);
}

.lite-user {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--lite-muted);
    font-size: 13px;
}

.lite-user-profile {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    font-weight: 800;
}

.lite-user-profile > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.classic-title-badge {
    position: relative;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 13px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    color: #003cab;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(239, 246, 255, .92)),
        #eff6ff;
    box-shadow: 0 10px 24px rgba(0, 82, 217, .12), inset 0 1px 0 rgba(255, 255, 255, .92);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
}

.lite-risk-btn {
    min-height: 34px;
    gap: 6px;
    padding: 0 12px;
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(239, 68, 68, .18);
}

.lite-risk-btn .layui-icon {
    font-size: 16px;
}

.top-message {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    color: #0052d9;
    background: #eff6ff;
    font-weight: 800;
}

.top-message span {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    color: #fff;
    background: #ef4444;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
}

.lite-content {
    padding: 28px;
}

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

.lite-panel,
.lite-stat,
.lite-table-panel {
    border: 1px solid var(--lite-line);
    border-radius: 8px;
    background: var(--lite-panel);
    box-shadow: 0 12px 34px rgba(31, 45, 70, .06);
}

.lite-stat {
    padding: 18px;
}

.lite-stat span {
    display: block;
    color: var(--lite-muted);
    font-size: 13px;
}

.lite-stat strong {
    display: block;
    margin-top: 8px;
    font-size: 26px;
    line-height: 1;
}

.login-ip-strong,
.login-time-strong {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.login-ip-strong {
    font-size: 20px;
}

.login-time-strong {
    font-size: 18px;
}

.login-ip-cell {
    color: #172033;
    font-family: Consolas, "SFMono-Regular", Menlo, monospace;
    font-size: 13px;
}

.activation-summary {
    margin-top: 18px;
}

.activation-panel {
    margin-top: 18px;
}

.activation-chart-wrap {
    overflow-x: auto;
    padding-top: 4px;
}

.activation-chart-svg {
    display: block;
    width: 100%;
    min-width: 660px;
    height: auto;
}

.activation-grid-line {
    stroke: #dfe7f1;
    stroke-width: 1;
}

.activation-axis-label,
.activation-day-label {
    fill: #64748b;
    font-size: 12px;
}

.activation-chart-area {
    fill: rgba(20, 184, 166, .12);
}

.activation-chart-line {
    fill: none;
    stroke: #14b8a6;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.activation-chart-point circle {
    fill: #fff;
    stroke: #0052d9;
    stroke-width: 3;
}

.activation-point-count {
    fill: #172033;
    font-size: 13px;
    font-weight: 800;
}

.lite-panel {
    padding: 22px;
}

.lite-panel + .lite-panel,
.lite-grid + .lite-panel,
.lite-grid + .lite-table-panel,
.lite-table-panel {
    margin-top: 18px;
}

.subpage-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 14px;
}

.back-btn {
    gap: 6px;
    min-width: 84px;
}

.back-btn .layui-icon {
    font-size: 14px;
}

.lite-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.lite-panel-head h2 {
    margin: 0;
    font-size: 18px;
}

.lite-muted {
    color: var(--lite-muted);
    line-height: 1.75;
}

.lite-helper {
    margin-top: 6px;
    color: var(--lite-muted);
    font-size: 12px;
    line-height: 1.55;
}

.lite-label {
    display: block;
    margin-bottom: 7px;
    color: #26364d;
    font-size: 13px;
    font-weight: 800;
}

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

.lite-form-grid .span-2 {
    grid-column: 1 / -1;
}

.lite-table td textarea {
    min-width: 240px;
    white-space: pre-wrap;
    word-break: break-word;
}

.lite-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.lite-table-scroll {
    overflow-x: auto;
}

.lite-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.lite-table th,
.lite-table td {
    padding: 15px 14px;
    border-bottom: 1px solid var(--lite-line);
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.lite-table th {
    color: #3c4658;
    background: #f0f5fd;
    font-size: 12.5px;
    font-weight: 800;
}

.lite-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    color: #0f766e;
    background: #ccfbf1;
    font-size: 12px;
    font-weight: 800;
}

.lite-badge.off {
    color: #991b1b;
    background: #fee2e2;
}

.lite-badge.neutral {
    color: #334155;
    background: #e2e8f0;
}

.classic-upgrade-dialog {
    width: min(720px, 100%);
}

.classic-upgrade-actions {
    margin-top: 16px;
}

.classic-user-result {
    margin-top: 18px;
}

.classic-user-card {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 15px;
    border: 1px solid #d8e6f7;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8fbff, #f5fffc);
}

.classic-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #0052d9, #14b8a6);
    font-size: 20px;
    font-weight: 900;
}

.classic-user-main {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.classic-user-main strong,
.classic-user-main span,
.classic-user-main small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.classic-user-main strong {
    color: #172033;
    font-size: 18px;
}

.classic-user-main span,
.classic-user-main small {
    color: var(--lite-muted);
    font-size: 13px;
}

.classic-user-name {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #003cab;
    font-weight: 900;
}

.classic-user-name .layui-icon {
    color: #14b8a6;
    font-size: 16px;
}

.classic-manage-dialog {
    width: min(760px, 100%);
}

.classic-manage-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.classic-manage-summary > div {
    display: grid;
    gap: 8px;
    min-height: 88px;
    padding: 14px;
    border: 1px solid #d8e6f7;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8fbff, #f5fffc);
}

.classic-manage-summary span {
    color: var(--lite-muted);
    font-size: 12px;
    font-weight: 800;
}

.classic-manage-summary strong {
    color: #172033;
    font-size: 24px;
    line-height: 1.1;
}

.classic-manage-section {
    display: grid;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(148, 163, 184, .18);
}

.classic-manage-section + .classic-manage-section {
    margin-top: 16px;
}

.classic-manage-section h3 {
    margin: 0;
    color: #172033;
    font-size: 15px;
    font-weight: 900;
}

.classic-manage-section p {
    margin: 0;
    color: var(--lite-muted);
    font-size: 13px;
    line-height: 1.7;
}

.classic-manage-actions {
    margin-top: 2px;
}

.classic-manage-danger {
    align-items: start;
}

.lite-alert {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    color: #1e3a8a;
    background: #eff6ff;
}

.lite-alert.is-error {
    border-color: #fecaca;
    color: #991b1b;
    background: #fef2f2;
}

.small-input {
    width: 96px;
}

.small-select {
    width: 112px;
}

pre.lite-code,
.lite-code {
    margin: 14px 0 0;
    padding: 16px;
    overflow-x: auto;
    border: 1px solid #22314a !important;
    border-radius: 8px;
    color: #dbeafe !important;
    background: #101827 !important;
    font-family: Consolas, Monaco, "Courier New", monospace !important;
    font-size: 13px !important;
    line-height: 1.9;
    white-space: pre-wrap;
}

.lite-code-inline {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 7px;
    border: 1px solid #dbe5f2;
    border-radius: 6px;
    color: #1e293b;
    background: #f8fafc;
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
}

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

.api-doc-page {
    max-width: 1180px;
    margin: 0 auto;
}

.api-doc-page > .lite-panel {
    padding: 18px;
}

.api-doc-page > .lite-panel + .lite-panel {
    margin-top: 16px;
}

.api-doc-page .doc-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.doc-card {
    border: 1px solid #d8e6f7;
    border-radius: 8px;
    padding: 18px;
    background: #f8fbff;
    box-shadow: 0 10px 26px rgba(31, 45, 70, .04);
}

.doc-card h3 {
    margin: 0 0 10px;
    font-size: 16px;
}

.doc-card p {
    margin: 8px 0;
    line-height: 1.75;
}

.doc-card.tone-sky,
.api-card.tone-sky {
    border-color: #cfe2ff;
    background: #f7fbff;
}

.doc-card.tone-mint,
.api-card.tone-mint {
    border-color: #bdeee5;
    background: #f3fffc;
}

.doc-card.tone-amber,
.api-card.tone-amber {
    border-color: #fde7b7;
    background: #fffaf0;
}

.doc-card.tone-rose,
.api-card.tone-rose {
    border-color: #ffd2da;
    background: #fff7f8;
}

.api-card.tone-indigo,
.doc-card.tone-indigo {
    border-color: #d8dcff;
    background: #f8f9ff;
}

.api-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    border: 1px solid #d8e6f7;
    border-radius: 8px;
    padding: 18px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(31, 45, 70, .035);
}

.api-card > div:last-child {
    min-width: 0;
}

.api-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: #003cab;
    background: #e8f1ff;
    font-size: 19px;
}

.api-icon.teal {
    color: #0f766e;
    background: #ccfbf1;
}

.api-icon.amber {
    color: #92400e;
    background: #fef3c7;
}

.api-icon.rose {
    color: #9f1239;
    background: #ffe4e6;
}

.api-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.api-card h3 .api-method {
    margin-right: 6px;
}

.api-card p {
    margin: 0;
    color: var(--lite-muted);
    line-height: 1.75;
}

.api-card code,
.doc-card code {
    color: #003cab;
    background: rgba(0, 82, 217, .08);
    border-radius: 4px;
    padding: 1px 5px;
}

.api-method {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    color: #075985;
    background: #e0f2fe;
    font-size: 12px;
    font-weight: 800;
}

.api-param-list {
    margin: 10px 0 0;
    padding-left: 18px;
    color: var(--lite-muted);
    line-height: 1.8;
    font-size: 13px;
}

.api-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.api-flow span {
    min-height: 28px;
    padding: 5px 9px;
    border: 1px solid #cfe0ff;
    border-radius: 6px;
    color: #003cab;
    background: #fff;
    font-size: 12px;
    font-weight: 800;
}

.api-example-grid,
.api-table-wrap {
    margin-top: 18px;
}

.code-method {
    color: #38bdf8 !important;
    font-weight: 800;
}

.code-url {
    color: #93c5fd !important;
}

.code-param {
    color: #fcd34d !important;
}

.code-fn {
    color: #5eead4 !important;
    font-weight: 800;
}

.code-string {
    color: #86efac !important;
}

.code-number {
    color: #fca5a5 !important;
}

.code-comment {
    color: #94a3b8 !important;
}

.app-edit-panel {
    padding: 0;
    overflow: hidden;
    max-width: 1220px;
    margin-left: auto;
    margin-right: auto;
}

.app-edit-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid var(--lite-line);
    background:
        linear-gradient(135deg, rgba(0, 82, 217, .07), rgba(20, 184, 166, .06), rgba(245, 158, 11, .05)),
        #fff;
}

.app-edit-title h2 {
    margin: 0;
    font-size: 22px;
    line-height: 1.25;
}

.app-edit-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.app-edit-meta span {
    min-height: 26px;
    padding: 5px 9px;
    border: 1px solid #dbe5f2;
    border-radius: 6px;
    color: #43536a;
    background: rgba(255, 255, 255, .82);
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
}

.app-edit-top-save {
    min-width: 150px;
    justify-self: end;
}

.app-edit-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 22px;
    align-items: start;
}

.config-section {
    padding: 18px;
    border: 1px solid var(--lite-line);
    border-radius: 8px;
    background: #fff;
}

.app-edit-panel .config-section {
    padding: 20px;
}

.app-edit-panel .lite-form-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px 18px;
}

.app-edit-panel .lite-label {
    color: #334155;
}

.edit-card {
    box-shadow: 0 8px 24px rgba(26, 43, 72, .035);
}

.edit-card-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, .18);
    color: #1f2a44;
}

.edit-card-head span {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #eef5ff;
    color: #0052d9;
    font-size: 18px;
}

.edit-card-head strong {
    font-size: 16px;
}

.edit-card.tone-mint {
    border-color: #bdeee5;
    background: #fbfffe;
}

.edit-card.tone-mint .edit-card-head span {
    color: #0f766e;
    background: #ccfbf1;
}

.unbind-rules-box {
    padding-top: 4px;
}

.unbind-rule-title {
    margin-bottom: 10px;
    color: #26364d;
    font-size: 13px;
    font-weight: 800;
}

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

.edit-card.tone-blue {
    border-color: #cfe0ff;
    background: #fbfdff;
}

.edit-card.tone-violet {
    border-color: #ddd6fe;
    background: #fdfcff;
}

.edit-card.tone-violet .edit-card-head span {
    color: #6d28d9;
    background: #ede9fe;
}

.edit-card.tone-amber {
    border-color: #fde7b7;
    background: #fffdf7;
}

.edit-card.tone-amber .edit-card-head span {
    color: #92400e;
    background: #fef3c7;
}

.compact-helper .lite-textarea {
    min-height: 76px;
}

.action-sticky {
    position: sticky;
    right: 0;
    width: 104px;
    min-width: 104px;
    z-index: 3;
    text-align: right !important;
    background: #fff;
    box-shadow: -10px 0 14px rgba(31, 45, 70, .06);
}

.lite-table th.action-sticky {
    background: #f0f5fd;
    z-index: 4;
}

/* 统一管理表操作列：贴右固定 + 按钮始终横排，PC 与手机窄屏都无需滚到底即可操作 */
.lite-table .col-actions {
    position: sticky;
    right: 0;
    z-index: 3;
    text-align: right !important;
    background: #fff;
    box-shadow: -12px 0 16px rgba(31, 45, 70, .06);
}

.lite-table thead th.col-actions {
    z-index: 4;
    background: #f0f5fd;
}

.col-actions-inner {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    white-space: nowrap;
}

.col-actions-inner > form {
    margin: 0;
    display: inline-flex;
}

.col-actions-inner .primary-btn,
.col-actions-inner .secondary-btn,
.col-actions-inner .danger-btn,
.col-actions-inner .ghost-btn {
    min-width: 0;
    min-height: 34px;
    padding: 0 13px;
    white-space: nowrap;
}

.manage-key-btn {
    min-width: 76px;
}

.reset-user-btn {
    min-height: 34px;
    padding: 0 12px;
    white-space: nowrap;
}

.user-reset-actions {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(148, 163, 184, .18);
}

.security-risk-dialog {
    border-color: #fecaca;
    background:
        linear-gradient(135deg, rgba(254, 242, 242, .98), rgba(255, 251, 235, .94)),
        #fff;
}

.security-risk-dialog .key-manage-head span,
.security-risk-dialog .key-manage-head strong {
    color: #b91c1c;
}

.security-risk-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding-left: 22px;
}

.security-risk-list li {
    padding: 12px 14px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #7f1d1d;
    background: rgba(255, 255, 255, .78);
}

.security-risk-list strong,
.security-risk-list small {
    display: block;
}

.security-risk-list strong {
    font-size: 14px;
    line-height: 1.45;
}

.security-risk-list small {
    margin-top: 5px;
    color: #9f1239;
    font-size: 12px;
    line-height: 1.5;
}

.modal-open {
    overflow: hidden;
}

.key-manage-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: start center;
    padding: 18px;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(13, 23, 38, .42);
    z-index: 80;
}

.key-manage-modal[hidden] {
    display: none;
}

.price-plan-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: start center;
    padding: 18px;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(13, 23, 38, .42);
    z-index: 82;
}

.price-plan-modal[hidden] {
    display: none;
}

.key-result-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: start center;
    padding: 18px;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(13, 23, 38, .42);
    z-index: 84;
}

.key-result-modal[hidden] {
    display: none;
}

.key-result-dialog {
    width: min(640px, 100%);
    max-height: calc(100vh - 36px);
    max-height: calc(100dvh - 36px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px;
    border: 1px solid #cfe2ff;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(13, 23, 38, .24);
}

.key-result-dialog .lite-textarea {
    min-height: 240px;
    margin-top: 12px;
    font-family: Consolas, Monaco, monospace;
}

.key-result-actions {
    margin-top: 12px;
}

.key-manage-dialog {
    width: min(620px, 100%);
    max-height: calc(100vh - 36px);
    max-height: calc(100dvh - 36px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px;
    border: 1px solid #cfe2ff;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(239, 246, 255, .96), rgba(245, 253, 250, .96)),
        #fff;
    box-shadow: 0 28px 80px rgba(13, 23, 38, .24);
}

.price-plan-dialog {
    width: min(560px, 100%);
    max-height: calc(100vh - 36px);
    max-height: calc(100dvh - 36px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px;
    border: 1px solid #cfe2ff;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(13, 23, 38, .24);
}

.price-plan-modal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.price-plan-modal-card {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid #d8e6f7;
    border-radius: 8px;
    background: #f8fbff;
}

.price-plan-modal-card span {
    color: #526178;
    font-size: 12px;
    font-weight: 800;
}

.price-plan-modal-card strong {
    color: #172033;
    font-size: 22px;
    line-height: 1;
}

.price-plan-modal-card small {
    color: #0052d9;
    font-size: 12px;
    font-weight: 800;
}

.key-manage-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    position: sticky;
    top: 0;
    z-index: 4;
    margin: -18px -18px 14px;
    padding: 16px 18px 13px;
    background: #fff;
    border-bottom: 1px solid rgba(148, 163, 184, .2);
    border-radius: 8px 8px 0 0;
}

.key-manage-head span {
    display: block;
    color: #0052d9;
    font-size: 12px;
    font-weight: 800;
}

.key-manage-head strong {
    display: block;
    margin-top: 5px;
    color: #172033;
    font-family: Consolas, Monaco, monospace;
    font-size: 14px;
    line-height: 1.45;
    word-break: break-all;
}

.key-manage-head p {
    margin: 6px 0 0;
    color: #526178;
    font-size: 13px;
}

.key-manage-close {
    min-height: 34px;
    padding: 0 12px;
    flex: 0 0 auto;
}

.key-manage-dialog .inline-key-controls {
    padding-top: 14px;
    border-top: 1px solid rgba(148, 163, 184, .18);
}

.key-code-cell {
    min-width: 300px;
    max-width: none;
    white-space: nowrap !important;
}

.key-code-text {
    display: inline-block;
    max-width: 260px;
    padding: 5px 8px;
    border: 1px solid #dbe5f2;
    border-radius: 6px;
    color: #1e293b;
    background: #f8fafc;
    font-family: Consolas, Monaco, monospace;
    font-size: 12px;
    line-height: 1.45;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
    white-space: nowrap;
}

.agent-key-tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    margin: 0 8px 0 0;
    padding: 0 8px;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    color: #003cab;
    background: #eff6ff;
    font-size: 12px;
    font-weight: 800;
    vertical-align: middle;
}

.agent-key-tag.neutral {
    border-color: #cbd5e1;
    color: #334155;
    background: #f1f5f9;
}

.batch-guide {
    display: grid;
    grid-template-columns: minmax(240px, .8fr) minmax(170px, .5fr) minmax(520px, 2fr);
    gap: 14px;
    align-items: end;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.batch-guide > div:first-child {
    min-width: 0;
}

.batch-guide > div:last-child {
    min-width: 0;
}

.batch-field-row {
    display: grid;
    grid-template-columns: minmax(140px, 1fr) max-content;
    gap: 10px;
}

.batch-field-row .lite-select {
    min-width: 112px;
}

.batch-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.batch-actions button {
    flex: 0 0 auto;
    white-space: nowrap;
}

.key-manage-page .key-filter-panel .lite-form-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
}

.key-manage-page .key-filter-panel .lite-actions {
    grid-column: 1 / -1;
}

.key-batch-panel .key-batch-grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: end;
    gap: 12px;
    margin-bottom: 0;
    overflow: visible;
}

.key-batch-card {
    min-width: 0;
}

/* 批量操作按钮区与下方表格保持呼吸间距 */
.key-batch-actions-card {
    margin-bottom: 18px;
}

.key-batch-panel .batch-actions {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 10px;
    overflow: visible;
}

.key-batch-panel .batch-actions button {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding-left: 10px;
    padding-right: 10px;
}

.key-selection-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 14px 0 4px;
    padding: 12px 14px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #eff6ff;
}

.key-selection-bar strong,
.key-selection-bar span {
    display: block;
}

.key-selection-bar strong {
    color: #1e3a8a;
    font-size: 14px;
}

.key-selection-bar span {
    margin-top: 3px;
    color: #475569;
    font-size: 12px;
    line-height: 1.45;
}

.key-selection-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.key-list-mobile {
    display: none;
}

.key-mobile-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    border: 1px solid #b8c1cc;
    background: #fff;
}

.key-mobile-table th,
.key-mobile-table td {
    border: 1px solid #c6ced8;
    padding: 12px 8px;
    color: #111827;
    text-align: center;
    vertical-align: middle;
}

.key-mobile-table th {
    height: 52px;
    background: #fff;
    color: #111827;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.key-mobile-table th:first-child,
.key-mobile-table td:first-child {
    width: 58px;
}

.key-mobile-table th:nth-child(2),
.key-mobile-table td:nth-child(2) {
    width: 50%;
}

.key-mobile-table td {
    min-height: 58px;
    font-size: 14px;
    line-height: 1.35;
}

.key-mobile-row-check {
    display: grid;
    place-items: center;
    gap: 3px;
    cursor: pointer;
}

.key-mobile-row-check input {
    width: 15px;
    height: 15px;
    margin: 0;
}

.key-mobile-row-check span {
    display: block;
    color: #111827;
    font-size: 15px;
    line-height: 1.2;
}

.key-mobile-table .key-code-text {
    display: block;
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #111827;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.35;
    white-space: normal;
    word-break: break-all;
}

.key-mobile-row-manage {
    display: inline-flex;
    width: auto;
    min-width: 0;
    min-height: 24px;
    margin-top: 5px;
    padding: 0 8px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1;
}

.key-mobile-app {
    display: block;
    color: #111827;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    word-break: break-word;
}

.key-mobile-app + small {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.2;
}

.key-mobile-empty {
    padding: 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    color: var(--lite-muted);
    text-align: center;
    background: #f8fafc;
}

.inline-key-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.inline-key-controls .lite-input,
.inline-key-controls .lite-select {
    width: auto;
    min-height: 38px;
}

.inline-control-title {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.unbind-count-controls {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(148, 163, 184, .18);
}

.inline-key-controls .lite-input {
    max-width: 96px;
}

.inline-key-controls .lite-select {
    max-width: 116px;
}

.form-actions-sticky {
    position: sticky;
    bottom: 0;
    z-index: 12;
    justify-content: flex-end;
    align-items: center;
    margin-top: 0;
    padding: 16px 22px 18px;
    border-top: 1px solid var(--lite-line);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -10px 28px rgba(15, 23, 42, .06);
}

.form-actions-sticky .primary-btn {
    min-width: 170px;
}

.form-actions-hint {
    color: var(--lite-muted);
    font-size: 13px;
    font-weight: 700;
}

.account-create-form {
    padding-top: 14px;
    border-top: 1px solid rgba(148, 163, 184, .18);
}

.agent-price-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(96px, 1fr));
    gap: 10px;
}

.agent-price-grid.compact {
    grid-template-columns: repeat(3, minmax(92px, 1fr));
    min-width: 360px;
}

.agent-price-grid label {
    display: grid;
    gap: 6px;
    color: var(--lite-muted);
    font-size: 12px;
    font-weight: 800;
}

.agent-price-grid .lite-input {
    min-height: 36px;
    padding: 0 10px;
}

.agent-price-form {
    display: grid;
    gap: 10px;
}

.agent-plan-summary {
    display: inline-block;
    max-width: 520px;
    overflow: hidden;
    color: #475569;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agent-plan-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(118px, 1fr));
    gap: 8px;
    min-width: 430px;
    white-space: normal;
}

.agent-plan-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid #d8e6f7;
    border-radius: 8px;
    background: #f8fbff;
}

.agent-plan-card span {
    color: #334155;
    font-size: 12px;
    font-weight: 800;
}

.agent-plan-card strong {
    color: #0052d9;
    font-size: 13px;
    font-weight: 900;
}

.agent-plan-config-btn {
    min-width: 118px;
}

.manage-agent-btn {
    min-width: 72px;
}

.agent-manage-dialog {
    width: min(680px, 100%);
}

.agent-manage-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.agent-manage-card {
    display: grid;
    gap: 8px;
    min-height: 92px;
    padding: 14px;
    border: 1px solid #d8e6f7;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8fbff, #f5fffc);
}

.agent-manage-card span {
    color: #526178;
    font-size: 12px;
    font-weight: 800;
}

.agent-manage-card strong {
    color: #172033;
    font-size: 22px;
    line-height: 1.15;
    word-break: break-word;
}

.agent-manage-form {
    padding-top: 14px;
    border-top: 1px solid rgba(148, 163, 184, .18);
}

.agent-manage-price-grid {
    margin-top: 2px;
}

.agent-permission-block {
    display: grid;
    gap: 10px;
}

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

.agent-permission-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid #d8e6f7;
    border-radius: 8px;
    background: #f8fbff;
    color: #25324a;
    font-size: 13px;
    font-weight: 800;
}

.agent-permission-item input {
    width: 16px;
    height: 16px;
}

.agent-manage-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(148, 163, 184, .18);
}

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

.plan-price-card {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid #d8e6f7;
    border-radius: 8px;
    background: #f8fbff;
}

.plan-price-card span {
    color: #26364d;
    font-size: 13px;
    font-weight: 800;
}

.plan-price-card small {
    color: var(--lite-muted);
    font-size: 12px;
}

.price-plan-editor {
    max-width: 980px;
}

.agent-cost-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
    border: 1px solid #d8e6f7;
    border-radius: 8px;
    background: #f8fbff;
}

.agent-cost-preview span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    color: #475569;
    background: #fff;
    font-size: 13px;
    font-weight: 800;
}

.agent-cost-preview strong {
    margin: 0 4px;
    color: #0052d9;
}

.agent-quota-form {
    display: grid;
    grid-template-columns: 90px auto;
    gap: 8px;
    align-items: center;
    min-width: 170px;
}

.agent-quota-form .lite-input {
    min-height: 36px;
    padding: 0 10px;
}

.agent-quota-form .secondary-btn {
    min-height: 36px;
    padding: 0 12px;
}

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

.quota-package-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-height: 86px;
    padding: 16px;
    border: 1px solid #cfe2ff;
    border-radius: 8px;
    color: #172033;
    background: linear-gradient(135deg, #eff6ff, #f6fffb);
    cursor: pointer;
    transition: .18s ease;
}

.quota-package-btn strong {
    font-size: 20px;
    line-height: 1;
}

.quota-package-btn span {
    color: #0052d9;
    font-size: 13px;
    font-weight: 800;
}

.quota-package-btn:hover {
    border-color: #60a5fa;
    box-shadow: 0 14px 32px rgba(0, 82, 217, .14);
    transform: translateY(-1px);
}

/* 汉堡菜单按钮（移动端显示，三条线图标） */
.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--lite-line);
    border-radius: 9px;
    background: #fff;
    cursor: pointer;
    position: relative;
    flex: 0 0 auto;
}

.mobile-menu-btn span,
.mobile-menu-btn span::before,
.mobile-menu-btn span::after {
    position: absolute;
    left: 50%;
    width: 17px;
    height: 2px;
    border-radius: 2px;
    background: var(--lite-ink);
    content: "";
    transform: translateX(-50%);
}

.mobile-menu-btn span { top: 50%; margin-top: -1px; }
.mobile-menu-btn span::before { top: -6px; }
.mobile-menu-btn span::after { top: 6px; }

/* 顶栏品牌（桌面在左，移动端推到右侧） */
.lite-topbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--lite-ink);
    font-size: 18px;
    font-weight: 900;
    white-space: nowrap;
}

.lite-topbar-brand-mark {
    width: 26px;
    height: 26px;
    flex: 0 0 auto;
    border-radius: 7px;
    background: linear-gradient(135deg, #266fe8, #0052d9);
    box-shadow: 0 4px 10px rgba(0, 82, 217, .3);
    position: relative;
}

.lite-topbar-brand-mark::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 3px;
    border: 2px solid rgba(255, 255, 255, .92);
    border-right-color: rgba(255, 255, 255, .38);
}

@media (max-width: 920px) {
    .lite-layout {
        grid-template-columns: 1fr;
    }

    .lite-sidebar {
        position: fixed;
        inset: 64px auto 0 0;
        width: 248px;
        height: auto;
        transform: translateX(-100%);
        transition: .2s ease;
        z-index: 40;
    }

    .lite-sidebar.is-open {
        transform: translateX(0);
        box-shadow: 26px 0 60px rgba(15, 35, 90, .16);
    }

    .mobile-menu-btn {
        display: inline-flex;
    }

    /* 移动端顶栏：汉堡在左、品牌推到最右（对应草图 11-v2）；
       admin 端 topbar 不带 mobilebrand class（保留高危事件按钮等右侧内容） */
    .lite-topbar-mobilebrand .lite-user {
        display: none;
    }

    .lite-topbar-mobilebrand .lite-topbar-left {
        flex: 1;
    }

    .lite-topbar-mobilebrand .lite-topbar-brand {
        margin-left: auto;
    }

    .lite-page-title {
        font-size: 19px;
    }

    .lite-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-edit-grid {
        grid-template-columns: 1fr;
    }

    .agent-price-grid,
    .agent-price-grid.compact {
        grid-template-columns: repeat(2, minmax(96px, 1fr));
    }

    .agent-plan-card-grid {
        grid-template-columns: repeat(2, minmax(118px, 1fr));
        min-width: 320px;
    }

    .plan-price-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 760px) {
    .auth-home-shell {
        padding: 0 20px 36px;
    }

    .auth-home-nav {
        height: 64px;
        padding: 0 20px;
    }

    .auth-home-brand {
        max-width: calc(100vw - 40px);
        font-size: 23px;
    }

    .auth-home-brand-mark {
        width: 22px;
        height: 22px;
        border-width: 2px;
        box-shadow: 5px 5px 0 rgba(0, 82, 217, .14);
    }

    .auth-home-hero {
        padding: 108px 0 34px;
    }

    .auth-home-hero-inner {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .auth-home-title-block h1 {
        font-size: 50px;
        line-height: 1.18;
    }

    .auth-home-lede {
        font-size: 15px;
    }

    .auth-home-actions {
        flex-wrap: wrap;
        gap: 10px;
    }

    .auth-home-btn {
        min-width: 138px;
        min-height: 54px;
        padding: 0 22px;
    }

    .auth-modal {
        padding: 12px;
    }

    .auth-modal-panel {
        width: min(100%, 900px);
    }

    .auth-modal-panel .auth-split-card {
        width: 100%;
        min-height: min(468px, calc(100vh - 24px));
        grid-template-columns: minmax(148px, .86fr) minmax(178px, 1fr);
    }

    .auth-modal-panel .auth-query-card {
        min-height: min(430px, calc(100vh - 24px));
    }

    .auth-modal-close {
        top: -10px;
        right: -10px;
        width: 34px;
        height: 34px;
        font-size: 20px;
    }

    .auth-split-shell {
        padding-top: 22px;
    }

    .auth-split-card {
        width: min(460px, calc(100% - 24px));
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .auth-account-pane {
        border-radius: 8px 8px 0 0;
        border-bottom: 0;
    }

    .auth-modal-panel .auth-account-pane {
        border-radius: 8px 0 0 8px;
    }

    .auth-modal-panel .auth-form-pane {
        border-radius: 0 8px 8px 0;
    }

    .auth-account-pane::after {
        top: auto;
        right: 24px;
        bottom: -34px;
        left: 24px;
        width: auto;
        height: 68px;
        background:
            radial-gradient(ellipse at 50% 45%, rgba(0, 82, 217, .13), transparent 58%),
            linear-gradient(180deg, rgba(219, 234, 254, .52), rgba(255, 255, 255, 0));
    }

    .auth-split-card::before {
        top: auto;
        right: 0;
        bottom: calc(50% - 68px);
        left: 0;
        width: auto;
        height: 136px;
        background:
            radial-gradient(ellipse at 48% 45%, rgba(0, 82, 217, .065), transparent 62%),
            linear-gradient(180deg,
                rgba(241, 247, 255, 0) 0%,
                rgba(244, 249, 255, .38) 28%,
                rgba(251, 253, 255, .78) 54%,
                rgba(255, 255, 255, 0) 100%);
    }

    .auth-modal-panel .auth-split-card::before {
        top: 0;
        bottom: 0;
        left: calc(46.6% - 44px);
        width: 88px;
        height: auto;
        background:
            radial-gradient(ellipse at 48% 22%, rgba(0, 82, 217, .06), transparent 62%),
            radial-gradient(ellipse at 48% 78%, rgba(148, 163, 184, .075), transparent 64%),
            linear-gradient(90deg,
                rgba(241, 247, 255, 0) 0%,
                rgba(244, 249, 255, .22) 24%,
                rgba(248, 252, 255, .54) 48%,
                rgba(255, 255, 255, .68) 64%,
                rgba(255, 255, 255, 0) 100%);
    }

    .auth-modal-panel .auth-account-pane::after {
        top: 0;
        right: -42px;
        bottom: 0;
        left: auto;
        width: 84px;
        height: auto;
        background:
            radial-gradient(ellipse at 45% 18%, rgba(0, 82, 217, .045), transparent 64%),
            radial-gradient(ellipse at 52% 78%, rgba(148, 163, 184, .065), transparent 68%),
            linear-gradient(90deg,
                rgba(255, 255, 255, 0) 0%,
                rgba(239, 246, 255, .13) 24%,
                rgba(250, 253, 255, .5) 52%,
                rgba(255, 255, 255, 0) 100%);
    }

    .auth-form-pane {
        padding-top: 33px;
        border-radius: 0 0 8px 8px;
    }

    .auth-modal-panel .auth-account-pane,
    .auth-modal-panel .auth-form-pane {
        padding: 22px 17px;
    }

    .auth-modal-panel .auth-form-pane {
        padding-top: 30px;
    }

    .auth-modal-panel .auth-mode-tabs {
        height: 38px;
        margin-bottom: 14px;
        padding: 3px;
    }

    .auth-modal-panel .auth-mode-switch a {
        min-height: 30px;
        font-size: 12px;
    }

    .auth-modal-panel .auth-kicker {
        margin-bottom: 8px;
        font-size: 12px;
    }

    .auth-modal-panel .auth-title {
        font-size: 23px;
        line-height: 1.12;
    }

    .auth-modal-panel .auth-form-pane .auth-title {
        margin-bottom: 18px;
    }

    .auth-modal-panel .auth-account-head {
        align-items: flex-start;
        gap: 8px;
    }

    .auth-modal-panel .auth-add-account {
        min-height: 31px;
        padding: 0 9px;
        font-size: 12px;
    }

    .auth-modal-panel .auth-account-list {
        gap: 8px;
        margin-top: 14px;
        max-height: 260px;
        padding-right: 0;
    }

    .auth-modal-panel .auth-account-item {
        min-height: 54px;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px;
        padding: 7px;
    }

    .auth-modal-panel .auth-account-select {
        gap: 7px;
        min-height: 40px;
        padding-right: 2px;
    }

    .auth-modal-panel .auth-account-avatar {
        width: 38px;
        height: 38px;
        font-size: 13px;
    }

    .auth-modal-panel .auth-account-meta strong {
        font-size: 13px;
    }

    .auth-modal-panel .auth-account-meta small,
    .auth-modal-panel .auth-links {
        font-size: 12px;
    }

    .auth-modal-panel .auth-account-enter {
        min-width: 40px;
        height: 27px;
        padding: 0 9px;
        font-size: 11px;
    }

    .auth-modal-panel .auth-account-delete {
        min-height: 30px;
        padding: 0 7px;
        font-size: 11px;
    }

    .auth-modal-panel .auth-field {
        margin-bottom: 12px;
    }

    .auth-modal-panel .auth-field label {
        margin-bottom: 6px;
        font-size: 12px;
    }

    .auth-modal-panel .auth-input {
        min-height: 40px;
        padding: 0 11px;
        font-size: 13px;
    }

    .auth-modal-panel .auth-code-row {
        grid-template-columns: minmax(0, 1fr) minmax(76px, 92px);
        gap: 8px;
    }

    .auth-modal-panel .auth-code-img {
        width: 100%;
        height: 40px;
    }

    .auth-modal-panel .auth-submit {
        min-height: 41px;
        margin-top: 5px;
        font-size: 13px;
    }

    .auth-modal-panel .auth-links {
        margin-top: 12px;
    }

    .auth-modal-panel .auth-query-summary {
        margin-top: 16px;
        padding: 14px;
    }

    .auth-modal-panel .auth-query-summary strong {
        font-size: 20px;
    }

    .auth-modal-panel .auth-query-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .auth-account-list {
        max-height: 240px;
    }
}

@media (max-width: 520px) {
    .auth-modal {
        align-items: flex-start;
        justify-items: start;
        padding: 10px;
    }

    .auth-modal-panel {
        justify-self: start;
        width: min(340px, calc(100vw - 28px));
        max-width: 100%;
        min-width: 0;
        margin: 0;
    }

    .auth-modal-close {
        top: 6px;
        right: 6px;
        width: 32px;
        height: 32px;
        background: rgba(255, 255, 255, .9);
    }

    .auth-modal-panel .auth-split-card {
        min-height: auto;
        max-height: calc(100vh - 20px);
        grid-template-columns: 1fr;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .auth-modal-panel .auth-query-card {
        min-height: auto;
    }

    .auth-modal-panel .auth-account-pane {
        border-radius: 8px 8px 0 0;
    }

    .auth-modal-panel .auth-form-pane {
        border-radius: 0 0 8px 8px;
    }

    .auth-modal-panel .auth-account-pane,
    .auth-modal-panel .auth-form-pane {
        padding: 20px 16px;
    }

    .auth-modal-panel .auth-form-pane {
        padding-top: 22px;
    }

    .auth-modal-panel .auth-split-card::before {
        top: auto;
        right: 0;
        bottom: calc(50% - 58px);
        left: 0;
        width: auto;
        height: 116px;
        background:
            radial-gradient(ellipse at 48% 45%, rgba(0, 82, 217, .055), transparent 62%),
            linear-gradient(180deg,
                rgba(241, 247, 255, 0) 0%,
                rgba(244, 249, 255, .28) 28%,
                rgba(251, 253, 255, .72) 54%,
                rgba(255, 255, 255, 0) 100%);
    }

    .auth-modal-panel .auth-account-pane::after {
        top: auto;
        right: 18px;
        bottom: -31px;
        left: 18px;
        width: auto;
        height: 62px;
        background:
            radial-gradient(ellipse at 50% 45%, rgba(0, 82, 217, .10), transparent 58%),
            linear-gradient(180deg, rgba(219, 234, 254, .48), rgba(255, 255, 255, 0));
    }

    .auth-modal-panel .auth-account-list {
        max-height: 164px;
    }

    .auth-modal-panel .auth-account-head {
        gap: 8px;
    }

    .auth-modal-panel .auth-add-account {
        min-height: 29px;
        padding: 0 8px;
        font-size: 11px;
    }

    .auth-modal-panel .auth-account-item {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 5px;
        padding: 7px 6px;
    }

    .auth-modal-panel .auth-account-select {
        gap: 6px;
    }

    .auth-modal-panel .auth-account-avatar {
        width: 34px;
        height: 34px;
    }

    .auth-modal-panel .auth-account-enter {
        min-width: 34px;
        height: 26px;
        padding: 0 8px;
    }

    .auth-modal-panel .auth-account-delete {
        min-width: 38px;
        padding: 0 6px;
    }

    .auth-modal-panel .auth-query-actions {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 761px) and (max-height: 560px) {
    .auth-split-shell {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .auth-split-card {
        min-height: calc(100vh - 28px);
    }

    .auth-account-pane,
    .auth-form-pane {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .auth-form-pane .auth-title {
        margin-bottom: 18px;
    }

    .auth-field {
        margin-bottom: 12px;
    }

    .auth-input,
    .lite-input,
    .lite-select,
    .lite-textarea {
        min-height: 42px;
    }

    .auth-code-img {
        height: 42px;
    }

    .auth-submit {
        min-height: 42px;
        margin-top: 6px;
    }

    .auth-links {
        margin-top: 14px;
    }
}

@media (max-width: 620px) {
    .entry-card,
    .auth-card {
        padding: 24px;
    }

    .auth-account-pane,
    .auth-form-pane {
        padding: 24px;
    }

    .auth-account-head {
        flex-wrap: wrap;
    }

    .auth-code-row {
        grid-template-columns: minmax(0, 1fr) minmax(96px, 112px);
    }

    .auth-code-img {
        width: 100%;
    }

    .auth-shell {
        padding: 16px 0;
    }

    .auth-split-shell {
        padding-top: 16px;
        padding-bottom: 18px;
    }

    .auth-home-title-block h1 {
        font-size: 34px;
    }

    .auth-home-cta-block {
        padding-bottom: 0;
    }

    .auth-query-actions {
        grid-template-columns: 1fr;
    }

    .entry-title,
    .auth-title {
        font-size: 26px;
    }

    .lite-topbar,
    .lite-content {
        padding-left: 16px;
        padding-right: 16px;
    }

    .lite-topbar {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .lite-topbar > div:first-child {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
    }

    .lite-topbar h1 {
        font-size: 16px;
        font-weight: 800;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .lite-user {
        width: auto;
        flex: 0 0 auto;
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 8px;
    }

    .lite-user-profile > span:last-child {
        display: none;
    }

    .lite-grid,
    .lite-form-grid,
    .doc-grid,
    .app-edit-grid {
        grid-template-columns: 1fr;
    }

    .lite-panel + .lite-panel,
    .lite-grid + .lite-panel,
    .lite-grid + .lite-table-panel,
    .lite-table-panel {
        margin-top: 22px;
    }

    .lite-panel-head {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .lite-panel-head .lite-actions {
        flex-wrap: nowrap;
    }

    .lite-panel-head .lite-actions .primary-btn,
    .lite-panel-head .lite-actions .secondary-btn {
        flex: 1 1 0;
        min-width: 0;
        padding-left: 10px;
        padding-right: 10px;
        white-space: nowrap;
    }

    .key-manage-page .key-filter-panel .lite-form-grid {
        grid-template-columns: 1fr;
    }

    .app-edit-hero {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .app-edit-top-save {
        width: 100%;
        justify-self: stretch;
    }

    .app-edit-grid {
        padding: 18px;
    }

    .unbind-rule-grid {
        grid-template-columns: 1fr;
    }

    .form-actions-sticky {
        justify-content: stretch;
        padding: 14px 16px;
    }

    .form-actions-sticky .primary-btn,
    .form-actions-hint {
        width: 100%;
    }

    .agent-price-grid,
    .agent-price-grid.compact {
        grid-template-columns: 1fr;
        min-width: 0;
    }

    .agent-plan-card-grid {
        grid-template-columns: 1fr;
        min-width: 0;
    }

    .plan-price-cards {
        grid-template-columns: 1fr;
    }

    .agent-manage-summary {
        grid-template-columns: 1fr;
    }

    .price-plan-modal-grid {
        grid-template-columns: 1fr;
    }

    .key-result-dialog {
        max-height: calc(100dvh - 20px);
        padding: 14px;
    }

    .key-result-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .agent-permission-grid {
        grid-template-columns: 1fr;
    }

    .inline-key-controls .lite-input,
    .inline-key-controls .lite-select {
        width: calc(50% - 4px);
        max-width: none;
    }

    .inline-control-title {
        width: 100%;
    }

    .key-batch-panel .key-batch-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        overflow: visible;
    }

    .key-batch-card {
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .key-batch-panel .batch-field-row {
        grid-template-columns: minmax(0, 1fr) 112px;
    }

    .key-batch-panel .batch-actions {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
    }

    .key-batch-panel .batch-actions button {
        width: 100%;
        min-width: 0;
        padding-left: 8px;
        padding-right: 8px;
        white-space: normal;
        line-height: 1.25;
    }

    .key-selection-bar {
        display: grid;
        grid-template-columns: 1fr;
    }

    .key-selection-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .key-selection-actions button {
        width: 100%;
    }

    .key-manage-page .lite-table-scroll {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .key-list-mobile {
        display: none;
    }

    .quota-package-grid {
        grid-template-columns: 1fr;
    }

    /* 手机窄屏：操作列贴右固定，按钮更紧凑但仍横排一行，无需滚到底 */
    .lite-table .col-actions {
        box-shadow: -8px 0 12px rgba(31, 45, 70, .08);
    }

    .col-actions-inner {
        gap: 6px;
    }

    .col-actions-inner .primary-btn,
    .col-actions-inner .secondary-btn,
    .col-actions-inner .danger-btn,
    .col-actions-inner .ghost-btn {
        min-height: 32px;
        padding: 0 10px;
        font-size: 13px;
    }
}

@media (max-width: 420px) {
    .auth-account-head {
        display: grid;
        grid-template-columns: 1fr;
    }

    /* 验证码保持「输入框 + 右侧图片」同行布局，不在小屏折行 */
    .auth-code-row {
        grid-template-columns: minmax(0, 1fr) minmax(92px, 104px);
        gap: 8px;
    }

    .auth-code-img {
        width: 100%;
    }

    .key-mobile-table th,
    .key-mobile-table td {
        padding: 10px 6px;
    }

    .key-mobile-table th:first-child,
    .key-mobile-table td:first-child {
        width: 50px;
    }

    .key-mobile-table th,
    .key-mobile-table .key-code-text {
        font-size: 14px;
    }

    .key-mobile-app {
        font-size: 13px;
    }

    .key-mobile-row-manage {
        padding: 0 6px;
        font-size: 11px;
    }

    .key-batch-panel .batch-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ==== TDesign 风格登录页增强（对应设计草图 03）==== */

.auth-home-brand-mark {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #266fe8, #0052d9);
    box-shadow: 0 4px 12px rgba(0, 82, 217, .32);
    position: relative;
}

.auth-home-brand-mark::after {
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: 4px;
    border: 2.5px solid rgba(255, 255, 255, .92);
    border-right-color: rgba(255, 255, 255, .38);
}

.auth-home-nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 15px;
    font-weight: 600;
    color: #3c4658;
}

.auth-home-nav-links a {
    transition: color .16s ease;
}

.auth-home-nav-links a:hover {
    color: #0052d9;
}

.auth-home-hero {
    align-items: center;
}

.auth-home-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(200px, .46fr) minmax(350px, .66fr);
    align-items: center;
    gap: 48px;
}

.auth-home-title-block h1 {
    font-size: clamp(46px, 4.8vw, 68px);
}

.auth-home-illu {
    position: relative;
    padding: 18px;
    background: #fff;
    border: 1px solid rgba(199, 218, 242, .9);
    border-radius: 22px;
    box-shadow: 0 30px 70px -30px rgba(0, 82, 217, .28), 0 10px 30px -18px rgba(22, 34, 58, .2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.auth-home-illu img {
    display: block;
    width: 100%;
    border-radius: 14px;
}

.auth-home-cta-card {
    max-width: none;
    padding: 30px 30px 24px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(199, 218, 242, .92);
    border-radius: 18px;
    box-shadow: 0 36px 80px -34px rgba(0, 82, 217, .3), 0 14px 34px -22px rgba(22, 34, 58, .16);
    text-shadow: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.auth-home-cta-card .auth-home-kicker {
    color: #0052d9;
    font-size: 14px;
    letter-spacing: .4px;
}

.auth-home-cta-card .auth-home-lede {
    font-size: 15px;
    line-height: 1.78;
}

.auth-home-cta-card .auth-home-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 22px;
}

.auth-home-cta-card .auth-home-btn {
    width: 100%;
    min-height: 56px;
}

.auth-home-card-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed #d8e4f6;
    font-size: 13.5px;
}

.auth-home-card-links a {
    color: #5f6b7f;
    transition: color .15s ease;
}

.auth-home-card-links a:hover {
    color: #0052d9;
}

@media (max-width: 1200px) {
    .auth-home-hero-inner {
        grid-template-columns: minmax(0, 1fr) minmax(330px, .62fr);
        gap: 40px;
    }

    .auth-home-illu {
        display: none;
    }
}

@media (max-width: 760px) {
    .auth-home-nav-links {
        display: none;
    }

    .auth-home-brand-mark {
        width: 24px;
        height: 24px;
        border: 0;
        border-radius: 7px;
        box-shadow: 0 4px 10px rgba(0, 82, 217, .3);
    }

    .auth-home-brand-mark::after {
        inset: 7px;
        border-width: 2px;
    }

    .auth-home-hero-inner {
        grid-template-columns: 1fr;
    }

    .auth-home-illu {
        display: block;
        width: min(240px, 62vw);
        margin: 0 auto;
        padding: 12px;
    }

    .auth-home-cta-card {
        padding: 24px 22px 20px;
    }
}

/* ==== 登录页直出表单版（去掉 hero 首屏，卡片居中） ==== */

body.developer-auth.auth-home {
    background:
        radial-gradient(920px 460px at 50% -80px, #e9f1fd, transparent 72%),
        linear-gradient(180deg, #fbfdff 0%, #f4f8fd 100%);
}

.auth-form-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 104px 16px 44px;
}

.auth-card-standalone .auth-kicker {
    margin-bottom: 18px;
}

.auth-card-standalone {
    width: min(440px, 100%);
    padding: 34px 34px 28px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 40px 90px -36px rgba(0, 82, 217, .35), 0 18px 44px -26px rgba(22, 34, 58, .22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

@media (max-width: 520px) {
    .auth-form-shell {
        padding: 88px 12px 32px;
    }

    .auth-card-standalone {
        padding: 26px 20px 22px;
    }
}
