-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
4416 lines (3871 loc) · 176 KB
/
index.html
File metadata and controls
4416 lines (3871 loc) · 176 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>UART 通信助手 Pro</title>
<!-- 引入 Chart.js 用于数据可视化 -->
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<!-- 引入 Flatpickr 用于更美观的日期选择 -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/flatpickr/dist/flatpickr.min.css">
<script src="https://cdn.jsdelivr.net/npm/flatpickr"></script>
<script src="https://cdn.jsdelivr.net/npm/flatpickr/dist/plugins/rangePlugin.js"></script>
<script src="https://npmcdn.com/flatpickr/dist/l10n/zh.js"></script>
<style>
/* Flatpickr 定制样式 */
.flatpickr-calendar {
box-shadow: 0 9px 28px 8px rgba(0, 0, 0, 0.05), 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12) !important;
border: none !important;
border-radius: 8px !important;
padding: 8px 0 !important;
/* 自适应缩放 */
max-width: 95vw !important;
max-height: 90vh !important;
overflow-x: hidden !important;
overflow-y: auto !important;
}
/* 针对小屏幕的媒体查询 */
@media (max-width: 600px) {
.flatpickr-calendar {
width: 95vw !important;
left: 50% !important;
transform: translateX(-50%) !important;
}
.flatpickr-months .flatpickr-month {
height: 30px !important;
}
.flatpickr-current-month {
font-size: 100% !important;
}
}
.flatpickr-months {
border-bottom: 1px solid #f0f0f0;
padding-bottom: 8px;
}
.flatpickr-month {
height: 40px !important;
}
.flatpickr-current-month {
font-size: 110% !important;
padding-top: 10px !important;
}
.flatpickr-weekdays {
height: 36px !important;
background: transparent !important;
}
span.flatpickr-weekday {
color: #666 !important;
font-weight: 600 !important;
}
.flatpickr-day {
border-radius: 4px !important;
}
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange, .flatpickr-day.selected.inRange, .flatpickr-day.startRange.inRange, .flatpickr-day.endRange.inRange, .flatpickr-day.selected:focus, .flatpickr-day.startRange:focus, .flatpickr-day.endRange:focus, .flatpickr-day.selected:hover, .flatpickr-day.startRange:hover, .flatpickr-day.endRange:hover, .flatpickr-day.selected.prevMonthDay, .flatpickr-day.startRange.prevMonthDay, .flatpickr-day.endRange.prevMonthDay, .flatpickr-day.selected.nextMonthDay, .flatpickr-day.startRange.nextMonthDay, .flatpickr-day.endRange.nextMonthDay {
background: #1677ff !important;
border-color: #1677ff !important;
}
.flatpickr-day.inRange {
box-shadow: -5px 0 0 #e6f4ff, 5px 0 0 #e6f4ff !important;
background: #e6f4ff !important;
border-color: #e6f4ff !important;
color: #333 !important;
}
.flatpickr-time {
border-top: 1px solid #f0f0f0 !important;
padding-top: 8px !important;
max-height: 40px !important; /* 默认隐藏滚轮,通过样式覆盖 */
overflow: hidden !important;
display: none; /* 默认不显示原生的 time picker,我们要用自定义的 */
}
/* 自定义时间选择器样式 */
.custom-time-picker {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
border-top: 1px solid #f0f0f0;
height: 200px;
position: relative;
}
.time-column {
height: 100%;
overflow-y: auto;
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* IE/Edge */
position: relative;
padding: 80px 0; /* 上下留白,使选中项居中 */
text-align: center;
}
.time-column::-webkit-scrollbar {
display: none;
}
.time-item {
height: 40px;
line-height: 40px;
cursor: pointer;
color: #333;
font-size: 14px;
transition: all 0.2s;
}
.time-item:hover {
background: #f5f5f5;
}
.time-item.selected {
font-weight: 600;
color: #1677ff;
font-size: 16px;
}
/* 选中高亮条 */
.time-highlight-bar {
position: absolute;
top: 80px; /* (200 - 40) / 2 */
left: 0;
right: 0;
height: 40px;
background: #e6f4ff;
pointer-events: none;
z-index: -1;
border-top: 1px solid #f0f0f0;
border-bottom: 1px solid #f0f0f0;
}
.time-header {
text-align: center;
padding: 10px 0;
font-weight: 600;
color: #333;
border-bottom: 1px solid #f0f0f0;
}
/* 底部状态栏 */
.picker-footer {
display: flex;
border-top: 1px solid #f0f0f0;
height: 40px;
line-height: 40px;
}
.footer-date, .footer-time {
flex: 1;
text-align: center;
font-size: 13px;
color: #666;
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
cursor: pointer; /* 添加手型 */
transition: all 0.2s;
user-select: none;
}
.footer-date:hover, .footer-time:hover {
background: #f5f5f5;
}
.footer-date.active, .footer-time.active {
color: #1677ff;
background: #e6f4ff;
font-weight: 600;
}
.footer-time {
/* 移除原来的固定样式,改用 active 控制 */
/* background: #f9f9f9; */
/* color: #333; */
/* font-weight: 600; */
}
:root {
/* 默认主题变量 */
--bg-color: #f5f5f7;
--card-bg: #ffffff;
--text-primary: #1d1d1f;
--text-secondary: #86868b;
--accent-color: #0071e3;
--accent-hover: #0077ed;
--input-bg: rgba(0, 0, 0, 0.04);
--border-color: rgba(0, 0, 0, 0.1);
--console-bg: #1e1e20;
--console-text: #ffffff;
--console-sys: #a1a1aa;
/* Updated Font Stack for Apple San Francisco look */
--font-stack: -apple-system, BlinkMacSystemFont, "SF Pro Text", "San Francisco", "Helvetica Neue", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
--mono-font: "SF Mono", "Menlo", "Monaco", "Consolas", "Courier New", monospace;
--radius-card: 24px;
--radius-input: 14px;
--shadow-card: 0 8px 30px rgba(0, 0, 0, 0.04);
--shadow-float: 0 10px 40px rgba(0, 0, 0, 0.15);
}
* {
box-sizing: border-box;
outline: none;
}
body {
margin: 0;
padding: 24px;
background-color: var(--bg-color);
color: var(--text-primary);
font-family: var(--font-stack);
height: 100vh;
display: flex;
flex-direction: column;
overflow: hidden;
transition: background-color 0.4s ease;
}
/* 顶部导航栏 */
header {
margin-bottom: 20px;
padding: 0 10px;
flex-shrink: 0;
display: flex;
justify-content: space-between;
align-items: center;
}
.header-left {
display: flex;
align-items: center;
gap: 20px;
}
header h1 {
font-size: 24px;
font-weight: 700;
margin: 0;
color: var(--text-primary);
letter-spacing: -0.5px;
}
/* 视图切换器 (Segmented Control) */
.view-switcher {
background: rgba(0, 0, 0, 0.05);
padding: 4px;
border-radius: 99px;
display: flex;
gap: 4px;
}
.view-btn {
padding: 6px 16px;
border-radius: 99px;
font-size: 13px;
font-weight: 500;
cursor: pointer;
border: none;
background: transparent;
color: var(--text-secondary);
transition: all 0.2s;
}
.view-btn.active {
background: #fff;
color: var(--text-primary);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
/* 主题切换按钮 */
.theme-btn {
background: var(--card-bg);
border: 1px solid rgba(0, 0, 0, 0.05);
padding: 8px 16px;
border-radius: 20px;
font-size: 13px;
font-weight: 500;
cursor: pointer;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
display: flex;
align-items: center;
gap: 6px;
transition: all 0.2s;
}
.theme-btn:hover {
transform: translateY(-1px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
/* 视图容器 */
.view-container {
flex: 1;
position: relative;
overflow-y: auto;
}
/* 具体的页面 */
.page-view {
width: 100%;
height: 100%;
display: none;
/* 默认隐藏 */
animation: fadeIn 0.3s ease;
}
.page-view.active {
display: block;
/* 激活显示 */
}
@keyframes fadeIn {
from {
opacity: 0;
transform: scale(0.99);
}
to {
opacity: 1;
transform: scale(1);
}
}
/* --- 主界面 Grid --- */
.grid-container {
display: grid;
grid-template-columns: 340px 1fr;
grid-template-rows: auto 1fr;
gap: 20px;
height: 100%;
}
/* --- 统计界面 Grid --- */
.stats-container {
display: grid;
grid-template-columns: 1fr 1fr;
grid-template-rows: auto auto 1fr;
gap: 20px;
height: auto;
padding-bottom: 40px;
}
/* --- 日志表格样式 --- */
.log-table {
border-collapse: collapse;
width: 100%;
border: 1px solid #e1e1e3;
}
.log-table th, .log-table td {
border: 1px solid #e1e1e3;
padding: 8px 12px;
}
.log-table th {
background-color: #f5f5f7;
font-weight: 600;
}
.log-table tr:hover {
background-color: #f8f9fa;
}
/* 卡片通用样式 */
.card {
background: var(--card-bg);
border-radius: var(--radius-card);
padding: 24px;
display: flex;
flex-direction: column;
box-shadow: var(--shadow-card);
border: 1px solid rgba(255, 255, 255, 0.5);
position: relative;
}
.card-title {
font-size: 17px;
font-weight: 600;
color: var(--text-primary);
margin-bottom: 18px;
display: flex;
justify-content: space-between;
align-items: center;
}
/* --- 统计卡片样式 --- */
.stat-card-row {
grid-column: 1 / 3;
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 20px;
}
.mini-stat {
background: var(--card-bg);
padding: 20px;
border-radius: 20px;
box-shadow: var(--shadow-card);
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
}
.mini-label {
font-size: 12px;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.5px;
}
.mini-value {
font-size: 24px;
font-weight: 700;
color: var(--text-primary);
margin-top: 5px;
font-family: var(--mono-font);
}
.mini-unit {
font-size: 12px;
color: var(--accent-color);
font-weight: 600;
}
/* 表单样式 */
label {
font-size: 13px;
font-weight: 500;
color: var(--text-secondary);
margin-bottom: 8px;
display: block;
margin-left: 4px;
}
input[type="text"],
input[type="number"],
select,
textarea {
background: #ffffff;
border: 1px solid #e1e1e3;
color: var(--text-primary);
padding: 10px 14px;
border-radius: 18px;
/* 增大圆角 */
width: 100%;
font-family: var(--font-stack);
font-size: 14px;
transition: all 0.2s ease;
appearance: none;
-webkit-appearance: none;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}
input:hover,
select:hover,
textarea:hover {
border-color: #d1d1d6;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
input:focus,
select:focus,
textarea:focus {
background: #ffffff;
border-color: var(--accent-color);
box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.15);
outline: none;
}
textarea {
resize: none;
margin-bottom: 16px;
}
/* 分包设置面板 (悬浮风格) */
.config-panel {
display: none;
background: #ffffff;
padding: 16px;
border-radius: 18px;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
gap: 12px;
align-items: center;
position: absolute;
top: 60px;
right: 24px;
z-index: 100;
border: 1px solid rgba(0, 0, 0, 0.05);
animation: slideDown 0.2s ease;
}
@keyframes slideDown {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* 移除数字输入框的上下箭头 */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
input[type=number] {
-moz-appearance: textfield;
}
/* 隐藏 datalist 的默认下拉箭头 (Chrome/Edge) */
input::-webkit-calendar-picker-indicator {
display: none !important;
}
/* 隐藏 input type=number 的增减按钮 */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
input[type=number] {
-moz-appearance: textfield;
}
/* 下拉箭头修正 */
.select-wrapper {
position: relative;
margin-bottom: 16px;
}
.select-wrapper input,
.select-wrapper select {
margin-bottom: 0;
padding-right: 32px;
cursor: pointer;
border-radius: var(--radius-input);
}
/* 针对波特率输入框的特殊样式,使其与 CustomSelect 保持一致 */
#baudInput {
border-radius: 99px;
padding: 10px 16px;
padding-right: 36px; /* 留出箭头位置 */
border: 1px solid #e1e1e3;
height: auto; /* 让 padding 决定高度 */
line-height: 1.5;
}
#baudInput:focus {
border-color: var(--accent-color);
outline: none;
}
.select-arrow {
position: absolute;
right: 16px; /* 与 CustomSelect padding 一致 */
top: 50%;
transform: translateY(-50%);
pointer-events: none;
display: flex;
align-items: center;
justify-content: center;
width: 12px;
height: 12px;
}
.select-arrow svg {
width: 10px;
height: 6px;
stroke: #86868B;
stroke-width: 1.5;
stroke-linecap: round;
stroke-linejoin: round;
fill: none;
}
/* 按钮 */
button {
border: none;
padding: 12px 24px;
border-radius: 999px;
font-weight: 500;
font-size: 14px;
cursor: pointer;
transition: all 0.2s;
display: inline-flex;
align-items: center;
justify-content: center;
}
button:active {
transform: scale(0.96);
}
.btn-primary {
background-color: var(--accent-color);
color: white;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.btn-primary:hover {
opacity: 0.9;
}
.btn-secondary {
background-color: rgba(0, 0, 0, 0.05);
color: var(--text-primary);
}
.btn-secondary:hover {
background-color: rgba(0, 0, 0, 0.08);
}
.btn-icon-add {
width: 28px;
height: 28px;
padding: 0;
border-radius: 50%;
background: rgba(0, 0, 0, 0.05);
color: var(--accent-color);
font-size: 18px;
}
.btn-icon-add:hover {
background: rgba(0, 0, 0, 0.1);
}
/* 配置与快捷指令 */
.config-area {
grid-column: 1 / 2;
grid-row: 1 / 3;
display: flex;
flex-direction: column;
gap: 20px;
overflow-y: auto;
padding-right: 4px;
}
.config-area::-webkit-scrollbar {
width: 0;
}
.status-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background-color: #d1d1d6;
margin-right: 8px;
transition: all 0.3s;
}
.status-dot.connected {
background-color: #34c759;
box-shadow: 0 0 8px rgba(52, 199, 89, 0.5);
}
.status-dot.disconnected {
background-color: #ff3b30;
}
/* 发送区 */
.send-area {
grid-column: 2 / 3;
grid-row: 1 / 2;
}
.send-options {
display: flex;
gap: 20px;
margin-bottom: 12px;
align-items: center;
flex-wrap: wrap;
}
.checkbox-container {
display: flex;
align-items: center;
font-size: 13px;
cursor: pointer;
color: var(--text-primary);
user-select: none;
min-height: 24px;
}
.checkbox-container .switch {
margin-right: 8px;
flex-shrink: 0;
}
/* 移除旧的 input 样式,改为隐藏 */
.checkbox-container input[type="checkbox"]:not(.switch input) {
appearance: none;
width: 18px;
height: 18px;
border: 1px solid #d1d1d6;
border-radius: 6px;
margin-right: 8px;
position: relative;
background: #fff;
margin-bottom: 0;
transition: all 0.2s;
}
.checkbox-container input:checked {
background-color: var(--accent-color);
border-color: var(--accent-color);
}
.checkbox-container input:checked::after {
content: '';
position: absolute;
left: 5px;
top: 2px;
width: 4px;
height: 8px;
border: solid white;
border-width: 0 2px 2px 0;
transform: rotate(45deg);
}
.send-toolbar {
display: flex;
gap: 12px;
align-items: flex-end;
background: transparent;
padding: 12px;
border-radius: 18px;
flex-wrap: wrap;
}
/* 快捷指令列表 */
.quick-cmds {
flex: 1;
min-height: 200px;
}
.cmd-list {
flex: 1;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 8px;
}
.cmd-item {
background: var(--input-bg);
border-radius: 12px;
padding: 10px 14px;
display: flex;
justify-content: space-between;
align-items: center;
cursor: pointer;
transition: all 0.2s;
border: 1px solid transparent;
}
.cmd-item:hover {
background: rgba(0, 0, 0, 0.08);
}
.cmd-info {
flex: 1;
overflow: hidden;
}
.cmd-name {
font-size: 13px;
font-weight: 600;
color: var(--text-primary);
}
.cmd-val {
font-size: 11px;
color: var(--text-secondary);
font-family: var(--mono-font);
margin-top: 2px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.cmd-del {
opacity: 0;
transition: opacity 0.2s;
background: transparent;
color: #ff3b30;
padding: 4px;
}
.cmd-item:hover .cmd-del {
opacity: 1;
}
.cmd-shortcut {
font-size: 10px;
background: rgba(0, 0, 0, 0.1);
padding: 2px 6px;
border-radius: 4px;
margin-left: 8px;
color: var(--text-secondary);
font-family: var(--mono-font);
border: 1px solid rgba(0, 0, 0, 0.05);
}
/* 发送标签页切换 */
.send-tab {
cursor: pointer;
color: var(--text-secondary);
transition: all 0.2s;
position: relative;
}
.send-tab.active {
color: var(--text-primary);
font-weight: 600;
}
.send-tab:hover {
color: var(--text-primary);
}
/* 日志 */
.log-area {
grid-column: 2 / 3;
grid-row: 2 / 3;
min-height: 300px;
display: flex;
flex-direction: column;
}
.log-split-container {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 12px;
flex: 1;
min-height: 0;
/* 防止溢出 */
margin-top: 10px;
}
.log-pane {
display: flex;
flex-direction: column;
background-color: var(--console-bg);
border-radius: 16px;
overflow: hidden;
border: 1px solid rgba(0, 0, 0, 0.05);
}
.pane-header {
padding: 8px 16px;
font-size: 12px;
font-weight: 600;
color: rgba(255, 255, 255, 0.4);
background: rgba(255, 255, 255, 0.03);
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
display: flex;
justify-content: space-between;
align-items: center;
}
.log-window {
flex: 1;
padding: 12px;
overflow-y: auto;
font-family: var(--mono-font);
font-size: 14px;
line-height: 1.6;
color: var(--console-text);
box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
font-weight: 500;
}
.log-line {
display: flex;
align-items: baseline;
/* 基线对齐,确保不同大小文字底部对齐 */
padding: 6px 8px;
border-bottom: 1px solid rgba(255, 255, 255, 0.04);
border-left: 3px solid transparent;
/* 状态指示条 */
transition: background 0.1s;
line-height: 1.5;
}
.log-line:hover {
background: rgba(255, 255, 255, 0.02);
}
.log-time {
color: rgba(255, 255, 255, 0.3);
margin-right: 12px;
font-size: 11px;
min-width: 155px;
/* 确保时间戳列宽足够且固定,保证后续内容对齐 */
user-select: none;
font-family: var(--mono-font);
white-space: nowrap;
}
/* --- Advanced Settings Modal (Sidebar Layout) --- */
.adv-modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.4);
backdrop-filter: blur(15px);
display: none;
justify-content: center;
align-items: center;
z-index: 15000;
animation: fadeIn 0.2s ease-out;
}
.adv-modal-content {
background: var(--card-bg);
width: 800px;
height: 600px;
border-radius: 28px;
box-shadow: 0 30px 90px rgba(0, 0, 0, 0.2);
display: flex;
overflow: hidden;
border: 1px solid rgba(255, 255, 255, 0.4);
animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.adv-sidebar {
width: 220px;
background: rgba(0, 0, 0, 0.02);
border-right: 1px solid rgba(0, 0, 0, 0.05);
padding: 24px 12px;
display: flex;
flex-direction: column;
gap: 4px;
}
.adv-sidebar-title {
padding: 0 12px 16px 12px;
font-size: 13px;
font-weight: 600;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.5px;
}
.adv-nav-item {
padding: 10px 16px;
border-radius: 12px;
font-size: 14px;
font-weight: 500;
color: var(--text-primary);
cursor: pointer;
transition: all 0.2s;
display: flex;
align-items: center;
gap: 10px;
}
.adv-nav-item:hover {
background: rgba(0, 0, 0, 0.04);
}
.adv-nav-item.active {
background: var(--accent-color);
color: white;
}
.adv-main {
flex: 1;
padding: 32px 40px;
overflow-y: auto;
display: flex;
flex-direction: column;
gap: 24px;
}
.adv-section-title {
font-size: 22px;
font-weight: 700;
margin-bottom: 8px;
}
.adv-section-desc {
font-size: 14px;