Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
7291 lines (6821 loc) · 211 KB
/
Copy pathstyle.css
File metadata and controls
7291 lines (6821 loc) · 211 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
/* Atomic Pro Desk / Vintage Professional DAW Theme */
:root {
/* 精密画布与烤漆面板底色 */
--bg-0: #E1DDD4; /* Canvas: 帆布灰 */
--bg-1: #ECE8DE; /* Panel: 象牙白珐琅漆 */
--bg-2: #E2DDD1; /* Sub-panel: 略深一点的金属漆 */
--bg-3: #F8F5EE; /* Control: 高对比度纯白控件 */
--bg-4: #CCC5B7; /* Hover: 物理下压/深灰 */
/* 精密五金雕刻线 */
--border-color: #C2BCAE; /* 常规分割线 */
--border-light: #8F8A80; /* 深色边界 (用于硬件模块外框) */
/* 战前标志性功能色 */
--accent-color: #3B8B88; /* Atomic Teal: 原子蓝/巡航蓝 */
--accent-dim: rgba(59, 139, 136, 0.22);
--accent-mid: rgba(59, 139, 136, 0.34);
--green: #66C275; /* Phosphor Green: 磷光屏绿 */
--orange: #D4A035; /* Vault Gold: 避难所黄/复古模拟金 */
--red: #C94234; /* Nuka Red: 核子红/录音警告 */
--pink: #C05640; /* Terracotta: 赤陶色 */
/* 高级模拟仪表盘字体颜色 */
--text-main: #2B2825; /* Bakelite Dark: 碳黑色/电木色 */
--text-muted: #666158; /* 中灰刻度线色 */
--text-faint: #8F8A80; /* 极浅灰 */
--bg-fx-panel: #DCDAD5;
--fx-module-bg: #F4F3EF;
--fx-module-header: #E5E4DF;
--fx-knob-track: #C8C3BA;
--track-header-width: 240px;
/* ─── 设计 token:圆角 ───────────────────────────────────────────────────
从原本散落 4/6/10/12/999px 的 border-radius 收敛到这一档;
2px/3px 以下的 hairline 不收敛(缺乏明确语义槽位、本就够小)。
语义梯度:硬件控件 → 卡片 → 大圆角面板 → pill 标签 */
--radius-sm: 2px; /* 微小:内嵌按钮、控件内圈 */
--radius: 4px; /* 默认:标准硬件控件圆角(保留旧别名) */
--radius-md: 6px; /* 中:tab、popover、modal/卡片次级 */
--radius-lg: 12px; /* 大:模态对话框、卡片、面板容器 */
--radius-pill: 999px;/* pill:tag、徽标、圆形按钮 */
/* ─── 设计 token:间距 ───────────────────────────────────────────────────
4 / 8 / 12 / 16 / 24 五档;适用于 flex/grid gap、容器 padding/margin。
不强求所有 px 替换——保留语义不明的局部数值(贴边距、行高微调等) */
--gap-xs: 4px;
--gap-sm: 8px;
--gap-md: 12px;
--gap-lg: 16px;
--gap-xl: 24px;
/* ─── 设计 token:Hover 反馈强度 ───────────────────────────────────────
基线:Linear / Figma / Bitwig——只用轻量 tint 叠层,不再"整块换底色"。
hover 和 active/selected 的层级分离全靠这一档:
- hover:rgba 黑色 5%~8% 叠加,几乎察觉但不喧宾夺主
- active/selected:保留各自原本更重的处理(实底色 / inset 凹陷)
语义型按钮(primary/danger)的 hover 由它们自己决定,不走这套 token */
--hover-bg: rgba(0, 0, 0, 0.05);
--hover-bg-strong: rgba(0, 0, 0, 0.08);
--hover-ring: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
/* ─── 混音器控件主题变量(亮模式:奶油拉丝铝拟物) ─────────────────────
旋钮 / 推子 / 按钮的"金属面"颜色专门一套——既要和 bg-1 ~ bg-4 协调,
又要呈现"控制台饰板"的拉丝质感。把所有视觉硬编码都收敛到这里,方便
[data-theme='dark'] 一处覆盖 */
--mixer-strip-bg-top: #EFE9DD;
--mixer-strip-bg-bottom: #D4CCBE;
--mixer-control-base-top: #D9D3C6; /* 旋钮 / fader 把手"亮面" */
--mixer-control-base-bottom: #A8A192; /* 旋钮 / fader 把手"暗面" */
--mixer-control-border: #888377;
--mixer-control-highlight: rgba(255,255,255,0.5); /* inset 高光 */
--mixer-control-shadow: rgba(0,0,0,0.22); /* inset 阴影 */
--mixer-recess-bg-top: rgba(0,0,0,0.10); /* slot / 凹槽底色 */
--mixer-recess-bg-bottom: rgba(0,0,0,0.04);
--mixer-recess-border: rgba(0,0,0,0.22);
--mixer-recess-shadow: rgba(0,0,0,0.18);
--mixer-fader-handle-mid: #BFB6A3;
--mixer-fader-handle-deep: #9C9482;
--mixer-db-bg: rgba(255,255,255,0.45);
--mixer-db-border: rgba(0,0,0,0.18);
--mixer-db-shadow: rgba(0,0,0,0.18);
}
/* 暗色模式:保留同一套语义变量名,只重定义颜色值——绝大多数选择器无需改写。
核心思路:
- bg-0 ~ bg-4 从米色阶梯改成深炭色阶梯
- 文字反相:底色深 → 文字浅
- accent 不变(青色在暗背景上仍然好看,提供识别一致性)
- 功能色(绿橙红粉)适度提亮以保留警告意义
配色取自专业 DAW 暗皮 (Logic Pro X, Pro Tools) 的低饱和深炭风 */
[data-theme='dark'] {
--bg-0: #1A1B1E; /* Canvas: 深炭底 */
--bg-1: #232529; /* Panel: 模块面板 */
--bg-2: #2A2C30; /* Sub-panel: 分区底 */
--bg-3: #303236; /* Control: 控件常态底 */
--bg-4: #3D4046; /* Hover */
--border-color: #383A3F;
--border-light: #4E5158;
--accent-color: #4FB1AE;
--accent-dim: rgba(79, 177, 174, 0.22);
--accent-mid: rgba(79, 177, 174, 0.36);
--green: #6FD482;
--orange: #E3B254;
--red: #DD5C4E;
--pink: #D77866;
--text-main: #E8E4DC;
--text-muted: #A09A8E;
--text-faint: #6A6862;
--bg-fx-panel: #1F2024;
--fx-module-bg: #2B2D31;
--fx-module-header: #353740;
--fx-knob-track: #3F4248;
/* 混音器:深色金属拉丝 */
--mixer-strip-bg-top: #2A2D32;
--mixer-strip-bg-bottom: #1E2125;
--mixer-control-base-top: #555;
--mixer-control-base-bottom: #2A2C30;
--mixer-control-border: rgba(0,0,0,0.6);
--mixer-control-highlight: rgba(255,255,255,0.16);
--mixer-control-shadow: rgba(0,0,0,0.5);
--mixer-recess-bg-top: rgba(0,0,0,0.32);
--mixer-recess-bg-bottom: rgba(0,0,0,0.12);
--mixer-recess-border: rgba(0,0,0,0.55);
--mixer-recess-shadow: rgba(0,0,0,0.55);
--mixer-fader-handle-mid: #383B40;
--mixer-fader-handle-deep: #2A2C30;
--mixer-db-bg: rgba(0,0,0,0.28);
--mixer-db-border: rgba(0,0,0,0.45);
--mixer-db-shadow: rgba(0,0,0,0.55);
/* 暗模式 hover:用白色叠层而非黑色(深底之上加暗会消失) */
--hover-bg: rgba(255, 255, 255, 0.06);
--hover-bg-strong: rgba(255, 255, 255, 0.10);
--hover-ring: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
/* 主题过渡:用 View Transitions API(document.startViewTransition)做合成器层
交叉淡入——GPU 一次性合成两张纹理,整页几千个 DOM 元素的色值"同时"插值
跟单个元素一样便宜。之前用 * 选择器给所有元素挂 transition 的方案性能崩坏
(丢帧到 4-5 帧)已经废弃。
下面这两条只调过渡时长 + 缓动,别的浏览器默认帮你处理 */
::view-transition-old(root),
::view-transition-new(root) {
animation-duration: 360ms;
animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
/* ===== 顶栏 dock 切换按钮(Mixer / Reverb):模拟 Studio One / Logic 的
"主功能按钮"视觉——比普通模式切换按钮(滚动/跟踪等)视觉更重,
带专属图标 + 微立体感 + accent 色图标提示。让用户一眼看出"这是打开主功能" ===== */
.menubar-dock-btn {
display: inline-flex;
align-items: center;
gap: 6px;
height: 30px;
padding: 0 12px 0 10px;
margin-right: 8px;
border: 1px solid var(--border-color);
border-radius: 5px;
/* 微立体感:上浅下深的渐变 + inset 高光 + 1px drop shadow */
background: linear-gradient(180deg, var(--bg-3) 0%, var(--bg-2) 100%);
color: var(--text-main);
font-size: 12px;
font-weight: 600;
letter-spacing: 0.3px;
cursor: pointer;
flex-shrink: 0;
user-select: none;
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.18),
inset 0 -1px 0 rgba(0, 0, 0, 0.08),
0 1px 1px rgba(0, 0, 0, 0.10);
transition: background 200ms ease, border-color 200ms ease, color 200ms ease,
box-shadow 160ms ease, transform 120ms ease;
}
.menubar-dock-btn:hover:not(:disabled) {
border-color: var(--border-light);
transform: translateY(-0.5px);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.22),
inset 0 -1px 0 rgba(0, 0, 0, 0.10),
0 2px 3px rgba(0, 0, 0, 0.14);
}
.menubar-dock-btn:active:not(:disabled) {
transform: translateY(0.5px);
box-shadow:
inset 0 1px 2px rgba(0, 0, 0, 0.18),
0 0 0 rgba(0, 0, 0, 0);
}
.menubar-dock-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.menubar-dock-btn.accent {
background: linear-gradient(180deg,
color-mix(in srgb, var(--accent-color), white 6%) 0%,
var(--accent-color) 100%);
border-color: var(--accent-color);
color: #fff;
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.30),
inset 0 -1px 0 rgba(0, 0, 0, 0.18),
0 2px 4px var(--accent-dim);
}
/* 图标:14px 视觉重量、未激活时用 accent 色(提示"这是功能按钮"),激活时变白跟文字一致 */
.menubar-dock-btn-icon {
display: inline-flex;
width: 14px;
height: 14px;
flex: 0 0 14px;
color: var(--accent-color);
transition: color 160ms ease;
}
.menubar-dock-btn-icon svg { width: 100%; height: 100%; display: block; }
.menubar-dock-btn.accent .menubar-dock-btn-icon { color: inherit; }
.menubar-dock-btn-label { line-height: 1; }
/* ===== 顶栏明暗切换按钮:太阳 ⇄ 月亮 ===== */
.theme-toggle {
display: inline-flex;
align-items: center;
justify-content: center;
width: 32px;
height: 28px;
margin-left: 12px; /* 跟左边的"跟随工具栏"留间隙——之前贴在一起不专业 */
padding: 0;
border: 1px solid var(--border-color);
border-radius: var(--radius);
background: var(--bg-3);
color: var(--text-muted);
cursor: pointer;
flex-shrink: 0;
transition: background 200ms ease, border-color 200ms ease, color 200ms ease, transform 140ms ease;
}
.theme-toggle:hover {
background: var(--hover-bg);
}
.theme-toggle:active {
transform: translateY(0.5px);
}
/* 舞台用来给两个图标做绝对叠放,外加一点点旋转空间 */
.theme-toggle-stage {
position: relative;
display: inline-block;
width: 18px;
height: 18px;
}
.theme-toggle-icon {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
/* 图标过渡:透明度 + 旋转 + 缩放 三件套,做出"翻面"效果 */
transition:
opacity 360ms cubic-bezier(0.2, 0.8, 0.2, 1),
transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
fill: none;
stroke: currentColor;
stroke-width: 1.6;
stroke-linecap: round;
}
/* light 模式下:太阳显,月亮藏到下方右侧并旋转 -90° */
.theme-toggle[data-theme='light'] .theme-toggle-icon--sun {
opacity: 1;
transform: rotate(0deg) scale(1);
color: #D4A035; /* 暖金 */
}
.theme-toggle[data-theme='light'] .theme-toggle-icon--moon {
opacity: 0;
transform: rotate(-90deg) scale(0.5);
}
/* dark 模式下:月亮显,太阳藏到上方左侧并旋转 +90° */
.theme-toggle[data-theme='dark'] .theme-toggle-icon--sun {
opacity: 0;
transform: rotate(90deg) scale(0.5);
}
.theme-toggle[data-theme='dark'] .theme-toggle-icon--moon {
opacity: 1;
transform: rotate(0deg) scale(1);
color: #D9D2C4; /* 冷月白 */
fill: currentColor;
stroke: none;
}
/* 太阳光线:跟主圆同色,hover 时整个按钮稍微亮一档让用户知道是可点的 */
.theme-toggle-icon--sun circle {
fill: currentColor;
stroke: none;
}
.theme-toggle-icon--sun .theme-toggle-sun-rays line {
stroke: currentColor;
}
.theme-toggle:hover .theme-toggle-icon--sun {
filter: drop-shadow(0 0 3px rgba(212, 160, 53, 0.55));
}
.theme-toggle:hover .theme-toggle-icon--moon {
filter: drop-shadow(0 0 3px rgba(217, 210, 196, 0.45));
}
*, *::before, *::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html,
body {
width: 100%;
height: 100%;
overflow: hidden;
background: var(--bg-0);
color: var(--text-main);
/* 引入高密度专业UI字体 */
font: 11px "Inter", "Segoe UI", sans-serif;
user-select: none;
}
button,
select,
input,
summary {
font: inherit;
}
body {
display: flex;
flex-direction: column;
}
#app {
flex: 1;
min-height: 0;
display: flex;
flex-direction: column;
}
/* 顶部硬件控制台面板 */
.menubar {
position: relative;
height: 48px;
flex-shrink: 0;
display: flex;
align-items: center;
gap: var(--gap-lg);
padding: 0 16px;
background: var(--bg-1);
border-bottom: 1px solid var(--border-light);
box-shadow: 0 2px 5px rgba(0,0,0,0.03), inset 0 -1px 0 rgba(255,255,255,0.8);
z-index: 50;
}
.menubar::after {
content: "";
position: absolute;
left: 0;
right: 0;
bottom: -2px;
height: 1px;
background: rgba(255,255,255,0.9);
pointer-events: none;
}
/* 硬件铭牌 */
.menubar::before {
content: "web utau";
display: inline-flex;
align-items: center;
height: 28px;
margin-right: 12px;
color: var(--text-main);
font-family: 'Oswald', sans-serif;
font-size: 16px;
font-weight: 500;
line-height: 1;
letter-spacing: 0.5px;
}
.menu-items {
position: relative;
z-index: 1;
display: inline-flex;
align-items: center;
gap: var(--gap-xs);
}
/* 当前工程"铭牌":紧贴文件按钮右侧,承载工程名 + 未保存红点 + 一键保存。
点击 = 保存;Alt/Option + 点击 = 另存为;Cmd+S 也走同一条路 */
.menubar-project-plate {
position: relative;
z-index: 1;
display: inline-flex;
align-items: center;
gap: var(--gap-sm);
height: 28px;
max-width: 220px;
padding: 0 12px 0 10px;
margin: 0;
border: 1px solid var(--border-color);
border-radius: var(--radius-sm);
background: var(--bg-3);
color: var(--text-main);
font-family: 'Inter', sans-serif;
font-size: 11.5px;
font-weight: 600;
cursor: pointer;
box-shadow: inset 0 1px 0 #FFF, inset 0 -1px 0 rgba(0, 0, 0, 0.04);
transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.menubar-project-plate:hover {
background: var(--hover-bg);
}
.menubar-project-plate:active {
background: var(--bg-4);
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}
.menubar-project-plate.is-untitled .menubar-project-plate-name {
color: var(--text-muted);
font-style: italic;
font-weight: 500;
}
.menubar-project-plate-name {
max-width: 180px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
letter-spacing: 0.01em;
}
/* 红点:默认透明不显示,dirty 时切到 #d9433a 醒目高亮 + 脉动 glow。
display: inline-block 是防御性的,确保 width/height 在所有浏览器里都能严格生效 */
.menubar-project-plate-dot {
display: inline-block;
width: 9px;
height: 9px;
border-radius: 50%;
background: transparent;
flex-shrink: 0;
transition: background 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
opacity: 0;
}
.menubar-project-plate.is-dirty .menubar-project-plate-dot {
opacity: 1;
background: #e63b30;
box-shadow:
0 0 0 1px rgba(230, 59, 48, 0.5),
0 0 8px rgba(230, 59, 48, 0.7);
animation: project-plate-dot-pulse 1.4s ease-in-out infinite alternate;
}
@keyframes project-plate-dot-pulse {
from { box-shadow: 0 0 0 1px rgba(230, 59, 48, 0.4), 0 0 5px rgba(230, 59, 48, 0.5); }
to { box-shadow: 0 0 0 1px rgba(230, 59, 48, 0.6), 0 0 12px rgba(230, 59, 48, 0.9); }
}
/* 物理质感菜单按钮 */
.menu-item {
display: inline-flex;
align-items: center;
height: 28px;
border: 1px solid transparent;
padding: 0 10px;
border-radius: var(--radius-sm);
background: transparent;
color: var(--text-muted);
font-weight: 500;
cursor: pointer;
transition: all 0.1s;
}
.menu-item:hover {
/* 轻 tint + 文本色加重——不再"按一下变白底带阴影"的整块换皮 */
background: var(--hover-bg);
color: var(--text-main);
}
.menu-item.active {
background: var(--bg-4);
color: var(--text-main);
border-color: var(--border-light);
box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
}
.menu-item:disabled {
opacity: 0.45;
cursor: not-allowed;
box-shadow: none;
}
.menu-midi-select {
min-width: 158px;
height: 28px;
padding: 0 10px;
border: 1px solid var(--border-color);
border-radius: var(--radius-sm);
background: var(--bg-3);
color: var(--text-main);
outline: none;
font-size: 11px;
box-shadow: inset 0 1px 2px rgba(0,0,0,0.03);
transition: border-color 0.15s ease;
}
.menu-midi-select:focus {
border-color: var(--accent-color);
}
/* =====================================================
顶栏主输出电平表(Master Meter)
- 双通道 PPM 横条 + 12 段 FFT 频谱条 + CLIP 锁存灯
- 黑色仿仪表面板,与暖米白菜单栏形成对比,符合"硬件设备嵌入操作面"的语汇
===================================================== */
.menubar-meter {
/* 绝对定位贴在 transport 左缘:transport 自身用 left:50% + translate -50% 居中(≈186px 宽),
这里 right: calc(50% + 102px) 让 meter 右边缘卡在 transport 左缘外约 10px 处 */
position: absolute;
top: 50%;
right: calc(50% + 102px);
transform: translateY(-50%);
/* clamp 确保窄视口下随 vw 收缩,宽视口下不超过 360 */
width: clamp(200px, 30vw, 360px);
height: 32px;
display: inline-flex;
align-items: center;
z-index: 1; /* 与 menubar-center 同层;DOM 在 center 之前 → 任何重叠中 transport 在上 */
pointer-events: none; /* 仅 CLIP 自身 pointer-events:auto,其余穿透 */
}
.menubar-meter:empty { display: none; }
@media (max-width: 800px) {
.menubar-meter { display: none; }
}
.menubar-meter-bezel {
display: flex;
align-items: stretch;
gap: var(--gap-sm);
width: 100%;
height: 32px;
padding: 4px 7px;
background:
linear-gradient(180deg, #1f1d1c 0%, #0c0b0a 100%);
border: 1px solid rgba(0, 0, 0, 0.85);
border-radius: var(--radius);
box-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.07),
inset 0 -1px 0 rgba(0, 0, 0, 0.5),
0 1px 0 rgba(255, 255, 255, 0.7);
}
.menubar-meter-channels {
display: flex;
flex-direction: column;
justify-content: center;
gap: 3px;
flex: 1 1 auto;
min-width: 0;
}
.menubar-meter-row {
display: flex;
align-items: center;
gap: 5px;
height: 9px;
}
.menubar-meter-channel-label {
width: 7px;
font-family: 'Oswald', sans-serif;
font-size: 8px;
font-weight: 600;
color: rgba(255, 255, 255, 0.42);
letter-spacing: 0.08em;
text-align: center;
flex-shrink: 0;
}
.menubar-meter-track {
position: relative;
flex: 1 1 auto;
min-width: 0;
height: 100%;
background:
linear-gradient(180deg, rgba(0, 0, 0, 0.85), rgba(20, 20, 20, 0.9));
border-radius: 1px;
overflow: hidden;
box-shadow:
inset 0 1px 1.5px rgba(0, 0, 0, 0.85),
inset 0 -1px 0 rgba(255, 255, 255, 0.04);
--peak-pct: 0%;
--rms-pct: 0%;
--hold-pct: 0%;
}
/* 全宽渐变 + clip-path 从右收紧,使颜色档位(绿/黄/红)锚定在固定 dB 位置而不随长度伸缩 */
.menubar-meter-fill {
position: absolute;
inset: 0;
background: linear-gradient(
to right,
#1da67c 0%,
#1da67c 60%,
#d4a035 80%,
#c94234 92%,
#ff3b30 100%
);
clip-path: inset(0 calc(100% - var(--peak-pct)) 0 0);
transition: clip-path 30ms linear;
filter: drop-shadow(0 0 1.5px rgba(60, 220, 180, 0.4));
}
.menubar-meter-rms {
position: absolute;
inset: 0;
background: linear-gradient(
to right,
rgba(255, 255, 255, 0.2) 0%,
rgba(255, 255, 255, 0.08) 100%
);
clip-path: inset(0 calc(100% - var(--rms-pct)) 0 0);
transition: clip-path 60ms linear;
pointer-events: none;
mix-blend-mode: overlay;
}
/* peak hold 白光柱:跟踪 1.2s 内的峰值位置,缓慢回落 */
.menubar-meter-hold {
position: absolute;
top: -1px;
bottom: -1px;
left: var(--hold-pct);
width: 1.5px;
background: rgba(255, 255, 255, 0.92);
transform: translateX(-50%);
transition: left 80ms ease-out;
pointer-events: none;
box-shadow: 0 0 4px rgba(255, 255, 255, 0.7);
}
/* 1px LED 网格:在轨道上叠一层细密竖线,看起来像离散段位 */
.menubar-meter-grid {
position: absolute;
inset: 0;
background-image: repeating-linear-gradient(
to right,
transparent 0,
transparent 5px,
rgba(0, 0, 0, 0.6) 5px,
rgba(0, 0, 0, 0.6) 6px
);
pointer-events: none;
}
.menubar-meter-readout {
width: 28px;
flex-shrink: 0;
font-family: 'JetBrains Mono', monospace;
font-size: 8.5px;
font-weight: 700;
color: rgba(255, 255, 255, 0.55);
font-variant-numeric: tabular-nums;
text-align: right;
letter-spacing: 0.02em;
transition: color 120ms ease;
}
.menubar-meter-readout.is-warning { color: #f5b942; }
.menubar-meter-readout.is-danger {
color: #ff5a4a;
text-shadow: 0 0 4px rgba(255, 90, 74, 0.55);
}
/* 频谱:12 根细竖条,自下向上填,对数频段,给电平表外加一份"频域可视化"信息量 */
.menubar-meter-spectrum {
display: flex;
align-items: flex-end;
gap: 1px;
width: 56px;
height: 22px;
flex-shrink: 0;
align-self: center;
padding: 0 1px;
border-left: 1px solid rgba(255, 255, 255, 0.06);
border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.menubar-meter-spectrum-bar {
flex: 1 1 0;
min-width: 0;
height: var(--bar-height, 0%);
background: linear-gradient(
to top,
rgba(29, 166, 124, 0.85) 0%,
rgba(29, 166, 124, 0.95) 55%,
rgba(212, 160, 53, 0.95) 80%,
rgba(255, 90, 80, 0.95) 100%
);
border-radius: 0.5px;
transition: height 60ms linear;
box-shadow: 0 0 2px rgba(60, 220, 180, 0.35);
}
/* CLIP 锁存灯:默认暗灰浮雕,过载时切到霓虹红 + 缓慢脉动 */
.menubar-meter-clip {
display: inline-flex;
align-items: center;
justify-content: center;
align-self: center;
height: 18px;
padding: 0 7px;
background: rgba(0, 0, 0, 0.5);
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: var(--radius-sm);
color: rgba(255, 255, 255, 0.4);
font-family: 'Oswald', sans-serif;
font-size: 9px;
font-weight: 600;
letter-spacing: 0.14em;
cursor: pointer;
pointer-events: auto;
flex-shrink: 0;
transition: color 200ms ease, background 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.menubar-meter-clip:hover {
border-color: rgba(255, 255, 255, 0.22);
color: rgba(255, 255, 255, 0.65);
}
.menubar-meter-clip.is-clipped {
background: linear-gradient(180deg, #ff3b30, #c0241a);
color: #fff;
border-color: #f0392b;
box-shadow:
0 0 10px rgba(255, 59, 48, 0.7),
inset 0 1px 0 rgba(255, 255, 255, 0.45),
inset 0 -1px 0 rgba(0, 0, 0, 0.3);
animation: menubar-meter-clip-pulse 1.2s ease-in-out infinite alternate;
}
@keyframes menubar-meter-clip-pulse {
from { box-shadow: 0 0 6px rgba(255, 59, 48, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
to { box-shadow: 0 0 14px rgba(255, 59, 48, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
}
/* 顶栏 LUFS 小读数:跟 CLIP 灯并排,仅显示 integrated 值;
颜色按目标响度 ±1/±3 LU 着色——good 绿、warn 橙、too-loud 红、too-quiet 蓝 */
.menubar-meter-lufs {
display: inline-flex;
align-items: center;
gap: var(--gap-xs);
align-self: center;
height: 18px;
padding: 0 6px 0 5px;
background: rgba(0, 0, 0, 0.5);
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: var(--radius-sm);
color: rgba(255, 255, 255, 0.62);
font-family: 'Oswald', 'JetBrains Mono', monospace;
font-size: 10px;
font-weight: 600;
letter-spacing: 0.06em;
flex-shrink: 0;
transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}
.menubar-meter-lufs-label {
color: rgba(255, 255, 255, 0.42);
font-weight: 700;
letter-spacing: 0.18em;
}
.menubar-meter-lufs-value {
font-variant-numeric: tabular-nums;
min-width: 30px;
text-align: right;
}
.menubar-meter-lufs[data-tone='good'] { color: #5BD68A; border-color: rgba(91, 214, 138, 0.35); }
.menubar-meter-lufs[data-tone='warn'] { color: #F0AD4E; border-color: rgba(240, 173, 78, 0.35); }
.menubar-meter-lufs[data-tone='too-loud'] { color: #FF6B6B; border-color: rgba(255, 107, 107, 0.35); }
.menubar-meter-lufs[data-tone='too-quiet'] { color: #6BB6FF; border-color: rgba(107, 182, 255, 0.35); }
.menubar-center {
position: absolute;
inset: 0;
z-index: 1;
pointer-events: none;
}
.menubar-tail {
margin-left: auto;
position: relative;
z-index: 1;
display: inline-flex;
align-items: center;
}
.menubar-follow-tools {
display: inline-flex;
align-items: center;
justify-content: flex-end;
min-width: 0;
}
.menubar-follow-mode-group {
display: inline-flex;
align-items: center;
gap: var(--gap-xs);
padding: 4px;
border: 1px solid var(--border-light);
border-radius: var(--radius);
background: var(--bg-0);
box-shadow: inset 0 1px 3px rgba(0,0,0,0.05), 0 1px 0 #FFF;
}
.menubar-follow-label {
padding: 0 6px 0 4px;
color: var(--text-muted);
font-size: 10px;
font-weight: 700;
letter-spacing: 0.08em;
}
.menubar-follow-btn {
min-width: 44px;
height: 24px;
padding: 0 9px;
border: 1px solid var(--border-color);
border-radius: var(--radius-sm);
background: linear-gradient(180deg, #FFFFFF 0%, #F0EDE5 100%);
color: var(--text-main);
font-size: 11px;
font-weight: 600;
cursor: pointer;
box-shadow: 0 1px 1px rgba(0,0,0,0.05), inset 0 1px 0 #FFF;
}
.menubar-follow-btn.active {
background: var(--accent-color);
color: #FFF;
border-color: #276B69;
box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 1px 3px rgba(59,139,136,0.3);
}
.menubar-follow-btn:active {
background: #E8E5DF;
box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
border-color: var(--border-light);
}
.menubar-follow-btn.active:active {
background: #2f7c79;
}
/* 严谨的物理走带区 */
.menubar-transport {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: flex;
align-items: center;
gap: var(--gap-xs);
padding: 4px;
border: 1px solid var(--border-light);
border-radius: var(--radius);
background: var(--bg-0);
box-shadow: inset 0 1px 3px rgba(0,0,0,0.05), 0 1px 0 #FFF;
pointer-events: auto;
}
.menubar-transport-btn {
min-width: 34px;
height: 24px;
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0 10px;
border: 1px solid var(--border-color);
border-radius: var(--radius-sm);
background: linear-gradient(180deg, #FFFFFF 0%, #F0EDE5 100%);
color: var(--text-main);
box-shadow: 0 1px 1px rgba(0,0,0,0.05), inset 0 1px 0 #FFF;
cursor: pointer;
transition: background 0.1s ease, transform 0.05s;
}
.menubar-transport-btn:active {
background: #E8E5DF;
box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
border-color: var(--border-light);
}
.menubar-transport-btn--play.is-playing {
background: var(--accent-color);
color: #FFF;
border-color: #276B69;
box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 1px 3px rgba(59,139,136,0.3);
}
.menubar-transport-btn--record {
background: var(--red);
color: #FFF;
border-color: #9C2E22;
box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 1px 3px rgba(201,66,52,0.3);
}
.menubar-transport-btn--record.is-recording {
filter: saturate(1.1) brightness(1.02);
}
.menubar-transport-btn:disabled {
opacity: 0.4;
cursor: not-allowed;
box-shadow: none;
}
.menubar-transport-glyph {
position: relative;
display: block;
width: 10px;
height: 10px;
}
.menubar-transport-glyph--prev::before,
.menubar-transport-glyph--next::before,
.menubar-transport-glyph--play::before,
.menubar-transport-glyph--play::after,
.menubar-transport-glyph--stop::before,
.menubar-transport-glyph--record::before {
content: "";
position: absolute;
}
.menubar-transport-glyph--prev::before {
top: 0; bottom: 0; left: 0; width: 2px; border-radius: 1px; background: currentColor;
}
.menubar-transport-glyph--prev::after {
content: ""; position: absolute; top: 50%; left: 3px; width: 0; height: 0;
border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-right: 7px solid currentColor;
transform: translateY(-50%);
}
.menubar-transport-glyph--next::before {
top: 0;
bottom: 0;
right: 0;
width: 2px;
border-radius: 1px;
background: currentColor;
}
.menubar-transport-glyph--next::after {
content: "";
position: absolute;
top: 50%;
right: 3px;
width: 0;
height: 0;
border-top: 5px solid transparent;
border-bottom: 5px solid transparent;
border-left: 7px solid currentColor;
transform: translateY(-50%);
}
.menubar-transport-glyph--play::before {
top: 50%; left: 1px; width: 0; height: 0;
border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid currentColor;
transform: translateY(-50%);
}
.menubar-transport-btn--play.is-playing .menubar-transport-glyph--play::before,
.menubar-transport-btn--play.is-playing .menubar-transport-glyph--play::after {
top: 0; width: 3px; height: 10px; border: 0; border-radius: 1px; background: currentColor; transform: none;
}
.menubar-transport-btn--play.is-playing .menubar-transport-glyph--play::before { left: 1px; }
.menubar-transport-btn--play.is-playing .menubar-transport-glyph--play::after { right: 1px; }
.menubar-transport-glyph--stop::before {
top: 1px;
left: 1px;
width: 8px;
height: 8px;
border-radius: 1px;
background: currentColor;
}
.menubar-transport-glyph--record::before {
top: 1px;
left: 1px;
width: 8px;
height: 8px;
border-radius: 50%;
background: currentColor;
box-shadow: 0 0 0 1px rgba(255,255,255,0.18);
}
/* 参考稿式分体磷光仪表屏 */
.menubar-readouts {
position: absolute;
top: 50%;
left: calc(50% + 110px);
transform: translateY(-50%);
display: flex;
align-items: center;
gap: 10px;
margin-left: 0;
pointer-events: auto;
}
.render-status {
padding: 2px 8px;
border-radius: var(--radius-sm);
font-family: 'JetBrains Mono', monospace;
font-size: 9px;
font-weight: 700;
white-space: nowrap;
border: 1px solid transparent;
transition: