261 lines
5.4 KiB
CSS
261 lines
5.4 KiB
CSS
/* 基础变量定义 */
|
|
:root {
|
|
--bg-dark: #0F172A;
|
|
--card-bg: #1E293B;
|
|
--primary-blue: #3B82F6;
|
|
--primary-glow: rgba(59, 130, 246, 0.15);
|
|
--success-green: #10B981;
|
|
--warning-yellow: #F59E0B;
|
|
--danger-red: #EF4444;
|
|
--text-primary: #E2E8F0;
|
|
--text-secondary: #94A3B8;
|
|
--border-color: rgba(59, 130, 246, 0.2);
|
|
--grid-line: rgba(148, 163, 184, 0.1);
|
|
}
|
|
|
|
/* 全局样式 */
|
|
body {
|
|
background-color: var(--bg-dark);
|
|
color: var(--text-primary);
|
|
min-height: 100vh;
|
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
|
|
}
|
|
|
|
/* 网格背景 */
|
|
.grid-background {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
background-image:
|
|
linear-gradient(var(--grid-line) 1px, transparent 1px),
|
|
linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
|
|
background-size: 50px 50px;
|
|
z-index: -1;
|
|
}
|
|
|
|
/* BI看板头部 */
|
|
.bi-header {
|
|
background: var(--bg-dark);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
padding: 1rem 1.5rem;
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
.header-content {
|
|
max-width: 100%;
|
|
}
|
|
|
|
.bi-title {
|
|
font-size: 1.5rem;
|
|
font-weight: 600;
|
|
margin: 0;
|
|
background: linear-gradient(90deg, var(--primary-blue), #60A5FA);
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
}
|
|
|
|
.bi-meta {
|
|
margin-top: 0.5rem;
|
|
font-size: 0.85rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.bi-meta span {
|
|
margin-right: 1.5rem;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.bi-meta i {
|
|
margin-right: 0.5rem;
|
|
color: var(--primary-blue);
|
|
}
|
|
|
|
/* 时间选择器样式 */
|
|
.time-selector .btn-group {
|
|
background: rgba(59, 130, 246, 0.1);
|
|
border-radius: 6px;
|
|
padding: 2px;
|
|
}
|
|
|
|
.time-selector .btn {
|
|
font-size: 0.85rem;
|
|
padding: 0.375rem 0.75rem;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.time-selector .btn.active {
|
|
background: var(--primary-blue);
|
|
color: white;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.time-selector .btn:hover:not(.active) {
|
|
background: rgba(59, 130, 246, 0.2);
|
|
color: var(--primary-blue);
|
|
}
|
|
|
|
/* 数据流转视图 */
|
|
.data-flow-container {
|
|
background: var(--card-bg);
|
|
border-radius: 16px;
|
|
border: 1px solid var(--border-color);
|
|
padding: 2rem;
|
|
position: relative;
|
|
backdrop-filter: blur(10px);
|
|
}
|
|
|
|
/* 数据节点 */
|
|
.data-node {
|
|
background: rgba(30, 41, 59, 0.8);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 12px;
|
|
padding: 1.5rem;
|
|
transition: all 0.3s ease;
|
|
position: relative;
|
|
}
|
|
|
|
.data-node::after {
|
|
content: '';
|
|
position: absolute;
|
|
inset: 0;
|
|
border-radius: 12px;
|
|
padding: 1px;
|
|
background: linear-gradient(45deg, var(--primary-blue), transparent);
|
|
mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
|
|
-webkit-mask-composite: xor;
|
|
mask-composite: exclude;
|
|
}
|
|
|
|
.data-node:hover {
|
|
transform: translateY(-3px);
|
|
box-shadow: 0 0 20px var(--primary-glow);
|
|
}
|
|
|
|
/* 数据流线条 */
|
|
.data-flow-line {
|
|
height: 2px;
|
|
background: linear-gradient(90deg,
|
|
transparent,
|
|
var(--primary-blue),
|
|
transparent
|
|
);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.data-flow-line::before {
|
|
content: '';
|
|
position: absolute;
|
|
width: 100%;
|
|
height: 100%;
|
|
background: linear-gradient(90deg,
|
|
transparent,
|
|
var(--primary-blue),
|
|
transparent
|
|
);
|
|
animation: flowAnimation 2s infinite linear;
|
|
}
|
|
|
|
@keyframes flowAnimation {
|
|
0% { transform: translateX(-100%); }
|
|
100% { transform: translateX(100%); }
|
|
}
|
|
|
|
/* 数据指标卡片 */
|
|
.metric-card {
|
|
background: rgba(30, 41, 59, 0.8);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 12px;
|
|
padding: 1.5rem;
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.metric-value {
|
|
font-size: 2rem;
|
|
font-weight: 700;
|
|
color: var(--primary-blue);
|
|
text-shadow: 0 0 10px var(--primary-glow);
|
|
}
|
|
|
|
.metric-label {
|
|
color: var(--text-secondary);
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
/* 图表容器 */
|
|
.chart-container {
|
|
background: rgba(30, 41, 59, 0.8);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 12px;
|
|
padding: 1.5rem;
|
|
height: 300px;
|
|
position: relative;
|
|
}
|
|
|
|
/* 数据表格 */
|
|
.data-table {
|
|
background: rgba(30, 41, 59, 0.8);
|
|
border-radius: 12px;
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.data-table th {
|
|
background: rgba(59, 130, 246, 0.1);
|
|
color: var(--text-primary);
|
|
font-weight: 500;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.data-table td {
|
|
color: var(--text-secondary);
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
/* 状态标签 */
|
|
.status-badge {
|
|
padding: 0.25rem 0.75rem;
|
|
border-radius: 20px;
|
|
font-size: 0.85rem;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.status-active {
|
|
background: rgba(16, 185, 129, 0.1);
|
|
color: var(--success-green);
|
|
}
|
|
|
|
.status-warning {
|
|
background: rgba(245, 158, 11, 0.1);
|
|
color: var(--warning-yellow);
|
|
}
|
|
|
|
/* 动画效果 */
|
|
@keyframes pulse {
|
|
0% { box-shadow: 0 0 0 0 var(--primary-glow); }
|
|
70% { box-shadow: 0 0 0 10px transparent; }
|
|
100% { box-shadow: 0 0 0 0 transparent; }
|
|
}
|
|
|
|
/* 响应式调整 */
|
|
@media (max-width: 768px) {
|
|
.bi-title {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.data-flow-container {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.chart-container {
|
|
height: 250px;
|
|
}
|
|
} |