/* ==========================================================
   蓝海智汇 · 船东全链条数智化服务平台
   主题：深海蓝（Ocean Blue）· 响应式（手机 / 平板 / 电脑）
   结构：1.设计变量  2.基础  3.顶栏  4.侧边栏  5.卡片
        6.KPI  7.表格  8.表单与工具条  9.图表与地图
        10.登录  11.页脚与其它  12.响应式断点
   ========================================================== */

/* ---------- 1. 设计变量 ---------- */
:root {
    /* 主色：深海蓝 */
    --lh-navy:      #0b2d5c;
    --lh-blue-800:  #10467e;
    --lh-blue-700:  #12508f;
    --lh-blue-600:  #1668c4;
    --lh-blue-500:  #1f7ae0;   /* 主色 */
    --lh-blue-400:  #4a9bea;
    --lh-blue-300:  #8fc2f2;
    --lh-blue-100:  #dcebfb;
    --lh-blue-50:   #f1f7fe;

    /* 中性色 */
    --lh-ink:       #1f2b3d;
    --lh-text:      #334155;
    --lh-muted:     #7c8ba1;
    --lh-line:      #e3ecf7;
    --lh-line-soft: #eef4fb;
    --lh-bg:        #f2f6fb;
    --lh-white:     #ffffff;

    /* 语义色（警示沿用行业习惯） */
    --lh-teal:      #12948b;
    --lh-amber:     #d9880b;
    --lh-red:       #d64545;
    --lh-purple:    #7b52b9;

    /* 形状 */
    --lh-radius:    12px;
    --lh-radius-sm: 8px;
    --lh-shadow:    0 1px 2px rgba(11, 45, 92, .04), 0 6px 18px rgba(11, 45, 92, .06);
    --lh-shadow-lg: 0 10px 34px rgba(11, 45, 92, .16);

    --lh-topbar-h:  58px;
    --lh-side-w:    228px;
}

/* ---------- 2. 基础 ---------- */
html { -webkit-text-size-adjust: 100%; }

body.lh-body {
    background: var(--lh-bg);
    color: var(--lh-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--lh-blue-600); text-decoration: none; transition: color .2s; }
a:hover { color: var(--lh-blue-500); text-decoration: none; }

h1, h2, h3, h4, h5, h6 { color: var(--lh-blue-800); }

::selection { background: var(--lh-blue-100); color: var(--lh-navy); }

/* 滚动条 */
.lh-sidebar::-webkit-scrollbar,
.lh-table-wrap::-webkit-scrollbar { width: 8px; height: 8px; }
.lh-sidebar::-webkit-scrollbar-thumb,
.lh-table-wrap::-webkit-scrollbar-thumb { background: #cddced; border-radius: 8px; }
.lh-sidebar::-webkit-scrollbar-track,
.lh-table-wrap::-webkit-scrollbar-track { background: transparent; }

/* ---------- 3. 顶栏 ---------- */
.lh-topbar {
    height: var(--lh-topbar-h);
    padding: 0 14px 0 10px;
    background: linear-gradient(90deg, var(--lh-navy) 0%, var(--lh-blue-700) 55%, var(--lh-blue-600) 100%);
    border: 0;
    box-shadow: 0 2px 12px rgba(11, 45, 92, .18);
}
.lh-topbar .navbar-brand,
.lh-topbar .nav-link,
.lh-topbar .navbar-toggler { color: rgba(255, 255, 255, .92); }

.lh-brand {
    font-weight: 700; font-size: 16px; color: #fff !important;
    letter-spacing: .3px; white-space: nowrap;
}
.lh-logo {
    display: inline-block; background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .28);
    color: #fff; border-radius: 6px; padding: 1px 8px; margin-right: 6px;
    font-size: 14px; font-weight: 700;
}
.lh-sub { color: rgba(255, 255, 255, .68) !important; font-size: 12px; }
.lh-topbar .nav-link { font-size: 13px; padding-left: .7rem; padding-right: .7rem; }
.lh-topbar .nav-link:hover { color: #fff; }
.lh-topbar .dropdown-menu { border: 0; box-shadow: var(--lh-shadow-lg); border-radius: var(--lh-radius-sm); }

.lh-avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255, 255, 255, .22); color: #fff;
    border: 1px solid rgba(255, 255, 255, .35);
    margin-right: 6px; font-size: 13px; font-weight: 600;
}
.lh-topbar .dropdown-toggle small { color: rgba(255, 255, 255, .65); }

/* 汉堡按钮 */
.lh-nav-toggle {
    display: none; border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .12); border-radius: 6px;
    padding: 4px 9px; margin-right: 8px; color: #fff; font-size: 16px; line-height: 1;
}
.lh-nav-toggle:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.lh-nav-toggle .bar { display: block; width: 18px; height: 2px; background: #fff; margin: 3px 0; border-radius: 2px; }

/* ---------- 4. 侧边栏 ---------- */
.lh-shell { padding-top: var(--lh-topbar-h); }

.lh-sidebar {
    position: fixed; top: var(--lh-topbar-h); bottom: 0; left: 0;
    width: var(--lh-side-w); z-index: 1030;
    background: var(--lh-white); border-right: 1px solid var(--lh-line);
    overflow-y: auto; overflow-x: hidden;
    transition: transform .26s ease, box-shadow .26s ease;
    -webkit-overflow-scrolling: touch;
}
.lh-sidebar-inner { padding: 14px 10px 44px; }

.lh-menu-group { margin-bottom: 8px; }
.lh-menu-title {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 12px; border-radius: var(--lh-radius-sm);
    background: var(--lh-blue-50); color: var(--lh-blue-700);
    font-size: 13px; font-weight: 700; border-left: 3px solid var(--lh-blue-500);
}
.lh-menu-title:hover { background: var(--lh-blue-100); color: var(--lh-blue-800); }
.lh-menu-title.collapsed { border-left-color: var(--lh-blue-300); }
/* 单页分组：一级菜单直接可点（无二级） */
.lh-menu-single {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 12px; border-radius: var(--lh-radius-sm);
    background: var(--lh-blue-50); color: var(--lh-blue-700);
    font-size: 13px; font-weight: 700; border-left: 3px solid var(--lh-blue-500);
    transition: background .18s, color .18s;
}
.lh-menu-single:hover { background: var(--lh-blue-100); color: var(--lh-blue-800); text-decoration: none; }
.lh-menu-single.active { background: var(--lh-blue-600); color: #fff; border-left-color: var(--lh-blue-800); }
.lh-menu-single.active .lh-gicon { color: #fff; }
.lh-caret { color: var(--lh-blue-400); font-size: 11px; transition: transform .2s; }
.lh-menu-title[aria-expanded="true"] .lh-caret { transform: rotate(180deg); }
.lh-menu-desc { font-size: 11px; color: var(--lh-muted); padding: 8px 12px 4px; line-height: 1.5; }

.lh-menu-item {
    display: flex; align-items: center;
    padding: 7px 12px; border-radius: var(--lh-radius-sm);
    color: var(--lh-text); font-size: 13px; margin-top: 2px;
    transition: background .18s, color .18s;
}
.lh-menu-item span.lh-title-text {
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lh-menu-item:hover { background: var(--lh-blue-50); color: var(--lh-blue-700); }
.lh-menu-item.active {
    background: linear-gradient(90deg, var(--lh-blue-600), var(--lh-blue-500));
    color: #fff; box-shadow: 0 4px 12px rgba(31, 122, 224, .22);
}
.lh-menu-item.active .lh-dot { background: rgba(255, 255, 255, .22); color: #fff; }
.lh-dot {
    display: inline-flex; align-items: center; justify-content: center;
    flex: 0 0 22px; width: 22px; height: 22px; border-radius: 6px;
    background: var(--lh-blue-50); color: var(--lh-blue-700);
    font-size: 11px; margin-right: 8px;
}

.lh-sidebar-backdrop {
    display: none; position: fixed; inset: 0; z-index: 1025;
    background: rgba(11, 45, 92, .38); backdrop-filter: blur(1px);
}
.lh-sidebar-backdrop.show { display: block; }

/* ---------- 5. 卡片与内容区 ---------- */
.lh-main {
    margin-left: var(--lh-side-w);
    padding: 18px 22px 40px;
    min-width: 0;
}

.lh-card {
    background: var(--lh-white);
    border: 1px solid var(--lh-line);
    border-radius: var(--lh-radius);
    margin-bottom: 16px;
    box-shadow: var(--lh-shadow);
    overflow: hidden;
}
.lh-card-head {
    padding: 12px 16px;
    border-bottom: 1px solid var(--lh-line-soft);
    background: linear-gradient(180deg, #fbfdff, #fff);
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    flex-wrap: wrap;
}
.lh-card-head h5 {
    margin: 0; font-size: 15px; color: var(--lh-blue-800); font-weight: 700;
    display: flex; align-items: center; gap: 8px;
}
.lh-card-head h5::before {
    content: ""; width: 4px; height: 15px; border-radius: 3px;
    background: linear-gradient(180deg, var(--lh-blue-500), var(--lh-blue-700));
}
.lh-card-body { padding: 14px 16px; }

.lh-page-title {
    font-size: 20px; font-weight: 700; color: var(--lh-blue-800);
    margin: 2px 0 16px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px;
}
.lh-page-title small { font-size: 12px; color: var(--lh-muted); font-weight: 400; }

/* ---------- 6. KPI ---------- */
.lh-kpi {
    background: var(--lh-white);
    border: 1px solid var(--lh-line);
    border-radius: var(--lh-radius);
    padding: 13px 14px;
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 16px; height: 100%;
    box-shadow: var(--lh-shadow);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.lh-kpi:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(31, 122, 224, .16);
    border-color: var(--lh-blue-300);
}
.lh-kpi .kpi-icon {
    width: 42px; height: 42px; flex: 0 0 42px;
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 17px; font-weight: 700;
    box-shadow: 0 4px 10px rgba(11, 45, 92, .18);
}
.lh-kpi .kpi-num {
    font-size: 20px; font-weight: 700; color: var(--lh-blue-800);
    line-height: 1.25; word-break: break-all;
}
.lh-kpi .kpi-label { font-size: 12px; color: var(--lh-muted); line-height: 1.4; }
.lh-kpi a, a.text-reset:hover { text-decoration: none; color: inherit; }

/* ---------- 7. 表格 ---------- */
.lh-table { width: 100%; font-size: 13px; }
.lh-table thead th {
    background: var(--lh-blue-50); color: var(--lh-blue-800); font-weight: 600;
    border-bottom: 1px solid var(--lh-line);
    border-top: 0; white-space: nowrap; padding: 9px 10px;
    position: sticky; top: 0; z-index: 1;
}
.lh-table td {
    padding: 8px 10px; border-bottom: 1px solid var(--lh-line-soft);
    vertical-align: middle;
}
.lh-table tbody tr:hover { background: var(--lh-blue-50); }
.lh-table tbody tr:nth-child(even) { background: #fbfdff; }
.lh-table tbody tr:nth-child(even):hover { background: var(--lh-blue-50); }
.lh-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-sm td, .table-sm th { padding: .4rem .55rem; }

.badge { font-weight: 500; padding: .34em .6em; border-radius: 6px; }
.lh-expire-soon { color: var(--lh-amber); font-weight: 600; }
.lh-expire-over { color: var(--lh-red); font-weight: 600; }

/* ---------- 8. 表单与工具条 ---------- */
.lh-form .form-group { margin-bottom: 14px; }
.lh-form label { font-size: 13px; color: var(--lh-text); font-weight: 600; }
.lh-form .form-control, .lh-form select, .lh-form textarea { font-size: 13px; border-color: #d9e3f0; }
.form-control:focus, .custom-select:focus {
    border-color: var(--lh-blue-400);
    box-shadow: 0 0 0 .15rem rgba(31, 122, 224, .18);
}
.lh-req { color: var(--lh-red); margin-left: 2px; }
.lh-help { font-size: 11px; color: var(--lh-muted); margin-top: 3px; }
/* 键值信息（项目概况等） */
.lh-kv { display: flex; flex-direction: column; gap: 2px; }
.lh-kv-label { font-size: 12px; color: var(--lh-muted); }
.lh-kv-value { font-size: 14px; color: var(--lh-text); font-weight: 600; word-break: break-all; }
/* 只读小标签（列表中的多值展示） */
.lh-chip {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 8px; margin: 2px 4px 2px 0; border-radius: 10px;
    background: var(--lh-blue-50); color: var(--lh-blue-700);
    font-size: 12px; line-height: 18px; border: 1px solid var(--lh-blue-100);
}
.lh-chip .fa { font-size: 11px; }

.lh-toolbar {
    background: var(--lh-white); border: 1px solid var(--lh-line);
    border-radius: var(--lh-radius); padding: 12px 14px; margin-bottom: 14px;
    box-shadow: var(--lh-shadow);
}
.lh-toolbar .form-control, .lh-toolbar select { font-size: 13px; height: 34px; padding: 3px 10px; border-color: #d9e3f0; }
.lh-toolbar .btn { font-size: 13px; padding: 5px 14px; border-radius: var(--lh-radius-sm); }

/* 按钮（借鉴 HLT：扁平 + 渐变 + 悬浮上移） */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    padding: 5px 15px;
    border: 1px solid #d9d9d9; border-radius: 6px;
    background: #fff; color: #333;
    font-size: 13px; line-height: 1.5;
    white-space: nowrap;
    cursor: pointer;
    transition: all .25s cubic-bezier(.4, 0, .2, 1);
}
.btn:hover {
    border-color: var(--lh-blue-500); color: var(--lh-blue-600);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(31, 122, 224, .18);
}
.btn:focus { outline: none; box-shadow: 0 0 0 3px rgba(31, 122, 224, .14); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 3px 11px; font-size: 12.5px; border-radius: 5px; }
.btn-lg { padding: 9px 26px; font-size: 15px; }
.btn-primary {
    background: linear-gradient(135deg, var(--lh-blue-500) 0%, var(--lh-blue-700) 100%);
    border-color: var(--lh-blue-600); color: #fff;
    box-shadow: 0 2px 6px rgba(31, 122, 224, .3);
}
.btn-primary:hover, .btn-primary:focus {
    background: linear-gradient(135deg, var(--lh-blue-400) 0%, var(--lh-blue-600) 100%);
    border-color: var(--lh-blue-500); color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(31, 122, 224, .38);
}
.btn-success {
    background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
    border-color: #52c41a; color: #fff;
    box-shadow: 0 2px 6px rgba(82, 196, 26, .3);
}
.btn-success:hover { background: linear-gradient(135deg, #73d13d 0%, #52c41a 100%); border-color: #73d13d; color: #fff; }
.btn-warning {
    background: linear-gradient(135deg, #faad14 0%, #d48806 100%);
    border-color: #faad14; color: #fff;
    box-shadow: 0 2px 6px rgba(250, 173, 20, .3);
}
.btn-warning:hover { background: linear-gradient(135deg, #ffc53d 0%, #faad14 100%); border-color: #ffc53d; color: #fff; }
.btn-danger {
    background: linear-gradient(135deg, #ff4d4f 0%, #cf1322 100%);
    border-color: #ff4d4f; color: #fff;
    box-shadow: 0 2px 6px rgba(255, 77, 79, .3);
}
.btn-danger:hover { background: linear-gradient(135deg, #ff7875 0%, #ff4d4f 100%); border-color: #ff7875; color: #fff; }
.btn-info {
    background: linear-gradient(135deg, #36cfc9 0%, #08979c 100%);
    border-color: #13c2c2; color: #fff;
    box-shadow: 0 2px 6px rgba(19, 194, 194, .3);
}
.btn-info:hover { background: linear-gradient(135deg, #5cdbd3 0%, #13c2c2 100%); border-color: #36cfc9; color: #fff; }
.btn-default { background: #fff; border-color: #d9d9d9; }
.btn-outline-primary { color: var(--lh-blue-600); border-color: var(--lh-blue-300); background: #fff; }
.btn-outline-primary:hover { background: var(--lh-blue-600); border-color: var(--lh-blue-600); color: #fff; }
.btn-outline-secondary { color: #666; border-color: #d9d9d9; background: #fff; }
.btn-outline-secondary:hover { color: var(--lh-blue-600); border-color: var(--lh-blue-500); background: #fff; }
.btn-outline-danger { color: var(--lh-red); border-color: #ffc9c9; background: #fff; }
.btn-outline-danger:hover { background: var(--lh-red); border-color: var(--lh-red); color: #fff; }
.btn-outline-info { color: #13c2c2; border-color: #87e8de; background: #fff; }
.btn-outline-info:hover { background: #13c2c2; border-color: #13c2c2; color: #fff; }
.btn-light { background: #f4f7fb; border-color: #dfe8f3; color: #555; }
.btn-light:hover { background: #fff; border-color: var(--lh-blue-300); color: var(--lh-blue-600); }

.alert { border: 0; border-radius: var(--lh-radius-sm); box-shadow: var(--lh-shadow); }
.alert-success { background: #eafaf6; color: #0f7a6f; border-left: 4px solid var(--lh-teal); }
.alert-danger  { background: #fdeeee; color: #b33939; border-left: 4px solid var(--lh-red); }
.alert-info    { background: var(--lh-blue-50); color: var(--lh-blue-700); border-left: 4px solid var(--lh-blue-500); }
.alert-warning { background: #fff6e6; color: #a86b09; border-left: 4px solid var(--lh-amber); }

.pagination { margin-bottom: 0; flex-wrap: wrap; }
.page-link { color: var(--lh-blue-600); border-color: var(--lh-line); border-radius: 6px !important; margin: 0 2px; }
.page-item.active .page-link { background: var(--lh-blue-600); border-color: var(--lh-blue-600); }

/* ---------- 9. 图表与地图 ---------- */
.lh-chart-box { position: relative; width: 100%; }
.lh-chart-box canvas { max-width: 100%; }

.lh-map-box {
    position: relative; width: 100%; height: clamp(320px, 52vh, 560px);
    background: linear-gradient(180deg, #eaf3fb, #dfeaf6);
    border: 1px solid var(--lh-line); border-radius: var(--lh-radius);
    overflow: hidden;
}
.lh-map-ship { cursor: pointer; }
.lh-map-tip {
    position: absolute; background: #fff; border: 1px solid var(--lh-line);
    border-radius: var(--lh-radius-sm); padding: 7px 10px; font-size: 12px;
    box-shadow: var(--lh-shadow-lg); display: none; z-index: 5; max-width: 240px;
}

/* ---------- 10. 登录 ---------- */
.lh-login-bg {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 24px 16px;
    background:
        radial-gradient(900px 420px at 12% 8%, rgba(74, 155, 234, .55), transparent 60%),
        radial-gradient(700px 380px at 88% 92%, rgba(18, 148, 139, .35), transparent 60%),
        linear-gradient(135deg, var(--lh-navy) 0%, var(--lh-blue-700) 55%, var(--lh-blue-500) 100%);
}
.lh-login-box {
    width: 100%; max-width: 400px;
    background: #fff; border-radius: 16px; padding: 30px 28px;
    box-shadow: var(--lh-shadow-lg);
}
.lh-login-box h4 { color: var(--lh-blue-800); font-weight: 700; margin-bottom: 6px; font-size: 20px; }
.lh-login-box .lh-tip { font-size: 12px; color: var(--lh-muted); margin-bottom: 20px; line-height: 1.7; }
.lh-login-box .form-control { height: 42px; border-color: #dbe6f2; }
.lh-login-box .btn-primary { height: 42px; font-weight: 600; }

/* ---------- 11. 页脚与其它 ---------- */
.lh-footer {
    color: var(--lh-muted); font-size: 12px; padding: 18px 0 4px;
    border-top: 1px solid var(--lh-line-soft); margin-top: 20px; line-height: 1.7;
}
.lh-empty { padding: 44px 20px; text-align: center; color: var(--lh-muted); }
.lh-progress { height: 8px; border-radius: 6px; background: var(--lh-line-soft); overflow: hidden; }
.lh-progress > div {
    height: 100%;
    background: linear-gradient(90deg, var(--lh-blue-500), var(--lh-blue-400));
}
.lh-divider { height: 1px; background: var(--lh-line-soft); margin: 14px 0; }
.lh-tag {
    display: inline-block; padding: 2px 10px; border-radius: 999px;
    background: var(--lh-blue-50); color: var(--lh-blue-700); font-size: 12px;
    border: 1px solid var(--lh-blue-100);
    white-space: nowrap;
}
a.lh-tag:hover { background: var(--lh-blue-600); color: #fff; border-color: var(--lh-blue-600); }
.lh-ability { font-size: 12px; color: var(--lh-muted); }

/* 能力导航小卡 */
.lh-ability-card {
    background: linear-gradient(180deg, #fbfdff, #f4f8fd);
    border: 1px solid var(--lh-line);
    border-radius: var(--lh-radius-sm);
    padding: 12px 14px; height: 100%;
    transition: border-color .18s, box-shadow .18s;
}
.lh-ability-card:hover { border-color: var(--lh-blue-300); box-shadow: var(--lh-shadow); }
.lh-ability-card .lh-ac-title { font-weight: 700; color: var(--lh-blue-800); font-size: 14px; }

/* ---------- 12. 响应式 ---------- */

/* 大屏：更宽的内容区 */
@media (min-width: 1440px) {
    .lh-main { padding: 22px 30px 48px; }
}

/* 平板 / 小笔记本：收窄侧栏 */
@media (max-width: 1199.98px) {
    :root { --lh-side-w: 200px; }
}

/* 平板竖屏及以下：侧栏改为抽屉 */
@media (max-width: 991.98px) {
    .lh-nav-toggle { display: inline-block; }
    .lh-sidebar {
        transform: translateX(-100%);
        box-shadow: none;
        width: 260px;
    }
    .lh-sidebar.open {
        transform: translateX(0);
        box-shadow: 6px 0 26px rgba(11, 45, 92, .22);
    }
    .lh-main { margin-left: 0; padding: 16px 16px 40px; }
    .lh-topbar .lh-sub,
    .lh-topbar .lh-date { display: none; }
}

/* 手机横屏 / 小平板 */
@media (max-width: 767.98px) {
    body.lh-body { font-size: 13.5px; }
    .lh-page-title { font-size: 17px; margin-bottom: 12px; }
    .lh-card-head { padding: 10px 12px; }
    .lh-card-body { padding: 12px; }
    .lh-toolbar { padding: 10px; }
    .lh-toolbar .form-row > .form-group { margin-bottom: 8px; }
    .lh-toolbar .form-control, .lh-toolbar select { width: 100%; }
    .lh-toolbar .btn { width: 100%; margin-bottom: 6px; }
    .lh-toolbar .form-group.mb-0.ml-auto { margin-left: 0 !important; width: 100%; }
    .lh-kpi { padding: 11px 12px; gap: 10px; }
    .lh-kpi .kpi-icon { width: 36px; height: 36px; flex-basis: 36px; font-size: 15px; }
    .lh-kpi .kpi-num { font-size: 17px; }
    /* 表格转卡片式阅读（超小屏不挤压） */
    .lh-table { font-size: 12.5px; min-width: 640px; }
    .lh-table-wrap { border-radius: 0 0 var(--lh-radius) var(--lh-radius); }
    .lh-login-box { padding: 24px 20px; }
    .lh-footer { text-align: center; }
}

/* 手机竖屏 */
@media (max-width: 575.98px) {
    .lh-brand { font-size: 14px; }
    .lh-logo { padding: 1px 6px; }
    .lh-topbar { padding: 0 8px 0 6px; }
    .lh-topbar .nav-link { padding-left: .4rem; padding-right: .4rem; font-size: 12px; }
    .lh-main { padding: 12px 10px 32px; }
    .lh-card { margin-bottom: 12px; border-radius: 10px; }
    .lh-kpi { margin-bottom: 12px; }
    .lh-kpi .kpi-num { font-size: 16px; }
    .lh-kpi .kpi-label { font-size: 11px; }
    .lh-map-box { height: 300px; }
    .lh-page-title small { display: none; }
    .btn { padding: .4rem .7rem; font-size: 13px; }
    .lh-toolbar .btn { width: 100%; }
}

/* 打印 */
@media print {
    .lh-topbar, .lh-sidebar, .lh-toolbar, .lh-footer { display: none !important; }
    .lh-main { margin-left: 0; padding: 0; }
    .lh-card { box-shadow: none; break-inside: avoid; }
}

/* ==========================================================
   13. HLT 风格覆写（借鉴和利通：白顶栏 + 深色侧栏 + 渐变登录页）
   ========================================================== */

/* ---------- 动画 ---------- */
@keyframes lh-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}
@keyframes lh-fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- 顶栏：白底 ---------- */
.lh-topbar {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 21, 41, .08);
}
.lh-topbar .navbar-brand,
.lh-topbar .nav-link { color: #333; }
.lh-brand { color: #333 !important; }
.lh-logo {
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    border: 0;
    box-shadow: 0 2px 8px rgba(24, 144, 255, .4);
}
.lh-sub { color: #999 !important; }
.lh-date { color: #666 !important; }
.lh-topbar .dropdown-toggle small { color: #999 !important; }
.lh-topbar .dropdown-toggle { color: #333 !important; }
.lh-topbar .nav-link:hover { color: #1890ff; }
.lh-avatar {
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    border: 0;
    box-shadow: 0 2px 6px rgba(24, 144, 255, .35);
}
.lh-user-info {
    display: flex; align-items: center;
    padding: 4px 12px !important; border-radius: 20px;
    background: #f0f2f5; transition: background .2s;
}
.lh-user-info:hover { background: #e6f7ff; }

/* 汉堡按钮：白底深色 */
.lh-nav-toggle {
    display: inline-block;
    border: 1px solid #e8e8e8; background: transparent; color: #666;
}
.lh-nav-toggle:hover { background: #f5f5f5; color: #1890ff; }
.lh-nav-toggle .bar { background: #666; }

/* ---------- 侧栏：深海军蓝 ---------- */
.lh-sidebar {
    background: linear-gradient(180deg, #001529 0%, #002140 100%);
    border-right: 0;
}
.lh-menu-title {
    background: transparent;
    color: rgba(255, 255, 255, .9);
    border-left: 3px solid transparent;
}
.lh-menu-title:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.lh-menu-title.collapsed { border-left-color: transparent; color: rgba(255, 255, 255, .55); }
.lh-menu-single {
    background: transparent;
    color: rgba(255, 255, 255, .9);
    border-left: 3px solid transparent;
}
.lh-menu-single:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.lh-menu-single.active {
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    color: #fff;
}
.lh-menu-single.active .lh-gicon { color: #fff; }
.lh-menu-title-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lh-gicon { font-size: 15px; width: 20px; text-align: center; color: #4a9bea; }
.lh-menu-title[aria-expanded="true"] .lh-gicon { color: #fff; }
.lh-caret { color: rgba(255, 255, 255, .45); font-size: 13px; }
.lh-menu-title[aria-expanded="true"] .lh-caret { transform: rotate(-90deg); }
.lh-menu-desc { color: rgba(255, 255, 255, .38); }
.lh-menu-item { color: rgba(255, 255, 255, .65); }
.lh-menu-item:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.lh-menu-item.active {
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    color: #fff;
}
.lh-dot {
    background: rgba(255, 255, 255, .12); color: #fff;
    font-weight: 600;
}
.lh-menu-item.active .lh-dot { background: rgba(255, 255, 255, .22); color: #fff; }

/* ---------- 菜单层次感：二级菜单缩进 + 竖向引导线 ---------- */
.lh-menu-group { margin-bottom: 6px; }
.lh-menu-group .collapse > .nav {
    padding-left: 30px;
    margin-top: 6px;
    margin-bottom: 10px;
    position: relative;
}
.lh-menu-group .collapse > .nav::before {
    content: '';
    position: absolute;
    left: 15px; top: 4px; bottom: 8px;
    width: 2px; border-radius: 1px;
    background: rgba(255, 255, 255, .14);
}
/* 二级：更小字号、更淡颜色、去掉图标底色，与一级明显区分 */
.lh-menu-group .collapse .lh-menu-item {
    padding-left: 11px;
    font-size: 12.5px;
    font-weight: 400;
    color: rgba(255, 255, 255, .58);
}
.lh-menu-group .collapse .lh-menu-item:hover { color: #fff; }
.lh-menu-group .collapse .lh-dot {
    flex: 0 0 18px; width: 18px; height: 18px;
    font-size: 9px;
    background: transparent;
    color: rgba(255, 255, 255, .45);
    border-radius: 4px;
    margin-right: 7px;
}
.lh-menu-group .collapse .lh-menu-item:hover .lh-dot { color: #4a9bea; }
.lh-menu-group .collapse .lh-menu-item.active {
    color: #fff;
    font-weight: 600;
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
}
.lh-menu-group .collapse .lh-menu-item.active .lh-dot {
    background: rgba(255, 255, 255, .22); color: #fff;
}
/* 一级：展开时高亮强化 */
.lh-menu-title {
    font-size: 13.5px;
    letter-spacing: .5px;
}

/* ---------- 桌面端汉堡收起侧栏 ---------- */
.lh-sidebar.lh-collapsed { width: 64px; }
.lh-sidebar.lh-collapsed .lh-menu-title-left span,
.lh-sidebar.lh-collapsed .lh-caret,
.lh-sidebar.lh-collapsed .lh-menu-desc,
.lh-sidebar.lh-collapsed .lh-title-text,
.lh-sidebar.lh-collapsed .collapse { display: none !important; }
.lh-sidebar.lh-collapsed .lh-menu-title,
.lh-sidebar.lh-collapsed .lh-menu-item { justify-content: center; padding-left: 0; padding-right: 0; }
.lh-sidebar.lh-collapsed .lh-menu-title-left { justify-content: center; }
.lh-sidebar.lh-collapsed .lh-dot { margin-right: 0; }
.lh-main.lh-expanded { margin-left: 64px; }

/* ---------- 登录页：紫色渐变（HLT 风格） ---------- */
.lh-login-body {
    margin: 0;
    font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.lh-login-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    position: relative;
    overflow: hidden;
}
.lh-login-bg::before {
    content: ''; position: absolute;
    width: 300px; height: 300px; border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    top: -50px; right: -50px;
    animation: lh-pulse 4s infinite;
}
.lh-login-bg::after {
    content: ''; position: absolute;
    width: 200px; height: 200px; border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    bottom: -30px; left: -30px;
    animation: lh-pulse 3s infinite 1s;
}
.lh-login-box {
    max-width: 372px;
    padding: 42px 34px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
    animation: lh-fade-in-up .6s ease-out;
    position: relative;
    z-index: 1;
}
.lh-login-header { text-align: center; margin-bottom: 30px; }
.lh-login-logo {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    color: #fff; font-weight: bold; font-size: 20px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 8px 24px rgba(24, 144, 255, .4);
}
.lh-login-header h1 {
    font-size: 22px; color: #333; margin-bottom: 8px; font-weight: 700;
}
.lh-login-header p { font-size: 13px; color: #999; margin-bottom: 0; }
.lh-login-form .lh-login-group { margin-bottom: 20px; }
.lh-login-form label {
    display: block; font-size: 13px; color: #666; font-weight: 500; margin-bottom: 8px;
}
/* 输入框 / 滑块 / 登录按钮统一宽度与高度，视觉对齐 */
.lh-login-box, .lh-login-box * { box-sizing: border-box; }
.lh-login-form .form-control {
    display: block; width: 100%;
    height: 44px; padding: 0 15px; line-height: 42px;
    border: 1px solid #d9d9d9; border-radius: 8px;
    font-size: 14px; color: #333; background: #fff;
    box-shadow: none; outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.lh-login-form .form-control:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 3px rgba(24, 144, 255, .15);
}
.lh-login-form .slider-track { height: 44px; border-radius: 22px; }
.lh-login-btn {
    display: block; width: 100%;
    height: 44px; padding: 0; line-height: 44px;
    font-size: 15px; font-weight: 600; letter-spacing: 2px;
    border-radius: 8px;
    color: #fff !important;
    box-shadow: none !important;
}
.lh-login-btn i { color: #fff; }
.lh-login-btn:disabled, .lh-login-btn:disabled:hover {
    color: rgba(255, 255, 255, .75);
    background: linear-gradient(180deg, var(--lh-blue-500), var(--lh-blue-600));
    opacity: .55;
}
.lh-login-box .alert { width: 100%; }
.lh-login-tip {
    text-align: center; margin-top: 20px;
    font-size: 12px; color: #bbb; line-height: 1.7;
}

/* ---------- 菜单项 FA 小图标 ---------- */
.lh-dot .fa { font-size: 12px; line-height: 1; }

/* ---------- HLT 风格弹窗（遮罩 + 居中卡片） ---------- */
.lh-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, .45);
    z-index: 9998;
    display: flex; align-items: center; justify-content: center;
}
.lh-modal-box {
    background: #fff; border-radius: 12px;
    min-width: 420px; max-width: 880px;
    max-height: 88vh; overflow: auto;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .22);
    animation: lh-fade-in-up .25s ease-out;
}
.lh-modal-header {
    padding: 15px 22px;
    border-bottom: 1px solid #f0f0f0;
    display: flex; justify-content: space-between; align-items: center;
}
.lh-modal-title { font-size: 15px; font-weight: 600; color: #333; }
.lh-modal-close {
    background: none; border: none;
    font-size: 20px; color: #999; cursor: pointer;
    padding: 2px 9px; border-radius: 4px;
    transition: all .2s; line-height: 1.4;
}
.lh-modal-close:hover { background: #f5f5f5; color: #333; }
.lh-modal-body { padding: 20px 22px; font-size: 13.5px; color: #555; line-height: 1.7; }
.lh-modal-footer {
    padding: 12px 22px 16px;
    display: flex; justify-content: flex-end; gap: 8px;
}
.lh-badge-num {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 17px; height: 17px; padding: 0 4px; margin-left: 4px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .88); color: #333;
    font-size: 11px; font-weight: 700; line-height: 1;
}

/* ---------- 船舶档案列表图片 ---------- */.lh-vessel-thumb {
    display: block;
    width: 96px; height: 64px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--lh-line);
    box-shadow: 0 1px 4px rgba(11, 45, 92, .12);
    background: #fff;
}
.lh-vessel-thumb-empty {
    display: flex; align-items: center; justify-content: center;
    color: #b9cbe2; font-size: 22px;
    background: linear-gradient(135deg, #f2f7fd, #e8f1fb);
}
table td .lh-vessel-thumb { margin: 2px 0; }

/* ---------- 登录滑块安全验证（HLT 风格） ---------- */
.slider-captcha { user-select: none; -webkit-user-select: none; }
.slider-track {
    position: relative; width: 100%; height: 44px;
    background: #f0f2f5; border-radius: 22px;
    border: 1px solid #e4e7ed; overflow: hidden;
    transition: border-color .3s;
}
.slider-progress {
    position: absolute; left: 0; top: 0; height: 100%; width: 0;
    background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
    border-radius: 22px 0 0 22px;
    transition: width .1s ease-out;
}
.slider-text {
    position: absolute; left: 0; top: 0; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; color: #999; pointer-events: none;
    transition: opacity .3s;
}
.slider-track.success .slider-text { color: #fff; z-index: 2; }
.slider-track.success .slider-progress { width: 100% !important; border-radius: 22px; }
.slider-handle {
    position: absolute; left: 0; top: 0;
    width: 44px; height: 44px;
    background: #fff; border: 1px solid #d9d9d9; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: grab; font-size: 18px; color: #1890ff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
    z-index: 3;
    transition: transform .1s ease-out, border-color .3s, color .3s;
}
.slider-handle:hover { border-color: #1890ff; }
.slider-handle:active { cursor: grabbing; }
.slider-track.success .slider-handle { border-color: #52c41a; color: #52c41a; }
.slider-track.success .slider-handle .fa-angle-double-right { display: none; }
.slider-track.success .slider-handle::after {
    content: '\f00c'; font-family: FontAwesome; font-size: 16px;
}
.slider-track.error { animation: slider-shake .4s ease-out; }
.slider-track.error .slider-progress {
    background: linear-gradient(135deg, #ff4d4f 0%, #cf1322 100%);
}
@keyframes slider-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}
#loginBtn:disabled { opacity: .6; cursor: not-allowed; }

/* ---------- 标题与终端适配 ---------- */
.lh-brand { max-width: 60vw; overflow: hidden; text-overflow: ellipsis; }
.lh-topbar .lh-sub { font-size: 12px; }

/* 平板：标题略缩 */
@media (max-width: 1199.98px) {
    .lh-brand { font-size: 15px; max-width: 52vw; }
}

/* 手机：标题一行省略，登录卡片收紧 */
@media (max-width: 767.98px) {
    .lh-brand { font-size: 13px; max-width: 46vw; }
    .lh-login-box { padding: 32px 22px; }
    .lh-login-header h1 { font-size: 18px; }
    .lh-login-header p { font-size: 12px; }
}

/* 手机竖屏：进一步压缩 */
@media (max-width: 374.98px) {
    .lh-brand { font-size: 12px; max-width: 42vw; }
    .lh-login-header h1 { font-size: 16px; }
}

/* ---------- 输入式标签多选控件 ---------- */
.lh-tags-select { position: relative; }
.lh-ts-box {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 6px 10px;
    background: #fff;
    border: 1px solid #dce3ec;
    border-radius: 10px;
    cursor: text;
    transition: border-color .15s, box-shadow .15s;
}
.lh-ts-box:focus-within {
    border-color: #1f7ae0;
    box-shadow: 0 0 0 3px rgba(31, 122, 224, .1);
}
.lh-ts-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    background: #e8f1fd;
    border: 1px solid #bcd7f7;
    border-radius: 999px;
    color: #1d5db4;
    font-size: 13px;
    line-height: 1.5;
    white-space: nowrap;
}
.lh-ts-chip .lh-ts-x {
    cursor: pointer;
    color: #6f9bd1;
    font-style: normal;
    font-size: 14px;
    line-height: 1;
    transition: color .15s;
}
.lh-ts-chip .lh-ts-x:hover { color: #d64545; }
.lh-ts-input {
    flex: 1;
    min-width: 120px;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 4px 2px;
    font-size: 13px;
    background: transparent;
}
.lh-ts-menu {
    position: absolute;
    left: 0; right: 0; top: calc(100% + 4px);
    background: #fff;
    border: 1px solid #dce3ec;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(16, 42, 82, .12);
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    padding: 4px;
}
.lh-ts-opt {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    color: #33475e;
    cursor: pointer;
}
.lh-ts-opt:hover, .lh-ts-opt.hover { background: #e8f1fd; color: #1d5db4; }

/* ---------- HLT 风格整体重构（页面头部 / 筛选条 / 数据表 / 空状态） ---------- */
.lh-main { background: #f0f2f5; padding: 22px 24px 40px; }

/* 页面头部：标题 + 按钮排一行 */
.lh-page-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 22px;
    animation: lhFadeInUp .45s ease-out;
}
@keyframes lhFadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.lh-page-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.lh-page-title > i { color: #1890ff; font-size: 20px; }
.lh-page-title small { font-size: 12px; color: #999; font-weight: 400; }
.lh-page-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* 筛选条：独立白色圆角卡片 */
.lh-toolbar {
    background: #fff;
    padding: 18px 22px;
    border-radius: 12px;
    margin-bottom: 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    border: 1px solid rgba(0,0,0,.03);
    animation: lhFadeInUp .4s ease-out;
}
.lh-filter-form {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.lh-filter-form .form-control {
    width: auto;
    min-width: 170px;
    height: 38px;
    padding: 6px 12px;
    font-size: 13.5px;
    border-color: #d9d9d9;
    border-radius: 6px;
}
.lh-filter-form .form-control:hover { border-color: #40a9ff; }
.lh-filter-form .form-control:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 3px rgba(24,144,255,.12);
}
.lh-filter-form select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23999'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}

/* 数据卡片：大圆角 + 柔和阴影 + 悬停加深 */
.lh-card {
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.03);
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: box-shadow .3s;
}
.lh-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.1); }
.lh-card-head {
    background: #fafafa;
    padding: 14px 22px;
    border-bottom: 1px solid #f0f0f0;
}

/* 表格：HLT 渐变表头 + 图标 + 行悬浮 */
.lh-table thead th {
    background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
    color: #666;
    font-weight: 600;
    font-size: 13px;
    padding: 13px 16px;
    border-bottom: 2px solid #e8e8e8;
}
.lh-table thead th i { color: #8fa3b8; margin-right: 5px; font-size: 12px; }
.lh-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
}
.lh-table tbody tr:nth-child(even) { background: transparent; }
.lh-table tbody tr { transition: background .2s; }
.lh-table tbody tr:hover { background: #e6f7ff; }
.lh-sort-cell { font-weight: 600; color: #1890ff; width: 60px; }

/* 空状态：大图标 + 文案 */
.lh-empty {
    text-align: center;
    padding: 56px 24px;
    color: #999;
}
.lh-empty i {
    font-size: 52px;
    color: #d9d9d9;
    margin-bottom: 14px;
    display: block;
}
.lh-empty p { font-size: 14px; color: #999; margin: 0; }

/* 顶部按钮统一 HLT 色系（覆盖旧的渐变按钮） */
.btn-primary {
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    border-color: #1890ff;
    color: #fff;
    box-shadow: 0 2px 6px rgba(24,144,255,.3);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #40a9ff 0%, #1890ff 100%);
    border-color: #40a9ff; color: #fff;
    box-shadow: 0 4px 12px rgba(24,144,255,.4);
}
.btn-success {
    background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
    border-color: #52c41a; color: #fff;
    box-shadow: 0 2px 6px rgba(82,196,26,.3);
}
.btn-success:hover {
    background: linear-gradient(135deg, #73d13d 0%, #52c41a 100%);
    border-color: #73d13d; color: #fff;
    box-shadow: 0 4px 12px rgba(82,196,26,.4);
}
.btn-warning {
    background: linear-gradient(135deg, #faad14 0%, #d48806 100%);
    border-color: #faad14; color: #fff;
}
.btn-warning:hover {
    background: linear-gradient(135deg, #ffc53d 0%, #faad14 100%);
    border-color: #ffc53d; color: #fff;
}
.btn-info {
    background: linear-gradient(135deg, #13c2c2 0%, #08979c 100%);
    border-color: #13c2c2; color: #fff;
}
.btn-info:hover {
    background: linear-gradient(135deg, #36cfc9 0%, #13c2c2 100%);
    border-color: #36cfc9; color: #fff;
}
.btn-danger {
    background: linear-gradient(135deg, #ff4d4f 0%, #cf1322 100%);
    border-color: #ff4d4f; color: #fff;
    box-shadow: 0 2px 6px rgba(255,77,79,.3);
}
.btn-danger:hover {
    background: linear-gradient(135deg, #ff7875 0%, #ff4d4f 100%);
    border-color: #ff7875; color: #fff;
    box-shadow: 0 4px 12px rgba(255,77,79,.4);
}
.btn-default { background: #fff; border-color: #d9d9d9; color: #333; }
.btn-default:hover { border-color: #1890ff; color: #1890ff; }

/* 状态徽章改为 HLT 浅底描边风格 */
.badge { font-weight: 500; padding: 3px 10px; border-radius: 4px; font-size: 12px; white-space: nowrap; display: inline-block; line-height: 1.5; }
.badge-light { background: #f5f7fa; color: #8898a9; border: 1px solid #e2e8f0; }
.badge-success, .badge-primary { background: #f6ffed; color: #52c41a; border: 1px solid #b7eb8f; }
.badge-info    { background: #e6f7ff; color: #1890ff; border: 1px solid #91d5ff; }
.badge-warning { background: #fff7e6; color: #fa8c16; border: 1px solid #ffd591; }
.badge-danger  { background: #fff1f0; color: #ff4d4f; border: 1px solid #ffa39e; }
.badge-secondary { background: #f0f0f0; color: #666; border: 1px solid #d9d9d9; }

/* 表单整体（弹窗/表单页同步 HLT） */
.form-control {
    border-color: #d9d9d9;
    border-radius: 6px;
    transition: all .25s cubic-bezier(.4,0,.2,1);
}
.form-control:hover { border-color: #40a9ff; }
.form-control:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 3px rgba(24,144,255,.12);
}
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23999'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .lh-main { padding: 14px; }
    .lh-page-title { font-size: 18px; }
    .lh-page-header { gap: 10px; }
    .lh-filter-form .form-control { min-width: 0; flex: 1 1 45%; }
}

/* ---------- 美化文件上传控件 ---------- */
.lh-file input[type=file] {
    position: absolute;
    left: -9999px;
    width: 1px; height: 1px;
    opacity: 0;
}
.lh-file-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: #e8f1fd;
    border: 1px dashed #91caff;
    border-radius: 8px;
    color: #1d5db4;
    font-size: 13px;
    cursor: pointer;
    transition: all .2s;
    user-select: none;
}
.lh-file-btn:hover {
    background: #d6e8fc;
    border-color: #1890ff;
    color: #096dd9;
}
.lh-file-name {
    margin-left: 10px;
    color: #8fa3b8;
    font-size: 12.5px;
}
.lh-file-raw {
    position: absolute;
    left: -9999px;
    width: 1px; height: 1px;
    opacity: 0;
}

/* ---------- 登录页错误提示美化 ---------- */
.lh-login-box .alert {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    margin: 0 0 18px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
    animation: lhShake .4s;
}
.lh-login-box .alert-danger {
    background: #fff1f0;
    color: #cf1322;
    border: 1px solid #ffccc7;
    border-left: 3px solid #ff4d4f;
}
.lh-login-box .alert-success {
    background: #f6ffed;
    color: #389e0d;
    border: 1px solid #b7eb8f;
    border-left: 3px solid #52c41a;
}
.lh-login-box .alert::before {
    content: '\f071';
    font-family: FontAwesome;
    font-size: 14px;
}
@keyframes lhShake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

/* ---------- 轻量 flash toast（右上角，自动消失） ---------- */
.lh-toast {
    position: fixed; top: 16px; right: 20px; z-index: 1080;
    display: flex; align-items: center; gap: 8px;
    max-width: 360px; padding: 10px 16px;
    border-radius: 8px; font-size: 13px; font-weight: 500;
    background: #fff; color: var(--lh-text);
    border: 1px solid var(--lh-line);
    box-shadow: 0 6px 24px rgba(23, 58, 110, .16);
    animation: lhToastIn .28s cubic-bezier(.21, 1.02, .73, 1) both;
    pointer-events: none;
}
.lh-toast.lh-toast-out { animation: lhToastOut .3s ease both; }
.lh-toast .fa { font-size: 16px; }
.lh-toast-success { border-color: #b7eb8f; background: #f6ffed; color: #389e0d; }
.lh-toast-success .fa { color: #52c41a; }
.lh-toast-danger, .lh-toast-warning { border-color: #ffa39e; background: #fff1f0; color: #cf1322; }
.lh-toast-danger .fa, .lh-toast-warning .fa { color: #ff4d4f; }
.lh-toast-info { border-color: #91d5ff; background: #e6f7ff; color: #0958a8; }
.lh-toast-info .fa { color: #1890ff; }
@keyframes lhToastIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes lhToastOut { to { opacity: 0; transform: translateX(24px); } }
