File size: 11,268 Bytes
7272a53
fc05821
 
 
 
 
 
 
7272a53
fc05821
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>汽车数据分析看板 - 首页</title>
    <link rel="icon" type="image/x-icon" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><text y='.9em' font-size='90'>🚗</text></svg>">
    <link rel="stylesheet" href="style.css">
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
</head>
<body>
    <custom-navbar></custom-navbar>
    
    <main class="main-content">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8">
            <!-- 欢迎区域 -->
            <section class="mb-12 fade-in">
                <h1 class="text-4xl lg:text-5xl font-bold mb-4">
                    <span class="gradient-text">汽车行业数据分析看板</span>
                </h1>
                <p class="text-lg text-gray-600 mb-8 max-w-3xl">
                    通过专业的数据分析,为您提供汽车行业的深度洞察。涵盖销售数据、市场份额、品牌竞争、用户画像等多个维度的全面分析。
                </p>
                <div class="flex flex-wrap gap-4">
                    <a href="sales.html" class="btn btn-primary">
                        <i class="fas fa-chart-line"></i>
                        查看销售分析
                    </a>
                    <a href="reports.html" class="btn btn-secondary">
                        <i class="fas fa-file-alt"></i>
                        详细报告
                    </a>
                </div>
            </section>
            
            <!-- 关键指标 -->
            <section class="mb-12">
                <h2 class="text-2xl font-bold mb-6 text-gray-800">关键指标概览</h2>
                <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-6">
                    <div class="stat-card fade-in delay-1">
                        <div class="stat-label">年度总销量</div>
                        <div class="stat-value">2,458万辆</div>
                        <div class="stat-change positive">↑ 12.3%</div>
                    </div>
                    <div class="stat-card fade-in delay-2">
                        <div class="stat-label">市场规模</div>
                        <div class="stat-value">8.6万亿元</div>
                        <div class="stat-change positive">↑ 8.7%</div>
                    </div>
                    <div class="stat-card fade-in delay-3">
                        <div class="stat-label">新能源占比</div>
                        <div class="stat-value">32.5%</div>
                        <div class="stat-change positive">↑ 18.2%</div>
                    </div>
                    <div class="stat-card fade-in delay-4">
                        <div class="stat-label">活跃品牌数</div>
                        <div class="stat-value">156个</div>
                        <div class="stat-change positive">↑ 8</div>
                    </div>
                </div>
            </section>
            
            <!-- 图表区域 -->
            <div class="grid grid-cols-1 lg:grid-cols-2 gap-6 mb-12">
                <div class="card fade-in delay-1">
                    <div class="card-title">
                        <i class="fas fa-chart-line"></i>
                        销量趋势
                    </div>
                    <div class="h-80">
                        <canvas id="salesTrendChart"></canvas>
                    </div>
                </div>
                
                <div class="card fade-in delay-2">
                    <div class="card-title">
                        <i class="fas fa-chart-pie"></i>
                        市场份额分布
                    </div>
                    <div class="h-80">
                        <canvas id="marketShareChart"></canvas>
                    </div>
                </div>
            </div>
            
            <!-- 快速导航 -->
            <section class="mb-12">
                <h2 class="text-2xl font-bold mb-6 text-gray-800">快速导航</h2>
                <div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6">
                    <a href="sales.html" class="card hover:shadow-lg transition-all">
                        <div class="flex items-center gap-4">
                            <div class="w-12 h-12 rounded-xl bg-gradient-to-br from-blue-500 to-blue-600 flex items-center justify-center text-white">
                                <i class="fas fa-chart-bar text-xl"></i>
                            </div>
                            <div>
                                <h3 class="font-semibold text-gray-800">销售数据分析</h3>
                                <p class="text-sm text-gray-500">月度/季度/年度销售趋势</p>
                            </div>
                        </div>
                    </a>
                    
                    <a href="market.html" class="card hover:shadow-lg transition-all">
                        <div class="flex items-center gap-4">
                            <div class="w-12 h-12 rounded-xl bg-gradient-to-br from-purple-500 to-purple-600 flex items-center justify-center text-white">
                                <i class="fas fa-chart-pie text-xl"></i>
                            </div>
                            <div>
                                <h3 class="font-semibold text-gray-800">市场份额分析</h3>
                                <p class="text-sm text-gray-500">各品牌市场占有率</p>
                            </div>
                        </div>
                    </a>
                    
                    <a href="brands.html" class="card hover:shadow-lg transition-all">
                        <div class="flex items-center gap-4">
                            <div class="w-12 h-12 rounded-xl bg-gradient-to-br from-pink-500 to-pink-600 flex items-center justify-center text-white">
                                <i class="fas fa-car text-xl"></i>
                            </div>
                            <div>
                                <h3 class="font-semibold text-gray-800">品牌竞争分析</h3>
                                <p class="text-sm text-gray-500">品牌竞争力对比</p>
                            </div>
                        </div>
                    </a>
                    
                    <a href="users.html" class="card hover:shadow-lg transition-all">
                        <div class="flex items-center gap-4">
                            <div class="w-12 h-12 rounded-xl bg-gradient-to-br from-cyan-500 to-cyan-600 flex items-center justify-center text-white">
                                <i class="fas fa-users text-xl"></i>
                            </div>
                            <div>
                                <h3 class="font-semibold text-gray-800">用户画像分析</h3>
                                <p class="text-sm text-gray-500">消费者特征与偏好</p>
                            </div>
                        </div>
                    </a>
                    
                    <a href="trends.html" class="card hover:shadow-lg transition-all">
                        <div class="flex items-center gap-4">
                            <div class="w-12 h-12 rounded-xl bg-gradient-to-br from-orange-500 to-orange-600 flex items-center justify-center text-white">
                                <i class="fas fa-trending-up text-xl"></i>
                            </div>
                            <div>
                                <h3 class="font-semibold text-gray-800">趋势预测</h3>
                                <p class="text-sm text-gray-500">未来市场发展趋势</p>
                            </div>
                        </div>
                    </a>
                    
                    <a href="ev.html" class="card hover:shadow-lg transition-all">
                        <div class="flex items-center gap-4">
                            <div class="w-12 h-12 rounded-xl bg-gradient-to-br from-green-500 to-green-600 flex items-center justify-center text-white">
                                <i class="fas fa-bolt text-xl"></i>
                            </div>
                            <div>
                                <h3 class="font-semibold text-gray-800">新能源汽车</h3>
                                <p class="text-sm text-gray-500">电动车市场专题</p>
                            </div>
                        </div>
                    </a>
                </div>
            </section>
        </div>
    </main>
    
    <custom-footer></custom-footer>
    
    <script src="components/navbar.js"></script>
    <script src="components/footer.js"></script>
    <script src="script.js"></script>
    
    <script>
        // 销量趋势图表
        const salesCtx = document.getElementById('salesTrendChart').getContext('2d');
        new Chart(salesCtx, {
            type: 'line',
            data: {
                labels: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
                datasets: [{
                    label: '销量(万辆)',
                    data: [180, 165, 195, 210, 225, 240, 235, 220, 245, 260, 275, 280],
                    borderColor: '#405DF9',
                    backgroundColor: 'rgba(64, 93, 249, 0.1)',
                    fill: true,
                    tension: 0.4,
                    borderWidth: 2
                }]
            },
            options: {
                responsive: true,
                maintainAspectRatio: false,
                plugins: {
                    legend: { display: false }
                },
                scales: {
                    y: {
                        beginAtZero: false,
                        grid: { color: 'rgba(0,0,0,0.05)' }
                    },
                    x: {
                        grid: { display: false }
                    }
                }
            }
        });
        
        // 市场份额图表
        const marketCtx = document.getElementById('marketShareChart').getContext('2d');
        new Chart(marketCtx, {
            type: 'doughnut',
            data: {
                labels: ['自主品牌', '合资品牌', '进口品牌', '新能源品牌'],
                datasets: [{
                    data: [45, 35, 12, 8],
                    backgroundColor: ['#405DF9', '#6C63F0', '#B750BE', '#ED589D'],
                    borderWidth: 0
                }]
            },
            options: {
                responsive: true,
                maintainAspectRatio: false,
                plugins: {
                    legend: {
                        position: 'bottom',
                        labels: { padding: 20 }
                    }
                },
                cutout: '65%'
            }
        });
    </script>
</body>
</html>