final_report__20250826_163510.html
16.7 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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>智能舆情分析报告</title>
</head>
<body>
json
{
"html_content": "<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>智能舆情分析报告 - 武汉大学</title>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<style>
:root {
--primary-color: #2c3e50;
--secondary-color: #3498db;
--background-color: #f4f7f9;
--card-bg-color: #ffffff;
--text-color: #333333;
--heading-color: #2c3e50;
--border-color: #e0e0e0;
--shadow-color: rgba(0, 0, 0, 0.08);
--success-color: #2ecc71;
--warning-color: #f39c12;
--danger-color: #e74c3c;
--info-color: #3498db;
--font-family: 'Helvetica Neue', 'Hiragino Sans GB', 'WenQuanYi Micro Hei', 'Microsoft Yahei', sans-serif;
}
.dark-mode {
--primary-color: #3498db;
--secondary-color: #2980b9;
--background-color: #1a1a1a;
--card-bg-color: #2c2c2c;
--text-color: #e0e0e0;
--heading-color: #ffffff;
--border-color: #444444;
--shadow-color: rgba(0, 0, 0, 0.2);
}
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: var(--font-family);
background-color: var(--background-color);
color: var(--text-color);
line-height: 1.6;
transition: background-color 0.3s, color 0.3s;
display: flex;
}
#sidebar {
width: 260px;
background-color: var(--card-bg-color);
border-right: 1px solid var(--border-color);
height: 100vh;
position: fixed;
top: 0;
left: 0;
padding: 20px;
display: flex;
flex-direction: column;
box-shadow: 2px 0 5px var(--shadow-color);
transition: background-color 0.3s, border-color 0.3s;
overflow-y: auto;
}
#sidebar h1 {
font-size: 1.5em;
color: var(--primary-color);
margin-bottom: 10px;
text-align: center;
}
#sidebar .logo {
font-weight: bold;
font-size: 1.2em;
color: var(--heading-color);
padding-bottom: 20px;
border-bottom: 1px solid var(--border-color);
}
#toc {
list-style: none;
margin-top: 20px;
flex-grow: 1;
}
#toc li a {
display: block;
color: var(--text-color);
text-decoration: none;
padding: 10px 15px;
border-radius: 6px;
margin-bottom: 5px;
font-weight: 500;
transition: background-color 0.2s, color 0.2s;
}
#toc li a:hover, #toc li a.active {
background-color: var(--primary-color);
color: #ffffff;
}
.sidebar-footer {
margin-top: auto;
font-size: 0.8em;
text-align: center;
color: #777;
}
#main-content {
margin-left: 260px;
width: calc(100% - 260px);
padding: 30px;
}
header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 30px;
padding-bottom: 20px;
border-bottom: 1px solid var(--border-color);
}
header h2 {
font-size: 2em;
color: var(--heading-color);
}
.header-actions button {
background: var(--card-bg-color);
border: 1px solid var(--border-color);
color: var(--text-color);
padding: 8px 15px;
border-radius: 6px;
cursor: pointer;
margin-left: 10px;
transition: background-color 0.2s, box-shadow 0.2s;
font-weight: 500;
}
.header-actions button:hover {
background-color: var(--background-color);
box-shadow: 0 2px 4px var(--shadow-color);
}
.report-section {
background-color: var(--card-bg-color);
border-radius: 8px;
padding: 25px;
margin-bottom: 30px;
box-shadow: 0 4px 12px var(--shadow-color);
transition: background-color 0.3s, box-shadow 0.3s;
}
.report-section h3 {
font-size: 1.6em;
color: var(--heading-color);
margin-bottom: 20px;
padding-bottom: 10px;
border-bottom: 2px solid var(--primary-color);
display: flex;
align-items: center;
}
.report-section h3 svg {
margin-right: 10px;
fill: var(--primary-color);
}
.grid-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
}
.data-card {
background: var(--background-color);
padding: 20px;
border-radius: 8px;
text-align: center;
border: 1px solid var(--border-color);
}
.data-card .value {
font-size: 2.5em;
font-weight: bold;
color: var(--primary-color);
}
.data-card .label {
font-size: 1em;
color: var(--text-color);
margin-top: 5px;
}
.hot-topic-card {
background: var(--background-color);
padding: 20px;
border-radius: 8px;
border-left: 5px solid;
}
.hot-topic-card.topic-1 { border-color: var(--success-color); }
.hot-topic-card.topic-2 { border-color: var(--warning-color); }
.hot-topic-card.topic-3 { border-color: var(--info-color); }
.hot-topic-card h4 {
font-size: 1.2em;
color: var(--heading-color);
margin-bottom: 10px;
}
.alert-card {
background-color: rgba(243, 156, 18, 0.1);
border-left: 5px solid var(--warning-color);
padding: 15px;
border-radius: 6px;
}
.alert-card p {
color: var(--warning-color);
font-weight: 500;
}
.chart-container {
position: relative;
height: 400px;
width: 100%;
}
.timeline {
position: relative;
padding: 20px 0;
}
.timeline::before {
content: '';
position: absolute;
left: 20px;
top: 0;
bottom: 0;
width: 3px;
background-color: var(--primary-color);
border-radius: 3px;
}
.timeline-item {
position: relative;
margin-bottom: 20px;
padding-left: 50px;
}
.timeline-item::before {
content: '';
position: absolute;
left: 12px;
top: 5px;
width: 20px;
height: 20px;
background-color: var(--card-bg-color);
border: 3px solid var(--primary-color);
border-radius: 50%;
z-index: 1;
}
.timeline-item-content {
background: var(--background-color);
padding: 15px;
border-radius: 6px;
}
.timeline-item-content .date {
font-weight: bold;
color: var(--primary-color);
}
details {
margin-bottom: 15px;
border: 1px solid var(--border-color);
border-radius: 6px;
overflow: hidden;
}
summary {
padding: 15px;
background-color: var(--background-color);
font-weight: bold;
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
}
summary::after {
content: '▼';
transform: rotate(0deg);
transition: transform 0.2s;
}
details[open] summary::after {
transform: rotate(180deg);
}
.details-content {
padding: 20px;
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 15px;
}
th, td {
padding: 12px;
border: 1px solid var(--border-color);
text-align: left;
}
th {
background-color: var(--background-color);
font-weight: bold;
color: var(--heading-color);
}
.negative-item {
padding: 10px;
border-bottom: 1px solid var(--border-color);
display: flex;
align-items: center;
}
.negative-item:last-child { border-bottom: none; }
.negative-item .icon { color: var(--danger-color); margin-right: 10px; font-weight: bold; }
.risk-item {
padding: 10px;
border-bottom: 1px solid var(--border-color);
display: flex;
align-items: center;
}
.risk-item:last-child { border-bottom: none; }
.risk-item .icon { color: var(--warning-color); margin-right: 10px; font-weight: bold; }
@media (max-width: 1024px) {
#sidebar {
left: -260px;
transition: left 0.3s;
z-index: 1000;
}
body.sidebar-open #sidebar {
left: 0;
}
#main-content {
margin-left: 0;
width: 100%;
padding: 15px;
}
header h2 {
font-size: 1.5em;
}
.header-actions button {
padding: 6px 10px;
}
.menu-toggle {
display: block !important;
}
}
@media print {
body { display: block; }
#sidebar, .header-actions {
display: none;
}
#main-content {
margin-left: 0;
width: 100%;
padding: 0;
}
.report-section {
box-shadow: none;
border: 1px solid #ccc;
page-break-inside: avoid;
}
}
.menu-toggle {
display: none;
background: none;
border: none;
font-size: 24px;
cursor: pointer;
color: var(--heading-color);
}
</style>
</head>
<body>
<aside id="sidebar">
<div class="logo">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" style="vertical-align: middle; margin-right: 8px;"><path d="M12 2L1 9l4 1.5V21h14v-10.5L23 9l-11-7zm-2 16h-2v-6h2v6zm4 0h-2v-6h2v6zm4 0h-2v-6h2v6zm-8-8H4.5L12 5.5 19.5 9H16v8H8v-8z"/></svg>
珞珈舆情洞察
</div>
<nav>
<ul id="toc">
<li><a href="#s1">舆情概览</a></li>
<li><a href="#s2">关键数据趋势</a></li>
<li><a href="#s3">舆情动态时间轴</a></li>
<li><a href="#s4">热点话题追踪</a></li>
<li><a href="#s5">重点渠道表现</a></li>
<li><a href="#s6">负面与风险监测</a></li>
<li><a href="#s7">简报与关注点</a></li>
</ul>
</nav>
<div class="sidebar-footer">
<p>© 2024 智能报告生成</p>
</div>
</aside>
<main id="main-content">
<header>
<button class="menu-toggle" onclick="toggleSidebar()">☰</button>
<div>
<h2>武汉大学 智能舆情分析报告</h2>
<p style="color: #777;">数据周期:2024-03-01 至 2024-04-30</p>
</div>
<div class="header-actions">
<button id="theme-toggle">切换主题</button>
<button onclick="window.print()">打印/导出PDF</button>
</div>
</header>
<section id="s1" class="report-section">
<h3>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"/></svg>
1.0 本期舆情概览
</h3>
<h4>1.1 核心数据看板</h4>
<div class="grid-container" style="margin-top: 20px;">
<div class="data-card">
<div class="value">3.8亿+</div>
<div class="label">总阅读量</div>
</div>
<div class="data-card">
<div class="value">210万+</div>
<div class="label">有效讨论</div>
</div>
<div class="data-card">
<div class="value">420万+</div>
<div class="label">总互动量</div>
</div>
<div class="data-card">
<div class="value" style="color: var(--success-color);">51%</div>
<div class="label">主要情感:骄傲与自豪</div>
</div>
</div>
<h4 style="margin-top: 30px;">1.2 本期舆情热度 TOP 3</h4>
<div class="grid-container" style="margin-top: 20px;">
<div class="hot-topic-card topic-1">
<h4>TOP 1: 樱花季的浪漫与焦虑</h4>
<p>#武大樱花预约# 话题阅读量超3.8亿,引发全民关注。舆论呈现两极化:游客与校友分享樱花美景的“浪漫”与“怀旧”;本地市民与未预约成功的网友则表达“抢票难”、“拥挤”的“焦虑”与“吐槽”。</p>
</div>
<div class="hot-topic-card topic-2">
<h4>TOP 2: 学科实力与就业现实</h4>
<p>“测绘遥感世界第一”等学术成就引发自豪感,但同时,“硕士春招薪资7.2k”、“法学生实习困境”等话题引发对就业前景的广泛讨论与焦虑,形成“理想与现实”的鲜明对比。</p>
</div>
<div class="hot-topic-card topic-3">
<h4>TOP 3: 百年校史的传承与新说</h4>
<p>“1893 vs 1913”的校史起点讨论在贴吧等社区持续发酵,而抖音上“学大汉武立国”的倒读梗则以年轻化、娱乐化的方式传播了校史文化,展现了历史在当代的多元解读。</p>
</div>
</div>
<h4 style="margin-top: 30px;">1.3 重点预警</h4>
<div class="alert-card" style="margin-top: 20px;">
<p><strong>就业焦虑情绪上升:</strong> 多个王牌学科(如测绘、法学)的毕业生薪资与公众对其“顶尖”地位的期望存在落差,相关讨论中“焦虑”、“内卷”、“工资条”等词频上升,可能影响未来招生吸引力及在校生心态。</p>
</div>
</section>
<section id="s2" class="report-section">
<h3>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"/></svg>
2.0 关键数据趋势
</h3>
<div class="grid-container">
<div style="grid-column: 1 / -1;">
<h4>2.1 声量走势 (模拟)</h4>
<div class="chart-container">
<canvas id="volumeTrendChart"></canvas>
</div>
</div>
<div>
<h4>2.2 整体情感分布</h4>
<div class="chart-container" style="height: 350px;">
<canvas id="sentimentPieChart"></canvas>
</div>
</div>
<div>
<h4>2.3 数据来源平台分布</h4>
<div class="chart-container" style="height: 350px;">
<canvas id="platformBarChart"></canvas>
</div>
</div>
</div>
</section>
<section id="s3" class="report-section">
<h3>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path
</body>
</html>