-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathTeacherAnalyticsPage.vue
More file actions
822 lines (736 loc) · 23 KB
/
TeacherAnalyticsPage.vue
File metadata and controls
822 lines (736 loc) · 23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
<script setup lang="ts">
import { defineAsyncComponent, computed, onMounted, ref } from "vue";
import { NForm, NFormItem, NSelect, NButton, NAlert, NSpin } from "naive-ui";
import { Search, RefreshCw, Users, Activity, Radar, ShieldAlert } from "lucide-vue-next";
import type { StudentAnalyticsVO, StudentAttributionVO } from "../../services/contracts";
import { useAnalyticsStore } from "../../features/teacher-workspace/model/analytics";
import { useClassroomStore } from "../../features/teacher-workspace/model/classroom";
const AnalyticsCharts = defineAsyncComponent(
() => import("../../components/teacher/AnalyticsCharts.vue")
);
const classroomStore = useClassroomStore();
const analyticsStore = useAnalyticsStore();
const studentId = ref("");
const studentOptions = computed(() =>
classroomStore.students
.filter((student) => Boolean(student.id))
.map((student) => ({
label: `${student.username || "未命名学生"}${student.className ? ` (${student.className})` : ""}`,
value: student.id as string
}))
);
const currentAttribution = computed((): StudentAttributionVO | null =>
studentId.value ? (analyticsStore.attributionByStudent[studentId.value] ?? null) : null
);
const selectedStudent = computed(
() => classroomStore.students.find((student) => student.id === studentId.value) || null
);
const classroomSnapshots = computed(() => analyticsStore.classroomAnalytics);
function accuracyOf(snapshot: StudentAnalyticsVO): number {
const totalQuestions = Number(snapshot.totalQuestions || 0);
const correctCount = Number(snapshot.correctCount || 0);
if (totalQuestions <= 0) return 0;
return Number(((correctCount / totalQuestions) * 100).toFixed(1));
}
function riskLevelOf(snapshot: StudentAnalyticsVO): "高风险" | "需关注" | "稳定" {
const accuracy = accuracyOf(snapshot);
const wrongBookCount = Number(snapshot.wrongBookCount || 0);
if (accuracy < 60 || wrongBookCount >= 5) return "高风险";
if (accuracy < 80 || wrongBookCount >= 2) return "需关注";
return "稳定";
}
function riskClassOf(riskLevel: string): string {
if (riskLevel === "高风险") return "danger";
if (riskLevel === "需关注") return "warning";
return "success";
}
const classroomSummary = computed(() => {
const snapshots = classroomSnapshots.value;
const totalStudents = snapshots.length;
const highRiskCount = snapshots.filter((snapshot) => riskLevelOf(snapshot) === "高风险").length;
const attentionCount = snapshots.filter((snapshot) => riskLevelOf(snapshot) !== "稳定").length;
const unresolvedWrongBook = snapshots.reduce(
(total, snapshot) => total + Number(snapshot.wrongBookCount || 0),
0
);
const averageAccuracy =
totalStudents === 0
? 0
: Number(
(
snapshots.reduce((total, snapshot) => total + accuracyOf(snapshot), 0) / totalStudents
).toFixed(1)
);
const totalExercises = snapshots.reduce(
(total, snapshot) => total + Number(snapshot.totalExercises || 0),
0
);
return {
totalStudents,
highRiskCount,
attentionCount,
unresolvedWrongBook,
averageAccuracy,
averageExercises: totalStudents === 0 ? 0 : Number((totalExercises / totalStudents).toFixed(1))
};
});
const knowledgeHotspots = computed(() => {
const aggregate = new Map<
string,
{ knowledgePoint: string; wrongCount: number; studentCount: number }
>();
classroomSnapshots.value.forEach((snapshot) => {
const seenInStudent = new Set<string>();
(snapshot.topWeakPoints || []).forEach((point) => {
const knowledgePoint = point.knowledgePoint || "未命名知识点";
const existing = aggregate.get(knowledgePoint) || {
knowledgePoint,
wrongCount: 0,
studentCount: 0
};
existing.wrongCount += Number(point.wrongCount || 0);
if (!seenInStudent.has(knowledgePoint)) {
existing.studentCount += 1;
seenInStudent.add(knowledgePoint);
}
aggregate.set(knowledgePoint, existing);
});
});
return Array.from(aggregate.values())
.sort(
(left, right) => right.wrongCount - left.wrongCount || right.studentCount - left.studentCount
)
.slice(0, 5);
});
const classroomTemporalHotspots = computed(() => {
const aggregate = new Map<
string,
{ knowledgePoint: string; eventCount: number; studentCount: number }
>();
classroomSnapshots.value.forEach((snapshot) => {
const seenInStudent = new Set<string>();
(snapshot.realtimeState?.hotspotKnowledgePoints || []).forEach((point) => {
const knowledgePoint = point.knowledgePoint || "未命名知识点";
const existing = aggregate.get(knowledgePoint) || {
knowledgePoint,
eventCount: 0,
studentCount: 0
};
existing.eventCount += Number(point.eventCount || 0);
if (!seenInStudent.has(knowledgePoint)) {
existing.studentCount += 1;
seenInStudent.add(knowledgePoint);
}
aggregate.set(knowledgePoint, existing);
});
});
return Array.from(aggregate.values())
.sort(
(left, right) => right.eventCount - left.eventCount || right.studentCount - left.studentCount
)
.slice(0, 5);
});
const studentPulse = computed(() =>
classroomSnapshots.value
.map((snapshot) => ({
studentId: snapshot.studentId || "",
username: snapshot.username || "未命名学生",
accuracy: accuracyOf(snapshot),
wrongBookCount: Number(snapshot.wrongBookCount || 0),
totalExercises: Number(snapshot.totalExercises || 0),
primaryWeakPoint: snapshot.topWeakPoints?.[0]?.knowledgePoint || "暂无明显薄弱点",
riskLevel: riskLevelOf(snapshot),
supportStage: snapshot.supportStage?.label || "待分析",
interactionProfile: snapshot.interactionProfile || "等待行为数据",
realtimeSignal: snapshot.realtimeState?.signals?.[0] || "近 10 分钟暂无新的课堂态信号"
}))
.sort(
(left, right) => right.wrongBookCount - left.wrongBookCount || left.accuracy - right.accuracy
)
);
async function loadSelectedAnalytics(): Promise<void> {
if (!studentId.value) {
return;
}
analyticsStore.lastStudentId = studentId.value;
await Promise.all([
analyticsStore.loadAnalytics(studentId.value),
analyticsStore.loadAttribution(studentId.value)
]);
}
async function loadClassroomOverview(): Promise<void> {
const studentIds = classroomStore.students
.map((student) => student.id)
.filter(Boolean) as string[];
await analyticsStore.loadClassroomAnalytics(studentIds);
}
async function initializePage(): Promise<void> {
await classroomStore.loadStudents();
await loadClassroomOverview();
if (classroomStore.students.length === 0) {
return;
}
const cachedId = analyticsStore.lastStudentId;
const exists = classroomStore.students.some((student) => student.id === cachedId);
studentId.value = exists ? cachedId : classroomStore.students[0].id || "";
await loadSelectedAnalytics();
}
async function refreshPage(): Promise<void> {
await classroomStore.loadStudents();
await Promise.all([loadSelectedAnalytics(), loadClassroomOverview()]);
}
onMounted(() => {
void initializePage();
});
</script>
<template>
<div class="analytics-page app-container">
<div class="workspace-stack">
<div class="workspace-header">
<div>
<h1 class="workspace-title">学情分析</h1>
<p class="workspace-subtitle">先看班级即时诊断,再下钻到单个学生的错因与支架建议。</p>
</div>
</div>
<div class="panel glass-card search-panel">
<n-form
inline
label-placement="left"
:show-feedback="false"
class="ethereal-form search-form"
>
<n-form-item label="学生">
<n-select
v-model:value="studentId"
:options="studentOptions"
placeholder="请选择学生"
style="width: 320px"
filterable
:loading="classroomStore.studentsLoading"
/>
</n-form-item>
<n-form-item>
<n-button
type="primary"
class="animate-pop glass-pill-btn"
:loading="analyticsStore.analyticsLoading || analyticsStore.attributionLoading"
@click="loadSelectedAnalytics"
>
<template #icon><Search :size="16" /></template>
加载个体分析
</n-button>
</n-form-item>
<n-form-item>
<n-button
secondary
class="glass-pill"
:loading="analyticsStore.classroomLoading || classroomStore.studentsLoading"
@click="refreshPage"
>
<template #icon><RefreshCw :size="16" /></template>
刷新班级总览
</n-button>
</n-form-item>
</n-form>
</div>
<n-alert
v-if="classroomStore.studentsError"
type="error"
:show-icon="true"
style="border-radius: var(--radius-md); margin-bottom: var(--space-4)"
>{{ classroomStore.studentsError }}</n-alert
>
<n-alert
v-if="analyticsStore.classroomError"
type="error"
:show-icon="true"
style="border-radius: var(--radius-md); margin-bottom: var(--space-4)"
>{{ analyticsStore.classroomError }}</n-alert
>
<n-alert
v-if="analyticsStore.analyticsError"
type="error"
:show-icon="true"
style="border-radius: var(--radius-md); margin-bottom: var(--space-4)"
>{{ analyticsStore.analyticsError }}</n-alert
>
<n-alert
v-if="analyticsStore.attributionError"
type="error"
:show-icon="true"
style="border-radius: var(--radius-md); margin-bottom: var(--space-4)"
>{{ analyticsStore.attributionError }}</n-alert
>
<n-spin :show="analyticsStore.classroomLoading">
<div class="summary-grid">
<div class="summary-card panel glass-card">
<div class="summary-icon primary"><Users :size="24" /></div>
<div class="summary-content">
<p class="summary-label">班级总人数</p>
<h3 class="summary-value">{{ classroomSummary.totalStudents }}</h3>
<p class="summary-hint">当前已纳入教师工作台的学生数量</p>
</div>
</div>
<div class="summary-card panel glass-card">
<div class="summary-icon danger"><ShieldAlert :size="24" /></div>
<div class="summary-content">
<p class="summary-label">高风险学生</p>
<h3 class="summary-value">{{ classroomSummary.highRiskCount }}</h3>
<p class="summary-hint">正确率偏低或错题积压较多的学生</p>
</div>
</div>
<div class="summary-card panel glass-card">
<div class="summary-icon info"><Activity :size="24" /></div>
<div class="summary-content">
<p class="summary-label">班级平均正确率</p>
<h3 class="summary-value">{{ classroomSummary.averageAccuracy }}<small>%</small></h3>
<p class="summary-hint">说明课堂即时诊断后的整体掌握程度</p>
</div>
</div>
<div class="summary-card panel glass-card">
<div class="summary-icon warning"><Radar :size="24" /></div>
<div class="summary-content">
<p class="summary-label">活跃错题压力</p>
<h3 class="summary-value">{{ classroomSummary.unresolvedWrongBook }}</h3>
<p class="summary-hint">
{{ classroomSummary.attentionCount }} 名学生处于“需关注”状态
</p>
</div>
</div>
</div>
<div class="overview-grid">
<section class="panel glass-card hotspot-panel">
<div class="panel-head">
<div>
<h2 class="panel-title">班级知识热点</h2>
<p class="panel-note">聚合所有学生的薄弱点,定位课堂应优先复讲的知识环节。</p>
</div>
<span class="panel-badge">班级级视角</span>
</div>
<div v-if="knowledgeHotspots.length === 0" class="empty-block">
暂无明显知识热点,当前班级表现相对稳定。
</div>
<div v-else class="hotspot-list">
<div
v-for="item in knowledgeHotspots"
:key="item.knowledgePoint"
class="hotspot-item"
>
<div>
<h3 class="hotspot-name">{{ item.knowledgePoint }}</h3>
<p class="hotspot-meta">
影响 {{ item.studentCount }} 人 · 累计错次 {{ item.wrongCount }}
</p>
</div>
<div class="hotspot-bar">
<span
class="hotspot-fill"
:style="{ width: `${Math.min(100, item.wrongCount * 12)}%` }"
></span>
</div>
</div>
</div>
</section>
<section class="panel glass-card hotspot-panel">
<div class="panel-head">
<div>
<h2 class="panel-title">近 10 分钟课堂态热点</h2>
<p class="panel-note">
直接聚合 Redis 近时态画像,判断当前课堂窗口期最先该处理什么。
</p>
</div>
<span class="panel-badge">Redis 近时态</span>
</div>
<div v-if="classroomTemporalHotspots.length === 0" class="empty-block">
近 10 分钟暂无新的课堂态热点,当前可继续参考历史薄弱点。
</div>
<div v-else class="hotspot-list">
<div
v-for="item in classroomTemporalHotspots"
:key="item.knowledgePoint"
class="hotspot-item"
>
<div>
<h3 class="hotspot-name">{{ item.knowledgePoint }}</h3>
<p class="hotspot-meta">
即时事件 {{ item.eventCount }} 次 · 影响 {{ item.studentCount }} 人
</p>
</div>
<div class="hotspot-bar realtime">
<span
class="hotspot-fill realtime"
:style="{ width: `${Math.min(100, item.eventCount * 18)}%` }"
></span>
</div>
</div>
</div>
</section>
<section class="panel glass-card roster-panel">
<div class="panel-head">
<div>
<h2 class="panel-title">班级风险雷达</h2>
<p class="panel-note">优先安排一对一跟进或课堂点拨的学生列表。</p>
</div>
<span class="panel-badge neutral">Teacher-in-the-Loop</span>
</div>
<div v-if="studentPulse.length === 0" class="empty-block">暂无班级学情数据。</div>
<div v-else class="pulse-list">
<button
v-for="student in studentPulse"
:key="student.studentId"
type="button"
class="pulse-card"
@click="
studentId = student.studentId;
loadSelectedAnalytics();
"
>
<div class="pulse-top">
<strong>{{ student.username }}</strong>
<span class="risk-tag" :class="riskClassOf(student.riskLevel)">
{{ student.riskLevel }}
</span>
</div>
<p class="pulse-main">
正确率 {{ student.accuracy }}% · 错题 {{ student.wrongBookCount }} 道
</p>
<p class="pulse-sub">{{ student.primaryWeakPoint }}</p>
<p class="pulse-meta">
{{ student.supportStage }} · {{ student.interactionProfile }}
</p>
<p class="pulse-meta subtle">{{ student.realtimeSignal }}</p>
</button>
</div>
</section>
</div>
</n-spin>
<section class="selected-panel">
<div class="section-title-row">
<div>
<h2 class="section-title">学生个体归因</h2>
<p class="section-note">从班级视角下钻到单个学生,查看错因、薄弱点和支架建议。</p>
</div>
</div>
<Suspense>
<AnalyticsCharts
v-if="analyticsStore.analytics"
:selected-student="selectedStudent"
:current-attribution="currentAttribution"
/>
<template #fallback>
<div v-if="analyticsStore.analytics" class="panel glass-card chart-loading-state">
图表加载中...
</div>
</template>
</Suspense>
</section>
</div>
</div>
</template>
<style scoped>
.search-panel {
padding: 16px 24px;
margin-bottom: var(--space-2);
}
.search-form {
display: flex;
gap: var(--space-4);
align-items: center;
}
.summary-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: var(--space-5);
margin-bottom: var(--space-2);
}
.summary-card {
display: flex;
gap: 20px;
align-items: center;
padding: 24px;
min-height: 130px;
transition: var(--transition-smooth);
position: relative;
overflow: hidden;
}
.summary-card::after {
content: "";
position: absolute;
top: 0;
right: 0;
width: 100px;
height: 100%;
background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05));
pointer-events: none;
}
.summary-card:hover {
transform: translateY(-4px);
box-shadow: var(--shadow-float);
border-color: rgba(92, 101, 246, 0.2);
}
.summary-icon {
width: 56px;
height: 56px;
border-radius: 18px;
display: inline-flex;
align-items: center;
justify-content: center;
color: #fff;
box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.1);
flex-shrink: 0;
}
.summary-icon.primary {
background: linear-gradient(135deg, #4f46e5, #3b82f6);
}
.summary-icon.danger {
background: linear-gradient(135deg, #ef4444, #b91c1c);
}
.summary-icon.info {
background: linear-gradient(135deg, #0d9488, #14b8a6);
}
.summary-icon.warning {
background: linear-gradient(135deg, #f59e0b, #d97706);
}
.summary-content {
flex: 1;
min-width: 0;
}
.summary-label {
margin: 0 0 4px;
color: var(--color-text-muted);
font-size: 0.875rem;
font-weight: 500;
}
.summary-value {
margin: 0;
font-size: 2.25rem;
font-weight: 800;
font-family: var(--font-title);
color: var(--color-text-main);
line-height: 1.1;
display: flex;
align-items: baseline;
gap: 2px;
}
.summary-value small {
font-size: 1rem;
font-weight: 500;
color: var(--color-text-muted);
}
.summary-hint {
margin: 6px 0 0;
color: var(--color-text-muted);
font-size: 0.8125rem;
line-height: 1.4;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.overview-grid {
display: grid;
grid-template-columns: 1.2fr 1fr;
gap: var(--space-5);
margin-top: var(--space-4);
}
.overview-grid > .panel {
height: 100%;
display: flex;
flex-direction: column;
}
.panel-head {
display: flex;
justify-content: space-between;
align-items: center;
gap: 16px;
margin-bottom: 20px;
}
.panel-title {
margin: 0;
font-size: 1.125rem;
font-weight: 700;
color: var(--color-text-main);
}
.panel-note {
margin: 4px 0 0;
color: var(--color-text-muted);
font-size: 0.875rem;
}
.panel-badge {
padding: 4px 10px;
border-radius: 8px;
font-size: 0.75rem;
font-weight: 600;
color: #2563eb;
background: rgba(59, 130, 246, 0.1);
border: 1px solid rgba(59, 130, 246, 0.1);
white-space: nowrap;
}
.panel-badge.neutral {
color: #d97706;
background: rgba(245, 158, 11, 0.1);
border: 1px solid rgba(245, 158, 11, 0.1);
}
.hotspot-list,
.pulse-list {
display: grid;
gap: 12px;
}
.hotspot-item {
display: grid;
grid-template-columns: minmax(0, 1fr) 140px;
gap: 16px;
align-items: center;
padding: 16px 20px;
border: 1px solid rgba(255, 255, 255, 0.3);
border-radius: 16px;
background: rgba(255, 255, 255, 0.6);
backdrop-filter: blur(8px);
transition: var(--transition-smooth);
}
.hotspot-item:hover {
background: rgba(255, 255, 255, 0.8);
border-color: rgba(59, 130, 246, 0.2);
transform: translateX(4px);
}
.hotspot-name {
margin: 0;
font-size: 1rem;
font-weight: 600;
}
.hotspot-meta {
margin: 4px 0 0;
font-size: 0.875rem;
color: var(--color-text-muted);
}
.hotspot-bar {
height: 8px;
border-radius: 999px;
overflow: hidden;
background: rgba(59, 130, 246, 0.08);
}
.hotspot-bar.realtime {
background: rgba(20, 184, 166, 0.1);
}
.hotspot-fill {
display: block;
height: 100%;
border-radius: inherit;
background: linear-gradient(90deg, #60a5fa, #2563eb);
}
.hotspot-fill.realtime {
background: linear-gradient(90deg, #2dd4bf, #0d9488);
}
.pulse-card {
padding: 18px 20px;
border-radius: 16px;
border: 1px solid rgba(255, 255, 255, 0.3);
background: rgba(255, 255, 255, 0.6);
text-align: left;
transition: var(--transition-smooth);
}
.pulse-card:hover {
transform: translateY(-2px);
background: rgba(255, 255, 255, 0.8);
border-color: rgba(59, 130, 246, 0.2);
box-shadow: var(--shadow-float);
}
.pulse-top {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}
.pulse-main {
margin: 12px 0 4px;
font-weight: 700;
font-size: 1rem;
}
.pulse-sub {
margin: 0;
font-size: 0.875rem;
color: var(--color-text-muted);
}
.pulse-meta {
margin: 10px 0 0;
color: #475569;
font-size: 0.8125rem;
}
.pulse-meta.subtle {
margin-top: 4px;
color: var(--color-text-muted);
}
.risk-tag {
padding: 4px 10px;
border-radius: 6px;
font-size: 0.75rem;
font-weight: 700;
}
.risk-tag.danger {
color: #dc2626;
background: rgba(239, 68, 68, 0.1);
}
.risk-tag.warning {
color: #d97706;
background: rgba(245, 158, 11, 0.1);
}
.risk-tag.success {
color: #059669;
background: rgba(16, 185, 129, 0.1);
}
.empty-block {
margin-top: 20px;
padding: 40px;
text-align: center;
color: var(--color-text-muted);
border: 2px dashed rgba(59, 130, 246, 0.1);
border-radius: 16px;
background: rgba(255, 255, 255, 0.2);
}
.selected-panel {
margin-top: var(--space-8);
display: grid;
gap: 20px;
}
.section-title-row {
display: flex;
justify-content: space-between;
align-items: flex-end;
}
.section-title {
margin: 0;
font-size: 1.25rem;
font-weight: 700;
}
.section-note {
margin: 4px 0 0;
color: var(--color-text-muted);
}
.chart-loading-state {
padding: 60px 24px;
text-align: center;
color: var(--color-text-muted);
}
@media (max-width: 1280px) {
.summary-grid {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 1024px) {
.overview-grid {
grid-template-columns: 1fr;
}
}
@media (max-width: 768px) {
.summary-grid {
grid-template-columns: 1fr;
}
.hotspot-item {
grid-template-columns: 1fr;
}
.section-title-row,
.panel-head {
flex-direction: column;
align-items: flex-start;
}
}
</style>