-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathindex.html
More file actions
705 lines (615 loc) · 21.7 KB
/
Copy pathindex.html
File metadata and controls
705 lines (615 loc) · 21.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
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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>研报下载工具 | Reports Downloader</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&family=Fira+Code:wght@400;500&display=swap" rel="stylesheet">
<style>
:root {
--bg-primary: #0d1117;
--bg-secondary: #161b22;
--bg-tertiary: #21262d;
--text-primary: #e6edf3;
--text-secondary: #8b949e;
--accent-green: #3fb950;
--accent-blue: #58a6ff;
--accent-purple: #a371f7;
--accent-orange: #f0883e;
--border-color: #30363d;
--code-bg: #1c2128;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
background: var(--bg-primary);
color: var(--text-primary);
line-height: 1.6;
min-height: 100vh;
}
/* 渐变背景 */
.bg-gradient {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background:
radial-gradient(ellipse at 20% 20%, rgba(88, 166, 255, 0.1) 0%, transparent 50%),
radial-gradient(ellipse at 80% 80%, rgba(163, 113, 247, 0.1) 0%, transparent 50%),
radial-gradient(ellipse at 50% 50%, rgba(63, 185, 80, 0.05) 0%, transparent 70%);
z-index: -1;
}
.container {
max-width: 900px;
margin: 0 auto;
padding: 0 24px;
}
/* Header */
header {
padding: 60px 0 40px;
text-align: center;
animation: fadeInDown 0.8s ease-out;
}
@keyframes fadeInDown {
from {
opacity: 0;
transform: translateY(-30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.logo {
display: inline-flex;
align-items: center;
gap: 12px;
margin-bottom: 16px;
}
.logo-icon {
width: 48px;
height: 48px;
background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
font-weight: bold;
color: white;
}
h1 {
font-size: 2.5rem;
font-weight: 700;
background: linear-gradient(135deg, var(--text-primary), var(--accent-blue));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.tagline {
color: var(--text-secondary);
font-size: 1.1rem;
margin-top: 8px;
}
/* Skill 安装 */
.skill-section {
background: var(--bg-secondary);
border: 1px solid var(--accent-green);
border-radius: 12px;
padding: 32px;
margin: 40px 0;
animation: fadeIn 0.8s ease-out 0.3s both;
}
.skill-section .section-title {
color: var(--accent-green);
}
.skill-prompt-wrapper {
position: relative;
margin: 16px 0;
}
.skill-prompt {
background: var(--code-bg);
border: 1px solid var(--accent-green);
border-radius: 8px;
padding: 16px 48px 16px 20px;
font-family: 'Fira Code', monospace;
font-size: 0.95rem;
color: var(--accent-green);
text-align: center;
word-break: break-all;
}
.copy-btn {
position: absolute;
right: 8px;
top: 50%;
transform: translateY(-50%);
background: var(--bg-tertiary);
border: 1px solid var(--border-color);
color: var(--text-secondary);
padding: 6px 12px;
border-radius: 6px;
cursor: pointer;
font-size: 0.8rem;
font-family: 'Noto Sans SC', sans-serif;
transition: all 0.2s ease;
white-space: nowrap;
}
.copy-btn:hover {
border-color: var(--accent-green);
color: var(--accent-green);
}
.copy-btn.copied {
border-color: var(--accent-green);
color: var(--accent-green);
background: rgba(63, 185, 80, 0.1);
}
.skill-note {
color: var(--text-secondary);
font-size: 0.9rem;
text-align: center;
margin-top: 12px;
}
.chat-bubbles {
margin-top: 24px;
}
.chat-bubble {
background: var(--bg-tertiary);
border-radius: 12px;
padding: 12px 16px;
margin-bottom: 8px;
font-size: 0.9rem;
color: var(--text-primary);
}
.chat-bubble.user {
border-left: 3px solid var(--accent-blue);
}
.chat-bubble.agent {
border-left: 3px solid var(--accent-green);
color: var(--text-secondary);
}
/* 方法标签 */
.method-badge {
display: inline-block;
background: var(--accent-green);
color: #000;
padding: 2px 10px;
border-radius: 12px;
font-size: 0.75rem;
font-weight: 600;
margin-right: 8px;
vertical-align: middle;
}
.method-badge.secondary {
background: var(--accent-orange);
}
/* Badge */
.badges {
display: flex;
gap: 12px;
justify-content: center;
margin-top: 20px;
flex-wrap: wrap;
}
.badge {
background: var(--bg-tertiary);
border: 1px solid var(--border-color);
padding: 6px 14px;
border-radius: 20px;
font-size: 0.85rem;
color: var(--text-secondary);
}
/* 特性卡片 */
.features {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 16px;
margin: 40px 0;
animation: fadeIn 0.8s ease-out 0.2s both;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
.feature-card {
background: var(--bg-secondary);
border: 1px solid var(--border-color);
border-radius: 12px;
padding: 24px;
text-align: center;
transition: all 0.3s ease;
}
.feature-card:hover {
border-color: var(--accent-blue);
transform: translateY(-4px);
}
.feature-icon {
font-size: 2rem;
margin-bottom: 12px;
}
.feature-title {
font-weight: 600;
margin-bottom: 8px;
}
.feature-desc {
color: var(--text-secondary);
font-size: 0.9rem;
}
/* Terminal */
.terminal-section {
margin: 50px 0;
animation: fadeIn 0.8s ease-out 0.4s both;
}
.section-title {
text-align: center;
font-size: 1.5rem;
margin-bottom: 24px;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
}
.terminal {
background: var(--code-bg);
border: 1px solid var(--border-color);
border-radius: 12px;
overflow: hidden;
}
.terminal-header {
background: var(--bg-tertiary);
padding: 12px 16px;
display: flex;
align-items: center;
gap: 8px;
}
.terminal-dot {
width: 12px;
height: 12px;
border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }
.terminal-title {
margin-left: 12px;
color: var(--text-secondary);
font-size: 0.85rem;
font-family: 'Fira Code', monospace;
}
.terminal-body {
padding: 20px;
font-family: 'Fira Code', monospace;
font-size: 0.9rem;
}
.command-block {
margin-bottom: 20px;
}
.command-label {
color: var(--accent-purple);
font-size: 0.8rem;
margin-bottom: 6px;
}
.command {
background: rgba(0,0,0,0.3);
padding: 10px 14px;
border-radius: 6px;
color: var(--accent-green);
border-left: 3px solid var(--accent-green);
}
.command-comment {
color: var(--text-secondary);
font-size: 0.8rem;
margin-top: 4px;
font-family: 'Noto Sans SC', sans-serif;
}
.command-result {
color: var(--text-secondary);
font-size: 0.85rem;
margin-top: 8px;
padding-left: 14px;
}
/* 快速入门 */
.quickstart {
background: var(--bg-secondary);
border: 1px solid var(--border-color);
border-radius: 12px;
padding: 32px;
margin: 40px 0;
animation: fadeIn 0.8s ease-out 0.6s both;
}
.step {
display: flex;
gap: 16px;
margin-bottom: 24px;
align-items: flex-start;
}
.step:last-child {
margin-bottom: 0;
}
.step-number {
width: 32px;
height: 32px;
background: var(--accent-blue);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-weight: bold;
flex-shrink: 0;
}
.step-content h3 {
margin-bottom: 6px;
}
.step-content p {
color: var(--text-secondary);
font-size: 0.95rem;
}
.step-code {
background: var(--code-bg);
padding: 10px 14px;
border-radius: 6px;
font-family: 'Fira Code', monospace;
font-size: 0.85rem;
color: var(--accent-green);
margin-top: 10px;
}
/* 用例 */
.usecases {
margin: 50px 0;
animation: fadeIn 0.8s ease-out 0.8s both;
}
.usecase-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
gap: 20px;
}
.usecase-card {
background: var(--bg-secondary);
border: 1px solid var(--border-color);
border-radius: 12px;
padding: 24px;
transition: all 0.3s ease;
}
.usecase-card:hover {
border-color: var(--accent-orange);
}
.usecase-title {
display: flex;
align-items: center;
gap: 10px;
font-weight: 600;
margin-bottom: 16px;
}
.usecase-title .icon {
font-size: 1.2rem;
}
.usecase-command {
background: var(--code-bg);
padding: 12px;
border-radius: 6px;
font-family: 'Fira Code', monospace;
font-size: 0.85rem;
color: var(--accent-green);
margin-bottom: 10px;
}
.usecase-desc {
color: var(--text-secondary);
font-size: 0.9rem;
}
/* 页脚 */
footer {
text-align: center;
padding: 60px 0;
color: var(--text-secondary);
border-top: 1px solid var(--border-color);
margin-top: 60px;
animation: fadeIn 0.8s ease-out 1s both;
}
.footer-links {
display: flex;
gap: 24px;
justify-content: center;
margin-bottom: 20px;
}
.footer-links a {
color: var(--accent-blue);
text-decoration: none;
transition: color 0.2s;
}
.footer-links a:hover {
color: var(--accent-purple);
}
/* 响应式 */
@media (max-width: 640px) {
h1 {
font-size: 1.8rem;
}
.container {
padding: 0 16px;
}
.terminal-body {
font-size: 0.8rem;
padding: 14px;
}
.features {
grid-template-columns: 1fr;
}
}
</style>
</head>
<body>
<div class="bg-gradient"></div>
<div class="container">
<header>
<div class="logo">
<div class="logo-icon">EM</div>
<h1>Eastmoney Reports Tool</h1>
</div>
<p class="tagline">Query and download research reports via CLI</p>
<div class="badges">
<span class="badge">🤖 Skill 安装</span>
<span class="badge">🖥️ CLI</span>
<span class="badge">📥 PDF/CSV</span>
<span class="badge">🐍 Python 3.8+</span>
<span class="badge">📦 v1.3.3</span>
</div>
</header>
<!-- 方式一:Skill 安装 -->
<section class="skill-section">
<h2 class="section-title">
<span>🤖</span> <span class="method-badge">推荐</span> 方式一:Skill 安装
</h2>
<p style="text-align:center; color: var(--text-secondary); margin-bottom: 16px;">
在 Agent 里发送下面这句话,自动完成安装,无需手动操作
</p>
<div class="skill-prompt-wrapper">
<div class="skill-prompt" id="skillPrompt">请帮我安装 skill: https://raw.githubusercontent.com/manymore13/report-cli/refs/heads/master/.claude/skills/report-cli/SKILL.md</div>
<button class="copy-btn" id="copyBtn" onclick="copySkillPrompt()">复制</button>
</div>
<p class="skill-note">
适用于 Cursor、Cline、Codex、Claude Code 等支持 Skill 的 Agent 工具
</p>
<div style="margin-top: 28px;">
<h3 style="text-align:center; margin-bottom: 16px; color: var(--text-primary);">安装后,直接用自然语言交互</h3>
<div class="chat-bubbles">
<div class="chat-bubble user">帮我查一下游戏行业最近有什么研报</div>
<div class="chat-bubble agent">已查询游戏行业最近5篇研报,含行业趋势和重点公司分析</div>
<div class="chat-bubble user">只看10页以上的深度报告</div>
<div class="chat-bubble agent">已筛选出3篇深度报告(≥10页),均为头部券商发布</div>
<div class="chat-bubble user">今天的券商晨报说了什么</div>
<div class="chat-bubble agent">今日晨报关注:科技板块反弹、消费复苏信号、新能源政策动向</div>
<div class="chat-bubble user">宁德时代有什么最新研报,只看买入评级的</div>
<div class="chat-bubble agent">宁德时代近30天共3篇买入评级研报,目标价区间 280-320 元</div>
</div>
</div>
</section>
<!-- 方式二:CLI 安装 -->
<section class="quickstart">
<h2 class="section-title" style="margin-bottom: 32px;">
<span>💻</span> <span class="method-badge secondary">方式二</span> CLI 安装
</h2>
<div class="step">
<div class="step-number">1</div>
<div class="step-content">
<h3>安装</h3>
<div class="step-code">pip install report-cli</div>
</div>
</div>
<div class="step">
<div class="step-number">2</div>
<div class="step-content">
<h3>列出行业</h3>
<div class="step-code">report l</div>
</div>
</div>
<div class="step">
<div class="step-number">3</div>
<div class="step-content">
<h3>查询研报</h3>
<div class="step-code">report q -i 1046 -s 5</div>
</div>
</div>
</section>
<!-- 特性 -->
<section class="features">
<div class="feature-card">
<div class="feature-icon">📋</div>
<div class="feature-title">多维查询</div>
<div class="feature-desc">行业、策略、宏观、晨报、个股全覆盖</div>
</div>
<div class="feature-card">
<div class="feature-icon">📥</div>
<div class="feature-title">批量下载</div>
<div class="feature-desc">支持指定序号、日期范围和数量筛选</div>
</div>
<div class="feature-card">
<div class="feature-icon">📊</div>
<div class="feature-title">CSV导出</div>
<div class="feature-desc">查询结果导出,Excel直接打开分析</div>
</div>
<div class="feature-card">
<div class="feature-icon">🔍</div>
<div class="feature-title">搜索发现</div>
<div class="feature-desc">列出行业分类、搜索关键词快速定位</div>
</div>
</section>
<!-- CLI 命令参考 -->
<section class="usecases">
<h2 class="section-title">
<span>📖</span> CLI 命令参考
</h2>
<div class="usecase-grid">
<div class="usecase-card">
<div class="usecase-title">
<span class="icon">🎮</span> 行业研报
</div>
<div class="usecase-command">report q -i 1046 -s 10</div>
<div class="usecase-desc">按行业代码查询,支持日期和页码筛选</div>
</div>
<div class="usecase-card">
<div class="usecase-title">
<span class="icon">📈</span> 策略报告
</div>
<div class="usecase-command">report q -t strategy -s 5</div>
<div class="usecase-desc">市场策略与投资方向分析</div>
</div>
<div class="usecase-card">
<div class="usecase-title">
<span class="icon">🍷</span> 个股研报
</div>
<div class="usecase-command">report q -t stock -c 600519</div>
<div class="usecase-desc">按股票代码精准查询,支持评级筛选</div>
</div>
<div class="usecase-card">
<div class="usecase-title">
<span class="icon">🌍</span> 宏观研究
</div>
<div class="usecase-command">report q -t macro -s 5</div>
<div class="usecase-desc">宏观经济趋势与政策解读</div>
</div>
<div class="usecase-card">
<div class="usecase-title">
<span class="icon">🌅</span> 券商晨报
</div>
<div class="usecase-command">report q -t morning -s 5</div>
<div class="usecase-desc">每日券商晨会观点汇总</div>
</div>
<div class="usecase-card">
<div class="usecase-title">
<span class="icon">📥</span> 下载PDF
</div>
<div class="usecase-command">report d -i 1046 -s 5 -o ./reports</div>
<div class="usecase-desc">批量下载研报PDF,支持指定序号</div>
</div>
</div>
</section>
<footer>
<div class="footer-links">
<a href="https://github.com/manymore13/report-cli">GitHub</a>
<a href="https://github.com/manymore13/report-cli/issues">问题反馈</a>
</div>
<p>让研报查询与分析更简单 ✨</p>
</footer>
</div>
<script>
function copySkillPrompt() {
const text = document.getElementById('skillPrompt').textContent;
navigator.clipboard.writeText(text).then(() => {
const btn = document.getElementById('copyBtn');
btn.textContent = '已复制';
btn.classList.add('copied');
setTimeout(() => {
btn.textContent = '复制';
btn.classList.remove('copied');
}, 2000);
});
}
</script>
</body>
</html>