Files
ln-bi/src/modules/energy/hydrogen/board/styles/energy-bi-board.css
T
dsh-agent 7556dbcebc refactor(stage2): 生产代码移出 src/vendor,氢能收敛为分层 feature
src/vendor 语义是'第三方/参考',却装着线上氢能看板并反向 import
src/modules,依赖方向倒挂。本次把生产代码归位并建立氢能分层:

  src/modules/energy/hydrogen/
    index.tsx        导航入口(原 HydrogenModule.tsx)
    api.ts types.ts  HTTP 与 DTO
    dev-mock-api.ts  仅 dev 的 vite 插件(仍由 vite.config.ts 引用)
    model/           纯逻辑(format / bearing-labels / daily-detail-format)
    board/           经营看板 UI(原 vendor energy-h2-bi-board)
    station-daily/   单站日报 UI(原 vendor energy-h2-station-daily)
    drill/           下钻弹层 UI(原 hydrogen-bi-v2 的 UI 部分)
    common/          工具与共享组件(原 vendor common + prototype-download)
    fonts/           JetBrains Mono(原 vendor resources/design-system)

- UI 与 CSS 逐字节保留,仅移动位置与改写相对 import。
- 删除自挂载原型入口后遗留的 2 个 annotation-source.json。
- vite.config.ts 与 tsconfig 的路径/exclude 同步清理。
- independent-entry.test.ts 不再硬编码路径,改为断言'两个入口解析到同一文件'。

导入改写用一次性 codemod 完成(按旧位置解析、按新位置重写),
lint / test(131) / build 全绿,可达性分析仍为 0 未引用文件。
2026-09-11 10:14:37 +08:00

8046 lines
186 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 '../../fonts/jetbrains-mono/jetbrains-mono.css';
/* —— 访问口令门(轻门禁 · 对齐宿主蓝系,非 V2 组件) —— */
.ehb-gate {
--bi-text: #0f172a;
--bi-muted: #64748b;
--bi-blue: #2f6bff;
--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;
}
/* P2 accessibility: one mobile navigation owns the interaction layer; key controls
remain at least 36px on desktop and 44px on touch-sized viewports. */
@media (min-width: 768px) {
.ehb-rail { pointer-events: none; }
.ehb-chrome__tools .ehb-seg button,
.ehb-overview-filter .ehb-fleet-btn,
.ehb-overview-filter .ehb-pill-btn,
.ehb-mini-tab,
.ehb-mobile-detail-tabs button,
.ehb-overview-filter .ehb-year-select-btn { min-height: 36px !important; }
}
@media (max-width: 767px) {
.ehb-rail { display: none !important; pointer-events: none; visibility: hidden; }
.ehb-mobile-bottom-nav button,
.ehb-mobile-view-mode [role="tab"],
.ehb-mobile-primary-filters > button,
.ehb-mobile-primary-filters .ehb-year-select-btn,
.ehb-mobile-filter-body .ehb-pill-btn,
.ehb-mobile-filter-body .ehb-fleet-btn,
.ehb-mobile-daily-presets .ehb-pill-btn { min-height: 44px !important; }
}
/* Data detail switch: one surface and one interaction model on desktop and mobile. */
.ehb-mobile-detail-tabs-card {
position: relative;
display: block;
grid-column: 1 / -1;
min-width: 0;
width: 100%;
overflow: hidden;
border: 1px solid var(--bi-hairline);
border-radius: 18px;
background: #fff;
}
/* 全局报表数值降噪:表格值使用中性色,趋势仅由小箭头表达。 */
.ehb-table tbody td,
.ehb-modal-table tbody td,
.ehb-station-detail-table tbody td,
.ehb-sum-table tbody td {
color: #334155 !important;
}
.ehb-day-change,
.ehb-trend-value {
color: #334155 !important;
font-weight: 600;
}
.ehb-day-change.is-up::after,
.ehb-trend-value.is-up::after {
content: ' ▲';
color: #059669;
font-size: 10px;
}
.ehb-day-change.is-down::after,
.ehb-trend-value.is-down::after {
content: ' ▼';
color: #dc2626;
font-size: 10px;
}
.ehb-mobile-detail-tabs-head {
display: flex;
align-items: center;
gap: 18px;
padding: 16px 20px 0;
}
.ehb-mobile-detail-tabs-title {
color: #18263d;
font-size: 16px;
font-weight: 750;
white-space: nowrap;
}
.ehb-mobile-detail-tabs {
display: inline-flex;
gap: 3px;
padding: 3px;
border-radius: 10px;
background: #eef3f9;
}
.ehb-mobile-detail-tabs button {
min-width: 112px;
min-height: 34px;
padding: 0 16px;
border: 0;
border-radius: 8px;
background: transparent;
color: #60728d;
font-size: 12px;
font-weight: 700;
cursor: pointer;
}
.ehb-mobile-detail-tabs button.is-active {
background: #fff;
color: #2f6bff;
box-shadow: 0 1px 4px rgba(32, 67, 116, .12);
}
.ehb-mobile-detail-panel {
margin: 0 !important;
border: 0 !important;
border-radius: 0 !important;
background: transparent !important;
box-shadow: none !important;
}
.ehb-mobile-detail-panel:not(.is-active) { display: none; }
.ehb-mobile-detail-panel .ehb-sum-table-card__title { display: none; }
.ehb-mobile-detail-tabs-card .ehb-station-fullscreen-trigger { top: 14px; right: 18px; }
.ehb-province-label--mobile {
display: none;
}
@media (max-width: 767px) {
/* Fixed mobile sheets must use the viewport, not the blurred header as a containing block. */
.ehb-chrome {
backdrop-filter: none !important;
}
.ehb-date-popover,
.ehb-year-dropdown {
box-sizing: border-box !important;
}
.ehb-mobile-detail-tabs-card {
border-radius: 16px;
}
.ehb-mobile-detail-tabs-head {
display: block;
padding: 14px 14px 0;
padding-inline-end: 14px !important;
}
.ehb-mobile-detail-tabs-title {
padding-right: 112px;
color: #18263d;
font-size: 16px;
font-weight: 750;
}
.ehb-mobile-detail-tabs {
display: grid;
width: 100%;
box-sizing: border-box;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 3px;
margin-top: 12px;
padding: 3px;
border-radius: 10px;
background: #eef3f9;
}
.ehb-mobile-detail-tabs button {
min-height: 44px;
border: 0;
border-radius: 8px;
background: transparent;
color: #60728d;
font-size: 12px;
font-weight: 700;
}
.ehb-mini-tab {
min-width: 44px;
min-height: 44px;
}
.ehb-province-label--desktop {
display: none;
}
.ehb-province-label--mobile {
display: inline;
}
.ehb-station-summary-card .ehb-sum-table-card__head > div {
width: 100%;
min-width: 0;
}
.ehb-station-summary-card .ehb-mini-tabs {
width: 100%;
min-width: 0;
overflow-x: auto;
flex-wrap: nowrap;
box-sizing: border-box;
}
.ehb-chart-box-head {
min-width: 0;
overflow: hidden;
}
.ehb-chart-legend-inline {
width: 100%;
min-width: 0;
flex-wrap: wrap;
}
.ehb-chart-box-meta {
max-width: 100%;
}
/* Hidden chart tooltips must not enlarge the document on narrow screens. */
.ehb-mbar-tooltip,
.ehb-rev-income-tooltip,
.ehb-top-bar-tooltip {
display: none !important;
}
.ehb-mbar-col:hover .ehb-mbar-tooltip,
.ehb-rev-bar.is-income:hover .ehb-rev-income-tooltip,
.ehb-top-bar-bg:hover .ehb-top-bar-tooltip,
.ehb-top-station-item:hover .ehb-top-bar-tooltip {
display: block !important;
}
.ehb-mobile-detail-tabs-card .mobile-list-fullscreen-trigger { top: 10px; right: 10px; }
.ehb-mobile-detail-tabs-card .ehb-station-fullscreen-trigger { display: none; }
}
.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: #2f6bff;
--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-scope-switches,
.ehb-view-switches {
display: flex;
align-items: center;
gap: 7px;
}
.ehb-switch-label {
color: var(--bi-muted);
font-size: 11px;
font-weight: 600;
white-space: nowrap;
}
.ehb-filter-toggle {
display: none;
}
.ehb-mobile-brand-icon,
.ehb-mobile-filter-panel {
display: none;
}
.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: #2f6bff;
color: #2f6bff;
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: #2f6bff;
}
.ehb-year-dropdown__item.is-selected {
background: #e0f2fe;
color: #2f6bff;
font-weight: 700;
}
.ehb-year-check {
font-size: 12px;
font-weight: 700;
color: #2f6bff;
}
.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-metric-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 10px;
}
.ehb-host-kpi,
.ehb-insight {
display: contents;
}
.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__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: #2f6bff;
}
.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: #2f6bff;
}
.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, #73a2ff, #2f6bff);
}
.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, #2f6bff, #8ab2ff); }
.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-range-summary {
display: flex;
align-items: center;
gap: 8px;
padding-top: 8px;
border-top: 1px solid #edf2f8;
color: var(--bi-muted);
font-size: 11px;
line-height: 1.4;
}
.ehb-daily-range-summary strong {
color: var(--bi-text-body);
font-weight: 600;
}
.ehb-daily-range-summary i {
color: var(--bi-tertiary);
font-style: normal;
}
.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: #2f6bff;
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: #2f6bff;
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: #2f6bff;
}
.ehb-dp-title-btn.is-active {
color: #2f6bff;
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: #2f6bff;
}
.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: #2f6bff;
}
.ehb-dp-day.is-selected {
background: #2f6bff;
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: #73a2ff;
color: #2f6bff;
background: #f0f9ff;
}
.ehb-dp-month-item.is-selected {
background: #2f6bff;
border-color: #2f6bff;
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: #73a2ff;
color: #2f6bff;
background: #f0f9ff;
}
.ehb-dp-year-item.is-selected {
background: #2f6bff;
border-color: #2f6bff;
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-value-up { color: #16866f; }
.ehb-value-down { color: #d45d52; }
.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: #2f6bff;
}
.ehb-legend-dot.is-ext {
background: #f59e0b;
}
.ehb-daily-chart-meta {
font-size: 11px;
color: var(--bi-tertiary);
}
.ehb-daily-summary-pills {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
margin-bottom: 16px;
padding: 0;
border: 1px solid #e5ebf3;
border-radius: 9px;
background: #f8fafc;
}
.ehb-daily-pill-item {
display: grid;
min-width: 0;
gap: 3px;
padding: 9px 12px;
color: var(--bi-muted);
font-size: 11px;
text-align: left;
}
.ehb-daily-pill-item + .ehb-daily-pill-item {
border-left: 1px solid #e5ebf3;
}
.ehb-daily-pill-item__label {
color: #71819b;
font-size: 10px;
}
.ehb-daily-pill-item__date,
.ehb-daily-pill-item__value {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ehb-daily-pill-item__date {
color: #3f526f;
font-family: var(--bi-font-mono);
font-size: 11px;
font-weight: 650;
}
.ehb-daily-pill-item__value {
color: var(--bi-text-body);
font-family: var(--bi-font-mono);
font-size: 13px;
font-weight: 750;
}
.ehb-daily-pill-item__value small {
color: #71819b;
font-family: var(--bi-font-sans);
font-size: 9px;
font-weight: 600;
}
/* Desktop has enough horizontal room: keep each summary on one scanning line. */
@media (min-width: 768px) {
.ehb-daily-pill-item {
display: flex;
box-sizing: border-box;
align-items: baseline;
gap: 10px;
min-height: 42px;
padding: 10px 14px;
}
.ehb-daily-pill-item__label {
flex: 0 0 auto;
}
.ehb-daily-pill-item__date {
min-width: 0;
}
.ehb-daily-pill-item__value {
flex: 0 0 auto;
margin-left: auto;
}
}
.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 #2f6bff;
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, #73a2ff 0%, #2f6bff 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, #73a2ff 0%, #2f6bff 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: #2f6bff;
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: #2f6bff;
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;
}
/* 穿透明细弹窗:蓝色只表示操作,普通数据与来源标签收敛为中性色。 */
.ehb-drill-modal--quiet .ehb-modal-meta-val {
color: #1e293b !important;
}
.ehb-drill-modal--quiet .ehb-modal-table td[style*="text-align: right"] {
color: #334155 !important;
}
.ehb-drill-modal--quiet .ehb-tag--own-fleet,
.ehb-drill-modal--quiet .ehb-tag--ext-fleet,
.ehb-drill-modal--quiet .ehb-tag--ext-cust {
border: 1px solid #dce4ee;
background: #f3f6f9;
color: #52627a;
}
.ehb-drill-modal--quiet .ehb-tag--source-api,
.ehb-drill-modal--quiet .ehb-tag--source-station,
.ehb-drill-modal--quiet .ehb-tag--source-lingniu {
border: 1px solid #d8e2ee;
background: #edf3f8;
color: #4f6580;
}
.ehb-drill-modal--quiet .ehb-modal-table tbody tr[style*="background"] td {
background-color: inherit;
}
.ehb-drill-modal--quiet .ehb-modal-table tbody tr:hover td {
background-color: #f4f7fb;
}
/* 锚点闪烁高亮 */
.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: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 12px;
margin-top: 12px;
margin-bottom: 12px;
}
.ehb-two-charts-row,
.ehb-sum-table-card {
grid-column: 1 / -1;
min-width: 0;
}
.ehb-chart-box {
background: #ffffff;
border-radius: var(--bi-radius);
border: 1px solid var(--bi-hairline);
padding: 16px;
min-width: 0;
}
.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, #73a2ff 0%, #2f6bff 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: #73a2ff;
}
.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:nth-last-child(-n + 2) .ehb-rev-income-tooltip,
.ehb-rev-col-group:nth-last-child(-n + 2) .ehb-rev-cost-tooltip {
left: auto;
right: 0;
transform: translateX(0) translateY(4px);
}
.ehb-rev-col-group:nth-last-child(-n + 2) .ehb-rev-bar.is-income:hover .ehb-rev-income-tooltip,
.ehb-rev-col-group:nth-last-child(-n + 2) .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: minmax(0, 1.2fr) minmax(0, 1fr);
gap: 12px;
align-items: start;
}
/* 汇总大表卡片 (加氢站加氢汇总 & 客户账单汇总) */
.ehb-sum-table-card {
background: #ffffff;
border-radius: var(--bi-radius);
border: 1px solid var(--bi-hairline);
padding: 18px;
margin-top: 0;
}
.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%;
max-width: 100%;
overflow-x: auto;
}
.ehb-sum-table {
width: 100%;
min-width: 960px;
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: #b7c4d8;
margin-top: 4px;
font-family: var(--bi-font-mono);
font-variant-numeric: tabular-nums;
line-height: 1.25;
}
.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: #73a2ff;
color: #73a2ff;
}
.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-mobile-drill-overview { display: none; }
.ehb-mobile-drill-overview__metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.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-drill-period-controls,
.ehb-drill-date-range {
display: inline-flex;
align-items: center;
gap: 6px;
flex: 0 0 auto;
}
.ehb-drill-period-controls select,
.ehb-drill-period-controls input {
height: 34px;
box-sizing: border-box;
border: 1px solid #d5dfeb;
border-radius: 7px;
background: #fff;
color: #334155;
font: 600 12px/1 var(--bi-font);
padding: 0 9px;
}
.ehb-drill-period-controls select { width: 122px; }
.ehb-drill-period-controls input[type='month'] { width: 122px; }
.ehb-drill-period-controls input[type='date'] { width: 126px; }
.ehb-drill-date-range > span { color: #7b8aa1; font-size: 11px; }
.ehb-drill-period-controls select:focus,
.ehb-drill-period-controls input:focus {
border-color: #7fa5ef;
outline: 2px solid rgba(47, 107, 255, 0.12);
}
.ehb-drill-period-select {
position: relative;
flex: 0 0 122px;
width: 122px;
}
.ehb-drill-period-trigger {
display: flex;
width: 100%;
height: 34px;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 0 10px;
border: 1px solid #d5dfeb;
border-radius: 7px;
background: #fff;
color: #334155;
font: 600 12px/1 var(--bi-font);
white-space: nowrap;
cursor: pointer;
}
.ehb-drill-period-trigger > span {
white-space: nowrap;
}
.ehb-drill-period-menu {
position: absolute;
z-index: 30;
top: calc(100% + 4px);
left: 0;
width: max(100%, 132px);
overflow: hidden;
border: 1px solid #d5dfeb;
border-radius: 8px;
background: #fff;
box-shadow: 0 10px 24px rgba(28, 48, 78, .16);
}
.ehb-drill-period-menu button {
display: block;
width: 100%;
min-height: 34px;
padding: 0 10px;
border: 0;
background: #fff;
color: #40516b;
font: 600 12px/1 var(--bi-font);
text-align: left;
cursor: pointer;
}
.ehb-drill-period-menu button:hover,
.ehb-drill-period-menu button.is-selected {
background: #eef4ff;
color: #2f6bff;
}
/* 全局钻取弹窗:统一布局密度与颜色角色。 */
.ehb-drill-modal--unified .ehb-modal-body {
padding: 18px;
background: #f6f8fb;
}
.ehb-drill-modal--unified .ehb-modal-meta-bar {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
align-items: stretch;
gap: 0;
padding: 0;
overflow: hidden;
background: #fff;
}
.ehb-drill-modal--unified .ehb-modal-meta-item {
min-width: 0;
padding: 12px 16px;
border-inline-end: 1px solid #edf1f6;
}
.ehb-drill-modal--unified .ehb-modal-meta-item:last-child {
border-inline-end: 0;
}
.ehb-drill-modal--unified .ehb-modal-meta-val {
color: #1e293b !important;
}
.ehb-drill-modal--unified .ehb-station-core-metrics {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
.ehb-station-core-metrics .ehb-metric-divider {
color: #a3afc0;
font-weight: 500;
}
.ehb-drill-modal--unified .ehb-modal-filter-row {
gap: 8px;
padding: 8px 12px;
margin-bottom: 12px;
}
.ehb-drill-modal--unified .ehb-modal-filter-group {
width: 100%;
gap: 8px;
}
.ehb-drill-modal--unified .ehb-modal-hint-text {
flex: 1 1 280px;
min-width: 220px;
color: #7b8aa1;
}
.ehb-drill-modal--unified .ehb-modal-table-wrap {
border-color: #dfe7f0;
border-radius: 8px;
background: #fff;
}
.ehb-drill-modal--unified .ehb-modal-table th {
height: 38px;
padding-block: 8px;
background: #f1f4f8;
color: #52627a;
}
.ehb-drill-modal--unified .ehb-modal-table > tbody > tr > td {
height: 40px;
padding-block: 8px;
border-bottom-color: #edf1f5;
}
.ehb-drill-modal--unified .ehb-modal-table td[style*="text-align: right"] {
color: #334155 !important;
}
.ehb-drill-modal--unified .ehb-day-change.is-up { color: #059669 !important; }
.ehb-drill-modal--unified .ehb-day-change.is-down { color: #dc2626 !important; }
.ehb-drill-modal--unified .ehb-key-volume,
.ehb-drill-modal--unified .ehb-modal-table td.ehb-key-volume,
.ehb-drill-modal--unified .ehb-station-detail-table td.ehb-key-volume {
color: #2f6bff !important;
}
.ehb-drill-modal--unified .ehb-key-income,
.ehb-drill-modal--unified .ehb-modal-table td.ehb-key-income,
.ehb-drill-modal--unified .ehb-station-detail-table td.ehb-key-income {
color: #2c8a78 !important;
}
.ehb-drill-modal--unified .ehb-station-detail-row > td {
padding: 0 10px 10px !important;
}
.ehb-drill-modal--unified .ehb-station-detail-table th,
.ehb-drill-modal--unified .ehb-station-detail-table td {
height: 34px;
padding: 7px 10px;
}
.ehb-drill-modal--unified .ehb-station-detail-table th {
border-bottom: 1px solid #cbd7e6;
background: #e6edf6;
color: #344a67;
font-weight: 700;
box-shadow: inset 0 -1px 0 #cbd7e6;
}
.ehb-drill-modal--unified .ehb-station-detail-table {
table-layout: fixed;
}
.ehb-drill-modal--unified .ehb-station-detail-table td:nth-child(2) {
overflow: hidden;
text-overflow: ellipsis;
}
.ehb-vehicle-time-stack {
display: inline-flex;
min-width: 0;
flex-direction: column;
align-items: flex-start;
gap: 2px;
line-height: 1.15;
}
.ehb-vehicle-time-stack strong {
color: #1e293b;
font-size: 12px;
font-weight: 650;
white-space: nowrap;
}
.ehb-vehicle-time-stack small {
color: #8796ac;
font-family: var(--bi-font-mono);
font-size: 10px;
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.ehb-tree-node-title--vehicle-time { align-items: flex-start; }
/* 穿透筛弱提示:灰色小字 */
.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: #2f6bff;
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: #2f6bff;
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: #2f6bff;
}
.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: #2f6bff;
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-drill-filter-summary,
.ehb-order-mobile-summary {
display: none;
}
.ehb-drill-filter-summary-row,
.ehb-recent-kpis {
display: contents;
}
.ehb-modal-head__actions .mobile-list-fullscreen-trigger {
position: static;
}
.ehb-modal-table tr:hover td {
background-color: #f8fafc;
}
.ehb-station-day-row {
background: #f8fafc;
font-weight: 600;
cursor: pointer;
}
.ehb-day-change {
font-family: var(--bi-font-mono);
font-weight: 700;
color: #94a3b8;
}
.ehb-day-change.is-up { color: #059669; }
.ehb-day-change.is-down { color: #dc2626; }
.ehb-station-detail-row > td {
padding: 0 12px 12px !important;
background: #f8fafc !important;
}
.ehb-station-detail-table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
border: 1px solid #e2e8f0;
border-radius: 8px;
overflow: hidden;
background: #fff;
}
.ehb-station-detail-table th,
.ehb-station-detail-table td {
padding: 9px 12px;
border-bottom: 1px solid #edf2f7;
background: #fff;
color: #475569;
font-size: 11px;
text-align: left;
white-space: nowrap;
}
.ehb-station-detail-table th {
border-bottom: 1px solid #cbd7e6;
background: #e6edf6;
color: #344a67;
font-weight: 700;
}
.ehb-station-detail-table tbody tr:last-child td { border-bottom: 0; }
/* 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: #2f6bff;
}
.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;
min-width: 34px;
padding: 2px 6px;
border-radius: 4px;
font-size: 11px;
font-weight: 600;
line-height: 1.4;
white-space: nowrap;
}
.ehb-modal-table .ehb-bearer-col {
width: 56px;
min-width: 56px;
max-width: 56px;
padding-inline: 4px !important;
}
.ehb-bearer-tag.is-cust {
color: #d97706;
background: #fffbe3;
border: 1px solid #fde68a;
}
.ehb-bearer-tag.is-lingniu {
color: #2f6bff;
background: #eff6ff;
border: 1px solid #bfdbfe;
}
.ehb-bearer-tag.is-company {
color: #2f6bff;
background: #eff6ff;
border: 1px solid #bfdbfe;
}
.ehb-bearer-tag.is-customer {
color: #b45309;
background: #fffbeb;
border: 1px solid #fde68a;
}
.ehb-bearer-tag.is-pending {
color: #64748b;
background: #f1f5f9;
border: 1px solid #cbd5e1;
}
/* Top5 站条形图 */
.ehb-top-stations-list {
display: flex;
flex-direction: column;
gap: 12px;
}
/* 新版补齐:三类承担方式、五项 KPI 及可切换下钻维度。 */
.ehb-kpi-dual__deck.is-three {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 6px;
}
.ehb-kpi-dual__deck.is-three > span {
display: flex;
min-width: 0;
flex-direction: column;
}
.ehb-kpi-dual__deck.is-three small {
overflow: hidden;
font-size: 10px;
font-weight: 500;
text-overflow: ellipsis;
white-space: nowrap;
}
.ehb-kpi-dual__deck.is-three strong {
overflow: hidden;
color: var(--bi-text-body);
font-size: 11px;
text-overflow: ellipsis;
white-space: nowrap;
}
.ehb-drill-axis {
width: fit-content;
margin: 0 0 10px auto;
}
@media (min-width: 1181px) {
.ehb-metric-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
.ehb-host-kpi > .ehb-kpi-dual:nth-child(5) { display: flex; }
.ehb-host-kpi .ehb-kpi-dual:nth-child(5) {
min-height: 146px;
padding: 14px 16px;
border: 1px solid #dce5f0;
border-radius: 14px;
background: #fff;
}
}
@media (max-width: 767px) {
.ehb-host-kpi > .ehb-kpi-dual:nth-child(1),
.ehb-host-kpi > .ehb-kpi-dual:nth-child(2) { min-height: 150px; }
.ehb-host-kpi > .ehb-kpi-dual:nth-child(n+3) {
display: flex;
min-height: 92px;
padding: 10px 12px;
}
.ehb-host-kpi > .ehb-kpi-dual:nth-child(5) { grid-column: 1 / -1; }
.ehb-host-kpi > .ehb-kpi-dual:nth-child(n+3) .ehb-kpi-dual__num { font-size: 20px; }
.ehb-drill-axis { width: 100%; margin: 0 0 10px; }
.ehb-drill-axis button { flex: 1; }
}
.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: #2f6bff;
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, #73a2ff 0%, #2f6bff 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: #73a2ff;
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: #73a2ff;
}
.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 {
min-height: 36px;
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: #2f6bff;
font-weight: 700;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
/* 区域占比 Donut */
.ehb-donut-section {
display: flex;
align-items: center;
justify-content: center;
gap: 32px;
}
.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, minmax(150px, 180px));
justify-content: start;
gap: 10px 24px;
}
.ehb-region-legend-item {
display: grid;
grid-template-columns: minmax(76px, auto) 44px;
align-items: center;
justify-content: start;
column-gap: 10px;
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 {
min-width: 44px;
text-align: right;
font-weight: 700;
font-family: var(--bi-font-mono);
color: #0f172a;
}
@media (max-width: 1100px) {
.ehb-overview-charts {
grid-template-columns: minmax(0, 1fr);
}
.ehb-two-charts-row {
grid-template-columns: minmax(0, 1fr);
}
}
.ehb-h5-scroll-hint {
display: none;
}
@media (max-width: 767px) {
.ehb-drill-filter-summary {
display: flex;
width: 100%;
min-height: 54px;
align-items: center;
justify-content: space-between;
gap: 10px;
margin: 0 0 10px;
padding: 9px 12px;
border: 1px solid #d7e1ef;
border-radius: 12px;
background: #fff;
color: #1e293b;
text-align: left;
}
.ehb-drill-filter-summary__content {
display: grid;
min-width: 0;
gap: 2px;
}
.ehb-drill-filter-summary__label {
color: #7183a0;
font-size: 10px;
font-weight: 600;
}
.ehb-drill-filter-summary__content strong {
overflow: hidden;
color: #1e293b;
font-size: 12px;
line-height: 1.35;
text-overflow: ellipsis;
white-space: nowrap;
}
.ehb-drill-filter-summary__action {
display: inline-flex;
flex: 0 0 auto;
align-items: center;
gap: 4px;
color: #2f6bff;
font-size: 11px;
font-weight: 600;
}
.ehb-drill-filter-summary__action svg { transition: transform .18s ease; }
.ehb-drill-filter-summary__action svg.is-open { transform: rotate(180deg); }
.ehb-drill-filter-panel:not(.is-open) {
display: none !important;
}
.ehb-drill-filter-panel.is-open {
display: flex;
margin-bottom: 10px;
}
.ehb-order-desktop-primary { display: none; }
.ehb-order-mobile-summary {
display: grid;
min-width: 270px;
gap: 7px;
white-space: normal;
}
.ehb-order-mobile-main,
.ehb-order-mobile-secondary {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.ehb-order-mobile-main { color: #1e293b; }
.ehb-order-mobile-secondary {
color: #7183a0;
font-size: 10px;
overflow-wrap: anywhere;
}
.ehb-order-detail-cell { min-width: 300px; }
.ehb-modal-head__actions {
display: inline-flex;
align-items: center;
gap: 6px;
}
.ehb-modal-head__actions .mobile-list-fullscreen-trigger {
position: static;
min-width: 84px;
height: 32px;
}
.ehb-rail {
display: none;
}
.ehb-body {
padding: 10px 10px 24px;
}
.ehb-chrome {
margin: -6px -6px 10px;
padding: 10px;
align-items: center;
gap: 10px;
}
.ehb-chrome__lead {
display: flex;
flex: 1;
min-width: 0;
flex-direction: row;
align-items: center !important;
gap: 10px !important;
}
.ehb-mobile-brand-icon {
display: inline-flex;
width: 38px;
height: 38px;
flex: 0 0 38px;
align-items: center;
justify-content: center;
border-radius: 10px;
color: #fff;
background: var(--bi-blue);
}
.ehb-chrome__identity {
min-width: 0;
}
.ehb-crumb {
display: none;
}
.ehb-chrome__lead h1 {
font-size: 18px;
line-height: 1.25;
}
.ehb-chrome__tools {
width: auto;
flex: 0 0 auto;
}
.ehb-scope-switches {
width: auto;
align-items: center;
flex-direction: row;
gap: 0;
}
.ehb-view-switches {
display: none;
}
.ehb-scope-switches .ehb-switch-label {
display: none;
}
.ehb-scope-switches .ehb-seg {
width: auto;
min-width: 132px;
border-radius: 9px;
}
.ehb-scope-switches .ehb-seg button {
min-height: 32px;
height: 32px;
padding: 0 11px;
font-size: 13px;
}
.ehb-time-range-pill {
max-width: 230px;
margin-top: 2px;
padding: 0 !important;
border: 0 !important;
border-radius: 0 !important;
background: transparent !important;
box-shadow: none !important;
color: var(--bi-muted) !important;
font-size: 11px !important;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.ehb-mobile-filter-panel {
display: block;
width: 100%;
}
.ehb-mobile-view-mode {
display: grid;
grid-template-columns: auto minmax(0, 1fr);
align-items: center;
gap: 12px;
margin-bottom: 8px;
}
.ehb-mobile-view-mode > span {
color: #475569;
font-size: 12px;
font-weight: 700;
}
.ehb-mobile-view-mode > div {
display: grid;
min-height: 40px;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 3px;
padding: 3px;
border-radius: 10px;
background: #eef3f9;
}
.ehb-mobile-view-mode button {
min-height: 34px;
border: 0;
border-radius: 7px;
background: transparent;
color: var(--bi-muted);
font-size: 13px;
font-weight: 700;
}
.ehb-mobile-view-mode button.is-active {
background: #fff;
color: var(--bi-blue);
box-shadow: var(--bi-shadow-sm);
}
.ehb-mobile-primary-filters {
margin-bottom: 8px;
}
.ehb-mobile-overview-quick {
display: grid;
grid-template-columns: auto minmax(0, 1fr);
gap: 8px;
}
.ehb-mobile-overview-quick .ehb-year-select-btn,
.ehb-mobile-overview-quick .ehb-pill-tabs {
min-height: 40px;
}
.ehb-mobile-filter-bar {
display: flex;
box-sizing: border-box;
width: 100%;
min-height: 48px;
align-items: center;
gap: 7px;
padding: 5px 7px 5px 10px;
border: 1px solid #dbe4ee;
border-radius: 11px;
background: #fff;
}
.ehb-mobile-filter-trigger {
display: flex;
min-width: 0;
flex: 1;
min-height: 48px;
align-items: center;
gap: 9px;
padding: 0;
border: 0;
background: transparent;
color: var(--bi-text-body);
text-align: left;
}
.ehb-mobile-filter-icon {
display: inline-flex;
width: 28px;
height: 28px;
flex: 0 0 28px;
align-items: center;
justify-content: center;
border-radius: 8px;
background: var(--bi-blue-soft);
color: var(--bi-blue);
}
.ehb-mobile-filter-copy {
display: flex;
min-width: 0;
flex: 1;
flex-direction: column;
gap: 1px;
}
.ehb-mobile-filter-copy strong {
font-size: 13px;
line-height: 1.2;
}
.ehb-mobile-filter-copy small {
overflow: hidden;
color: var(--bi-muted);
font-size: 11px;
line-height: 1.25;
text-overflow: ellipsis;
white-space: nowrap;
}
.ehb-mobile-filter-trigger > svg {
flex: 0 0 auto;
transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.ehb-mobile-filter-trigger > svg.is-open {
transform: rotate(180deg);
}
.ehb-mobile-filter-body {
margin-top: 8px;
padding: 12px;
border: 1px solid var(--bi-hairline);
border-radius: 11px;
background: #fff;
}
.ehb-mobile-filter-field {
display: flex;
flex-direction: column;
gap: 7px;
margin-bottom: 12px;
}
.ehb-mobile-filter-field > span {
color: #475569;
font-size: 12px;
font-weight: 700;
}
.ehb-mobile-daily-presets {
display: grid !important;
grid-template-columns: repeat(4, minmax(0, 1fr));
width: 100%;
}
.ehb-mobile-daily-presets .ehb-pill-btn {
min-width: 0;
padding: 0 4px !important;
}
.ehb-mobile-date-fields {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
margin-bottom: 12px;
}
.ehb-mobile-date-fields .ehb-daily-date-picker-wrapper,
.ehb-mobile-date-fields .ehb-daily-date-picker {
width: 100%;
min-width: 0;
}
.ehb-mobile-refresh {
display: inline-flex;
min-height: 40px;
align-items: center;
justify-content: center;
gap: 6px;
padding: 0 12px;
border: 1px solid var(--bi-hairline);
border-radius: 9px;
background: #fff;
color: var(--bi-muted);
font-size: 13px;
font-weight: 700;
}
.ehb-mobile-refresh:disabled {
cursor: wait;
opacity: 0.72;
}
.ehb-mobile-view-filter {
display: grid;
height: 44px;
grid-template-columns: 1fr 1fr;
gap: 3px;
padding: 3px;
border-radius: 9px;
background: #f1f5f9;
}
.ehb-mobile-view-filter button {
border: 0;
border-radius: 7px;
background: transparent;
color: var(--bi-muted);
font-size: 13px;
font-weight: 700;
}
.ehb-mobile-view-filter button.is-active {
background: #fff;
color: var(--bi-blue);
box-shadow: var(--bi-shadow-sm);
}
.ehb-mobile-filter-apply {
width: 100%;
min-height: 44px;
border: 0;
border-radius: 9px;
background: var(--bi-blue);
color: #fff;
font-size: 14px;
font-weight: 700;
}
.ehb-daily-kpi-grid,
.ehb-metric-grid {
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: normal !important;
overflow: visible !important;
text-overflow: clip !important;
line-height: 1.3 !important;
}
.ehb-kpi-drill-hint {
display: none !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-kpi-dual__deck {
display: grid !important;
grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
gap: 6px !important;
align-items: start !important;
font-size: 10px !important;
line-height: 1.35 !important;
}
.ehb-kpi-dual__deck span {
min-width: 0 !important;
overflow-wrap: anywhere !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-filter-toggle {
display: none;
}
.ehb-filter-toggle svg {
transition: transform 0.2s ease;
}
.ehb-filter-toggle svg.is-open {
transform: rotate(180deg);
}
.ehb-overview-filter {
display: none !important;
}
.ehb-overview-filter.is-open {
display: none !important;
}
.ehb-daily-container > .ehb-daily-filter-card {
display: none !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;
}
.ehb-drill-period-controls {
width: 100%;
}
.ehb-drill-period-controls select {
flex: 0 0 82px !important;
}
.ehb-drill-period-controls input[type='month'],
.ehb-drill-date-range {
flex: 1;
}
/* 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: #2f6bff !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: 74px !important;
left: 12px !important;
right: 12px !important;
top: auto !important;
width: auto !important;
max-width: none !important;
max-height: calc(100dvh - 90px) !important;
overflow-y: auto !important;
overscroll-behavior: contain;
border-radius: 16px !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, minmax(0, 1fr)) !important;
width: 100% !important;
}
.ehb-region-legend-item {
grid-template-columns: minmax(0, auto) 44px !important;
justify-content: center !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%);
}
}
}
@keyframes ehbRefreshSpin {
to { transform: rotate(360deg); }
}
.is-spinning {
animation: ehbRefreshSpin 0.8s linear infinite;
}
/* ===== 站日报 + 现结进账(体系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: #2f6bff;
color: #fff;
border-color: #2f6bff;
}
.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: #2f6bff;
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, #8ab2ff, #2f6bff);
}
.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;
}
}
/* ========================================================================== */
/* 2026-08 经营驾驶舱视觉重构 */
/* ========================================================================== */
.ehb-shell {
--bi-app-bg: #f3f6fb;
--bi-hairline: #e6ecf4;
--bi-hairline-subtle: #edf1f6;
--bi-blue: #2f6bff;
--bi-blue-soft: #eef4ff;
--bi-green: #0ca678;
--bi-radius: 18px;
--bi-radius-sm: 14px;
--bi-shadow: 0 10px 30px rgba(27, 54, 93, .07);
background: var(--bi-app-bg);
}
.ehb-rail { width: 68px; padding-top: 20px; background: #101c31; }
.ehb-rail__item { width: 48px; border-radius: 12px; }
.ehb-rail__item.is-active { background: linear-gradient(145deg,#2f6bff,#4c86ff); box-shadow: 0 8px 18px rgba(47,107,255,.32); }
.ehb-body { max-width: 1680px; margin: 0 auto; padding: 22px 28px 44px; }
.ehb-chrome { margin: -8px -8px 18px; padding: 12px 8px 16px; align-items: center; background: rgba(243,246,251,.94); }
.ehb-chrome__lead h1 { font-size: 24px; font-weight: 800; }
.ehb-time-range-pill { border-color: #d9e5ff !important; background: #eef4ff !important; color: #2f6bff !important; }
.ehb-seg { min-width: 168px; padding: 4px; border-radius: 12px; background: #e9eef6; }
.ehb-seg button { height: 34px; border-radius: 9px; font-weight: 650; }
.ehb-seg button.is-active { color: #2f6bff; box-shadow: 0 3px 10px rgba(27,54,93,.08); }
.ehb-daily-filter-card,.ehb-overview-filter { border: 1px solid var(--bi-hairline) !important; border-radius: 16px !important; background: #fff !important; box-shadow: 0 4px 18px rgba(27,54,93,.045); }
.ehb-host { margin-bottom: 18px; padding: 0; border: 0; background: transparent; }
.ehb-metric-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.ehb-kpi-dual,.ehb-insight__card,.ehb-chart-box,.ehb-sum-table-card { border-color: var(--bi-hairline); box-shadow: 0 5px 20px rgba(27,54,93,.045); }
.ehb-kpi-dual { min-height: 134px; padding: 16px; border-radius: 16px; }
.ehb-host-kpi .ehb-kpi-dual:nth-child(1),.ehb-host-kpi .ehb-kpi-dual:nth-child(2) { min-height: 154px; padding: 18px; }
.ehb-host-kpi .ehb-kpi-dual:nth-child(1) { color: #fff; border-color: transparent; background: linear-gradient(145deg,#2f6bff,#4e88ff); box-shadow: 0 14px 28px rgba(47,107,255,.22); }
.ehb-host-kpi .ehb-kpi-dual:nth-child(1) .ehb-kpi-dual__label,.ehb-host-kpi .ehb-kpi-dual:nth-child(1) .ehb-kpi-dual__symbol,.ehb-host-kpi .ehb-kpi-dual:nth-child(1) .ehb-kpi-dual__unit,.ehb-host-kpi .ehb-kpi-dual:nth-child(1) .ehb-kpi-dual__footer { color: rgba(255,255,255,.78) !important; }
.ehb-host-kpi .ehb-kpi-dual:nth-child(1) .ehb-kpi-dual__num { color: #fff; }
.ehb-host-kpi .ehb-kpi-dual:nth-child(1) .ehb-kpi-dual__badge { color: #fff; background: rgba(255,255,255,.16); }
.ehb-host-kpi .ehb-kpi-dual:nth-child(1) .ehb-kpi-dual__deck { color: rgba(255,255,255,.9); background: rgba(255,255,255,.12); }
.ehb-kpi-dual__label { font-size: 13px; font-weight: 650; }
.ehb-kpi-dual__num { font-size: 28px; font-weight: 800; }
.ehb-kpi-dual__deck { margin-top: auto; padding: 7px 9px; border-radius: 8px; }
.ehb-insight__card { min-height: 100px; padding: 16px; border-radius: 16px; align-items: center; }
.ehb-insight__value { font-size: 21px; }
.ehb-overview-charts { gap: 16px; }
.ehb-chart-box,.ehb-sum-table-card { padding: 20px; border-radius: 18px; }
.ehb-chart-box-title,.ehb-sum-table-card__title { font-size: 15px; font-weight: 750; }
.ehb-sum-table th { background: #f8fafd; }
.ehb-sum-table tr:hover td { background: #f4f8ff; }
@media (max-width: 1180px) { .ehb-metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 767px) {
.ehb-shell { background: #f4f7fb; }
.ehb-body { padding: 10px 12px 28px; }
.ehb-chrome { position: relative; margin: 0 0 12px; padding: 14px; border: 1px solid var(--bi-hairline); border-radius: 18px; background: #fff; box-shadow: 0 6px 20px rgba(27,54,93,.05); }
.ehb-mobile-brand-icon { width: 42px; height: 42px; flex-basis: 42px; border-radius: 13px; background: linear-gradient(145deg,#2f6bff,#4e88ff); }
.ehb-chrome__lead h1 { font-size: 19px; }
.ehb-time-range-pill { max-width: 210px; }
.ehb-chrome__tools { position: absolute; top: 12px; right: 12px; }
.ehb-scope-switches .ehb-seg { min-width: 116px; }
.ehb-scope-switches .ehb-seg button { padding: 0 8px; font-size: 12px; }
.ehb-mobile-filter-panel { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--bi-hairline-subtle); }
.ehb-mobile-view-mode { grid-template-columns: 1fr; margin-bottom: 10px; }
.ehb-mobile-view-mode > span { display: none; }
.ehb-mobile-overview-quick { grid-template-columns: 112px minmax(0,1fr); }
.ehb-mobile-filter-bar { border-radius: 13px; background: #f8fafd; }
.ehb-mobile-filter-body { border-radius: 14px; box-shadow: 0 8px 20px rgba(27,54,93,.06); }
.ehb-host { margin-top: 2px; }
.ehb-metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 10px !important; }
.ehb-kpi-dual { min-height: 132px !important; padding: 13px !important; border-radius: 15px !important; }
.ehb-host-kpi .ehb-kpi-dual:nth-child(1),.ehb-host-kpi .ehb-kpi-dual:nth-child(2) { min-height: 158px !important; }
.ehb-kpi-dual__num { font-size: 24px !important; }
.ehb-kpi-dual__label { font-size: 12px !important; }
.ehb-kpi-dual__deck { display: flex !important; flex-direction: column; gap: 2px !important; padding: 7px !important; }
.ehb-insight__card { grid-column: 1/-1; min-height: 82px; padding: 13px; }
.ehb-overview-charts,.ehb-two-charts-row { display: grid; grid-template-columns: 1fr !important; gap: 12px; }
.ehb-chart-box,.ehb-sum-table-card { padding: 14px; border-radius: 16px; }
.ehb-chart-box-head,.ehb-sum-table-card__head { align-items: flex-start; gap: 8px; }
.ehb-sum-table-wrap { margin: 0 -14px -14px; padding: 0 14px 14px; scroll-snap-type: x proximity; }
.ehb-modal-overlay { padding: 0; }
.ehb-modal-card { max-height: 94vh; align-self: flex-end; border-radius: 18px 18px 0 0; }
}
/* 2026-08 低饱和经营看板:让数据成为视觉主角,颜色只承担状态与操作提示。 */
.ehb-shell {
--bi-blue: #5b78ad;
--bi-blue-soft: #eaf0f8;
--bi-purple: #2f6bff;
--bi-app-bg: #f5f7fa;
}
.ehb-rail__item.is-active {
background: #5f7dad;
box-shadow: 0 6px 14px rgba(45, 69, 105, 0.2);
}
.ehb-time-range-pill {
border-color: #dce5f1 !important;
background: #f1f5fa !important;
color: #4f6f9f !important;
}
.ehb-seg button.is-active,
.ehb-mini-tab.is-active {
color: var(--bi-blue);
}
.ehb-host-kpi .ehb-kpi-dual:nth-child(1) {
color: var(--bi-text-body);
border-color: #d7e1ee;
background: #eaf0f8;
box-shadow: 0 8px 18px rgba(45, 69, 105, 0.1);
}
.ehb-host-kpi .ehb-kpi-dual:nth-child(1) .ehb-kpi-dual__label,
.ehb-host-kpi .ehb-kpi-dual:nth-child(1) .ehb-kpi-dual__symbol,
.ehb-host-kpi .ehb-kpi-dual:nth-child(1) .ehb-kpi-dual__unit,
.ehb-host-kpi .ehb-kpi-dual:nth-child(1) .ehb-kpi-dual__footer {
color: #5d6f89 !important;
}
.ehb-host-kpi .ehb-kpi-dual:nth-child(1) .ehb-kpi-dual__num {
color: #21324d;
}
.ehb-host-kpi .ehb-kpi-dual:nth-child(1) .ehb-kpi-dual__badge {
color: #5271a3;
background: rgba(255, 255, 255, 0.66);
}
.ehb-host-kpi .ehb-kpi-dual:nth-child(1) .ehb-kpi-dual__deck {
color: #4f6380;
background: rgba(255, 255, 255, 0.58);
}
.ehb-daily-bar-fill,
.ehb-bar-segment.is-own,
.ehb-mbar-fill {
background: #2f6bff;
}
.ehb-bar-segment.is-ext {
background: #8fb4ff;
}
.ehb-rev-bar.is-cost {
background: #7c83e6;
}
.ehb-rev-bar.is-income {
background: #2f9fb3;
}
.ehb-kpi-dual__badge.is-purple { background: #eef4ff; color: #2f6bff; }
.ehb-kpi-drill-hint {
color: #2f6bff;
background: #eef4ff;
}
.ehb-kpi-dual:hover .ehb-kpi-drill-hint {
color: #ffffff;
background: #2f6bff;
}
.ehb-tag--source-lingniu {
color: #2f6bff;
background: #eef4ff;
}
.ehb-station-rank-item__bar > span,
.ehb-mini-bar-fill.is-blue,
.ehb-station-trend__bar,
.ehb-dim.is-lease::before,
.ehb-dim.is-ops::before {
background: #2f6bff;
}
.ehb-mini-bar-fill.is-orange,
.ehb-dim.is-logistics::before {
background: #f09a61;
}
.ehb-mobile-brand-icon {
background: #2f6bff;
}
.ehb-legend-sq.is-income {
background: #2f9fb3;
}
.ehb-legend-sq.is-cost {
background: #7c83e6;
}
.ehb-top-bar-seg.is-own {
background: #2f6bff;
}
.ehb-top-bar-seg.is-ext {
background: #8fb4ff;
}
/* 保留各图表原色,仅降低数据色块的视觉强度;按钮、文字和状态色不受影响。 */
.ehb-mbar-fill > div,
.ehb-bar-segment,
.ehb-top-bar-seg,
.ehb-rev-bar,
.ehb-chart-box .ehb-legend-sq,
.ehb-daily-chart-section .ehb-legend-dot,
.ehb-donut-chart-wrap circle:not(:first-child),
.ehb-region-legend-item [style*="background"],
.ehb-mini-bar-fill,
.ehb-station-rank-item__bar > span,
.ehb-daily-bar-fill,
.ehb-mobile-profit-track > span {
opacity: 0.78;
}
.ehb-station-name {
color: var(--bi-text-body);
font-weight: 600;
}
.ehb-entity-name,
.ehb-entity-cell {
color: var(--bi-text-body);
font-weight: 600;
}
.ehb-entity-action {
margin-left: 4px;
color: var(--bi-blue);
font-size: 11px;
font-weight: 400;
}
.ehb-station-view {
margin-left: 4px;
color: var(--bi-blue);
font-size: 11px;
font-weight: 400;
}
.ehb-station-province {
display: inline-flex;
padding: 1px 6px;
border-radius: 4px;
background: #eef3f8;
color: #5b7090;
font-size: 11px;
font-weight: 500;
}
.ehb-sum-table tr:hover td {
background: #f3f6fa;
}
/* Mobile dashboard: compact, number-first, and consistent with the desktop blue system. */
.ehb-mobile-updated,
.ehb-mobile-scope-chip,
.ehb-mobile-context-switch,
.ehb-mobile-section-title,
.ehb-mobile-month-summary,
.ehb-mobile-profit-summary,
.ehb-mobile-bottom-nav,
.ehb-mobile-view-chip,
.ehb-mobile-order-chip,
.ehb-mobile-fleet-chip,
.ehb-mobile-current-range {
display: none;
}
@media (max-width: 767px) {
.ehb-shell { min-width: 0; background: #f4f7fb; }
.ehb-rail { display: none; }
.ehb-body {
width: 100%;
min-width: 0;
padding: 14px;
padding-bottom: calc(84px + env(safe-area-inset-bottom));
}
.ehb-chrome {
margin: 0 0 8px;
padding: 2px 2px 8px;
border: 0;
border-bottom: 0;
border-radius: 0;
background: transparent;
box-shadow: none;
}
.ehb-chrome__lead { width: 100%; align-items: center; justify-content: space-between; gap: 10px; }
.ehb-chrome__identity { min-width: 0; }
.ehb-mobile-brand-icon,
.ehb-chrome__crumb,
.ehb-time-range-pill,
.ehb-chrome__tools { display: none !important; }
.ehb-chrome__lead h1 { margin: 0; font-size: 20px; line-height: 1.2; letter-spacing: -.4px; }
.ehb-mobile-updated { display: block; margin-top: 2px; color: #71819b; font-size: 11px; line-height: 1.25; }
.ehb-mobile-context-switch,
.ehb-mobile-scope-chip {
display: inline-flex;
min-width: 72px;
min-height: 44px;
align-items: center;
justify-content: center;
gap: 6px;
padding: 0 12px;
border: 0;
border-radius: 22px;
background: #eaf1ff;
color: #21324d;
font-size: 12px;
font-weight: 700;
}
.ehb-mobile-context-switch span,
.ehb-mobile-scope-chip span { color: #2f6bff; font-size: 9px; }
.ehb-mobile-context-switch svg { color: #6a7d99; }
.ehb-mobile-context-switch.is-scope { min-width: 84px; padding: 0 10px; font-size: 13px; }
.ehb-mobile-filter-panel {
margin-top: 10px;
padding: 10px 10px 11px;
border: 1px solid #dfe7f1;
border-radius: 14px;
background: #fff;
}
.ehb-mobile-view-mode { display: none !important; }
.ehb-mobile-primary-filters {
display: grid;
grid-template-columns: 68px 56px minmax(58px,1fr) minmax(58px,1fr) 55px;
gap: 5px;
overflow: visible;
padding: 0;
}
.ehb-mobile-overview-quick { display: flex !important; min-width: 0; flex: 1; gap: 6px; }
.ehb-mobile-view-chip { display: inline-flex; }
.ehb-mobile-view-chip,
.ehb-mobile-overview-quick button,
.ehb-mobile-overview-quick .ehb-year-picker,
.ehb-mobile-primary-filters button {
min-width: 0;
min-height: 36px;
align-items: center;
justify-content: center;
border-radius: 18px !important;
}
.ehb-mobile-view-chip {
padding: 0 8px;
border: 0;
background: #eaf1ff;
color: #21324d;
font-size: 11px;
font-weight: 650;
}
.ehb-mobile-overview-quick .ehb-year-select-btn { padding: 0 10px; font-size: 11px; }
.ehb-mobile-primary-filters .ehb-year-select-btn {
width: 68px;
padding: 0 6px;
font-size: 10px;
}
.ehb-mobile-primary-filters .ehb-year-text { white-space: nowrap; }
.ehb-mobile-primary-filters .ehb-mobile-context-switch {
min-width: 0;
padding: 0 5px;
gap: 3px;
}
.ehb-mobile-primary-filters .ehb-mobile-context-switch svg {
display: block;
flex: 0 0 auto;
}
.ehb-mobile-overview-quick .ehb-pill-tabs { min-width: 0; }
.ehb-mobile-overview-quick .ehb-pill-btn { padding: 0 7px; font-size: 11px; white-space: nowrap; }
.ehb-mobile-filter-bar { display: none; }
.ehb-mobile-order-chip,
.ehb-mobile-fleet-chip,
.ehb-mobile-filter-disclosure {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0 7px;
border: 0;
background: #f1f5fb;
color: #20314c;
font-size: 11px;
font-weight: 650;
white-space: nowrap;
}
.ehb-mobile-filter-disclosure {
padding: 0 10px;
background: #2f6bff;
color: #fff;
}
.ehb-mobile-filter-disclosure[aria-expanded="true"] {
border-color: #b8ccff;
background: #eef4ff;
color: #2f6bff;
}
.ehb-mobile-current-range {
display: block;
margin-top: 9px;
overflow: hidden;
color: #71819b;
font-size: 11px;
line-height: 1.4;
text-overflow: ellipsis;
white-space: nowrap;
}
.ehb-mobile-verify-filter { margin-bottom: 12px; }
.ehb-mobile-verify-filter .ehb-pill-tabs { width: 100%; }
.ehb-mobile-verify-filter .ehb-pill-btn { min-height: 40px; }
.ehb-mobile-section-title { display: block; margin: 20px 2px 10px; color: #18263d; font-size: 18px; }
.ehb-metric-grid { display: block !important; }
.ehb-host-kpi { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px !important; }
.ehb-host-kpi > .ehb-kpi-dual:nth-child(n+3) { display: none; }
.ehb-host-kpi .ehb-kpi-dual:nth-child(1),
.ehb-host-kpi .ehb-kpi-dual:nth-child(2) {
min-height: 150px !important;
padding: 14px !important;
border-radius: 18px !important;
}
.ehb-host-kpi .ehb-kpi-dual:nth-child(1) {
color: #fff;
border-color: #2f6bff;
background: #2f6bff;
box-shadow: 0 10px 22px rgba(47,107,255,.18);
}
.ehb-host-kpi .ehb-kpi-dual:nth-child(1) .ehb-kpi-dual__label,
.ehb-host-kpi .ehb-kpi-dual:nth-child(1) .ehb-kpi-dual__symbol,
.ehb-host-kpi .ehb-kpi-dual:nth-child(1) .ehb-kpi-dual__unit,
.ehb-host-kpi .ehb-kpi-dual:nth-child(1) .ehb-kpi-dual__footer { color: rgba(255,255,255,.82) !important; }
.ehb-host-kpi .ehb-kpi-dual:nth-child(1) .ehb-kpi-dual__num { color: #fff; }
.ehb-host-kpi .ehb-kpi-dual:nth-child(1) .ehb-kpi-dual__deck { color: #fff; background: rgba(255,255,255,.14); }
.ehb-host-kpi .ehb-kpi-dual:nth-child(2) { background: #fff; box-shadow: 0 6px 18px rgba(27,54,93,.06); }
.ehb-kpi-dual__num { font-size: clamp(25px,8vw,34px) !important; }
.ehb-kpi-drill-hint,
.ehb-kpi-dual__badge { display: none !important; }
.ehb-mobile-month-summary,
.ehb-mobile-profit-summary {
display: block;
margin-top: 14px;
padding: 16px;
border: 1px solid var(--bi-hairline);
border-radius: 18px;
background: #fff;
box-shadow: 0 5px 18px rgba(27,54,93,.045);
}
.ehb-mobile-summary-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--bi-hairline); }
.ehb-mobile-summary-head strong { color: #1c2a42; font-size: 17px; }
.ehb-mobile-summary-head span { color: #56729e; font-size: 12px; }
details.ehb-mobile-month-summary {
margin: 0 0 12px;
padding: 0 16px;
border-radius: 14px;
box-shadow: none;
}
details.ehb-mobile-month-summary > .ehb-mobile-summary-head {
min-height: 52px;
padding: 0;
border: 0;
cursor: pointer;
list-style: none;
}
details.ehb-mobile-month-summary > .ehb-mobile-summary-head::-webkit-details-marker { display: none; }
details.ehb-mobile-month-summary > .ehb-mobile-summary-head span {
display: inline-flex;
align-items: center;
gap: 4px;
}
details.ehb-mobile-month-summary > .ehb-mobile-summary-head i {
font-style: normal;
}
.ehb-mobile-summary-state--open { display: none; }
details.ehb-mobile-month-summary[open] .ehb-mobile-summary-state--closed { display: none; }
details.ehb-mobile-month-summary[open] .ehb-mobile-summary-state--open { display: inline; }
details.ehb-mobile-month-summary > .ehb-mobile-summary-head svg { transition: transform .18s ease-out; }
details.ehb-mobile-month-summary[open] > .ehb-mobile-summary-head {
border-bottom: 1px solid var(--bi-hairline);
}
details.ehb-mobile-month-summary[open] > .ehb-mobile-summary-head svg { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) {
details.ehb-mobile-month-summary > .ehb-mobile-summary-head svg { transition: none; }
}
.ehb-mobile-summary-grid { display: grid; grid-template-columns: repeat(3,1fr); padding-top: 14px; }
.ehb-mobile-summary-grid > div { min-width: 0; padding: 0 10px; border-left: 1px solid var(--bi-hairline); }
.ehb-mobile-summary-grid > div:first-child { padding-left: 0; border-left: 0; }
.ehb-mobile-summary-grid span { display: block; margin-bottom: 6px; color: #70819c; font-size: 11px; white-space: nowrap; }
.ehb-mobile-summary-grid strong { color: #18263d; font-size: 19px; white-space: nowrap; }
.ehb-mobile-diagnosis-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 0;
padding-top: 4px;
}
.ehb-mobile-diagnosis-grid > div,
.ehb-mobile-diagnosis-grid > button {
display: grid;
min-width: 0;
min-height: 72px;
align-content: center;
gap: 3px;
padding: 10px 8px;
border: 0;
border-top: 1px solid var(--bi-hairline);
background: transparent;
text-align: left;
}
.ehb-mobile-diagnosis-grid > :nth-child(odd) { border-right: 1px solid var(--bi-hairline); }
.ehb-mobile-diagnosis-grid > :nth-child(-n+2) { border-top: 0; }
.ehb-mobile-diagnosis-grid span,
.ehb-mobile-diagnosis-grid small { overflow: hidden; color: #70819c; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ehb-mobile-diagnosis-grid strong { color: #18263d; font-family: var(--bi-font-mono); font-size: 17px; white-space: nowrap; }
.ehb-mobile-diagnosis-grid strong.is-positive { color: #11866d; }
.ehb-mobile-diagnosis-grid strong.is-warning { color: #c96c12; }
.ehb-mobile-diagnosis-action { cursor: pointer; }
.ehb-mobile-diagnosis-action:active { background: #f4f7fb; }
.ehb-mobile-summary-grid small,
.ehb-mobile-profit-value small { margin-left: 2px; color: #71819b; font-size: 11px; font-weight: 600; }
.ehb-mobile-profit-summary { margin-bottom: 18px; }
.ehb-mobile-profit-summary .ehb-mobile-summary-head span { padding: 7px 10px; border-radius: 12px; background: #edf8f6; color: #187c70; }
.ehb-mobile-profit-value { margin: 14px 0 12px; color: #18263d; font-size: 30px; font-weight: 800; }
.ehb-mobile-profit-row { display: flex; justify-content: space-between; color: #70819c; font-size: 12px; }
.ehb-mobile-profit-row strong { margin-left: 5px; color: #283750; }
.ehb-mobile-profit-track { height: 6px; margin-top: 12px; overflow: hidden; border-radius: 3px; background: #edf1f6; }
.ehb-mobile-profit-track span { display: block; height: 100%; border-radius: inherit; background: #2f6bff; }
.ehb-insight { display: none !important; }
.ehb-overview-charts,
.ehb-two-charts-row { display: grid; grid-template-columns: minmax(0,1fr) !important; gap: 12px; }
.ehb-chart-box,
.ehb-sum-table-card { min-width: 0; padding: 14px; border-radius: 18px; }
.ehb-chart-box-title,
.ehb-sum-table-card__title { font-size: 15px; }
.ehb-mobile-bottom-nav {
position: fixed;
z-index: 80;
right: 0;
bottom: 0;
left: 0;
display: grid;
grid-template-columns: repeat(3,1fr);
padding: 7px 18px calc(7px + env(safe-area-inset-bottom));
border-top: 1px solid #e3e9f2;
background: rgba(255,255,255,.96);
box-shadow: 0 -8px 24px rgba(27,54,93,.07);
backdrop-filter: blur(14px);
}
.ehb-mobile-bottom-nav button {
min-height: 50px;
border: 0;
background: transparent;
color: #7a899f;
font-size: 15px;
}
.ehb-mobile-bottom-nav button > svg {
display: block;
width: 22px;
height: 22px;
margin: 0 auto;
}
.ehb-mobile-bottom-nav button span { display: block; margin-top: 2px; font-size: 11px; }
.ehb-mobile-bottom-nav button.is-active { border-radius: 14px; background: #eef4ff; color: #2f6bff; font-weight: 750; }
.ehb-mobile-bottom-nav button.is-active::first-line { color: #2f6bff; }
}
@media (max-width: 380px) {
.ehb-body { padding-right: 12px; padding-left: 12px; }
.ehb-host-kpi { gap: 10px !important; }
.ehb-host-kpi .ehb-kpi-dual:nth-child(1),
.ehb-host-kpi .ehb-kpi-dual:nth-child(2) { min-height: 150px !important; padding: 12px !important; }
.ehb-kpi-dual__num { font-size: 27px !important; }
}
.ehb-mobile-legend-label { display: none; }
.ehb-station-summary-card { position: relative; }
.ehb-station-summary-card .ehb-sum-table-card__title { padding-right: 42px; }
.ehb-station-fullscreen-trigger {
position: absolute;
top: 14px;
right: 14px;
display: inline-flex;
width: auto;
min-width: 92px;
height: 32px;
margin: 0;
align-items: center;
justify-content: center;
gap: 6px;
padding: 0 10px;
border: 1px solid #dbe4f1;
border-radius: 10px;
background: #fff;
color: #4f6f9f;
cursor: pointer;
}
.ehb-station-fullscreen-trigger span { font-size: 12px; font-weight: 600; white-space: nowrap; }
.ehb-station-fullscreen-trigger:hover { border-color: #b9ccf7; color: #2f6bff; }
.ehb-station-fullscreen {
position: fixed;
z-index: 120;
inset: 0;
overflow: hidden;
background: #f4f7fb;
}
.ehb-station-fullscreen__panel {
box-sizing: border-box;
display: flex;
width: 100%;
height: 100%;
flex-direction: column;
padding: 16px 18px;
background: #f4f7fb;
}
.ehb-station-fullscreen__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ehb-station-fullscreen__head > div { display: flex; min-width: 0; align-items: baseline; gap: 14px; }
.ehb-station-fullscreen__head strong { color: #18263d; font-size: 19px; }
.ehb-station-fullscreen__head span { color: #71819b; font-size: 11px; }
.ehb-station-fullscreen__head button {
display: inline-flex;
width: 40px;
height: 40px;
align-items: center;
justify-content: center;
border: 0;
border-radius: 10px;
background: #e8eef8;
color: #23344f;
}
.ehb-station-fullscreen__filters { display: flex; gap: 6px; overflow-x: auto; margin: 12px 0; padding-bottom: 2px; }
.ehb-station-fullscreen__filters button {
min-height: 34px;
flex: none;
padding: 0 12px;
border: 0;
border-radius: 8px;
background: #e9eef6;
color: #60718b;
font-size: 12px;
font-weight: 650;
}
.ehb-station-fullscreen__filters button.is-active { background: #fff; color: #2f6bff; box-shadow: 0 2px 6px rgba(27,54,93,.1); }
.ehb-station-fullscreen__table-wrap { min-height: 0; flex: 1; overflow: auto; border-radius: 12px; background: #fff; }
.ehb-station-fullscreen__table-wrap table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.ehb-station-fullscreen__table-wrap th,
.ehb-station-fullscreen__table-wrap td { padding: 9px 12px; border-bottom: 1px solid #edf1f6; color: #24334c; font-size: 12px; text-align: left; }
.ehb-station-fullscreen__table-wrap th { position: sticky; top: 0; z-index: 1; background: #f7f9fc; color: #65758e; font-weight: 700; }
.ehb-station-fullscreen__table-wrap th:first-child,
.ehb-station-fullscreen__table-wrap td:first-child { width: 34px; }
.ehb-station-fullscreen__table-wrap td:nth-child(n+4):not(:last-child) { font-family: var(--bi-font-mono); }
.ehb-station-fullscreen__table-wrap td button { border: 0; background: transparent; color: #2f6bff; font-weight: 650; }
@media (max-width: 767px) {
.ehb-desktop-legend-label { display: none; }
.ehb-mobile-legend-label { display: inline; }
.ehb-station-fullscreen-trigger { top: 12px; right: 12px; width: auto; height: 32px; }
}
/* Phone portrait drill-down: compact header and filters keep data above fold. */
@media (max-width: 767px) and (orientation: portrait) {
.ehb-drill-modal--unified .ehb-station-core-metrics {
grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
gap: 0 !important;
margin-bottom: 8px;
padding: 0 !important;
}
.ehb-drill-modal--unified .ehb-station-core-metrics .ehb-modal-meta-item {
min-height: 62px;
justify-content: center;
padding: 9px 12px !important;
border-bottom: 1px solid #edf1f6;
}
.ehb-drill-modal--unified .ehb-station-core-metrics .ehb-modal-meta-item:nth-child(2n) {
border-inline-end: 0;
}
.ehb-drill-modal--unified .ehb-station-core-metrics .ehb-modal-meta-item:nth-last-child(-n + 2) {
border-bottom: 0;
}
.ehb-drill-modal--unified .ehb-station-core-metrics .ehb-modal-meta-label {
font-size: 10px !important;
}
.ehb-drill-modal--unified .ehb-station-core-metrics .ehb-modal-meta-val {
font-size: 15px !important;
}
.ehb-drill-modal--unified .ehb-modal-head {
display: grid !important;
grid-template-columns: minmax(0, 1fr) auto;
align-items: center;
gap: 8px;
min-height: 64px !important;
padding: max(8px, env(safe-area-inset-top, 8px)) 10px 8px !important;
}
.ehb-drill-modal--unified .ehb-modal-head__title-group {
grid-column: 1;
width: 100%;
gap: 6px !important;
}
.ehb-drill-modal--unified .ehb-modal-head__actions {
display: flex !important;
grid-column: 2;
align-items: center;
gap: 4px;
}
.ehb-drill-modal--unified .ehb-modal-head__actions .mobile-list-fullscreen-trigger {
position: static;
width: 44px;
min-width: 44px;
min-height: 44px;
padding: 0;
border-color: rgba(255, 255, 255, .14);
background: rgba(255, 255, 255, .08);
color: #e8eef8;
}
.ehb-drill-modal--unified .ehb-modal-head__actions .mobile-list-fullscreen-trigger__label {
display: none;
}
.ehb-drill-modal--unified .ehb-modal-close-btn {
width: 44px;
height: 44px;
}
.ehb-drill-modal--unified .ehb-modal-back-btn {
width: 44px;
min-width: 44px;
padding: 0 !important;
justify-content: center;
}
.ehb-drill-modal--unified .ehb-modal-back-btn span {
display: none;
}
.ehb-drill-modal--unified .ehb-modal-body {
width: 100%;
min-width: 0;
box-sizing: border-box;
overflow-x: hidden;
overflow-y: auto;
}
.ehb-drill-modal--unified .ehb-modal-filter-row,
.ehb-drill-modal--unified .ehb-modal-filter-group {
min-width: 0;
box-sizing: border-box;
}
.ehb-drill-modal--unified .ehb-modal-filter-group {
display: grid !important;
grid-template-columns: 120px minmax(0, 1fr);
align-items: center;
gap: 8px !important;
}
.ehb-drill-modal--unified .ehb-drill-period-controls,
.ehb-drill-modal--unified .ehb-drill-period-select,
.ehb-drill-modal--unified .ehb-drill-period-trigger {
width: 100%;
min-width: 0;
box-sizing: border-box;
}
.ehb-drill-modal--unified .ehb-drill-period-select {
flex: 0 0 120px;
}
.ehb-drill-modal--unified .ehb-drill-period-trigger {
min-height: 44px;
white-space: nowrap;
}
.ehb-drill-modal--unified .ehb-modal-search-input {
width: 100% !important;
min-width: 0 !important;
min-height: 44px !important;
}
.ehb-drill-modal--unified .ehb-modal-hint-text {
grid-column: 1 / -1;
margin: 0 !important;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ehb-drill-modal--unified .ehb-modal-filter-row {
margin-bottom: 6px;
padding: 8px !important;
}
.ehb-drill-modal--unified .ehb-modal-table-wrap {
width: 100% !important;
max-width: 100%;
min-width: 0;
box-sizing: border-box;
overflow-x: auto;
overflow-y: visible;
}
}
/* Phone landscape: keep drill-down pages horizontal and prioritize table rows. */
@media (max-width: 767px) and (orientation: landscape) {
.ehb-drill-filter-summary-row { display: none !important; }
.ehb-drill-filter-panel { display: flex !important; }
.ehb-order-desktop-primary { display: inline !important; }
.ehb-order-mobile-summary { display: none !important; }
.ehb-modal-card {
width: 100vw !important;
max-width: 100vw !important;
height: 100dvh !important;
max-height: 100dvh !important;
border-radius: 0 !important;
}
.ehb-modal-head {
min-height: 44px !important;
padding: 5px max(10px, env(safe-area-inset-right)) 5px max(10px, env(safe-area-inset-left)) !important;
}
.ehb-modal-head__title-group { gap: 8px !important; }
.ehb-modal-head__title { font-size: 13px !important; line-height: 1.2 !important; }
.ehb-modal-head__sub { margin-top: 1px !important; font-size: 9px !important; }
.ehb-modal-back-btn { min-height: 32px !important; height: 32px !important; }
.ehb-drill-modal--unified .ehb-modal-body {
padding: 8px !important;
overflow-x: hidden !important;
overflow-y: auto !important;
}
.ehb-drill-modal--unified .ehb-modal-meta-bar {
grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
margin-bottom: 8px !important;
}
.ehb-drill-modal--unified .ehb-modal-meta-item {
min-height: 44px;
justify-content: center;
padding: 5px 9px !important;
}
.ehb-drill-modal--unified .ehb-modal-meta-label { font-size: 9px !important; }
.ehb-drill-modal--unified .ehb-modal-meta-val { font-size: 12px !important; }
.ehb-drill-modal--unified .ehb-modal-filter-row {
min-height: 40px;
flex-direction: row !important;
align-items: center !important;
margin-bottom: 8px !important;
padding: 5px 8px !important;
}
.ehb-drill-modal--unified .ehb-modal-filter-group {
width: auto !important;
flex: 1;
flex-wrap: nowrap !important;
}
.ehb-drill-modal--unified .ehb-modal-search-input {
width: min(220px, 30vw) !important;
height: 32px !important;
min-height: 32px !important;
}
.ehb-drill-modal--unified .ehb-drill-period-controls { width: auto; }
.ehb-drill-modal--unified .ehb-drill-period-controls select { flex: 0 0 108px !important; width: 108px; }
.ehb-drill-modal--unified .ehb-drill-period-controls input { height: 32px; padding-inline: 6px; font-size: 10px; }
.ehb-drill-modal--unified .ehb-drill-period-controls input[type='month'] { width: 108px; }
.ehb-drill-modal--unified .ehb-drill-period-controls input[type='date'] { width: 110px; }
.ehb-drill-modal--unified .ehb-modal-hint-text {
min-width: 0;
font-size: 9px !important;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.ehb-drill-modal--unified .ehb-modal-table-wrap {
min-height: 0;
height: auto;
max-height: none;
overflow-x: auto !important;
overflow-y: visible !important;
}
.ehb-drill-modal--unified .ehb-modal-table th,
.ehb-drill-modal--unified .ehb-modal-table > tbody > tr > td {
height: 34px;
padding-block: 6px;
}
}
/* Browsers that leave native fullscreen before opening a drill dialog retain
the same compact landscape composition inside the rotated session. */
@media (max-width: 767px) and (orientation: portrait) {
html.ehb-landscape-session .ehb-drill-filter-summary-row { display: none !important; }
html.ehb-landscape-session .ehb-drill-filter-panel { display: flex !important; }
html.ehb-landscape-session .ehb-order-desktop-primary { display: inline !important; }
html.ehb-landscape-session .ehb-order-mobile-summary { display: none !important; }
html.ehb-landscape-session .ehb-modal-card {
width: 100% !important;
max-width: 100% !important;
height: 100% !important;
max-height: 100% !important;
}
html.ehb-landscape-session .ehb-modal-head {
min-height: 44px !important;
padding: 5px 10px !important;
}
html.ehb-landscape-session .ehb-modal-head__title { font-size: 13px !important; line-height: 1.2 !important; }
html.ehb-landscape-session .ehb-modal-head__sub { margin-top: 1px !important; font-size: 9px !important; }
html.ehb-landscape-session .ehb-drill-modal--unified .ehb-modal-body {
padding: 8px !important;
overflow-x: hidden !important;
overflow-y: auto !important;
}
html.ehb-landscape-session .ehb-drill-modal--unified .ehb-modal-meta-bar {
grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
gap: 0 !important;
margin-bottom: 8px !important;
padding: 0 !important;
}
html.ehb-landscape-session .ehb-drill-modal--unified .ehb-modal-meta-item {
min-height: 44px;
justify-content: center;
padding: 5px 9px !important;
}
html.ehb-landscape-session .ehb-drill-modal--unified .ehb-modal-filter-row {
min-height: 40px;
flex-direction: row !important;
align-items: center !important;
gap: 8px !important;
margin-bottom: 8px !important;
padding: 5px 8px !important;
}
html.ehb-landscape-session .ehb-drill-modal--unified .ehb-modal-filter-group {
width: auto !important;
flex: 1;
flex-wrap: nowrap !important;
}
html.ehb-landscape-session .ehb-drill-modal--unified .ehb-modal-search-input {
width: min(220px, 30vw) !important;
height: 32px !important;
min-height: 32px !important;
}
html.ehb-landscape-session .ehb-drill-modal--unified .ehb-drill-period-controls { width: auto; }
html.ehb-landscape-session .ehb-drill-modal--unified .ehb-drill-period-controls select { flex: 0 0 108px !important; width: 108px; }
html.ehb-landscape-session .ehb-drill-modal--unified .ehb-drill-period-controls input { height: 32px; padding-inline: 6px; font-size: 10px; }
html.ehb-landscape-session .ehb-drill-modal--unified .ehb-drill-period-controls input[type='month'] { width: 108px; }
html.ehb-landscape-session .ehb-drill-modal--unified .ehb-drill-period-controls input[type='date'] { width: 110px; }
html.ehb-landscape-session .ehb-drill-modal--unified .ehb-modal-hint-text {
min-width: 0;
font-size: 9px !important;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
html.ehb-landscape-session .ehb-drill-modal--unified .ehb-modal-table-wrap {
min-height: 0;
height: auto;
max-height: none;
overflow-x: auto !important;
overflow-y: visible !important;
}
}
/* 横屏会话可能将视口放大到767px以上,因此不能只依赖手机断点解除列表限高。 */
html.ehb-landscape-session .ehb-drill-modal--unified .ehb-modal-body {
overflow-x: hidden !important;
overflow-y: auto !important;
}
html.ehb-landscape-session .ehb-drill-modal--unified .ehb-modal-table-wrap.is-v-scroll {
height: auto !important;
max-height: none !important;
overflow-x: auto !important;
overflow-y: visible !important;
}
html.ehb-landscape-session .ehb-drill-modal--unified .ehb-station-core-metrics {
grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}
.ehb-desktop-live-badge,
.ehb-desktop-time-range,
.ehb-desktop-year-label,
.ehb-desktop-year-suffix,
.ehb-year-calendar,
.ehb-filter-dot { display: none; }
.ehb-diagnosis {
grid-column: 1 / -1;
display: grid;
grid-template-columns: 116px repeat(4, minmax(0, 1fr));
min-height: 68px;
overflow: visible;
border: 1px solid #dce5f0;
border-radius: 12px;
background: #fff;
}
.ehb-diagnosis__heading {
display: flex;
align-items: center;
padding: 0 16px;
color: #263750;
font-size: 14px;
}
.ehb-diagnosis__item {
position: relative;
display: grid;
align-content: center;
gap: 2px;
min-width: 0;
padding: 8px 16px;
border-left: 1px solid #e7ecf3;
}
.ehb-diagnosis__item > span,
.ehb-diagnosis__item > small { overflow: hidden; color: #71819b; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.ehb-diagnosis__item > strong { color: #24334c; font-family: var(--bi-font-mono); font-size: 15px; line-height: 1.2; white-space: nowrap; }
.ehb-diagnosis__item > strong svg { margin-left: 3px; vertical-align: -2px; transition: transform .18s ease; }
.ehb-diagnosis__item > strong svg.is-open { transform: rotate(180deg); }
.ehb-diagnosis__item .is-positive { color: #11866d; }
.ehb-diagnosis__item .is-warning { color: #c96c12; }
.ehb-diagnosis__item.is-action {
border: 0;
background: transparent;
color: inherit;
font: inherit;
text-align: left;
cursor: pointer;
}
.ehb-diagnosis__item.is-action:hover { background: #f7f9fc; }
.ehb-diagnosis__item.is-open { z-index: 31; background: #f7f9fc; }
@media (max-width: 767px) {
.ehb-diagnosis { display: none !important; }
}
@media (min-width: 768px) {
.ehb-shell { display: block; background: #f3f6fa; }
.ehb-rail { display: none; }
.ehb-body { max-width: none; padding: 8px 16px 28px; }
.ehb-chrome {
display: grid;
grid-template-columns: 1fr;
margin: 0 0 8px;
padding: 6px 14px 0;
border: 1px solid #e2e8f1;
border-radius: 0;
background: #fff;
box-shadow: none;
}
.ehb-chrome__lead { display: flex; width: 100%; min-height: 34px; align-items: center; gap: 9px; }
.ehb-mobile-brand-icon {
display: inline-flex;
width: 34px;
height: 34px;
flex: 0 0 34px;
align-items: center;
justify-content: center;
border-radius: 10px;
background: #2f6bff;
color: #fff;
}
.ehb-crumb,
.ehb-time-range-pill { display: none !important; }
.ehb-chrome__lead h1 { font-size: 18px; line-height: 1.15; }
.ehb-desktop-live-badge {
display: inline-flex;
align-items: center;
min-height: 22px;
padding: 0 9px;
border: 1px solid #9ee8c7;
border-radius: 12px;
background: #ecfdf5;
color: #12845d;
font-size: 12px;
font-weight: 700;
}
.ehb-desktop-time-range { display: block; margin-top: 1px; color: #71819b; font-size: 10px; line-height: 1.2; }
.ehb-chrome__tools {
display: flex;
width: 100%;
min-height: 34px;
align-items: center;
justify-content: space-between;
margin-top: 4px;
padding: 3px 0 4px;
border-top: 1px solid #e7ecf3;
}
.ehb-scope-switches,
.ehb-view-switches { gap: 0; }
.ehb-switch-label { display: none; }
.ehb-chrome__tools .ehb-seg { min-width: 156px; gap: 3px; padding: 0; border: 0; border-radius: 8px; background: transparent; }
.ehb-chrome__tools .ehb-seg button { min-height: 26px; padding: 0 11px; border: 1px solid transparent; font-size: 11px; }
.ehb-chrome__tools .ehb-seg button.is-active { border-color: #d7e3f5; background: #eaf1fb; color: #2f6bff; box-shadow: none; }
.ehb-overview-filter {
margin: 0 0 12px !important;
padding: 6px 14px !important;
border-color: #e1e8f1 !important;
border-radius: 0 !important;
background: #f8fafc !important;
box-shadow: none !important;
}
.ehb-overview-filter .ehb-daily-filter-row { width: 100%; justify-content: space-between; }
.ehb-overview-filter .ehb-daily-filter-group { gap: 6px; }
.ehb-overview-filter .ehb-daily-filter-group:last-child { margin-left: auto; }
.ehb-overview-filter .ehb-chrome__clock,
.ehb-overview-filter .ehb-btn--ghost { display: none; }
.ehb-desktop-year-label { display: inline; color: #3e4e66; font-size: 13px; font-weight: 700; white-space: nowrap; }
.ehb-overview-filter .ehb-year-select-btn { width: auto; min-width: 112px; height: 32px; padding: 0 10px; }
.ehb-overview-filter .ehb-year-calendar,
.ehb-overview-filter .ehb-desktop-year-suffix { display: inline-flex; }
.ehb-overview-filter .ehb-year-calendar { color: #71819b; }
.ehb-overview-filter .ehb-filter-dot {
display: inline-block;
width: 6px;
height: 6px;
margin-right: 5px;
border-radius: 50%;
}
.ehb-overview-filter .ehb-filter-dot.is-own { background: #2f6bff; }
.ehb-overview-filter .ehb-filter-dot.is-external { background: #f59e0b; }
.ehb-overview-filter .ehb-fleet-segmented,
.ehb-overview-filter .ehb-pill-tabs { min-height: 34px; padding: 2px; }
.ehb-overview-filter .ehb-fleet-btn,
.ehb-overview-filter .ehb-pill-btn { min-height: 28px; padding: 0 12px; }
/* PC 端菜单统一采用紧凑工具栏规格,移动端仍保留 36px+ 热区。 */
.ehb-mobile-detail-tabs-head { gap: 12px; padding: 10px 16px 0; }
.ehb-mobile-detail-tabs { gap: 2px; padding: 2px; border-radius: 8px; }
.ehb-mobile-detail-tabs button {
min-width: 92px;
min-height: 28px;
padding: 0 12px;
border-radius: 7px;
font-size: 12px;
}
.ehb-mini-tabs { gap: 2px; padding: 2px; border-radius: 8px; }
.ehb-mini-tab { min-height: 28px; padding: 0 9px; border-radius: 7px; }
.ehb-mobile-detail-panel { padding-top: 12px; }
.ehb-mobile-detail-panel .ehb-sum-table-card__head { gap: 8px !important; }
.ehb-host { margin-bottom: 20px; padding: 0; border: 0; background: transparent; }
.ehb-metric-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.ehb-host-kpi > .ehb-kpi-dual:nth-child(5) { display: none; }
.ehb-host-kpi .ehb-kpi-dual:nth-child(-n+4) {
min-height: 146px;
padding: 14px 16px;
border: 1px solid #dce5f0;
border-radius: 14px;
background: #fff;
box-shadow: none;
}
.ehb-host-kpi .ehb-kpi-dual:nth-child(1) { color: #21324d; border-color: #c9d8ed; background: #eaf1fb; box-shadow: none; }
.ehb-host-kpi .ehb-kpi-dual:nth-child(1) .ehb-kpi-dual__label,
.ehb-host-kpi .ehb-kpi-dual:nth-child(1) .ehb-kpi-dual__symbol,
.ehb-host-kpi .ehb-kpi-dual:nth-child(1) .ehb-kpi-dual__unit,
.ehb-host-kpi .ehb-kpi-dual:nth-child(1) .ehb-kpi-dual__footer { color: #687891 !important; }
.ehb-host-kpi .ehb-kpi-dual:nth-child(1) .ehb-kpi-dual__num { color: #18263d; }
.ehb-host-kpi .ehb-kpi-dual:nth-child(1) .ehb-kpi-dual__deck { color: #43546d; background: #f5f8fd; }
.ehb-host-kpi .ehb-kpi-dual:nth-child(1) .ehb-kpi-dual__badge { color: #2f6bff; background: #eef4ff; }
.ehb-kpi-dual__num { font-size: 30px; }
.ehb-kpi-dual__deck { background: #f6f8fb; }
.ehb-insight__card { min-height: 104px; padding: 12px 14px; border: 1px solid #dce5f0; border-radius: 14px; box-shadow: none; }
}
/* 最终响应式覆盖:保证 PC 五项全显示,移动端五项均可操作。 */
@media (min-width: 1181px) {
.ehb-metric-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
.ehb-host-kpi > .ehb-kpi-dual:nth-child(5) { display: flex; }
}
@media (max-width: 767px) {
.ehb-drill-modal--cumulative .ehb-modal-meta-bar { display: none !important; }
.ehb-drill-modal--cumulative .ehb-modal-head__actions { display: none !important; }
.ehb-drill-modal--cumulative .ehb-drill-filter-summary-row { grid-template-columns: minmax(0, 1fr); }
.ehb-drill-modal--cumulative .ehb-drill-filter-summary-row .mobile-list-fullscreen-trigger { display: none !important; }
.ehb-mobile-drill-overview {
display: block;
margin-bottom: 10px;
padding: 14px;
border: 1px solid #dfe7f0;
border-radius: 12px;
background: #fff;
}
.ehb-mobile-drill-overview__metrics { gap: 0; }
.ehb-mobile-drill-overview__metrics > div { display: grid; gap: 5px; min-width: 0; padding: 2px 12px; }
.ehb-mobile-drill-overview__metrics > div:first-child { padding-left: 0; border-inline-end: 1px solid #e7edf5; }
.ehb-mobile-drill-overview__metrics span { color: #71819b; font-size: 10px; }
.ehb-mobile-drill-overview__metrics strong { color: #245fd4; font: 750 19px/1.25 var(--bi-font-mono); }
.ehb-mobile-drill-overview__metrics > div:nth-child(2) strong { color: #2c8a78; }
.ehb-mobile-drill-overview__metrics small { font: 600 9px/1 var(--bi-font); }
.ehb-mobile-drill-overview > p { display: flex; justify-content: space-between; gap: 8px; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid #edf1f5; color: #71819b; font-size: 10px; }
.ehb-drill-modal--cumulative .ehb-h5-scroll-hint { display: none !important; }
.ehb-mobile-section-title { display: none; }
.ehb-drill-filter-summary-row {
display: grid;
grid-template-columns: minmax(0, 1fr) 44px;
align-items: stretch;
gap: 8px;
margin-bottom: 10px;
}
.ehb-drill-filter-summary-row .ehb-drill-filter-summary { min-width: 0; margin: 0; }
.ehb-drill-filter-summary-row .mobile-list-fullscreen-trigger {
position: static;
width: 44px;
min-width: 44px;
height: auto;
min-height: 44px;
padding: 0;
justify-content: center;
}
.ehb-drill-filter-summary-row .mobile-list-fullscreen-trigger__label { display: none; }
.ehb-drill-modal--unified .ehb-modal-head__sub {
overflow: visible !important;
white-space: normal !important;
text-overflow: clip !important;
}
.ehb-host-kpi > .ehb-kpi-dual:nth-child(1) {
color: #21324d;
border-color: #c9d8ed;
background: #eaf1fb;
box-shadow: none;
}
.ehb-host-kpi > .ehb-kpi-dual:nth-child(1) .ehb-kpi-dual__label,
.ehb-host-kpi > .ehb-kpi-dual:nth-child(1) .ehb-kpi-dual__symbol,
.ehb-host-kpi > .ehb-kpi-dual:nth-child(1) .ehb-kpi-dual__unit,
.ehb-host-kpi > .ehb-kpi-dual:nth-child(1) .ehb-kpi-dual__footer {
color: #526987 !important;
}
.ehb-host-kpi > .ehb-kpi-dual:nth-child(1) .ehb-kpi-dual__num { color: #245fd4; }
.ehb-host-kpi > .ehb-kpi-dual:nth-child(1) .ehb-kpi-dual__deck {
color: #43546d;
background: rgba(255, 255, 255, .62);
}
.ehb-host-kpi .ehb-kpi-dual__deck.is-three small { color: #62748e; }
.ehb-host-kpi .ehb-kpi-dual__deck.is-three strong { color: #18263d; }
.ehb-host-kpi > .ehb-kpi-dual:nth-child(n+3) {
display: flex;
min-height: 92px;
padding: 10px 12px;
}
.ehb-host-kpi > .ehb-kpi-dual:nth-child(3) {
grid-column: 1;
grid-row: 2;
justify-content: center;
}
.ehb-host-kpi > .ehb-kpi-dual:nth-child(3) .ehb-kpi-dual__deck { margin-top: 12px; }
.ehb-recent-kpis {
display: grid;
grid-column: 2;
grid-row: 2;
grid-template-rows: repeat(2, minmax(0, 1fr));
gap: 0;
overflow: hidden;
border: 1px solid #dce5f0;
border-radius: 15px;
background: #fff;
}
.ehb-host-kpi > .ehb-recent-kpis > .ehb-kpi-dual {
min-height: 0 !important;
padding: 10px 12px !important;
border: 0 !important;
border-radius: 0 !important;
background: transparent !important;
color: #21324d !important;
box-shadow: none !important;
}
.ehb-host-kpi > .ehb-recent-kpis > .ehb-kpi-dual .ehb-kpi-dual__label,
.ehb-host-kpi > .ehb-recent-kpis > .ehb-kpi-dual .ehb-kpi-dual__symbol,
.ehb-host-kpi > .ehb-recent-kpis > .ehb-kpi-dual .ehb-kpi-dual__unit,
.ehb-host-kpi > .ehb-recent-kpis > .ehb-kpi-dual .ehb-kpi-dual__footer { color: #687891 !important; }
.ehb-host-kpi > .ehb-recent-kpis > .ehb-kpi-dual .ehb-kpi-dual__num { color: #18263d !important; }
.ehb-host-kpi > .ehb-recent-kpis > .ehb-kpi-dual + .ehb-kpi-dual { border-top: 1px solid #e7edf5 !important; }
.ehb-recent-kpis .ehb-kpi-dual__deck { margin-top: 6px; padding: 5px 7px; }
.ehb-recent-kpis .ehb-kpi-dual__num { font-size: clamp(20px, 6.5vw, 28px) !important; }
}
/* 2026-08-29 移动端经营总览:结果先行,减少双列大卡与嵌套卡片。 */
.ehb-mobile-operating-overview { display: none; }
.ehb-mobile-profit-card,
.ehb-mobile-period-cards { display: none; }
@media (max-width: 767px) {
.ehb-body {
padding: 10px 12px calc(76px + env(safe-area-inset-bottom));
}
.ehb-chrome {
margin-bottom: 4px;
padding-bottom: 4px;
}
.ehb-mobile-filter-panel {
margin-top: 6px;
padding: 8px;
border-radius: 12px;
}
.ehb-mobile-current-range {
margin-top: 6px;
}
.ehb-mobile-operating-overview {
display: block;
overflow: hidden;
margin-bottom: 12px;
border: 1px solid #dce5f0;
border-radius: 14px;
background: #fff;
}
.ehb-mobile-operating-overview__head {
display: flex;
min-height: 40px;
align-items: center;
justify-content: space-between;
padding: 0 14px;
border-bottom: 1px solid #e7edf5;
}
.ehb-mobile-operating-overview__head strong {
color: #18263d;
font-size: 15px;
}
.ehb-mobile-operating-overview__head span {
color: #71819b;
font-size: 11px;
}
.ehb-mobile-operating-overview__metrics {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ehb-mobile-operating-overview__metrics button {
display: grid;
min-width: 0;
min-height: 86px;
align-content: center;
gap: 6px;
padding: 12px 14px;
border: 0;
background: transparent;
text-align: left;
}
.ehb-mobile-operating-overview__metrics button + button {
border-left: 1px solid #e7edf5;
}
.ehb-mobile-operating-overview__metrics button > span {
color: #64748b;
font-size: 12px;
font-weight: 650;
}
.ehb-mobile-operating-overview__metrics button > strong {
overflow: hidden;
color: #18263d;
font-family: var(--bi-font-mono);
font-size: clamp(22px, 6.8vw, 28px);
font-variant-numeric: tabular-nums;
line-height: 1.1;
letter-spacing: -.03em;
white-space: nowrap;
}
.ehb-mobile-operating-overview__metrics button:first-child > strong {
color: #245fd4;
}
.ehb-mobile-operating-overview__metrics small {
margin: 0 2px;
color: #64748b;
font-size: 11px;
font-weight: 650;
letter-spacing: 0;
}
.ehb-mobile-operating-overview__bearers {
padding: 6px 12px 10px;
border-top: 1px solid #e7edf5;
background: #f8fafc;
}
.ehb-mobile-operating-overview__bearers > div {
display: grid;
min-height: 30px;
grid-template-columns: minmax(66px, .8fr) minmax(76px, .9fr) minmax(98px, 1.2fr);
align-items: center;
gap: 6px;
color: #64748b;
font-size: 11px;
}
.ehb-mobile-operating-overview__bearers > div + div {
border-top: 1px solid #edf1f6;
}
.ehb-mobile-operating-overview__bearers .is-heading {
min-height: 26px;
color: #7b8aa2;
font-size: 10px;
}
.ehb-mobile-operating-overview__bearers span:nth-child(n+2),
.ehb-mobile-operating-overview__bearers strong {
text-align: right;
}
.ehb-mobile-operating-overview__bearers strong {
color: #26364f;
font-family: var(--bi-font-mono);
font-size: 11px;
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.ehb-host-kpi {
grid-template-columns: 1fr !important;
gap: 10px !important;
}
.ehb-host-kpi > .ehb-kpi-dual:nth-child(-n+2) {
display: none !important;
}
.ehb-host-kpi > .ehb-kpi-dual:nth-child(3) {
grid-column: 1 / -1;
grid-row: auto;
min-height: 88px;
padding: 12px 14px;
}
.ehb-host-kpi > .ehb-kpi-dual:nth-child(3) .ehb-kpi-dual__deck {
display: flex !important;
margin-top: 8px;
padding: 6px 8px;
}
.ehb-recent-kpis {
display: grid;
grid-column: 1 / -1;
grid-row: auto;
grid-template-columns: repeat(2, minmax(0, 1fr));
grid-template-rows: none;
border-radius: 14px;
}
.ehb-host-kpi > .ehb-recent-kpis > .ehb-kpi-dual {
min-height: 104px !important;
}
.ehb-host-kpi > .ehb-recent-kpis > .ehb-kpi-dual + .ehb-kpi-dual {
border-top: 0 !important;
border-left: 1px solid #e7edf5 !important;
}
.ehb-recent-kpis .ehb-kpi-dual__deck {
display: grid !important;
grid-template-columns: 1fr !important;
gap: 2px !important;
}
}
/* 2026-08-29 参考稿细化:累计构成大卡、横向利润卡与四项筛选。 */
@media (max-width: 767px) {
.ehb-mobile-primary-filters {
grid-template-columns: 72px 72px minmax(0, 1fr) 72px;
gap: 6px;
}
.ehb-mobile-order-chip {
display: none !important;
}
.ehb-mobile-primary-filters .ehb-year-select-btn,
.ehb-mobile-primary-filters .ehb-mobile-context-switch,
.ehb-mobile-primary-filters .ehb-mobile-fleet-chip,
.ehb-mobile-primary-filters .ehb-mobile-filter-disclosure {
min-height: 44px;
border-radius: 9px !important;
}
.ehb-mobile-operating-overview__head {
min-height: 46px;
}
.ehb-mobile-operating-overview__metrics {
margin: 0 14px;
border-bottom: 0;
}
.ehb-mobile-operating-overview__metrics button {
min-height: 100px;
padding: 14px 4px;
}
.ehb-mobile-operating-overview__metrics button:first-child {
padding-right: 12px;
}
.ehb-mobile-operating-overview__metrics button + button {
padding-left: 18px;
}
.ehb-mobile-operating-overview__metrics button > strong {
font-size: clamp(26px, 8vw, 34px);
}
.ehb-mobile-operating-overview__bar {
display: flex;
height: 9px;
margin: 2px 14px 14px;
overflow: hidden;
border-radius: 999px;
background: #d7dee9;
}
.ehb-mobile-operating-overview__bar > span {
min-width: 2px;
}
.ehb-mobile-operating-overview__bar .is-company,
.ehb-mobile-operating-overview__legend i.is-company { background: #2f6bff; }
.ehb-mobile-operating-overview__bar .is-customer,
.ehb-mobile-operating-overview__legend i.is-customer { background: #35b8ac; }
.ehb-mobile-operating-overview__bar .is-pending,
.ehb-mobile-operating-overview__legend i.is-pending { background: #f28a35; }
.ehb-mobile-operating-overview__legend {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 8px;
padding: 0 14px 14px;
}
.ehb-mobile-operating-overview__legend > div {
display: grid;
min-width: 0;
gap: 4px;
color: #64748b;
font-size: 10px;
}
.ehb-mobile-operating-overview__legend span {
display: flex;
align-items: center;
gap: 5px;
color: #40516b;
font-size: 11px;
font-weight: 700;
}
.ehb-mobile-operating-overview__legend i {
width: 7px;
height: 7px;
flex: 0 0 7px;
border-radius: 50%;
}
.ehb-mobile-operating-overview__legend strong {
color: #293b56;
font-family: var(--bi-font-mono);
font-size: 11px;
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.ehb-mobile-operating-overview__legend small {
color: #7b8aa2;
font-size: 10px;
}
.ehb-mobile-operating-overview__action {
display: flex;
width: calc(100% - 28px);
min-height: 44px;
align-items: center;
justify-content: center;
gap: 4px;
margin: 0 14px;
border: 0;
border-top: 1px solid #e7edf5;
background: transparent;
color: #2f6bff;
font-size: 13px;
font-weight: 700;
}
.ehb-host-kpi > .ehb-kpi-dual:nth-child(3) {
position: relative;
display: block;
min-height: 116px;
padding: 18px 52% 18px 18px;
}
.ehb-host-kpi > .ehb-kpi-dual:nth-child(3) .ehb-kpi-dual__head {
flex-direction: row-reverse;
justify-content: flex-end;
gap: 10px;
}
.ehb-host-kpi > .ehb-kpi-dual:nth-child(3) .ehb-kpi-dual__badge {
display: grid !important;
width: 38px;
height: 38px;
border-radius: 50%;
}
.ehb-host-kpi > .ehb-kpi-dual:nth-child(3) .ehb-kpi-dual__val {
margin: 4px 0 0 48px;
}
.ehb-host-kpi > .ehb-kpi-dual:nth-child(3) .ehb-kpi-dual__num {
color: #16a34a;
}
.ehb-host-kpi > .ehb-kpi-dual:nth-child(3) .ehb-kpi-dual__deck {
position: absolute;
top: 16px;
right: 14px;
bottom: 16px;
display: grid !important;
width: 44%;
align-content: center;
gap: 10px !important;
margin: 0;
padding: 0 0 0 16px;
border-left: 1px solid #e7edf5;
border-radius: 0;
background: transparent;
}
.ehb-host-kpi > .ehb-recent-kpis > .ehb-kpi-dual .ehb-kpi-dual__badge {
display: grid !important;
width: 32px;
height: 32px;
border-radius: 50%;
}
.ehb-mobile-month-summary {
margin-bottom: 12px;
}
}
/* 竖屏明细页头统一:仅保留返回,长业务名称可换行,不让操作按钮覆盖标题。 */
@media (max-width: 767px) and (orientation: portrait) {
.ehb-drill-modal--unified .ehb-modal-head {
align-items: flex-start !important;
min-height: 68px !important;
height: auto !important;
padding: max(10px, env(safe-area-inset-top, 10px)) 12px 10px !important;
}
.ehb-drill-modal--unified .ehb-modal-head__title-group {
width: 100%;
align-items: flex-start !important;
gap: 10px !important;
}
.ehb-drill-modal--unified .ehb-modal-head__title-group > div {
min-width: 0 !important;
padding-top: 1px;
}
.ehb-drill-modal--unified .ehb-modal-head__title {
display: block !important;
overflow: visible !important;
color: #f8fafc !important;
font-size: 14px !important;
line-height: 1.35 !important;
white-space: normal !important;
text-overflow: clip !important;
text-wrap: pretty;
-webkit-line-clamp: unset !important;
-webkit-box-orient: initial !important;
}
.ehb-drill-modal--unified .ehb-modal-head__sub {
overflow: visible !important;
margin-top: 3px !important;
font-size: 10px !important;
line-height: 1.35 !important;
white-space: normal !important;
text-overflow: clip !important;
}
.ehb-drill-modal--unified .ehb-modal-head__actions {
display: none !important;
}
.ehb-drill-modal--unified .ehb-modal-back-btn {
flex: 0 0 44px;
align-self: flex-start;
}
.ehb-drill-modal--supports-landscape .ehb-modal-head__title-group {
box-sizing: border-box;
padding-inline-end: 54px;
}
.ehb-drill-modal--supports-landscape .ehb-modal-head__actions {
position: absolute;
top: max(10px, env(safe-area-inset-top, 10px));
right: 12px;
display: flex !important;
width: 44px;
height: 44px;
}
.ehb-drill-modal--supports-landscape .ehb-modal-head__actions .mobile-list-fullscreen-trigger {
position: static;
width: 44px;
min-width: 44px;
height: 44px;
padding: 0;
}
.ehb-drill-modal--supports-landscape .ehb-modal-close-btn {
display: none !important;
}
}
/* 利润与近期指标使用独立移动端结构,避免桌面通用 KPI 内部顺序错位。 */
@media (max-width: 767px) {
.ehb-mobile-profit-card {
display: grid;
width: 100%;
min-height: 124px;
margin-bottom: 12px;
grid-template-columns: 44px minmax(0, 1fr) minmax(132px, .9fr);
align-items: center;
gap: 10px;
padding: 16px;
border: 1px solid #dce5f0;
border-radius: 14px;
background: #fff;
color: #26364f;
text-align: left;
}
.ehb-mobile-profit-card__icon {
display: grid;
width: 44px;
height: 44px;
place-items: center;
border-radius: 50%;
background: #e7f8ef;
color: #16a34a;
}
.ehb-mobile-profit-card__result {
display: grid;
min-width: 0;
gap: 8px;
}
.ehb-mobile-profit-card__result > span {
color: #536782;
font-size: 13px;
font-weight: 700;
}
.ehb-mobile-profit-card__result > strong {
color: #16a34a;
font-family: var(--bi-font-mono);
font-size: clamp(24px, 7vw, 31px);
font-variant-numeric: tabular-nums;
line-height: 1;
white-space: nowrap;
}
.ehb-mobile-profit-card__result small {
margin: 0 2px;
color: #58708f;
font-size: 11px;
}
.ehb-mobile-profit-card__breakdown {
display: grid;
min-width: 0;
align-content: center;
gap: 12px;
align-self: stretch;
padding-left: 14px;
border-left: 1px solid #e3e9f1;
}
.ehb-mobile-profit-card__breakdown > span {
display: grid;
grid-template-columns: 18px minmax(0, 1fr);
align-items: center;
gap: 6px;
color: #2f6bff;
}
.ehb-mobile-profit-card__breakdown > span + span {
color: #f28a35;
}
.ehb-mobile-profit-card__breakdown > span > span {
display: grid;
gap: 2px;
color: #64748b;
font-size: 11px;
}
.ehb-mobile-profit-card__breakdown strong {
color: #445975;
font-family: var(--bi-font-mono);
font-size: 11px;
font-variant-numeric: tabular-nums;
white-space: nowrap;
}
.ehb-mobile-period-cards {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
}
.ehb-mobile-period-card {
display: grid;
min-width: 0;
min-height: 144px;
align-content: start;
gap: 10px;
padding: 14px;
border: 1px solid #dce5f0;
border-radius: 14px;
background: #fff;
color: #26364f;
text-align: left;
}
.ehb-mobile-period-card__head {
display: flex;
min-width: 0;
align-items: center;
justify-content: space-between;
gap: 6px;
color: #536782;
font-size: 13px;
font-weight: 700;
}
.ehb-mobile-period-card__head > span {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ehb-mobile-period-card__head i {
display: grid;
width: 34px;
height: 34px;
flex: 0 0 34px;
place-items: center;
border-radius: 50%;
background: #eef4ff;
color: #2f6bff;
}
.ehb-mobile-period-card > strong {
color: #18263d;
font-family: var(--bi-font-mono);
font-size: clamp(27px, 8vw, 34px);
font-variant-numeric: tabular-nums;
line-height: 1;
white-space: nowrap;
}
.ehb-mobile-period-card > strong small {
margin-left: 3px;
color: #64748b;
font-size: 11px;
}
.ehb-mobile-period-card__footer {
margin-top: auto;
padding-top: 10px;
border-top: 1px solid #e7edf5;
color: #657995;
font-size: 11px;
white-space: nowrap;
}
.ehb-host-kpi > .ehb-kpi-dual:nth-child(3),
.ehb-host-kpi > .ehb-recent-kpis {
display: none !important;
}
}
/* 移动端紧凑密度:在不缩小触控热区的前提下,让一屏承载更多经营信息。 */
@media (max-width: 767px) {
.ehb-body {
--ehb-mobile-section-gap: 8px;
--ehb-mobile-card-padding: 12px;
padding-inline: 8px;
}
.ehb-chrome,
.ehb-mobile-operating-overview,
.ehb-mobile-profit-card,
.ehb-mobile-month-summary,
.ehb-host,
.ehb-chart-box,
.ehb-sum-table-card,
.ehb-mobile-detail-tabs-card {
margin-bottom: var(--ehb-mobile-section-gap) !important;
}
.ehb-chart-box,
.ehb-sum-table-card,
.ehb-mobile-profit-card,
.ehb-mobile-period-card {
padding: var(--ehb-mobile-card-padding) !important;
}
.ehb-mobile-period-cards,
.ehb-host-kpi,
.ehb-overview-charts,
.ehb-two-charts-row {
gap: var(--ehb-mobile-section-gap) !important;
}
.ehb-mobile-operating-overview__head {
min-height: 40px;
padding-inline: 12px;
}
.ehb-mobile-operating-overview__metrics {
margin-inline: 12px;
}
.ehb-mobile-operating-overview__metrics button {
min-height: 84px;
padding-block: 10px;
}
.ehb-mobile-profit-card {
min-height: 104px;
}
.ehb-mobile-period-card {
min-height: 120px;
gap: 8px;
}
.ehb-drill-modal--unified .ehb-modal-body {
padding: 8px !important;
}
.ehb-drill-modal--unified .ehb-modal-filter-row {
margin-bottom: 6px !important;
padding: 6px !important;
}
.ehb-drill-modal--unified .ehb-modal-table {
min-width: 720px !important;
table-layout: fixed !important;
}
.ehb-drill-modal--unified .ehb-modal-table th,
.ehb-drill-modal--unified .ehb-modal-table > tbody > tr > td {
box-sizing: border-box;
min-height: 44px;
height: 44px;
padding: 6px 8px !important;
line-height: 1.3;
}
.ehb-drill-modal--unified .ehb-modal-table th:first-child,
.ehb-drill-modal--unified .ehb-modal-table td:first-child {
width: 132px !important;
min-width: 132px !important;
max-width: 132px !important;
}
.ehb-drill-modal--unified .ehb-modal-table th:nth-child(2),
.ehb-drill-modal--unified .ehb-modal-table td:nth-child(2) {
width: 132px;
}
.ehb-drill-modal--unified .ehb-tree-cell-l1 {
padding-left: 6px !important;
}
.ehb-drill-modal--unified .ehb-tree-cell-l2 {
padding-left: 10px !important;
}
.ehb-drill-modal--unified .ehb-tree-node-title {
gap: 4px;
}
}
/* 放在全部历史规则之后,确保趋势数字本身保持中性。 */
.ehb-day-change,
.ehb-day-change.is-up,
.ehb-day-change.is-down,
.ehb-trend-value,
.ehb-trend-value.is-up,
.ehb-trend-value.is-down {
color: #334155 !important;
}
/* 数据明细工具区:标题、页签、地域筛选、统计范围保持同一紧凑节奏。 */
.ehb-mobile-detail-tabs-head {
gap: 10px;
padding: 12px 16px 8px;
}
.ehb-mobile-detail-panel {
padding: 8px 16px 16px !important;
}
.ehb-station-summary-card .ehb-sum-table-card__head {
min-height: 34px;
margin-bottom: 8px;
gap: 8px !important;
}
.ehb-station-summary-card .ehb-sum-table-card__head > div:first-child {
min-width: 0;
flex: 1 1 auto;
gap: 8px !important;
}
.ehb-station-summary-card .ehb-sum-table-card__meta {
flex: 0 0 auto;
margin-left: auto;
margin-right: 102px;
white-space: nowrap;
}
.ehb-station-fullscreen__table-wrap table {
width: max(100%, 980px);
min-width: 980px;
table-layout: auto;
}
.ehb-station-fullscreen__table-wrap th:nth-child(2),
.ehb-station-fullscreen__table-wrap td:nth-child(2) {
min-width: 230px;
}
@media (max-width: 767px) {
.ehb-mobile-detail-tabs-head {
padding: 12px 12px 6px;
}
.ehb-mobile-detail-tabs {
margin-top: 8px;
}
.ehb-mobile-detail-panel {
padding: 6px 12px 12px !important;
}
.ehb-station-summary-card .ehb-sum-table-card__head {
margin-bottom: 6px;
}
.ehb-station-summary-card .ehb-sum-table-card__meta {
margin: 0;
white-space: normal;
}
[data-mobile-fullscreen-active="true"] .ehb-mobile-detail-tabs-head {
padding: 4px 106px 6px 4px !important;
}
[data-mobile-fullscreen-active="true"] .ehb-mobile-detail-tabs-title {
padding-right: 0;
}
[data-mobile-fullscreen-active="true"] .ehb-mobile-detail-tabs {
width: min(360px, 100%);
margin-top: 4px;
}
[data-mobile-fullscreen-active="true"] .ehb-mobile-detail-panel {
padding: 4px !important;
}
[data-mobile-fullscreen-active="true"] .ehb-sum-table {
width: 1120px !important;
min-width: 1120px !important;
}
[data-mobile-fullscreen-active="true"] .ehb-sum-table-wrap {
overscroll-behavior-x: contain;
-webkit-overflow-scrolling: touch;
}
[data-mobile-fullscreen-active="true"] .ehb-station-fullscreen-trigger {
display: none !important;
}
}
/* 真实数据下钻沿用 8113 原型的信息顺序;窄屏只滚动,不替换信息架构。 */
.ehb-drill-root-tabs {
display: flex;
justify-content: flex-end;
gap: 4px;
margin: 0 0 10px;
}
.ehb-drill-root-tabs .ehb-pill-btn {
min-height: 30px;
padding: 5px 13px;
border: 1px solid #dbe4ef;
border-radius: 8px;
background: #fff;
color: #64748b;
font-size: 12px;
font-weight: 700;
}
.ehb-drill-root-tabs .ehb-pill-btn.is-active {
border-color: #c6d9ff;
background: #eaf2ff;
color: #2f6bff;
}
@media (max-width: 767px) {
.ehb-drill-modal--unified .ehb-modal-body {
display: block !important;
overflow: auto !important;
padding: 12px !important;
}
.ehb-drill-modal--unified .ehb-drill-root-tabs {
display: flex !important;
justify-content: flex-end;
margin-bottom: 10px;
}
.ehb-drill-modal--unified .ehb-modal-meta-bar {
display: grid !important;
grid-template-columns: repeat(4, minmax(126px, 1fr)) !important;
min-width: 600px;
overflow: visible !important;
}
.ehb-drill-modal--unified .ehb-modal-filter-row,
.ehb-drill-modal--unified .ehb-modal-filter-group {
display: flex !important;
width: auto !important;
flex-flow: row wrap !important;
align-items: center !important;
}
.ehb-drill-modal--unified .ehb-modal-filter-row {
gap: 8px !important;
padding: 10px !important;
}
.ehb-drill-modal--unified .ehb-modal-filter-group {
gap: 8px !important;
}
.ehb-drill-modal--unified .ehb-bi-search-select {
display: block !important;
width: 180px !important;
}
.ehb-drill-modal--unified .ehb-fleet-segmented,
.ehb-drill-modal--unified .ehb-export-btn,
.ehb-drill-modal--unified .ehb-modal-hint-text,
.ehb-drill-modal--unified .ehb-modal-search-input {
display: flex !important;
}
.ehb-drill-modal--unified .ehb-modal-table-wrap {
overflow: auto !important;
}
.ehb-drill-modal--unified .ehb-modal-table {
min-width: 1120px !important;
table-layout: auto !important;
}
}
.ehb-live-data-state.is-loading {
position: fixed;
z-index: 500;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
gap: 8px;
background: rgb(244 247 251 / 96%);
color: #64748b;
font-size: 12px;
backdrop-filter: blur(3px);
}
.ehb-live-data-state.is-loading strong {
color: #1e293b;
font-size: 15px;
}
.ehb-live-data-spinner {
width: 28px;
height: 28px;
border: 3px solid #dbeafe;
border-top-color: #2f6bff;
border-radius: 50%;
animation: ehb-live-spin .75s linear infinite;
}
.ehb-api-error-overlay {
position: fixed;
z-index: 560;
inset: 0;
display: grid;
place-items: center;
padding: 24px;
background: rgb(15 23 42 / 54%);
backdrop-filter: blur(5px);
}
.ehb-api-error-dialog {
width: min(520px, 100%);
display: grid;
grid-template-columns: auto minmax(0, 1fr);
gap: 16px;
padding: 24px;
border: 1px solid #fecaca;
border-radius: 20px;
background: #fff;
box-shadow: 0 24px 70px rgb(15 23 42 / 28%);
}
.ehb-api-error-icon {
width: 52px;
height: 52px;
display: grid;
place-items: center;
color: #dc2626;
background: #fef2f2;
border-radius: 16px;
}
.ehb-api-error-copy { min-width: 0; }
.ehb-api-error-copy strong {
display: block;
color: #0f172a;
font-size: 20px;
line-height: 1.4;
}
.ehb-api-error-copy p {
margin: 8px 0 12px;
color: #475569;
font-size: 14px;
line-height: 1.65;
}
.ehb-api-error-copy code {
display: block;
overflow-wrap: anywhere;
padding: 9px 11px;
color: #b42318;
background: #fff7ed;
border: 1px solid #fed7aa;
border-radius: 10px;
font: 600 12px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.ehb-api-error-retry {
grid-column: 2;
justify-self: start;
display: inline-flex;
align-items: center;
gap: 7px;
min-height: 42px;
padding: 0 18px;
border: 0;
border-radius: 11px;
color: #fff;
background: #2563eb;
font-size: 14px;
font-weight: 700;
cursor: pointer;
box-shadow: 0 8px 20px rgb(37 99 235 / 24%);
}
.ehb-api-error-retry:hover { background: #1d4ed8; }
.ehb-api-error-retry:focus-visible { outline: 3px solid rgb(147 197 253 / 75%); outline-offset: 3px; }
@media (max-width: 560px) {
.ehb-api-error-overlay { padding: 18px; }
.ehb-api-error-dialog {
grid-template-columns: 1fr;
gap: 12px;
padding: 22px 20px;
border-radius: 18px;
}
.ehb-api-error-icon { width: 46px; height: 46px; border-radius: 14px; }
.ehb-api-error-copy strong { font-size: 19px; }
.ehb-api-error-retry { grid-column: 1; width: 100%; justify-content: center; }
}
@keyframes ehb-live-spin {
to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
.ehb-live-data-spinner { animation: none; }
}
/* 触摸设备不保留 sticky hover 浮层,避免遮挡图表;完整数值仍由柱顶标签与下钻提供。 */
@media (hover: none), (pointer: coarse) {
.ehb-mbar-tooltip,
.ehb-rev-income-tooltip,
.ehb-rev-cost-tooltip,
.ehb-top-bar-tooltip,
.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 {
display: none !important;
}
}
/* Mobile drill workspace v2: one authoritative rule-set after legacy overrides. */
@media (max-width: 767px) {
.ehb-modal-overlay {
align-items: stretch !important;
padding: 0 !important;
background: #eaf0f8 !important;
}
.ehb-drill-modal--unified {
width: 100vw !important;
max-width: 100vw !important;
height: 100dvh !important;
max-height: 100dvh !important;
margin: 0 !important;
border: 0 !important;
border-radius: 0 !important;
box-shadow: none !important;
}
.ehb-drill-modal--unified .ehb-modal-head {
position: sticky !important;
top: 0;
z-index: 30;
min-height: 72px !important;
padding: max(12px, env(safe-area-inset-top)) 14px 11px !important;
background: #0f1b32 !important;
box-shadow: 0 1px 0 rgb(255 255 255 / 12%);
}
.ehb-drill-modal--unified .ehb-modal-head__title { font-size: 15px !important; }
.ehb-drill-modal--unified .ehb-modal-head__sub { color: #9fb0ca !important; font-size: 10px !important; }
.ehb-drill-modal--unified .ehb-modal-back-btn {
border-color: rgb(255 255 255 / 18%) !important;
background: rgb(255 255 255 / 8%) !important;
}
.ehb-drill-modal--unified .ehb-modal-body {
display: flex !important;
min-height: 0 !important;
padding: 12px !important;
gap: 10px;
background: #f4f7fb !important;
}
.ehb-drill-modal--unified .ehb-drill-root-tabs,
.ehb-drill-modal--unified .ehb-mobile-drill-overview,
.ehb-drill-modal--unified .ehb-modal-meta-bar,
.ehb-drill-modal--unified .ehb-drill-filter-summary-row {
flex: 0 0 auto;
margin: 0 !important;
border: 1px solid #dce5f1 !important;
border-radius: 13px !important;
background: #fff !important;
box-shadow: 0 5px 18px rgb(33 53 85 / 5%);
}
.ehb-drill-modal--unified .ehb-mobile-drill-overview { padding: 14px !important; }
.ehb-drill-modal--unified .ehb-modal-meta-bar {
grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
overflow: hidden;
}
.ehb-drill-modal--unified .ehb-modal-meta-item {
min-height: 62px !important;
padding: 10px 12px !important;
border-bottom: 1px solid #edf1f6;
}
.ehb-drill-modal--cumulative .ehb-drill-filter-summary-row {
display: grid !important;
grid-template-columns: minmax(0, 1fr) 48px !important;
padding: 5px !important;
}
.ehb-drill-modal--cumulative .ehb-drill-filter-summary-row .mobile-list-fullscreen-trigger {
display: inline-flex !important;
position: static !important;
width: 44px !important;
min-width: 44px !important;
height: 44px !important;
padding: 0 !important;
}
.ehb-drill-filter-summary-row .mobile-list-fullscreen-trigger__label { display: none !important; }
.ehb-drill-modal--unified .ehb-h5-scroll-hint {
display: flex !important;
flex: 0 0 auto;
align-items: center;
justify-content: center;
min-height: 30px;
margin: 0 !important;
border-radius: 9px;
color: #2563eb;
background: #e8f1ff;
font-size: 10px;
font-weight: 700;
}
.ehb-drill-modal--unified .ehb-modal-table-wrap {
flex: 1 1 auto !important;
min-height: 260px !important;
height: auto !important;
max-height: none !important;
margin: 0 !important;
overflow: auto !important;
overscroll-behavior: contain;
border: 1px solid #dce5f1 !important;
border-radius: 13px !important;
background: #fff !important;
box-shadow: 0 8px 24px rgb(33 53 85 / 6%);
-webkit-overflow-scrolling: touch;
}
.ehb-drill-modal--unified .ehb-modal-table {
width: max-content !important;
min-width: 1080px !important;
table-layout: fixed !important;
}
.ehb-drill-modal--unified .ehb-modal-table th,
.ehb-drill-modal--unified .ehb-modal-table > tbody > tr > td {
min-width: 126px;
height: auto !important;
min-height: 52px !important;
padding: 10px 12px !important;
font-size: 11px !important;
line-height: 1.45 !important;
vertical-align: middle;
}
.ehb-drill-modal--unified .ehb-modal-table th {
position: sticky !important;
top: 0;
z-index: 8;
color: #53647d !important;
background: #f7f9fc !important;
}
.ehb-drill-modal--unified .ehb-modal-table th:first-child,
.ehb-drill-modal--unified .ehb-modal-table td:first-child {
position: sticky !important;
left: 0;
z-index: 7;
width: 190px !important;
min-width: 190px !important;
max-width: 190px !important;
background: #fff !important;
box-shadow: 8px 0 14px -13px #334155;
}
.ehb-drill-modal--unified .ehb-modal-table th:first-child {
z-index: 12;
background: #f7f9fc !important;
}
.ehb-drill-modal--unified .ehb-modal-table th:nth-child(2),
.ehb-drill-modal--unified .ehb-modal-table td:nth-child(2) { width: 144px !important; min-width: 144px !important; }
}
html.ehb-landscape-session .ehb-modal-overlay {
position: fixed !important;
inset: 0 !important;
z-index: 10000 !important;
padding: 0 !important;
}
html.ehb-landscape-session .ehb-drill-modal--unified {
position: fixed !important;
inset: 0 !important;
width: 100vw !important;
max-width: 100vw !important;
height: 100dvh !important;
max-height: 100dvh !important;
border-radius: 0 !important;
}
html.ehb-landscape-session .ehb-drill-modal--unified .ehb-modal-body {
display: flex !important;
height: calc(100dvh - 54px) !important;
min-height: 0 !important;
padding: 8px 10px 10px !important;
gap: 8px;
overflow: hidden !important;
}
html.ehb-landscape-session .ehb-drill-modal--unified .ehb-mobile-drill-overview,
html.ehb-landscape-session .ehb-drill-modal--unified .ehb-modal-meta-bar {
flex: 0 0 auto;
}
html.ehb-landscape-session .ehb-drill-modal--unified .ehb-modal-meta-bar {
grid-template-columns: repeat(4, minmax(150px, 1fr)) !important;
}
html.ehb-landscape-session .ehb-drill-modal--unified .ehb-modal-table-wrap {
flex: 1 1 auto !important;
min-height: 0 !important;
height: auto !important;
max-height: none !important;
overflow: auto !important;
}
html.ehb-landscape-session .ehb-drill-modal--unified .ehb-modal-table {
min-width: 1180px !important;
}
html.ehb-landscape-session .ehb-drill-modal--unified .ehb-modal-table th:first-child,
html.ehb-landscape-session .ehb-drill-modal--unified .ehb-modal-table td:first-child {
width: 220px !important;
min-width: 220px !important;
max-width: 220px !important;
}
/* 桌面端累计卡片三项构成:金额必须完整展示,不允许用省略号隐藏业务数据。 */
@media (min-width: 768px) {
.ehb-host-kpi .ehb-kpi-dual__deck.is-three {
display: grid !important;
grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
align-items: start !important;
gap: 0 !important;
padding: 8px 10px !important;
}
.ehb-host-kpi .ehb-kpi-dual__deck.is-three > span {
display: flex !important;
min-width: 0 !important;
flex-direction: column !important;
align-items: flex-start !important;
gap: 3px !important;
padding: 0 7px !important;
overflow: visible !important;
}
.ehb-host-kpi .ehb-kpi-dual__deck.is-three > span:first-child { padding-left: 0 !important; }
.ehb-host-kpi .ehb-kpi-dual__deck.is-three > span:last-child { padding-right: 0 !important; }
.ehb-host-kpi .ehb-kpi-dual__deck.is-three > span + span { border-left: 1px solid #e4eaf2; }
.ehb-host-kpi .ehb-kpi-dual__deck.is-three small,
.ehb-host-kpi .ehb-kpi-dual__deck.is-three strong {
display: block !important;
max-width: none !important;
overflow: visible !important;
text-overflow: clip !important;
white-space: nowrap !important;
}
.ehb-host-kpi .ehb-kpi-dual__deck.is-three small { font: 600 10px/1.2 var(--bi-font) !important; }
.ehb-host-kpi .ehb-kpi-dual__deck.is-three strong {
font: 700 10px/1.25 var(--bi-font-mono) !important;
letter-spacing: -0.04em !important;
}
.ehb-host-kpi .ehb-kpi-dual__deck.is-triple {
display: grid !important;
grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
align-items: start !important;
gap: 0 !important;
padding: 8px 10px !important;
}
.ehb-host-kpi .ehb-kpi-dual__deck.is-triple .ehb-kpi-dual__detail {
display: flex !important;
min-width: 0 !important;
flex-direction: column !important;
align-items: flex-start !important;
gap: 3px !important;
padding: 0 8px !important;
overflow: visible !important;
}
.ehb-host-kpi .ehb-kpi-dual__deck.is-triple .ehb-kpi-dual__detail:first-child {
padding-left: 0 !important;
}
.ehb-host-kpi .ehb-kpi-dual__deck.is-triple .ehb-kpi-dual__detail:last-child {
padding-right: 0 !important;
}
.ehb-host-kpi .ehb-kpi-dual__deck.is-triple .ehb-kpi-dual__detail + .ehb-kpi-dual__detail {
border-left: 1px solid #e4eaf2;
}
.ehb-host-kpi .ehb-kpi-dual__detail-label,
.ehb-host-kpi .ehb-kpi-dual__detail-value {
display: block !important;
max-width: none !important;
overflow: visible !important;
text-overflow: clip !important;
white-space: nowrap !important;
}
.ehb-host-kpi .ehb-kpi-dual__detail-label {
color: #71819a;
font: 600 10px/1.2 var(--bi-font);
}
.ehb-host-kpi .ehb-kpi-dual__detail-value {
color: #26364f;
font: 700 10px/1.25 var(--bi-font-mono);
font-variant-numeric: tabular-nums;
letter-spacing: -0.03em;
}
}