-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmessage.css
More file actions
5404 lines (4697 loc) · 123 KB
/
message.css
File metadata and controls
5404 lines (4697 loc) · 123 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
/* ==================== Y2K 少女心像素风 - 完整重写 ==================== */
/* ==================== 聊天页面完整CSS变量系统 ==================== */
:root {
/* ========== 页面整体背景 ========== */
--chat-page-bg: #FFF0F5; /* 聊天页面主背景色 */
--chat-page-bg-image: none; /* 聊天页面背景图片 */
/* ========== 聊天窗口整体 ========== */
--chat-window-bg: #FFF0F5; /* 聊天窗口背景色 */
--chat-window-border: #000000; /* 聊天窗口边框色 */
--chat-window-shadow: rgba(0, 0, 0, 0.1); /* 聊天窗口阴影色 */
/* ========== 聊天头部区域 ========== */
--chat-header-bg: #FF69B4; /* 聊天头部背景色 */
--chat-header-border: #000000; /* 聊天头部边框色 */
--chat-header-text-color: #FFFFFF; /* 聊天头部文字颜色 */
--chat-header-shadow: rgba(0, 0, 0, 0.2); /* 聊天头部阴影 */
/* 头部头像 */
--chat-header-avatar-border: #FFFFFF; /* 头部头像边框色 */
--chat-header-avatar-shadow: rgba(0, 0, 0, 0.2); /* 头部头像阴影 */
--chat-header-avatar-bg: linear-gradient(135deg, #FF69B4 0%, #FF1493 100%); /* 头像默认背景 */
/* 头部按钮 */
--chat-header-btn-bg: rgba(255, 255, 255, 0.3); /* 头部按钮背景 */
--chat-header-btn-border: rgba(255, 255, 255, 0.5); /* 头部按钮边框 */
--chat-header-btn-color: #FFFFFF; /* 头部按钮文字色 */
--chat-header-btn-hover-bg: rgba(255, 255, 255, 0.4); /* 头部按钮悬停背景 */
/* 头部状态文字 */
--chat-header-name-color: #FFFFFF; /* 联系人姓名颜色 */
--chat-header-status-color: rgba(255, 255, 255, 0.8); /* 状态文字颜色 */
/* ========== 消息区域 ========== */
--chat-messages-bg: #FAFAFA; /* 消息区域背景色 */
--chat-messages-padding: 20px; /* 消息区域内边距 */
/* ========== 接收消息气泡 ========== */
--received-bubble-bg: rgba(255, 255, 255, 0.85); /* 接收气泡背景色 */
--received-bubble-border: #000000; /* 接收气泡边框色 */
--received-bubble-shadow: #FFB6C1; /* 接收气泡阴影色 */
--received-bubble-color: #000000; /* 接收气泡文字色 */
--received-bubble-radius: 18px; /* 接收气泡圆角 */
--received-bubble-padding: 12px 16px; /* 接收气泡内边距 */
--received-bubble-max-width: 70%; /* 接收气泡最大宽度 */
--received-bubble-margin: 0 auto 12px 0; /* 接收气泡外边距 */
/* ========== 发送消息气泡 ========== */
--sent-bubble-bg: rgba(255, 105, 180, 0.85); /* 发送气泡背景色 */
--sent-bubble-border: #000000; /* 发送气泡边框色 */
--sent-bubble-shadow: #FFB6C1; /* 发送气泡阴影色 */
--sent-bubble-color: #FFFFFF; /* 发送气泡文字色 */
--sent-bubble-radius: 18px; /* 发送气泡圆角 */
--sent-bubble-padding: 12px 16px; /* 发送气泡内边距 */
--sent-bubble-max-width: 70%; /* 发送气泡最大宽度 */
--sent-bubble-margin: 0 0 12px auto; /* 发送气泡外边距 */
/* ========== 消息头像 ========== */
--chat-message-avatar-size: 40px; /* 消息头像尺寸 */
--chat-message-avatar-border: #000000; /* 消息头像边框色 */
--chat-message-avatar-shadow: #FFB6C1; /* 消息头像阴影色 */
--chat-message-avatar-bg: linear-gradient(135deg, #FF69B4 0%, #FF1493 100%); /* 消息头像默认背景 */
/* ========== 消息时间戳 ========== */
--chat-message-time-color: #999999; /* 时间戳文字颜色 */
--chat-message-time-size: 11px; /* 时间戳字体大小 */
/* ========== 输入区域 ========== */
--chat-input-container-bg: #FFFFFF; /* 输入容器背景色 */
--chat-input-container-border: #000000; /* 输入容器边框色 */
--chat-input-container-shadow: rgba(0, 0, 0, 0.1); /* 输入容器阴影 */
--chat-input-container-padding: 12px; /* 输入容器内边距 */
/* 输入框 */
--chat-input-bg: #FFFFFF; /* 输入框背景色 */
--chat-input-border: #000000; /* 输入框边框色 */
--chat-input-color: #000000; /* 输入框文字色 */
--chat-input-placeholder-color: #999999; /* 输入框占位符颜色 */
--chat-input-focus-border: #FF1493; /* 输入框聚焦边框色 */
--chat-input-focus-shadow: rgba(255, 20, 147, 0.3); /* 输入框聚焦阴影 */
--chat-input-radius: 8px; /* 输入框圆角 */
--chat-input-padding: 10px; /* 输入框内边距 */
/* 发送按钮 */
--chat-send-btn-bg: #FF69B4; /* 发送按钮背景色 */
--chat-send-btn-border: #000000; /* 发送按钮边框色 */
--chat-send-btn-color: #FFFFFF; /* 发送按钮文字色 */
--chat-send-btn-shadow: #FFB6C1; /* 发送按钮阴影色 */
--chat-send-btn-hover-bg: #FF1493; /* 发送按钮悬停背景色 */
--chat-send-btn-radius: 8px; /* 发送按钮圆角 */
--chat-send-btn-padding: 10px 20px; /* 发送按钮内边距 */
/* 功能按钮 */
--chat-action-btn-bg: #FF69B4; /* 功能按钮背景色 */
--chat-action-btn-border: #000000; /* 功能按钮边框色 */
--chat-action-btn-color: #FFFFFF; /* 功能按钮文字色 */
--chat-action-btn-shadow: #FFB6C1; /* 功能按钮阴影色 */
--chat-action-btn-hover-bg: #FF1493; /* 功能按钮悬停背景色 */
--chat-action-btn-size: 40px; /* 功能按钮尺寸 */
/* ========== 通话记录气泡专用变量 ========== */
--video-call-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* 视频通话气泡背景 */
--voice-call-bg: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); /* 语音通话气泡背景 */
--call-bubble-color: #FFFFFF; /* 通话气泡文字颜色 */
--call-bubble-border: #000000; /* 通话气泡边框颜色 */
--call-bubble-shadow: rgba(0, 0, 0, 0.2); /* 通话气泡阴影颜色 */
--call-bubble-radius: 12px; /* 通话气泡圆角 */
--call-bubble-padding: 12px; /* 通话气泡内边距 */
/* ========== 特殊消息类型 ========== */
/* 语音消息 */
--voice-bubble-bg: inherit; /* 语音气泡背景(继承父级) */
--voice-bubble-wave-color: currentColor; /* 语音波形颜色 */
--voice-bubble-duration-color: currentColor; /* 语音时长颜色 */
--voice-bubble-min-width: 150px; /* 语音气泡最小宽度 */
--voice-bubble-max-width: 250px; /* 语音气泡最大宽度 */
/* 图片消息 */
--image-bubble-size: 200px; /* 图片气泡尺寸 */
--image-bubble-shadow: rgba(0, 0, 0, 0.2); /* 图片气泡阴影 */
--image-bubble-radius: 12px; /* 图片气泡圆角 */
/* 视频消息 */
--video-bubble-width: 200px; /* 视频气泡宽度 */
--video-bubble-height: 150px; /* 视频气泡高度 */
--video-bubble-shadow: rgba(0, 0, 0, 0.2); /* 视频气泡阴影 */
--video-bubble-radius: 12px; /* 视频气泡圆角 */
--video-play-icon-bg: rgba(0, 0, 0, 0.7); /* 视频播放图标背景 */
--video-play-icon-color: #FFFFFF; /* 视频播放图标颜色 */
/* 表情包消息 */
--sticker-bubble-size: 120px; /* 表情包气泡尺寸 */
/* ========== 双语消息 ========== */
--bilingual-original-color: inherit; /* 原文颜色 */
--bilingual-translation-color: #666666; /* 翻译文字颜色 */
--bilingual-border-color: rgba(0, 0, 0, 0.1); /* 双语分隔线颜色 */
--bilingual-sent-translation-color: rgba(255, 255, 255, 0.9); /* 发送消息翻译颜色 */
--bilingual-sent-border-color: rgba(255, 255, 255, 0.2); /* 发送消息分隔线颜色 */
/* ========== 消息编辑模式 ========== */
--edit-mode-toolbar-bg: #FFFFFF; /* 编辑工具栏背景 */
--edit-mode-toolbar-border: #000000; /* 编辑工具栏边框 */
--edit-mode-toolbar-shadow: rgba(0, 0, 0, 0.1); /* 编辑工具栏阴影 */
--edit-mode-selected-border: #FF1493; /* 选中消息边框色 */
--edit-mode-selected-shadow: rgba(255, 20, 147, 0.3); /* 选中消息阴影 */
/* 编辑按钮 */
--edit-btn-bg: #4CAF50; /* 编辑按钮背景 */
--edit-btn-color: #FFFFFF; /* 编辑按钮文字 */
--delete-btn-bg: #f44336; /* 删除按钮背景 */
--delete-btn-color: #FFFFFF; /* 删除按钮文字 */
--settings-btn-bg: #FF69B4; /* 设置按钮背景 */
--settings-btn-color: #FFFFFF; /* 设置按钮文字 */
--cancel-btn-bg: #9E9E9E; /* 取消按钮背景 */
--cancel-btn-color: #FFFFFF; /* 取消按钮文字 */
/* ========== 聊天菜单 ========== */
--chat-menu-bg: #FFFFFF; /* 聊天菜单背景 */
--chat-menu-border: #000000; /* 聊天菜单边框 */
--chat-menu-shadow: #FFB6C1; /* 聊天菜单阴影 */
--chat-menu-item-color: #000000; /* 菜单项文字色 */
--chat-menu-item-hover-bg: #FFE4E1; /* 菜单项悬停背景 */
--chat-menu-item-border: #FFB6C1; /* 菜单项分隔线 */
/* ========== 打字指示器 ========== */
--typing-indicator-color: #FFE4E1; /* 打字指示器颜色 */
--typing-dot-size: 6px; /* 打字点尺寸 */
/* ========== 通知横幅 ========== */
--notification-banner-bg: rgba(255, 255, 255, 0.95); /* 通知横幅背景 */
--notification-banner-border: #000000; /* 通知横幅边框 */
--notification-banner-shadow: #FFB6C1; /* 通知横幅阴影 */
--notification-title-color: #FF1493; /* 通知标题颜色 */
--notification-message-color: #000000; /* 通知消息颜色 */
--notification-avatar-border: #000000; /* 通知头像边框 */
--notification-avatar-shadow: #FFB6C1; /* 通知头像阴影 */
/* ========== 消息类型菜单 ========== */
--message-type-menu-bg: #FFFFFF; /* 消息类型菜单背景 */
--message-type-menu-border: #000000; /* 消息类型菜单边框 */
--message-type-menu-shadow: #FFB6C1; /* 消息类型菜单阴影 */
--message-type-item-color: #000000; /* 菜单项文字色 */
--message-type-item-hover-bg: #FFE4E1; /* 菜单项悬停背景 */
--message-type-item-border: #FFB6C1; /* 菜单项分隔线 */
/* ========== 表情包菜单 ========== */
--sticker-menu-bg: #FFFFFF; /* 表情包菜单背景 */
--sticker-menu-border: #000000; /* 表情包菜单边框 */
--sticker-menu-shadow: #FFB6C1; /* 表情包菜单阴影 */
--sticker-menu-header-border: #FFB6C1; /* 表情包菜单头部边框 */
/* ========== 已总结消息标记 ========== */
--summarized-mark-bg: #FFFFFF; /* 总结标记背景 */
--summarized-mark-border: #FFB6C1; /* 总结标记边框 */
--summarized-mark-color: #FFB6C1; /* 总结标记颜色 */
--summarized-mark-shadow: rgba(0, 0, 0, 0.1); /* 总结标记阴影 */
/* ========== 左侧导航栏 ========== */
--sidebar-bg: #FFFFFF; /* 侧边栏背景色 */
--sidebar-border: #000000; /* 侧边栏边框色 */
--sidebar-width: 100px; /* 侧边栏宽度 */
--sidebar-padding: 20px 0; /* 侧边栏内边距 */
/* 导航项 */
--sidebar-nav-item-color: #000000; /* 导航项文字颜色 */
--sidebar-nav-item-bg: transparent; /* 导航项背景色 */
--sidebar-nav-item-hover-bg: #FFE4E1; /* 导航项悬停背景色 */
--sidebar-nav-item-active-bg: #FF69B4; /* 导航项激活背景色 */
--sidebar-nav-item-active-color: #FFFFFF; /* 导航项激活文字颜色 */
--sidebar-nav-item-active-border: #FF1493; /* 导航项激活左边框色 */
--sidebar-nav-item-padding: 20px 10px; /* 导航项内边距 */
--sidebar-nav-item-font-size: 14px; /* 导航项字体大小 */
--sidebar-nav-item-font-weight: bold; /* 导航项字体粗细 */
--sidebar-nav-item-border-width: 4px; /* 导航项左边框宽度 */
/* 响应式 */
--sidebar-mobile-width: 80px; /* 移动端侧边栏宽度 */
--sidebar-mobile-nav-padding: 15px 5px; /* 移动端导航项内边距 */
--sidebar-mobile-nav-font-size: 12px; /* 移动端导航项字体大小 */
/* ========== 响应式断点 ========== */
--mobile-breakpoint: 768px; /* 移动端断点 */
--tablet-breakpoint: 1024px; /* 平板端断点 */
/* ========== 通用主题色 ========== */
--theme-primary: #FF69B4; /* 主题主色 */
--theme-primary-dark: #FF1493; /* 主题深色 */
--theme-primary-light: #FFB6C1; /* 主题浅色 */
--theme-secondary: #FFE4E1; /* 主题次要色 */
--theme-bg-light: #FFF0F5; /* 浅色背景 */
--theme-text-primary: #000000; /* 主要文字色 */
--theme-text-secondary: #666666; /* 次要文字色 */
--theme-border: #000000; /* 边框色 */
--theme-shadow: #FFB6C1; /* 阴影色 */
/* ========== 卡片和面板 ========== */
--card-bg: rgba(255, 255, 255, 0.9); /* 卡片背景 */
--card-border: #000000; /* 卡片边框 */
--card-shadow: #FFB6C1; /* 卡片阴影 */
--card-hover-bg: #FFE4E1; /* 卡片悬停背景 */
/* ========== 按钮通用 ========== */
--btn-primary-bg: #FF69B4; /* 主按钮背景 */
--btn-primary-color: #FFFFFF; /* 主按钮文字 */
--btn-primary-border: #000000; /* 主按钮边框 */
--btn-primary-shadow: #FFB6C1; /* 主按钮阴影 */
--btn-primary-hover-bg: #FF1493; /* 主按钮悬停背景 */
/* ========== 头像通用 ========== */
--avatar-bg: linear-gradient(135deg, #FF69B4 0%, #FF1493 100%); /* 头像背景 */
--avatar-border: #000000; /* 头像边框 */
--avatar-shadow: #FFB6C1; /* 头像阴影 */
/* ========== 模态框 ========== */
--modal-bg: #FFFFFF; /* 模态框背景 */
--modal-header-bg: #FF69B4; /* 模态框头部背景 */
--modal-header-color: #FFFFFF; /* 模态框头部文字 */
--modal-border: #000000; /* 模态框边框 */
--modal-shadow: #FFB6C1; /* 模态框阴影 */
/* ========== 表单 ========== */
--form-label-color: #FF1493; /* 表单标签颜色 */
--form-input-bg: #FFFFFF; /* 表单输入框背景 */
--form-input-border: #000000; /* 表单输入框边框 */
--form-input-focus-border: #FF1493; /* 表单输入框聚焦边框 */
--form-input-focus-shadow: #FFB6C1; /* 表单输入框聚焦阴影 */
/* ========== 分组和列表 ========== */
--group-header-bg: rgba(255, 255, 255, 0.9); /* 分组头部背景 */
--group-header-hover-bg: #FFE4E1; /* 分组头部悬停背景 */
--group-title-color: #FF1493; /* 分组标题颜色 */
--group-count-bg: #FFB6C1; /* 分组计数背景 */
--group-border: #FFB6C1; /* 分组边框 */
/* ========== NPC相关 ========== */
--npc-info-bg: #FFE4E1; /* NPC信息背景 */
--npc-info-border: #FF1493; /* NPC信息边框 */
--npc-char-header-bg: linear-gradient(135deg, #FFF0F5 0%, #FFE4E1 100%); /* NPC角色头部背景 */
/* ========== 关系图 ========== */
--graph-bg: linear-gradient(135deg, #FFF0F5 0%, #f8f0ff 50%, #FFF0F5 100%); /* 关系图背景 */
--graph-node-bg: linear-gradient(135deg, #FF69B4 0%, #FF1493 100%); /* 关系图节点背景 */
/* ========== 页面头部 ========== */
--page-header-bg: #FF69B4; /* 页面头部背景 */
--page-header-color: #FFFFFF; /* 页面头部文字 */
--page-header-border: #000000; /* 页面头部边框 */
}
/* ==================== 基础重置 ==================== */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
-webkit-tap-highlight-color: transparent;
}
body {
font-family: 'Courier New', 'MS Gothic', monospace;
background: var(--chat-page-bg);
background-image: var(--chat-page-bg-image);
background-size: cover;
background-position: center;
background-attachment: scroll;
min-height: var(--app-height, 100vh);
overflow: hidden;
image-rendering: -webkit-optimize-contrast;
}
/* ==================== 横屏三栏布局(Flex禁止重叠) ==================== */
.main-container {
display: flex;
width: 100vw;
height: var(--app-height, 100vh);
overflow: hidden;
position: relative;
}
/* 左侧导航栏 - 100px 固定宽度 */
.left-sidebar {
width: var(--sidebar-width);
min-width: var(--sidebar-width);
background: var(--sidebar-bg);
border-right: 2px solid var(--sidebar-border);
display: flex;
flex-direction: column;
padding: var(--sidebar-padding);
z-index: 100;
flex-shrink: 0;
}
.sidebar-nav-item {
padding: var(--sidebar-nav-item-padding);
text-align: center;
cursor: pointer;
transition: all 0.2s;
font-size: var(--sidebar-nav-item-font-size);
font-weight: var(--sidebar-nav-item-font-weight);
color: var(--sidebar-nav-item-color);
background: var(--sidebar-nav-item-bg);
border-left: var(--sidebar-nav-item-border-width) solid transparent;
}
.sidebar-nav-item:hover {
background: var(--sidebar-nav-item-hover-bg);
}
.sidebar-nav-item.active {
background: var(--sidebar-nav-item-active-bg);
color: var(--sidebar-nav-item-active-color);
border-left-color: var(--sidebar-nav-item-active-border);
}
/* 右侧主内容区 - 占据剩余空间 */
.main-content {
flex: 1;
position: relative;
overflow: hidden;
background: var(--theme-bg-light);
}
.content-panel {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: var(--theme-bg-light);
overflow-y: auto;
opacity: 0;
visibility: hidden;
transition: opacity 0.3s, visibility 0.3s;
padding: 20px;
}
.content-panel.active {
opacity: 1;
visibility: visible;
}
/* ==================== 头像渲染修复(统一CSS类) ==================== */
.avatar-img {
width: 100%;
height: 100%;
border-radius: 50%;
object-fit: cover;
}
/* 头像容器尺寸控制 */
.contact-card-avatar .avatar-img,
.npc-avatar .avatar-img {
width: 100%;
height: 100%;
}
.relation-node-avatar .avatar-img {
width: 100%;
height: 100%;
}
.npc-avatar-display .avatar-img {
width: 100%;
height: 100%;
}
/* ==================== 我的页面 ==================== */
.top-avatar-circle {
text-align: center;
margin: 100px 0 40px 0;
}
.avatar-circle-container {
position: relative;
width: 120px;
height: 120px;
margin: 0 auto 16px;
}
.circle-avatar {
width: 120px;
height: 120px;
border-radius: 50%;
object-fit: cover;
border: 4px solid var(--theme-border);
box-shadow: 5px 5px 0px var(--theme-shadow);
background: var(--avatar-bg);
display: flex;
align-items: center;
justify-content: center;
font-size: 48px;
}
.avatar-label {
font-size: 18px;
font-weight: bold;
color: var(--theme-primary-dark);
text-shadow: 2px 2px 0px var(--theme-primary-light);
}
.me-content {
max-width: 600px;
margin: 0 auto;
padding: 0 20px;
}
.me-section {
background: var(--card-bg);
border: 2px solid var(--card-border);
box-shadow: 4px 4px 0px var(--card-shadow);
padding: 20px;
margin-bottom: 20px;
}
.me-section h3 {
font-size: 18px;
font-weight: bold;
color: var(--theme-primary-dark);
margin-bottom: 16px;
padding-bottom: 12px;
border-bottom: 2px dashed var(--theme-primary-light);
}
.me-info-box p {
font-size: 14px;
line-height: 1.8;
color: #000000;
margin-bottom: 8px;
}
.me-info-box button {
background: var(--btn-primary-bg);
color: var(--btn-primary-color);
border: 2px solid var(--btn-primary-border);
padding: 10px 20px;
font-size: 14px;
font-weight: bold;
cursor: pointer;
box-shadow: 3px 3px 0px var(--btn-primary-shadow);
transition: all 0.2s;
margin-top: 8px;
}
.me-info-box button:hover {
background: var(--btn-primary-hover-bg);
transform: translate(-2px, -2px);
box-shadow: 5px 5px 0px var(--btn-primary-shadow);
}
.me-info-box button:active {
transform: translate(0, 0);
box-shadow: 2px 2px 0px var(--btn-primary-shadow);
}
/* ==================== 面板头部 ==================== */
.panel-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px;
background: var(--card-bg);
border: 2px solid var(--card-border);
box-shadow: 4px 4px 0px var(--card-shadow);
margin-bottom: 20px;
}
.panel-title-area {
flex: 1;
display: flex;
align-items: center;
gap: 12px;
}
.panel-note {
font-size: 14px;
color: var(--theme-primary-dark);
font-weight: bold;
}
.panel-actions {
display: flex;
gap: 10px;
}
.action-icon-btn {
background: var(--btn-primary-bg);
color: var(--btn-primary-color);
border: 2px solid var(--btn-primary-border);
width: 40px;
height: 40px;
font-size: 18px;
cursor: pointer;
box-shadow: 3px 3px 0px var(--btn-primary-shadow);
transition: all 0.2s;
display: flex;
align-items: center;
justify-content: center;
}
.action-icon-btn:hover {
background: var(--btn-primary-hover-bg);
transform: translate(-2px, -2px);
box-shadow: 5px 5px 0px var(--btn-primary-shadow);
}
.action-icon-btn:active {
transform: translate(0, 0);
box-shadow: 2px 2px 0px var(--btn-primary-shadow);
}
/* ==================== 联系人分组 ==================== */
.contacts-groups-container {
overflow-y: auto;
height: calc(var(--app-height, 100vh) - 120px);
}
.contact-group {
margin-bottom: 20px;
}
.group-header {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 16px;
background: var(--group-header-bg);
border: 2px solid var(--card-border);
box-shadow: 3px 3px 0px var(--card-shadow);
cursor: pointer;
transition: all 0.2s;
margin-bottom: 12px;
}
.group-header:hover {
background: var(--group-header-hover-bg);
transform: translate(-2px, -2px);
box-shadow: 5px 5px 0px var(--card-shadow);
}
.group-toggle {
font-size: 14px;
font-weight: bold;
transition: transform 0.3s;
}
.group-toggle.collapsed {
transform: rotate(-90deg);
}
.group-name {
font-size: 16px;
font-weight: bold;
color: var(--group-title-color);
flex: 1;
}
.group-count {
font-size: 12px;
color: var(--theme-text-primary);
background: var(--group-count-bg);
padding: 2px 8px;
border: 1px solid var(--card-border);
}
.group-contacts {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
gap: 16px;
padding: 0 8px;
max-height: 0;
overflow: hidden;
transition: max-height 0.3s ease;
}
.group-contacts.expanded {
max-height: 2000px;
}
.contact-card {
background: var(--card-bg);
border: 2px solid var(--card-border);
box-shadow: 3px 3px 0px var(--card-shadow);
padding: 0;
text-align: center;
cursor: pointer;
transition: all 0.2s;
overflow: hidden;
display: flex;
flex-direction: column;
}
.contact-card:hover {
background: var(--card-hover-bg);
transform: translate(-2px, -2px);
box-shadow: 5px 5px 0px var(--card-shadow);
}
.contact-card:active {
transform: translate(0, 0);
box-shadow: 2px 2px 0px var(--card-shadow);
}
/* 联系人卡片封图 */
.contact-card-cover {
width: 100%;
height: 60px;
overflow: hidden;
position: relative;
border-bottom: 2px solid #000000;
flex-shrink: 0;
}
.contact-card-cover img {
width: 100%;
height: 100%;
object-fit: cover;
}
.contact-card-avatar {
width: 100%;
position: relative;
background: var(--avatar-bg);
display: flex;
align-items: center;
justify-content: center;
font-size: 36px;
border-bottom: 2px solid var(--card-border);
overflow: hidden;
flex-shrink: 0;
aspect-ratio: 1 / 0.8;
color: #FFFFFF;
font-weight: bold;
}
.contact-card-avatar img {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
display: block;
}
/* 有封图时调整头像高度 */
.contact-card.has-cover .contact-card-avatar {
aspect-ratio: 1 / 0.6;
}
.contact-card-name {
font-size: 14px;
font-weight: bold;
color: #000000;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
padding: 12px 8px;
background: #FFFFFF;
}
/* ==================== NPC页面 ==================== */
.npc-info-box {
margin-bottom: 20px;
padding: 16px;
background: var(--npc-info-bg);
border: 2px solid var(--card-border);
box-shadow: 3px 3px 0px var(--card-shadow);
border-left: 6px solid var(--npc-info-border);
}
.npc-info-box p {
font-size: 13px;
line-height: 1.6;
color: #000000;
margin-bottom: 8px;
}
.npc-info-box p:last-child {
margin-bottom: 0;
}
.npc-list {
overflow-y: auto;
height: calc(var(--app-height, 100vh) - 240px);
}
.npc-item {
background: var(--card-bg);
border: 2px solid var(--card-border);
box-shadow: 4px 4px 0px var(--card-shadow);
padding: 16px;
margin-bottom: 16px;
}
.npc-item-header {
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 12px;
}
.npc-avatar {
width: 48px;
height: 48px;
border-radius: 50%;
background: var(--avatar-bg);
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
border: 2px solid var(--avatar-border);
box-shadow: 2px 2px 0px var(--avatar-shadow);
overflow: hidden;
}
.npc-info {
flex: 1;
}
.npc-name {
font-size: 16px;
font-weight: bold;
color: var(--theme-primary-dark);
margin-bottom: 4px;
}
.npc-relation {
font-size: 12px;
color: #000000;
}
.npc-actions {
display: flex;
gap: 8px;
}
.npc-action-btn {
background: var(--btn-primary-bg);
color: var(--btn-primary-color);
border: 2px solid var(--btn-primary-border);
padding: 6px 12px;
font-size: 12px;
font-weight: bold;
cursor: pointer;
box-shadow: 2px 2px 0px var(--btn-primary-shadow);
transition: all 0.2s;
}
.npc-action-btn:hover {
background: var(--btn-primary-hover-bg);
transform: translate(-1px, -1px);
box-shadow: 3px 3px 0px var(--btn-primary-shadow);
}
.npc-action-btn:active {
transform: translate(0, 0);
box-shadow: 1px 1px 0px var(--btn-primary-shadow);
}
.npc-relations-graph {
background: var(--theme-bg-light);
border: 2px dashed var(--theme-primary-light);
padding: 12px;
text-align: center;
}
/* NPC按CHAR分组 */
.npc-char-group {
background: rgba(255, 255, 255, 0.95);
border: 2px solid var(--card-border);
box-shadow: 4px 4px 0px var(--card-shadow);
margin-bottom: 20px;
overflow: hidden;
}
.npc-char-header {
display: flex;
align-items: center;
gap: 12px;
padding: 14px 16px;
background: var(--npc-char-header-bg);
border-bottom: 2px solid var(--group-border);
}
.npc-char-avatar {
width: 44px;
height: 44px;
border-radius: 50%;
background: var(--avatar-bg);
display: flex;
align-items: center;
justify-content: center;
font-size: 20px;
border: 2px solid var(--avatar-border);
overflow: hidden;
flex-shrink: 0;
}
.npc-char-info {
flex: 1;
min-width: 0;
}
.npc-char-name {
font-size: 15px;
font-weight: bold;
color: var(--theme-primary-dark);
}
.npc-char-meta {
font-size: 12px;
color: #666;
margin-top: 2px;
}
.npc-graph-btn {
flex-shrink: 0;
white-space: nowrap;
}
.npc-char-npcs {
padding: 12px;
}
.npc-char-npcs .npc-item {
margin-bottom: 10px;
box-shadow: 2px 2px 0px var(--card-shadow);
}
.npc-char-npcs .npc-item:last-child {
margin-bottom: 0;
}
/* ==================== 模态框(z-index: 10001防止遮挡) ==================== */
.npc-management-modal,
.npc-relations-modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.5);
z-index: 10001;
align-items: center;
justify-content: center;
}
.npc-management-modal.active,
.npc-relations-modal.active {
display: flex;
}
.npc-management-content,
.npc-relations-content {
background: var(--modal-bg);
border: 3px solid var(--modal-border);
box-shadow: 6px 6px 0px var(--modal-shadow);
width: 90%;
max-width: 500px;
max-height: 80vh;
overflow: hidden;
display: flex;
flex-direction: column;
}
.npc-relations-content {
max-width: 800px;
}
.npc-management-header,
.npc-relations-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px;
background: var(--modal-header-bg);
border-bottom: 2px solid var(--modal-border);
}
.npc-management-header h3,
.npc-relations-header h3 {
font-size: 18px;
font-weight: bold;
color: var(--modal-header-color);
}
.close-modal-btn {
background: var(--modal-bg);
color: var(--theme-primary-dark);
border: 2px solid var(--modal-border);
width: 32px;
height: 32px;
font-size: 24px;
font-weight: bold;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
line-height: 1;
}
.close-modal-btn:hover {
background: var(--theme-secondary);
}
.npc-management-body,
.npc-relations-body {
padding: 20px;
overflow-y: auto;
}
.form-group {
margin-bottom: 16px;
}
.form-group label {
display: block;
font-size: 14px;
font-weight: bold;
color: var(--form-label-color);
margin-bottom: 8px;
}
.form-group input[type="text"],
.form-group textarea,
.form-group select {
width: 100%;
padding: 10px;
border: 2px solid var(--form-input-border);
background: var(--form-input-bg);
font-size: 14px;
font-family: inherit;
}
.form-group input[type="text"]:focus,
.form-group textarea:focus,
.form-group select:focus {
outline: none;
border-color: var(--form-input-focus-border);
box-shadow: 2px 2px 0px var(--form-input-focus-shadow);
}
.npc-avatar-preview {
display: flex;
justify-content: center;
margin: 16px 0;
}
.npc-avatar-display {
width: 80px;
height: 80px;
border-radius: 50%;
background: var(--avatar-bg);
display: flex;
align-items: center;
justify-content: center;
font-size: 40px;
border: 3px solid var(--avatar-border);