-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
556 lines (501 loc) · 32.5 KB
/
index.html
File metadata and controls
556 lines (501 loc) · 32.5 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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<!-- SEO & Social Sharing -->
<title>MahjongMaster | 雀魂麻将究极助手</title>
<meta name="description" content="全自动雀魂AI助手,实时胜率预测,帮您掌控牌局。加入内部群获取最新防封版本。" />
<!-- Open Graph -->
<meta property="og:type" content="website" />
<meta property="og:title" content="MahjongMaster | 雀魂AI助手" />
<meta property="og:description" content="不做运气的奴隶,成为数据的主宰。实时胜率预测,全自动托管打牌。" />
<!-- Favicon -->
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🀄️</text></svg>">
<!-- Mobile Web App -->
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="theme-color" content="#1e1b2e" />
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
extend: {
colors: {
'anime-bg': '#1a1b2e',
'anime-card': '#242642',
'anime-pink': '#ff7eb3',
'anime-blue': '#7afcff',
'anime-purple': '#b026ff',
'gold': '#ffd700',
},
fontFamily: {
'game': ['"Segoe UI"', 'Meiryo', 'system-ui', 'sans-serif'],
},
animation: {
'float': 'float 6s ease-in-out infinite',
'pulse-fast': 'pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite',
'shimmer': 'shimmer 2.5s infinite linear',
},
keyframes: {
float: {
'0%, 100%': { transform: 'translateY(0)' },
'50%': { transform: 'translateY(-10px)' },
},
shimmer: {
'0%': { backgroundPosition: '-200% 0' },
'100%': { backgroundPosition: '200% 0' },
}
}
},
},
}
</script>
<style>
body {
background-color: #1a1b2e;
color: white;
font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
background-image:
radial-gradient(circle at 15% 50%, rgba(176, 38, 255, 0.08) 0%, transparent 25%),
radial-gradient(circle at 85% 30%, rgba(255, 126, 179, 0.08) 0%, transparent 25%);
overflow-x: hidden;
}
/* Japanese Pattern Overlay (Seigaiha-ish) */
.bg-pattern {
position: fixed;
top: 0; left: 0; width: 100%; height: 100%;
background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
pointer-events: none;
z-index: 0;
}
/* Sakura Animation */
.sakura-container {
position: fixed;
top: 0; left: 0; width: 100%; height: 100%;
pointer-events: none;
z-index: 1;
overflow: hidden;
}
.sakura {
position: absolute;
background-color: #ffb7d5;
border-radius: 100% 0 100% 0;
animation: fall linear infinite;
opacity: 0.6;
}
@keyframes fall {
0% { top: -10%; transform: rotate(0deg) translateX(0); opacity: 0; }
20% { opacity: 0.8; }
100% { top: 110%; transform: rotate(360deg) translateX(50px); opacity: 0; }
}
/* Game UI Elements */
.glass-panel {
background: rgba(36, 38, 66, 0.7);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}
.btn-game {
position: relative;
clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
transition: all 0.3s ease;
}
.btn-game:active {
transform: scale(0.95);
}
</style>
<script type="importmap">
{
"imports": {
"react": "https://esm.sh/react@^19.2.3",
"react/": "https://esm.sh/react@^19.2.3/",
"lucide-react": "https://esm.sh/lucide-react@^0.562.0"
}
}
</script>
</head>
<body class="min-h-screen pb-32">
<!-- Background Elements -->
<div class="bg-pattern"></div>
<div class="sakura-container" id="sakura-container"></div>
<!-- Navigation / Header -->
<nav class="fixed top-0 w-full z-50 px-6 py-4">
<div class="max-w-7xl mx-auto flex justify-between items-center glass-panel rounded-full px-6 py-3 border-anime-pink/20">
<div class="flex items-center gap-2">
<span class="text-2xl">🀄️</span>
<span class="font-bold text-white tracking-wider">MAHJONG<span class="text-anime-pink">MASTER</span></span>
</div>
<div class="hidden sm:flex gap-6 text-sm font-bold text-gray-300">
<a href="#demo" class="hover:text-anime-blue transition-colors">模拟演示</a>
<a href="#features" class="hover:text-anime-blue transition-colors">核心功能</a>
<span class="text-anime-pink cursor-pointer" onclick="alert('QQ: 1106131344')">联系我们</span>
</div>
</div>
</nav>
<!-- Hero Section -->
<header class="relative pt-32 pb-20 px-6 text-center overflow-hidden z-10">
<!-- Decor lines -->
<div class="absolute top-40 left-0 w-full h-px bg-gradient-to-r from-transparent via-anime-pink/30 to-transparent"></div>
<div class="absolute top-44 left-0 w-full h-px bg-gradient-to-r from-transparent via-anime-blue/30 to-transparent"></div>
<div class="relative max-w-5xl mx-auto">
<div class="inline-flex items-center gap-3 px-6 py-2 rounded-full bg-black/40 border border-anime-blue/50 mb-8 backdrop-blur-sm animate-float">
<span class="w-2 h-2 rounded-full bg-anime-pink animate-pulse"></span>
<span class="text-xs font-bold font-mono text-anime-blue tracking-[0.2em]">SYSTEM_ONLINE // V4.0.2</span>
</div>
<h1 class="text-5xl md:text-8xl font-black mb-6 tracking-tight italic" style="text-shadow: 0 0 30px rgba(176,38,255,0.4)">
<span class="bg-clip-text text-transparent bg-gradient-to-r from-white via-anime-blue to-white">掌控</span>
<span class="text-anime-pink relative inline-block">
牌局
<svg class="absolute -top-6 -right-8 w-12 h-12 text-yellow-400 animate-pulse" fill="currentColor" viewBox="0 0 20 20"><path d="M9.049 2.927c.3-.921 1.603-.921 1.902 0l1.07 3.292a1 1 0 00.95.69h3.462c.969 0 1.371 1.24.588 1.81l-2.8 2.034a1 1 0 00-.364 1.118l1.07 3.292c.3.921-.755 1.688-1.54 1.118l-2.8-2.034a1 1 0 00-1.175 0l-2.8 2.034c-.784.57-1.838-.197-1.539-1.118l1.07-3.292a1 1 0 00-.364-1.118L2.98 8.72c-.783-.57-.38-1.81.588-1.81h3.461a1 1 0 00.951-.69l1.07-3.292z"/></svg>
</span>
<br />
<span class="bg-clip-text text-transparent bg-gradient-to-r from-anime-purple via-white to-anime-pink text-4xl md:text-7xl">预见未来</span>
</h1>
<p class="text-xl md:text-2xl text-gray-300 max-w-2xl mx-auto mb-12 leading-relaxed">
专为<span class="text-anime-blue font-bold">雀魂(Majsoul)</span>打造的
<span class="bg-anime-pink text-black px-1 transform -skew-x-12 inline-block text-base font-bold mx-1">AI辅助系统</span>
<br />
打破运气的枷锁,这就是「科学麻将」的极致。
</p>
<div class="flex flex-col sm:flex-row justify-center gap-6">
<a href="#demo" onclick="alert('联系方式:QQ1106131344/2110417355')" class="btn-game px-10 py-4 bg-gradient-to-r from-anime-pink to-purple-600 text-white font-bold text-lg hover:brightness-110 shadow-[0_0_20px_rgba(255,126,179,0.5)] cursor-pointer flex items-center justify-center gap-2">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.263a1 1 0 001.555.832l3.197-2.132a1 1 0 000-1.664z"/><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 12a9 9 0 11-18 0 9 9 0 0118 0z"/></svg>
体验 AI 模拟
</a>
<a href="#features" class="btn-game px-10 py-4 bg-anime-card border border-anime-blue/30 text-anime-blue font-bold text-lg hover:bg-anime-blue/10 hover:border-anime-blue transition-all">
了解核心机能
</a>
</div>
</div>
</header>
<!-- Demo Section -->
<section id="demo" class="px-4 py-10 relative z-10">
<div class="max-w-6xl mx-auto">
<div class="flex items-end gap-4 mb-8 border-b border-gray-700 pb-4">
<h2 class="text-3xl md:text-4xl font-black italic text-white"><span class="text-anime-blue">#</span> 实时演算演示</h2>
<span class="text-anime-pink font-mono text-sm mb-1.5">LIVE DEMONSTRATION</span>
</div>
<!-- AI Demo Component -->
<div class="w-full max-w-4xl mx-auto p-1 bg-gradient-to-br from-anime-blue via-transparent to-anime-pink rounded-2xl">
<div class="bg-anime-bg rounded-2xl overflow-hidden relative">
<!-- Grid Background inside card -->
<div class="absolute inset-0 opacity-20" style="background-image: linear-gradient(#4a5568 1px, transparent 1px), linear-gradient(90deg, #4a5568 1px, transparent 1px); background-size: 20px 20px;"></div>
<div class="relative z-10 p-4 sm:p-8">
<!-- HUD Header -->
<div class="flex justify-between items-center mb-8 bg-black/30 p-3 rounded-lg border-l-4 border-anime-pink">
<div class="flex items-center space-x-3">
<div class="w-3 h-3 bg-anime-green rounded-full animate-pulse"></div>
<h3 class="text-lg font-bold font-mono tracking-widest text-white">MAHJONG_AI <span class="text-anime-blue">V4.0</span></h3>
</div>
<div class="text-right">
<div class="text-xs text-gray-400 font-mono">GAME STATE</div>
<div class="text-anime-blue font-bold">东三局 12本场</div>
</div>
</div>
<!-- Tiles Container -->
<div id="tile-container" class="flex flex-wrap justify-center gap-1 sm:gap-3 mb-8 min-h-[90px] p-6 bg-black/20 rounded-xl border border-white/5 backdrop-blur-sm">
<!-- Tiles injected by JS -->
</div>
<!-- Analysis Dashboard -->
<div class="grid grid-cols-1 md:grid-cols-2 gap-6">
<!-- Win Rate -->
<div class="glass-panel p-5 rounded-xl border-t-2 border-anime-blue relative overflow-hidden group">
<div class="absolute top-0 right-0 p-2 opacity-10 group-hover:opacity-30 transition-opacity">
<svg class="w-16 h-16 text-anime-blue" fill="currentColor" viewBox="0 0 20 20"><path d="M2 11a1 1 0 011-1h2a1 1 0 011 1v5a1 1 0 01-1 1H3a1 1 0 01-1-1v-5zM8 7a1 1 0 011-1h2a1 1 0 011 1v9a1 1 0 01-1 1H9a1 1 0 01-1-1V7zM14 4a1 1 0 011-1h2a1 1 0 011 1v12a1 1 0 01-1 1h-2a1 1 0 01-1-1V4z"/></svg>
</div>
<div class="flex justify-between items-center mb-2">
<span class="text-gray-400 text-xs font-mono tracking-widest">WIN PROBABILITY</span>
<span id="analysis-status" class="text-anime-blue text-xs font-bold animate-pulse hidden">[ CALCULATING ]</span>
</div>
<div id="win-rate-display" class="text-5xl font-black italic text-transparent bg-clip-text bg-gradient-to-r from-anime-blue to-white mb-3">
0.0%
</div>
<div class="w-full bg-gray-800 h-2 rounded-full overflow-hidden">
<div id="win-rate-bar" class="h-full bg-gradient-to-r from-anime-blue to-anime-purple shadow-[0_0_10px_#7afcff]" style="width: 0%; transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);"></div>
</div>
</div>
<!-- Suggestion -->
<div class="glass-panel p-5 rounded-xl border-t-2 border-anime-pink flex flex-col justify-center items-center text-center relative">
<div id="action-content" class="w-full">
<div class="flex flex-col items-center justify-center text-gray-500 py-2">
<svg class="w-8 h-8 mb-2 opacity-50" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"/></svg>
<span class="text-xs font-mono">WAITING FOR INPUT...</span>
</div>
</div>
</div>
</div>
<div class="mt-8 flex justify-center">
<button id="simulate-btn" class="btn-game relative px-12 py-3 bg-anime-blue/10 hover:bg-anime-blue/20 text-anime-blue font-bold text-lg border-2 border-anime-blue transition-all hover:shadow-[0_0_30px_rgba(122,252,255,0.3)] disabled:opacity-50 disabled:cursor-not-allowed group overflow-hidden">
<span class="absolute inset-0 w-full h-full bg-gradient-to-r from-transparent via-white/40 to-transparent -translate-x-full group-hover:animate-shimmer"></span>
<span class="flex items-center gap-2 relative z-10">
<span id="simulate-btn-text">INITIALIZE SIMULATION</span>
</span>
</button>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Features Grid -->
<section id="features" class="py-20 px-6 relative z-10">
<div class="max-w-6xl mx-auto">
<div class="text-center mb-16">
<h2 class="text-3xl md:text-5xl font-black italic mb-4">
<span class="text-transparent bg-clip-text bg-gradient-to-r from-anime-pink to-anime-purple">超越人类</span>的计算力
</h2>
<div class="flex justify-center gap-2">
<div class="w-12 h-1 bg-anime-blue skew-x-12"></div>
<div class="w-4 h-1 bg-anime-pink skew-x-12"></div>
<div class="w-2 h-1 bg-white skew-x-12"></div>
</div>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-8">
<!-- Feature 1 -->
<div class="glass-panel p-8 rounded-2xl hover:border-anime-purple/50 transition-all duration-300 group hover:-translate-y-2">
<div class="w-14 h-14 bg-anime-purple/20 rounded-xl flex items-center justify-center mb-6 text-anime-purple border border-anime-purple/30 group-hover:scale-110 transition-transform shadow-[0_0_15px_rgba(176,38,255,0.2)]">
<svg class="w-7 h-7" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"/></svg>
</div>
<h3 class="text-xl font-bold text-white mb-3">全自动托管</h3>
<p class="text-gray-400 leading-relaxed text-sm">解放双手,AI 自动执行最优解。段位战稳定上分,完美模拟高手牌效与心理博弈。</p>
</div>
<!-- Feature 2 -->
<div class="glass-panel p-8 rounded-2xl hover:border-anime-green/50 transition-all duration-300 group hover:-translate-y-2">
<div class="w-14 h-14 bg-neon-green/20 rounded-xl flex items-center justify-center mb-6 text-neon-green border border-neon-green/30 group-hover:scale-110 transition-transform shadow-[0_0_15px_rgba(0,255,157,0.2)]">
<svg class="w-7 h-7" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"/></svg>
</div>
<h3 class="text-xl font-bold text-white mb-3">胜率预测</h3>
<p class="text-gray-400 leading-relaxed text-sm">上帝视角显示每一张切牌后的听牌胜率、改良进张。数据可视化,不再迷茫。</p>
</div>
<!-- Feature 3 -->
<div class="glass-panel p-8 rounded-2xl hover:border-anime-blue/50 transition-all duration-300 group hover:-translate-y-2">
<div class="w-14 h-14 bg-anime-blue/20 rounded-xl flex items-center justify-center mb-6 text-anime-blue border border-anime-blue/30 group-hover:scale-110 transition-transform shadow-[0_0_15px_rgba(122,252,255,0.2)]">
<svg class="w-7 h-7" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"/></svg>
</div>
<h3 class="text-xl font-bold text-white mb-3">智能防点炮</h3>
<p class="text-gray-400 leading-relaxed text-sm">通过深度学习分析场上舍牌,精确计算对手听牌危险度。攻守兼备,立于不败之地。</p>
</div>
</div>
</div>
</section>
<!-- Why Us -->
<section class="py-20 px-6 relative z-10">
<div class="max-w-4xl mx-auto glass-panel rounded-3xl p-8 sm:p-12 relative overflow-hidden">
<!-- Decoration -->
<div class="absolute -right-20 -top-20 w-64 h-64 bg-anime-pink/20 blur-[80px] rounded-full"></div>
<h2 class="text-2xl font-black italic mb-8 text-center text-white">为什么选择 <span class="text-anime-pink">MahjongMaster</span>?</h2>
<div class="space-y-6 relative z-10">
<div class="flex items-start gap-4 p-4 rounded-lg bg-black/20 hover:bg-black/40 transition-colors">
<div class="bg-anime-green/20 p-2 rounded-full text-anime-green">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"/></svg>
</div>
<div>
<h4 class="font-bold text-white">独家算法内核</h4>
<p class="text-sm text-gray-400">非市面普通脚本可比,采用神经网络深度学习模型。</p>
</div>
</div>
<div class="flex items-start gap-4 p-4 rounded-lg bg-black/20 hover:bg-black/40 transition-colors">
<div class="bg-anime-blue/20 p-2 rounded-full text-anime-blue">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"/></svg>
</div>
<div>
<h4 class="font-bold text-white">持续更新适配</h4>
<p class="text-sm text-gray-400">跟随雀魂版本更新,确保稳定奔放。</p>
</div>
</div>
<div class="flex items-start gap-4 p-4 rounded-lg bg-yellow-500/10 hover:bg-yellow-500/20 transition-colors">
<div class="bg-yellow-500/20 p-2 rounded-full text-yellow-500">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"/></svg>
</div>
<div>
<h4 class="font-bold text-white">专属内部群服务</h4>
<p class="text-sm text-gray-400">提供 1对1 远程安装与调试服务。</p>
</div>
</div>
</div>
</div>
</section>
<!-- Spacer -->
<div class="h-24"></div>
<!-- Sticky Contact -->
<div class="fixed bottom-0 left-0 w-full bg-[#161625]/95 backdrop-blur-xl border-t border-anime-pink/30 z-50 py-4 px-4 shadow-[0_-10px_40px_rgba(0,0,0,0.5)]">
<div class="max-w-6xl mx-auto flex flex-col sm:flex-row items-center justify-between gap-4">
<div class="flex items-center gap-4">
<div class="relative">
<span class="absolute -top-1 -right-1 w-3 h-3 bg-anime-pink rounded-full animate-pulse border border-black z-10"></span>
<div class="w-10 h-10 bg-gradient-to-br from-anime-pink to-purple-600 rounded-lg flex items-center justify-center text-white shadow-lg">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"/></svg>
</div>
</div>
<div>
<h4 class="text-white font-bold text-lg leading-tight flex items-center gap-2">
加入内部核心群
<span class="text-[10px] bg-anime-blue text-black px-1.5 py-0.5 rounded font-bold">HOT</span>
</h4>
<p class="text-gray-400 text-xs">获取最新防封版本 & 实时指导</p>
</div>
</div>
<div class="flex gap-2 w-full sm:w-auto">
<div onclick="copyQQ('1106131344')" class="flex-1 sm:flex-none flex items-center justify-center gap-2 bg-anime-card hover:bg-anime-purple/20 text-white px-5 py-2.5 rounded-lg cursor-pointer border border-gray-700 hover:border-anime-pink transition-all active:scale-95">
<span class="font-mono font-bold text-anime-pink text-sm sm:text-base">QQ: 1106131344</span>
<svg class="text-gray-400 w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"/></svg>
</div>
<div onclick="copyQQ('2110417355')" class="flex-1 sm:flex-none flex items-center justify-center gap-2 bg-anime-card hover:bg-anime-purple/20 text-white px-5 py-2.5 rounded-lg cursor-pointer border border-gray-700 hover:border-anime-pink transition-all active:scale-95">
<span class="font-mono font-bold text-anime-pink text-sm sm:text-base">QQ: 2110417355</span>
<svg class="text-gray-400 w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 16H6a2 2 0 01-2-2V6a2 2 0 012-2h8a2 2 0 012 2v2m-6 12h8a2 2 0 002-2v-8a2 2 0 00-2-2h-8a2 2 0 00-2 2v8a2 2 0 002 2z"/></svg>
</div>
</div>
</div>
</div>
<!-- Application Logic -->
<script>
// --- 1. Sakura Animation Logic ---
function createSakura() {
const container = document.getElementById('sakura-container');
const petal = document.createElement('div');
petal.classList.add('sakura');
// Randomize size, position, and duration
const size = Math.random() * 10 + 5;
const startLeft = Math.random() * window.innerWidth;
const duration = Math.random() * 5 + 5;
petal.style.width = `${size}px`;
petal.style.height = `${size}px`;
petal.style.left = `${startLeft}px`;
petal.style.animationDuration = `${duration}s`;
container.appendChild(petal);
// Remove after animation
setTimeout(() => {
petal.remove();
}, duration * 1000);
}
// Spawn sakura every 300ms
setInterval(createSakura, 300);
// --- 2. Mahjong Game Logic ---
const INITIAL_HAND = [
{ id: 1, type: 'man', value: 1, symbol: '🀇' },
{ id: 2, type: 'man', value: 2, symbol: '🀈' },
{ id: 3, type: 'man', value: 3, symbol: '🀉' },
{ id: 4, type: 'pin', value: 4, symbol: '🀝' },
{ id: 5, type: 'pin', value: 5, symbol: '🀞' },
{ id: 6, type: 'pin', value: 6, symbol: '🀟' },
{ id: 7, type: 'sou', value: 1, symbol: '🀐' },
{ id: 8, type: 'sou', value: 2, symbol: '🀑' },
{ id: 9, type: 'sou', value: 3, symbol: '🀒' },
{ id: 10, type: 'honors', value: 1, symbol: '🀀' },
{ id: 11, type: 'honors', value: 1, symbol: '🀀' },
{ id: 12, type: 'honors', value: 5, symbol: '🀆' },
{ id: 13, type: 'honors', value: 6, symbol: '🀅' },
];
let state = {
analyzing: false,
result: null
};
function copyQQ(qq) {
navigator.clipboard.writeText(qq).then(() => {
// Custom anime style alert could go here, sticking to native for simplicity
alert(`QQ号 ${qq} 已复制`);
});
}
function renderTiles() {
const container = document.getElementById('tile-container');
container.innerHTML = '';
INITIAL_HAND.forEach((tile, index) => {
const isHighlight = state.result && state.result.discardIndex === index;
const isDimmed = state.result && state.result.discardIndex !== index;
const tileColor = tile.type === 'man' ? '#8b0000' : tile.type === 'sou' ? '#006400' : 'black';
// Anime Style Tile: cleaner, white bg, slight gloss
let classes = "relative w-11 h-16 sm:w-14 sm:h-20 bg-gradient-to-b from-white to-gray-200 rounded-sm shadow-md flex items-center justify-center text-4xl sm:text-5xl select-none cursor-pointer transition-all duration-300 transform border border-gray-300 group";
if (isHighlight) {
classes += " -translate-y-4 shadow-[0_0_20px_#ff7eb3] ring-2 ring-anime-pink z-10 scale-110";
} else if (isDimmed) {
classes += " opacity-60 brightness-75 blur-[0.5px]";
} else {
classes += " hover:-translate-y-1 hover:shadow-lg hover:border-anime-blue";
}
const el = document.createElement('div');
el.className = classes;
el.style.color = tileColor;
el.innerHTML = `
<span class="drop-shadow-sm">${tile.symbol}</span>
<div class="absolute top-0 left-0 w-full h-1/3 bg-gradient-to-b from-white/80 to-transparent rounded-t-sm pointer-events-none"></div>
${isHighlight ? '<div class="absolute -top-8 left-1/2 transform -translate-x-1/2 bg-anime-pink text-white text-[12px] font-bold px-2 py-0.5 rounded shadow-lg animate-bounce whitespace-nowrap">オススメ (切)</div>' : ''}
`;
container.appendChild(el);
});
}
function renderStatus() {
const btn = document.getElementById('simulate-btn');
const btnText = document.getElementById('simulate-btn-text');
const statusEl = document.getElementById('analysis-status');
const winRateDisplay = document.getElementById('win-rate-display');
const winRateBar = document.getElementById('win-rate-bar');
const actionContent = document.getElementById('action-content');
if (state.analyzing) {
btn.disabled = true;
btnText.textContent = "ANALYZING...";
statusEl.classList.remove('hidden');
} else {
btn.disabled = false;
btnText.textContent = "INITIALIZE SIMULATION";
statusEl.classList.add('hidden');
}
if (state.analyzing) {
winRateDisplay.innerHTML = '<span class="animate-pulse opacity-50">CALC...</span>';
winRateBar.style.width = '0%';
} else if (state.result) {
winRateDisplay.textContent = state.result.winRate + '%';
winRateBar.style.width = state.result.winRate + '%';
} else {
winRateDisplay.textContent = '0.0%';
winRateBar.style.width = '0%';
}
if (!state.analyzing && state.result) {
const targetTile = INITIAL_HAND[state.result.discardIndex];
actionContent.innerHTML = `
<div class="text-center animate-[fadeIn_0.5s_ease-out]">
<p class="text-anime-pink text-xs font-bold tracking-widest mb-2">AI RECOMMENDATION</p>
<div class="flex items-center justify-center gap-2 mb-1">
<span class="text-gray-300">打</span>
<span class="text-4xl text-white font-bold bg-black/20 px-3 py-1 rounded border border-anime-pink">${targetTile.symbol}</span>
</div>
<p class="text-xs text-anime-blue mt-2 font-mono">EV: +12000 | SHANTEN: 0</p>
</div>
`;
} else {
const iconClass = state.analyzing ? "animate-spin text-anime-pink" : "text-gray-600";
const text = state.analyzing ? "Reading game state..." : "Waiting for input...";
actionContent.innerHTML = `
<div class="flex flex-col items-center justify-center text-gray-500 py-2">
<svg class="w-8 h-8 mb-2 ${iconClass}" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"/></svg>
<span class="text-xs font-mono tracking-wider">${text}</span>
</div>
`;
}
}
function runAnalysis() {
if (state.analyzing) return;
state.analyzing = true;
state.result = null;
renderTiles();
renderStatus();
setTimeout(() => {
state.analyzing = false;
state.result = {
discardIndex: 12, // The last tile
winRate: 88.4
};
renderTiles();
renderStatus();
}, 1500);
}
document.addEventListener('DOMContentLoaded', () => {
document.getElementById('simulate-btn').addEventListener('click', runAnalysis);
renderTiles();
renderStatus();
// Auto run demo once
setTimeout(runAnalysis, 1200);
});
</script>
</body>
</html>