:root {
  --primary: #1677ff; --primary-h: #4096ff; --primary-a: #0958d9; --primary-bg: #e6f4ff;
  --sider: #001529; --sider-2: #000c17; --bg: #f0f2f5; --card: #fff; --line: #f0f0f0; --line-2: #e5e6eb;
  --text: rgba(0,0,0,.88); --text-2: rgba(0,0,0,.65); --text-3: rgba(0,0,0,.45);
  --success: #52c41a; --warning: #faad14; --danger: #ff4d4f; --radius: 8px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); font-size: 14px; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--primary); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
.muted { color: var(--text-3); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; word-break: break-all; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.c-red { color: #cf1322; } .c-green { color: #389e0d; } .c-orange { color: #d46b08; } .c-blue { color: var(--primary); }

/* ===== 布局 ===== */
.layout { display: flex; min-height: 100vh; }
.sider { width: 220px; flex: none; background: var(--sider); color: rgba(255,255,255,.65); position: fixed; inset: 0 auto 0 0; z-index: 40; display: flex; flex-direction: column; transition: transform .2s; }
.sider-logo { height: 64px; display: flex; align-items: center; padding: 0 16px; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.06); }
.sider-logo img { height: 30px; width: auto; max-width: 100%; }
.menu { flex: 1; overflow-y: auto; padding: 8px 0 16px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.menu-group { font-size: 12px; color: rgba(255,255,255,.35); padding: 14px 24px 6px; letter-spacing: .5px; }
.menu-item { display: flex; align-items: center; gap: 10px; height: 40px; margin: 2px 8px; padding: 0 16px; border-radius: 6px; color: rgba(255,255,255,.72); cursor: pointer; transition: background .15s, color .15s; white-space: nowrap; }
.menu-item:hover { color: #fff; }
.menu-item.active { background: var(--primary); color: #fff; }
.menu-item svg { width: 16px; height: 16px; flex: none; }
.menu-item .badge { margin-left: auto; background: var(--danger); color: #fff; border-radius: 10px; font-size: 11px; padding: 0 6px; line-height: 17px; }
.sider-foot { padding: 12px 20px; font-size: 12px; color: rgba(255,255,255,.3); border-top: 1px solid rgba(255,255,255,.06); }
.main { flex: 1; margin-left: 220px; min-width: 0; display: flex; flex-direction: column; }
.header { height: 56px; background: #fff; display: flex; align-items: center; padding: 0 20px; gap: 12px; box-shadow: 0 1px 4px rgba(0,21,41,.08); position: sticky; top: 0; z-index: 30; }
.hamburger { display: none; }
.crumb { display: flex; align-items: center; gap: 6px; color: var(--text-3); min-width: 0; }
.crumb b { color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.org-switch { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 6px; padding: 0 8px; height: 32px; }
.org-switch select { border: 0; outline: 0; background: transparent; max-width: 170px; }
.hdr-btn { position: relative; height: 36px; min-width: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; cursor: pointer; border: 0; background: none; color: var(--text-2); padding: 0 8px; gap: 6px; }
.hdr-btn:hover { background: rgba(0,0,0,.04); }
.hdr-btn svg { width: 18px; height: 18px; }
.hdr-btn .bdg { position: absolute; top: 3px; right: 2px; background: var(--danger); color: #fff; font-size: 10px; border-radius: 8px; padding: 0 5px; line-height: 15px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; flex: none; }
.user-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown { position: absolute; right: 0; top: 44px; background: #fff; border-radius: 8px; box-shadow: 0 6px 16px rgba(0,0,0,.12); min-width: 180px; padding: 4px; z-index: 50; display: none; }
.dropdown.show { display: block; }
.dropdown a, .dropdown .dd-item { display: block; padding: 8px 12px; border-radius: 4px; color: var(--text); cursor: pointer; }
.dropdown a:hover, .dropdown .dd-item:hover { background: rgba(0,0,0,.04); }
.dd-head { padding: 8px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; color: var(--text-3); font-size: 12px; }
.content { padding: 20px; flex: 1; min-width: 0; }
.footer { text-align: center; color: var(--text-3); font-size: 12px; padding: 14px 0 18px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.page-title { font-size: 20px; }
.page-desc { color: var(--text-3); margin-top: 4px; font-size: 13px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sider-mask { display: none; }

/* ===== 卡片与栅格 ===== */
.card { background: var(--card); border-radius: var(--radius); margin-bottom: 16px; min-width: 0; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.card-title { font-weight: 600; font-size: 15px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.card-sub { font-weight: 400; color: var(--text-3); font-size: 12px; }
.card-extra { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--text-3); font-size: 13px; }
.card-body { padding: 16px 20px; min-width: 0; }
.card.flush .card-body { padding: 0; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(var(--c, 2), minmax(0, 1fr)); }
.grid > .card { margin-bottom: 0; }
.grid + .card, .grid + .grid, .card + .grid { margin-top: 16px; }
.g2 { --c: 2; } .g3 { --c: 3; } .g4 { --c: 4; }
.span2 { grid-column: span 2; }
.row-flex { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.section-gap { height: 16px; }
.hint { background: #f6f8fb; border: 1px solid #e8edf5; border-radius: 6px; padding: 10px 12px; color: var(--text-2); font-size: 13px; line-height: 1.7; }
.hint b { color: var(--text); }

/* ===== KPI ===== */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 16px; }
.kpi { background: #fff; border-radius: var(--radius); padding: 16px 20px; min-width: 0; }
.kpi-label { color: var(--text-3); font-size: 13px; }
.kpi-value { font-size: 26px; font-weight: 600; margin-top: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-value small { font-size: 13px; font-weight: 400; color: var(--text-3); margin-left: 4px; }
.kpi-foot { margin-top: 8px; font-size: 12px; color: var(--text-3); border-top: 1px solid var(--line); padding-top: 8px; }
.trend { font-size: 12px; } .trend.good { color: #389e0d; } .trend.bad { color: #cf1322; }

/* ===== 按钮与表单 ===== */
.btn { height: 32px; padding: 0 14px; border-radius: 6px; border: 1px solid #d9d9d9; background: #fff; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: all .15s; }
.btn:hover { color: var(--primary-h); border-color: var(--primary-h); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-h); color: #fff; }
.btn-danger { color: #cf1322; border-color: #ffa39e; }
.btn-danger:hover { color: #fff; background: var(--danger); border-color: var(--danger); }
.btn-sm { height: 26px; padding: 0 10px; font-size: 13px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link { color: var(--primary); cursor: pointer; background: none; border: 0; padding: 0 4px; white-space: nowrap; }
.link:hover { color: var(--primary-h); }
.link.danger { color: #cf1322; }
.icon-btn { border: 0; background: none; cursor: pointer; width: 30px; height: 30px; border-radius: 6px; color: var(--text-3); font-size: 16px; }
.icon-btn:hover { background: rgba(0,0,0,.05); }
input:not([type=checkbox]):not([type=radio]), select, textarea { border: 1px solid #d9d9d9; border-radius: 6px; padding: 4px 10px; height: 32px; background: #fff; outline: 0; transition: border .15s, box-shadow .15s; min-width: 0; }
textarea { height: auto; resize: vertical; padding: 6px 10px; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--primary-h); box-shadow: 0 0 0 2px rgba(5,145,255,.1); }
.form { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 4px 16px; }
.form-item { display: flex; flex-direction: column; gap: 6px; padding-bottom: 14px; min-width: 0; }
.form-item.full { grid-column: 1 / -1; }
.form-item label { color: var(--text-2); font-size: 13px; }
.form-item input, .form-item select { width: 100%; }
.form-item .req { color: var(--danger); margin-right: 4px; font-weight: 400; }
.form-item .err { color: var(--danger); font-size: 12px; min-height: 0; }
.form-item.has-err input, .form-item.has-err select, .form-item.has-err textarea { border-color: var(--danger); }
.form-item .help { color: var(--text-3); font-size: 12px; }
.form-item .static { padding: 5px 0; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 16px; padding-top: 4px; }
.checks label { display: inline-flex; align-items: center; gap: 6px; color: var(--text); cursor: pointer; }
.switch { width: 40px; height: 22px; border-radius: 11px; background: rgba(0,0,0,.25); border: 0; position: relative; cursor: pointer; flex: none; transition: background .2s; vertical-align: middle; }
.switch i { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .2s; box-shadow: 0 2px 4px rgba(0,35,11,.2); }
.switch.on { background: var(--primary); } .switch.on i { left: 20px; }
.seg { display: inline-flex; border: 1px solid #d9d9d9; border-radius: 6px; overflow: hidden; }
.seg button { border: 0; background: #fff; padding: 0 12px; height: 30px; cursor: pointer; border-right: 1px solid #d9d9d9; white-space: nowrap; }
.seg button:last-child { border-right: 0; }
.seg button.on { background: var(--primary); color: #fff; }

/* ===== 标签 ===== */
.tag { display: inline-block; padding: 0 7px; font-size: 12px; line-height: 20px; border-radius: 4px; border: 1px solid; white-space: nowrap; margin-right: 4px; }
.dot-text { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.dot-text i { width: 6px; height: 6px; border-radius: 50%; }
.stars { color: #fadb14; letter-spacing: 1px; white-space: nowrap; } .stars em { color: #e8e8e8; font-style: normal; }
.progress { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.progress-bar { flex: 1; height: 6px; background: #f0f0f0; border-radius: 3px; overflow: hidden; }
.progress-bar i { display: block; height: 100%; border-radius: 3px; }
.progress span { font-size: 12px; color: var(--text-2); width: 42px; text-align: right; font-variant-numeric: tabular-nums; }

/* ===== 标签页 ===== */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-2); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 10px 14px; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); border-color: var(--primary); font-weight: 500; }

/* ===== 表格 ===== */
.table-wrap { min-width: 0; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 14px; }
.flt { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13px; }
.flt select { min-width: 110px; } .flt-search input { width: 200px; }
.filter-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 6px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { background: #fafafa; color: var(--text); font-weight: 500; text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; position: relative; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.tbl td.wrap { white-space: normal; min-width: 200px; }
.tbl tbody tr:hover td { background: #fafcff; }
.tbl tr.clickable { cursor: pointer; }
.tbl tr.row-warn td { background: #fffbf0; }
.tbl tr.row-danger td { background: #fff6f6; }
.tbl th.sortable { cursor: pointer; user-select: none; padding-right: 22px; }
.sort-ico { position: absolute; right: 8px; top: 50%; margin-top: -6px; width: 6px; height: 12px; opacity: .35;
  background: linear-gradient(to bottom, transparent 0 0) ; }
.sort-ico::before, .sort-ico::after { content: ''; position: absolute; left: 0; border: 3px solid transparent; }
.sort-ico::before { top: -1px; border-bottom-color: #000; } .sort-ico::after { bottom: -1px; border-top-color: #000; }
th.asc .sort-ico, th.desc .sort-ico { opacity: 1; }
th.asc .sort-ico::before { border-bottom-color: var(--primary); } th.asc .sort-ico::after { opacity: .2; }
th.desc .sort-ico::after { border-top-color: var(--primary); } th.desc .sort-ico::before { opacity: .2; }
.col-sel { width: 36px; }
.tbl .empty { text-align: center; color: var(--text-3); padding: 36px 0; }
.tbl-mini td, .tbl-mini th { padding: 8px 10px; }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.pg { min-width: 30px; height: 30px; border: 1px solid #d9d9d9; border-radius: 6px; background: #fff; cursor: pointer; padding: 0 8px; }
.pg.on { border-color: var(--primary); color: var(--primary); font-weight: 500; }
.pg[disabled] { opacity: .4; cursor: not-allowed; }
.pg-total { color: var(--text-3); margin-right: 6px; } .pg-gap { color: var(--text-3); }
.pager select { height: 30px; }

/* ===== 描述/时间线/步骤 ===== */
.desc { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin: 0; }
.desc-item { display: flex; border-bottom: 1px solid var(--line); min-width: 0; }
.desc-item dt { width: 108px; flex: none; background: #fafafa; color: var(--text-2); padding: 9px 12px; border-right: 1px solid var(--line); font-size: 13px; }
.desc-item dd { margin: 0; padding: 9px 12px; min-width: 0; word-break: break-word; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; }
.timeline li { position: relative; padding: 0 0 16px 22px; border-left: 2px solid var(--line); margin-left: 5px; }
.timeline li:last-child { border-color: transparent; padding-bottom: 0; }
.timeline li > i { position: absolute; left: -7px; top: 2px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid; background: #fff; }
.tl-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; } .tl-head span { color: var(--text-3); font-size: 12px; }
.tl-desc { color: var(--text-2); font-size: 13px; margin-top: 4px; line-height: 1.6; }
.steps { display: flex; gap: 8px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 8px; flex: 1 1 110px; min-width: 0; color: var(--text-3); }
.step span { width: 24px; height: 24px; border-radius: 50%; border: 1px solid #d9d9d9; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex: none; }
.step em { font-style: normal; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step::after { content: ''; flex: 1; height: 1px; background: #e8e8e8; min-width: 8px; }
.step:last-child::after { display: none; }
.step.done span { border-color: var(--primary); color: var(--primary); }
.step.cur span { background: var(--primary); border-color: var(--primary); color: #fff; } .step.cur em { color: var(--text); font-weight: 500; }

/* ===== 弹层 ===== */
.overlay { position: fixed; inset: 0; z-index: 100; }
.overlay .mask { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .2s; }
.overlay.show .mask { opacity: 1; }
.drawer { position: absolute; right: 0; top: 0; bottom: 0; background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .22s ease; box-shadow: -6px 0 16px rgba(0,0,0,.08); }
.overlay.show .drawer { transform: none; }
.drawer header, .modal header { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); gap: 8px; }
.drawer h3, .modal h3 { font-size: 16px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer-body { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 16px 20px; }
.drawer footer, .modal footer { padding: 10px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.drawer-sec { margin-bottom: 20px; }
.drawer-sec > h4 { font-size: 14px; margin-bottom: 10px; padding-left: 8px; border-left: 3px solid var(--primary); line-height: 1.2; }
.modal-wrap { display: flex; align-items: flex-start; justify-content: center; padding-top: 8vh; overflow-y: auto; }
.modal { position: relative; background: #fff; border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,.16); opacity: 0; transform: translateY(-10px); transition: all .2s; margin-bottom: 40px; }
.overlay.show .modal { opacity: 1; transform: none; }
.modal-body { padding: 18px 20px 6px; max-height: 70vh; overflow-y: auto; overflow-x: hidden; }
.confirm-text { margin: 0 0 14px; line-height: 1.7; color: var(--text-2); }
#toast-box { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.12); border-radius: 8px; padding: 9px 16px; display: flex; gap: 8px; align-items: center; animation: tin .2s; transition: opacity .3s; max-width: 90vw; }
.toast i { width: 18px; height: 18px; border-radius: 50%; color: #fff; font-style: normal; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.toast-success i { background: var(--success); } .toast-error i { background: var(--danger); } .toast-info i { background: var(--primary); }
.toast.out { opacity: 0; }
@keyframes tin { from { opacity: 0; transform: translateY(-8px); } }

/* ===== 图表 ===== */
.chart { width: 100%; min-width: 0; }
.svg-chart { width: 100%; height: auto; display: block; }
.svg-chart .grid { stroke: #f0f0f0; } .svg-chart .axis { fill: rgba(0,0,0,.45); font-size: 11px; }
.chart-dark .svg-chart .grid { stroke: rgba(255,255,255,.08); } .chart-dark .svg-chart .axis { fill: rgba(255,255,255,.5); }
.chart-dark .legend { color: rgba(255,255,255,.7); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.donut { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.donut svg { width: 100%; flex: 0 1 180px; min-width: 120px; }
.donut-c { font-size: 22px; font-weight: 600; fill: var(--text); } .donut-s { font-size: 12px; fill: var(--text-3); }
.donut-legend { list-style: none; margin: 0; padding: 0; flex: 1 1 160px; min-width: 0; }
.donut-legend li { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 13px; }
.donut-legend i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.donut-legend span { flex: 1; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.donut-legend em { font-style: normal; color: var(--text-3); width: 48px; text-align: right; }
.donut-dark .donut-c { fill: #fff; } .donut-dark .donut-legend span, .donut-dark .donut-legend b { color: rgba(255,255,255,.8); }
.gauge { text-align: center; } .gauge svg { width: 100%; }
.gauge-v { font-size: 24px; font-weight: 600; fill: var(--text); } .gauge-l { font-size: 12px; fill: var(--text-3); }
.gauge-dark .gauge-v { fill: #fff; } .gauge-dark .gauge-l { fill: rgba(255,255,255,.55); }
.hbar-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; min-width: 0; }
.hbar-rank { width: 20px; height: 20px; border-radius: 50%; background: #f0f0f0; color: var(--text-2); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.hbar-rank.top { background: var(--primary); color: #fff; }
.hbar-label { width: 110px; flex: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.hbar-track { flex: 1; height: 8px; background: #f5f5f5; border-radius: 4px; overflow: hidden; min-width: 40px; }
.hbar-track i { display: block; height: 100%; border-radius: 4px; }
.hbar-row b { width: 64px; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; flex: none; }
.hbar-dark .hbar-label, .hbar-dark .hbar-row b { color: rgba(255,255,255,.8); } .hbar-dark .hbar-track { background: rgba(255,255,255,.08); } .hbar-dark .hbar-rank { background: rgba(255,255,255,.1); color: rgba(255,255,255,.7); }
.spark { width: 100px; height: 28px; vertical-align: middle; }
.radar-ring { fill: none; stroke: #e8e8e8; }
.heat-grid { display: grid; gap: 3px; font-size: 11px; color: var(--text-3); }
.heat-grid i { height: 18px; border-radius: 3px; display: block; }
.heat-h { text-align: center; } .heat-r { line-height: 18px; white-space: nowrap; }
.heat { overflow-x: auto; }

/* ===== 列表块 ===== */
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .sub { color: var(--text-3); font-size: 12px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-ico { width: 34px; height: 34px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; flex: none; font-size: 13px; font-weight: 600; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.tile { border: 1px solid var(--line-2); border-radius: 8px; padding: 14px; min-width: 0; background: #fff; transition: border .15s, box-shadow .15s; }
.tile:hover { border-color: #91caff; box-shadow: 0 2px 8px rgba(22,119,255,.08); }
.tile h4 { font-size: 14px; margin-bottom: 6px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.tile p { margin: 4px 0 0; color: var(--text-3); font-size: 12.5px; line-height: 1.6; }
.tile .tile-num { font-size: 22px; font-weight: 600; margin-top: 4px; }
.empty-state { text-align: center; color: var(--text-3); padding: 40px 0; }
.photo { width: 72px; height: 54px; border-radius: 4px; flex: none; display: inline-flex; align-items: flex-end; justify-content: flex-start; color: #fff; font-size: 10px; padding: 3px 4px; background-size: cover; position: relative; overflow: hidden; }
.photos { display: flex; gap: 8px; flex-wrap: wrap; }
.kv-inline { display: flex; gap: 6px 18px; flex-wrap: wrap; color: var(--text-2); font-size: 13px; }
.kv-inline b { color: var(--text); font-weight: 500; }
.tree { list-style: none; margin: 0; padding: 0; }
.tree ul { list-style: none; margin: 0; padding-left: 18px; border-left: 1px dashed #d9d9d9; margin-left: 7px; }
.tree li { padding: 3px 0; }
.tree .node { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 4px; cursor: pointer; max-width: 100%; }
.tree .node:hover { background: #f5f5f5; } .tree .node.on { background: var(--primary-bg); color: var(--primary); }
.tree .node span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.code { background: #0f1b2d; color: #c9d7ea; border-radius: 6px; padding: 12px 14px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.65; white-space: pre-wrap; word-break: break-all; overflow-x: auto; margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 12px; background: #f5f5f5; font-size: 12px; color: var(--text-2); margin: 0 6px 6px 0; }
.chip.on { background: var(--primary-bg); color: var(--primary); }
.split { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; }
.mini-stat { display: flex; gap: 20px; flex-wrap: wrap; }
.mini-stat div { min-width: 0; } .mini-stat span { color: var(--text-3); font-size: 12px; display: block; } .mini-stat b { font-size: 18px; font-weight: 600; }

/* ===== 驾驶舱大屏 ===== */
.screen { background: radial-gradient(1200px 500px at 50% -10%, #12376b 0%, #071a33 55%, #050f20 100%); border-radius: 10px; padding: 18px; color: #dbe7ff; margin-bottom: 16px; }
.screen-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.screen-title { font-size: 20px; font-weight: 600; letter-spacing: 2px; color: #fff; }
.screen-sub { color: rgba(219,231,255,.6); font-size: 12px; }
.screen-clock { font-variant-numeric: tabular-nums; color: #7fb6ff; font-size: 13px; }
.screen-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.skpi { background: linear-gradient(180deg, rgba(22,119,255,.18), rgba(22,119,255,.04)); border: 1px solid rgba(64,150,255,.25); border-radius: 8px; padding: 12px 14px; min-width: 0; }
.skpi span { font-size: 12px; color: rgba(219,231,255,.65); display: block; }
.skpi b { font-size: 24px; color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; display: block; margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.skpi b small { font-size: 12px; color: rgba(219,231,255,.6); font-weight: 400; margin-left: 3px; }
.skpi em { font-style: normal; font-size: 12px; color: #73d13d; } .skpi em.down { color: #ff7875; }
.screen-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr); gap: 12px; }
.spanel { background: rgba(8,30,62,.7); border: 1px solid rgba(64,150,255,.18); border-radius: 8px; padding: 12px 14px; min-width: 0; margin-bottom: 12px; }
.spanel:last-child { margin-bottom: 0; }
.spanel h4 { font-size: 14px; color: #fff; margin-bottom: 10px; padding-left: 8px; border-left: 3px solid #1677ff; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.spanel h4 small { font-weight: 400; color: rgba(219,231,255,.5); font-size: 12px; }
.smap { position: relative; }
.smap svg { width: 100%; height: auto; display: block; }
.smap .rg { cursor: pointer; transition: opacity .15s; } .smap .rg:hover { opacity: .85; }
.smap text { fill: #fff; font-size: 12px; pointer-events: none; }
.sticker { list-style: none; margin: 0; padding: 0; max-height: 238px; overflow: hidden; }
.sticker li { display: flex; gap: 8px; padding: 7px 0; border-bottom: 1px dashed rgba(255,255,255,.08); font-size: 12.5px; align-items: center; min-width: 0; }
.sticker li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(219,231,255,.85); }
.sticker li em { font-style: normal; color: rgba(219,231,255,.45); flex: none; }
.lv { font-size: 11px; border-radius: 3px; padding: 0 5px; line-height: 18px; flex: none; }
.lv1 { background: rgba(255,77,79,.2); color: #ff7875; } .lv2 { background: rgba(250,173,20,.2); color: #ffc53d; } .lv3 { background: rgba(22,119,255,.25); color: #69b1ff; }
.srow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sring { text-align: center; }

/* ===== 登录 ===== */
.login-page { min-height: 100vh; display: flex; background: #f0f2f5; }
.login-left { flex: 1.1; position: relative; overflow: hidden; background: linear-gradient(135deg, #0a3d91 0%, #1677ff 55%, #36a3ff 100%); color: #fff; display: flex; flex-direction: column; padding: 40px 56px; }
.login-left::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 80%); }
.login-left .brand { position: relative; display: flex; align-items: center; gap: 12px; }
.login-left .brand img { height: 40px; }
.login-hero { position: relative; margin: auto 0; max-width: 520px; }
.login-hero h1 { font-size: 34px; letter-spacing: 2px; line-height: 1.35; }
.login-hero p { font-size: 15px; color: rgba(255,255,255,.82); line-height: 1.9; margin: 16px 0 28px; }
.login-feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.login-feats div { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 8px; padding: 12px 14px; font-size: 13px; color: rgba(255,255,255,.9); }
.login-feats b { display: block; font-size: 15px; color: #fff; margin-bottom: 2px; }
.login-left .copy { position: relative; font-size: 12px; color: rgba(255,255,255,.6); }
.login-deco { position: absolute; right: -120px; bottom: -120px; width: 480px; height: 480px; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); }
.login-deco::after { content: ''; position: absolute; inset: 60px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); }
.login-right { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: #fff; position: relative; }
.login-box { width: 100%; max-width: 380px; }
.login-box .mobile-brand { display: none; margin-bottom: 26px; }
.login-box .mobile-brand img { height: 34px; }
.login-box h2 { font-size: 24px; margin-bottom: 6px; }
.login-box .sub { color: var(--text-3); margin-bottom: 28px; }
.login-box h2.no-sub { margin-bottom: 28px; }
.login-field { position: relative; margin-bottom: 18px; }
.login-field svg { position: absolute; left: 12px; top: 13px; width: 16px; height: 16px; color: var(--text-3); }
.login-field input { width: 100%; height: 42px !important; padding-left: 36px !important; font-size: 15px; }
.login-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; font-size: 13px; color: var(--text-2); }
.login-row label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.login-btn { width: 100%; height: 42px; font-size: 15px; justify-content: center; }
.login-msg { min-height: 22px; margin-top: 12px; font-size: 13px; color: var(--danger); text-align: center; }
.login-msg.neutral { color: var(--text-2); background: #f6f8fb; border: 1px solid #e8edf5; border-radius: 6px; padding: 10px 12px; text-align: left; line-height: 1.7; }
.login-foot { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; color: var(--text-3); font-size: 12px; }

/* ===== 响应式 ===== */
@media (max-width: 1280px) {
  .screen-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .screen-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .screen-grid > .scol-mid { grid-column: 1 / -1; order: -1; }
  .g4 { --c: 2; }
}
@media (max-width: 960px) {
  .sider { transform: translateX(-100%); }
  .layout.menu-open .sider { transform: none; }
  .layout.menu-open .sider-mask { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 35; }
  .main { margin-left: 0; }
  .hamburger { display: inline-flex; }
  .g3 { --c: 1; } .g2 { --c: 1; } .span2 { grid-column: auto; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .login-left { display: none; }
  .login-box .mobile-brand { display: block; }
}
@media (max-width: 640px) {
  .content { padding: 12px; }
  .header { padding: 0 10px; gap: 6px; }
  .org-switch, .user-name, .hdr-hide-sm { display: none !important; }
  .page-title { font-size: 18px; }
  .card-head { padding: 12px 14px; } .card-body { padding: 12px 14px; }
  .kpi-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 12px 14px; } .kpi-value { font-size: 20px; }
  .g4 { --c: 1; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .desc { grid-template-columns: minmax(0, 1fr) !important; }
  .desc-item dt { width: 92px; }
  .flt-search input { width: 100%; } .flt, .flt-search { width: 100%; } .flt select { flex: 1; }
  .filter-actions { margin-left: 0; width: 100%; }
  .screen { padding: 12px; }
  .screen-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screen-grid { grid-template-columns: minmax(0, 1fr); }
  .srow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hbar-label { width: 76px; }
  .pager .pg-total { width: 100%; text-align: right; }
  .login-feats { grid-template-columns: 1fr; }
}

/* ===== 补充 ===== */
@media (min-width: 961px) { .layout { background: linear-gradient(to right, var(--sider) 220px, var(--bg) 220px); } }
.org-switch svg { width: 16px; height: 16px; color: var(--text-3); flex: none; }
.srow .skpi { padding: 10px; } .srow .skpi b { font-size: 18px; }
.donut-dark .donut-legend em { color: rgba(255,255,255,.45); } .donut-dark .donut-s { fill: rgba(255,255,255,.5); }
.screen .donut svg { flex-basis: 140px; }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-side { grid-template-columns: minmax(0, 1fr) 320px; }
.g-main > div > .card + .card, .g-side > div > .card + .card { margin-top: 16px; }
.g-main > div > .card:last-child, .g-side > div > .card:last-child { margin-bottom: 0; }
@media (max-width: 960px) { .g-main, .g-side { grid-template-columns: minmax(0, 1fr); } }
.tbl .steps { flex-wrap: nowrap; } .tbl .step { flex: 1 1 auto; min-width: 0; }
.flt > span { white-space: nowrap; flex: none; }
@media (max-width: 640px) { .flt > span { min-width: 56px; } }
