|
|
@@ -700,9 +700,11 @@ const initChart = async () => {
|
|
|
barGap: 0,
|
|
|
itemStyle: {
|
|
|
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
- { offset: 0, color: '#188df0' },
|
|
|
+ { offset: 0, color: '#83bff6' },
|
|
|
+ { offset: 0.5, color: '#188df0' },
|
|
|
{ offset: 1, color: '#188df0' }
|
|
|
- ])
|
|
|
+ ]),
|
|
|
+ borderRadius: [5, 5, 0, 0]
|
|
|
},
|
|
|
emphasis: {
|
|
|
focus: 'series'
|
|
|
@@ -714,10 +716,11 @@ const initChart = async () => {
|
|
|
type: 'bar',
|
|
|
itemStyle: {
|
|
|
color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
|
|
|
- { offset: 0, color: '#d3a137' },
|
|
|
-
|
|
|
+ { offset: 0, color: '#ffb600' },
|
|
|
+ { offset: 0.5, color: '#d3a137' },
|
|
|
{ offset: 1, color: '#d3a137' }
|
|
|
- ])
|
|
|
+ ]),
|
|
|
+ borderRadius: [5, 5, 0, 0]
|
|
|
},
|
|
|
emphasis: {
|
|
|
focus: 'series'
|
|
|
@@ -755,14 +758,22 @@ onUnmounted(() => {
|
|
|
// 统计卡片基础样式
|
|
|
.stat-card {
|
|
|
border-radius: 12px;
|
|
|
- border: none;
|
|
|
+ border: 1px solid rgba(207, 220, 237, 0.9);
|
|
|
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
|
overflow: hidden;
|
|
|
position: relative;
|
|
|
+ background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
|
|
|
+ box-shadow:
|
|
|
+ inset 0 1px 0 rgba(255, 255, 255, 0.95),
|
|
|
+ inset 0 -10px 24px rgba(210, 225, 244, 0.26),
|
|
|
+ 0 10px 24px rgba(32, 66, 120, 0.08);
|
|
|
|
|
|
&:hover {
|
|
|
transform: translateY(-4px);
|
|
|
- box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15);
|
|
|
+ box-shadow:
|
|
|
+ inset 0 1px 0 rgba(255, 255, 255, 0.98),
|
|
|
+ inset 0 -12px 26px rgba(204, 220, 243, 0.32),
|
|
|
+ 0 16px 32px rgba(32, 66, 120, 0.12);
|
|
|
}
|
|
|
|
|
|
:deep(.el-card__body) {
|
|
|
@@ -772,25 +783,29 @@ onUnmounted(() => {
|
|
|
|
|
|
// 渐变色背景
|
|
|
.stat-card-gradient-1 {
|
|
|
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
|
+ background: radial-gradient(circle at top left, rgba(121, 164, 255, 0.16), transparent 42%),
|
|
|
+ linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
|
|
|
}
|
|
|
|
|
|
.stat-card-gradient-2 {
|
|
|
- background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
|
|
|
+ background: radial-gradient(circle at top left, rgba(118, 186, 255, 0.14), transparent 42%),
|
|
|
+ linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
|
|
|
}
|
|
|
|
|
|
.stat-card-gradient-3 {
|
|
|
- background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
|
|
|
+ background: radial-gradient(circle at top left, rgba(96, 154, 241, 0.14), transparent 42%),
|
|
|
+ linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
|
|
|
}
|
|
|
|
|
|
.stat-card-gradient-4 {
|
|
|
- background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
|
|
|
+ background: radial-gradient(circle at top left, rgba(137, 176, 242, 0.14), transparent 42%),
|
|
|
+ linear-gradient(180deg, #ffffff 0%, #f4f8fe 100%);
|
|
|
}
|
|
|
|
|
|
// 统计内容区域
|
|
|
.stat-content {
|
|
|
padding: 20px;
|
|
|
- color: white;
|
|
|
+ color: #1f2a44;
|
|
|
}
|
|
|
|
|
|
.stat-header {
|
|
|
@@ -803,27 +818,31 @@ onUnmounted(() => {
|
|
|
.stat-icon-wrapper {
|
|
|
width: 48px;
|
|
|
height: 48px;
|
|
|
- background: rgba(255, 255, 255, 0.2);
|
|
|
+ background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(232, 240, 252, 0.92) 100%);
|
|
|
+ border: 1px solid rgba(205, 219, 239, 0.9);
|
|
|
border-radius: 12px;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
- backdrop-filter: blur(10px);
|
|
|
+ box-shadow:
|
|
|
+ inset 0 1px 0 rgba(255, 255, 255, 0.95),
|
|
|
+ inset 0 -6px 12px rgba(205, 220, 242, 0.34),
|
|
|
+ 0 6px 14px rgba(66, 104, 168, 0.08);
|
|
|
}
|
|
|
|
|
|
.stat-icon {
|
|
|
font-size: 24px;
|
|
|
- color: white;
|
|
|
+ color: #5d79b7;
|
|
|
}
|
|
|
|
|
|
.stat-title {
|
|
|
font-size: 16px;
|
|
|
font-weight: 600;
|
|
|
- color: rgba(255, 255, 255, 0.95);
|
|
|
+ color: #000;
|
|
|
}
|
|
|
|
|
|
.stat-divider {
|
|
|
- border-color: rgba(255, 255, 255, 0.2);
|
|
|
+ border-color: rgba(201, 214, 234, 0.85);
|
|
|
margin: 12px 0;
|
|
|
}
|
|
|
|
|
|
@@ -835,14 +854,14 @@ onUnmounted(() => {
|
|
|
|
|
|
.stat-label {
|
|
|
font-size: 13px;
|
|
|
- color: rgba(255, 255, 255, 0.8);
|
|
|
+ color: #7182a1;
|
|
|
margin-bottom: 4px;
|
|
|
}
|
|
|
|
|
|
.stat-value {
|
|
|
font-size: 36px;
|
|
|
font-weight: 700;
|
|
|
- color: white;
|
|
|
+ color: #1f2f54;
|
|
|
line-height: 1;
|
|
|
}
|
|
|
|
|
|
@@ -854,30 +873,44 @@ onUnmounted(() => {
|
|
|
|
|
|
.stat-sub-label {
|
|
|
font-size: 13px;
|
|
|
- color: rgba(255, 255, 255, 0.85);
|
|
|
+ color: #7182a1;
|
|
|
}
|
|
|
|
|
|
.stat-sub-value {
|
|
|
font-size: 28px;
|
|
|
font-weight: 700;
|
|
|
line-height: 1;
|
|
|
+ color: #1f2f54;
|
|
|
}
|
|
|
|
|
|
// 图表卡片增强样式
|
|
|
.chart-card-enhanced {
|
|
|
border-radius: 12px;
|
|
|
- border: 1px solid #e5e7eb;
|
|
|
+ border: 1px solid rgba(207, 220, 237, 0.9);
|
|
|
transition: all 0.3s ease;
|
|
|
+ background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
|
|
|
+ box-shadow:
|
|
|
+ inset 0 1px 0 rgba(255, 255, 255, 0.96),
|
|
|
+ inset 0 -12px 26px rgba(212, 226, 244, 0.2),
|
|
|
+ 0 10px 24px rgba(32, 66, 120, 0.07);
|
|
|
|
|
|
&:hover {
|
|
|
- box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
|
|
|
- border-color: #d1d5db;
|
|
|
+ box-shadow:
|
|
|
+ inset 0 1px 0 rgba(255, 255, 255, 0.98),
|
|
|
+ inset 0 -14px 30px rgba(208, 223, 244, 0.24),
|
|
|
+ 0 16px 30px rgba(32, 66, 120, 0.1);
|
|
|
+ border-color: rgba(193, 209, 231, 0.95);
|
|
|
}
|
|
|
|
|
|
:deep(.el-card__header) {
|
|
|
padding: 16px 20px;
|
|
|
- border-bottom: 1px solid #f3f4f6;
|
|
|
- background: linear-gradient(to right, #fafafa, #ffffff);
|
|
|
+ border-bottom: 1px solid rgba(223, 232, 245, 0.95);
|
|
|
+ background: linear-gradient(
|
|
|
+ 90deg,
|
|
|
+ rgba(244, 248, 255, 0.96) 0%,
|
|
|
+ rgba(255, 255, 255, 0.98) 100%
|
|
|
+ );
|
|
|
+ box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.78);
|
|
|
}
|
|
|
|
|
|
:deep(.el-card__body) {
|
|
|
@@ -901,14 +934,16 @@ onUnmounted(() => {
|
|
|
width: 8px;
|
|
|
height: 8px;
|
|
|
border-radius: 50%;
|
|
|
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
|
|
- box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
|
|
|
+ background: linear-gradient(135deg, #84aef7 0%, #5e87d8 100%);
|
|
|
+ box-shadow:
|
|
|
+ 0 0 0 4px rgba(122, 162, 235, 0.12),
|
|
|
+ 0 2px 6px rgba(86, 124, 189, 0.24);
|
|
|
}
|
|
|
|
|
|
.chart-title {
|
|
|
font-size: 16px;
|
|
|
font-weight: 600;
|
|
|
- color: #1f2937;
|
|
|
+ color: #233554;
|
|
|
letter-spacing: 0.3px;
|
|
|
}
|
|
|
|
|
|
@@ -922,10 +957,17 @@ onUnmounted(() => {
|
|
|
align-items: center;
|
|
|
padding: 12px;
|
|
|
transition: all 0.2s ease;
|
|
|
+ border-radius: 12px;
|
|
|
|
|
|
&:hover {
|
|
|
- background: rgba(102, 126, 234, 0.03);
|
|
|
- border-radius: 8px;
|
|
|
+ background: linear-gradient(
|
|
|
+ 180deg,
|
|
|
+ rgba(244, 248, 255, 0.9) 0%,
|
|
|
+ rgba(237, 244, 255, 0.95) 100%
|
|
|
+ );
|
|
|
+ box-shadow:
|
|
|
+ inset 0 1px 0 rgba(255, 255, 255, 0.86),
|
|
|
+ inset 0 -8px 16px rgba(212, 225, 243, 0.22);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -940,12 +982,21 @@ onUnmounted(() => {
|
|
|
gap: 6px;
|
|
|
margin-top: 8px;
|
|
|
padding: 6px 12px;
|
|
|
- background: #f9fafb;
|
|
|
+ background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(242, 247, 255, 0.96) 100%);
|
|
|
+ border: 1px solid rgba(216, 228, 244, 0.95);
|
|
|
border-radius: 20px;
|
|
|
transition: all 0.2s ease;
|
|
|
+ box-shadow:
|
|
|
+ inset 0 1px 0 rgba(255, 255, 255, 0.9),
|
|
|
+ 0 4px 10px rgba(58, 90, 145, 0.06);
|
|
|
|
|
|
.chart-item:hover & {
|
|
|
- background: #f3f4f6;
|
|
|
+ background: linear-gradient(
|
|
|
+ 180deg,
|
|
|
+ rgba(255, 255, 255, 0.98) 0%,
|
|
|
+ rgba(238, 244, 255, 0.98) 100%
|
|
|
+ );
|
|
|
+ border-color: rgba(201, 217, 239, 0.98);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -988,13 +1039,18 @@ onUnmounted(() => {
|
|
|
|
|
|
.label-text {
|
|
|
font-size: 13px;
|
|
|
- color: #6b7280;
|
|
|
+ color: #64748f;
|
|
|
font-weight: 500;
|
|
|
}
|
|
|
|
|
|
.bar-chart-container {
|
|
|
height: 350px;
|
|
|
width: 100%;
|
|
|
+ border-radius: 12px;
|
|
|
+ background: linear-gradient(180deg, rgba(252, 254, 255, 0.9) 0%, rgba(244, 249, 255, 0.92) 100%);
|
|
|
+ box-shadow:
|
|
|
+ inset 0 1px 0 rgba(255, 255, 255, 0.92),
|
|
|
+ inset 0 -10px 20px rgba(217, 230, 245, 0.16);
|
|
|
}
|
|
|
|
|
|
// 响应式优化
|