前端体验升级专项:驾驶舱T型Hero+趋势折线+播报轮播、图谱骨架屏与右键菜单、双雷达图、主色#1890FF统一、空状态补齐、移除调试探针
This commit is contained in:
+131
-45
@@ -4,9 +4,9 @@
|
||||
============================================================ */
|
||||
:root {
|
||||
/* 品牌色 */
|
||||
--primary: #2f54eb;
|
||||
--primary-hover: #1d39c4;
|
||||
--primary-light: #f0f5ff;
|
||||
--primary: #1890ff;
|
||||
--primary-hover: #096dd9;
|
||||
--primary-light: #e6f7ff;
|
||||
--success: #00b42a;
|
||||
--success-light: #e8ffea;
|
||||
--warning: #ff7d00;
|
||||
@@ -41,6 +41,7 @@ html, body { height: 100%; }
|
||||
body {
|
||||
font-family: var(--font);
|
||||
font-size: 14px;
|
||||
line-height: 1.6;
|
||||
color: var(--text-1);
|
||||
background: var(--bg-page);
|
||||
overflow: hidden;
|
||||
@@ -80,7 +81,7 @@ svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width:
|
||||
.brand { display: flex; align-items: center; gap: 8px; }
|
||||
.brand-logo {
|
||||
width: 30px; height: 30px; border-radius: 7px;
|
||||
background: linear-gradient(135deg, #2f54eb, #13c2c2);
|
||||
background: linear-gradient(135deg, #1890ff, #13c2c2);
|
||||
display: inline-flex; align-items: center; justify-content: center;
|
||||
}
|
||||
.brand-logo svg { width: 19px; height: 19px; color: #fff; }
|
||||
@@ -88,7 +89,7 @@ svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width:
|
||||
.brand-name b { font-weight: 600; }
|
||||
.page-title {
|
||||
position: absolute; left: 50%; transform: translateX(-50%);
|
||||
font-size: 15px; font-weight: 600; color: var(--text-1);
|
||||
font-size: 20px; font-weight: 600; color: var(--text-1);
|
||||
}
|
||||
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
|
||||
.global-search {
|
||||
@@ -134,7 +135,7 @@ svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width:
|
||||
font-size: 12px; line-height: 20px; padding: 0 8px;
|
||||
border-radius: var(--radius-sm); border: 1px solid transparent; white-space: nowrap;
|
||||
}
|
||||
.tag-blue { color: var(--primary); background: var(--primary-light); border-color: #d6e4ff; }
|
||||
.tag-blue { color: var(--primary); background: var(--primary-light); border-color: #91d5ff; }
|
||||
.tag-green { color: var(--success); background: var(--success-light); border-color: #b7eb8f; }
|
||||
.tag-orange { color: var(--warning); background: var(--warning-light); border-color: #ffd591; }
|
||||
.tag-red { color: var(--danger); background: var(--danger-light); border-color: #ffa39e; }
|
||||
@@ -194,7 +195,7 @@ svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width:
|
||||
display: flex; align-items: center; justify-content: space-between;
|
||||
padding: 14px 16px; border-bottom: 1px solid var(--border);
|
||||
}
|
||||
.card-head h3 { font-size: 15px; font-weight: 600; }
|
||||
.card-head h3 { font-size: 18px; font-weight: 600; }
|
||||
.card-body { padding: 16px; }
|
||||
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
|
||||
|
||||
@@ -225,7 +226,7 @@ svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width:
|
||||
padding: 6px 10px; outline: none; background: #fff;
|
||||
transition: border-color 0.15s;
|
||||
}
|
||||
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(47, 84, 235, 0.1); }
|
||||
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1); }
|
||||
.textarea { width: 100%; resize: vertical; line-height: 1.6; }
|
||||
.select { height: 32px; }
|
||||
.form-row { margin-bottom: 16px; }
|
||||
@@ -246,30 +247,35 @@ svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width:
|
||||
.empty svg { width: 44px; height: 44px; stroke-width: 1.2; margin-bottom: 10px; opacity: 0.5; }
|
||||
.empty p { font-size: 13px; line-height: 1.8; }
|
||||
.empty.small { padding: 20px; font-size: 13px; }
|
||||
.skeleton-graph {
|
||||
width: 240px; height: 240px; border-radius: 50%;
|
||||
background: radial-gradient(circle, #e8ebf0 20%, transparent 21%),
|
||||
conic-gradient(#e8ebf0, #f5f6f8, #e8ebf0);
|
||||
animation: pulse 1.4s ease-in-out infinite;
|
||||
.empty.small svg { width: 30px; height: 30px; }
|
||||
/* 图谱加载骨架屏:节点/连线占位形状 + shimmer 扫光 */
|
||||
.sk-graph { position: relative; width: 280px; height: 240px; overflow: hidden; border-radius: var(--radius); }
|
||||
.sk-node { position: absolute; border-radius: 50%; background: #e8ebf0; }
|
||||
.sk-node.sk-sq { border-radius: 5px; }
|
||||
.sk-center { left: 126px; top: 100px; width: 28px; height: 28px; }
|
||||
.sk-n1 { left: 30px; top: 30px; width: 18px; height: 18px; }
|
||||
.sk-n2 { left: 216px; top: 24px; width: 18px; height: 18px; }
|
||||
.sk-n3 { left: 24px; top: 178px; width: 18px; height: 18px; }
|
||||
.sk-n4 { left: 222px; top: 184px; width: 18px; height: 18px; }
|
||||
.sk-n5 { left: 80px; top: 196px; width: 16px; height: 16px; }
|
||||
.sk-n6 { left: 186px; top: 78px; width: 16px; height: 16px; }
|
||||
.sk-n7 { left: 60px; top: 92px; width: 16px; height: 16px; }
|
||||
.sk-edge { position: absolute; height: 3px; border-radius: 2px; background: #eef0f4; transform-origin: left center; }
|
||||
.sk-e1 { left: 46px; top: 42px; width: 100px; transform: rotate(38deg); }
|
||||
.sk-e2 { left: 152px; top: 106px; width: 84px; transform: rotate(-32deg); }
|
||||
.sk-e3 { left: 42px; top: 186px; width: 106px; transform: rotate(-38deg); }
|
||||
.sk-e4 { left: 152px; top: 122px; width: 92px; transform: rotate(40deg); }
|
||||
.sk-e5 { left: 96px; top: 200px; width: 56px; transform: rotate(-58deg); }
|
||||
.sk-e6 { left: 76px; top: 96px; width: 56px; transform: rotate(6deg); }
|
||||
.sk-graph::after {
|
||||
content: ""; position: absolute; inset: 0;
|
||||
background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.8) 50%, transparent 70%);
|
||||
animation: sk-sweep 1.6s linear infinite;
|
||||
}
|
||||
@keyframes pulse { 50% { opacity: 0.5; } }
|
||||
@keyframes sk-sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
|
||||
|
||||
/* ============ 数据驾驶舱 ============ */
|
||||
.metric-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
|
||||
.metric-card {
|
||||
background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
|
||||
box-shadow: var(--shadow-card); padding: 16px; cursor: pointer;
|
||||
transition: all 0.15s; position: relative; overflow: hidden;
|
||||
}
|
||||
.metric-card:hover { border-color: var(--primary); box-shadow: var(--shadow-pop); transform: translateY(-2px); }
|
||||
.metric-card .mc-label { font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
|
||||
.metric-card .mc-label svg { width: 15px; height: 15px; color: var(--primary); }
|
||||
.metric-card .mc-num { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; margin: 6px 0 4px; }
|
||||
.metric-card .mc-delta { font-size: 12px; display: inline-flex; align-items: center; gap: 3px; }
|
||||
.metric-card .mc-delta.up { color: var(--success); }
|
||||
.metric-card .mc-delta.down { color: var(--danger); }
|
||||
.metric-card .mc-delta.flat { color: var(--text-3); }
|
||||
.metric-card canvas { position: absolute; right: 10px; bottom: 10px; opacity: 0.9; }
|
||||
/* 首屏 Hero 指标卡样式见文末「2026-08 前端体验升级专项」.hero-kpis */
|
||||
|
||||
.feed { max-height: 320px; overflow-y: auto; }
|
||||
.feed-item {
|
||||
@@ -301,7 +307,7 @@ svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width:
|
||||
padding: 12px 16px; margin-bottom: 12px;
|
||||
}
|
||||
.graph-title { display: flex; align-items: center; gap: 10px; }
|
||||
.graph-title h2 { font-size: 18px; font-weight: 600; }
|
||||
.graph-title h2 { font-size: 20px; font-weight: 600; }
|
||||
.graph-actions { display: flex; gap: 8px; }
|
||||
.graph-view-tabs { margin: 0 auto; }
|
||||
|
||||
@@ -404,7 +410,7 @@ svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width:
|
||||
.gc-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; max-height: 62px; overflow-y: auto; }
|
||||
.chain-chip {
|
||||
display: inline-flex; align-items: center; gap: 4px;
|
||||
border: 1px solid #b7c6f5; background: var(--primary-light); color: var(--primary);
|
||||
border: 1px solid #91d5ff; background: var(--primary-light); color: var(--primary);
|
||||
font-size: 12px; border-radius: 12px; padding: 2px 10px; cursor: pointer;
|
||||
}
|
||||
.chain-chip:hover { background: var(--primary); color: #fff; }
|
||||
@@ -450,7 +456,7 @@ svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width:
|
||||
font-size: 13px; padding: 6px 8px; border-radius: var(--radius-sm);
|
||||
cursor: pointer; border: 1px solid transparent;
|
||||
}
|
||||
.rel-item:hover { background: var(--primary-light); border-color: #d6e4ff; }
|
||||
.rel-item:hover { background: var(--primary-light); border-color: #91d5ff; }
|
||||
.rel-item .ri-kind { flex: none; }
|
||||
.rel-item .ri-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.rel-item .ri-extra { font-size: 12px; color: var(--text-3); flex: none; }
|
||||
@@ -521,7 +527,7 @@ svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width:
|
||||
.chip-editor { display: flex; flex-wrap: wrap; gap: 8px; min-height: 40px; border: 1px dashed var(--border-dark); border-radius: var(--radius); padding: 10px; }
|
||||
.skill-chip {
|
||||
display: inline-flex; align-items: center; gap: 5px;
|
||||
background: var(--primary-light); color: var(--primary); border: 1px solid #d6e4ff;
|
||||
background: var(--primary-light); color: var(--primary); border: 1px solid #91d5ff;
|
||||
font-size: 13px; border-radius: var(--radius-sm); padding: 3px 6px 3px 10px;
|
||||
}
|
||||
.skill-chip button { border: none; background: none; color: inherit; font-size: 14px; line-height: 1; padding: 0 2px; }
|
||||
@@ -733,7 +739,7 @@ svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width:
|
||||
}
|
||||
.toast.success { border-color: #b7eb8f; color: var(--success); }
|
||||
.toast.error { border-color: #ffa39e; color: var(--danger); }
|
||||
.toast.info { border-color: #d6e4ff; color: var(--primary); }
|
||||
.toast.info { border-color: #91d5ff; color: var(--primary); }
|
||||
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }
|
||||
|
||||
/* 滚动条 */
|
||||
@@ -924,7 +930,7 @@ svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width:
|
||||
|
||||
/* 一键配置主按钮区 */
|
||||
.setup-hero {
|
||||
border: 1px solid #d6e4ff; background: var(--primary-light);
|
||||
border: 1px solid #91d5ff; background: var(--primary-light);
|
||||
border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px;
|
||||
}
|
||||
.setup-hero .btn { width: 100%; }
|
||||
@@ -1074,17 +1080,15 @@ svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width:
|
||||
|
||||
/* ============ 2026Q3 改版:指挥台 / 审核台 / 证据地图 / 生命线 / 路线图 ============ */
|
||||
|
||||
/* 指挥台首屏 */
|
||||
/* 指挥台首屏(弱化:结论行降级为普通卡片,主视觉让给 Hero 指标区与趋势图) */
|
||||
.cmd-hero {
|
||||
display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
|
||||
padding: 16px 20px; margin-bottom: 16px;
|
||||
background: linear-gradient(135deg, #f0f5ff 0%, #ffffff 55%);
|
||||
padding: 12px 20px; margin-bottom: 16px;
|
||||
}
|
||||
.cmd-hero-main h2 { font-size: 18px; font-weight: 600; }
|
||||
.cmd-sub { font-size: 13px; color: var(--text-2); margin-top: 6px; }
|
||||
.cmd-scale { font-size: 12px; margin-top: 6px; }
|
||||
.cmd-hero-main h2 { font-size: 20px; font-weight: 600; }
|
||||
.cmd-sub { font-size: 13px; color: var(--text-2); margin-top: 4px; }
|
||||
.cmd-scale { font-size: 12px; margin-top: 4px; }
|
||||
.cmd-hero-actions { display: flex; gap: 8px; flex: none; padding-top: 4px; }
|
||||
.cmd-kpis { grid-template-columns: repeat(4, 1fr); margin-bottom: 16px; }
|
||||
.cmd-head-right { display: inline-flex; align-items: center; gap: 4px; }
|
||||
.cmd-ledger { margin-top: 16px; }
|
||||
.cmd-ledger .card-body { padding-top: 8px; }
|
||||
@@ -1128,7 +1132,7 @@ svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width:
|
||||
padding: 14px 16px; margin-bottom: 12px;
|
||||
}
|
||||
.cand-card.flash { animation: cand-flash 1.6s ease; }
|
||||
@keyframes cand-flash { 0%, 60% { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47, 84, 235, 0.15); } }
|
||||
@keyframes cand-flash { 0%, 60% { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.15); } }
|
||||
.cc-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
|
||||
.cc-head b { font-size: 15px; }
|
||||
.cc-def { font-size: 13px; color: var(--text-2); line-height: 1.6; margin-bottom: 8px; }
|
||||
@@ -1210,8 +1214,17 @@ svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width:
|
||||
}
|
||||
.path-demo-banner .btn { margin-left: auto; }
|
||||
|
||||
/* 驾驶舱事件流主图限高 */
|
||||
#trend-canvas { max-height: 260px; }
|
||||
/* 驾驶舱趋势图:等高布局 + hover tooltip */
|
||||
.cmd-main { align-items: stretch; }
|
||||
.cmd-main .card { display: flex; flex-direction: column; }
|
||||
.cmd-main .card-body { flex: 1; display: flex; flex-direction: column; }
|
||||
.trend-wrap { position: relative; }
|
||||
#trend-canvas { flex: 1; min-height: 240px; max-height: 300px; }
|
||||
.trend-tip {
|
||||
position: absolute; z-index: 5; pointer-events: none;
|
||||
background: rgba(29, 33, 41, 0.92); color: #fff; font-size: 12px;
|
||||
border-radius: 6px; padding: 6px 10px; line-height: 1.6; white-space: nowrap;
|
||||
}
|
||||
|
||||
/* 演化页图表说明文字 */
|
||||
.evo-chart-desc { font-size: 12px; color: var(--text-3); line-height: 1.7; margin: -2px 0 8px; }
|
||||
@@ -1227,3 +1240,76 @@ svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width:
|
||||
.scan-track { flex: 1; display: flex; height: 14px; background: var(--bg-page); border-radius: 3px; overflow: hidden; }
|
||||
.scan-bar { display: block; height: 100%; }
|
||||
.scan-num { flex: none; width: 34px; font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
|
||||
|
||||
/* ============ 2026-08 前端体验升级专项 ============ */
|
||||
|
||||
/* 驾驶舱 Hero 指标区:浅色渐变高亮卡 + count-up 数字 */
|
||||
.hero-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 14px; }
|
||||
.hero-kpi {
|
||||
background: linear-gradient(135deg, var(--primary-light) 0%, #ffffff 62%);
|
||||
border: 1px solid var(--border); border-radius: var(--radius);
|
||||
box-shadow: var(--shadow-card); padding: 16px 18px;
|
||||
transition: all 0.15s;
|
||||
}
|
||||
.hero-kpi.clickable { cursor: pointer; }
|
||||
.hero-kpi.clickable:hover { border-color: var(--primary); box-shadow: var(--shadow-pop); transform: translateY(-2px); }
|
||||
.hk-label { font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
|
||||
.hk-label svg { width: 15px; height: 15px; color: var(--primary); }
|
||||
.hk-num {
|
||||
font-size: 30px; font-weight: 700; color: var(--primary);
|
||||
font-variant-numeric: tabular-nums; margin: 6px 0 2px; line-height: 1.2;
|
||||
}
|
||||
.hk-sub { font-size: 12px; color: var(--text-3); }
|
||||
|
||||
/* 变化播报:卡片翻页轮播(淡入淡出,非滚动) */
|
||||
.cmd-bcast-card { margin-top: 16px; }
|
||||
.bcast-stage { position: relative; height: 68px; }
|
||||
.bcast-card {
|
||||
position: absolute; inset: 0;
|
||||
opacity: 0; transition: opacity 0.45s ease;
|
||||
pointer-events: none;
|
||||
}
|
||||
.bcast-card.on { opacity: 1; pointer-events: auto; }
|
||||
.bcast-dots { display: flex; gap: 6px; justify-content: center; margin-top: 8px; }
|
||||
.bcast-dots i {
|
||||
width: 6px; height: 6px; border-radius: 50%;
|
||||
background: var(--border-dark); cursor: pointer; transition: background 0.2s;
|
||||
}
|
||||
.bcast-dots i.on { background: var(--primary); }
|
||||
|
||||
/* 图谱节点右键菜单 */
|
||||
.ctx-menu {
|
||||
position: absolute; z-index: 40; min-width: 176px;
|
||||
background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
|
||||
box-shadow: var(--shadow-pop); padding: 4px;
|
||||
}
|
||||
.ctx-title {
|
||||
font-size: 12px; color: var(--text-3); padding: 6px 10px 5px;
|
||||
border-bottom: 1px dashed var(--border); margin-bottom: 4px;
|
||||
white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px;
|
||||
}
|
||||
.ctx-item {
|
||||
display: block; width: 100%; text-align: left;
|
||||
border: none; background: none; padding: 7px 10px;
|
||||
font-size: 13px; color: var(--text-1); border-radius: var(--radius-sm); cursor: pointer;
|
||||
}
|
||||
.ctx-item:hover { background: var(--primary-light); color: var(--primary); }
|
||||
.ctx-item.disabled, .ctx-item:disabled { color: var(--text-3); cursor: not-allowed; opacity: 0.6; }
|
||||
.ctx-item.disabled:hover, .ctx-item:disabled:hover { background: none; color: var(--text-3); }
|
||||
|
||||
/* 匹配页双雷达图例 */
|
||||
.radar-legend {
|
||||
display: flex; gap: 18px; justify-content: center; margin-top: 6px;
|
||||
font-size: 12px; color: var(--text-2);
|
||||
}
|
||||
.radar-legend span { display: inline-flex; align-items: center; gap: 6px; }
|
||||
.rl-line { width: 18px; height: 0; display: inline-block; border-top: 2px solid var(--primary); }
|
||||
.rl-line.dashed { border-top-style: dashed; border-top-color: var(--cyan); }
|
||||
|
||||
/* 缺失技能「去学习」:chips 可点击 + 学习路径页目标技能闪烁定位 */
|
||||
.hm-chips .tag.miss-learn { cursor: pointer; }
|
||||
.hm-chips .tag.miss-learn:hover { filter: brightness(0.94); box-shadow: 0 0 0 2px var(--primary-light); }
|
||||
.pool-chip.flash { animation: cand-flash 1.6s ease; }
|
||||
|
||||
/* 驾驶舱更替卡紧凑化 */
|
||||
.cmd-rp { grid-template-columns: 1fr 20px 1fr 20px 1fr; }
|
||||
|
||||
Reference in New Issue
Block a user