Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
1181 lines (1080 loc) · 65.7 KB
/
Copy pathindex.html
File metadata and controls
1181 lines (1080 loc) · 65.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
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">
<title>星际战甲 · 全战甲技能图鉴</title>
<style>
:root{
--bg:#0a0e17; --bg2:#0f1623; --card:#141d2e; --card-hover:#1a2640;
--line:#243049; --txt:#e6edf7; --txt-dim:#8b9bb4; --txt-mute:#5d6b85;
--accent:#36c5f0; --accent2:#7b61ff; --gold:#e0b341;
--pass:#4ad991; --shadow:0 8px 30px rgba(0,0,0,.45);
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
font-family:"Microsoft YaHei","PingFang SC",-apple-system,"Segoe UI",sans-serif;
background:radial-gradient(ellipse at top,#121a2b 0%,var(--bg) 60%);
color:var(--txt);min-height:100vh;line-height:1.6;
}
/* 顶部 */
header{
position:sticky;top:0;z-index:100;
background:rgba(10,14,23,.85);backdrop-filter:blur(14px);
border-bottom:1px solid var(--line);
}
.head-inner{max-width:1280px;margin:0 auto;padding:10px 24px}
.top-toolbar{display:grid;grid-template-columns:max-content auto minmax(180px,1fr) 360px;gap:14px;align-items:center}
.title-row{grid-column:1;display:flex;align-items:center;gap:14px;min-width:0}
h1{font-size:22px;font-weight:800;letter-spacing:1px;white-space:nowrap;
background:linear-gradient(90deg,var(--accent),var(--accent2));
-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.subtitle{font-size:13px;color:var(--txt-dim)}
/* 搜索 */
.search-wrap{grid-column:4;justify-self:end;width:360px;margin-top:0;display:flex;align-items:center;min-width:0}
.search-box{position:relative;flex:none;width:360px;min-width:0;max-width:none}
.search-box svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);
width:18px;height:18px;fill:var(--txt-mute)}
#search{
width:100%;height:38px;padding:0 14px 0 42px;font-size:14px;
background:var(--bg2);border:1px solid var(--line);border-radius:10px;
color:var(--txt);outline:none;transition:.2s;
}
#search:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(54,197,240,.15)}
#search::placeholder{color:var(--txt-mute)}
.filters{grid-column:3;justify-self:center;display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.chip{
padding:7px 12px;font-size:12px;font-weight:700;cursor:pointer;user-select:none;
background:var(--bg2);border:1px solid var(--line);border-radius:20px;
color:var(--txt-dim);transition:.2s;
}
.chip:hover{border-color:var(--accent);color:var(--txt)}
.chip.active{background:linear-gradient(90deg,var(--accent),var(--accent2));
color:#fff;border-color:transparent}
.count-bar{margin-top:10px;font-size:13px;color:var(--txt-mute)}
.count-bar b{color:var(--accent)}
/* 网格 */
main{max-width:1280px;margin:0 auto;padding:24px}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:18px}
.card{
background:var(--card);border:1px solid var(--line);border-radius:16px;
overflow:hidden;cursor:pointer;transition:.25s;display:flex;flex-direction:column;
}
.card:hover{transform:translateY(-4px);border-color:var(--accent);
box-shadow:var(--shadow);background:var(--card-hover)}
.card-img{
position:relative;height:200px;overflow:hidden;
background:radial-gradient(circle at center,#1c2740,#0c1320);
display:flex;align-items:center;justify-content:center;
}
.card-img img{height:185px;width:auto;object-fit:contain;
filter:drop-shadow(0 6px 14px rgba(0,0,0,.5));transition:.3s}
.card:hover .card-img img{transform:scale(1.07)}
.skin-toggle{
position:relative;z-index:1;flex:0 0 auto;
width:58px;height:22px;padding:2px;border-radius:999px;
border:1px solid rgba(255,255,255,.26);background:rgba(6,10,18,.84);
color:var(--txt-mute);font-size:12px;font-weight:900;cursor:pointer;
backdrop-filter:blur(10px);display:grid;grid-template-columns:1fr 1fr;
align-items:center;overflow:hidden;
box-shadow:0 6px 14px rgba(0,0,0,.26),inset 0 0 0 1px rgba(255,255,255,.04);
transition:border-color .18s,background .18s,transform .18s,box-shadow .18s;
}
.skin-toggle::before{
content:"";position:absolute;top:2px;bottom:2px;left:2px;width:calc(50% - 2px);
border-radius:999px;background:linear-gradient(90deg,var(--accent),var(--accent2));
box-shadow:0 4px 12px rgba(54,197,240,.28);transition:transform .18s ease,background .18s ease,box-shadow .18s ease;
}
.skin-toggle[data-skin="normal"]::before{transform:translateX(0)}
.skin-toggle[data-skin="prime"]::before{
transform:translateX(100%);background:linear-gradient(90deg,#d7a832,#f3d98a);
box-shadow:0 4px 12px rgba(224,179,65,.32);
}
.skin-toggle[data-special="umbra"][data-skin="prime"]::before{
background:linear-gradient(90deg,#b9c2cc,#eef3f7);
box-shadow:0 4px 12px rgba(207,216,226,.34),inset 0 0 0 1px rgba(255,255,255,.34);
}
.skin-toggle:hover{border-color:rgba(255,255,255,.46);background:rgba(10,16,28,.9);box-shadow:0 10px 24px rgba(0,0,0,.42),0 0 0 2px rgba(54,197,240,.12)}
.skin-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.skin-option{position:relative;z-index:1;display:grid;place-items:center;width:100%;height:100%;line-height:1;color:var(--txt-mute);transition:color .18s ease}
.skin-toggle[data-skin="normal"] .skin-option-normal,
.skin-toggle[data-skin="prime"] .skin-option-prime{color:#07111c}
.skin-toggle[data-special="umbra"][data-skin="prime"] .skin-option-prime{color:#17212b}
.card-body{padding:14px 16px}
.card-title-row{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:22px}
.card-zh{font-size:18px;font-weight:700}
.card-en{font-size:12px;color:var(--txt-mute);margin-top:2px;letter-spacing:.5px}
/* 弹窗 */
.overlay{
position:fixed;inset:0;z-index:200;background:rgba(5,8,14,.78);
backdrop-filter:blur(6px);display:none;align-items:flex-start;justify-content:center;
padding:40px 20px;overflow-y:auto;
}
.overlay.show{display:flex}
.modal{
width:100%;max-width:760px;background:var(--bg2);border:1px solid var(--line);
border-radius:20px;box-shadow:var(--shadow);animation:pop .25s ease;
}
@keyframes pop{from{opacity:0;transform:translateY(16px) scale(.98)}to{opacity:1;transform:none}}
.modal-head{
display:flex;gap:20px;padding:24px;border-bottom:1px solid var(--line);
align-items:center;background:linear-gradient(135deg,rgba(54,197,240,.08),rgba(123,97,255,.06))
}
.modal-head img{height:120px;width:120px;object-fit:contain;
filter:drop-shadow(0 6px 14px rgba(0,0,0,.5))}
.mh-text{flex:1}
.mh-zh{font-size:26px;font-weight:800}
.mh-en{font-size:14px;color:var(--txt-dim);margin-top:3px;letter-spacing:1px}
.mh-prime{display:inline-block;margin-top:10px;font-size:12px;font-weight:700;
padding:4px 12px;border-radius:8px;background:rgba(224,179,65,.16);
color:var(--gold);border:1px solid rgba(224,179,65,.4)}
.modal-close{
position:absolute;top:24px;right:24px;width:34px;height:34px;border-radius:50%;
background:rgba(255,255,255,.08);border:none;color:var(--txt);font-size:20px;
cursor:pointer;transition:.2s;line-height:1
}
.modal-close:hover{background:rgba(255,255,255,.18);transform:rotate(90deg)}
.abilities{padding:14px 24px 26px}
.ab{display:flex;gap:14px;padding:14px 0;border-bottom:1px solid var(--line)}
.ab:last-child{border-bottom:none}
.ab-label{
flex-shrink:0;width:150px;font-size:14px;font-weight:700;color:var(--accent)
}
.ab.passive .ab-label{color:var(--pass)}
.ab-desc{flex:1;font-size:14px;color:var(--txt);line-height:1.7}
/* 空状态 */
.empty{text-align:center;padding:80px 20px;color:var(--txt-mute)}
.empty-icon{font-size:48px;margin-bottom:14px;opacity:.5}
footer{text-align:center;padding:30px 20px;color:var(--txt-mute);font-size:12px;
border-top:1px solid var(--line);margin-top:20px}
mark{background:rgba(54,197,240,.3);color:#fff;border-radius:3px;padding:0 2px}
@media(max-width:900px){
.top-toolbar{grid-template-columns:1fr;gap:10px}
.title-row,.top-toolbar .view-tabs,.filters,.search-wrap{grid-column:auto;justify-self:stretch}
.filters{justify-content:center}
.search-wrap,.search-box{width:100%}
}
@media(max-width:600px){
.modal-head{flex-direction:column;text-align:center}
.ab{flex-direction:column;gap:4px}.ab-label{width:auto}
h1{font-size:20px;white-space:normal;line-height:1.25}
}
.card-tail{margin-top:8px;min-height:16px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.card-date{font-size:12px;color:var(--txt-dim)}
.image-pair{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--line)}
.image-pair.single{grid-template-columns:1fr}
.image-cell{position:relative;min-height:200px;background:radial-gradient(circle at center,#1c2740,#0c1320);display:flex;align-items:center;justify-content:center;overflow:hidden}
.image-cell img{height:185px;width:auto;max-width:92%;object-fit:contain;filter:drop-shadow(0 6px 14px rgba(0,0,0,.5));transition:.3s}
.card:hover .image-cell img{transform:scale(1.07)}
.image-tag{position:absolute;left:10px;bottom:10px;font-size:11px;font-weight:700;padding:4px 8px;border-radius:8px;background:rgba(10,14,23,.72);color:var(--txt-dim);border:1px solid rgba(255,255,255,.12)}
.modal-release{margin-top:6px;font-size:13px;color:var(--txt-dim)}
.modal-images{display:grid;grid-template-columns:120px 120px;gap:12px;align-items:center;justify-content:center}
.modal-images.single{grid-template-columns:120px}
.modal-imgbox{position:relative;width:120px;height:120px;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.16);border:1px solid rgba(255,255,255,.08);border-radius:14px}
.modal-imgbox img{height:112px;width:112px;object-fit:contain;filter:drop-shadow(0 6px 14px rgba(0,0,0,.5))}
.modal-imgbox span{position:absolute;left:7px;bottom:6px;font-size:10px;color:var(--txt-dim)}
.variant-tabs{display:none;gap:8px;margin:18px 24px 0}
.variant-tabs.show{display:flex}
.variant-tab{
height:28px;padding:0 12px;border-radius:999px;border:1px solid var(--line);
background:rgba(255,255,255,.04);color:var(--txt-dim);font-size:12px;font-weight:700;
cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:.18s
}
.variant-tab.active{color:#07111c;background:linear-gradient(90deg,var(--accent),var(--accent2));border-color:transparent}
.variant-tab[data-variant="umbra"].active{
color:#17212b;
background:linear-gradient(90deg,#b9c2cc,#eef3f7);
border-color:rgba(224,232,240,.66);
box-shadow:0 6px 18px rgba(197,207,218,.28),inset 0 0 0 1px rgba(255,255,255,.34);
}
@media(max-width:640px){.image-pair{grid-template-columns:1fr}.modal-images{grid-template-columns:1fr}}
/* 战甲玩法分类与性能增强 */
.frame-category-wrap{margin-top:12px}
.frame-category-scroll{display:flex;gap:8px;flex-wrap:wrap;align-items:center;padding-bottom:2px}
.frame-chip{
flex:0 0 auto;padding:7px 13px;font-size:12px;font-weight:800;cursor:pointer;user-select:none;
background:var(--bg2);border:1px solid var(--line);border-radius:999px;color:var(--txt-dim);
transition:.18s;white-space:nowrap;
}
.frame-chip:hover{border-color:var(--accent);color:var(--txt)}
.frame-chip.active{background:linear-gradient(90deg,var(--accent),var(--accent2));color:#07111c;border-color:transparent}
.frame-tags{margin-top:10px;display:flex;flex-wrap:wrap;gap:6px;min-height:23px}
.frame-tag{
display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:999px;
border:1px solid rgba(54,197,240,.22);background:rgba(54,197,240,.08);
color:var(--txt-dim);font-size:11px;font-weight:800;line-height:1;white-space:nowrap;
}
.load-more-mods{
display:block;margin:24px auto 0;height:40px;padding:0 22px;border-radius:999px;
border:1px solid var(--line);background:var(--bg2);color:var(--txt);
font-size:13px;font-weight:800;cursor:pointer;transition:.18s;
}
.load-more-mods:hover{border-color:var(--accent);box-shadow:0 0 0 3px rgba(54,197,240,.12)}
.back-to-top{
position:fixed;right:24px;bottom:24px;z-index:180;width:44px;height:44px;border-radius:50%;
border:1px solid rgba(54,197,240,.34);background:rgba(15,22,35,.88);color:var(--txt);
font-size:20px;font-weight:900;cursor:pointer;box-shadow:0 10px 26px rgba(0,0,0,.36);
opacity:0;pointer-events:none;transform:translateY(10px);transition:opacity .18s,transform .18s,border-color .18s,background .18s;
backdrop-filter:blur(10px);
}
.back-to-top.show{opacity:1;pointer-events:auto;transform:translateY(0)}
.back-to-top:hover{border-color:var(--accent);background:rgba(26,38,64,.94)}
.back-to-top:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:640px){
.frame-category-scroll{flex-wrap:nowrap;overflow-x:auto;padding-bottom:8px;scrollbar-width:thin}
.back-to-top{right:16px;bottom:18px;width:46px;height:46px}
}
/* MOD_INTEGRATION_CSS_START */
.view-tabs{margin:0;display:inline-flex;gap:4px;padding:4px;border:1px solid var(--line);border-radius:999px;background:rgba(15,22,35,.72)}
.view-tab{height:32px;padding:0 15px;border:0;border-radius:999px;background:transparent;color:var(--txt-dim);font-size:13px;font-weight:800;cursor:pointer;transition:.18s}
.view-tab:hover{color:var(--txt)}
.view-tab.active{color:#07111c;background:linear-gradient(90deg,var(--accent),var(--accent2));box-shadow:0 6px 18px rgba(54,197,240,.22)}
.mod-category-wrap{margin-top:12px;display:none;position:relative;z-index:30}
.mod-category-wrap.show{display:block}
.mod-category-scroll{display:flex;gap:8px;flex-wrap:nowrap;align-items:flex-start;padding-bottom:2px;overflow:visible}
.mod-category-group{position:relative;flex:0 0 auto}
.mod-category-group::after{content:"";position:absolute;left:0;right:0;top:100%;height:10px}
.mod-chip,.mod-subchip{flex:0 0 auto;padding:7px 13px;font-size:12px;font-weight:800;cursor:pointer;user-select:none;background:var(--bg2);border:1px solid var(--line);border-radius:999px;color:var(--txt-dim);transition:.18s;white-space:nowrap}
.mod-chip:hover,.mod-subchip:hover{border-color:var(--accent);color:var(--txt)}
.mod-chip.active,.mod-subchip.active{background:linear-gradient(90deg,var(--accent),var(--accent2));color:#07111c;border-color:transparent}
.mod-subcategory-menu{position:absolute;left:0;top:calc(100% + 6px);min-width:180px;overflow:visible;padding:8px;display:none;grid-template-rows:repeat(10,max-content);grid-auto-flow:column;grid-auto-columns:minmax(168px,max-content);gap:6px;background:rgba(10,14,23,.96);border:1px solid var(--line);border-radius:12px;box-shadow:0 18px 34px rgba(0,0,0,.36);backdrop-filter:blur(14px);z-index:20}
.mod-category-group:hover .mod-subcategory-menu,.mod-category-group:focus-within .mod-subcategory-menu{display:grid}
.mod-subchip{text-align:left;border-radius:8px;width:100%;background:rgba(15,22,35,.88)}
@media(max-width:900px){.mod-category-scroll{overflow-x:auto;overflow-y:visible;padding-bottom:8px}.mod-subcategory-menu{position:fixed;left:12px;right:12px;top:132px;min-width:auto;grid-auto-columns:minmax(148px,1fr)}}
.mod-card{min-height:360px;padding:0;justify-content:space-between;gap:0}
.mod-card-art{height:260px;background:radial-gradient(circle at center,#1c2740,#0c1320);display:flex;align-items:center;justify-content:center;overflow:hidden;border-bottom:1px solid rgba(255,255,255,.08)}
.mod-card-img{width:auto;height:236px;max-width:82%;object-fit:contain;filter:drop-shadow(0 8px 18px rgba(0,0,0,.52));transition:.25s}
.mod-card:hover .mod-card-img{transform:scale(1.035)}
.mod-card-content{padding:14px 16px 16px;display:flex;flex-direction:column;gap:12px;flex:1;justify-content:space-between}
.mod-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--txt-mute);font-size:12px;font-weight:800}
.mod-rarity{padding:3px 9px;border-radius:999px;background:rgba(224,179,65,.12);color:var(--gold);border:1px solid rgba(224,179,65,.26);white-space:nowrap}
.mod-card-name{font-size:20px;font-weight:850;line-height:1.25;color:var(--txt)}
.mod-card-effect{margin-top:10px;color:var(--txt-dim);font-size:14px;line-height:1.55;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.mod-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid rgba(255,255,255,.08);padding-top:12px;margin-top:auto;color:var(--txt-dim);font-size:12px}
.mod-tax{color:var(--accent);font-weight:850;white-space:nowrap}
.mod-applies{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.modal.mod-mode{max-width:1040px}
.modal.mod-mode .modal-head{display:grid;grid-template-columns:minmax(320px,380px) minmax(0,1fr);gap:28px;align-items:center;padding:26px 28px 28px}
.modal.mod-mode .modal-images.single{grid-template-columns:1fr;justify-content:center;align-self:center}
.modal.mod-mode .modal-imgbox{width:min(34vw,350px);height:520px;border:0;border-radius:0;background:transparent;box-shadow:none}
.modal.mod-mode .modal-imgbox img{width:auto;height:496px;max-width:100%;object-fit:contain;display:block}
.modal.mod-mode .modal-imgbox span{display:none}
.modal.mod-mode .mh-text{min-width:0}
.modal.mod-mode .mh-zh{padding-right:42px}
.modal.mod-mode .mod-details{padding:14px 0 0}
.modal.mod-mode .mod-detail-row{grid-template-columns:96px minmax(0,1fr);gap:12px;padding:10px 0}
.mod-details{padding:14px 24px 26px}
.mod-detail-row{display:grid;grid-template-columns:150px minmax(0,1fr);gap:14px;padding:13px 0;border-bottom:1px solid var(--line);font-size:14px}
.mod-detail-row:last-child{border-bottom:none}
.mod-detail-label{font-weight:800;color:var(--accent)}
.mod-detail-value{color:var(--txt);line-height:1.75;word-break:break-word}
.mod-detail-source{max-height:220px;overflow:auto;padding-right:6px;white-space:pre-line}
@media(max-width:760px){.modal.mod-mode .modal-head{grid-template-columns:1fr;align-items:center}.modal.mod-mode .modal-imgbox{width:270px;height:394px;margin:0 auto}.modal.mod-mode .modal-imgbox img{height:382px}.modal.mod-mode .mh-zh{padding-right:36px}}
@media(max-width:640px){.view-tabs{width:100%;display:grid;grid-template-columns:1fr 1fr}.view-tab{width:100%}.mod-detail-row{grid-template-columns:1fr;gap:4px}.modal.mod-mode .mod-detail-row{grid-template-columns:1fr;gap:4px}}
@media(max-width:520px){
.head-inner{padding:10px 16px}
main{padding:16px}
.top-toolbar{gap:10px}
.filters{overflow-x:auto;flex-wrap:nowrap;justify-content:flex-start;margin-inline:-16px;padding-inline:16px;padding-bottom:6px;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.chip{flex:0 0 auto;min-height:34px}
.frame-category-scroll, .mod-category-scroll{margin-inline:-16px;padding-inline:16px;overflow-x:auto;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:14px}
.card{border-radius:14px}
.card-img{height:178px}
.card-img img{height:164px;max-width:92%}
.image-cell{min-height:176px}
.image-cell img{height:164px}
.card-body,.mod-card-content{padding:12px 14px}
.card-zh{font-size:17px;line-height:1.3}
.mod-card{min-height:0}
.mod-card-art{height:222px}
.mod-card-img{height:204px}
.mod-card-name{font-size:18px}
.mod-card-effect{font-size:13px;line-height:1.5;-webkit-line-clamp:4}
.mod-card-top,.mod-card-bottom{align-items:flex-start;flex-wrap:wrap}
.overlay{padding:10px 8px;align-items:flex-start}
.modal{width:100%;max-height:calc(100dvh - 20px);overflow:auto;max-width:none;border-radius:16px}
.modal-head{padding:18px 16px 16px;gap:14px}
.modal-images{grid-template-columns:repeat(2,minmax(92px,1fr));gap:8px;width:100%;max-width:236px}
.modal-images.single{grid-template-columns:minmax(92px,120px);max-width:120px}
.modal-imgbox{width:100%;height:106px;border-radius:12px}
.modal-imgbox img{width:96px;height:96px}
.modal-imgbox span{font-size:9px;left:6px;bottom:5px}
.mh-zh{font-size:22px;line-height:1.25}
.mh-en{font-size:13px}
.mh-prime{font-size:11px;padding:4px 9px}
.modal-close{top:14px;right:14px;width:36px;height:36px}
.variant-tabs{margin:12px 16px 0;overflow-x:auto;padding-bottom:2px}
.abilities{padding:10px 16px 18px}
.ab{padding:12px 0}
.ab-desc{font-size:14px;line-height:1.65}
.modal.mod-mode .modal-head{grid-template-columns:1fr;gap:14px;padding:18px 16px 20px}
.modal.mod-mode .modal-images.single{max-width:none}
.modal.mod-mode .modal-imgbox{width:min(70vw,220px);height:310px;margin:0 auto}
.modal.mod-mode .modal-imgbox img{height:300px;max-width:100%}
.modal.mod-mode .mh-zh{padding-right:36px;font-size:23px}
.modal.mod-mode .mod-details{padding-top:8px}
.modal.mod-mode .mod-detail-row{padding:9px 0}
}
/* MOD_INTEGRATION_CSS_END */
</style>
</head>
<body>
<header>
<div class="head-inner">
<div class="top-toolbar">
<div class="title-row">
<h1>星际战甲·图鉴</h1>
</div>
<!-- MOD_INTEGRATION_HEADER_START -->
<div class="view-tabs" role="tablist" aria-label="图鉴视图">
<button class="view-tab active" id="viewFrames" type="button" data-mode="frames" role="tab" aria-selected="true">战甲</button>
<button class="view-tab" id="viewMods" type="button" data-mode="mods" role="tab" aria-selected="false">MOD</button>
</div>
<!-- MOD_INTEGRATION_HEADER_END -->
<div class="filters">
<span class="chip active" data-filter="all">全部</span>
<span class="chip" data-filter="prime">有圣装</span>
<span class="chip" data-filter="noprime">无圣装</span>
</div>
<div class="search-wrap">
<div class="search-box">
<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27a6.5 6.5 0 1 0-.7.7l.27.28v.79l5 5 1.5-1.5-5-5zm-6 0A4.5 4.5 0 1 1 14 9.5 4.5 4.5 0 0 1 9.5 14z"/></svg>
<input id="search" type="text" placeholder="搜索战甲名称、技能或描述(支持中英文)…" autocomplete="off">
</div>
</div>
</div>
<div class="count-bar">共 <b id="total">0</b> 个战甲 · 当前显示 <b id="shown">0</b> 个</div>
<div class="frame-category-wrap" id="frameCategoryWrap" aria-label="战甲玩法分类">
<div class="frame-category-scroll" id="frameCategories"></div>
</div>
<!-- MOD_INTEGRATION_CATEGORY_START -->
<div class="mod-category-wrap" id="modCategoryWrap" aria-label="MOD分类">
<div class="mod-category-scroll" id="modCategories"></div>
</div>
<!-- MOD_INTEGRATION_CATEGORY_END -->
</div>
</header>
<main>
<div class="grid" id="grid"></div>
<div class="empty" id="empty" style="display:none">
<div class="empty-icon">🔍</div>
<div>没有找到匹配的战甲,换个关键词试试吧</div>
</div>
</main>
<footer>
数据来源:Warframe 官方维基 / huijiwiki 国服名称对照 · 形象图 © Digital Extremes(WFCD 开源数据集)<br>
本页为粉丝向技能速查工具,仅供学习参考
</footer>
<button class="back-to-top" id="backToTop" type="button" aria-label="回到顶部" title="回到顶部">↑</button>
<div class="overlay" id="overlay">
<div class="modal" id="modal" style="position:relative">
<button class="modal-close" id="closeBtn">×</button>
<div class="modal-head">
<div id="mImageWrap" class="modal-images single"><div class="modal-imgbox"><img id="mImg" src="" alt=""><span>普通甲</span></div><div id="mPrimeImgBox" class="modal-imgbox" style="display:none"><img id="mPrimeImg" src="" alt=""><span>圣装</span></div></div>
<div class="mh-text" id="mTextPanel">
<div class="mh-zh" id="mZh"></div>
<div class="mh-en" id="mEn"></div>
<div class="modal-release" id="mRelease"></div>
<span class="mh-prime" id="mPrime" style="display:none">⭐ 拥有圣装(Prime)版本</span>
</div>
</div>
<div class="variant-tabs" id="mVariantTabs">
<button class="variant-tab active" type="button" data-variant="normal">普通圣剑</button>
<button class="variant-tab" type="button" data-variant="umbra">暗影圣剑</button>
</div>
<div class="abilities" id="mAbilities"></div>
</div>
</div>
<script src="data/frames-data.js"></script>
<script>
const DATA = window.DATA || [];
let curFilter = 'all';
let curKeyword = '';
let curFrameCategory = 'all';
const FRAME_CATEGORIES = ['跑图','间谍','地图炮','钢铁','增伤','生存/续航','控场','辅助','刷资源','召唤/分身','新手友好'];
const FRAME_CATEGORY_ALIASES = {
'跑图':['paotu','speed','speedrun','速刷','赶路','机动','移动','跑酷','快速任务'],
'间谍':['jiandie','spy','潜入','隐身','解密','金库','vault'],
'地图炮':['ditupao','nuke','nuker','aoe','清图','范围伤害','大范围','歼灭'],
'钢铁':['gangtie','steel','steelpath','钢铁之路','高难','生存力','护甲削弱','破甲'],
'增伤':['zengshang','buff','damagebuff','易伤','增幅','加伤','武器增伤','团队增益'],
'生存/续航':['shengcun','xuhang','tank','坦度','回血','减伤','护盾','无敌','保命'],
'控场':['kongchang','cc','控制','聚怪','减速','致盲','睡眠','拉怪'],
'辅助':['fuzhu','support','治疗','回能','护盾门','团队','光环','支援'],
'刷资源':['shuaziyuan','farm','loot','掉落','资源','摸尸','开箱'],
'召唤/分身':['zhaohuan','fenshen','summon','clone','宠物','分身','召唤物','诱饵'],
'新手友好':['xinshou','beginner','starter','入门','萌新','低门槛','易上手']
};
const FRAME_TAGS = {
'Ash':['间谍','钢铁'],
'Ember':['地图炮','钢铁','控场','新手友好'],
'Excalibur':['新手友好','钢铁','生存/续航'],
'Loki':['跑图','间谍','控场'],
'Mag':['地图炮','钢铁','控场','新手友好'],
'Rhino':['钢铁','增伤','生存/续航','新手友好'],
'Trinity':['辅助','生存/续航','钢铁'],
'Volt':['跑图','地图炮','增伤','辅助','新手友好'],
'Frost':['控场','辅助','钢铁','新手友好'],
'Nyx':['控场','钢铁'],
'Banshee':['增伤','控场','钢铁'],
'Saryn':['地图炮','钢铁'],
'Vauban':['控场','地图炮','钢铁'],
'Nova':['跑图','控场','增伤','辅助','钢铁'],
'Nekros':['刷资源','生存/续航','钢铁','召唤/分身'],
'Valkyr':['生存/续航','钢铁'],
'Oberon':['辅助','生存/续航','控场'],
'Zephyr':['跑图','钢铁','生存/续航','控场'],
'Hydroid':['刷资源','控场','地图炮','钢铁'],
'Mirage':['地图炮','增伤','钢铁'],
'Limbo':['间谍','控场','辅助'],
'Mesa':['地图炮','钢铁'],
'Chroma':['增伤','钢铁','生存/续航'],
'Equinox':['地图炮','辅助','控场'],
'Atlas':['钢铁','生存/续航','控场'],
'Wukong':['跑图','间谍','生存/续航','召唤/分身','新手友好','钢铁'],
'Ivara':['间谍','钢铁','增伤'],
'Nezha':['跑图','生存/续航','辅助','钢铁','新手友好'],
'Inaros':['生存/续航','新手友好'],
'Titania':['跑图','间谍','钢铁'],
'Nidus':['生存/续航','钢铁','控场'],
'Octavia':['钢铁','增伤','辅助','生存/续航','召唤/分身'],
'Harrow':['增伤','辅助','生存/续航','钢铁'],
'Gara':['钢铁','生存/续航','地图炮','控场'],
'Khora':['刷资源','控场','地图炮','钢铁','召唤/分身'],
'Revenant':['生存/续航','钢铁','新手友好','控场'],
'Garuda':['钢铁','生存/续航','地图炮'],
'Baruuk':['钢铁','生存/续航','地图炮'],
'Hildryn':['生存/续航','钢铁','辅助','控场'],
'Wisp':['辅助','增伤','生存/续航','跑图','钢铁'],
'Gauss':['跑图','地图炮','生存/续航','钢铁'],
'Grendel':['生存/续航','钢铁','辅助'],
'Protea':['辅助','地图炮','生存/续航','钢铁'],
'Xaku':['地图炮','钢铁','控场'],
'Lavos':['钢铁','地图炮','生存/续航'],
'Sevagoth':['钢铁','生存/续航','控场','召唤/分身'],
'Yareli':['跑图','生存/续航','控场'],
'Caliban':['钢铁','控场','召唤/分身'],
'Gyre':['地图炮','钢铁'],
'Styanax':['辅助','增伤','钢铁','地图炮'],
'Voruna':['跑图','钢铁','生存/续航','刷资源'],
'Citrine':['辅助','生存/续航','增伤','控场','钢铁'],
'Kullervo':['增伤','钢铁','地图炮','生存/续航'],
'Dagath':['增伤','地图炮','钢铁'],
'Qorvex':['生存/续航','控场','地图炮','钢铁'],
'Dante':['辅助','生存/续航','地图炮','钢铁'],
'Jade':['辅助','增伤','地图炮','钢铁'],
'Koumei':['辅助','控场','生存/续航'],
'Cyte-09':['增伤','间谍','钢铁','生存/续航'],
'Temple':['增伤','地图炮','辅助','生存/续航'],
'Oraxia':['跑图','控场','增伤','生存/续航','钢铁'],
'Nokko':['辅助','控场','生存/续航','地图炮'],
'Uriel':['召唤/分身','生存/续航','地图炮','增伤'],
'Follie':['控场','生存/续航','地图炮'],
'Sirius & Orion':['辅助','控场','地图炮','生存/续航','召唤/分身']
};
const FRAME_SEARCH_ALIASES = {
'Ash':['huijinzhiren','hjzr','灰烬','烟幕','隐身','刺杀'],
'Ember':['yonghenglieyan','yhly','火鸡','火女','火焰','热能'],
'Excalibur':['shengjian','sj','咖喱','圣剑','umbra','暗影','暗影圣剑','angang','excaliburumbra'],
'Loki':['xieshenluoji','xslj','洛基','隐身','诱饵','spy'],
'Mag':['cili','cl','磁妹','磁力','护盾剥离','magnetize'],
'Rhino':['kuangyexiniu','kyxn','犀牛','牛','roar','吼牛','铁皮','增伤'],
'Trinity':['sanweiyiti','swyt','奶妈','回蓝','祝福','能量'],
'Volt':['fute','ft','电男','电队','speed','加速','跑图','eidolon'],
'Frost':['bingxuehanshuang','bxhs','冰男','罩子','雪花球','防守'],
'Nyx':['mingheyeshen','mhys','混乱','精神控制','吸收'],
'Banshee':['tongkunvyao','tkny','女妖','sonar','弱点','沉默','增伤'],
'Saryn':['juduzhichu','jdzc','毒妈','毒女','spores','miasma','nuke','nuker','清图','地图炮','ditupao'],
'Vauban':['gongchengtongshuai','gcts','工程','黑洞','聚怪','堡垒'],
'Nova':['chaonengxinxing','cnxx','加速娃','减速娃','分子填充','传送门'],
'Nekros':['yuhunzhuzai','yhzz','摸尸','死灵','刷资源','掉落'],
'Valkyr':['waerkeli','welk','女武神','狂化','无敌','近战'],
'Oberon':['longwangaobo','lwab','奶爸','草地','辐射','治疗'],
'Zephyr':['kuangxiaoxifeng','kxxf','鸟姐','龙卷风','飞行','气流'],
'Hydroid':['jingtaohailang','jthl','水男','触手','刷资源','海盗'],
'Mirage':['meiyingjingling','myjl','小丑','分身','日蚀','棱镜'],
'Limbo':['lingboyu','lby','小明','裂隙','间谍','放逐'],
'Mesa':['shengqiangmisa','sqms','女枪','peacemaker','和平使者','地图炮','ditupao'],
'Chroma':['nuyanlongqi','nylq','龙甲','vexarmor','怨怒护甲','增伤'],
'Equinox':['yinyangshuangzi','yysz','阴阳','睡眠','maim','昼夜'],
'Atlas':['hantianxingzhe','htxz','石头','拳头','石化'],
'Wukong':['qitiandasheng','qtds','猴子','云walker','筋斗云','间谍','分身'],
'Ivara':['shengongyouxia','sgyx','弓妹','prowl','infiltrate','潜行','间谍','jiandie','spy'],
'Nezha':['nezhāsantaizi','nezh sanzitaizi','nzstz','哪吒','风火轮','混天火绫','跑图'],
'Inaros':['shahainutao','shnt','沙甲','血牛','沙暴'],
'Titania':['huandiexianling','hdxl','蝶妹','妖精','剃刀蝶','跑图','间谍'],
'Nidus':['yibianzhichao','ybzc','蛆甲','感染','聚怪','不死'],
'Octavia':['yinyougezhe','yygz','dj','音乐甲','隐身','增伤'],
'Harrow':['qumoshizhe','qmsz','主教','暴击','回蓝','锁链'],
'Gara':['liulishinv','llsn','玻璃甲','玻璃','护墙'],
'Khora':['huangyelieshou','hyls','猫甲','猫女','鞭笞','刷资源','穹顶'],
'Revenant':['paihuaiyeling','phyl','夜灵甲','催眠外皮','不死','新手'],
'Garuda':['jialouluo','jll','血妈','血女','祭坛','流血'],
'Baruuk':['shengquanwuseng','sqws','武僧','拳','宁静风暴'],
'Hildryn':['zhongzhuangwushen','zzws','盾女','护盾','剥甲'],
'Wisp':['lihuohuanling','lhhl','花甲','wisp花','reservoirs','花','攻速','回血','传送'],
'Gauss':['xundianchiying','xdcy','高斯','极速','跑图','热能抽离'],
'Grendel':['baoshizhe','bsz','肉球','吞噬','胃甲'],
'Protea':['boshilingxie','bslx','工程妹','炮台','补给','回溯'],
'Xaku':['xukongcanxiang','xkcx','骨甲','虚空','缴械','偷枪'],
'Lavos':['wuxianshushi','wxss','炼金','药剂','元素'],
'Sevagoth':['xumingguiying','xmgy','船员','影子','幽影','死神'],
'Yareli':['yonglangzhiling','ylzl','水妹','滑板','kdrive'],
'Caliban':['kaliban','klb','卡利班','sentient','融合打击','破甲'],
'Gyre':['dianguangwuzhe','dgwz','电女','连锁电','暴击'],
'Styanax':['wuweidoushi','wwds','斯巴达','标枪','回能','超量护盾'],
'Voruna':['chiyinglangmu','cylm','狼甲','狼妈','隐身','状态'],
'Citrine':['huiguangjingling','hgjl','水晶','晶甲','减伤','暴击水晶'],
'Kullervo':['daofengqiutu','dfqt','刀男','近战','暴怒突进','集体诅咒'],
'Dagath':['wumianqiying','wmqy','无脸','马甲','厄运','doom'],
'Qorvex':['funengbaolei','fnbl','混凝土','辐射','堡垒'],
'Dante':['shanxieshi','sxs','书甲','超量护盾','法典','诗篇'],
'Jade':['shengtianshi','sts','天使','审判','飞行','光环'],
'Koumei':['yumingzhiji','ymzj','骰子','御神签','法令'],
'Cyte-09':['kunxi','kx','昆西','狙击','弱点','隐身'],
'Temple':['chiyankuangge','cykg','吉他','火焰','暴击','摇滚'],
'Oraxia':['fuyingzhuhou','fyzh','蜘蛛','蛛后','蛛丝','毒素'],
'Nokko':['zhenjunjiaoxia','zjjx','真菌','蘑菇','睡眠','回能'],
'Uriel':['lianyushitu','lyst','炼狱','恶魔','火焰','召唤'],
'Follie':['kuangmo','km','墨水','气球','绘影','控场'],
'Sirius & Orion':['xilisiyuaoliang','xlsyaol','双子','切换','复活','黑洞']
};
const grid = document.getElementById('grid');
const emptyEl = document.getElementById('empty');
let totalEl = document.getElementById('total');
let shownEl = document.getElementById('shown');
totalEl.textContent = DATA.length;
/* MOD_INTEGRATION_JS_START */
let MOD_DATA = [];
let modDataLoaded = false;
let modDataLoading = null;
const MOD_DATA_SCRIPT = 'data/mods-data.js';
function getModTotalCount(){
if(modDataLoaded) return MOD_DATA.length;
if(typeof MOD_CATEGORY_GROUPS === 'undefined') return MOD_DATA.length;
return MOD_CATEGORY_GROUPS.reduce((sum,group)=>sum+(Number(group.count)||0),0);
}
function showModLoading(){
clearLoadMoreMods();
totalEl.textContent = getModTotalCount();
shownEl.textContent = 0;
grid.innerHTML = '';
emptyEl.style.display = 'block';
emptyEl.innerHTML = '<div class="empty-icon">...</div><div>正在加载 MOD 数据,首次打开需要一点时间</div>';
}
function showModLoadError(error){
clearLoadMoreMods();
grid.innerHTML = '';
emptyEl.style.display = 'block';
emptyEl.innerHTML = '<div class="empty-icon">!</div><div>MOD 数据加载失败,请刷新后重试</div>';
console.error(error);
}
function ensureModData(){
if(modDataLoaded) return Promise.resolve(MOD_DATA);
if(modDataLoading) return modDataLoading;
showModLoading();
modDataLoading = new Promise((resolve,reject)=>{
const script = document.createElement('script');
script.src = MOD_DATA_SCRIPT;
script.async = true;
script.onload = ()=>{
MOD_DATA = Array.isArray(window.MOD_DATA) ? window.MOD_DATA : [];
modDataLoaded = true;
modDataLoading = null;
renderModCategories();
resolve(MOD_DATA);
};
script.onerror = ()=>{
modDataLoading = null;
reject(new Error('Failed to load '+MOD_DATA_SCRIPT));
};
document.head.appendChild(script);
});
return modDataLoading;
}
const MOD_CATEGORIES = ["战甲 MOD","主武器 MOD","副武器 MOD","近战 MOD","架势 MOD","同伴 MOD","航道星舰 MOD","殁世机甲 MOD","其他 MOD"];
let appMode = 'frames';
let curModCategory = 'all';
let curModSubcategory = 'all';
const searchInput = document.getElementById('search');
const frameFilters = document.querySelector('.filters');
const modCategoryWrap = document.getElementById('modCategoryWrap');
const modCategoriesEl = document.getElementById('modCategories');
const frameCategoryWrap = document.getElementById('frameCategoryWrap');
const frameCategoriesEl = document.getElementById('frameCategories');
function normalizeQuery(text){
return String(text||'').toLowerCase().replace(/[^0-9a-z\u4e00-\u9fff]+/g,'');
}
function compactAscii(text){
return String(text||'').toLowerCase().replace(/[^0-9a-z]+/g,'');
}
function isSubsequence(needle, haystack){
if(!needle) return true;
let j=0;
for(let i=0;i<haystack.length && j<needle.length;i++) if(haystack[i]===needle[j]) j++;
return j===needle.length;
}
function editDistanceWithin(a,b,limit){
if(!a||!b||Math.abs(a.length-b.length)>limit) return false;
const prev = Array.from({length:b.length+1},(_,i)=>i);
for(let i=1;i<=a.length;i++){
let left=i, diag=i-1;
let rowMin=left;
for(let j=1;j<=b.length;j++){
const old=prev[j];
const cost=a[i-1]===b[j-1]?0:1;
const val=Math.min(prev[j]+1,left+1,diag+cost);
prev[j]=val; left=val; diag=old; rowMin=Math.min(rowMin,val);
}
if(rowMin>limit) return false;
}
return prev[b.length]<=limit;
}
function modScore(m,kw){
if(curModCategory!=='all' && m.category!==curModCategory) return 9999;
if(curModSubcategory!=='all' && m.subcategory!==curModSubcategory) return 9999;
if(!kw) return 10;
const raw = String(kw||'').trim().toLowerCase();
const q = normalizeQuery(raw);
const qa = compactAscii(raw);
const name = m.nameKey || normalizeQuery(m.name);
const en = m.enKey || compactAscii(m.en);
const py = m.pinyin || '';
const initials = m.initials || '';
if(q===name || (qa && (qa===en || qa===py || qa===initials))) return 0;
if((q && name.includes(q)) || (qa && (en.includes(qa) || py.includes(qa) || initials.includes(qa)))) return 1;
const terms = raw.split(/\s+/).filter(Boolean).map(normalizeQuery);
if(terms.length && terms.every(term=>m.textKey.includes(term) || en.includes(term) || py.includes(term) || initials.includes(term))) return 2;
if(q.length>=2 && /[\u4e00-\u9fff]/.test(q) && isSubsequence(q, m.briefKey || name)) return 3;
const limit = q.length<=4 ? 1 : 2;
if(q && /[\u4e00-\u9fff]/.test(q) && editDistanceWithin(q,name,limit)) return 4;
if(qa && (editDistanceWithin(qa,en,limit) || editDistanceWithin(qa,py,limit))) return 4;
return 9999;
}
function modMatches(m,kw){
return modScore(m,kw)<9999;
}
function renderModCategories(){
const allCount = getModTotalCount();
const allActive = curModCategory==='all';
modCategoriesEl.innerHTML = [`<div class="mod-category-group"><button class="mod-chip ${allActive?'active':''}" type="button" data-cat="all" data-subcat="all">全部 ${allCount}</button></div>`]
.concat(MOD_CATEGORY_GROUPS.map(group=>{
const cat = group.name;
const mainActive = curModCategory===cat && curModSubcategory==='all';
const subItems = group.subcategories.map(sub=>{
const subActive = curModCategory===cat && curModSubcategory===sub.name;
return `<button class="mod-subchip ${subActive?'active':''}" type="button" data-cat="${esc(cat)}" data-subcat="${esc(sub.name)}">${esc(sub.name)} ${sub.count}</button>`;
}).join('');
return `<div class="mod-category-group"><button class="mod-chip ${mainActive?'active':''}" type="button" data-cat="${esc(cat)}" data-subcat="all">${esc(cat.replace(' MOD',''))} ${group.count}</button><div class="mod-subcategory-menu">${subItems}</div></div>`;
})).join('');
}
function renderFrameCategories(){
const allCount = DATA.length;
frameCategoriesEl.innerHTML = [`<button class="frame-chip ${curFrameCategory==='all'?'active':''}" type="button" data-cat="all">全部 ${allCount}</button>`]
.concat(FRAME_CATEGORIES.map(cat=>{
const count = DATA.filter(f=>getFrameTags(f).includes(cat)).length;
return `<button class="frame-chip ${curFrameCategory===cat?'active':''}" type="button" data-cat="${esc(cat)}">${esc(cat)} ${count}</button>`;
})).join('');
}
const MOD_CATEGORY_GROUPS = [{"name":"战甲 MOD","count":427,"subcategories":[{"name":"战甲","count":165},{"name":"光环","count":36},{"name":"伏特","count":6},{"name":"哪咤三太子","count":6},{"name":"圣剑","count":6},{"name":"惊涛骇浪","count":6},{"name":"撼天刑者","count":6},{"name":"灰烬之刃","count":6},{"name":"瓦尔基里","count":6},{"name":"磁力","count":6},{"name":"邪神洛基","count":6},{"name":"冥河夜神","count":5},{"name":"冰雪寒霜","count":5},{"name":"异变之巢","count":5},{"name":"御魂主宰","count":5},{"name":"怒炎龙骑","count":5},{"name":"恸哭女妖","count":5},{"name":"永恒烈焰","count":5},{"name":"狂啸西风","count":5},{"name":"神弓游侠","count":5},{"name":"超能新星","count":5},{"name":"阴阳双子","count":5},{"name":"龙王奥伯","count":5},{"name":"三位一体","count":4},{"name":"剧毒之触","count":4},{"name":"圣枪弥撒","count":4},{"name":"幻蝶仙灵","count":4},{"name":"暴食者","count":4},{"name":"沙海怒涛","count":4},{"name":"狂野犀牛","count":4},{"name":"电光舞者","count":4},{"name":"魅影精灵","count":4},{"name":"咏浪之灵","count":3},{"name":"圣拳武僧","count":3},{"name":"工程统帅","count":3},{"name":"徘徊夜灵","count":3},{"name":"无畏斗士","count":3},{"name":"无限术士","count":3},{"name":"泊时灵械","count":3},{"name":"灵薄狱","count":3},{"name":"琉璃仕女","count":3},{"name":"离火幻灵","count":3},{"name":"荒野猎手","count":3},{"name":"虚空残响","count":3},{"name":"迦楼罗","count":3},{"name":"重装武神","count":3},{"name":"驱魔使者","count":3},{"name":"齐天大圣","count":3},{"name":"刀锋囚徒","count":2},{"name":"吟游歌者","count":2},{"name":"御命织姬","count":2},{"name":"未细分","count":2},{"name":"灭骸之刃","count":2},{"name":"虚冥鬼影","count":2},{"name":"赤影狼母","count":2},{"name":"辉光晶灵","count":2},{"name":"辐能堡垒","count":2},{"name":"迅电驰影","count":2},{"name":"近战","count":2},{"name":"卡利班","count":1},{"name":"圣天使","count":1},{"name":"无面骑影","count":1},{"name":"暗影圣剑","count":1},{"name":"缮写士","count":1},{"name":"阴影","count":1}]},{"name":"主武器 MOD","count":306,"subcategories":[{"name":"步枪","count":97},{"name":"突击步枪","count":14},{"name":"霰弹枪","count":107},{"name":"狙击步枪","count":12},{"name":"弓箭","count":6},{"name":"主要武器","count":10},{"name":"鳄神","count":3},{"name":"大久和弓","count":2},{"name":"征服榴炮","count":2},{"name":"潘塔","count":2},{"name":"特拉","count":2},{"name":"狂鲨","count":2},{"name":"米特尔","count":2},{"name":"苏普拉","count":2},{"name":"葛恩火枪","count":2},{"name":"葛拉卡达","count":2},{"name":"蛇发女妖","count":2},{"name":"金工火神","count":2},{"name":"伯斯顿","count":1},{"name":"兰卡","count":1},{"name":"冷冻光束步枪","count":1},{"name":"哈帕克","count":1},{"name":"圣装伯斯顿","count":1},{"name":"圣装帕里斯","count":1},{"name":"圣装月神","count":1},{"name":"孢丝感染枪","count":1},{"name":"安柏勒斯","count":1},{"name":"导热聚焦枪","count":1},{"name":"巴什穆","count":1},{"name":"席尔火枪","count":1},{"name":"席芭莉丝","count":1},{"name":"异融量子枪","count":1},{"name":"德特昂","count":1},{"name":"恐惧","count":1},{"name":"拉特昂","count":1},{"name":"晴日伞","count":1},{"name":"未细分","count":1},{"name":"步枪(无范围效果)","count":1},{"name":"武使之力","count":1},{"name":"氩格纳克","count":1},{"name":"海克","count":1},{"name":"燃焰标枪","count":1},{"name":"独特","count":1},{"name":"猎豹","count":1},{"name":"猛虎","count":1},{"name":"绝路","count":1},{"name":"血肢","count":1},{"name":"觉醒双枪","count":1},{"name":"通量步枪","count":1},{"name":"重力奇点拟成枪","count":1},{"name":"雌鹿","count":1},{"name":"食人女魔","count":1},{"name":"龙骑兵","count":1}]},{"name":"副武器 MOD","count":150,"subcategories":[{"name":"手枪","count":119},{"name":"典籍","count":8},{"name":"蝰蛇","count":2},{"name":"光谱切割器","count":1},{"name":"圣装史提托双枪","count":1},{"name":"圣装野马双枪","count":1},{"name":"夜语者 77","count":1},{"name":"安柏勒斯","count":1},{"name":"布里斯提卡","count":1},{"name":"异化者","count":1},{"name":"手枪(无范围效果)","count":1},{"name":"投掷","count":1},{"name":"玛瑞火枪","count":1},{"name":"盗贼","count":1},{"name":"绝望","count":1},{"name":"苦无","count":1},{"name":"螺钉手枪","count":1},{"name":"视使之触","count":1},{"name":"逐电","count":1},{"name":"野马","count":1},{"name":"阿克里德","count":1},{"name":"阿索代","count":1},{"name":"静电能量导引枪","count":1},{"name":"麦格努斯","count":1}]},{"name":"近战 MOD","count":153,"subcategories":[{"name":"近战","count":119},{"name":"投掷型近战","count":11},{"name":"匕首","count":2},{"name":"锐卡斯","count":2},{"name":"双匕首","count":1},{"name":"双子巴萨克","count":1},{"name":"喷射战锤","count":1},{"name":"天薙刀","count":1},{"name":"奥比克斯","count":1},{"name":"席瓦 & 神盾","count":1},{"name":"弗拉克斯","count":1},{"name":"憎恨","count":1},{"name":"斩肉双刀","count":1},{"name":"普罗沃","count":1},{"name":"暗黑匕首","count":1},{"name":"空刃","count":1},{"name":"米尔","count":1},{"name":"红隼","count":1},{"name":"脉纹","count":1},{"name":"蛇颚刀","count":1},{"name":"认知 & 冲击","count":1},{"name":"长柄武器","count":1},{"name":"鞭","count":1}]},{"name":"架势 MOD","count":95,"subcategories":[{"name":"利爪","count":6},{"name":"剑","count":5},{"name":"侍刃","count":4},{"name":"匕首","count":4},{"name":"双剑","count":4},{"name":"双匕首","count":4},{"name":"双爪","count":4},{"name":"巨刃","count":4},{"name":"拳套","count":4},{"name":"长柄武器","count":4},{"name":"剑盾","count":3},{"name":"战刃","count":3},{"name":"拐刃","count":3},{"name":"搏击","count":3},{"name":"砍刀","count":3},{"name":"锤","count":3},{"name":"镰刀","count":3},{"name":"长棍","count":3},{"name":"鞭","count":3},{"name":"剑鞭","count":2},{"name":"双截棍","count":2},{"name":"枪刃","count":2},{"name":"武扇","count":2},{"name":"细剑","count":2},{"name":"仙女","count":1},{"name":"刺刀","count":1},{"name":"双侍刃","count":1},{"name":"双手侍刃","count":1},{"name":"土石坍方","count":1},{"name":"定海神针","count":1},{"name":"幽影之爪","count":1},{"name":"影分身","count":1},{"name":"显赫刀剑","count":1},{"name":"沙漠之风","count":1},{"name":"琉璃碎击","count":1},{"name":"瓦尔基里之爪","count":1},{"name":"突击锯","count":1},{"name":"重型镰刀","count":1},{"name":"长鞭利爪","count":1}]},{"name":"同伴 MOD","count":159,"subcategories":[{"name":"同伴","count":26},{"name":"利爪","count":21},{"name":"机器","count":11},{"name":"野兽","count":10},{"name":"猎犬","count":9},{"name":"恐鸟","count":8},{"name":"守护","count":7},{"name":"库娃","count":6},{"name":"未细分","count":5},{"name":"引灵","count":3},{"name":"电气浮囊","count":3},{"name":"赫利俄斯","count":3},{"name":"匿踪型库狛","count":2},{"name":"噬血型库娃","count":2},{"name":"奥克绪罗斯","count":2},{"name":"守卫扑猎达赛","count":2},{"name":"宰相扑猎达赛","count":2},{"name":"寻猎型库狛","count":2},{"name":"搬运者","count":2},{"name":"月刃狐帕菲拉","count":2},{"name":"死亡魔方","count":2},{"name":"法老扑猎达赛","count":2},{"name":"狡黠狐帕菲拉","count":2},{"name":"猎杀型库狛","count":2},{"name":"突击型库狛","count":2},{"name":"笑面型库娃","count":2},{"name":"蛟龙","count":2},{"name":"铁甲狐帕菲拉","count":2},{"name":"镜像型库娃","count":2},{"name":"防护型库狛","count":2},{"name":"阴影","count":2},{"name":"鹦鹉螺","count":2},{"name":"任意武器","count":1},{"name":"塔克桑","count":1},{"name":"库娃利爪","count":1},{"name":"库狛","count":1},{"name":"库狛利爪","count":1},{"name":"扑猎达赛","count":1},{"name":"狐帕菲拉","count":1}]},{"name":"航道星舰 MOD","count":92,"subcategories":[{"name":"航道星舰","count":43},{"name":"武形秘仪","count":25},{"name":"专属装备","count":19},{"name":"航道星舰光环","count":5}]},{"name":"殁世机甲 MOD","count":28,"subcategories":[{"name":"殁世机甲","count":28}]},{"name":"其他 MOD","count":190,"subcategories":[{"name":"曲翼枪械","count":38},{"name":"灭骸之刃","count":38},{"name":"任意武器","count":34},{"name":"K式悬浮板","count":23},{"name":"曲翼近战武器","count":20},{"name":"曲翼","count":12},{"name":"振幅晶体","count":9},{"name":"战甲","count":4},{"name":"寄生疾冲者","count":2},{"name":"近战","count":2},{"name":"专属装备","count":1},{"name":"刺影","count":1},{"name":"奥克绪罗斯","count":1},{"name":"手枪","count":1},{"name":"步枪","count":1},{"name":"陨蜓","count":1},{"name":"霰弹枪","count":1},{"name":"鞘翅","count":1}]}];
const MOD_CATEGORY_COUNTS = MOD_CATEGORY_GROUPS.reduce((acc,group)=>{acc[group.name]=group.count;return acc;},{});
const MOD_BATCH_SIZE = 120;
let currentModList = [];
let renderedModCount = 0;
function renderMods(){
if(!modDataLoaded){
showModLoading();
ensureModData().then(()=>{ if(appMode==='mods') renderMods(); }).catch(showModLoadError);
return;
}
const list = MOD_DATA.map(m=>({m,score:modScore(m,curKeyword)})).filter(x=>x.score<9999).sort((a,b)=>a.score-b.score || a.m.id-b.m.id).map(x=>x.m);
currentModList = list;
renderedModCount = 0;
totalEl.textContent = MOD_DATA.length;
shownEl.textContent = list.length;
if(list.length===0){
grid.innerHTML='';
emptyEl.style.display='block';
emptyEl.innerHTML='<div class="empty-icon">🔍</div><div>没有找到匹配的MOD,换个关键词或分类试试吧</div>';
clearLoadMoreMods();
return;
}
emptyEl.style.display='none';
renderModSlice(true);
}
function modTradeLabel(m){
return m.tax==='无法交易' ? '无法交易' : '交易税:'+(m.tax||'未注明');
}
function modTradeHeader(m){
return m.tax==='无法交易' ? '无法交易' : '交易税 '+(m.tax||'未注明');
}
function modCardHtml(m){
const imgHtml = m.img ? `<div class="mod-card-art"><img class="mod-card-img" src="${m.img}" alt="${esc(m.name)} MOD卡面" loading="lazy"></div>` : '';
return `<div class="card mod-card" data-kind="mod" data-idx="${m.id}">
${imgHtml}
<div class="mod-card-content">
<div class="mod-card-top"><span>${esc(m.category)} · ${esc(m.subcategory)}</span><span class="mod-rarity">${esc(m.rarity)}</span></div>
<div>
<div class="mod-card-name">${hl(m.name,curKeyword)}</div>
<div class="mod-card-effect">${esc(m.effect)}</div>
</div>
<div class="mod-card-bottom"><span class="mod-tax">${esc(modTradeLabel(m))}</span><span class="mod-applies">${esc(m.applies)}</span></div>
</div>
</div>`;
}
function renderModSlice(reset){
const nextCount = Math.min(renderedModCount + MOD_BATCH_SIZE, currentModList.length);
const html = currentModList.slice(renderedModCount,nextCount).map(modCardHtml).join('');
if(reset) grid.innerHTML = html;
else grid.insertAdjacentHTML('beforeend',html);
renderedModCount = nextCount;
updateLoadMoreMods();
}
function loadMoreMods(){
if(appMode!=='mods' || renderedModCount>=currentModList.length) return;
renderModSlice(false);
}
function clearLoadMoreMods(){
const btn = document.getElementById('loadMoreMods');
if(btn) btn.remove();
}
function updateLoadMoreMods(){
let btn = document.getElementById('loadMoreMods');
if(appMode!=='mods' || renderedModCount>=currentModList.length){
if(btn) btn.remove();
return;
}
const left = currentModList.length - renderedModCount;
if(!btn){
btn = document.createElement('button');
btn.id = 'loadMoreMods';
btn.className = 'load-more-mods';
btn.type = 'button';
btn.addEventListener('click',loadMoreMods);
grid.insertAdjacentElement('afterend',btn);
}
btn.textContent = `继续显示 ${Math.min(MOD_BATCH_SIZE,left)} 个(剩余 ${left})`;
}
function detailRow(label,value,extraClass=''){
return `<div class="mod-detail-row"><div class="mod-detail-label">${esc(label)}</div><div class="mod-detail-value ${extraClass}">${esc(value||'未注明')}</div></div>`;
}
function restoreFrameModalLayout(){
const modal=document.getElementById('modal');
const abilities=document.getElementById('mAbilities');
if(abilities.parentElement?.id==='mTextPanel') modal.appendChild(abilities);
}
function openModModal(m){
currentModalFrame=null;
document.getElementById('modal').classList.add('mod-mode');
const textPanel=document.getElementById('mTextPanel');
const abilities=document.getElementById('mAbilities');
if(abilities.parentElement!==textPanel) textPanel.appendChild(abilities);
const img=document.getElementById('mImg');
if(m.img){
img.src=m.img;
img.alt=m.name+' MOD卡面';
img.style.display='';
}else{
img.removeAttribute('src');
img.alt=m.name;
img.style.display='none';
}
const label=document.querySelector('#mImageWrap .modal-imgbox span');
if(label) label.textContent='MOD';
const primeBox=document.getElementById('mPrimeImgBox');
const wrap=document.getElementById('mImageWrap');
primeBox.style.display='none';
wrap.classList.add('single');
document.getElementById('mZh').textContent=m.name;
document.getElementById('mEn').textContent=m.category+' · '+m.subcategory+' · '+m.rarity;
document.getElementById('mRelease').textContent=modTradeHeader(m);
document.getElementById('mPrime').style.display='none';
document.getElementById('mVariantTabs').classList.remove('show');
abilities.className='mod-details';
abilities.innerHTML =
detailRow('名称',m.name)+
detailRow('MOD分类',m.category)+
detailRow('二级分类',m.subcategory)+
detailRow('满级效果',m.effect)+
detailRow('极性',m.polarity)+
detailRow('稀有度',m.rarity)+
detailRow('交易税',m.tax)+
detailRow('满级消耗量',m.drain)+
detailRow('最高等级',m.rank)+
detailRow('适用位置',m.applies)+
detailRow('获取来源',m.source,'mod-detail-source');
overlay.classList.add('show');
document.body.style.overflow='hidden';
}
function setMode(mode){
appMode=mode;
document.querySelectorAll('.view-tab').forEach(tab=>{
const active=tab.dataset.mode===mode;
tab.classList.toggle('active',active);
tab.setAttribute('aria-selected',active?'true':'false');
});
if(mode==='mods'){
if(!MOD_CATEGORIES.includes(curModCategory)){curModCategory='all';curModSubcategory='all';}
if(frameFilters) frameFilters.style.display='none';
modCategoryWrap.classList.add('show');
if(frameCategoryWrap) frameCategoryWrap.style.display='none';
searchInput.placeholder='搜索MOD名称、效果、来源、一级/二级分类;支持中文、拼音、首字母和英文名…';
document.querySelector('.count-bar').innerHTML='共 <b id="total">'+getModTotalCount()+'</b> 个MOD · 当前显示 <b id="shown">0</b> 个';
}else{
if(frameFilters) frameFilters.style.display='flex';
modCategoryWrap.classList.remove('show');
if(frameCategoryWrap) frameCategoryWrap.style.display='block';
searchInput.placeholder='搜索战甲名称、技能、玩法分类、别名、拼音或描述…';
document.querySelector('.count-bar').innerHTML='共 <b id="total">'+DATA.length+'</b> 个战甲 · 当前显示 <b id="shown">0</b> 个';
}
totalEl = document.getElementById('total');
shownEl = document.getElementById('shown');
render();
}
prepareFrameIndexes();
renderFrameCategories();
renderModCategories();
document.getElementById('viewFrames').addEventListener('click',()=>setMode('frames'));
document.getElementById('viewMods').addEventListener('click',()=>setMode('mods'));
modCategoriesEl.addEventListener('click',e=>{
const chip=e.target.closest('.mod-chip,.mod-subchip');
if(!chip) return;
curModCategory=chip.dataset.cat || 'all';
curModSubcategory=chip.dataset.subcat || 'all';
renderModCategories();
render();
});
frameCategoriesEl.addEventListener('click',e=>{
const chip=e.target.closest('.frame-chip');
if(!chip) return;
curFrameCategory=chip.dataset.cat;
renderFrameCategories();
render();
});
/* MOD_INTEGRATION_JS_END */
function esc(s){return s.replace(/[&<>"]/g,c=>({'&':'&','<':'<','>':'>','"':'"'}[c]));}
function hl(text,kw){
if(!kw) return esc(text);
const i = text.toLowerCase().indexOf(kw.toLowerCase());
if(i<0) return esc(text);
return esc(text.slice(0,i))+'<mark>'+esc(text.slice(i,i+kw.length))+'</mark>'+esc(text.slice(i+kw.length));
}
function getFrameTags(f){
return FRAME_TAGS[f.en] || [];
}
function prepareFrameIndexes(){
DATA.forEach(f=>{
const tags = getFrameTags(f);
const tagAliases = tags.flatMap(tag=>[tag].concat(FRAME_CATEGORY_ALIASES[tag]||[]));
const aliases = FRAME_SEARCH_ALIASES[f.en] || [];
const abilityText = (f.ab||[]).map(a=>(a.label||'')+' '+(a.desc||'')).join(' ');
const variantText = f.umbraAb ? (f.umbraZh||'暗影圣剑')+' '+(f.umbraEn||'Excalibur Umbra')+' '+f.umbraAb.map(a=>(a.label||'')+' '+(a.desc||'')).join(' ') : '';
const special = [];
if(f.prime || f.primeImg) special.push('圣装 prime prime版 prime版本');
if(f.umbraImg || f.umbraAb) special.push('暗影 umbra 暗影圣剑 angang');
const source = [f.zh,f.en,f.releaseLabel,f.release,abilityText,variantText,tags.join(' '),tagAliases.join(' '),aliases.join(' '),special.join(' ')].join(' ');
f._tags = tags;
f._searchText = normalizeQuery(source);
f._searchAscii = compactAscii(source);
});
}
function frameMatchesKeyword(f,kw){
if(!kw) return true;
const raw = String(kw||'').trim().toLowerCase();
const q = normalizeQuery(raw);
const qa = compactAscii(raw);
if(q==='圣装' && (f.prime || f.primeImg)) return true;
if(q==='暗影' && (f.umbraImg || f.umbraAb)) return true;
if(q && (f._searchText||'').includes(q)) return true;
if(qa && (f._searchAscii||'').includes(qa)) return true;
const terms = raw.split(/\s+/).filter(Boolean);
if(terms.length && terms.every(term=>{
const tq = normalizeQuery(term);
const ta = compactAscii(term);
return (tq && (f._searchText||'').includes(tq)) || (ta && (f._searchAscii||'').includes(ta));
})) return true;
if(q.length>=2 && /[\u4e00-\u9fff]/.test(q) && isSubsequence(q,(f._searchText||''))) return true;
return false;
}
function matchesFrame(f,kw){
const tags = f._tags || getFrameTags(f);
if(curFrameCategory!=='all' && !tags.includes(curFrameCategory)) return false;
return frameMatchesKeyword(f,kw);
}
function renderFrames(){
clearLoadMoreMods();