Files
mileage-bonus/energy-h2-bi-board-html/source/styles/energy-bi-board.css
T

4207 lines
80 KiB
CSS
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/**
* 能源 BI 宿主设计令牌(来源:AI-羚牛氢能-能源BI-complete.zip · #hydrogen/overview
* 本原型独立嵌入 bi-next,禁止引入 OneOS V2 组件;
* 字体例外:汉字/UI 与数字等宽对齐 V2 TokenDESIGN §2.2)。
*/
@import '../../../resources/design-system/fonts/jetbrains-mono/jetbrains-mono.css';
/* —— 访问口令门(轻门禁 · 对齐宿主蓝系,非 V2 组件) —— */
.ehb-gate {
--bi-text: #0f172a;
--bi-muted: #64748b;
--bi-blue: #2563eb;
--bi-line: rgba(15, 23, 42, 0.08);
--bi-danger: #dc2626;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
padding: 24px;
background:
radial-gradient(1000px 380px at 15% -5%, rgba(37, 99, 235, 0.08), transparent 50%),
linear-gradient(160deg, #eff6ff 0%, #f8fafc 45%, #ffffff 100%);
color: var(--bi-text);
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC',
'Microsoft YaHei', 'Noto Sans SC', sans-serif;
box-sizing: border-box;
}
.ehb-gate *,
.ehb-gate *::before,
.ehb-gate *::after {
box-sizing: border-box;
}
.ehb-gate-card {
width: min(420px, 100%);
padding: 36px 32px 28px;
border: 1px solid var(--bi-line);
border-radius: 16px;
background: #ffffff;
box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}
.ehb-gate-kicker {
font-size: 11px;
letter-spacing: 0.12em;
color: var(--bi-blue);
margin: 0 0 16px;
font-weight: 600;
}
.ehb-gate-title {
margin: 0 0 8px;
font-size: 24px;
font-weight: 800;
color: var(--bi-text);
}
.ehb-gate-sub {
margin: 0 0 24px;
font-size: 13px;
line-height: 1.55;
color: var(--bi-muted);
}
.ehb-gate-label {
display: block;
font-size: 12px;
font-weight: 600;
color: var(--bi-muted);
margin-bottom: 8px;
}
.ehb-gate-input {
display: block;
width: 100%;
height: 44px;
min-height: 44px;
border-radius: 10px;
border: 1px solid var(--bi-line);
background: #f8fafc;
color: var(--bi-text);
padding: 0 14px;
font-size: 16px;
line-height: 44px;
appearance: none;
-webkit-appearance: none;
}
.ehb-gate-input::placeholder {
color: #94a3b8;
}
.ehb-gate-input:hover {
border-color: #cbd5e1;
}
.ehb-gate-input:focus {
outline: none;
border-color: var(--bi-blue);
background: #fff;
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}
.ehb-gate-error {
min-height: 20px;
margin: 8px 0 12px;
font-size: 12px;
color: var(--bi-danger);
}
.ehb-gate-btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 100%;
height: 44px;
min-height: 44px;
border: none;
border-radius: 10px;
background: var(--bi-blue);
color: #fff;
font-size: 15px;
font-weight: 700;
cursor: pointer;
}
.ehb-gate-btn:hover {
background: #1d4ed8;
}
.ehb-gate-btn:focus-visible {
outline: 2px solid #1e40af;
outline-offset: 2px;
}
.ehb-gate-foot {
margin: 16px 0 0;
font-size: 11px;
color: #64748b;
text-align: center;
}
.ehb-shell {
--bi-app-bg: #f8fafc;
--bi-panel: #ffffff;
--bi-hairline: rgba(15, 23, 42, 0.08);
--bi-hairline-subtle: rgba(15, 23, 42, 0.04);
--bi-text: #0f172a;
--bi-text-body: #1e293b;
--bi-text-sub: #334155;
--bi-muted: #64748b;
--bi-tertiary: #94a3b8;
--bi-blue: #2563eb;
--bi-blue-soft: #eff6ff;
--bi-green: #059669;
--bi-amber: #d97706;
--bi-red: #dc2626;
--bi-purple: #7c3aed;
--bi-cyan: #0891b2;
--bi-rail: #0f172a;
--bi-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 16px rgba(15, 23, 42, 0.03);
--bi-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
--bi-radius: 14px;
--bi-radius-sm: 10px;
--bi-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC',
'Microsoft YaHei', 'Noto Sans SC', sans-serif;
--bi-font-mono: 'JetBrains Mono', 'Cascadia Mono', 'Cascadia Code', Consolas, 'SF Mono',
SFMono-Regular, Menlo, 'Courier New', monospace;
display: flex;
min-height: 100vh;
background:
radial-gradient(1000px 380px at 15% -5%, rgba(37, 99, 235, 0.04), transparent 50%),
var(--bi-app-bg);
color: var(--bi-text-body);
font-family: var(--bi-font);
font-variant-numeric: tabular-nums;
}
.ehb-rail {
width: 72px;
flex-shrink: 0;
background: var(--bi-rail);
color: #e2e8f0;
display: flex;
flex-direction: column;
align-items: center;
padding: 16px 0;
gap: 8px;
}
.ehb-rail__item {
width: 56px;
border: none;
background: transparent;
color: #94a3b8;
border-radius: 10px;
padding: 10px 4px;
cursor: pointer;
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
font-size: 11px;
font-weight: 500;
transition: background 0.15s ease, color 0.15s ease;
}
.ehb-rail__item.is-active {
background: var(--bi-blue);
color: #fff;
font-weight: 600;
}
.ehb-rail__item:disabled {
opacity: 0.35;
cursor: not-allowed;
}
.ehb-body {
flex: 1;
min-width: 0;
padding: 18px 22px 36px;
box-sizing: border-box;
}
/* —— 页头 —— */
.ehb-chrome {
position: sticky;
top: 0;
z-index: 20;
display: flex;
flex-wrap: wrap;
align-items: flex-end;
justify-content: space-between;
gap: 12px 16px;
margin: -6px -6px 16px;
padding: 10px 6px 12px;
background: rgba(248, 250, 252, 0.92);
backdrop-filter: blur(8px);
border-bottom: 1px solid var(--bi-hairline-subtle);
}
.ehb-chrome__lead h1 {
margin: 2px 0 0;
font-size: 22px;
font-weight: 700;
color: var(--bi-text);
letter-spacing: -0.02em;
line-height: 1.2;
}
.ehb-crumb {
font-size: 12px;
color: var(--bi-muted);
font-weight: 400;
}
.ehb-chrome__tools {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 10px;
}
.ehb-chrome__clock {
font-size: 12px;
color: var(--bi-tertiary);
font-family: var(--bi-font-mono);
font-variant-numeric: tabular-nums;
}
.ehb-seg {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 3px;
background: #f1f5f9;
border-radius: 10px;
padding: 3px;
min-width: 150px;
}
.ehb-seg button {
border: none;
background: transparent;
border-radius: 7px;
height: 30px;
padding: 0 12px;
font-size: 12px;
font-weight: 500;
color: var(--bi-muted);
cursor: pointer;
transition: background 0.15s ease, color 0.15s ease;
}
.ehb-seg button.is-active {
background: #ffffff;
color: var(--bi-blue);
font-weight: 600;
box-shadow: var(--bi-shadow-sm);
}
.ehb-year-select-wrapper {
position: relative;
display: inline-block;
}
.ehb-year-select-btn {
display: inline-flex;
align-items: center;
gap: 6px;
height: 28px;
padding: 0 12px;
background: #ffffff;
border: 1px solid var(--bi-hairline);
border-radius: 999px;
font-size: 12px;
font-weight: 600;
color: #1e293b;
font-family: var(--bi-font-mono);
cursor: pointer;
box-shadow: var(--bi-shadow-sm);
transition: all 0.15s ease;
}
.ehb-year-select-btn:hover,
.ehb-year-select-btn.is-active {
border-color: #0284c7;
color: #0284c7;
box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.12);
}
.ehb-year-dropdown {
position: absolute;
top: calc(100% + 6px);
right: 0;
z-index: 1000;
width: 140px;
background: #ffffff;
border: 1px solid #cbd5e1;
border-radius: 10px;
padding: 6px;
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.ehb-year-dropdown__header {
padding: 4px 8px 6px;
font-size: 11px;
font-weight: 600;
color: #94a3b8;
border-bottom: 1px solid #f1f5f9;
margin-bottom: 4px;
}
.ehb-year-dropdown__list {
display: flex;
flex-direction: column;
gap: 2px;
max-height: 200px;
overflow-y: auto;
}
.ehb-year-dropdown__item {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
padding: 6px 10px;
border: none;
background: transparent;
border-radius: 6px;
font-size: 12px;
font-family: var(--bi-font-mono);
font-weight: 500;
color: #334155;
cursor: pointer;
transition: all 0.12s ease;
}
.ehb-year-dropdown__item:hover {
background: #f1f5f9;
color: #0284c7;
}
.ehb-year-dropdown__item.is-selected {
background: #e0f2fe;
color: #0284c7;
font-weight: 700;
}
.ehb-year-check {
font-size: 12px;
font-weight: 700;
color: #0284c7;
}
.ehb-btn {
display: inline-flex;
align-items: center;
gap: 6px;
height: 30px;
padding: 0 11px;
border-radius: 8px;
border: 1px solid var(--bi-hairline);
background: #ffffff;
color: var(--bi-text-body);
font-size: 12px;
font-weight: 500;
cursor: pointer;
transition: border-color 0.15s ease, color 0.15s ease;
}
.ehb-btn:hover {
border-color: rgba(37, 99, 235, 0.35);
color: var(--bi-blue);
}
.ehb-btn:focus-visible,
.ehb-chip:focus-visible,
.ehb-seg button:focus-visible,
.ehb-year button:focus-visible,
.ehb-dim:focus-visible,
.ehb-dim__sub:focus-visible,
.ehb-stats__tabs button:focus-visible {
outline: 2px solid rgba(37, 99, 235, 0.4);
outline-offset: 1px;
}
.ehb-btn--ghost {
background: transparent;
color: var(--bi-muted);
}
.ehb-chip-group {
display: inline-flex;
flex-wrap: wrap;
gap: 4px;
padding: 3px;
border-radius: 999px;
background: #f1f5f9;
}
.ehb-chip {
height: 26px;
padding: 0 11px;
border-radius: 999px;
border: 1px solid transparent;
background: transparent;
font-size: 12px;
font-weight: 500;
color: var(--bi-muted);
cursor: pointer;
transition: background 0.15s ease, color 0.15s ease;
}
.ehb-chip.is-active {
background: #ffffff;
color: var(--bi-blue);
font-weight: 600;
box-shadow: var(--bi-shadow-sm);
}
.ehb-filters {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px;
}
.ehb-filters__rule {
width: 1px;
height: 18px;
background: var(--bi-hairline);
}
/* —— 宿主总览区(V3 双层卡) —— */
.ehb-host {
margin-bottom: 20px;
padding: 14px;
background: rgba(255, 255, 255, 0.6);
border: 1px dashed rgba(148, 163, 184, 0.3);
border-radius: var(--bi-radius);
}
.ehb-host-kpi {
display: grid;
grid-template-columns: repeat(5, minmax(0, 1fr));
gap: 10px;
margin-bottom: 10px;
}
.ehb-kpi-dual {
background: #ffffff;
border-radius: var(--bi-radius-sm);
border: 1px solid var(--bi-hairline);
padding: 10px;
display: flex;
flex-direction: column;
box-sizing: border-box;
}
.ehb-kpi-dual__head {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 4px;
}
.ehb-kpi-dual__label {
font-size: 12px;
font-weight: 500;
color: var(--bi-muted);
}
.ehb-kpi-dual__badge {
width: 22px;
height: 22px;
border-radius: 6px;
display: grid;
place-items: center;
flex-shrink: 0;
}
.ehb-kpi-dual__badge.is-blue { background: var(--bi-blue-soft); color: var(--bi-blue); }
.ehb-kpi-dual__badge.is-green { background: #ecfdf5; color: var(--bi-green); }
.ehb-kpi-dual__badge.is-amber { background: #fffbeb; color: var(--bi-amber); }
.ehb-kpi-dual__badge.is-purple { background: #f3e8ff; color: var(--bi-purple); }
.ehb-kpi-dual__badge.is-cyan { background: #ecfeff; color: var(--bi-cyan); }
.ehb-kpi-dual__val {
display: flex;
align-items: baseline;
color: var(--bi-text-body);
font-family: var(--bi-font-mono);
font-variant-numeric: tabular-nums;
line-height: 1.2;
margin-bottom: 6px;
}
.ehb-kpi-dual__symbol {
font-size: 13px;
font-weight: 600;
color: var(--bi-muted);
margin-right: 2px;
}
.ehb-kpi-dual__num {
font-size: 20px;
font-weight: 700;
letter-spacing: -0.02em;
}
.ehb-kpi-dual__unit {
font-size: 12px;
font-weight: 500;
color: var(--bi-muted);
margin-left: 2px;
}
.ehb-kpi-dual__deck {
background: #f8fafc;
border-radius: 6px;
padding: 4px 8px;
display: flex;
justify-content: space-between;
align-items: center;
font-size: 11px;
color: var(--bi-muted);
font-family: var(--bi-font-mono);
font-variant-numeric: tabular-nums;
}
.ehb-insight {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 10px;
}
.ehb-insight__card {
background: #ffffff;
border-radius: var(--bi-radius-sm);
border: 1px solid var(--bi-hairline);
padding: 10px 12px;
display: flex;
gap: 10px;
align-items: flex-start;
}
.ehb-insight__icon {
width: 32px;
height: 32px;
border-radius: 8px;
background: var(--bi-blue-soft);
color: var(--bi-blue);
display: grid;
place-items: center;
flex-shrink: 0;
}
.ehb-insight__icon.is-down {
background: #fef2f2;
color: var(--bi-red);
}
.ehb-insight__icon.is-ok {
background: #ecfdf5;
color: var(--bi-green);
}
.ehb-insight__title {
font-size: 11px;
color: var(--bi-muted);
font-weight: 500;
}
.ehb-insight__value {
font-size: 18px;
font-weight: 700;
margin-top: 1px;
color: var(--bi-text-body);
font-family: var(--bi-font-mono);
font-variant-numeric: tabular-nums;
}
.ehb-insight__value.is-neg { color: var(--bi-red); }
.ehb-insight__value.is-pos { color: var(--bi-green); }
.ehb-insight__desc {
font-size: 11px;
color: var(--bi-tertiary);
margin-top: 2px;
line-height: 1.35;
}
.ehb-insight__card--rank {
position: relative;
align-items: center;
}
.ehb-insight__card--rank.is-open {
border-color: #7dd3fc;
box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.12);
z-index: 30;
}
.ehb-insight__rank-body {
flex: 1;
min-width: 0;
}
.ehb-insight__rank-chevron {
flex-shrink: 0;
color: var(--bi-muted);
transition: transform 0.2s ease;
margin-left: auto;
}
.ehb-insight__rank-chevron.is-open {
transform: rotate(180deg);
color: #0284c7;
}
.ehb-station-rank-dropdown {
position: absolute;
top: calc(100% + 6px);
left: 0;
right: 0;
min-width: 360px;
max-width: min(520px, 92vw);
background: #ffffff;
border: 1px solid #e2e8f0;
border-radius: 10px;
box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
z-index: 40;
overflow: hidden;
}
.ehb-station-rank-dropdown__head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 10px 12px;
border-bottom: 1px solid #e2e8f0;
font-size: 12px;
font-weight: 700;
color: #0f172a;
}
.ehb-station-rank-dropdown__meta {
font-size: 11px;
font-weight: 500;
color: #64748b;
}
.ehb-station-rank-dropdown__list {
max-height: 320px;
overflow-y: auto;
padding: 6px;
-webkit-overflow-scrolling: touch;
}
.ehb-station-rank-item {
display: grid;
grid-template-columns: 28px minmax(0, 1fr) auto auto;
align-items: center;
gap: 8px;
width: 100%;
border: none;
background: transparent;
padding: 8px 8px;
border-radius: 8px;
cursor: pointer;
text-align: left;
}
.ehb-station-rank-item:hover {
background: #f0f9ff;
}
.ehb-station-rank-item__rank {
width: 22px;
height: 22px;
border-radius: 6px;
display: grid;
place-items: center;
font-size: 11px;
font-weight: 700;
font-family: var(--bi-font-mono);
color: #64748b;
background: #f1f5f9;
}
.ehb-station-rank-item__rank.is-top {
color: #fff;
background: #0284c7;
}
.ehb-station-rank-item__main {
min-width: 0;
display: flex;
flex-direction: column;
gap: 4px;
}
.ehb-station-rank-item__name {
font-size: 12px;
color: #0f172a;
font-weight: 600;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ehb-station-rank-item__bar {
height: 4px;
border-radius: 999px;
background: #e2e8f0;
overflow: hidden;
}
.ehb-station-rank-item__bar > span {
display: block;
height: 100%;
border-radius: inherit;
background: linear-gradient(90deg, #38bdf8, #0284c7);
}
.ehb-station-rank-item__val {
font-size: 12px;
font-weight: 700;
font-family: var(--bi-font-mono);
font-variant-numeric: tabular-nums;
color: #0f172a;
white-space: nowrap;
}
.ehb-station-rank-item__share {
font-size: 11px;
color: #64748b;
font-family: var(--bi-font-mono);
font-variant-numeric: tabular-nums;
min-width: 42px;
text-align: right;
}
.ehb-station-rank-empty {
padding: 20px 12px;
text-align: center;
font-size: 12px;
color: #94a3b8;
}
/* —— 核心区:我司成本 —— */
.ehb-feature {
background: #ffffff;
border-radius: var(--bi-radius);
box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
border: 1px solid rgba(37, 99, 235, 0.18);
padding: 18px 20px 20px;
}
.ehb-feature__bar {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 16px;
padding-bottom: 14px;
border-bottom: 1px solid var(--bi-hairline);
}
.ehb-feature__bar h2 {
margin: 0;
font-size: 18px;
font-weight: 700;
color: var(--bi-text);
letter-spacing: -0.02em;
display: flex;
align-items: center;
gap: 8px;
}
.ehb-feature__bar h2::before {
content: '';
display: inline-block;
width: 4px;
height: 16px;
border-radius: 999px;
background: var(--bi-blue);
}
.ehb-dim-grid {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 12px;
margin-bottom: 14px;
}
.ehb-dim {
position: relative;
text-align: left;
border: 1px solid var(--bi-hairline);
background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
border-radius: var(--bi-radius-sm);
padding: 14px 16px 12px;
cursor: pointer;
overflow: hidden;
transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.ehb-dim::before {
content: '';
position: absolute;
inset: 0 0 auto;
height: 3px;
background: var(--bi-blue);
}
.ehb-dim.is-lease::before { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.ehb-dim.is-logistics::before { background: linear-gradient(90deg, #0891b2, #22d3ee); }
.ehb-dim.is-ops::before { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.ehb-dim:hover {
border-color: rgba(37, 99, 235, 0.3);
transform: translateY(-1px);
}
.ehb-dim.is-active {
background: var(--bi-blue-soft);
border-color: rgba(37, 99, 235, 0.45);
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
@media (prefers-reduced-motion: reduce) {
.ehb-dim,
.ehb-rail__item,
.ehb-chip,
.ehb-seg button,
.ehb-btn {
transition: none;
}
.ehb-dim:hover {
transform: none;
}
}
.ehb-dim__name {
font-size: 13px;
font-weight: 600;
color: var(--bi-muted);
}
.ehb-dim__amt {
margin-top: 4px;
font-size: 22px;
font-weight: 800;
color: var(--bi-text);
font-family: var(--bi-font-mono);
font-variant-numeric: tabular-nums;
letter-spacing: -0.02em;
}
.ehb-dim__subs {
margin-top: 10px;
display: grid;
gap: 5px;
}
.ehb-dim__sub {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 12px;
color: var(--bi-muted);
padding: 5px 8px;
border-radius: 6px;
background: rgba(255, 255, 255, 0.85);
border: 1px solid transparent;
cursor: pointer;
transition: background 0.12s ease, border-color 0.12s ease;
}
.ehb-dim__sub:hover {
background: #ffffff;
border-color: rgba(148, 163, 184, 0.25);
}
.ehb-dim__sub.is-active {
border-color: rgba(37, 99, 235, 0.35);
color: var(--bi-blue);
font-weight: 600;
background: #ffffff;
}
.ehb-dim__sub strong {
color: var(--bi-text-sub);
font-weight: 600;
font-family: var(--bi-font-mono);
font-variant-numeric: tabular-nums;
}
.ehb-pending {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 8px 12px;
padding: 8px 12px;
border-radius: 8px;
background: #fffbeb;
border: 1px solid rgba(217, 119, 6, 0.22);
font-size: 12px;
color: #92400e;
margin-bottom: 14px;
}
.ehb-pending strong {
font-family: var(--bi-font-mono);
font-variant-numeric: tabular-nums;
font-weight: 600;
}
.ehb-pending__sep {
width: 1px;
height: 12px;
background: rgba(217, 119, 6, 0.28);
}
/* —— 面板与表格 —— */
.ehb-panel {
margin-top: 14px;
border: 1px solid var(--bi-hairline);
border-radius: var(--bi-radius-sm);
background: #ffffff;
overflow: hidden;
}
.ehb-panel__head {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 8px 12px;
padding: 8px 12px;
border-bottom: 1px solid var(--bi-hairline);
background: #f8fafc;
}
.ehb-panel__meta {
font-size: 12px;
color: var(--bi-tertiary);
}
.ehb-stats__tabs {
display: inline-flex;
gap: 3px;
background: #e2e8f0;
border-radius: 8px;
padding: 3px;
}
.ehb-stats__tabs button {
border: none;
background: transparent;
height: 28px;
padding: 0 11px;
border-radius: 6px;
font-size: 12px;
font-weight: 500;
color: var(--bi-muted);
cursor: pointer;
}
.ehb-stats__tabs button.is-active {
background: #ffffff;
color: var(--bi-blue);
font-weight: 600;
box-shadow: var(--bi-shadow-sm);
}
.ehb-stats__path {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 6px;
font-size: 12px;
color: var(--bi-muted);
}
.ehb-stats__path button {
border: none;
background: transparent;
color: var(--bi-blue);
font-weight: 600;
cursor: pointer;
padding: 0;
}
.ehb-section-title {
margin: 0;
font-size: 13px;
font-weight: 600;
color: var(--bi-text-body);
}
.ehb-table-wrap {
overflow: auto;
max-height: min(40vh, 400px);
background: #ffffff;
}
.ehb-panel .ehb-table-wrap {
border: none;
border-radius: 0;
}
.ehb-table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
min-width: max(100%, 720px);
font-size: 13px;
}
.ehb-table th {
position: sticky;
top: 0;
z-index: 1;
text-align: left;
font-size: 12px;
font-weight: 500;
color: var(--bi-muted);
background-color: #f8fafc;
background-clip: padding-box;
transform: translateZ(0);
padding: 8px 12px;
border-bottom: 1px solid var(--bi-hairline);
white-space: nowrap;
}
.ehb-table td {
padding: 8px 12px;
border-bottom: 1px solid var(--bi-hairline);
color: var(--bi-text-body);
font-weight: 400;
}
.ehb-table tr:last-child td {
border-bottom: none;
}
.ehb-table tr.is-clickable {
cursor: pointer;
}
.ehb-table tr.is-clickable:hover td {
background: #f1f5f9;
}
.ehb-table tr.is-active td {
background: rgba(37, 99, 235, 0.08);
}
.ehb-mono {
font-variant-numeric: tabular-nums;
font-family: var(--bi-font-mono);
font-size: 12px;
color: var(--bi-text-sub);
}
.ehb-mono.ehb-idx {
color: var(--bi-tertiary);
font-weight: 400;
}
.ehb-badge {
display: inline-flex;
align-items: center;
height: 20px;
padding: 0 7px;
border-radius: 999px;
font-size: 11px;
font-weight: 600;
}
.ehb-badge.is-ok {
background: #ecfdf5;
color: #047857;
}
.ehb-badge.is-warn {
background: #fffbeb;
color: #b45309;
}
.ehb-empty {
padding: 36px 16px;
text-align: center;
color: var(--bi-muted);
font-size: 13px;
}
.ehb-empty__icon {
color: var(--bi-blue);
}
.ehb-empty__title {
margin-top: 8px;
font-weight: 600;
color: var(--bi-text-body);
}
/* —— 宿主按日视图 (Daily View) 专用样式 —— */
.ehb-daily-filter-card {
background: #ffffff;
border-radius: var(--bi-radius);
border: 1px solid var(--bi-hairline);
padding: 12px 16px;
margin-bottom: 12px;
display: flex;
flex-direction: column;
gap: 12px;
}
.ehb-daily-filter-row {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.ehb-daily-filter-group {
display: flex;
align-items: center;
gap: 8px;
}
.ehb-pill-tabs {
display: flex;
background: #f1f5f9;
border-radius: 6px;
padding: 2px;
gap: 2px;
}
.ehb-pill-btn {
border: none;
background: transparent;
padding: 4px 12px;
font-size: 12px;
font-weight: 500;
color: var(--bi-muted);
border-radius: 4px;
cursor: pointer;
transition: all 0.15s ease;
}
.ehb-pill-btn:hover {
color: var(--bi-text-body);
}
.ehb-pill-btn.is-active {
background: #ffffff;
color: var(--bi-blue);
font-weight: 600;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.ehb-daily-date-picker-wrapper {
position: relative;
display: inline-block;
}
.ehb-daily-date-picker {
display: flex;
align-items: center;
gap: 8px;
background: #ffffff;
border: 1px solid #cbd5e1;
border-radius: 6px;
padding: 4px 10px;
font-size: 12px;
color: var(--bi-text-body);
font-family: var(--bi-font-mono);
cursor: pointer;
user-select: none;
transition: all 0.15s ease;
}
.ehb-daily-date-picker:hover,
.ehb-daily-date-picker.is-active {
border-color: #0284c7;
box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.12);
}
.ehb-date-label {
color: #64748b;
font-weight: 500;
}
.ehb-date-val {
color: #0f172a;
font-weight: 600;
}
/* 自定义非原生日历 Popover 下拉卡片 */
.ehb-date-popover {
position: absolute;
top: calc(100% + 6px);
left: 0;
z-index: 1000;
width: 238px;
background: #ffffff;
border: 1px solid #cbd5e1;
border-radius: 8px;
padding: 10px;
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
/* 模式切换条: 按日 | 按月 | 按年 */
.ehb-dp-mode-bar {
display: flex;
background: #f1f5f9;
border-radius: 6px;
padding: 2px;
gap: 2px;
margin-bottom: 8px;
}
.ehb-dp-mode-btn {
flex: 1;
border: none;
background: transparent;
padding: 3px 0;
font-size: 11px;
font-weight: 500;
color: #64748b;
border-radius: 4px;
cursor: pointer;
transition: all 0.12s ease;
text-align: center;
}
.ehb-dp-mode-btn.is-active {
background: #ffffff;
color: #0284c7;
font-weight: 600;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.ehb-dp-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 8px;
}
.ehb-dp-title-group {
display: flex;
align-items: center;
gap: 4px;
}
.ehb-dp-title-btn {
border: none;
background: transparent;
padding: 2px 6px;
border-radius: 4px;
font-size: 13px;
font-weight: 700;
color: #0f172a;
cursor: pointer;
transition: all 0.12s ease;
}
.ehb-dp-title-btn:hover {
background: #f1f5f9;
color: #0284c7;
}
.ehb-dp-title-btn.is-active {
color: #0284c7;
background: #e0f2fe;
}
.ehb-dp-title {
font-size: 13px;
font-weight: 700;
color: #0f172a;
}
.ehb-dp-nav-btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 24px;
height: 24px;
border: none;
background: #f1f5f9;
border-radius: 4px;
color: #475569;
cursor: pointer;
transition: all 0.15s ease;
}
.ehb-dp-nav-btn:hover {
background: #e2e8f0;
color: #0284c7;
}
.ehb-dp-week-row {
display: grid;
grid-template-columns: repeat(7, 1fr);
text-align: center;
font-size: 11px;
font-weight: 600;
color: #94a3b8;
margin-bottom: 6px;
}
.ehb-dp-grid {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 2px;
}
.ehb-dp-day {
display: flex;
align-items: center;
justify-content: center;
height: 26px;
border: none;
background: transparent;
border-radius: 4px;
font-size: 12px;
font-family: var(--bi-font-mono);
color: #334155;
cursor: pointer;
transition: all 0.12s ease;
}
.ehb-dp-day:hover:not(.is-selected):not(.is-empty) {
background: #f1f5f9;
color: #0284c7;
}
.ehb-dp-day.is-selected {
background: #0284c7;
color: #ffffff;
font-weight: 700;
}
.ehb-dp-day.is-empty {
cursor: default;
}
/* 月选择网格 */
.ehb-dp-month-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 6px;
padding: 4px 0;
}
.ehb-dp-month-item {
height: 34px;
border: 1px solid #e2e8f0;
background: #ffffff;
border-radius: 6px;
font-size: 12px;
font-weight: 500;
color: #334155;
cursor: pointer;
transition: all 0.12s ease;
}
.ehb-dp-month-item:hover:not(.is-selected) {
border-color: #38bdf8;
color: #0284c7;
background: #f0f9ff;
}
.ehb-dp-month-item.is-selected {
background: #0284c7;
border-color: #0284c7;
color: #ffffff;
font-weight: 700;
}
/* 年选择网格 */
.ehb-dp-year-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 6px;
padding: 4px 0;
}
.ehb-dp-year-item {
height: 34px;
border: 1px solid #e2e8f0;
background: #ffffff;
border-radius: 6px;
font-size: 12px;
font-family: var(--bi-font-mono);
font-weight: 500;
color: #334155;
cursor: pointer;
transition: all 0.12s ease;
}
.ehb-dp-year-item:hover:not(.is-selected) {
border-color: #38bdf8;
color: #0284c7;
background: #f0f9ff;
}
.ehb-dp-year-item.is-selected {
background: #0284c7;
border-color: #0284c7;
color: #ffffff;
font-weight: 700;
}
.ehb-fleet-segmented {
display: flex;
background: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 6px;
padding: 2px;
gap: 4px;
}
.ehb-fleet-btn {
display: flex;
align-items: center;
gap: 6px;
border: none;
background: transparent;
padding: 5px 14px;
font-size: 12px;
font-weight: 500;
color: var(--bi-muted);
border-radius: 4px;
cursor: pointer;
transition: all 0.15s ease;
}
.ehb-fleet-btn.is-active {
background: #ffffff;
color: var(--bi-blue);
font-weight: 600;
box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.ehb-daily-kpi-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 12px;
margin-bottom: 12px;
}
.ehb-daily-kpi-card {
background: #ffffff;
border-radius: var(--bi-radius-sm);
border: 1px solid var(--bi-hairline);
padding: 12px 16px;
display: flex;
flex-direction: column;
position: relative;
}
.ehb-daily-kpi-head {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 6px;
}
.ehb-daily-kpi-title {
font-size: 12px;
font-weight: 500;
color: var(--bi-muted);
}
.ehb-daily-kpi-val {
font-size: 24px;
font-weight: 800;
color: var(--bi-text-body);
font-family: var(--bi-font-mono);
font-variant-numeric: tabular-nums;
line-height: 1.2;
margin-bottom: 4px;
display: flex;
align-items: baseline;
gap: 3px;
}
.ehb-daily-kpi-sub {
font-size: 11px;
color: var(--bi-tertiary);
font-family: var(--bi-font-mono);
}
.ehb-daily-chart-section {
background: #ffffff;
border-radius: var(--bi-radius);
border: 1px solid var(--bi-hairline);
padding: 16px;
margin-bottom: 12px;
}
.ehb-daily-chart-head {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 12px;
}
.ehb-daily-chart-title {
font-size: 14px;
font-weight: 700;
color: var(--bi-text-body);
}
.ehb-daily-chart-meta-group {
display: flex;
align-items: center;
gap: 16px;
}
.ehb-daily-chart-legend {
display: flex;
align-items: center;
gap: 12px;
}
.ehb-legend-item {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 12px;
font-weight: 500;
color: #475569;
}
.ehb-legend-dot {
width: 8px;
height: 8px;
border-radius: 2px;
}
.ehb-legend-dot.is-own {
background: #0284c7;
}
.ehb-legend-dot.is-ext {
background: #f59e0b;
}
.ehb-daily-chart-meta {
font-size: 11px;
color: var(--bi-tertiary);
}
.ehb-daily-summary-pills {
display: flex;
gap: 16px;
margin-bottom: 16px;
background: #f8fafc;
padding: 8px 12px;
border-radius: 6px;
}
.ehb-daily-pill-item {
display: flex;
align-items: center;
gap: 6px;
font-size: 11px;
color: var(--bi-muted);
}
.ehb-daily-pill-item strong {
color: var(--bi-text-body);
font-weight: 700;
font-family: var(--bi-font-mono);
}
.ehb-daily-bar-container {
height: 200px;
display: flex;
align-items: flex-end;
gap: 8px;
padding-top: 24px;
padding-bottom: 24px;
position: relative;
border-bottom: 1px solid #e2e8f0;
overflow-x: auto;
overflow-y: hidden;
scrollbar-width: thin;
}
.ehb-daily-avg-line {
position: absolute;
left: 0;
right: 0;
min-width: 100%;
border-top: 1.5px dashed #2563eb;
opacity: 0.85;
pointer-events: none;
z-index: 5;
}
.ehb-daily-avg-label {
position: sticky;
left: 8px;
top: -11px;
font-size: 11px;
font-weight: 600;
color: #1e40af;
background: #eff6ff;
border: 1px solid #93c5fd;
padding: 1px 8px;
border-radius: 4px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
white-space: nowrap;
}
.ehb-daily-bar-col {
flex: 1;
min-width: 18px;
display: flex;
flex-direction: column;
align-items: center;
height: 100%;
justify-content: flex-end;
position: relative;
cursor: pointer;
}
.ehb-daily-bar-fill {
width: 100%;
max-width: 28px;
background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
border-radius: 4px 4px 0 0;
transition: all 0.2s ease;
position: relative;
}
.ehb-daily-bar-fill.is-stacked {
display: flex;
flex-direction: column;
overflow: hidden;
background: transparent;
}
.ehb-daily-bar-fill.is-stacked.is-active {
box-shadow: 0 0 10px rgba(2, 132, 199, 0.5);
}
.ehb-bar-segment {
width: 100%;
transition: all 0.2s ease;
}
.ehb-bar-segment.is-ext {
background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}
.ehb-bar-segment.is-own {
background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
}
.ehb-daily-bar-col:hover .ehb-bar-segment.is-ext {
filter: brightness(1.1);
}
.ehb-daily-bar-col:hover .ehb-bar-segment.is-own {
filter: brightness(1.1);
}
.ehb-daily-bar-val {
position: absolute;
top: -20px;
font-size: 10px;
color: var(--bi-muted);
font-family: var(--bi-font-mono);
white-space: nowrap;
}
.ehb-daily-bar-label {
margin-top: 8px;
font-size: 10px;
color: var(--bi-tertiary);
font-family: var(--bi-font-mono);
}
.ehb-daily-table-card {
background: #ffffff;
border-radius: var(--bi-radius);
border: 1px solid var(--bi-hairline);
padding: 16px;
}
.ehb-daily-table-head {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 12px;
}
.ehb-daily-table-title {
font-size: 14px;
font-weight: 700;
color: var(--bi-text-body);
}
.ehb-title-sub {
font-size: 12px;
font-weight: 400;
color: var(--bi-tertiary);
margin-left: 4px;
}
.ehb-show-h5 {
display: none !important;
}
.ehb-hide-h5 {
display: inline !important;
}
.ehb-export-btn {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 12px;
padding: 5px 12px;
border-radius: 6px;
cursor: pointer;
transition: all 0.15s ease;
}
/* —— 钻取 Badge 标签 —— */
.ehb-tag {
display: inline-flex;
align-items: center;
gap: 3px;
padding: 1px 6px;
border-radius: 4px;
font-size: 11px;
font-weight: 600;
line-height: 1.4;
cursor: help;
}
.ehb-tag--self-use {
background: #eff6ff;
color: #2563eb;
border: 1px solid #bfdbfe;
}
.ehb-tag--ext-sale {
background: #f0fdf4;
color: #16a34a;
border: 1px solid #bbf7d0;
}
/* 单站拆分内部/外部车辆加氢显示标签 */
.ehb-station-cell {
display: flex;
flex-direction: column;
align-items: flex-start;
gap: 6px; /* 加氢站名称与标签组垂直间距,舒适有呼吸感 */
padding: 4px 0;
}
.ehb-station-title-row {
display: inline-flex;
align-items: center;
font-weight: 600;
color: #0f172a;
line-height: 1.4;
}
.ehb-arrow-icon {
margin-right: 6px;
color: #0284c7;
display: inline-block;
width: 14px;
}
.ehb-split-tag-group {
display: flex;
align-items: center;
gap: 6px 10px; /* 水平 10px,换行时垂直 6px */
flex-wrap: wrap;
}
.ehb-split-tag {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 11px;
padding: 3px 10px;
border-radius: 4px;
border: 1px solid transparent;
line-height: 1.4;
white-space: nowrap;
}
.ehb-split-tag.is-own {
background: #f0f9ff;
border-color: #bae6fd;
color: #0369a1;
}
.ehb-split-tag.is-ext {
background: #f8fafc;
border-color: #cbd5e1;
color: #475569;
}
.ehb-split-tag__label {
font-weight: 600;
padding-right: 6px;
border-right: 1px solid rgba(0, 0, 0, 0.1);
}
.ehb-split-tag__val {
font-family: var(--bi-font-mono);
font-weight: 700;
}
.ehb-split-tag__price {
font-family: var(--bi-font-mono);
opacity: 0.88;
}
.ehb-tag--own-fleet {
background: #f0fdf4;
color: #15803d;
border: 1px solid #bbf7d0;
}
.ehb-tag--ext-fleet {
background: #f1f5f9;
color: #64748b;
border: 1px solid #e2e8f0;
}
.ehb-tag--ext-cust {
background: #fff7ed;
color: #c2410c;
border: 1px solid #ffedd5;
}
.ehb-tag--source-api {
background: #e0f2fe;
color: #0369a1;
}
.ehb-tag--source-station {
background: #fff7ed;
color: #c2410c;
}
.ehb-tag--source-lingniu {
background: #faf5ff;
color: #7e22ce;
}
.ehb-tag--verify-ok {
background: #ecfdf5;
color: #047857;
border: 1px solid #a7f3d0;
}
.ehb-tag--verify-partial {
background: #fff7ed;
color: #c2410c;
border: 1px solid #ffedd5;
}
.ehb-tag--verify-warn {
background: #fffbeb;
color: #b45309;
border: 1px solid #fde68a;
}
/* 锚点闪烁高亮 */
.is-highlight-target {
animation: ehbHighlightPulse 2s ease-out;
}
@keyframes ehbHighlightPulse {
0% {
background-color: rgba(59, 130, 246, 0.25);
box-shadow: inset 0 0 0 2px #3b82f6;
}
100% {
background-color: transparent;
box-shadow: none;
}
}
/* 总览视角:趋势图表大盘组件样式 */
.ehb-overview-charts {
display: flex;
flex-direction: column;
gap: 12px;
margin-top: 12px;
margin-bottom: 12px;
}
.ehb-chart-box {
background: #ffffff;
border-radius: var(--bi-radius);
border: 1px solid var(--bi-hairline);
padding: 16px;
}
.ehb-chart-box-head {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 16px;
}
.ehb-chart-box-title {
font-size: 14px;
font-weight: 700;
color: var(--bi-text-body);
}
.ehb-chart-box-meta {
font-size: 11px;
color: var(--bi-tertiary);
}
.ehb-chart-legend-inline {
display: flex;
align-items: center;
gap: 14px;
}
.ehb-chart-legend-tag {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 12px;
font-weight: 500;
color: #475569;
}
.ehb-legend-sq {
width: 10px;
height: 10px;
border-radius: 2px;
}
.ehb-legend-sq.is-income {
background: #10b981;
}
.ehb-legend-sq.is-cost {
background: #f59e0b;
}
/* 月度加氢量柱状图 */
.ehb-mbar-chart {
height: 160px;
display: flex;
align-items: flex-end;
gap: 12px;
padding-top: 20px;
padding-bottom: 20px;
border-bottom: 1px solid #f1f5f9;
}
.ehb-mbar-col {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
height: 100%;
justify-content: flex-end;
position: relative;
cursor: pointer;
}
.ehb-mbar-val {
position: absolute;
top: -18px;
font-size: 11px;
font-weight: 600;
font-family: var(--bi-font-mono);
color: #475569;
white-space: nowrap;
}
.ehb-mbar-fill {
width: 100%;
max-width: 42px;
background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
border-radius: 4px 4px 0 0;
transition: all 0.2s ease;
}
.ehb-mbar-col:hover .ehb-mbar-fill {
filter: brightness(1.1);
transform: scaleY(1.02);
}
/* 柱状图 Hover 自定义浮动卡片 */
.ehb-mbar-tooltip {
position: absolute;
bottom: calc(100% + 8px);
left: 50%;
transform: translateX(-50%) translateY(4px);
background: rgba(15, 23, 42, 0.92);
backdrop-filter: blur(8px);
color: #ffffff;
padding: 8px 12px;
border-radius: 6px;
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
font-size: 11px;
white-space: nowrap;
pointer-events: none;
opacity: 0;
visibility: hidden;
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
z-index: 20;
}
.ehb-mbar-col:hover .ehb-mbar-tooltip {
opacity: 1;
visibility: visible;
transform: translateX(-50%) translateY(0);
}
.ehb-mbar-tooltip__head {
font-weight: 700;
font-size: 11px;
margin-bottom: 4px;
padding-bottom: 4px;
border-bottom: 1px solid rgba(255, 255, 255, 0.15);
color: #f8fafc;
}
.ehb-mbar-tooltip__row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
line-height: 1.6;
}
.ehb-mbar-tooltip__left {
display: flex;
align-items: center;
gap: 6px;
color: #cbd5e1;
}
.ehb-mbar-tooltip__dot {
width: 6px;
height: 6px;
border-radius: 50%;
}
.ehb-mbar-tooltip__dot.is-own {
background: #38bdf8;
}
.ehb-mbar-tooltip__dot.is-ext {
background: #f59e0b;
}
.ehb-mbar-tooltip__val {
font-weight: 700;
font-family: var(--bi-font-mono);
color: #ffffff;
}
.ehb-mbar-label {
margin-top: 8px;
font-size: 11px;
color: #64748b;
font-family: var(--bi-font-mono);
}
/* 月度收支对比图 */
.ehb-rev-chart {
height: 160px;
display: flex;
align-items: flex-end;
gap: 16px;
padding-top: 20px;
padding-bottom: 20px;
border-bottom: 1px solid #f1f5f9;
}
.ehb-rev-col-group {
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
height: 100%;
justify-content: flex-end;
}
.ehb-rev-bars {
display: flex;
align-items: flex-end;
gap: 4px;
height: 100%;
width: 100%;
justify-content: center;
}
.ehb-rev-bar {
width: 16px;
border-radius: 3px 3px 0 0;
transition: all 0.2s ease;
position: relative;
cursor: pointer;
}
/* 客户收入 Hover 浮层,高保真显示 TOP9 客户 + 其他客户 */
.ehb-rev-income-tooltip {
position: absolute;
bottom: calc(100% + 8px);
left: 50%;
transform: translateX(-50%) translateY(4px);
background: rgba(15, 23, 42, 0.94);
backdrop-filter: blur(10px);
color: #ffffff;
padding: 10px 14px;
border-radius: 8px;
box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.35), 0 8px 12px -6px rgba(0, 0, 0, 0.25);
font-size: 11px;
white-space: nowrap;
pointer-events: none;
opacity: 0;
visibility: hidden;
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
z-index: 30;
min-width: 270px;
}
/* 成本支出 Hover 浮层,高保真显示包氢、物流、运维异动等成本项目 */
.ehb-rev-cost-tooltip {
position: absolute;
bottom: calc(100% + 8px);
left: 50%;
transform: translateX(-50%) translateY(4px);
background: rgba(15, 23, 42, 0.94);
backdrop-filter: blur(10px);
color: #ffffff;
padding: 10px 14px;
border-radius: 8px;
box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.35), 0 8px 12px -6px rgba(0, 0, 0, 0.25);
font-size: 11px;
white-space: nowrap;
pointer-events: none;
opacity: 0;
visibility: hidden;
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
z-index: 30;
min-width: 220px;
}
/* 避免最边缘的 1月 或 8月 弹窗被裁剪,靠近左侧靠左对齐,靠近右侧靠右对齐 */
.ehb-rev-col-group:first-child .ehb-rev-income-tooltip,
.ehb-rev-col-group:first-child .ehb-rev-cost-tooltip {
left: 0;
transform: translateX(0) translateY(4px);
}
.ehb-rev-col-group:first-child .ehb-rev-bar.is-income:hover .ehb-rev-income-tooltip,
.ehb-rev-col-group:first-child .ehb-rev-bar.is-cost:hover .ehb-rev-cost-tooltip {
transform: translateX(0) translateY(0);
}
.ehb-rev-col-group:last-child .ehb-rev-income-tooltip,
.ehb-rev-col-group:last-child .ehb-rev-cost-tooltip {
left: auto;
right: 0;
transform: translateX(0) translateY(4px);
}
.ehb-rev-col-group:last-child .ehb-rev-bar.is-income:hover .ehb-rev-income-tooltip,
.ehb-rev-col-group:last-child .ehb-rev-bar.is-cost:hover .ehb-rev-cost-tooltip {
transform: translateX(0) translateY(0);
}
.ehb-rev-bar.is-income:hover .ehb-rev-income-tooltip,
.ehb-rev-bar.is-cost:hover .ehb-rev-cost-tooltip {
opacity: 1;
visibility: visible;
transform: translateX(-50%) translateY(0);
}
.ehb-rev-income-tooltip__head {
display: flex;
align-items: center;
justify-content: space-between;
font-weight: 700;
font-size: 11px;
margin-bottom: 6px;
padding-bottom: 5px;
border-bottom: 1px solid rgba(255, 255, 255, 0.15);
color: #34d399;
}
.ehb-rev-cost-tooltip__head {
display: flex;
align-items: center;
justify-content: space-between;
font-weight: 700;
font-size: 11px;
margin-bottom: 6px;
padding-bottom: 5px;
border-bottom: 1px solid rgba(255, 255, 255, 0.15);
color: #fbbf24;
}
.ehb-rev-cost-tooltip__list {
display: flex;
flex-direction: column;
gap: 4px;
}
.ehb-rev-cost-tooltip__item {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
line-height: 1.5;
}
.ehb-rev-cost-tooltip__tag {
display: inline-flex;
align-items: center;
gap: 6px;
color: #cbd5e1;
font-weight: 500;
}
.ehb-rev-cost-tooltip__dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: #f59e0b;
}
.ehb-rev-cost-tooltip__val {
font-weight: 700;
font-family: var(--bi-font-mono);
color: #ffffff;
}
.ehb-rev-cost-tooltip__foot {
margin-top: 6px;
padding-top: 5px;
border-top: 1px dashed rgba(255, 255, 255, 0.18);
display: flex;
align-items: center;
justify-content: space-between;
font-weight: 700;
}
.ehb-rev-income-tooltip__list {
display: flex;
flex-direction: column;
gap: 4px;
}
.ehb-rev-income-tooltip__item {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
line-height: 1.5;
}
.ehb-rev-income-tooltip__cust-name {
color: #cbd5e1;
font-weight: 500;
max-width: 175px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ehb-rev-income-tooltip__cust-name.is-other {
color: #94a3b8;
font-style: italic;
}
.ehb-rev-income-tooltip__cust-val {
font-weight: 700;
font-family: var(--bi-font-mono);
color: #ffffff;
}
.ehb-rev-income-tooltip__foot {
margin-top: 6px;
padding-top: 5px;
border-top: 1px dashed rgba(255, 255, 255, 0.18);
display: flex;
align-items: center;
justify-content: space-between;
font-weight: 700;
}
.ehb-rev-bar.is-cost {
background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
}
.ehb-rev-bar.is-income {
background: linear-gradient(180deg, #34d399 0%, #10b981 100%);
}
.ehb-rev-label {
margin-top: 8px;
font-size: 11px;
color: #64748b;
font-family: var(--bi-font-mono);
}
/* 两图排布行 */
.ehb-two-charts-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
}
/* 汇总大表卡片 (加氢站加氢汇总 & 客户账单汇总) */
.ehb-sum-table-card {
background: #ffffff;
border-radius: var(--bi-radius);
border: 1px solid var(--bi-hairline);
padding: 18px;
margin-top: 12px;
}
.ehb-sum-table-card__head {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 12px;
}
.ehb-sum-table-card__title {
font-size: 14px;
font-weight: 700;
color: var(--bi-text-body);
}
.ehb-sum-table-card__meta {
font-size: 11px;
font-weight: 600;
color: #64748b;
font-family: var(--bi-font-mono);
}
.ehb-sum-table-wrap {
width: 100%;
overflow-x: auto;
}
.ehb-sum-table {
width: 100%;
border-collapse: collapse;
text-align: left;
}
.ehb-sum-table th {
font-size: 11px;
font-weight: 600;
color: #64748b;
padding: 10px 12px;
border-bottom: 1px solid #f1f5f9;
white-space: nowrap;
}
.ehb-sum-table td {
font-size: 12px;
color: #334155;
padding: 10px 12px;
border-bottom: 1px solid #f8fafc;
white-space: nowrap;
}
.ehb-sum-table tr:hover td {
background-color: #f8fafc;
}
.ehb-sum-table .col-idx {
width: 40px;
text-align: center;
color: #94a3b8;
font-family: var(--bi-font-mono);
font-size: 11px;
}
.ehb-sum-table .col-bold-kg {
font-weight: 700;
font-family: var(--bi-font-mono);
color: #0f172a;
}
.ehb-sum-table .col-green-fee {
font-weight: 700;
color: #10b981;
font-family: var(--bi-font-mono);
}
.ehb-sum-table .col-orange-cost {
font-weight: 700;
color: #f59e0b;
font-family: var(--bi-font-mono);
}
.ehb-stay-tuned-tag {
display: inline-block;
font-size: 11px;
font-weight: 500;
color: #64748b;
background: #f1f5f9;
border: 1px dashed #cbd5e1;
border-radius: 4px;
padding: 1px 6px;
cursor: help;
transition: all 0.2s ease;
}
.ehb-stay-tuned-tag:hover {
color: #533afd;
background: #f0f0ff;
border-color: #a5b4fc;
}
/* KPI 数据来源穿透 Modal 弹窗 */
.ehb-modal-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(15, 23, 42, 0.7);
backdrop-filter: blur(8px);
z-index: 1000;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
animation: ehbFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes ehbFadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.ehb-modal-card {
background: #ffffff;
border-radius: 12px;
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
width: 100%;
max-width: 1100px;
max-height: 90vh;
display: flex;
flex-direction: column;
overflow: hidden;
border: 1px solid rgba(226, 232, 240, 0.8);
animation: ehbSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes ehbSlideUp {
from { opacity: 0; transform: translateY(16px) scale(0.98); }
to { opacity: 1; transform: translateY(0) scale(1); }
}
.ehb-modal-head {
padding: 16px 20px;
background: #0f172a;
color: #ffffff;
display: flex;
align-items: center;
justify-content: space-between;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.ehb-modal-head__title-group {
display: flex;
align-items: center;
gap: 10px;
}
.ehb-modal-head__title {
font-size: 16px;
font-weight: 700;
color: #f8fafc;
display: flex;
align-items: center;
gap: 8px;
}
.ehb-modal-head__sub {
font-size: 12px;
color: #94a3b8;
margin-top: 2px;
}
.ehb-modal-back-btn {
display: inline-flex;
align-items: center;
gap: 4px;
background: rgba(255, 255, 255, 0.12);
border: 1px solid rgba(255, 255, 255, 0.2);
color: #f8fafc;
padding: 5px 10px;
border-radius: 8px;
font-size: 13px;
font-weight: 600;
cursor: pointer;
margin-right: 8px;
transition: all 0.2s ease;
flex-shrink: 0;
}
.ehb-modal-back-btn:hover {
background: rgba(56, 189, 248, 0.2);
border-color: #38bdf8;
color: #38bdf8;
}
.ehb-modal-head__actions {
display: flex;
align-items: center;
gap: 12px;
}
.ehb-modal-close-btn {
background: rgba(255, 255, 255, 0.1);
border: none;
color: #cbd5e1;
width: 32px;
height: 32px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
transition: all 0.2s;
}
.ehb-modal-close-btn:hover {
background: rgba(239, 68, 68, 0.8);
color: #ffffff;
}
.ehb-modal-body {
padding: 20px;
overflow-y: auto;
flex: 1;
background: #f8fafc;
}
.ehb-modal-meta-bar {
background: #ffffff;
border-radius: 8px;
border: 1px solid #e2e8f0;
padding: 14px 18px;
margin-bottom: 16px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
flex-wrap: wrap;
}
.ehb-modal-meta-item {
display: flex;
flex-direction: column;
gap: 2px;
}
.ehb-modal-meta-label {
font-size: 11px;
color: #64748b;
}
.ehb-modal-meta-val {
font-size: 16px;
font-weight: 800;
color: #0f172a;
font-family: var(--bi-font-mono);
}
.ehb-modal-filter-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 16px;
background: #ffffff;
padding: 10px 14px;
border-radius: 8px;
border: 1px solid #e2e8f0;
flex-wrap: wrap;
}
.ehb-modal-filter-group {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
}
/* 穿透筛弱提示:灰色小字 */
.ehb-modal-hint-text {
font-size: 11px;
font-weight: 400;
color: var(--bi-tertiary, #94a3b8);
line-height: 1.4;
margin: 0;
}
.ehb-modal-filter-group > .ehb-modal-hint-text {
flex: 1;
min-width: 180px;
}
.ehb-modal-hint-text strong {
color: inherit;
font-weight: 400;
}
.ehb-order-more-row {
display: inline-flex;
align-items: center;
flex-wrap: wrap;
gap: 8px;
}
.ehb-order-more-btn {
color: #0284c7;
cursor: pointer;
border: 1px solid #bae6fd;
background: #f0f9ff;
padding: 2px 8px;
border-radius: 4px;
font-size: 11px;
font-weight: 600;
font-family: inherit;
flex-shrink: 0;
}
.ehb-order-more-btn:hover {
background: #e0f2fe;
border-color: #7dd3fc;
}
.ehb-order-more-hint {
font-size: 11px;
font-weight: 400;
color: var(--bi-tertiary, #94a3b8);
line-height: 1.4;
}
.ehb-modal-search-input {
display: inline-flex;
align-items: center;
gap: 6px;
background: #ffffff;
border: 1px solid #cbd5e1;
border-radius: 6px;
padding: 4px 10px;
height: 32px;
font-size: 12px;
width: 220px;
transition: all 0.2s;
box-sizing: border-box;
}
.ehb-modal-search-input:focus-within {
border-color: #0284c7;
box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}
.ehb-modal-search-input input {
border: none !important;
outline: none !important;
background: transparent !important;
flex: 1;
min-width: 0;
padding: 0 !important;
margin: 0 !important;
font-size: 12px;
color: #0f172a;
font-family: inherit;
box-shadow: none !important;
}
.ehb-modal-search-input button {
border: none;
background: transparent;
padding: 0;
margin: 0;
color: #94a3b8;
cursor: pointer;
display: inline-flex;
align-items: center;
justify-content: center;
}
.ehb-modal-search-input button:hover {
color: #ef4444;
}
.ehb-modal-select {
border: 1px solid #cbd5e1;
border-radius: 6px;
padding: 0 8px;
height: 32px;
font-size: 12px;
color: #334155;
background: #ffffff;
min-width: 140px;
outline: none;
cursor: pointer;
transition: all 0.2s;
box-sizing: border-box;
}
/* BI 可搜索选择器(穿透筛 · 非 V2) */
.ehb-bi-search-select {
position: relative;
flex-shrink: 0;
}
.ehb-bi-search-select.is-disabled {
opacity: 0.55;
pointer-events: none;
}
.ehb-bi-search-select__trigger {
display: inline-flex;
align-items: center;
justify-content: space-between;
gap: 6px;
width: 100%;
height: 32px;
padding: 0 10px;
border: 1px solid #cbd5e1;
border-radius: 6px;
background: #fff;
font-size: 12px;
color: #64748b;
cursor: pointer;
box-sizing: border-box;
}
.ehb-bi-search-select__trigger.has-value {
color: #0f172a;
}
.ehb-bi-search-select__trigger.is-open,
.ehb-bi-search-select__trigger:hover {
border-color: #0284c7;
}
.ehb-bi-search-select__trigger.is-open {
box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}
.ehb-bi-search-select__label {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
text-align: left;
flex: 1;
min-width: 0;
}
.ehb-bi-search-select__chevron {
flex-shrink: 0;
color: #64748b;
}
.ehb-bi-search-select__dropdown {
position: absolute;
top: calc(100% + 4px);
left: 0;
right: 0;
min-width: 100%;
z-index: 40;
background: #fff;
border: 1px solid #e2e8f0;
border-radius: 8px;
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
overflow: hidden;
}
.ehb-bi-search-select__search {
display: flex;
align-items: center;
gap: 6px;
padding: 8px 10px;
border-bottom: 1px solid #e2e8f0;
color: #94a3b8;
}
.ehb-bi-search-select__search input {
flex: 1;
min-width: 0;
border: none !important;
outline: none !important;
background: transparent !important;
box-shadow: none !important;
font-size: 12px;
color: #0f172a;
padding: 0 !important;
margin: 0 !important;
font-family: inherit;
}
.ehb-bi-search-select__list {
max-height: 220px;
overflow-y: auto;
padding: 4px;
}
.ehb-bi-search-select__item {
display: block;
width: 100%;
text-align: left;
border: none;
background: transparent;
padding: 8px 10px;
border-radius: 6px;
font-size: 12px;
color: #334155;
cursor: pointer;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ehb-bi-search-select__item:hover {
background: #f1f5f9;
}
.ehb-bi-search-select__item.is-selected {
background: #e0f2fe;
color: #0369a1;
font-weight: 600;
}
.ehb-bi-search-select__empty {
padding: 12px 10px;
font-size: 12px;
color: #94a3b8;
text-align: center;
}
.ehb-modal-select:focus {
border-color: #0284c7;
box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.15);
}
/* Modal 内可钻取 Tree Table */
.ehb-modal-table-wrap {
background: #ffffff;
border-radius: 8px;
border: 1px solid #e2e8f0;
overflow: hidden;
}
.ehb-modal-table-wrap.is-v-scroll {
max-height: min(52vh, 440px);
overflow-y: auto;
}
.ehb-modal-table {
width: 100%;
border-collapse: collapse;
text-align: left;
}
.ehb-modal-table th {
background: #f1f5f9;
font-size: 11px;
font-weight: 700;
color: #475569;
padding: 10px 12px;
border-bottom: 1px solid #e2e8f0;
white-space: nowrap;
}
.ehb-modal-table td {
padding: 10px 12px;
font-size: 12px;
border-bottom: 1px solid #f1f5f9;
white-space: nowrap;
}
/* Modal 树形表格层级与 H5 换行多行适配 */
.ehb-modal-table th:first-child,
.ehb-modal-table td:first-child {
min-width: 240px;
}
.ehb-tree-node-title {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 4px 6px;
line-height: 1.4;
}
.ehb-tree-node-sub {
font-size: 11px;
color: #64748b;
font-weight: 400;
white-space: normal;
}
.ehb-tree-ord-block {
display: flex;
flex-direction: column;
gap: 2px;
line-height: 1.3;
}
.ehb-tree-ord-time {
font-size: 10px;
color: #64748b;
font-weight: 400;
}
.ehb-tree-cell-l1 { padding-left: 12px; }
.ehb-tree-cell-l2 { padding-left: 28px; }
.ehb-tree-cell-l3 { padding-left: 44px; }
.ehb-tree-cell-l4 { padding-left: 60px; }
.ehb-modal-table tr:hover td {
background-color: #f8fafc;
}
/* KPI 点击下钻提示图标/按钮 */
.ehb-kpi-drill-hint {
font-size: 10px;
color: var(--oneos-primary, #533afd);
background: rgba(83, 58, 253, 0.08);
padding: 2px 6px;
border-radius: 4px;
font-weight: 600;
margin-left: 6px;
display: inline-flex;
align-items: center;
gap: 2px;
transition: all 0.2s ease;
}
.ehb-kpi-dual:hover .ehb-kpi-drill-hint {
background: #533afd;
color: #ffffff;
}
.ehb-kpi-dual {
cursor: pointer;
transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.ehb-kpi-dual:hover {
transform: translateY(-2px);
box-shadow: 0 8px 20px -2px rgba(83, 58, 253, 0.15);
}
/* 迷你比例进度条 */
.ehb-ratio-flex {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 10px;
}
.ehb-mini-bar-track {
width: 60px;
height: 5px;
background: #f1f5f9;
border-radius: 3px;
overflow: hidden;
position: relative;
}
.ehb-mini-bar-fill {
height: 100%;
border-radius: 3px;
}
.ehb-mini-bar-fill.is-blue {
background: #0284c7;
}
.ehb-mini-bar-fill.is-green {
background: #10b981;
}
.ehb-ratio-text {
font-size: 11px;
font-family: var(--bi-font-mono);
color: #475569;
min-width: 42px;
text-align: right;
}
/* 承担方 Badge */
.ehb-bearer-tag {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 1px 8px;
border-radius: 4px;
font-size: 11px;
font-weight: 600;
}
.ehb-bearer-tag.is-cust {
color: #d97706;
background: #fffbe3;
border: 1px solid #fde68a;
}
.ehb-bearer-tag.is-lingniu {
color: #2563eb;
background: #eff6ff;
border: 1px solid #bfdbfe;
}
/* Top5 站条形图 */
.ehb-top-stations-list {
display: flex;
flex-direction: column;
gap: 12px;
}
.ehb-top-station-item {
display: flex;
align-items: center;
gap: 10px;
}
.ehb-top-rank {
display: flex;
align-items: center;
justify-content: center;
width: 20px;
height: 20px;
border-radius: 50%;
background: #0284c7;
color: #ffffff;
font-size: 11px;
font-weight: 700;
font-family: var(--bi-font-mono);
flex-shrink: 0;
}
.ehb-top-rank.is-sub {
background: #94a3b8;
}
.ehb-top-station-name {
font-size: 12px;
font-weight: 600;
color: #1e293b;
width: 150px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
flex-shrink: 0;
}
.ehb-top-bar-bg {
flex: 1;
height: 12px;
background: #f1f5f9;
border-radius: 6px;
overflow: visible;
position: relative;
}
.ehb-top-bar-fill {
height: 100%;
display: flex;
overflow: hidden;
border-radius: 6px;
transition: width 0.3s ease;
position: relative;
}
.ehb-top-bar-seg {
height: 100%;
transition: width 0.2s ease;
}
.ehb-top-bar-seg.is-own {
background: linear-gradient(90deg, #38bdf8 0%, #0284c7 100%);
}
.ehb-top-bar-seg.is-ext {
background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
}
/* Top5 站加氢量横向 Hover 自定义悬浮卡 */
.ehb-top-bar-tooltip {
position: absolute;
bottom: calc(100% + 8px);
left: 50%;
transform: translateX(-50%) translateY(4px);
background: rgba(15, 23, 42, 0.94);
backdrop-filter: blur(10px);
color: #ffffff;
padding: 8px 12px;
border-radius: 6px;
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35);
font-size: 11px;
white-space: nowrap;
pointer-events: none;
opacity: 0;
visibility: hidden;
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
z-index: 30;
min-width: 210px;
}
.ehb-top-bar-bg:hover .ehb-top-bar-tooltip,
.ehb-top-station-item:hover .ehb-top-bar-tooltip {
opacity: 1;
visibility: visible;
transform: translateX(-50%) translateY(0);
}
.ehb-top-bar-tooltip__head {
font-weight: 700;
color: #38bdf8;
font-size: 11px;
margin-bottom: 4px;
padding-bottom: 4px;
border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.ehb-top-bar-tooltip__row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
line-height: 1.6;
}
.ehb-top-bar-tooltip__left {
display: flex;
align-items: center;
gap: 6px;
color: #cbd5e1;
}
.ehb-top-bar-tooltip__dot {
width: 6px;
height: 6px;
border-radius: 50%;
}
.ehb-top-bar-tooltip__dot.is-own {
background: #38bdf8;
}
.ehb-top-bar-tooltip__dot.is-ext {
background: #f59e0b;
}
.ehb-top-bar-tooltip__val {
font-weight: 700;
font-family: var(--bi-font-mono);
color: #ffffff;
}
.ehb-top-bar-tooltip__foot {
margin-top: 4px;
padding-top: 4px;
border-top: 1px dashed rgba(255, 255, 255, 0.15);
display: flex;
align-items: center;
justify-content: space-between;
color: #cbd5e1;
font-weight: 700;
}
.ehb-top-station-val {
font-size: 12px;
font-weight: 700;
font-family: var(--bi-font-mono);
color: #0f172a;
width: 70px;
text-align: right;
flex-shrink: 0;
}
/* 迷你切换分段页签 (如:按省 / 按市) */
.ehb-mini-tabs {
display: inline-flex;
align-items: center;
background: #f1f5f9;
border-radius: 6px;
padding: 2px;
gap: 2px;
}
.ehb-mini-tab {
border: none;
background: transparent;
padding: 2px 10px;
font-size: 11px;
font-weight: 500;
color: #64748b;
border-radius: 4px;
cursor: pointer;
transition: all 0.2s ease;
}
.ehb-mini-tab.is-active {
background: #ffffff;
color: #0284c7;
font-weight: 700;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
/* 区域占比 Donut */
.ehb-donut-section {
display: flex;
align-items: center;
gap: 20px;
}
.ehb-donut-chart-wrap {
position: relative;
width: 130px;
height: 130px;
flex-shrink: 0;
}
.ehb-donut-center-text {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
}
.ehb-donut-center-text .title {
font-size: 10px;
color: #64748b;
}
.ehb-donut-center-text .val {
font-size: 13px;
font-weight: 800;
color: #0f172a;
font-family: var(--bi-font-mono);
}
.ehb-region-legend-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 8px 16px;
flex: 1;
}
.ehb-region-legend-item {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 11px;
}
.ehb-region-legend-left {
display: flex;
align-items: center;
gap: 6px;
color: #334155;
}
.ehb-region-dot {
width: 7px;
height: 7px;
border-radius: 50%;
flex-shrink: 0;
}
.ehb-region-legend-val {
font-weight: 700;
font-family: var(--bi-font-mono);
color: #0f172a;
}
@media (max-width: 1100px) {
.ehb-two-charts-row {
grid-template-columns: 1fr;
}
}
.ehb-h5-scroll-hint {
display: none;
}
@media (max-width: 767px) {
.ehb-rail {
display: none;
}
.ehb-body {
padding: 10px 10px 24px;
}
.ehb-chrome {
margin: -6px -6px 10px;
padding: 8px 10px;
}
.ehb-chrome__lead {
flex-direction: column;
align-items: flex-start !important;
gap: 6px !important;
}
.ehb-chrome__lead h1 {
font-size: 17px;
}
.ehb-time-range-pill {
font-size: 11px !important;
padding: 3px 8px !important;
}
.ehb-daily-kpi-grid,
.ehb-host-kpi {
display: grid !important;
grid-template-columns: repeat(2, 1fr) !important;
gap: 8px !important;
margin-bottom: 12px !important;
}
.ehb-daily-kpi-card,
.ehb-kpi-dual {
padding: 10px 10px !important;
box-sizing: border-box !important;
min-width: 0 !important;
}
.ehb-daily-kpi-head,
.ehb-kpi-dual__head {
margin-bottom: 4px !important;
}
.ehb-daily-kpi-title,
.ehb-kpi-dual__label {
font-size: 11px !important;
white-space: nowrap !important;
overflow: hidden !important;
text-overflow: ellipsis !important;
}
.ehb-kpi-dual__num {
font-size: 18px !important;
line-height: 1.2 !important;
font-weight: 700 !important;
}
.ehb-kpi-dual__unit {
font-size: 11px !important;
margin-left: 2px !important;
}
.ehb-daily-kpi-sub,
.ehb-kpi-dual__footer {
font-size: 10px !important;
line-height: 1.3 !important;
color: #64748b !important;
word-break: break-all !important;
margin-top: 4px !important;
}
.ehb-insight {
grid-template-columns: 1fr !important;
}
.ehb-filters__rule {
display: none;
}
/* 彻底隐藏 H5 场景下所有导出/下载 Excel 按钮 */
.ehb-export-btn,
.ehb-daily-export-btn,
.ehb-modal-head__actions .ehb-btn {
display: none !important;
}
/* 1. H5 过滤卡片与按键整齐防错行 */
.ehb-daily-filter-card {
padding: 10px !important;
}
.ehb-daily-filter-row {
flex-direction: column !important;
align-items: stretch !important;
gap: 10px !important;
}
.ehb-daily-filter-group {
flex-wrap: wrap !important;
gap: 8px !important;
width: 100% !important;
justify-content: space-between !important;
}
.ehb-fleet-segmented {
width: 100% !important;
display: flex !important;
box-sizing: border-box !important;
}
.ehb-fleet-btn {
flex: 1 !important;
justify-content: center !important;
text-align: center !important;
padding: 0 4px !important;
font-size: 12px !important;
height: 36px !important;
min-height: 36px !important;
white-space: nowrap !important;
}
.ehb-fleet-btn svg {
display: none !important; /* H5 隐藏车辆 Icon 腾出空间防字折断 */
}
.ehb-pill-tabs {
width: 100% !important;
display: flex !important;
box-sizing: border-box !important;
}
.ehb-pill-btn {
flex: 1 !important;
justify-content: center !important;
text-align: center !important;
padding: 0 4px !important;
font-size: 12px !important;
height: 36px !important;
min-height: 36px !important;
white-space: nowrap !important;
}
.ehb-year-select-wrapper {
width: 100% !important;
}
.ehb-year-btn {
width: 100% !important;
height: 36px !important;
justify-content: space-between !important;
}
.ehb-dp-trigger {
height: 36px !important;
padding: 0 8px !important;
font-size: 12px !important;
flex: 1 !important;
}
/* 2. H5 Modal 下钻全屏沉浸 */
.ehb-modal-overlay {
padding: 0 !important;
align-items: flex-start !important;
justify-content: flex-start !important;
z-index: 9999 !important;
top: 0 !important;
left: 0 !important;
right: 0 !important;
bottom: 0 !important;
overflow: hidden !important;
}
.ehb-modal-card {
width: 100vw !important;
max-width: 100vw !important;
height: 100% !important;
height: 100dvh !important;
max-height: 100dvh !important;
border-radius: 0 !important;
border: none !important;
box-shadow: none !important;
display: flex !important;
flex-direction: column !important;
}
.ehb-modal-head {
padding-top: max(10px, env(safe-area-inset-top, 10px)) !important;
padding-bottom: 10px !important;
padding-left: 12px !important;
padding-right: 12px !important;
min-height: 52px !important;
background: #0f172a !important;
box-sizing: border-box !important;
flex-shrink: 0 !important;
}
.ehb-modal-head__title-group {
display: flex !important;
align-items: center !important;
gap: 8px !important;
flex: 1 !important;
min-width: 0 !important;
}
.ehb-modal-head__title-group > div {
flex: 1 !important;
min-width: 0 !important;
}
.ehb-modal-head__title {
font-size: 13px !important;
line-height: 1.3 !important;
font-weight: 700 !important;
white-space: nowrap !important;
overflow: hidden !important;
text-overflow: ellipsis !important;
}
.ehb-modal-head__sub {
font-size: 10px !important;
color: #94a3b8 !important;
white-space: nowrap !important;
overflow: hidden !important;
text-overflow: ellipsis !important;
margin-top: 2px !important;
display: block !important;
-webkit-line-clamp: unset !important;
}
.ehb-modal-back-btn {
padding: 4px 8px !important;
font-size: 12px !important;
min-height: 32px !important;
height: 32px !important;
flex-shrink: 0 !important;
}
.ehb-modal-body {
padding: 10px 10px 20px !important;
}
.ehb-modal-meta-bar {
grid-template-columns: repeat(2, 1fr) !important;
gap: 6px !important;
padding: 8px !important;
}
.ehb-modal-meta-item {
padding: 4px 6px !important;
}
.ehb-modal-meta-label {
font-size: 10px !important;
}
.ehb-modal-meta-val {
font-size: 13px !important;
}
.ehb-modal-filter-row {
flex-direction: column !important;
align-items: stretch !important;
gap: 8px !important;
padding: 8px !important;
}
.ehb-modal-filter-group {
width: 100% !important;
gap: 8px !important;
}
.ehb-modal-filter-group select {
flex: 1 !important;
min-width: 0 !important;
}
/* 3. 统一 H5 控件高度 36px,弱化提示卡占空间 */
.ehb-modal-search-input,
.ehb-modal-select,
.ehb-bi-search-select,
.ehb-bi-search-select__trigger {
width: 100% !important;
height: 36px !important;
min-height: 36px !important;
font-size: 12px !important;
box-sizing: border-box !important;
}
.ehb-modal-hint-text {
font-size: 11px !important;
font-weight: 400 !important;
color: var(--bi-tertiary, #94a3b8) !important;
line-height: 1.4 !important;
margin: 2px 0 !important;
}
.ehb-modal-hint-text strong {
color: inherit !important;
font-weight: 400 !important;
}
/* 钻取表 100% 支撑横滚与右侧财务/状态列可见,第一列支持多行(2-3行)无缝自适应 */
.ehb-modal-table-wrap {
width: 100% !important;
overflow-x: auto !important;
-webkit-overflow-scrolling: touch !important;
display: block !important;
border-radius: 8px !important;
border: 1px solid #e2e8f0 !important;
box-shadow: inset -6px 0 8px -4px rgba(15, 23, 42, 0.1) !important;
}
.ehb-modal-table {
min-width: 820px !important;
table-layout: auto !important;
}
.ehb-modal-table th,
.ehb-modal-table td {
padding: 8px 8px !important;
font-size: 11px !important;
white-space: normal !important;
word-break: break-word !important;
}
.ehb-modal-table th:first-child,
.ehb-modal-table td:first-child {
min-width: 250px !important;
}
/* H5 移动端紧凑树结构缩进 */
.ehb-tree-cell-l1 { padding-left: 6px !important; }
.ehb-tree-cell-l2 { padding-left: 16px !important; }
.ehb-tree-cell-l3 { padding-left: 26px !important; }
.ehb-tree-cell-l4 { padding-left: 36px !important; }
.ehb-h5-scroll-hint {
display: block !important;
font-size: 11px !important;
color: #0284c7 !important;
background: rgba(2, 132, 199, 0.08) !important;
padding: 4px 8px !important;
border-radius: 4px !important;
margin-bottom: 6px !important;
text-align: center !important;
font-weight: 500 !important;
}
/* H5 下日期 Popover 与年份 Select 转 Bottom Sheet */
.ehb-date-popover,
.ehb-year-dropdown {
position: fixed !important;
bottom: 0 !important;
left: 0 !important;
right: 0 !important;
top: auto !important;
width: 100vw !important;
max-width: 100vw !important;
border-radius: 16px 16px 0 0 !important;
box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.3) !important;
z-index: 10000 !important;
animation: ehbSlideUpSheet 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
@keyframes ehbSlideUpSheet {
from { transform: translateY(100%); }
to { transform: translateY(0); }
}
/* 图表头部与图例 H5 上下分行两端对齐,彻底消除图例重叠挤压 */
.ehb-daily-chart-head,
.ehb-chart-box-head {
flex-direction: column !important;
align-items: flex-start !important;
gap: 8px !important;
margin-bottom: 10px !important;
}
.ehb-daily-chart-title,
.ehb-chart-box-title {
width: 100% !important;
}
.ehb-daily-chart-meta-group {
width: 100% !important;
display: flex !important;
align-items: center !important;
justify-content: space-between !important;
gap: 8px !important;
}
.ehb-daily-chart-legend,
.ehb-chart-legend-inline {
display: flex !important;
align-items: center !important;
gap: 10px !important;
}
.ehb-legend-item,
.ehb-chart-legend-tag {
font-size: 11px !important;
}
.ehb-daily-chart-meta,
.ehb-chart-box-meta {
font-size: 10px !important;
color: #64748b !important;
white-space: nowrap !important;
}
/* 图表与表格在 H5 下的自适应 */
.ehb-daily-bar-container {
overflow-x: auto !important;
overflow-y: hidden !important;
-webkit-overflow-scrolling: touch !important;
padding-top: 28px !important;
padding-bottom: 24px !important;
gap: 10px !important;
}
.ehb-daily-bar-col {
flex: 0 0 46px !important;
min-width: 46px !important;
max-width: 46px !important;
}
.ehb-daily-bar-fill {
width: 24px !important;
max-width: 24px !important;
}
.ehb-daily-bar-val {
font-size: 11px !important;
font-weight: 600 !important;
top: -22px !important;
}
.ehb-daily-bar-label {
font-size: 11px !important;
margin-top: 6px !important;
white-space: nowrap !important;
}
.ehb-mbar-chart,
.ehb-rev-chart {
overflow-x: auto !important;
-webkit-overflow-scrolling: touch !important;
padding-bottom: 6px !important;
}
.ehb-mbar-col {
min-width: 42px !important;
}
.ehb-rev-col-group {
min-width: 52px !important;
}
.ehb-donut-section {
flex-direction: column !important;
align-items: center !important;
}
.ehb-region-legend-grid {
grid-template-columns: repeat(2, 1fr) !important;
width: 100% !important;
}
.ehb-sum-table-card__head {
flex-direction: column !important;
align-items: flex-start !important;
gap: 8px !important;
}
.ehb-mini-tabs {
overflow-x: auto !important;
max-width: 100% !important;
padding-bottom: 2px;
}
/* 提示文案 H5 适配:单行显示不跨行 */
.ehb-show-h5 {
display: inline !important;
}
.ehb-hide-h5 {
display: none !important;
}
.ehb-daily-table-title,
.ehb-daily-chart-title {
display: flex !important;
align-items: center !important;
flex-wrap: nowrap !important;
white-space: nowrap !important;
overflow: hidden !important;
max-width: 100% !important;
}
.ehb-title-sub {
font-size: 11px !important;
color: var(--bi-tertiary) !important;
margin-left: 4px !important;
white-space: nowrap !important;
overflow: hidden !important;
text-overflow: ellipsis !important;
}
/* 4. H5 按住/悬浮图标 Tooltip 沉浸居中/屏内安全弹出,100% 绝对不超出屏外 */
.ehb-mbar-col:hover .ehb-mbar-tooltip,
.ehb-rev-bar.is-income:hover .ehb-rev-income-tooltip,
.ehb-rev-bar.is-cost:hover .ehb-rev-cost-tooltip,
.ehb-top-bar-bg:hover .ehb-top-bar-tooltip,
.ehb-top-station-item:hover .ehb-top-bar-tooltip {
position: fixed !important;
top: 50% !important;
left: 50% !important;
right: auto !important;
bottom: auto !important;
transform: translate(-50%, -50%) !important;
width: calc(100vw - 32px) !important;
max-width: 320px !important;
z-index: 10002 !important;
box-shadow: 0 16px 40px rgba(15, 23, 42, 0.5) !important;
pointer-events: none;
animation: ehbTooltipCenterFade 0.2s ease-out !important;
}
@keyframes ehbTooltipCenterFade {
from {
opacity: 0;
transform: translate(-50%, -46%);
}
to {
opacity: 1;
transform: translate(-50%, -50%);
}
}
}
/* ===== 站日报 + 现结进账(体系A)· 增量,不覆盖既有 .ehb-table ===== */
.ehb-seg--wrap {
display: flex;
flex-wrap: wrap;
grid-template-columns: none;
min-width: 0;
gap: 3px;
}
.ehb-seg--wrap button {
flex: 0 0 auto;
min-width: 64px;
}
.ehb-cash-banner {
display: flex;
flex-direction: column;
gap: 4px;
padding: 10px 14px;
border-radius: 10px;
background: #f0f9ff;
border: 1px solid #bae6fd;
color: #0c4a6e;
font-size: 12px;
line-height: 1.5;
margin-bottom: 12px;
}
.ehb-cash-banner strong {
font-size: 13px;
color: #0369a1;
}
.ehb-field-label {
display: flex;
flex-direction: column;
gap: 4px;
font-size: 12px;
color: #64748b;
font-weight: 600;
}
.ehb-native-select,
.ehb-native-input {
min-height: 36px;
height: 36px;
border: 1px solid #e2e8f0;
border-radius: 8px;
padding: 0 10px;
font-size: 13px;
color: #0f172a;
background: #fff;
min-width: 160px;
}
.ehb-native-input.is-num {
text-align: right;
font-variant-numeric: tabular-nums;
}
.ehb-btn--primary {
background: #0284c7;
color: #fff;
border-color: #0284c7;
}
.ehb-btn--primary:hover {
background: #0369a1;
color: #fff;
border-color: #0369a1;
}
.ehb-sd-card {
background: #fff;
border: 1px solid #e2e8f0;
border-radius: 12px;
overflow: hidden;
}
.ehb-table-card {
background: #fff;
border: 1px solid #e2e8f0;
border-radius: 12px;
overflow: hidden;
}
.ehb-sd-card__head,
.ehb-table-card__head {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 8px;
padding: 12px 14px;
border-bottom: 1px solid #f1f5f9;
}
.ehb-sd-card__title,
.ehb-table-card__title {
font-size: 14px;
font-weight: 700;
color: #0f172a;
}
.ehb-sd-card__hint,
.ehb-table-card__hint {
font-size: 11px;
color: #94a3b8;
}
.ehb-sd-scroll,
.ehb-table-scroll {
overflow: auto;
}
.ehb-empty-cell {
text-align: center !important;
color: #94a3b8;
padding: 28px 12px !important;
}
.ehb-row-actions {
display: flex;
gap: 10px;
flex-wrap: wrap;
}
.ehb-link-btn {
display: inline-flex;
align-items: center;
gap: 4px;
background: none;
border: none;
color: #0284c7;
font-size: 12px;
font-weight: 600;
cursor: pointer;
padding: 0;
}
.ehb-link-btn.is-danger {
color: #dc2626;
}
.ehb-muted-hint {
font-size: 12px;
color: #94a3b8;
align-self: flex-end;
padding-bottom: 6px;
}
.ehb-kpi-grid--4 {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 12px;
}
.ehb-kpi-card {
background: #fff;
border: 1px solid #e2e8f0;
border-radius: 12px;
padding: 14px 16px;
}
.ehb-kpi-card__label {
font-size: 12px;
color: #64748b;
font-weight: 600;
margin-bottom: 6px;
}
.ehb-kpi-card__value {
font-size: 22px;
font-weight: 800;
color: #0f172a;
font-variant-numeric: tabular-nums;
line-height: 1.2;
}
.ehb-kpi-card__sub {
margin-top: 6px;
font-size: 12px;
color: #94a3b8;
}
.ehb-kpi-unit {
font-size: 13px;
font-weight: 600;
margin-left: 4px;
color: #64748b;
}
.ehb-station-trend {
display: flex;
gap: 8px;
overflow-x: auto;
padding: 8px 4px 4px;
min-height: 160px;
align-items: flex-end;
}
.ehb-station-trend__col {
flex: 0 0 48px;
display: flex;
flex-direction: column;
align-items: center;
gap: 4px;
}
.ehb-station-trend__val {
font-size: 11px;
color: #64748b;
font-variant-numeric: tabular-nums;
}
.ehb-station-trend__bar-wrap {
width: 100%;
height: 110px;
display: flex;
align-items: flex-end;
justify-content: center;
}
.ehb-station-trend__bar {
width: 22px;
border-radius: 4px 4px 2px 2px;
background: linear-gradient(180deg, #60a5fa, #2563eb);
}
.ehb-station-trend__date {
font-size: 11px;
color: #94a3b8;
}
.ehb-dual-tables {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
}
.ehb-tag--own {
background: #e0f2fe;
color: #0369a1;
}
.ehb-tag--ext {
background: #fff7ed;
color: #c2410c;
}
.ehb-cash-modal {
max-width: 720px;
width: calc(100% - 24px);
}
.ehb-cash-modal-note {
font-size: 12px;
color: #0369a1;
background: #f0f9ff;
border-radius: 8px;
padding: 8px 10px;
margin: 0 0 12px;
}
.ehb-form-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
margin-bottom: 14px;
}
.ehb-form-grid label {
display: flex;
flex-direction: column;
gap: 6px;
font-size: 12px;
font-weight: 600;
color: #64748b;
}
.ehb-form-span2 {
grid-column: 1 / -1;
}
.ehb-cash-lines-head {
display: flex;
align-items: center;
justify-content: space-between;
margin: 8px 0;
font-size: 13px;
font-weight: 700;
color: #0f172a;
}
.ehb-manual-total {
display: flex;
flex-direction: column;
gap: 6px;
font-size: 12px;
font-weight: 600;
color: #64748b;
}
.ehb-cash-modal-foot {
display: flex;
justify-content: flex-end;
gap: 8px;
padding: 12px 16px;
border-top: 1px solid #f1f5f9;
background: #fff;
}
.ehb-cash-modal .ehb-modal-body {
overflow: auto;
max-height: min(70vh, 560px);
padding: 16px;
}
.ehb-toast {
position: fixed;
bottom: 24px;
left: 50%;
transform: translateX(-50%);
background: #0f172a;
color: #fff;
padding: 10px 16px;
border-radius: 999px;
font-size: 13px;
z-index: 10050;
box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
}
.ehb-table .is-num,
.ehb-sum-table .is-num {
text-align: right;
font-variant-numeric: tabular-nums;
}
.ehb-table .is-mono {
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 12px;
}
.ehb-table tr.is-total td {
font-weight: 700;
background: #f8fafc;
}
@media (max-width: 767px) {
.ehb-kpi-grid--4 {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ehb-dual-tables {
grid-template-columns: 1fr;
}
.ehb-form-grid {
grid-template-columns: 1fr;
}
.ehb-station-trend__col {
flex-basis: 46px;
}
}