/**
 * LicenseHub 后台/前后 页面样式
 *
 * 左侧深灰菜单 + 右侧白色顶栏 + 浅灰画布 + 白色圆角卡片，
 * 主色 #20A53A，成功 #4CAF50，警告 #FF9800，危险 #F44336。
 * 表格头 #f7f8fa，卡片 4px 圆角 + 1px 描边 + 极轻投影。
 */

/**
 * Nunito（自托管，离线可用）
 */
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../vendor/fonts/nunito/400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../vendor/fonts/nunito/400-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../vendor/fonts/nunito/500-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../vendor/fonts/nunito/500-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../vendor/fonts/nunito/600-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../vendor/fonts/nunito/600-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../vendor/fonts/nunito/700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../vendor/fonts/nunito/700-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../vendor/fonts/nunito/400-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../vendor/fonts/nunito/500-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../vendor/fonts/nunito/600-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../vendor/fonts/nunito/700-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../vendor/fonts/nunito/400-cyrillic-ext.woff2') format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../vendor/fonts/nunito/500-cyrillic-ext.woff2') format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../vendor/fonts/nunito/600-cyrillic-ext.woff2') format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../vendor/fonts/nunito/700-cyrillic-ext.woff2') format('woff2');
    unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../vendor/fonts/nunito/400-vietnamese.woff2') format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../vendor/fonts/nunito/500-vietnamese.woff2') format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../vendor/fonts/nunito/600-vietnamese.woff2') format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
    font-family: 'Nunito';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../vendor/fonts/nunito/700-vietnamese.woff2') format('woff2');
    unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

:root {
    --lh-primary: #20a53a;
    --lh-primary-dk: #1a8f33;
    --lh-primary-soft: #eaf6ec;

    --lh-mint: #4caf50;
    --lh-mint-soft: #f0f9eb;

    --lh-amber: #ff9800;
    --lh-amber-soft: #fdf6ec;
    --lh-rose: #f44336;
    --lh-rose-soft: #fef0f0;
    --lh-wait: #909399;
    --lh-wait-soft: #f4f4f5;

    /* 兼容旧变量名 */
    --lh-a: #20a53a;
    --lh-a-dk: #1a8f33;
    --lh-navy: #2b2f33;
    --lh-navy-2: #20a53a;
    --lh-navy-3: #7b8288;

    --lh-ink: #2b2f33;
    --lh-mut: #6b7280;
    --lh-line: #e6e8eb;
    --lh-line-2: #f0f1f3;
    --lh-line-3: #dcdfe4;
    --lh-canvas: #f4f5f7;
    --lh-head: #f7f8fa;
    --lh-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

    --lh-radius: 4px;
    --lh-radius-sm: 3px;
    --lh-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    --lh-shadow-lg: 0 4px 14px rgba(16, 24, 40, .08);

    color-scheme: light;

    --bs-radius-1: 3px;
    --bs-radius-2: 4px;
    --bs-radius-3: 4px;
    --bs-radius-4: 4px;
    --bs-radius-5: 4px;
    --bs-radius-6: 4px;
    --bs-radius-7: 4px;
    --bs-radius-8: 4px;
    --bs-radius-9: 4px;

    --bs-body-bg: var(--lh-canvas);
    --bs-body-color: var(--lh-ink);
    --bs-body-font-size: 14px;
    --bs-border-color: var(--lh-line);
    --bs-link-color: var(--lh-primary);
    --bs-link-hover-color: var(--lh-primary-dk);
    --bs-primary-bg: var(--lh-primary);
    --bs-primary-contrast: #fff;
}

body {
    margin: 0;
    background: var(--lh-canvas);
    color: var(--lh-ink);
    font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--lh-primary);
    text-decoration: none;
}

a:hover {
    color: var(--lh-primary-dk);
    text-decoration: none;
    text-underline-offset: 3px;
}

/* —— 控件 —— */
.btn,
.form-control,
.input-group > .input-group-text,
.lh-card,
.lh-pane,
.alert,
.page-link,
.lh-app,
.lh-kpi {
    border-radius: var(--lh-radius);
}

.btn {
    font-weight: 400;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: none !important;
    border-radius: var(--lh-radius-sm);
    padding: 6px 14px;
}

.btn-sm {
    font-size: 12px;
    padding: 4px 10px;
}

.btn:focus-visible,
.form-control:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(30, 136, 229, .18);
}

.btn-solid.theme-primary {
    background: var(--lh-primary);
    border-color: var(--lh-primary);
    color: #fff;
}

.btn-solid.theme-primary:hover,
.btn-solid.theme-primary:active {
    background: var(--lh-primary-dk);
    border-color: var(--lh-primary-dk);
    color: #fff;
}

.btn-outline.theme-primary {
    background: #fff;
    border-color: var(--lh-line-3);
    color: var(--lh-ink);
}

.btn-outline.theme-primary:hover,
.btn-outline.theme-primary:active {
    background: var(--lh-primary-soft);
    border-color: var(--lh-primary);
    color: var(--lh-primary-dk);
}

.btn-text {
    border-color: transparent;
    background: none;
}

.form-control,
.input-group-text {
    font-size: 14px;
    border-color: var(--lh-line-3);
    background: #fff;
    border-radius: var(--lh-radius-sm);
    padding: 6px 10px;
    min-height: 32px;
}

.form-control:focus {
    border-color: var(--lh-primary);
    box-shadow: 0 0 0 2px rgba(30, 136, 229, .12);
}

.form-label {
    font-size: 14px;
    font-weight: 400;
    color: #4b5563;
    margin-bottom: 5px;
}

.form-text,
.lh-hint {
    font-size: 12px;
    color: var(--lh-mut);
}

.lh-codeblock {
    background: var(--lh-canvas);
    border: 1px solid var(--lh-line);
    border-radius: 4px;
    padding: 12px 14px;
    font-size: 12px;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-all;
}

.lh-eyebrow {
    font-size: 12px;
    letter-spacing: .04em;
    color: var(--lh-mut);
}

.lh-required::after {
    content: " *";
    color: var(--lh-rose);
}

.lh-mono {
    font-family: var(--lh-mono);
}

/* 勾选行：alpha 里没有 .form-check，自己钉 */
.lh-ck {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 14px;
    color: var(--lh-ink);
}

.lh-ck input[type=checkbox] {
    width: 15px;
    height: 15px;
    margin-top: 3px;
    accent-color: var(--lh-primary);
    flex: none;
}

.lh-ck .lh-hint {
    display: block;
    margin-top: 2px;
}

.lh-ck-i {
    width: 15px;
    height: 15px;
    margin: 3px 0 0;
    flex: none;
    accent-color: var(--lh-primary);
}

.lh-ck-t {
    font-size: 14px;
    color: var(--lh-ink);
    cursor: pointer;
}

/* 表格里的文字式操作按钮 */
.lh-lnk {
    border: 0;
    background: none;
    padding: 0;
    font-size: 12px;
    color: var(--lh-primary);
    cursor: pointer;
    text-decoration: none;
}

.lh-lnk:hover {
    color: var(--lh-primary-dk);
    text-decoration: none;
    text-underline-offset: 3px;
}

.lh-lnk.dim {
    margin-left: 6px;
    font-size: 11px;
    color: var(--lh-mut);
}

.lh-lnk.dim:hover {
    color: var(--lh-primary);
}

.lh-lnk.bad {
    color: var(--lh-rose);
}

.lh-lnk.bad:hover {
    color: #d32f2f;
}

/* 细分隔线 */
.lh-sep {
    height: 0;
    border-top: 1px solid var(--lh-line-2);
}

/* —— 提示条 —— */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 14px;
    border-width: 1px;
    border-radius: var(--lh-radius);
    padding: 10px 14px;
    overflow-wrap: anywhere;
    box-shadow: none;
}

.alert .bi {
    margin-top: 2px;
    flex: none;
}

.alert.theme-success {
    background: var(--lh-mint-soft);
    border-color: #e1f3d8;
    color: #3d8b40;
}

.alert.theme-danger {
    background: var(--lh-rose-soft);
    border-color: #fde2e2;
    color: #d0342c;
}

.alert.theme-warning {
    background: var(--lh-amber-soft);
    border-color: #faecd8;
    color: #b96f00;
}

.alert.theme-info,
.alert.theme-secondary {
    background: var(--lh-primary-soft);
    border-color: #cfe9d6;
    color: #1a8f33;
}

/* ============================================================
   屏壳：深灰侧栏 + 白色顶栏 + 浅灰画布
   ============================================================ */
.lh-shell {
    display: flex;
    min-height: 100vh;
}

.lh-side {
    flex: 0 0 200px;
    width: 200px;
    background: var(--lh-navy);
    color: #b9bfc5;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    align-self: flex-start;
    height: 100vh;
    overflow: hidden;
}

.lh-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    overflow: hidden;
}

.lh-brand .sq,
.lh-brand .mk {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: var(--lh-primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 14px;
    flex: none;
}

.lh-brand .nm {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    letter-spacing: .01em;
    white-space: nowrap;
    flex: none;
}

.lh-brand .ver {
    font-size: 10.5px;
    color: #7b8288;
    margin-inline-start: auto;
    white-space: nowrap;
    flex: none;
}

.lh-brand .tx {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.lh-brand .tx .ver {
    margin-inline-start: 0;
}

.lh-side .grp {
    font-size: 11px;
    letter-spacing: .08em;
    color: #6f767d;
    padding: 14px 16px 6px;
}

.lh-side nav {
    padding: 0 0 8px;
    overflow-y: auto;
    flex: 1 1 auto;
}

.lh-side a {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 8px;
    padding: 8px 10px;
    border-radius: var(--lh-radius-sm);
    color: #b9bfc5;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lh-side a .bi,
.lh-side a .ri {
    font-size: 14px;
    flex: none;
    opacity: .85;
}

.lh-side a:hover {
    background: rgba(255, 255, 255, .07);
    color: #fff;
    text-decoration: none;
}

.lh-side a.on {
    background: var(--lh-primary);
    color: #fff;
}

.lh-side a.on .bi,
.lh-side a.on .ri {
    opacity: 1;
}

.lh-side .foot {
    margin-top: auto;
    padding: 10px 14px;
    border-top: 1px solid rgba(255, 255, 255, .06);
    font-size: 12px;
    color: #8b9298;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lh-side .foot .av {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--lh-primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: grid;
    place-items: center;
    flex: none;
}

.lh-side .foot .tx {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lh-side .foot a,
.lh-side .foot button {
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    color: #8b9298;
    font-size: 12px;
    cursor: pointer;
}

.lh-side .foot a:hover,
.lh-side .foot button:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lh-main {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* —— 白色顶栏 —— */
.lh-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border-bottom: 1px solid var(--lh-line);
    padding: 10px 16px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .03);
}

/* —— 窄屏抽屉：汉堡键、关闭键、遮罩 —— */
.lh-burger {
    display: none;
    width: 32px;
    height: 32px;
    flex: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--lh-line-3);
    border-radius: var(--lh-radius-sm);
    background: #fff;
    color: var(--lh-ink);
    font-size: 17px;
    cursor: pointer;
}

.lh-side-x {
    display: none;
    width: 26px;
    height: 26px;
    flex: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: var(--lh-radius-sm);
    background: rgba(255, 255, 255, .08);
    color: #b9bfc5;
    font-size: 16px;
    cursor: pointer;
}

.lh-nav-mask {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(16, 24, 40, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .18s ease, visibility .18s ease;
}

body.lh-nav-open .lh-nav-mask {
    opacity: 1;
    visibility: visible;
}

.lh-hd {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.lh-hd-l {
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.lh-hd .crumb {
    font-size: 12px;
    color: var(--lh-mut);
}

.lh-hd .crumb::after {
    content: "/";
    margin-inline-start: 10px;
    color: var(--lh-line-3);
}

.lh-hd h1 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -.01em;
    line-height: 1.4;
}

.lh-hd-sub {
    font-size: 12px;
    color: var(--lh-mut);
}

.lh-hd-r {
    margin-inline-start: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.lh-hd-r > a {
    font-size: 12.5px;
    color: var(--lh-mut);
    padding: 4px 10px;
    border-radius: var(--lh-radius-sm);
    border: 1px solid var(--lh-line-3);
    background: #fff;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.lh-hd-r > a:hover {
    color: var(--lh-primary);
    border-color: var(--lh-primary);
    text-decoration: none;
}

/* 有新版本时顶栏「更新」旁边的小红点 */
.lh-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--lh-rose);
}

/* 页头动作位：页面自带的按钮排这里 */
.lh-hd-r .acts {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* —— 内容区 —— */
.lh-body {
    flex: 1 1 auto;
    padding: 12px;
}

.lh-body.has-rail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 12px;
    align-content: start;
}

.lh-body > .alert {
    grid-column: 1 / -1;
}

.lh-col {
    min-width: 0;
}

.lh-rail {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

/* —— 工具条 —— */
.lh-tools {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.lh-tools .form-control {
    height: 32px;
    padding: 0 10px;
}

.lh-tools .q {
    flex: 1 1 220px;
    min-width: 0;
}

.lh-tools select {
    width: auto;
    min-width: 120px;
}

/* —— 下拉框：右侧一个向下的字体图标，让人看得出这里可选 —— */
.lh-sel {
    position: relative;
    display: block;
    min-width: 0;
}

.lh-sel > select {
    width: 100%;
    padding-right: 28px;
    appearance: none;
    -webkit-appearance: none;
}

.lh-sel > i {
    position: absolute;
    right: 9px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    line-height: 1;
    color: var(--lh-mut);
    pointer-events: none;
}

.lh-sel select:disabled + i {
    color: #c3cbd3;
}

/* —— 批量操作条 —— */
.lh-batch {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    padding: 8px 12px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid var(--lh-line);
    border-radius: 4px;
}

.lh-batch .lh-sel {
    width: auto;
}

.lh-batch-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--lh-ink);
    cursor: pointer;
    user-select: none;
}

.lh-cbx {
    width: 15px;
    height: 15px;
    margin: 0;
    vertical-align: middle;
    cursor: pointer;
    accent-color: var(--lh-primary);
}

/* 生效中的行不给勾：淡到一眼能看出「这项轮不到批量」 */
.lh-cbx:disabled {
    cursor: not-allowed;
    opacity: .35;
}

.lh-t .chk {
    width: 52px;
    text-align: center;
}

/* —— 右栏里的字段行 —— */
.lh-fld {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid var(--lh-line-2);
    font-size: 14px;
}

.lh-fld:last-child {
    border-bottom: 0;
}

.lh-fld > span:first-child {
    color: var(--lh-mut);
}

.lh-fld .form-control {
    height: 32px;
    padding: 0 10px;
}

.lh-go {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* —— 右栏里的键值行 —— */
.lh-kv {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--lh-line-2);
    font-size: 14px;
}

.lh-kv:last-child {
    border-bottom: 0;
}

.lh-kv > span {
    color: var(--lh-mut);
}

.lh-kv > b {
    font-weight: 500;
}

.lh-kv .mono {
    font-family: var(--lh-mono);
    font-size: 12px;
}

/* —— 信息网格：标签在上、值在下，铺满卡片宽度 —— */
.lh-kvgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 13px 22px;
}

.lh-kvgrid > div {
    min-width: 0;
}

.lh-kvgrid .k {
    font-size: 12px;
    color: var(--lh-mut);
}

.lh-kvgrid .k i {
    color: var(--lh-primary);
    font-size: 12px;
    margin-inline-end: 3px;
}

.lh-kvgrid .v {
    margin-top: 1px;
    font-size: 13px;
    color: var(--lh-ink);
    overflow-wrap: anywhere;
}

.lh-kvgrid .v.mono {
    font-family: var(--lh-mono);
    font-size: 12px;
}

/* —— 运行监控：状态点 + 名称在上，结论在下 —— */
.lh-mon {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 13px 22px;
}

.lh-mon > div {
    min-width: 0;
}

.lh-mon .k {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--lh-mut);
}

.lh-mon .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex: none;
    background: var(--lh-navy-3);
}

.lh-mon .ok .dot {
    background: #3d8b40;
}

.lh-mon .warn .dot {
    background: var(--lh-amber);
}

.lh-mon .bad .dot {
    background: var(--lh-rose);
}

.lh-mon .v {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: var(--lh-ink);
    overflow-wrap: anywhere;
}

.lh-mon .v.mono {
    font-family: var(--lh-mono);
    font-size: 12px;
}

/* —— 页脚一行 —— */
.lh-foot {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--lh-line);
    border-radius: var(--lh-radius);
    padding: 10px 14px;
    font-size: 12px;
    color: var(--lh-mut);
    flex-wrap: wrap;
    box-shadow: var(--lh-shadow);
}

/* ============================================================
   卡片 / 面板
   ============================================================ */
.lh-card,
.lh-pane {
    background: #fff;
    border: 1px solid var(--lh-line);
    border-radius: var(--lh-radius);
    box-shadow: var(--lh-shadow);
    overflow-wrap: anywhere;
}

.lh-card + .lh-card,
.lh-pane + .lh-pane {
    margin-top: 12px;
}

/* 右栏里面板间距由 .lh-rail 的 gap 统一管 */
.lh-rail .lh-pane + .lh-pane {
    margin-top: 0;
}

.lh-card-h,
.lh-pane-h {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--lh-line-2);
    font-size: 14px;
    font-weight: 600;
    color: var(--lh-ink);
    flex-wrap: wrap;
}

.lh-card-h .bi,
.lh-pane-h .bi {
    color: var(--lh-primary);
    font-size: 14px;
}

.lh-card-h .cnt,
.lh-pane-h .cnt {
    font-size: 12px;
    font-weight: 400;
    color: var(--lh-mut);
}

.lh-card-h .sp,
.lh-pane-h .sp {
    margin-inline-start: auto;
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.lh-card-b,
.lh-pane-b {
    padding: 16px;
}

.lh-card-b > :last-child,
.lh-pane-b > :last-child {
    margin-bottom: 0;
}

/* ============================================================
   KPI：左侧数字，右侧彩色图标块
   ============================================================ */
.lh-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.lh-kpi {
    background: #fff;
    border: 1px solid var(--lh-line);
    border-radius: var(--lh-radius);
    box-shadow: var(--lh-shadow);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.lh-kpi .ic {
    width: 38px;
    height: 38px;
    border-radius: var(--lh-radius);
    display: grid;
    place-items: center;
    font-size: 17px;
    flex: none;
    background: var(--lh-primary-soft);
    color: var(--lh-primary);
}

.lh-kpi .ic.ok {
    background: var(--lh-mint-soft);
    color: var(--lh-mint);
}

.lh-kpi .ic.warn {
    background: var(--lh-amber-soft);
    color: var(--lh-amber);
}

.lh-kpi .ic.bad {
    background: var(--lh-rose-soft);
    color: var(--lh-rose);
}

.lh-kpi .ic.gray {
    background: var(--lh-wait-soft);
    color: var(--lh-wait);
}

.lh-kpi .txt {
    min-width: 0;
    flex: 1 1 auto;
}

.lh-kpi .lab {
    font-size: 12px;
    color: var(--lh-mut);
}

.lh-kpi .num {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -.02em;
    line-height: 1.25;
}

.lh-kpi .dlt {
    font-size: 12px;
    color: var(--lh-mut);
}

.lh-kpi .ring {
    display: none;
}

/* ============================================================
   表格
   ============================================================ */
.lh-scroll {
    overflow-x: auto;
}

/* 独立表格外框：不套面板时表格自己带边 */
.lh-tbox {
    background: #fff;
    border: 1px solid var(--lh-line);
    border-radius: var(--lh-radius);
    box-shadow: var(--lh-shadow);
    overflow: hidden;
}

.lh-t {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: #fff;
}

.lh-t th {
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--lh-mut);
    padding: 10px 14px;
    background: var(--lh-head);
    border-bottom: 1px solid var(--lh-line);
    white-space: nowrap;
}

.lh-t td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--lh-line-2);
    vertical-align: middle;
}

.lh-t tbody tr:last-child td {
    border-bottom: 0;
}

.lh-t tbody tr:hover td {
    background: #f5faf6;
}

/* 两行单元：主行给内容，次行给备注 */
.lh-t .main {
    font-size: 14px;
}

.lh-t .row2 {
    font-size: 12px;
    color: var(--lh-mut);
    margin-top: 2px;
}

.lh-t .code {
    font-family: var(--lh-mono);
    font-size: 14px;
    letter-spacing: .01em;
    color: var(--lh-ink);
    white-space: nowrap;
}

.lh-t .code a {
    color: var(--lh-ink);
}

.lh-t .code a:hover {
    color: var(--lh-primary);
}

.lh-t .app {
    font-weight: 600;
    white-space: nowrap;
}

.lh-t .dom,
.lh-t .mut {
    color: var(--lh-mut);
}

/* 审计「对象」：值单独一行不折行，超出走省略号（全文在 title），类型做次行 */
.lh-t .obj {
    font-family: var(--lh-mono);
    font-size: 12px;
    color: var(--lh-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 172px;
}

.lh-t .obj-t {
    font-size: 12px;
    color: var(--lh-mut);
    margin-top: 2px;
}

.lh-t .num,
.lh-num {
    font-family: var(--lh-mono);
    font-size: 14px;
    text-align: right;
}

.lh-t .right,
.lh-t th.right {
    text-align: right;
}

/* ============================================================
   状态：点 + 文字，好坏只改这两样
   ============================================================ */
.lh-pill,
.lh-st {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    line-height: 1.6;
    padding: 1px 9px;
    border: 0;
    border-radius: 11px;
    background: var(--lh-wait-soft);
    white-space: nowrap;
    color: var(--lh-mut);
}

.lh-pill::before,
.lh-st::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex: none;
    background: currentColor;
}

.lh-pill.ok,
.lh-st.ok {
    color: #3d8b40;
    background: var(--lh-mint-soft);
}

.lh-pill.warn,
.lh-st.warn {
    color: #b96f00;
    background: var(--lh-amber-soft);
}

.lh-pill.bad,
.lh-st.bad {
    color: #d0342c;
    background: var(--lh-rose-soft);
}

.lh-pill.gray,
.lh-st.gray {
    color: var(--lh-mut);
    background: var(--lh-wait-soft);
}

.lh-plat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 1px 9px;
    border: 0;
    border-radius: 11px;
    color: #4b5563;
    background: var(--lh-wait-soft);
    white-space: nowrap;
}

.lh-platrow {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 18px;
    gap: 8px;
    align-items: center;
    margin-bottom: 11px;
}

.lh-platrow:last-child {
    margin-bottom: 0;
}

.lh-platrow .lh-plat {
    justify-self: start;
}

.lh-platrow .lh-bar {
    min-width: 0;
}

.lh-plat.em {
    color: #1a8f33;
    background: var(--lh-primary-soft);
}

.lh-plat.tc {
    color: #7c4dbe;
    background: #f3edfb;
}

.lh-plat.zb {
    color: #b96f00;
    background: var(--lh-amber-soft);
}

/* ============================================================
   操作链接 / 选项卡 / 分页
   ============================================================ */
.lh-act {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.lh-act a {
    font-size: 12.5px;
    color: var(--lh-primary);
    white-space: nowrap;
}

.lh-act a:hover {
    color: var(--lh-primary-dk);
}

.lh-act a.danger {
    color: var(--lh-rose);
}

/* 顶部标签条：宝塔面板式，项目横向拉开，激活项文字下方一小段下划线 */
.lh-tabs {
    display: flex;
    align-items: center;
    gap: 40px;
    background: #fff;
    border: 1px solid var(--lh-line);
    border-radius: var(--lh-radius);
    box-shadow: var(--lh-shadow);
    padding: 0 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.lh-tabs::-webkit-scrollbar {
    display: none;
}

.lh-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 16px 0 18px;
    font-size: 14px;
    color: var(--lh-ink);
    white-space: nowrap;
    text-decoration: none;
}

.lh-tabs a:hover {
    color: var(--lh-primary);
}

.lh-tabs a.on {
    color: var(--lh-primary);
    font-weight: 600;
}

/* 激活项：文字下方一小段下划线，落在标签条底边上 */
.lh-tabs a .lb {
    position: relative;
    display: inline-block;
}

.lh-tabs a.on .lb::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -17px;
    width: 20px;
    height: 2px;
    transform: translateX(-50%);
    background: var(--lh-primary);
    border-radius: 1px;
}

/* 卡片里再放一层标签时去掉外框，只留下划线 */
.lh-card-b .lh-tabs,
.lh-card-h .lh-tabs {
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0;
}

/* 放在卡片头里的一层标签：靠卡片头的内边距对齐，划线落在卡片头下边 */
.lh-card-h .lh-tabs a {
    padding: 8px 0;
}

.lh-card-h .lh-tabs a.on .lb::after {
    bottom: -12px;
}

/* 标签条所在的整行，横跨左右两栏 */
.lh-tabs-wrap {
    grid-column: 1 / -1;
}

/* 单栏页面：标签条与下方卡片之间留出竖向间距（双栏页面由栅格 gap 管） */
.lh-body:not(.has-rail) .lh-tabs-wrap {
    margin-bottom: 12px;
}

/* 徽章：计数用的小色块 */
.lh-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    border-radius: var(--lh-radius-sm);
    background: var(--lh-wait-soft);
    color: var(--lh-mut);
    white-space: nowrap;
}

.lh-badge.ok {
    background: var(--lh-mint-soft);
    color: #3d8b40;
}

.lh-badge.warn {
    background: var(--lh-amber-soft);
    color: #b96f00;
}

.lh-badge.bad {
    background: var(--lh-rose-soft);
    color: #d0342c;
}

.lh-badge.info {
    background: var(--lh-primary-soft);
    color: var(--lh-primary-dk);
}

.pagination {
    gap: 4px;
    margin: 0;
}

.page-link {
    font-size: 12px;
    color: #4b5563;
    background: none;
    border: 1px solid var(--lh-line-3);
    border-radius: var(--lh-radius-sm);
    padding: 4px 10px;
}

.page-link:hover {
    color: var(--lh-primary);
    background: #fff;
    border-color: var(--lh-primary);
}

.page-link:focus {
    box-shadow: none;
}

.page-item.active .page-link {
    background: var(--lh-primary);
    border-color: var(--lh-primary);
    color: #fff;
}

.page-item.disabled .page-link {
    color: var(--lh-wait);
    background: none;
    border-color: var(--lh-line-3);
}

/* ============================================================
   授权码展示框 / 流水 / 进度
   ============================================================ */
.lh-code-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--lh-primary-soft);
    border: 1px solid #cfe9d6;
    border-radius: var(--lh-radius);
    padding: 10px 14px;
}

.lh-code-box .v {
    font-family: var(--lh-mono);
    font-size: 14px;
    letter-spacing: .04em;
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    color: #14548f;
}

.lh-flow {
    padding-left: 0;
    margin-left: 0;
}

.lh-flow .it {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--lh-line-2);
    font-size: 14px;
}

.lh-flow .it:last-child {
    border-bottom: 0;
}

.lh-flow .it > .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex: none;
    margin-top: 8px;
    background: var(--lh-primary);
}

.lh-flow .it.bad > .dot {
    background: var(--lh-rose);
}

.lh-flow .it.ok > .dot {
    background: var(--lh-mint);
}

.lh-flow .it .tx {
    flex: 1;
    min-width: 0;
}

.lh-flow .it .tm {
    color: var(--lh-mut);
    font-size: 12px;
    white-space: nowrap;
}

.lh-bar,
.lh-meter {
    height: 6px;
    background: var(--lh-line-2);
    border-radius: 3px;
    overflow: hidden;
}

.lh-bar i,
.lh-meter i {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: var(--lh-primary);
}

/* ============================================================
   自检清单 / 有序引导
   ============================================================ */
.lh-check {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.lh-check td {
    padding: 9px 14px;
    border-bottom: 1px solid var(--lh-line-2);
    vertical-align: top;
}

.lh-check tr:last-child td {
    border-bottom: 0;
}

.lh-check .bi-check-circle,
.lh-check .bi-check,
.lh-check .bi-check2 {
    color: var(--lh-mint);
}

.lh-check .bi-x-circle,
.lh-check .bi-x {
    color: var(--lh-rose);
}

.lh-check .bi-exclamation-circle,
.lh-check .bi-exclamation-triangle,
.lh-check .bi-exclamation-lg {
    color: var(--lh-amber);
}

.lh-check .val {
    color: var(--lh-mut);
    font-family: var(--lh-mono);
    font-size: 12px;
}

/* 自检行：图标 + 名称与说明 + 右侧实测值 */
.lh-chk {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--lh-line-2);
    font-size: 14px;
}

.lh-chk:last-of-type {
    border-bottom: 0;
}

.lh-chk .ic {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    flex: none;
    background: var(--lh-mint-soft);
    color: var(--lh-mint);
}

.lh-chk.warn .ic {
    background: var(--lh-amber-soft);
    color: var(--lh-amber);
}

.lh-chk.bad .ic {
    background: var(--lh-rose-soft);
    color: var(--lh-rose);
}

.lh-chk .nm {
    font-weight: 600;
}

.lh-chk .ds {
    font-size: 12px;
    color: var(--lh-mut);
    margin-top: 2px;
}

.lh-chk .sp {
    margin-inline-start: auto;
    font-family: var(--lh-mono);
    font-size: 12px;
    color: #4b5563;
    text-align: right;
    white-space: nowrap;
    padding-left: 12px;
}

.lh-steps {
    counter-reset: s;
    list-style: none;
    font-size: 14px;
    color: var(--lh-mut);
    line-height: 2;
    padding-left: 0;
    margin: 0;
}

.lh-steps li {
    padding-left: 24px;
    position: relative;
}

.lh-steps li::before {
    counter-increment: s;
    content: counter(s);
    position: absolute;
    left: 0;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    font-size: 10px;
    line-height: 16px;
    text-align: center;
    color: #fff;
    background: var(--lh-primary);
}

/* ============================================================
   安装向导：步骤卡 + 入口块
   ============================================================ */
.lh-flow-steps {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 12px;
    background: #fff;
    border: 1px solid var(--lh-line);
    border-radius: var(--lh-radius);
    box-shadow: var(--lh-shadow);
    padding: 16px 18px;
    margin-bottom: 16px;
}

.lh-flow-steps .st {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
}

.lh-flow-steps .st .no {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 600;
    background: var(--lh-wait-soft);
    color: var(--lh-mut);
    flex: none;
}

.lh-flow-steps .st .t {
    font-size: 14px;
    font-weight: 600;
    color: #4b5563;
    line-height: 1.3;
}

.lh-flow-steps .st .s {
    display: block;
    font-size: 11.5px;
    color: var(--lh-mut);
    font-weight: 400;
}

.lh-flow-steps .st.done .no {
    background: var(--lh-mint);
    color: #fff;
}

.lh-flow-steps .st.act .no {
    background: var(--lh-primary);
    color: #fff;
}

.lh-flow-steps .st.act .t {
    color: var(--lh-ink);
}

.lh-flow-steps .lnk {
    flex: 1 1 20px;
    min-width: 20px;
    height: 1px;
    background: var(--lh-line);
    margin: 0 12px;
}

.lh-flow-steps .lnk.done {
    background: var(--lh-mint);
}

.lh-ent {
    background: #fff;
    border: 1px solid var(--lh-line);
    border-radius: var(--lh-radius);
    box-shadow: var(--lh-shadow);
    padding: 4px 18px;
}

.lh-ent .t {
    font-size: 14px;
    font-weight: 600;
    color: var(--lh-ink);
    padding: 14px 0 4px;
}

.lh-ent .t i {
    color: var(--lh-primary);
    margin-inline-end: 6px;
}

.lh-ent .rw {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    padding: 10px 0;
    border-bottom: 1px solid var(--lh-line-2);
    flex-wrap: wrap;
}

.lh-ent .rw:last-child {
    border-bottom: 0;
}

.lh-ent .rw .k {
    flex: 0 0 112px;
    color: var(--lh-mut);
}

.lh-ent .rw .k i {
    color: var(--lh-primary);
    font-size: 13px;
    margin-inline-end: 5px;
}

.lh-ent .rw .v {
    font-family: var(--lh-mono);
    color: var(--lh-ink);
    overflow-wrap: anywhere;
}

.lh-ent .rw .v a {
    color: var(--lh-primary);
}

.lh-ent .rw .sp {
    margin-inline-start: auto;
    color: var(--lh-mut);
}

/* ============================================================
   前台门户
   ============================================================ */
.lh-portal-top {
    background: #fff;
    border-bottom: 1px solid var(--lh-line);
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 30px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .03);
    position: sticky;
    top: 0;
    z-index: 40;
}

.lh-portal-top .mk {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--lh-primary);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 15px;
    flex: none;
}

.lh-portal-top .nm {
    color: var(--lh-ink);
    font-size: 15px;
    font-weight: 600;
}

.lh-portal-top .sub {
    color: var(--lh-mut);
    font-size: 13px;
}

.lh-portal-top .nav {
    display: flex;
    gap: 2px;
}

.lh-portal-top .nav a {
    color: #4b5563;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: var(--lh-radius-sm);
    text-decoration: none;
}

.lh-portal-top .nav a:hover,
.lh-portal-top .nav a.on {
    color: var(--lh-primary);
    background: var(--lh-primary-soft);
}

.lh-portal-top .sp {
    margin-inline-start: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lh-portal-top .burger {
    display: none;
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    color: var(--lh-ink);
    font-size: 19px;
    line-height: 1;
    padding: 0;
    place-items: center;
    border-radius: var(--lh-radius-sm);
}

/* 手机上的下拉菜单，默认收起 */
.lh-portal-menu {
    display: none;
}

/* 页面标题块 */
.lh-pagehead {
    margin-bottom: 16px;
}

.lh-pagehead h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -.01em;
    color: var(--lh-ink);
}

.lh-pagehead p {
    margin: 5px 0 0;
    font-size: 13px;
    color: var(--lh-mut);
}

/* 首页的大搜索条 */
.lh-search {
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--lh-line);
    border-radius: var(--lh-radius);
    padding: 6px;
}

.lh-search input {
    flex: 1 1 auto;
    min-width: 0;
    background: transparent;
    border: 0;
    outline: 0;
    color: var(--lh-ink);
    font-size: 14px;
    padding: 8px 10px;
}

.lh-search input::placeholder {
    color: #a8abb2;
}

.lh-search .btn {
    flex: none;
}

/* 入口卡：整卡可点 */
.lh-entryrow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

/* 开了免费领取就是四张，一行塞不下，改两列排 */
.lh-entryrow-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lh-entry {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    text-align: start;
    background: #fff;
    border: 1px solid var(--lh-line);
    border-radius: var(--lh-radius);
    padding: 13px 12px;
    color: inherit;
    text-decoration: none;
    font-family: inherit;
    cursor: pointer;
}

.lh-entry .ic {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: var(--lh-primary-soft);
    color: var(--lh-primary);
    display: grid;
    place-items: center;
    font-size: 15px;
    flex: none;
}

.lh-entry .tx {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.lh-entry .tt {
    font-size: 14px;
    font-weight: 600;
    color: var(--lh-ink);
}

.lh-entry .ds {
    font-size: 12px;
    color: var(--lh-mut);
}

.lh-entry .ar {
    margin-inline-start: auto;
    color: #c3c8ce;
    font-size: 16px;
    flex: none;
}

.lh-entry:hover .ar {
    color: var(--lh-primary);
}

.lh-entry .lh-pill {
    margin-inline-start: auto;
}

/* 忘了码：邮箱找回条 */
.lh-mailbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid var(--lh-line);
    border-radius: var(--lh-radius);
    color: var(--lh-mut);
    font-size: 12.5px;
}

.lh-mailbar > i {
    color: var(--lh-primary);
    font-size: 15px;
}

.lh-mailbar form {
    display: flex;
    gap: 8px;
    margin-inline-start: auto;
    flex-wrap: wrap;
}

.lh-mailbar input {
    width: 220px;
    max-width: 100%;
}

/* 查询结果卡 */
.lh-res {
    border: 1px solid var(--lh-line);
    border-radius: var(--lh-radius);
    padding: 12px 14px;
    margin-bottom: 10px;
}

.lh-res:last-child {
    margin-bottom: 0;
}

.lh-res-h {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.lh-res-h .tt {
    font-size: 14px;
    font-weight: 600;
    color: var(--lh-ink);
}

.lh-res-h .lh-pill {
    margin-inline-start: auto;
}

.lh-res-act {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    font-size: 13px;
    color: var(--lh-primary);
    text-decoration: none;
}

/* 键值网格 */
.lh-kv {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 6px 12px;
    font-size: 13px;
    color: var(--lh-mut);
}

.lh-kv b {
    color: var(--lh-ink);
    font-weight: 400;
    word-break: break-all;
}

.lh-kv-2 {
    grid-template-columns: 72px minmax(0, 1fr) 72px minmax(0, 1fr);
    column-gap: 16px;
}

/* 授权码：等宽值 + 复制按钮 */
.lh-kv b.lh-code {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    font-weight: 600;
    font-size: 14.5px;
    letter-spacing: .3px;
}

.lh-code > .lh-mono {
    word-break: normal;
    overflow-wrap: anywhere;
}

.lh-copy {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 1px;
    border: 0;
    background: transparent;
    padding: 0;
    font-family: inherit;
    font-size: 13px;
    color: var(--lh-primary);
    cursor: pointer;
}

.lh-copy i {
    font-size: 14px;
}

/* 我的授权：授权码卡 */
.lh-mine {
    display: block;
    border: 1px solid var(--lh-line);
    border-radius: var(--lh-radius);
    padding: 12px 14px;
    margin-bottom: 10px;
    color: inherit;
    text-decoration: none;
}

.lh-mine:last-child {
    margin-bottom: 0;
}

.lh-mine-h {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lh-mine-h .code {
    font-size: 14px;
    color: var(--lh-ink);
    word-break: break-all;
}

.lh-mine-h .lh-pill {
    margin-inline-start: auto;
}

.lh-mine-b {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--lh-mut);
}

/* 免费领取：多个免费应用时挑一个 */
.lh-apppick {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
}

.lh-apppick-i {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--lh-line);
    border-radius: var(--lh-radius);
    padding: 8px 10px;
    color: inherit;
    text-decoration: none;
}

.lh-apppick-i.on {
    border-color: var(--lh-primary);
}

.lh-apppick-n {
    font-size: 13.5px;
    color: var(--lh-ink);
}

.lh-apppick-l {
    font-size: 12px;
    color: var(--lh-mut);
    margin-inline-start: auto;
}

/* 登录/注册/找回 弹窗 */
body.lh-pmodal-open {
    overflow: hidden;
}

.lh-pmodal-mask {
    position: fixed;
    inset: 0;
    background: rgba(16, 24, 40, .48);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 80;
    padding: 20px;
}

.lh-pmodal-mask[hidden] {
    display: none;
}

.lh-pmodal {
    width: 400px;
    max-width: 100%;
    max-height: calc(100vh - 40px);
    background: #fff;
    border: 1px solid var(--lh-line);
    border-radius: 8px;
    box-shadow: 0 8px 28px rgba(16, 24, 40, .12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.lh-pmodal-h {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--lh-line);
    font-size: 15px;
    font-weight: 600;
    color: var(--lh-ink);
}

.lh-pmodal-h i {
    color: var(--lh-primary);
    font-size: 16px;
}

.lh-pmodal-h .x {
    margin-inline-start: auto;
    border: 0;
    background: transparent;
    color: var(--lh-primary);
    font-size: 18px;
    line-height: 1;
    padding: 0 2px;
}

.lh-pmodal-b {
    padding: 16px;
    overflow: auto;
}

/* 弹窗页签：灰底分段条，选中项是白块绿字 */
.lh-pmodal-tabs {
    display: flex;
    gap: 4px;
    background: var(--lh-canvas);
    border-radius: 6px;
    padding: 4px;
    margin-bottom: 16px;
}

.lh-pmodal-tabs button {
    flex: 1 1 0;
    border: 0;
    background: transparent;
    color: var(--lh-mut);
    font-size: 13.5px;
    font-family: inherit;
    padding: 7px 0;
    border-radius: 4px;
    cursor: pointer;
}

.lh-pmodal-tabs button.on {
    background: #fff;
    color: var(--lh-primary);
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .08);
}

.lh-pmodal-panel[hidden] {
    display: none;
}

.lh-pmodal .form-label {
    font-size: 13px;
    color: var(--lh-mut);
    margin-bottom: 4px;
}

.lh-pmodal-foot {
    margin-top: 14px;
    font-size: 13px;
    color: var(--lh-mut);
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.lh-pmodal-foot a,
.lh-pmodal-foot .lnk {
    color: var(--lh-primary);
    text-decoration: none;
    background: none;
    border: 0;
    padding: 0;
    font-size: 13px;
    cursor: pointer;
}

.lh-pmodal-foot .lnk .tx {
    color: var(--lh-ink);
}

.lh-pmodal-foot .lnk .gr {
    color: var(--lh-primary);
    font-weight: 600;
}

.lh-portal-body {
    background: var(--lh-canvas);
    padding: 22px 30px 44px;
}

/* 前台走扁平样式：卡片与顶栏都不要阴影 */
.lh-portal-body .lh-card,
.lh-portal-body .lh-pane {
    box-shadow: none;
}

.lh-portal-top {
    box-shadow: none;
}

/* 正文里的行内文字按钮 */
.lh-portal-body .lnk {
    color: var(--lh-primary);
    background: none;
    border: 0;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
    text-decoration: underline;
}

/* —— 页脚 —— */
.lh-admin-foot,
.lh-foot-line {
    color: var(--lh-mut);
    font-size: 12.5px;
    text-align: center;
}

.lh-foot-line {
    margin-top: 44px;
    padding: 28px 0 0;
}

.lh-admin-foot {
    padding: 0 12px 14px;
}

.lh-admin-foot .sep,
.lh-foot-line .sep {
    margin: 0 8px;
    color: var(--lh-line);
}

.lh-admin-foot a,
.lh-foot-line a {
    color: var(--lh-mut);
    text-decoration: none;
}

.lh-admin-foot a:hover,
.lh-foot-line a:hover {
    color: var(--lh-primary);
}

.lh-admin-foot a.dev {
    color: var(--lh-primary);
}

.lh-police {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    vertical-align: -2px;
}

.lh-police-icon {
    width: 15px;
    height: 15px;
    display: block;
}

.lh-foot-html {
    color: var(--lh-mut);
    font-size: 12.5px;
    text-align: center;
    padding-bottom: 6px;
}

.lh-foot-html a {
    color: var(--lh-mut);
}

.lh-wrap {
    max-width: 780px;
    margin: 0 auto;
}

.lh-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 12px;
    align-items: start;
}

/* 没有右侧结果时，单卡居中 */
.lh-split.solo {
    grid-template-columns: minmax(0, 640px);
    justify-content: center;
}

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

.lh-app {
    background: #fff;
    border: 1px solid var(--lh-line);
    border-radius: var(--lh-radius);
    box-shadow: var(--lh-shadow);
    padding: 16px 18px;
}

.lh-app .sq {
    width: 36px;
    height: 36px;
    border-radius: var(--lh-radius);
    display: grid;
    place-items: center;
    font-size: 17px;
    margin-bottom: 12px;
    background: var(--lh-primary-soft);
    color: var(--lh-primary);
}

.lh-app .tt {
    font-size: 14px;
    font-weight: 600;
}

.lh-app .pr {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -.01em;
}

/* ============================================================
   登录页：居中收敛版
   ============================================================ */
.lh-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}

.lh-auth-wrap {
    width: 100%;
    max-width: 400px;
}

.lh-auth-card {
    background: #fff;
    border: 1px solid var(--lh-line);
    border-radius: 6px;
    box-shadow: var(--lh-shadow-lg);
    padding: 30px 30px 22px;
}

.lh-auth-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 26px;
}

.lh-auth-brand .mk {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: var(--lh-primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 19px;
    flex: none;
}

.lh-auth-brand .tx {
    display: block;
}

.lh-auth-brand .nm {
    display: block;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--lh-ink);
    line-height: 1.3;
}

.lh-auth-brand .ver {
    display: block;
    font-size: 11.5px;
    color: #909399;
    line-height: 1.3;
}

.lh-auth-card h1 {
    font-size: 19px;
    font-weight: 600;
    margin: 0 0 4px;
}

.lh-auth-sub {
    font-size: 12.5px;
    color: var(--lh-mut);
    margin: 0 0 22px;
}

.lh-auth-card .form-label {
    font-size: 12.5px;
    font-weight: 600;
}

.lh-auth-card .form-control {
    height: 38px;
    font-size: 13.5px;
}

.lh-auth-go {
    width: 100%;
    height: 38px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 14px;
}

.lh-auth-foot {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--lh-line-2);
    font-size: 12px;
    color: var(--lh-mut);
    text-align: center;
}

.lh-auth-below {
    text-align: center;
    margin-top: 16px;
}

/* QQ 互联：分隔线 + 图标按钮，后台登录页与前台登录弹窗共用 */
.lh-or {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0;
    font-size: 12px;
    color: var(--lh-mut);
}

.lh-or::before,
.lh-or::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--lh-line-2);
}

.lh-qq-btn {
    width: 100%;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--lh-line);
    border-radius: 4px;
    background: #fff;
    color: var(--lh-ink);
    font-size: 13.5px;
    text-decoration: none;
}

.lh-qq-btn:hover {
    border-color: var(--lh-primary);
    color: var(--lh-primary);
}

.lh-qq-btn img {
    width: 20px;
    height: 20px;
    flex: none;
}

/* ============================================================
   安装向导：顶栏 + 步骤条 + 双栏
   ============================================================ */
.lh-inst {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.lh-inst-top {
    background: #fff;
    border-bottom: 1px solid var(--lh-line);
    padding: 12px 18px;
}

.lh-inst-topin {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 11px;
    flex-wrap: wrap;
}

.lh-inst-top .mk {
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: var(--lh-primary);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 19px;
    flex: none;
}

.lh-inst-top .tt {
    display: block;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.lh-inst-top .ss {
    display: block;
    font-size: 11.5px;
    color: #909399;
    line-height: 1.3;
}

.lh-inst-top .rt {
    margin-inline-start: auto;
}

.lh-inst-steps {
    padding: 16px 18px 0;
}

.lh-inst-steps .lh-flow-steps {
    max-width: 1080px;
    margin: 0 auto;
}

.lh-inst-cols {
    display: grid;
    grid-template-columns: 262px minmax(0, 1fr);
    gap: 14px;
    padding: 16px 18px 24px;
    align-items: start;
    max-width: 1080px;
    margin: 0 auto;
}

.lh-inst-side > * + *,
.lh-inst-main > * + * {
    margin-top: 12px;
}

.lh-inst-side .lh-chk {
    padding: 9px 12px;
    gap: 9px;
    font-size: 13px;
}

.lh-inst-side .lh-chk .ds {
    font-size: 11.5px;
}

.lh-inst-tbl {
    padding: 6px 14px 10px;
    font-size: 11.5px;
}

.lh-inst-tbl .rw {
    display: flex;
    gap: 10px;
    align-items: baseline;
    padding: 4px 0;
    border-bottom: 1px solid var(--lh-line-2);
}

.lh-inst-tbl .rw:last-child {
    border-bottom: 0;
}

.lh-inst-tbl .n {
    font-family: var(--lh-mono);
    color: var(--lh-ink);
    white-space: nowrap;
}

.lh-inst-tbl .d {
    color: var(--lh-mut);
    margin-inline-start: auto;
    text-align: right;
}

.lh-inst-act {
    background: #fff;
    border: 1px solid var(--lh-line);
    border-radius: var(--lh-radius);
    box-shadow: var(--lh-shadow);
    padding: 13px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.lh-inst-act .hint {
    font-size: 12px;
    color: var(--lh-mut);
}

.lh-inst-tail {
    text-align: center;
    padding: 0 18px 24px;
    max-width: 1080px;
    margin: 0 auto;
}

/* ============================================================
   弹窗：应用管理页里点「客户端」就地开一扇窗
   ============================================================ */
.lh-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

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

.lh-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(16, 24, 40, .45);
}

.lh-modal-box {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(1080px, 100%);
    height: min(760px, 100%);
    background: var(--lh-canvas);
    border-radius: var(--lh-radius);
    box-shadow: 0 8px 30px rgba(16, 24, 40, .18);
    overflow: hidden;
}

.lh-modal-box.lh-modal-sm {
    width: min(420px, 100%);
    height: auto;
    background: #fff;
}

.lh-modal-box form {
    display: flex;
    flex-direction: column;
}

.lh-modal-body {
    padding: 16px;
}

.lh-modal-ft {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--lh-line);
}

.lh-modal-hd {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #fff;
    border-bottom: 1px solid var(--lh-line);
    flex: none;
}

.lh-modal-t {
    font-size: 14px;
    font-weight: 600;
    color: var(--lh-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lh-modal-x {
    margin-inline-start: auto;
    flex: none;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: none;
    color: var(--lh-mut);
    font-size: 16px;
    cursor: pointer;
    border-radius: var(--lh-radius-sm);
}

.lh-modal-x:hover {
    color: var(--lh-ink);
    background: var(--lh-line-2);
}

.lh-modal-bd {
    flex: 1 1 auto;
    min-height: 0;
}

.lh-modal-bd iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: var(--lh-canvas);
}

/* 弹窗里的那一页：只有一条窄顶栏 + 内容 */
.lh-embed-body {
    margin: 0;
    background: var(--lh-canvas);
    height: 100%;
}

.lh-embed {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.lh-embed-bar {
    flex: none;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fff;
    border-bottom: 1px solid var(--lh-line);
    font-size: 13px;
    color: var(--lh-ink);
}

.lh-embed-t {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lh-embed-main {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 12px;
}

.lh-embed-main .lh-tabs {
    margin-bottom: 12px;
}

/* —— 在线更新弹窗 —— */
.lh-upd-rows {
    border: 1px solid var(--lh-line);
    border-radius: var(--lh-radius-sm);
    overflow: hidden;
}

.lh-upd-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    font-size: 12.5px;
    border-bottom: 1px solid var(--lh-line-2);
}

.lh-upd-row:last-child {
    border-bottom: 0;
}

.lh-upd-row .lb {
    color: var(--lh-mut);
    flex: none;
    width: 62px;
}

.lh-upd-row .vl {
    color: var(--lh-ink);
    font-family: var(--lh-mono);
    word-break: break-all;
}

.lh-upd-notes {
    margin-top: 10px;
    max-height: 190px;
    overflow-y: auto;
    padding: 10px;
    font-size: 12px;
    line-height: 1.7;
    color: var(--lh-ink);
    white-space: pre-wrap;
    word-break: break-word;
    background: var(--lh-canvas);
    border: 1px solid var(--lh-line);
    border-radius: var(--lh-radius-sm);
    font-family: var(--lh-mono);
}

.lh-upd-src {
    font-size: 12.5px;
}

.lh-upd-src > summary {
    cursor: pointer;
    color: var(--lh-mut);
    list-style: none;
}

.lh-upd-src > summary::-webkit-details-marker {
    display: none;
}

.lh-upd-src > summary::before {
    content: "\25B8";
    display: inline-block;
    margin-inline-end: 6px;
}

.lh-upd-src[open] > summary::before {
    content: "\25BE";
}

.lh-upd-src-b {
    margin-top: 10px;
    padding: 12px;
    background: var(--lh-canvas);
    border: 1px solid var(--lh-line);
    border-radius: var(--lh-radius-sm);
}

.lh-upd-msg {
    margin-top: 10px;
    font-size: 12.5px;
    min-height: 18px;
}

.lh-upd-msg.ok {
    color: var(--lh-primary);
}

.lh-upd-msg.bad {
    color: var(--lh-rose);
}

/* ============================================================
   响应式：窄屏右栏落到表格下方，侧栏转横排
   ============================================================ */
@media (max-width: 1180px) {
    .lh-body.has-rail {
        grid-template-columns: minmax(0, 1fr);
    }

    .lh-rail {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .lh-rail > .lh-pane {
        flex: 1 1 280px;
    }
}

@media (max-width: 1200px) {
    .lh-kpis,
    .lh-apps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lh-split {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    /* 侧栏改抽屉：默认藏在屏外，汉堡键拉出 */
    .lh-burger {
        display: inline-flex;
    }

    .lh-side-x {
        display: inline-flex;
    }

    .lh-side {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 60;
        width: 236px;
        flex: 0 0 236px;
        height: 100vh;
        transform: translateX(-100%);
        transition: transform .2s ease;
        box-shadow: 0 0 26px rgba(16, 24, 40, .28);
    }

    body.lh-nav-open .lh-side {
        transform: none;
    }

    body.lh-nav-open {
        overflow: hidden;
    }

    .lh-topbar {
        flex-wrap: wrap;
        gap: 10px;
        padding: 8px 12px;
    }

    .lh-hd {
        flex: 1 1 auto;
    }

    .lh-hd-r {
        margin-inline-start: auto;
    }

    .lh-body {
        padding: 10px;
    }

    .lh-card-b,
    .lh-pane-b {
        padding: 14px;
    }

    /* 表格横向滚动，别把列压成一列一字 */
    .lh-scroll .lh-t {
        min-width: 620px;
    }
}

@media (max-width: 640px) {
    .lh-kpis,
    .lh-apps {
        grid-template-columns: minmax(0, 1fr);
    }

    .lh-auth-card {
        padding: 24px 20px 18px;
    }

    .lh-inst-cols {
        grid-template-columns: minmax(0, 1fr);
        padding: 14px 12px 20px;
    }

    .lh-inst-top,
    .lh-inst-steps {
        padding-inline: 12px;
    }

    .lh-portal-body {
        padding-inline: 14px;
    }

    .lh-portal-top {
        padding: 9px 14px;
        gap: 10px;
    }

    .lh-portal-top .sub,
    .lh-portal-top .nav {
        display: none;
    }

    .lh-portal-top .burger {
        display: grid;
    }

    .lh-portal-menu {
        display: none;
        position: fixed;
        inset: 49px 0 auto;
        background: #fff;
        border-bottom: 1px solid var(--lh-line);
        box-shadow: var(--lh-shadow-lg);
        z-index: 39;
        padding: 8px 12px 12px;
    }

    body.lh-pmenu-open .lh-portal-menu {
        display: block;
    }

    .lh-portal-menu a {
        display: block;
        padding: 10px;
        border-radius: var(--lh-radius-sm);
        color: var(--lh-ink);
        font-size: 14px;
        text-decoration: none;
    }

    .lh-portal-menu a.on {
        color: var(--lh-primary);
        background: var(--lh-primary-soft);
    }

    .lh-hero {
        padding-top: 20px;
        padding-bottom: 18px;
    }

    .lh-hero h2 {
        font-size: 19px;
    }

    .lh-search {
        flex-direction: column;
        align-items: stretch;
        padding: 8px;
    }

    .lh-search .btn {
        width: 100%;
    }

    /* 入口卡在窄屏改成竖排 */
    .lh-entryrow {
        grid-template-columns: minmax(0, 1fr);
    }

    .lh-kv-2 {
        grid-template-columns: 72px minmax(0, 1fr);
    }

    .lh-mailbar form {
        margin-inline-start: 0;
        width: 100%;
    }

    .lh-mailbar input {
        flex: 1 1 auto;
        width: auto;
    }

    /* 账号弹窗从底部升起 */
    .lh-pmodal-mask {
        align-items: flex-end;
        padding: 0;
    }

    .lh-pmodal {
        width: 100%;
        border-radius: 10px 10px 0 0;
        max-height: 92vh;
    }

    body.lh-pmodal-open {
        overflow: hidden;
    }

    .lh-body {
        padding: 10px;
    }

    /* 弹窗铺满屏 */
    .lh-modal {
        padding: 0;
    }

    .lh-modal-box {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }

    .lh-modal-box.lh-modal-sm {
        height: auto;
        border-radius: 0;
    }

    /* 右栏面板改成竖排 */
    .lh-rail {
        flex-direction: column;
        align-items: stretch;
    }

    .lh-rail > .lh-pane {
        flex: 1 1 auto;
    }

    .lh-hd-r > a {
        padding: 4px 8px;
        font-size: 12px;
    }

    .lh-card-b,
    .lh-pane-b {
        padding: 12px;
    }

    .lh-t th,
    .lh-t td {
        padding: 9px 10px;
    }
}
