-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
1315 lines (1157 loc) · 49.8 KB
/
index.html
File metadata and controls
1315 lines (1157 loc) · 49.8 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
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- 动态标题模板 -->
<title>Nuts and Bolts Puzzle - Daily Challenge - randgame.online</title>
<!-- 智能description生成 -->
<meta name="description" content="Play free online games at randgame.online! New game daily - Today: Nuts and Bolts Puzzle. No downloads needed, play instantly in your browser. Perfect for quick breaks!">
<link rel="canonical" href="https://randgame.online/daily/2023-05-15/nuts-and-bolts-puzzle">
<!-- 添加更多SEO相关meta标签 -->
<meta name="robots" content="index, follow">
<meta property="og:title" content="Nuts and Bolts Puzzle - Daily Challenge - randgame.online">
<meta property="og:description" content="Play free online games at randgame.online! New game daily - Today: Nuts and Bolts Puzzle. No downloads needed, play instantly in your browser. Perfect for quick breaks!">
<!-- <meta property="og:image" content="https://randgame.online/images/games/nuts-and-bolts-puzzle.jpg">
<meta property="og:url" content="https://randgame.online/daily/2023-05-15/nuts-and-bolts-puzzle"> -->
<meta property="og:type" content="website">
<meta property="og:site_name" content="Daily Random Game">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:title" content="Nuts and Bolts Puzzle - Daily Challenge - randgame.online">
<meta name="twitter:description" content="Play free online games at randgame.online! New game daily - Today: Nuts and Bolts Puzzle. No downloads needed, play instantly in your browser. Perfect for quick breaks!">
<!-- <meta name="twitter:image" content="https://randgame.online/images/games/nuts-and-bolts-puzzle.jpg"> -->
<meta name="keywords" content="online games, free games, browser games, casual games, puzzle games, arcade games, daily games, web games, html5 games, no download games, games for work, quick games">
<!-- JSON-LD 结构化数据 -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "WebSite",
"name": "Daily Random Game",
"url": "https://randgame.online",
"description": "Free online games updated daily. Play instantly without downloads.",
"potentialAction": {
"@type": "SearchAction",
"target": "https://randgame.online/search?q={search_term_string}",
"query-input": "required name=search_term_string"
}
}
</script>
<!-- FAQ 结构化数据 -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "FAQPage",
"mainEntity": [
{
"@type": "Question",
"name": "Can Nuts and Bolts Puzzle always be solved?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Not every Nuts and Bolts Puzzle has a guaranteed solution. However, many Nuts and Bolts Puzzle puzzles are specifically created to be solvable if played strategically, especially when features like shuffle or undo are available."
}
},
{
"@type": "Question",
"name": "Is Nuts and Bolts Puzzle more difficult than chess?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Nuts and Bolts Puzzle and chess require different skills. Chess is about deep strategy and pure logic, while Nuts and Bolts Puzzle combines strategy, pattern recognition, and some luck. Both have complexities, but Nuts and Bolts Puzzle might feel more relaxed and approachable for beginners."
}
},
{
"@type": "Question",
"name": "Is Nuts and Bolts Puzzle really good for your brain?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Absolutely! Nuts and Bolts Puzzle helps sharpen your mind by enhancing memory, pattern recognition, and strategic thinking. Regular play has even been shown to help maintain cognitive functions and reduce stress."
}
},
{
"@type": "Question",
"name": "What are the basic rules of Nuts and Bolts Puzzle?",
"acceptedAnswer": {
"@type": "Answer",
"text": "In Nuts and Bolts Puzzle (Nuts and Bolts Solitaire), the goal is simple: match pairs of identical free tiles to remove them from the board. Tiles are free if they're not covered and have at least one side (left or right) open. Clear all tiles to win!"
}
},
{
"@type": "Question",
"name": "Do you need to speak Chinese to play Nuts and Bolts Puzzle?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Not at all. Nuts and Bolts Puzzle tiles have symbols and numbers that anyone can easily learn, regardless of language. Nuts and Bolts Puzzle is fully visual, making it universally playable."
}
},
{
"@type": "Question",
"name": "Is Nuts and Bolts Puzzle luck or skill?",
"acceptedAnswer": {
"@type": "Answer",
"text": "Nuts and Bolts Puzzle blends skill and luck. Successful play requires careful planning, strategic moves, and thoughtful tile selection—but occasionally, luck also plays its part. That's part of what makes it fun!"
}
}
]
}
</script>
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.2/gsap.min.js"></script>
<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=Poppins:wght@600;700&family=Open+Sans:wght@400;500&display=swap" rel="stylesheet">
<style>
/* 调整颜色变量 */
:root {
--deep-space-blue: #1a1a2e;
--vibrant-orange: #ff4d00;
--accent-purple: #7f5af0;
--text-light: #fffffe;
--text-muted: #b0b0b0;
--card-bg: rgba(30, 30, 50, 0.9);
--heading-color: #f0f0f0;
--text-color: #e0e0e0;
--border-color: #3d3d5c;
}
/* 调整文本颜色 */
body {
font-family: 'Open Sans', sans-serif;
background-color: var(--deep-space-blue);
color: var(--text-light);
min-height: 100vh;
overflow-y: auto;
}
.game-container {
aspect-ratio: 16/9;
max-height: 80vh;
}
@media (max-width: 768px) {
.game-container {
aspect-ratio: 4/3;
height: 70vh;
}
}
/* New styles */
.content-card {
background-color: var(--card-bg);
border-left: 4px solid var(--vibrant-orange);
backdrop-filter: blur(10px);
transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
}
.content-card:hover {
transform: translateY(-8px) scale(1.02);
box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.7), 0 0 15px rgba(255, 77, 0, 0.3);
border-left: 4px solid var(--accent-purple);
}
.control-item {
background-color: rgba(45, 45, 75, 0.7);
border: 1px solid #333355;
transition: all 0.3s;
border-radius: 8px;
}
.control-item:hover {
background-color: rgba(37, 37, 67, 0.9);
transform: translateX(8px);
border-color: var(--vibrant-orange);
}
.control-item p {
margin: 0; /* Remove paragraph spacing */
line-height: 1.5; /* Adjust line height */
}
.control-label {
display: inline-block; /* Make label and content in the same line */
margin-right: 8px; /* Add right margin */
color: var(--vibrant-orange);
}
.control-action {
display: inline-block; /* Make action description in the same line */
color: var(--text-light);
}
.daily-badge {
background: linear-gradient(135deg, var(--vibrant-orange), #ff7e00);
color: white;
padding: 0.35rem 1rem;
border-radius: 9999px;
font-weight: 600;
font-size: 0.875rem;
display: inline-block;
margin-bottom: 1rem;
box-shadow: 0 4px 6px -1px rgba(255, 77, 0, 0.3);
text-transform: uppercase;
letter-spacing: 0.1em;
font-family: 'Poppins', sans-serif;
transform: rotate(-2deg);
transition: transform 0.3s;
}
.daily-badge:hover {
transform: rotate(0deg) scale(1.05);
}
.header-subtitle {
color: var(--text-light);
text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
max-width: 800px;
margin: 0 auto;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
@media (max-width: 768px) {
.header-subtitle {
white-space: normal;
font-size: 1rem;
padding: 0 15px;
line-height: 1.4;
}
}
/* CRT 显示器效果 */
.crt-effect {
background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
background-size: 100% 4px;
position: relative;
}
.crt-effect::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(
90deg,
rgba(255, 0, 0, 0.05),
rgba(0, 255, 0, 0.05),
rgba(0, 0, 255, 0.05)
);
pointer-events: none;
}
/* 修改波纹背景,使其更浅 */
.ripple-bg {
background: radial-gradient(circle at 10% 20%, #252550 0%, #131328 90%);
position: relative;
overflow: hidden;
}
/* 添加微妙的动态效果 */
.ripple-bg::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: radial-gradient(circle at 50% 50%, rgba(255, 77, 0, 0.1), transparent 80%);
animation: pulse 15s infinite ease-in-out;
z-index: 0;
}
@keyframes pulse {
0% { opacity: 0.3; transform: scale(1); }
50% { opacity: 0.5; transform: scale(1.5); }
100% { opacity: 0.3; transform: scale(1); }
}
/* 优化倒计时组件 */
.countdown-container {
position: fixed;
top: 15px;
right: 20px;
background: var(--card-bg);
padding: 12px 18px;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
backdrop-filter: blur(8px);
z-index: 100;
border: 1px solid rgba(255, 77, 0, 0.3);
}
.countdown-label {
font-size: 0.8rem;
color: var(--vibrant-orange);
margin-bottom: 4px;
}
.countdown-time {
font-size: 1.5rem;
font-weight: bold;
color: var(--vibrant-orange);
text-shadow: 0 0 10px rgba(255, 77, 0, 0.5);
}
/* 完全重写压力表样式 */
.stress-meter-container {
position: fixed;
right: 20px;
top: 50%;
transform: translateY(-50%);
background: rgba(22, 22, 46, 0.8);
padding: 10px;
border-radius: 12px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
backdrop-filter: blur(8px);
border: 1px solid rgba(255, 77, 0, 0.3);
z-index: 4;
display: flex;
align-items: center;
flex-direction: column;
}
.stress-meter {
width: 20px;
height: 120px;
background: rgba(37, 37, 67, 0.6);
border-radius: 10px;
overflow: hidden;
position: relative;
box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}
.stress-level {
position: absolute;
bottom: 0;
width: 100%;
background: linear-gradient(to top, #4ade80, #facc15, #ff4d00);
transition: height 0.5s ease;
}
.stress-text {
writing-mode: vertical-lr;
transform: rotate(180deg);
color: var(--vibrant-orange);
font-weight: 600;
font-size: 0.75rem;
letter-spacing: 0.1em;
margin-bottom: 10px;
text-transform: uppercase;
}
/* 添加NEW标签 */
.new-tag {
position: absolute;
top: -10px;
right: -10px;
background: linear-gradient(135deg, #ff4d00, #ff7e00);
color: white;
font-size: 0.7rem;
font-weight: bold;
padding: 3px 6px;
border-radius: 4px;
transform: rotate(15deg);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
animation: pulse 2s infinite;
}
/* 修复iframe点击问题 */
.game-container, .game-reveal {
position: relative;
z-index: 5; /* 确保高于其他元素 */
pointer-events: auto; /* 确保可点击 */
}
iframe {
pointer-events: auto !important; /* 强制允许点击 */
}
/* 确保固定元素不会覆盖iframe */
.countdown-container, .stress-meter-container {
z-index: 4; /* 低于游戏容器 */
pointer-events: auto; /* 允许点击 */
}
/* 调整加载动画层级 */
#loadingAnimation {
z-index: 10; /* 确保加载时在最上层 */
}
/* 确保页面可以滚动 */
body {
min-height: 100vh;
overflow-y: auto;
}
.container {
position: relative;
z-index: 1;
}
/* 调整文字颜色 */
.text-gray-900 {
color: var(--heading-color) !important;
}
.text-gray-500, .text-gray-600 {
color: var(--text-muted) !important;
}
/* 边框颜色调整 */
.border-gray-200 {
border-color: var(--border-color) !important;
}
/* 游戏容器调整 */
.game-container, .game-reveal {
border: 2px solid #334155;
border-radius: 12px;
overflow: hidden;
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
}
/* 标题样式更新 */
h1, h2, h3, h4, h5, h6 {
color: var(--heading-color) !important;
text-shadow: 0 0 15px rgba(255, 77, 0, 0.3);
}
/* 加载动画样式 */
#loadingAnimation {
background: radial-gradient(circle at center, #1e293b, #0f172a);
}
#loadingAnimation div {
color: #a78bfa;
text-shadow: 0 0 10px rgba(167, 139, 250, 0.7);
animation: fadeInOut 2s infinite;
}
@keyframes fadeInOut {
0% { opacity: 0.3; }
50% { opacity: 1; }
100% { opacity: 0.3; }
}
/* 页脚样式更新 */
footer {
color: var(--text-muted);
}
/* 修复页面滚动问题 */
html, body {
height: auto;
min-height: 100vh;
overflow-y: auto;
position: relative;
}
/* 确保主容器不受固定元素影响 */
.container {
position: relative;
z-index: 1;
padding-bottom: 60px; /* 为页脚留出空间 */
}
/* 调整游戏容器,确保不会阻止滚动 */
.game-reveal {
position: relative;
z-index: 1;
max-height: 80vh;
}
/* 确保波纹背景不会阻止滚动 */
.ripple-bg::before {
position: fixed;
pointer-events: none;
}
/* 调整固定元素,确保它们不会覆盖内容 */
.countdown-container, .stress-meter-container {
z-index: 100;
pointer-events: none; /* 允许点击穿透 */
}
/* 确保内容可以滚动 */
main {
position: relative;
z-index: 2;
}
/* 调整页脚位置 */
footer {
position: relative;
z-index: 2;
}
h1, h2, h3, h4, h5, h6 {
font-weight: 700;
}
/* 游戏容器更新 */
.game-reveal {
transition: transform 0.5s, box-shadow 0.5s;
overflow: visible;
}
.game-reveal:hover {
transform: scale(1.02);
}
/* 难度指示进度条 */
.difficulty-meter {
margin-top: 1rem;
background: rgba(37, 37, 67, 0.4);
height: 8px;
border-radius: 4px;
overflow: hidden;
position: relative;
}
.difficulty-level {
position: absolute;
left: 0;
top: 0;
height: 100%;
width: 75%; /* 设置难度等级 */
background: linear-gradient(90deg, #4ade80, #facc15, var(--vibrant-orange));
}
.difficulty-label {
display: flex;
justify-content: space-between;
font-size: 0.8rem;
color: var(--text-light);
margin-bottom: 0.25rem;
}
/* 加载进度动画 */
.loading-progress {
width: 80%;
height: 6px;
background: rgba(255,255,255,0.1);
border-radius: 3px;
overflow: hidden;
margin-top: 20px;
}
.loading-bar {
height: 100%;
width: 0%;
background: var(--vibrant-orange);
animation: loading 2s ease-in-out forwards;
}
@keyframes loading {
0% { width: 0%; }
100% { width: 100%; }
}
/* 视差滚动效果 */
.parallax-bg {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: radial-gradient(circle at 20% 30%, rgba(255, 77, 0, 0.05) 0%, transparent 50%),
radial-gradient(circle at 80% 70%, rgba(127, 90, 240, 0.05) 0%, transparent 50%);
z-index: -1;
pointer-events: none;
}
/* 移除游戏封面艺术样式 */
.game-cover-art {
display: none;
}
/* 移除挑战徽章样式 */
.challenge-badge {
display: none;
}
/* 增强链接可见性 */
a {
color: var(--vibrant-orange);
text-decoration: underline;
transition: color 0.2s;
}
a:hover {
color: #ff7e00;
}
/* 调整强调文本 */
strong {
color: var(--vibrant-orange);
font-weight: 700;
}
/* 每日游戏突出显示样式 */
.daily-highlight {
margin-top: -10px;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.8; }
}
.animate-pulse {
animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
/* 分享按钮容器样式优化 */
.share-container {
background: rgba(30, 30, 50, 0.8);
padding: 10px;
border-radius: 30px;
backdrop-filter: blur(8px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
border: 1px solid rgba(255, 77, 0, 0.3);
position: fixed;
z-index: 10;
}
/* 桌面端侧边栏位置 */
@media (min-width: 768px) {
.share-container {
left: 4px;
top: 50%;
transform: translateY(-50%);
flex-direction: column;
gap: 3px;
}
}
/* 移动端底部位置 */
@media (max-width: 767px) {
.share-container {
left: 50%;
bottom: 15px;
top: auto;
transform: translateX(-50%);
flex-direction: row;
gap: 10px;
}
}
.share-btn {
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
background: rgba(255, 255, 255, 0.1);
transition: all 0.3s;
cursor: pointer;
border: none;
}
.share-btn:hover {
transform: scale(1.1);
background: rgba(255, 255, 255, 0.2);
}
.facebook-btn:hover {
background: rgba(24, 119, 242, 0.2);
}
.twitter-btn:hover {
background: rgba(29, 161, 242, 0.2);
}
.whatsapp-btn:hover {
background: rgba(37, 211, 102, 0.2);
}
.copy-btn:hover {
background: rgba(99, 102, 241, 0.2);
}
/* 调整每日提醒文字样式 */
.daily-reminder {
font-size: 1.1rem;
color: var(--text-light);
margin-top: 0.5rem;
margin-bottom: 1.5rem;
font-weight: 500;
letter-spacing: 0.02em;
text-shadow: 0 0 10px rgba(255, 77, 0, 0.2);
}
/* 增强每日游戏提示的视觉效果 */
.daily-highlight {
margin-bottom: 1.5rem;
}
/* 移除多余的徽章 */
.daily-badge {
display: none;
}
/* 美化倒计时显示 */
.countdown-time {
font-size: 1.5rem;
font-weight: bold;
color: var(--vibrant-orange);
text-shadow: 0 0 10px rgba(255, 77, 0, 0.5);
}
/* 添加每日提醒艺术字样式 */
.daily-reminder-art {
display: none;
}
/* 添加醒目的摸鱼口号样式 */
.slacker-motto {
font-size: 1.2rem;
font-weight: 600;
margin-top: 0.5rem;
margin-bottom: 1.5rem;
letter-spacing: 0.02em;
background: linear-gradient(90deg, #00c6ff, #0072ff);
-webkit-background-clip: text;
background-clip: text;
color: transparent;
text-shadow: 0px 2px 8px rgba(0, 198, 255, 0.3);
padding: 0.5rem 1rem;
border-radius: 8px;
display: inline-block;
transform: rotate(-1deg);
animation: float 3s ease-in-out infinite;
}
@keyframes float {
0%, 100% { transform: rotate(-1deg) translateY(0px); }
50% { transform: rotate(-1deg) translateY(-5px); }
}
/* 游戏容器自适应优化 */
@media (max-width: 767px) {
.game-container {
aspect-ratio: 16/9;
height: auto;
max-height: 75vh;
width: 100%;
margin-left: 0;
margin-right: 0;
}
.game-reveal {
width: 100% !important;
height: auto !important;
}
iframe {
width: 100% !important;
height: 100% !important;
}
/* 确保倒计时和压力表在移动设备上不遮挡内容 */
.countdown-container {
top: auto;
bottom: 70px;
right: 10px;
padding: 6px 10px;
font-size: 0.9rem;
}
.countdown-time {
font-size: 1.2rem;
}
.stress-meter-container {
display: none; /* 在移动设备上隐藏压力表,节省空间 */
}
/* 调整标题大小以适应移动设备 */
h1 {
font-size: 1.75rem !important;
}
.header-subtitle {
font-size: 0.9rem !important;
line-height: 1.3;
padding: 0 10px;
}
.slacker-motto {
font-size: 0.9rem;
padding: 0.25rem 0.5rem;
}
/* 调整内容卡片在移动设备上的边距 */
.content-card {
padding: 15px;
margin-bottom: 15px;
}
}
/* 解决iframe全屏问题 */
.game-reveal {
position: relative;
padding-bottom: 56.25%; /* 16:9 比例 */
height: 0;
overflow: hidden;
}
.game-reveal iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 12px;
}
</style>
</head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-KS4NZWBEPH"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-KS4NZWBEPH');
</script>
<body class="ripple-bg">
<!-- 添加视差背景 -->
<div class="parallax-bg" id="parallaxBg"></div>
<!-- 替换倒计时组件 -->
<div class="countdown-container">
<div class="countdown-label">Next Game Countdown</div>
<div class="countdown-time" id="countdown">23:59:59</div>
</div>
<!-- 替换压力表HTML结构 -->
<div class="stress-meter-container">
<div class="new-tag">NEW</div>
<div class="stress-text">GAMING STRESS</div>
<div class="stress-meter">
<div class="stress-level" style="height: 80%"></div>
</div>
</div>
<div class="container mx-auto px-4 py-8 max-w-6xl">
<header class="text-center mb-8">
<div class="daily-highlight animate-pulse">
<span class="bg-gradient-to-r from-orange-500 to-red-600 text-white px-5 py-2 rounded-full font-bold shadow-lg">
<span class="mr-2">🔧</span>TODAY'S GAME<span class="ml-2">🔧</span>
</span>
</div>
<h1 class="text-4xl md:text-5xl font-bold mb-4 text-gray-900">Nuts and Bolts Puzzle</h1>
<p class="text-xl header-subtitle mb-3">Unscrew, strategize, and watch the planks fall in this thrilling puzzle game!</p>
<p class="slacker-motto">
<span>✨ Your daily dose of slacking off. Boss not watching? Game on! ✨</span>
</p>
</header>
<!-- 新的响应式分享容器 -->
<div class="share-container flex" id="shareButtons">
<button class="share-btn copy-btn" aria-label="Copy Link" onclick="shareGame('copy')" title="Copy Link">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="#6366F1"><path d="M16 1H4C2.9 1 2 1.9 2 3V17H4V3H16V1ZM19 5H8C6.9 5 6 5.9 6 7V21C6 22.1 6.9 23 8 23H19C20.1 23 21 22.1 21 21V7C21 5.9 20.1 5 19 5ZM19 21H8V7H19V21Z"/></svg>
</button>
<button class="share-btn bookmark-btn" aria-label="Add to Bookmarks" onclick="bookmarkGame()" title="Add to Bookmarks">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="#FFC107"><path d="M17 3H7c-1.1 0-1.99.9-1.99 2L5 21l7-3 7 3V5c0-1.1-.9-2-2-2z"/></svg>
</button>
<button class="share-btn feedback-btn" aria-label="Send Feedback" onclick="showFeedbackInfo()" title="Send Feedback">
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="#4ADE80">
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/>
</svg>
</button>
</div>
<!-- 新增反馈信息弹窗 -->
<div id="feedbackInfoModal" class="fixed top-0 left-0 w-full h-full bg-black bg-opacity-70 flex items-center justify-center z-50 opacity-0 invisible transition-all duration-300">
<div class="bg-opacity-90 bg-gray-900 p-6 rounded-xl border-l-4 border-orange-500 max-w-md mx-4 w-full">
<h3 class="text-xl font-bold mb-4 text-white">Send Feedback</h3>
<p class="mb-3 text-gray-100">Please send your feedback to the following email:</p>
<div class="bg-gray-800 p-3 rounded flex items-center justify-between mb-5">
<span class="text-orange-400 font-medium select-all">mantq@qq.com</span>
<button onclick="copyFeedbackEmail()" class="text-blue-400 hover:text-blue-300 text-sm">
Copy
</button>
</div>
<div class="flex justify-end">
<button onclick="closeFeedbackInfo()" class="px-4 py-2 bg-gray-700 hover:bg-gray-600 text-white rounded transition-colors">
Close
</button>
</div>
</div>
</div>
<!-- 添加邮箱复制成功提示 -->
<div id="copyAlert" class="fixed bottom-4 left-1/2 transform -translate-x-1/2 bg-gray-800 text-white px-4 py-2 rounded-lg opacity-0 transition-opacity duration-300 z-50">
Website link copied to clipboard!
</div>
<main>
<div class="game-container relative mb-8 px-0">
<div class="game-reveal crt-effect w-full rounded-lg shadow-2xl relative">
<iframe id="gameFrame" allowfullscreen allow="autoplay; fullscreen"></iframe>
<div id="loadingAnimation" class="absolute inset-0 flex flex-col items-center justify-center bg-black">
<div class="text-4xl text-white mb-4">Loading...</div>
<div class="loading-progress">
<div class="loading-bar"></div>
</div>
</div>
</div>
<div class="mt-4">
<div class="difficulty-label">
<span>Difficulty Level</span>
<span>Advanced</span>
</div>
<div class="difficulty-meter">
<div class="difficulty-level"></div>
</div>
</div>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8">
<div class="content-card rounded-xl p-6 shadow-md col-span-1">
<h2 class="text-2xl font-bold mb-4 text-gray-900 border-b border-gray-200 pb-2">Game Controls</h2>
<div class="grid grid-cols-1 gap-3">
<div class="control-item p-3 mb-3">
<p><span class="control-label">Mouse:</span> <span class="control-action">Point and click to screw/unscrew bolts</span></p>
</div>
<div class="control-item p-3 mb-3">
<p><span class="control-label">Touch:</span> <span class="control-action">Tap to screw/unscrew bolts</span></p>
</div>
<div class="control-item p-3 mb-3">
<p><span class="control-label">Timer:</span> <span class="control-action">Watch the clock and plan your moves</span></p>
</div>
<div class="control-item p-3">
<p><span class="control-label">Power-ups:</span> <span class="control-action">Use special tools when available</span></p>
</div>
</div>
</div>
<div class="content-card rounded-xl p-6 shadow-md col-span-2">
<h2 class="text-2xl font-bold mb-4 text-gray-900 border-b border-gray-200 pb-2">About Today's Game</h2>
<div class="prose max-w-none">
<p class="mb-4">Ever gotten lost in a maze of planks and screws when trying to build an IKEA shelf? Well, Nuts and Bolts Puzzle is like the opposite of that! Instead of frantically trying to assemble stuff, you're gleefully taking everything apart - and the best part is: no confusing instructions required.</p>
<h3 class="text-xl font-bold mt-5 mb-3 text-gray-900">Game Features</h3>
<ul class="list-disc pl-5 mb-4 space-y-2">
<li>Intuitive point-and-click mechanics</li>
<li>Exciting timer challenge</li>
<li>Helpful power-ups and boosters</li>
<li>Hundreds of increasingly challenging levels</li>
<li>Free to play and mobile-friendly</li>
</ul>
<h3 class="text-xl font-bold mt-5 mb-3 text-gray-900">Strategy Tips</h3>
<p class="mb-4">Before making your first move, scan the board to identify essential bolts. Removing the wrong bolt early can block crucial holes with fallen planks. Plan two or three moves ahead, but don't spend too much time - the clock is ticking!</p>
<p>Make use of special tools like the extra hole generator or timer freeze when you're in a tight spot. Look for opportunities to remove bolts that support multiple planks at once, but be careful not to block access to other bolts with fallen wood!</p>
</div>
</div>
</div>
<div class="content-card rounded-xl p-6 shadow-md mb-8">
<h2 class="text-2xl font-bold mb-4 text-gray-900 border-b border-gray-200 pb-2">About Daily Random Game</h2>
<div class="prose max-w-none">
<p class="mb-4">Daily Random Game is a casual gaming platform designed for busy professionals and students. We understand that during intense work and study periods, a fun game can help you relax and relieve stress.</p>
<p class="mb-4">Our unique feature is: <strong>one carefully selected game updated daily</strong>. No need to struggle with choosing which game to play - simply visit our website to experience the day's recommended exciting game.</p>
<p>Whether you need a quick break during lunch or want to change your mood between study sessions, Daily Random Game provides the most convenient gaming experience. Remember to check back every day to see what game we've selected for you!</p>
</div>
</div>
</main>
<footer class="mt-12 text-center text-gray-600 text-sm">
<p>© 2025 randgame.online - All Rights Reserved</p>
<p class="mt-2">Daily Random Game is for entertainment purposes only</p>
</footer>
</div>
<script>
// 添加视差滚动效果
window.addEventListener('scroll', function() {
const scrollY = window.scrollY;
document.getElementById('parallaxBg').style.transform = `translateY(${scrollY * 0.3}px)`;
});
// 初始化游戏时间变量
let gamePlayTime = 0;
// 修复压力表功能
document.addEventListener('DOMContentLoaded', () => {
// 初始压力值
let stressLevel = 80; // 开始时较高
const stressLevelEl = document.querySelector('.stress-level');
if (stressLevelEl) {
stressLevelEl.style.height = `${stressLevel}%`;
}
// 清除之前的计时器
if (window.stressInterval) clearInterval(window.stressInterval);
// 设置新的计时器,随时间降低压力
window.stressInterval = setInterval(() => {
gamePlayTime++;
// 每15秒降低5%的压力,最低到20%
if (gamePlayTime % 15 === 0 && stressLevel > 20) {
stressLevel -= 5;
if (stressLevelEl) {
stressLevelEl.style.height = `${stressLevel}%`;
}
}
}, 1000);
});