-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
1719 lines (1612 loc) · 58.3 KB
/
Copy pathindex.html
File metadata and controls
1719 lines (1612 loc) · 58.3 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="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>💗 心动契合度测试</title>
<style>
:root {
--primary: #ff8fab;
--secondary: #ff6b9d;
--accent: #c77dff;
--bg-gradient-start: #fff0f3;
--bg-gradient-mid: #f3e5f5;
--bg-gradient-end: #e3f2fd;
--card-bg: rgba(255, 255, 255, 0.85);
--text-main: #4a4a4a;
--text-soft: #888;
--heart: #ff6b9d;
--star: #ffd700;
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html, body {
width: 100%;
height: 100%;
min-height: 100vh;
background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-mid), var(--bg-gradient-end));
background-size: 400% 400%;
animation: gradientShift 15s ease infinite;
display: flex;
justify-content: center;
align-items: center;
padding: 10px;
font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
overflow: hidden;
}
@keyframes gradientShift {
0% { background-position: 0% 50%; }
50% { background-position: 100% 50%; }
100% { background-position: 0% 50%; }
}
/* 背景装饰星星 */
.bg-star {
position: fixed;
color: var(--star);
font-size: clamp(12px, 2vw, 18px);
pointer-events: none;
z-index: 0;
animation: twinkle 3s ease-in-out infinite;
opacity: 0.6;
}
@keyframes twinkle {
0%, 100% { opacity: 0.3; transform: scale(1); }
50% { opacity: 0.9; transform: scale(1.3); }
}
/* 背景爱心飘动 */
.floating-heart-bg {
position: fixed;
font-size: clamp(14px, 2.5vw, 20px);
pointer-events: none;
z-index: 0;
animation: heartFloat 8s linear infinite;
opacity: 0.4;
}
@keyframes heartFloat {
0% { transform: translateY(110vh) rotate(0deg); opacity: 0; }
10% { opacity: 0.4; }
90% { opacity: 0.4; }
100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}
/* 核心盒子 */
.box {
background: var(--card-bg);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
width: 100%;
height: 100%;
max-width: 600px;
max-height: 90vh;
padding: 25px 20px;
border-radius: 20px;
box-shadow: 0 8px 32px rgba(255, 107, 157, 0.15), 0 2px 8px rgba(0,0,0,0.05);
position: relative;
z-index: 10;
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
display: none;
flex-direction: column;
overflow: hidden;
border: 1px solid rgba(255, 255, 255, 0.6);
}
.title {
font-size: clamp(22px, 4.5vw, 26px);
margin-bottom: 12px;
text-align: center;
color: var(--secondary);
font-weight: bold;
flex-shrink: 0;
text-shadow: 0 2px 8px rgba(255, 107, 157, 0.2);
letter-spacing: 2px;
}
.progress {
text-align: center;
font-size: clamp(12px, 2.5vw, 13px);
color: var(--text-soft);
margin-bottom: 15px;
flex-shrink: 0;
}
.progress-bar {
width: 100%;
height: 6px;
background: rgba(255, 107, 157, 0.1);
border-radius: 3px;
margin-bottom: 15px;
overflow: hidden;
}
.progress-fill {
height: 100%;
background: linear-gradient(90deg, var(--primary), var(--secondary));
border-radius: 3px;
transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.question {
font-size: clamp(16px, 3.2vw, 18px);
line-height: 1.7;
color: var(--text-main);
min-height: 35px;
margin-bottom: 15px;
flex-shrink: 0;
font-weight: 500;
}
.options {
display: flex;
flex-direction: column;
gap: 12px;
flex: 1;
overflow-y: auto;
padding-right: 5px;
}
.options::-webkit-scrollbar { width: 4px; }
.options::-webkit-scrollbar-thumb {
background: rgba(255, 107, 157, 0.3);
border-radius: 2px;
}
.option {
padding: 14px 16px;
border: 2px solid rgba(255, 107, 157, 0.15);
border-radius: 14px;
cursor: pointer;
font-size: clamp(15px, 2.8vw, 17px);
background: rgba(255, 255, 255, 0.7);
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
line-height: 1.4;
flex-shrink: 0;
min-height: 48px;
display: flex;
align-items: center;
position: relative;
z-index: 2;
color: var(--text-main);
}
.option:hover {
border-color: var(--primary);
background: rgba(255, 143, 175, 0.08);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(255, 107, 157, 0.1);
}
.option.selected {
background: linear-gradient(135deg, rgba(255, 143, 175, 0.2), rgba(199, 125, 255, 0.15));
border-color: var(--secondary);
color: var(--secondary);
font-weight: 600;
box-shadow: 0 2px 8px rgba(255, 107, 157, 0.15);
}
.option.locked {
background: #f8f8f8 !important;
color: #bbb !important;
cursor: not-allowed !important;
border-color: #eee !important;
transform: none !important;
box-shadow: none !important;
}
.option .emoji-prefix {
margin-right: 8px;
font-size: 1.1em;
}
.btn-group {
display: flex;
justify-content: space-between;
margin-top: 15px;
flex-shrink: 0;
gap: 12px;
}
.btn {
padding: 12px 20px;
border: none;
border-radius: 12px;
font-size: clamp(15px, 2.5vw, 17px);
cursor: pointer;
transition: all 0.3s;
flex: 1;
max-width: 130px;
text-align: center;
position: relative;
z-index: 2;
font-weight: 600;
}
.prev-btn {
background: rgba(255, 255, 255, 0.7);
color: var(--text-soft);
border: 2px solid rgba(200, 200, 200, 0.3);
}
.prev-btn:hover {
background: rgba(255, 255, 255, 0.9);
border-color: var(--primary);
color: var(--primary);
}
.next-btn {
background: linear-gradient(135deg, var(--primary), var(--secondary));
color: #fff;
box-shadow: 0 4px 16px rgba(255, 107, 157, 0.3);
}
.next-btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}
.next-btn:active { transform: translateY(0); }
.btn:disabled {
opacity: 0.4;
cursor: not-allowed;
transform: none !important;
}
/* 心跳动画 */
@keyframes heartbeat {
0%, 100% { transform: scale(1); }
14% { transform: scale(1.15); }
28% { transform: scale(1); }
42% { transform: scale(1.12); }
56% { transform: scale(1); }
}
.heartbeat { animation: heartbeat 1.2s ease-in-out infinite; }
/* 抖动 */
@keyframes wiggle {
0%, 100% { transform: rotate(0deg); }
25% { transform: rotate(-3deg); }
75% { transform: rotate(3deg); }
}
.wiggle { animation: wiggle 0.5s ease-in-out infinite; }
/* 弹跳 */
@keyframes bounce {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-10px); }
}
.bounce { animation: bounce 1s ease-in-out infinite; }
/* 漂浮文字(爱心版) */
.float-text {
position: fixed;
color: var(--secondary);
font-weight: bold;
background: rgba(255, 255, 255, 0.8);
padding: 6px 14px;
border-radius: 20px;
pointer-events: none;
z-index: 9999;
white-space: nowrap;
font-size: clamp(14px, 2vw, 16px);
box-shadow: 0 2px 10px rgba(255, 107, 157, 0.2);
backdrop-filter: blur(4px);
}
/* 全覆盖爱心层 */
.love-text {
position: fixed;
color: var(--secondary);
opacity: 0.2;
font-size: clamp(14px, 2.2vw, 18px);
pointer-events: none;
z-index: 99;
white-space: nowrap;
animation: slowFade 3s infinite alternate;
font-weight: 600;
}
@keyframes slowFade {
0% { opacity: 0.1; transform: scale(0.9); }
100% { opacity: 0.3; transform: scale(1.1); }
}
.q25-pink-mask {
position: fixed;
top: 0; left: 0;
width: 100vw; height: 100vh;
background: rgba(255, 200, 220, 0.15);
pointer-events: none;
z-index: 98;
}
/* 全屏甜蜜打字 */
.fullscreen-love {
position: fixed;
top: 0; left: 0;
width: 100vw; height: 100vh;
background: linear-gradient(135deg, #fff0f3, #f8e1f4, #e8f0fe);
z-index: 99999;
padding: 30px;
font-size: clamp(18px, 3.5vw, 22px);
color: var(--secondary);
font-weight: bold;
line-height: 1.8;
white-space: pre-wrap;
overflow: hidden;
text-align: center;
display: flex;
align-items: center;
justify-content: center;
}
/* 名字输入弹窗 */
.name-modal {
position: fixed;
top: 50%; left: 50%;
transform: translate(-50%, -50%);
width: min(92vw, 360px);
background: var(--card-bg);
backdrop-filter: blur(12px);
border: 2px solid rgba(255, 107, 157, 0.3);
border-radius: 20px;
z-index: 9999999;
padding: 30px 25px;
display: flex;
flex-direction: column;
align-items: center;
gap: 18px;
box-shadow: 0 8px 32px rgba(255, 107, 157, 0.2);
}
.name-modal-title {
font-size: clamp(18px, 4vw, 22px);
font-weight: bold;
color: var(--secondary);
text-align: center;
}
.name-input-group {
width: 100%;
display: flex;
flex-direction: column;
gap: 12px;
}
.name-input-group label {
font-size: clamp(13px, 2.5vw, 14px);
color: var(--text-soft);
}
.name-input-group input {
width: 100%;
padding: 12px 16px;
border: 2px solid rgba(255, 107, 157, 0.2);
border-radius: 12px;
font-size: 16px;
background: rgba(255, 255, 255, 0.8);
color: var(--text-main);
transition: border-color 0.3s;
}
.name-input-group input:focus {
outline: none;
border-color: var(--primary);
}
.name-btn {
background: linear-gradient(135deg, var(--primary), var(--secondary));
color: #fff;
border: none;
border-radius: 12px;
padding: 12px 30px;
font-size: clamp(15px, 3vw, 17px);
cursor: pointer;
font-weight: 600;
box-shadow: 0 4px 16px rgba(255, 107, 157, 0.3);
transition: all 0.3s;
}
.name-btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}
/* 开始提示框 */
.start-modal {
position: fixed;
top: 50%; left: 50%;
transform: translate(-50%, -50%);
width: min(90vw, 300px);
background: var(--card-bg);
backdrop-filter: blur(12px);
border: 2px solid rgba(255, 107, 157, 0.3);
border-radius: 20px;
z-index: 999999;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 25px 20px;
gap: 12px;
box-shadow: 0 8px 32px rgba(255, 107, 157, 0.2);
}
.start-text {
font-size: clamp(14px, 2.8vw, 16px);
color: var(--text-main);
line-height: 1.8;
text-align: center;
}
.tiny-tip {
font-size: clamp(10px, 2vw, 11px);
color: var(--primary);
text-align: center;
line-height: 1.4;
margin: 4px 0;
}
.start-btn {
background: linear-gradient(135deg, var(--primary), var(--secondary));
color: #fff;
border: none;
border-radius: 12px;
padding: 10px 24px;
font-size: clamp(14px, 2.5vw, 16px);
cursor: pointer;
font-weight: 600;
box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
transition: all 0.3s;
}
.start-btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 16px rgba(255, 107, 157, 0.4);
}
/* 日记 */
.diary-wrap {
display: none;
width: 100%; height: 100%;
max-width: 600px; max-height: 90vh;
padding: 25px 20px;
border-radius: 20px;
background: var(--card-bg);
backdrop-filter: blur(12px);
box-shadow: 0 8px 32px rgba(255, 107, 157, 0.15);
position: relative;
z-index: 10;
overflow: hidden;
flex-direction: column;
border: 1px solid rgba(255, 255, 255, 0.6);
}
.diary-date {
position: absolute;
top: 15px; left: 20px;
font-size: clamp(12px, 2.5vw, 14px);
color: var(--text-soft);
font-weight: 500;
}
.diary-content {
margin-top: 28px;
line-height: 2.2;
font-size: clamp(14px, 2.7vw, 16px);
color: var(--text-main);
letter-spacing: 1px;
height: calc(100% - 80px);
overflow-y: auto;
padding-bottom: 10px;
}
.diary-content::-webkit-scrollbar { width: 4px; }
.diary-content::-webkit-scrollbar-thumb {
background: rgba(255, 107, 157, 0.3);
border-radius: 2px;
}
.diary-page1, .diary-page2, .diary-page3 {
width: 100%; height: 100%;
display: flex;
flex-direction: column;
}
.diary-page4 {
display: none;
width: 100%; height: 100%;
justify-content: center;
align-items: center;
text-align: center;
padding: 20px 30px;
box-sizing: border-box;
position: absolute;
top: 0; left: 0;
}
.diary-page4 .diary-content {
width: 100%; height: auto;
margin: 0;
font-size: clamp(14px, 3.5vw, 16px);
line-height: 2.2;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.page-next, .page-prev {
position: absolute;
font-size: clamp(20px, 4.5vw, 24px);
cursor: pointer;
color: var(--primary);
z-index: 1;
bottom: 15px;
transition: all 0.3s;
padding: 5px 10px;
}
.page-next:hover, .page-prev:hover {
transform: scale(1.2);
color: var(--secondary);
}
.page-prev { left: 20px; }
.page-next { right: 20px; }
.diary-page2, .diary-page3, .diary-page4 { display: none; }
/* 最终黑屏甜蜜 */
.pink-full-text {
position: fixed;
top: 0; left: 0;
width: 100vw; height: 100vh;
background: linear-gradient(135deg, #fff0f3, #fce4ec, #f3e5f5);
z-index: 99999999;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
color: var(--secondary);
font-size: clamp(22px, 5.5vw, 28px);
font-weight: bold;
gap: 30px;
}
.pink-confirm-btn {
background: linear-gradient(135deg, var(--primary), var(--secondary));
color: #fff;
border: none;
padding: 10px 28px;
border-radius: 14px;
cursor: pointer;
font-size: clamp(13px, 2.5vw, 15px);
font-weight: 600;
box-shadow: 0 4px 16px rgba(255, 107, 157, 0.3);
transition: all 0.3s;
}
.pink-confirm-btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}
.end-modal {
position: fixed;
top: 50%; left: 50%;
transform: translate(-50%, -50%);
background: var(--card-bg);
backdrop-filter: blur(12px);
padding: 35px 30px;
border-radius: 20px;
z-index: 99999999;
text-align: center;
width: min(90vw, 340px);
border: 2px solid rgba(255, 107, 157, 0.3);
box-shadow: 0 8px 32px rgba(255, 107, 157, 0.2);
}
.q16-modal, .submit-modal, .pink-screen {
width: 100vw; height: 100vh;
}
.q16-modal {
position: fixed;
top: 50%; left: 50%;
transform: translate(-50%, -50%);
width: min(90vw, 220px);
height: auto;
background: var(--card-bg);
backdrop-filter: blur(12px);
border: 3px solid var(--primary);
border-radius: 20px;
z-index: 999999;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 20px;
gap: 20px;
box-shadow: 0 8px 32px rgba(255, 107, 157, 0.2);
}
.q16-text {
font-size: clamp(16px, 3.5vw, 18px);
color: var(--secondary);
font-weight: bold;
}
.q16-btn {
background: linear-gradient(135deg, var(--primary), var(--secondary));
color: #fff;
border: none;
border-radius: 12px;
padding: 8px 22px;
font-size: clamp(13px, 2.5vw, 15px);
cursor: pointer;
font-weight: 600;
box-shadow: 0 4px 12px rgba(255, 107, 157, 0.3);
}
.submit-modal {
position: fixed;
top: 0; left: 0;
width: 100vw; height: 100vh;
background: rgba(0, 0, 0, 0.15);
display: flex;
align-items: center;
justify-content: center;
z-index: 999999;
}
.submit-modal-inner {
background: var(--card-bg);
backdrop-filter: blur(12px);
padding: 35px 30px;
border-radius: 20px;
text-align: center;
width: min(90vw, 340px);
border: 2px solid rgba(255, 107, 157, 0.3);
box-shadow: 0 8px 32px rgba(255, 107, 157, 0.2);
box-sizing: border-box;
}
.submit-btn {
padding: 12px 24px;
border: none;
background: linear-gradient(135deg, var(--primary), var(--secondary));
color: #fff;
border-radius: 12px;
cursor: pointer;
margin: 15px 0 8px;
font-size: clamp(15px, 2.5vw, 17px);
transition: all 0.3s;
font-weight: 600;
box-shadow: 0 4px 16px rgba(255, 107, 157, 0.3);
}
.submit-btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(255, 107, 157, 0.4);
}
.refuse-tip {
color: var(--secondary);
font-size: clamp(11px, 2.5vw, 12px);
}
.pink-screen {
position: fixed;
top: 0; left: 0;
width: 100vw; height: 100vh;
background: linear-gradient(135deg, #fff0f3, #fce4ec);
z-index: 9999999;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
color: var(--secondary);
font-size: clamp(18px, 4.5vw, 22px);
font-weight: bold;
text-align: center;
line-height: 1.8;
}
/* 彩虹文字 */
.rainbow-text {
background: linear-gradient(90deg, #ff6b9d, #c77dff, #4ecdc4, #ffd93d, #ff6b9d);
background-size: 200% auto;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
animation: rainbowShift 3s linear infinite;
}
@keyframes rainbowShift {
0% { background-position: 0% 50%; }
100% { background-position: 200% 50%; }
}
/* 气泡效果 */
.bubble {
position: fixed;
border-radius: 50%;
background: rgba(255, 143, 175, 0.2);
pointer-events: none;
z-index: 95;
animation: bubbleRise 6s ease-in infinite;
}
@keyframes bubbleRise {
0% { transform: translateY(100vh) scale(0); opacity: 0; }
20% { opacity: 0.6; }
80% { opacity: 0.6; }
100% { transform: translateY(-10vh) scale(1.5); opacity: 0; }
}
/* 闪光 */
@keyframes sparkle {
0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
50% { opacity: 1; transform: scale(1.2) rotate(180deg); }
}
.sparkle {
position: fixed;
font-size: 20px;
pointer-events: none;
z-index: 96;
animation: sparkle 2s ease-in-out infinite;
}
/* 打字光标 */
.cursor-blink::after {
content: '❤';
animation: blink 1s step-end infinite;
margin-left: 4px;
}
@keyframes blink {
50% { opacity: 0; }
}
</style>
</head>
<body>
<!-- 背景装饰 -->
<div id="bgDecorations"></div>
<!-- 名字输入弹窗 -->
<div class="name-modal" id="nameModal">
<div class="name-modal-title">💗 心动契合度测试</div>
<div style="font-size: 13px; color: #888; text-align: center; line-height: 1.6;">
自定义测试中的角色名字<br>让体验更贴近你的心意 ♡
</div>
<div class="name-input-group">
<label>💌 追求者(测试发起者)</label>
<input type="text" id="loverName" value="小月" placeholder="例如:小月">
</div>
<div class="name-input-group">
<label>🌸 被追求者(测试接收者)</label>
<input type="text" id="belovedName" value="可可" placeholder="例如:可可">
</div>
<button class="name-btn" id="nameBtn">开始测试 ♡</button>
<div class="tiny-tip">默认:小月 × 可可 | 可自由修改</div>
</div>
<!-- 问卷盒子 -->
<div class="box" id="mainBox">
<div class="title" id="mainTitle">💗 心动契合度测试</div>
<div class="progress" id="progress">第 1 题 / 共 30 题</div>
<div class="progress-bar"><div class="progress-fill" id="progressFill" style="width: 3%"></div></div>
<div class="question" id="question"></div>
<div class="options" id="options"></div>
<div class="btn-group">
<button class="btn prev-btn" id="prevBtn">上一题</button>
<button class="btn next-btn" id="nextBtn">下一题</button>
</div>
</div>
<!-- 日记/情书 -->
<div class="diary-wrap" id="diaryWrap">
<div class="diary-page1" id="diaryPage1">
<div class="diary-date" id="diaryDate1">Day 1 🌙</div>
<div class="diary-content" id="diaryContent1"></div>
<div class="page-next" id="toPage2">→</div>
</div>
<div class="diary-page2" id="diaryPage2">
<div class="diary-date" id="diaryDate2">Day 2 💕</div>
<div class="diary-content" id="diaryContent2"></div>
<div class="page-prev" id="toPage1">←</div>
<div class="page-next" id="toPage3">→</div>
</div>
<div class="diary-page3" id="diaryPage3">
<div class="diary-date" id="diaryDate3">Day 3 ♡</div>
<div class="diary-content" id="diaryContent3"></div>
<div class="page-prev" id="toPage2Back">←</div>
<div class="page-next" id="toPage4">→</div>
</div>
<div class="diary-page4" id="diaryPage4">
<div class="diary-content" id="diaryContent4">
<div style="color:#999;">又只有我自己了……</div>
<div style="color:#666;margin:15px 0;">你愿意永远陪着我吗?</div>
<button class="start-btn" id="agreeBtn">我愿意 ♡</button>
</div>
</div>
</div>
<script>
// ═══════════════════════════════════════════════════════
// 通用配置区:修改下面的名字即可自定义角色
// ═══════════════════════════════════════════════════════
let LOVER = "小月";
let BELOVED = "可可";
// 更新名字后动态替换文本中的占位符
function fillText(template) {
return template.replace(/\{lover\}/g, LOVER).replace(/\{beloved\}/g, BELOVED);
}
// 30道心动契合度测试题目
const questions = [
{
q: '1. 当{lover}突然发消息说'想你"时,你会?",
opt: ['A. 心跳加速,马上回超多消息", 'B. 偷偷开心,慢慢回复', "C. 装作淡定,其实已截图保存', "D. 冷漠回应,心里却在放烟花"]
},
{
q: '2. 深夜独处时,你会突然想起{lover}的声音或笑容吗?',
opt: ['A. 经常,连梦里都是", 'B. 偶尔,某个瞬间会闪回', "C. 很少,但想起来会傻笑', "D. 不会承认,但手机壁纸是{lover}"]
},
{
q: '3. 如果{lover}和你说'今天好累",你会?",
opt: ['A. 立刻想要抱抱{lover}", 'B. 想陪{lover}安静地待着', "C. 偷偷心疼但不知道怎么说', 'D. 嘴上说"活该',其实已在查怎么安慰"]
},
{
q: '4. 看到{lover}发的动态/消息,你会反复看几遍?',
opt: ['A. 至少10遍,逐字分析", 'B. 看3-5遍,截图珍藏', "C. 看1-2遍,但会记很久', "D. 假装只看1遍,其实已收藏"]
},
{
q: '5. 路过{lover}喜欢的地方,你会?',
opt: ['A. 立刻拍下来发给{lover}", 'B. 默默想'要是{lover}在就好了"', 'C. 进去逛一圈,假装偶遇", 'D. 面无表情路过,心跳120"]
},
{
q: '6. 睡觉前,你会检查有没有漏回{lover}的消息吗?',
opt: ['A. 反复确认,生怕错过", 'B. 会翻一下聊天记录', "C. 相信{lover}会理解', "D. 假装不在意,实际会醒来看"]
},
{
q: '7. 发呆时,耳边会浮现{lover}对你说过的某句话吗?',
opt: ['A. 经常,像单曲循环", 'B. 偶尔,温柔的某一句', "C. 很少,但想起来很暖', "D. 不承认,但{lover}的名字已刻进DNA"]
},
{
q: '8. 看到{lover}的名字/相关的事物,你会莫名心动?',
opt: ['A. 每次都会心漏跳一拍", 'B. 大多数时候会微笑', "C. 偶尔注意到,会愣一下', 'D. 嘴上说"无感',身体很诚实"]
},
{
q: '9. 手机突然响起,你第一个希望是{lover}的消息吗?',
opt: ['A. 极度期待,每次解锁都先看{lover}", 'B. 有点期待,会心跳加速', "C. 正常反应,谁发都行', "D. 嘴上说无所谓,其实只有{lover}的消息会让你笑"]
},
{
q: '10. 经过空教室/空房间,会想象和{lover}在里面?',
opt: ['A. 不敢想但忍不住想", 'B. 会简单幻想一下', "C. 直接路过,不瞎想', "D. 刻意绕开,因为一想就脸红"]
},
{
q: '11. 你会隐藏自己对{lover}的在意程度吗?',
opt: ['A. 完全隐藏,怕被发现", 'B. 会隐藏一部分,装作无所谓', "C. 完全公开,大大方方喜欢', "D. 无所谓,但{lover}一看穿你就慌"]
},
{
q: '12. 在镜子前,你会想象{lover}眼中的自己吗?',
opt: ['A. 完全不敢想,怕不够好", 'B. 想久会脸红', "C. 正常看看,觉得自己还行', "D. 毫无顾忌,{lover}肯定觉得我最可爱"]
},
{
q: '13. 走夜路时,你希望{lover}突然出现在身后吗?',
opt: ['A. 超级希望,能被{lover}吓一跳也好", 'B. 偶尔幻想{lover}会出现', "C. 不害怕,但{lover}在更好', "D. 嘴上说不用,其实一直在回头看"]
},
{
q: '14. 安静时,会觉得{lover}仿佛在身边陪着你?',
opt: ['A. 经常,感觉{lover}就在旁边", 'B. 偶尔恍惚觉得有{lover}的气息', "C. 没有,但会主动找{lover}', "D. 自我安慰是幻觉,但{lover}的语音已循环100遍"]
},
{
q: '15. 极度安静时,想到{lover}会莫名心慌?',
opt: ['A. 想越久越心动,怕控制不住", 'B. 偶尔心动,会傻笑', "C. 没有任何感觉,很平静', "D. 没有不适感,反而很享受想{lover}的感觉"]
},
{
q: '16. 你会频繁查看{lover}的社交动态,怕错过任何一条?',
opt: ['A. 一直盯着,刷新键快按烂了", 'B. 偶尔会去偷看', "C. 从不,等{lover}主动分享', "D. 无所谓,但{lover}三天没发动态你就慌了"]
},
{
q: '17. 深夜独处时,你会希望{lover}能陪着你吗?',
opt: ['A. 超级渴望,哪怕不说话", 'B. 偶尔会想{lover}在就好了', "C. 完全不需要,自己挺好', "D. 十分抗拒承认,但{lover}一发消息你就秒回"]
},
{
q: '18. 你会反复做同一个和{lover}有关的梦吗?',
opt: ['A. 经常做,醒来舍不得睁眼", 'B. 有过几次,醒来会笑', "C. 很少做梦,{lover}出现是惊喜', "D. 从不做,但睡前会祈祷梦到{lover}"]
},
{
q: '19. 你有没有因为想{lover}而忘记时间、错过饭点?',
opt: ['A. 多次,想{lover}想到天荒地老", 'B. 偶然发生,想着想着就过了', "C. 从未有过,很自律', "D. 记错而已,其实是故意拖到{lover}发消息的时间"]
},
{
q: '20. 如果{lover}深夜突然来找你,你会?',
opt: ['A. 绝对不会开门(因为会激动到晕过去)", 'B. 谨慎试探,然后扑上去', "C. 会正常开门,请{lover}进来', "D. 主动开门,已经准备好零食和毯子"]
},
{
q: '21. 你会故意不秒回{lover},假装自己很忙?',
opt: ['A. 经常这样,怕显得太主动", 'B. 偶尔会,想钓一下{lover}', "C. 几乎不会,看到就回', "D. 从来不会,{lover}的消息优先级最高"]
},
{
q: '22. 看到空白墙面,会想象上面出现{lover}的名字?',
opt: ['A. 看见就想写{lover}的名字", 'B. 偶尔在心里默念', "C. 完全无感,墙就是墙', "D. 习惯在角落写{lover}的名字缩写"]
},
{
q: '23. 短暂失联时,你害怕{lover}在找别人聊天?',
opt: ['A. 十分害怕,会胡思乱想", 'B. 有点担心,{lover}会不会忘了我', "C. 完全不怕,信任{lover}', "D. 期待{lover}在找我,故意不先发消息"]
},
{
q: '24. 醒来的一瞬间,会恍惚以为{lover}在身边?',
opt: ['A. 经常混淆,想抱却发现是枕头", 'B. 偶尔恍惚,伸手去摸手机', "C. 从未混乱,清醒得很', "D. 意识清醒但感官混乱,觉得被子上有{lover}的味道"]
},
{
q: '25. 你相信,{lover}也在某个时刻想着你吗?',
opt: ['A. 完全相信,我们心有灵犀", 'B. 半信半疑,希望是这样', "C. 绝不相信,怕失望', "D. 刻意回避思考,但{lover}的已读就是答案"]
},
{
q: '26. 你会把手机贴身放,怕错过{lover}的任何消息?',
opt: ['A. 时刻随身,洗澡都带进浴室", 'B. 尽量不放远,{lover}的消息不能等', "C. 随意摆放,{lover}会等我的', "D. 经常乱丢,但{lover}一发消息手机会发光"]
},
{
q: '27. 想到{lover}时,会有种强烈的甜蜜窒息感?',
opt: ['A. 极度甜蜜,甜到需要吸氧", 'B. 稍有甜蜜,会深呼吸', "C. 可以适应,正常心动', "D. 完全喜欢,越甜越好"]
},
{
q: '28. 你会反感别人问你和{lover}的关系吗?',
opt: ['A. 极度抵触,{lover}是我的秘密", 'B. 有点反感,不想分享', "C. 可以接受,大方介绍', "D. 乐意分享,{lover}是我最大的骄傲"]
},
{
q: '29. 明明{lover}什么都没做,你却觉得{lover}在撩你?',
opt: ['A. 经常觉得,{lover}呼吸都在撩", 'B. 偶尔敏感,想多了', "C. 神经大条,无感', "D. 从不胡思乱想,但{lover}一个表情你就沦陷"]
},
{
q: '30. 如果{lover}默默记住了你所有喜好、习惯和小动作',
opt: ['A. 极致感动,想马上嫁给{lover}", 'B. 细思极甜,{lover}好用心', "C. 有点暖心,但有点压力', "D. 十分期待,{lover}快行动"]
}
];
let current = 0;
let answers = Array(questions.length).fill(null);
const total = questions.length;
const prevBtn = document.getElementById('prevBtn');
const nextBtn = document.getElementById('nextBtn');
const optionsEl = document.getElementById('options');
const boxEl = document.querySelector('.box');
const mainBox = document.getElementById("mainBox");
const diaryWrap = document.getElementById("diaryWrap");
const diaryPage1 = document.getElementById("diaryPage1");
const diaryPage2 = document.getElementById("diaryPage2");
const diaryPage3 = document.getElementById("diaryPage3");
const diaryPage4 = document.getElementById("diaryPage4");
let fromQ4ToQ5 = false;
let q5Timer = null;
let q25Timer = null;
let q25Elements = [];
let pinkMask = null;
let wrongCount = 0;
let lockSubmitBtn = false;
let q25Locked = false;
let loverInput = null;
let belovedInput = null;
// ═══════════════════════════════════════════════════════
// 辅助函数
// ═══════════════════════════════════════════════════════
function clearAllEffects() {
if (current !== 24) { stopQ25Effect(); }
if (q5Timer) clearTimeout(q5Timer);
document.querySelectorAll('.float-text,.terror-mask,.fullscreen-love,.start-modal,.q16-modal,.submit-modal,.pink-screen,.pink-full-text,.end-modal,.bubble,.sparkle').forEach(el => el.remove());
document.documentElement.style.setProperty('background', '', 'important');
document.body.style.setProperty('background', '', 'important');
boxEl.style.opacity = "1";
prevBtn.disabled = false;
nextBtn.disabled = false;
}
function resetDiary() {
diaryPage1.style.display = "block";
diaryPage2.style.display = "none";
diaryPage3.style.display = "none";
diaryPage4.style.display = "none";
diaryWrap.style.display = "none";
}
function stopQ25Effect() {
if (q25Timer) clearInterval(q25Timer);
q25Elements.forEach(el => { if (el && el.parentNode) el.remove(); });
q25Elements = [];
if (pinkMask && pinkMask.parentNode) pinkMask.remove();
pinkMask = null;
q25Locked = false;
document.querySelectorAll('.option').forEach(opt => {
opt.classList.remove('locked');