@moheng-design/ui 2.0.0 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (172) hide show
  1. package/contracts/application-atomic/application-date-range-filter.ts +43 -0
  2. package/contracts/application-atomic/list-table-pagination.ts +17 -5
  3. package/contracts/application-atomic/search-field.ts +1 -1
  4. package/contracts/application-atomic/system-button.ts +5 -1
  5. package/contracts/application-module/content/application-page-header.ts +55 -6
  6. package/contracts/application-module/content/application-query-toolbar.ts +22 -6
  7. package/contracts/application-module/content/application-record-detail-body.ts +13 -3
  8. package/contracts/application-module/navigation/application-module-switcher.ts +11 -11
  9. package/contracts/application-module/navigation/application-primary-navigation.ts +75 -25
  10. package/contracts/application-module/navigation/application-secondary-navigation.ts +57 -6
  11. package/contracts/application-module/navigation/top-navigation-primary-bar.ts +24 -7
  12. package/contracts/application-module/overlays/application-detail-drawer.ts +16 -5
  13. package/contracts/application-module/overlays/application-form-dialog.ts +31 -6
  14. package/contracts/application-module/overlays/application-global-action-panel.ts +3 -3
  15. package/contracts/application-module/statistics/metrics.ts +9 -2
  16. package/contracts/foundation/actions/button.ts +5 -4
  17. package/contracts/foundation/data-content-layout/badge.ts +2 -1
  18. package/contracts/foundation/data-content-layout/card.ts +1 -1
  19. package/contracts/foundation/data-content-layout/table.ts +25 -1
  20. package/contracts/foundation/feedback-overlay/alert-dialog.ts +8 -3
  21. package/contracts/foundation/feedback-overlay/dialog.ts +14 -2
  22. package/contracts/foundation/feedback-overlay/sheet.ts +4 -2
  23. package/contracts/foundation/icon/icon-name.ts +3 -1
  24. package/contracts/foundation/input-selection/date-input.ts +39 -0
  25. package/contracts/foundation/input-selection/input.ts +2 -2
  26. package/contracts/foundation/navigation-command/pagination.ts +8 -4
  27. package/dist/components/application-atomic/ApplicationDateRangeFilter.js +112 -0
  28. package/dist/components/application-atomic/ApplicationDateRangeFilter.js.map +1 -0
  29. package/dist/components/application-atomic/ListTablePagination.js +45 -33
  30. package/dist/components/application-atomic/ListTablePagination.js.map +1 -1
  31. package/dist/components/application-atomic/SystemButton.js +2 -1
  32. package/dist/components/application-atomic/SystemButton.js.map +1 -1
  33. package/dist/components/application-module/content/ApplicationPageHeader.js +24 -9
  34. package/dist/components/application-module/content/ApplicationPageHeader.js.map +1 -1
  35. package/dist/components/application-module/content/ApplicationPageLayoutContainer.js +4 -2
  36. package/dist/components/application-module/content/ApplicationPageLayoutContainer.js.map +1 -1
  37. package/dist/components/application-module/content/ApplicationQueryToolbar.js +12 -10
  38. package/dist/components/application-module/content/ApplicationQueryToolbar.js.map +1 -1
  39. package/dist/components/application-module/content/ApplicationRecordDetailBody.js +20 -13
  40. package/dist/components/application-module/content/ApplicationRecordDetailBody.js.map +1 -1
  41. package/dist/components/application-module/navigation/ApplicationModuleSwitcher.js +5 -6
  42. package/dist/components/application-module/navigation/ApplicationModuleSwitcher.js.map +1 -1
  43. package/dist/components/application-module/navigation/ApplicationPrimaryNavigation.js +39 -36
  44. package/dist/components/application-module/navigation/ApplicationPrimaryNavigation.js.map +1 -1
  45. package/dist/components/application-module/navigation/ApplicationSecondaryNavigation.js +29 -1
  46. package/dist/components/application-module/navigation/ApplicationSecondaryNavigation.js.map +1 -1
  47. package/dist/components/application-module/navigation/TopNavigationPrimaryBar.js +6 -6
  48. package/dist/components/application-module/navigation/TopNavigationPrimaryBar.js.map +1 -1
  49. package/dist/components/application-module/overlays/ApplicationDetailDrawer.js +7 -7
  50. package/dist/components/application-module/overlays/ApplicationDetailDrawer.js.map +1 -1
  51. package/dist/components/application-module/overlays/ApplicationFormDialog.js +19 -3
  52. package/dist/components/application-module/overlays/ApplicationFormDialog.js.map +1 -1
  53. package/dist/components/application-module/overlays/ApplicationGlobalActionPanel.js.map +1 -1
  54. package/dist/components/application-module/statistics/ApplicationMetricStrip.js +2 -1
  55. package/dist/components/application-module/statistics/ApplicationMetricStrip.js.map +1 -1
  56. package/dist/components/foundation/data-content-layout/Table.js +108 -83
  57. package/dist/components/foundation/data-content-layout/Table.js.map +1 -1
  58. package/dist/components/foundation/feedback-overlay/AlertDialog.js +8 -4
  59. package/dist/components/foundation/feedback-overlay/AlertDialog.js.map +1 -1
  60. package/dist/components/foundation/feedback-overlay/Dialog.js +6 -2
  61. package/dist/components/foundation/feedback-overlay/Dialog.js.map +1 -1
  62. package/dist/components/foundation/feedback-overlay/Sheet.js.map +1 -1
  63. package/dist/components/foundation/input-selection/DateInput.js +70 -0
  64. package/dist/components/foundation/input-selection/DateInput.js.map +1 -0
  65. package/dist/components/foundation/navigation-command/Pagination.js +10 -5
  66. package/dist/components/foundation/navigation-command/Pagination.js.map +1 -1
  67. package/dist/icon/glyphs.js +2 -0
  68. package/dist/icon/glyphs.js.map +1 -1
  69. package/dist/index.js +4 -0
  70. package/dist/index.js.map +1 -1
  71. package/dist/internal/CloseButton.js +7 -1
  72. package/dist/internal/CloseButton.js.map +1 -1
  73. package/dist/internal/date.js +8 -0
  74. package/dist/internal/date.js.map +1 -1
  75. package/dist/styles.css +1104 -434
  76. package/dist/tokens.css +126 -61
  77. package/dist-types/contracts/application-atomic/application-date-range-filter.d.ts +36 -0
  78. package/dist-types/contracts/application-atomic/application-date-range-filter.d.ts.map +1 -0
  79. package/dist-types/contracts/application-atomic/list-table-pagination.d.ts +12 -2
  80. package/dist-types/contracts/application-atomic/list-table-pagination.d.ts.map +1 -1
  81. package/dist-types/contracts/application-atomic/search-field.d.ts +1 -1
  82. package/dist-types/contracts/application-atomic/system-button.d.ts +5 -1
  83. package/dist-types/contracts/application-atomic/system-button.d.ts.map +1 -1
  84. package/dist-types/contracts/application-module/content/application-page-header.d.ts +51 -6
  85. package/dist-types/contracts/application-module/content/application-page-header.d.ts.map +1 -1
  86. package/dist-types/contracts/application-module/content/application-query-toolbar.d.ts +22 -6
  87. package/dist-types/contracts/application-module/content/application-query-toolbar.d.ts.map +1 -1
  88. package/dist-types/contracts/application-module/content/application-record-detail-body.d.ts +12 -3
  89. package/dist-types/contracts/application-module/content/application-record-detail-body.d.ts.map +1 -1
  90. package/dist-types/contracts/application-module/navigation/application-module-switcher.d.ts +8 -10
  91. package/dist-types/contracts/application-module/navigation/application-module-switcher.d.ts.map +1 -1
  92. package/dist-types/contracts/application-module/navigation/application-primary-navigation.d.ts +54 -22
  93. package/dist-types/contracts/application-module/navigation/application-primary-navigation.d.ts.map +1 -1
  94. package/dist-types/contracts/application-module/navigation/application-secondary-navigation.d.ts +43 -6
  95. package/dist-types/contracts/application-module/navigation/application-secondary-navigation.d.ts.map +1 -1
  96. package/dist-types/contracts/application-module/navigation/top-navigation-primary-bar.d.ts +19 -7
  97. package/dist-types/contracts/application-module/navigation/top-navigation-primary-bar.d.ts.map +1 -1
  98. package/dist-types/contracts/application-module/overlays/application-detail-drawer.d.ts +9 -4
  99. package/dist-types/contracts/application-module/overlays/application-detail-drawer.d.ts.map +1 -1
  100. package/dist-types/contracts/application-module/overlays/application-form-dialog.d.ts +29 -6
  101. package/dist-types/contracts/application-module/overlays/application-form-dialog.d.ts.map +1 -1
  102. package/dist-types/contracts/application-module/overlays/application-global-action-panel.d.ts +3 -3
  103. package/dist-types/contracts/application-module/statistics/metrics.d.ts +7 -1
  104. package/dist-types/contracts/application-module/statistics/metrics.d.ts.map +1 -1
  105. package/dist-types/contracts/foundation/actions/button.d.ts +5 -4
  106. package/dist-types/contracts/foundation/actions/button.d.ts.map +1 -1
  107. package/dist-types/contracts/foundation/data-content-layout/badge.d.ts +2 -1
  108. package/dist-types/contracts/foundation/data-content-layout/badge.d.ts.map +1 -1
  109. package/dist-types/contracts/foundation/data-content-layout/card.d.ts +1 -1
  110. package/dist-types/contracts/foundation/data-content-layout/table.d.ts +23 -1
  111. package/dist-types/contracts/foundation/data-content-layout/table.d.ts.map +1 -1
  112. package/dist-types/contracts/foundation/feedback-overlay/alert-dialog.d.ts +8 -3
  113. package/dist-types/contracts/foundation/feedback-overlay/alert-dialog.d.ts.map +1 -1
  114. package/dist-types/contracts/foundation/feedback-overlay/dialog.d.ts +13 -2
  115. package/dist-types/contracts/foundation/feedback-overlay/dialog.d.ts.map +1 -1
  116. package/dist-types/contracts/foundation/feedback-overlay/sheet.d.ts +4 -2
  117. package/dist-types/contracts/foundation/feedback-overlay/sheet.d.ts.map +1 -1
  118. package/dist-types/contracts/foundation/icon/icon-name.d.ts +2 -2
  119. package/dist-types/contracts/foundation/icon/icon-name.d.ts.map +1 -1
  120. package/dist-types/contracts/foundation/input-selection/date-input.d.ts +32 -0
  121. package/dist-types/contracts/foundation/input-selection/date-input.d.ts.map +1 -0
  122. package/dist-types/contracts/foundation/input-selection/input.d.ts +2 -2
  123. package/dist-types/contracts/foundation/navigation-command/pagination.d.ts +8 -4
  124. package/dist-types/contracts/foundation/navigation-command/pagination.d.ts.map +1 -1
  125. package/dist-types/src/components/application-atomic/ApplicationDateRangeFilter.d.ts +13 -0
  126. package/dist-types/src/components/application-atomic/ApplicationDateRangeFilter.d.ts.map +1 -0
  127. package/dist-types/src/components/application-atomic/ListTablePagination.d.ts +11 -13
  128. package/dist-types/src/components/application-atomic/ListTablePagination.d.ts.map +1 -1
  129. package/dist-types/src/components/application-atomic/SystemButton.d.ts.map +1 -1
  130. package/dist-types/src/components/application-module/content/ApplicationPageHeader.d.ts +10 -4
  131. package/dist-types/src/components/application-module/content/ApplicationPageHeader.d.ts.map +1 -1
  132. package/dist-types/src/components/application-module/content/ApplicationPageLayoutContainer.d.ts +4 -0
  133. package/dist-types/src/components/application-module/content/ApplicationPageLayoutContainer.d.ts.map +1 -1
  134. package/dist-types/src/components/application-module/content/ApplicationQueryToolbar.d.ts +8 -2
  135. package/dist-types/src/components/application-module/content/ApplicationQueryToolbar.d.ts.map +1 -1
  136. package/dist-types/src/components/application-module/content/ApplicationRecordDetailBody.d.ts +1 -10
  137. package/dist-types/src/components/application-module/content/ApplicationRecordDetailBody.d.ts.map +1 -1
  138. package/dist-types/src/components/application-module/navigation/ApplicationModuleSwitcher.d.ts +7 -4
  139. package/dist-types/src/components/application-module/navigation/ApplicationModuleSwitcher.d.ts.map +1 -1
  140. package/dist-types/src/components/application-module/navigation/ApplicationPrimaryNavigation.d.ts +13 -20
  141. package/dist-types/src/components/application-module/navigation/ApplicationPrimaryNavigation.d.ts.map +1 -1
  142. package/dist-types/src/components/application-module/navigation/ApplicationSecondaryNavigation.d.ts +13 -3
  143. package/dist-types/src/components/application-module/navigation/ApplicationSecondaryNavigation.d.ts.map +1 -1
  144. package/dist-types/src/components/application-module/navigation/TopNavigationPrimaryBar.d.ts +10 -4
  145. package/dist-types/src/components/application-module/navigation/TopNavigationPrimaryBar.d.ts.map +1 -1
  146. package/dist-types/src/components/application-module/overlays/ApplicationDetailDrawer.d.ts +9 -3
  147. package/dist-types/src/components/application-module/overlays/ApplicationDetailDrawer.d.ts.map +1 -1
  148. package/dist-types/src/components/application-module/overlays/ApplicationFormDialog.d.ts +2 -2
  149. package/dist-types/src/components/application-module/overlays/ApplicationFormDialog.d.ts.map +1 -1
  150. package/dist-types/src/components/application-module/overlays/ApplicationGlobalActionPanel.d.ts +2 -2
  151. package/dist-types/src/components/application-module/statistics/ApplicationMetricStrip.d.ts.map +1 -1
  152. package/dist-types/src/components/foundation/data-content-layout/Table.d.ts +5 -5
  153. package/dist-types/src/components/foundation/data-content-layout/Table.d.ts.map +1 -1
  154. package/dist-types/src/components/foundation/feedback-overlay/AlertDialog.d.ts +7 -0
  155. package/dist-types/src/components/foundation/feedback-overlay/AlertDialog.d.ts.map +1 -1
  156. package/dist-types/src/components/foundation/feedback-overlay/Dialog.d.ts +4 -1
  157. package/dist-types/src/components/foundation/feedback-overlay/Dialog.d.ts.map +1 -1
  158. package/dist-types/src/components/foundation/feedback-overlay/Sheet.d.ts +2 -1
  159. package/dist-types/src/components/foundation/feedback-overlay/Sheet.d.ts.map +1 -1
  160. package/dist-types/src/components/foundation/input-selection/DateInput.d.ts +13 -0
  161. package/dist-types/src/components/foundation/input-selection/DateInput.d.ts.map +1 -0
  162. package/dist-types/src/components/foundation/navigation-command/Pagination.d.ts +6 -1
  163. package/dist-types/src/components/foundation/navigation-command/Pagination.d.ts.map +1 -1
  164. package/dist-types/src/icon/glyphs.d.ts.map +1 -1
  165. package/dist-types/src/index.d.ts +7 -3
  166. package/dist-types/src/index.d.ts.map +1 -1
  167. package/dist-types/src/internal/CloseButton.d.ts +11 -1
  168. package/dist-types/src/internal/CloseButton.d.ts.map +1 -1
  169. package/dist-types/src/internal/date.d.ts +2 -0
  170. package/dist-types/src/internal/date.d.ts.map +1 -1
  171. package/package.json +18 -18
  172. package/tokens.json +478 -128
package/dist/styles.css CHANGED
@@ -37,6 +37,7 @@
37
37
  /* 尊重系统的减少动效偏好。库内所有动画一律受此约束。 */
38
38
  @media (prefers-reduced-motion: reduce) {
39
39
  .mh-skeleton__bar,
40
+ .mh-table__trailing-row .mh-table__trailing-cell::after,
40
41
  .mh-spinner {
41
42
  animation: none;
42
43
  }
@@ -79,6 +80,15 @@
79
80
  color var(--ui-duration-fast) var(--ui-ease-standard);
80
81
  }
81
82
 
83
+ /* kit 弹窗与抽屉页头的关闭键(188:613):32×32、圆角 12、透明底,
84
+ * 叉号描边取文字1(kit 资产 stroke #1F1E1A),不是 small 档的 label 色。 */
85
+ .mh-close-button[data-size='medium'] {
86
+ inline-size: var(--ds-control-height-32);
87
+ block-size: var(--ds-control-height-32);
88
+ border-radius: var(--ds-radius-control);
89
+ color: var(--ds-color-text);
90
+ }
91
+
82
92
  .mh-close-button > svg {
83
93
  /* 16 是 Icon 的登记尺寸之一(顶栏档)。 */
84
94
  inline-size: var(--ds-space-4);
@@ -279,8 +289,9 @@
279
289
  /* ── src/components/foundation/actions/Button.css ────────────────────── */
280
290
 
281
291
  @layer moheng.components {
282
- /* 已登记契约:14/20 字号、12px 行内内边距、4px 图标间隙、16px 圆角、32px 默认高度。
283
- * 16px 圆角在 32px 高度下使等宽图标按钮自然成圆 —— 系统内没有独立的 pill / circle token。 */
292
+ /* 已登记契约:14/20 字号、12px 行内内边距、4px 图标间隙、32px 默认高度。
293
+ * 圆角取控件角色 --ds-radius-control(12px,GAP Design kit「圆角12」,round-01 ·
294
+ * token/button/radius)。此前是 16px,使等宽图标按钮成圆;kit 的图标按钮同为 12 圆角方形。 */
284
295
  .mh-button {
285
296
  /* 高度收敛为一个局部变量:iconOnly 的宽度直接复用它,
286
297
  * 四档尺寸各自只改这一处,不必为 width 再写四条规则。 */
@@ -294,7 +305,7 @@
294
305
  block-size: var(--mh-button-height);
295
306
  padding-inline: var(--ds-space-3);
296
307
  border: 1px solid transparent;
297
- border-radius: var(--ds-radius-16);
308
+ border-radius: var(--ds-radius-control);
298
309
  font-family: var(--ds-font-family);
299
310
  font-size: var(--ds-font-size-14);
300
311
  line-height: var(--ds-line-height-20);
@@ -370,6 +381,15 @@
370
381
  border-color: transparent;
371
382
  }
372
383
 
384
+ /* 描边危险档:白底、1px 危险色描边、危险色文字 —— GAP Design kit「按钮 / 危险」。
385
+ * 用于与次要按钮并排的删除类动作(round-01 · source/delete-button/style);
386
+ * 实心 destructive 留给确认弹窗里那个不可逆的最终动作。 */
387
+ .mh-button[data-variant='destructive-outline'] {
388
+ background: var(--ds-color-surface);
389
+ color: var(--ds-color-danger);
390
+ border-color: var(--ds-color-danger);
391
+ }
392
+
373
393
  /* link 是行内跳转语义:无内边距、带下划线,不参与按钮几何。 */
374
394
  .mh-button[data-variant='link'] {
375
395
  background: transparent;
@@ -392,6 +412,14 @@
392
412
  background: color-mix(in srgb, var(--ds-color-danger) 88%, var(--ds-color-text));
393
413
  }
394
414
 
415
+ .mh-button[data-variant='destructive-outline']:hover:not(:disabled, [aria-disabled='true']) {
416
+ background: color-mix(in srgb, var(--ds-color-danger) 6%, var(--ds-color-surface));
417
+ }
418
+
419
+ .mh-button[data-variant='destructive-outline']:active:not(:disabled, [aria-disabled='true']) {
420
+ background: color-mix(in srgb, var(--ds-color-danger) 10%, var(--ds-color-surface));
421
+ }
422
+
395
423
  .mh-button[data-variant='secondary']:hover:not(:disabled, [aria-disabled='true']),
396
424
  .mh-button[data-variant='outline']:hover:not(:disabled, [aria-disabled='true']),
397
425
  .mh-button[data-variant='ghost']:hover:not(:disabled, [aria-disabled='true']) {
@@ -442,7 +470,8 @@
442
470
  }
443
471
 
444
472
  .mh-button[data-variant='secondary']:is(:disabled, [aria-disabled='true']),
445
- .mh-button[data-variant='outline']:is(:disabled, [aria-disabled='true']) {
473
+ .mh-button[data-variant='outline']:is(:disabled, [aria-disabled='true']),
474
+ .mh-button[data-variant='destructive-outline']:is(:disabled, [aria-disabled='true']) {
446
475
  background: transparent;
447
476
  border-color: var(--ds-color-border);
448
477
  }
@@ -471,9 +500,9 @@
471
500
  flex-direction: column;
472
501
  }
473
502
 
474
- /* 未拼接:各自保留完整圆角,以一个间距档分开。 */
503
+ /* 未拼接:各自保留完整圆角。间距 4px 取自 GAP Design kit「间距4」(round-01 · token/button-group/gap)。 */
475
504
  .mh-button-group:not([data-attached]) {
476
- gap: var(--ds-space-2);
505
+ gap: var(--ds-space-1);
477
506
  }
478
507
 
479
508
  /* ── 拼接态 ──────────────────────────────────────────────────
@@ -529,7 +558,7 @@
529
558
  min-inline-size: var(--mh-toggle-height);
530
559
  padding-inline: var(--ds-space-3);
531
560
  border: 1px solid transparent;
532
- border-radius: var(--ds-radius-16);
561
+ border-radius: var(--ds-radius-control);
533
562
  background: transparent;
534
563
  color: var(--ds-color-text);
535
564
  font-family: var(--ds-font-family);
@@ -608,7 +637,7 @@
608
637
  box-sizing: border-box;
609
638
  block-size: var(--mh-toggle-group-height);
610
639
  padding: var(--mh-toggle-group-inset);
611
- border-radius: var(--ds-radius-16);
640
+ border-radius: var(--ds-radius-control);
612
641
  background: var(--ds-color-surface-subtle);
613
642
  }
614
643
 
@@ -633,7 +662,7 @@
633
662
  min-inline-size: calc(var(--mh-toggle-group-height) - var(--mh-toggle-group-inset) * 2);
634
663
  padding-inline: var(--ds-space-3);
635
664
  border: none;
636
- border-radius: var(--ds-radius-16);
665
+ border-radius: var(--ds-radius-control);
637
666
  background: transparent;
638
667
  color: var(--ds-color-text-secondary);
639
668
  font-family: var(--ds-font-family);
@@ -751,20 +780,18 @@
751
780
  /* ── src/components/foundation/data-content-layout/Badge.css ─────────── */
752
781
 
753
782
  @layer moheng.components {
754
- /* 20px 高、4px 圆角、12/16 字号。
755
- *
756
- * 20 不是标尺档位 —— 控件高度标尺是 24/28/32/40,徽标不是可点击控件,不该混进去。
757
- * 它是「一行 12/16 文字 + 上下各半档留白」,写成加法比写死 20px 更说明来历,
758
- * 也满足 no-raw-px-value 对 height 的限制。 */
783
+ /* 24px 高、20px 圆角、左右 10 上下 4、12/16 字号 —— GAP Design kit「标签 / 常规」
784
+ * (round-01 · badge/shape)。高度不写死:16 行高 + 上下各 4 自然得 24,
785
+ * 徽标不是可点击控件,不混进 24/28/32/40 的控件高度标尺。 */
759
786
  .mh-badge {
760
787
  display: inline-flex;
761
788
  align-items: center;
762
789
  gap: var(--ds-space-1);
763
790
  box-sizing: border-box;
764
- block-size: calc(var(--ds-line-height-16) + var(--ds-space-1));
765
- padding-inline: var(--ds-space-2);
766
- border: 1px solid transparent;
767
- border-radius: var(--ds-radius-4);
791
+ padding: var(--ds-space-1) var(--ds-spacing-10);
792
+ /* 不用透明边框占位:边框会把高度撑到 26。描边档改用内阴影画,不占盒尺寸。 */
793
+ border: none;
794
+ border-radius: var(--ds-radius-tag);
768
795
  font-family: var(--ds-font-family);
769
796
  font-size: var(--ds-font-size-12);
770
797
  line-height: var(--ds-line-height-16);
@@ -779,8 +806,10 @@
779
806
  * 描边独立于前景,是 04 · D3 的裁决:源实现里 outline 变体的边框直接取前景色,
780
807
  * 而 warning 的前景为了对比度取的是中性灰 —— 于是 outline warning 变成灰边灰字,
781
808
  * 与 neutral 无法区分,tone 的语义就丢了。拆开后描边一律走 tone 的语义色。 */
809
+ /* 底色一律为同色 10% 透明(kit「辅助色/*透明」);中性档是文字色 6%(kit「中性背景」),
810
+ * 与 --ds-color-hover-neutral 同式同值。 */
782
811
  .mh-badge[data-tone='neutral'] {
783
- --mh-badge-bg: var(--ds-color-bg-3);
812
+ --mh-badge-bg: var(--ds-color-hover-neutral);
784
813
  --mh-badge-fg: var(--ds-color-text-secondary);
785
814
  --mh-badge-border: var(--ds-color-text-secondary);
786
815
  }
@@ -792,15 +821,16 @@
792
821
  }
793
822
 
794
823
  .mh-badge[data-tone='success'] {
795
- --mh-badge-bg: color-mix(in srgb, var(--ds-color-success) 12%, transparent);
824
+ --mh-badge-bg: color-mix(in srgb, var(--ds-color-success) 10%, transparent);
796
825
  --mh-badge-fg: var(--ds-color-success);
797
826
  --mh-badge-border: var(--ds-color-success);
798
827
  }
799
828
 
800
- /* 淡橙底上用橙字对比度不足,前景改中性灰是合理的无障碍处理 —— 但描边不跟着改。 */
829
+ /* 前景此前取中性灰(淡橙底上橙字对比度不足)。kit 的「橙」标签文字与底色同为橙色系,
830
+ * 警示色已由 #ff9e00 调深到 #ff7b00,按 kit 改回语义色(round-01 · badge/warning/color)。 */
801
831
  .mh-badge[data-tone='warning'] {
802
- --mh-badge-bg: color-mix(in srgb, var(--ds-color-warning) 14%, transparent);
803
- --mh-badge-fg: var(--ds-color-fg-3);
832
+ --mh-badge-bg: color-mix(in srgb, var(--ds-color-warning) 10%, transparent);
833
+ --mh-badge-fg: var(--ds-color-warning);
804
834
  --mh-badge-border: var(--ds-color-warning);
805
835
  }
806
836
 
@@ -818,7 +848,7 @@
818
848
 
819
849
  .mh-badge[data-variant='outline'] {
820
850
  background: transparent;
821
- border-color: var(--mh-badge-border);
851
+ box-shadow: inset 0 0 0 1px var(--mh-badge-border);
822
852
  }
823
853
  }
824
854
 
@@ -884,7 +914,7 @@
884
914
  box-sizing: border-box;
885
915
  padding: var(--mh-card-rhythm);
886
916
  border: 1px solid var(--ds-color-border);
887
- border-radius: var(--ds-radius-16);
917
+ border-radius: var(--ds-radius-card);
888
918
  background: var(--ds-color-surface);
889
919
  font-family: var(--ds-font-family);
890
920
  transition: border-color var(--ui-duration-fast) var(--ui-ease-standard);
@@ -1597,10 +1627,18 @@
1597
1627
 
1598
1628
  @layer moheng.components {
1599
1629
  .mh-table {
1600
- /* 单元格内边距是一个变量,密度分档与响应式压缩都只改它一处。 */
1601
- --mh-table-cell-padding: var(--ds-space-2) var(--ds-space-3);
1602
- /* 选择列 40px 宽:16px 方框加两侧内边距,够点又不浪费横向空间。 */
1603
- --mh-table-select-width: 40px;
1630
+ /* 单元格内边距是一个变量,密度分档与响应式压缩都只改它一处。
1631
+ * 几何取自 GAP Design kit「列表」页(round-01 · table/*):表体四边 16,
1632
+ * 表头上下 12、左右 16 —— 12 + 20 行高 + 12 = 44 的表头高度由此自然得出。 */
1633
+ --mh-table-cell-padding: var(--ds-space-4);
1634
+ --mh-table-head-padding: var(--ds-space-3) var(--ds-space-4);
1635
+ /* 表体行最小高度 56:kit 表体单元格 min-height。单行内容 16 + 20 + 16 = 52 不足,
1636
+ * 由它撑到 56;两行内容(20 + 4 + 16)自然得 72。版式常量,不在控件高度标尺上。 */
1637
+ --mh-table-row-min-height: 56px;
1638
+ /* 选择列 48px 宽:kit 选择列宽度,16px 方框加两侧 16 内边距。 */
1639
+ --mh-table-select-width: 48px;
1640
+ /* 固定列左缘的渐隐阴影宽度,kit 为 16px。 */
1641
+ --mh-table-fixed-shadow-width: var(--ds-space-4);
1604
1642
  /* 列宽的动态值入口。契约里 column.width 是任意值(数字按 px,字符串原样),
1605
1643
  * 由 cssVars 逐列写在 <th> 上覆盖本处默认;未设则 auto,由表格自行分配。
1606
1644
  *
@@ -1617,6 +1655,8 @@
1617
1655
 
1618
1656
  .mh-table[data-density='sm'] {
1619
1657
  --mh-table-cell-padding: var(--ds-space-2);
1658
+ --mh-table-head-padding: var(--ds-space-2);
1659
+ --mh-table-row-min-height: auto;
1620
1660
  }
1621
1661
 
1622
1662
  .mh-table__table {
@@ -1626,14 +1666,40 @@
1626
1666
  line-height: var(--ds-line-height-20);
1627
1667
  }
1628
1668
 
1669
+ /* 表头底色是 kit 的「导航背景」= --ds-color-canvas,与页面底(surface-subtle)不同档。 */
1629
1670
  .mh-table__header-row {
1630
- background: var(--ds-color-surface-subtle);
1671
+ background: var(--ds-color-canvas);
1631
1672
  }
1632
1673
 
1674
+ /* 行分隔线是 0.5px 内阴影(--ds-hairline,见 foundation-extend.css),不是 1px 边框。 */
1633
1675
  .mh-table__cell {
1634
1676
  padding: var(--mh-table-cell-padding);
1635
- border-block-end: 1px solid var(--ds-color-divider);
1677
+ box-shadow: inset 0 calc(var(--ds-hairline) * -1) 0 var(--ds-color-divider);
1636
1678
  color: var(--ds-color-text);
1679
+ vertical-align: top;
1680
+ }
1681
+
1682
+ .mh-table__row > .mh-table__cell {
1683
+ block-size: var(--mh-table-row-min-height);
1684
+ box-sizing: border-box;
1685
+ }
1686
+
1687
+ /* 选择列的方框与单行文字的首行居中对齐:(56 - 16) / 2 = 20,即 kit 的「间距20」。 */
1688
+ .mh-table__row > .mh-table__cell--select {
1689
+ padding-block: var(--ds-spacing-20);
1690
+ }
1691
+
1692
+ .mh-table__header-row > .mh-table__cell {
1693
+ padding: var(--mh-table-head-padding);
1694
+ background: var(--ds-color-canvas);
1695
+ vertical-align: middle;
1696
+ }
1697
+
1698
+ /* 表头列间竖线:kit「分割线-右」,最后一列不画。 */
1699
+ .mh-table__header-row > .mh-table__cell:not(:last-child) {
1700
+ box-shadow:
1701
+ inset calc(var(--ds-hairline) * -1) 0 0 var(--ds-color-divider),
1702
+ inset 0 calc(var(--ds-hairline) * -1) 0 var(--ds-color-divider);
1637
1703
  }
1638
1704
 
1639
1705
  .mh-table__cell[data-align='right'] {
@@ -1699,6 +1765,86 @@
1699
1765
  padding: 0;
1700
1766
  }
1701
1767
 
1768
+ /* ── 固定列(column.fixed)────────────────────────────────────
1769
+ * sticky 定位,横向滚动时贴住表格左缘或右缘。底色必须实心,否则滚过的列会透出来。
1770
+ * 朝滚动内容一侧画 16px 渐隐,标示「这一列下面还压着内容」(kit 末列表头的
1771
+ * 渐变阴影)。只允许首列声明 left、末列声明 right,多列叠加偏移不支持(见契约)。 */
1772
+ .mh-table__cell[data-fixed] {
1773
+ position: sticky;
1774
+ z-index: 1;
1775
+ background: var(--ds-color-surface);
1776
+ }
1777
+
1778
+ .mh-table__header-row > .mh-table__cell[data-fixed] {
1779
+ z-index: 2;
1780
+ background: var(--ds-color-canvas);
1781
+ }
1782
+
1783
+ .mh-table__cell[data-fixed='right'] {
1784
+ inset-inline-end: 0;
1785
+ }
1786
+
1787
+ .mh-table__cell[data-fixed='left'] {
1788
+ inset-inline-start: 0;
1789
+ }
1790
+
1791
+ /* 有选择列时,选择列随首列一起固定,首列让出选择列的宽度。 */
1792
+ .mh-table[data-fixed-start] .mh-table__cell--select {
1793
+ position: sticky;
1794
+ inset-inline-start: 0;
1795
+ z-index: 1;
1796
+ background: var(--ds-color-surface);
1797
+ }
1798
+
1799
+ .mh-table[data-fixed-start] .mh-table__header-row > .mh-table__cell--select {
1800
+ z-index: 2;
1801
+ background: var(--ds-color-canvas);
1802
+ }
1803
+
1804
+ .mh-table[data-fixed-start] .mh-table__cell--select ~ .mh-table__cell[data-fixed='left'] {
1805
+ inset-inline-start: var(--mh-table-select-width);
1806
+ }
1807
+
1808
+ .mh-table__cell[data-fixed]::before {
1809
+ position: absolute;
1810
+ inset-block: 0;
1811
+ inline-size: var(--mh-table-fixed-shadow-width);
1812
+ pointer-events: none;
1813
+ content: '';
1814
+ }
1815
+
1816
+ .mh-table__cell[data-fixed='right']::before {
1817
+ inset-inline-start: calc(var(--mh-table-fixed-shadow-width) * -1);
1818
+ background: linear-gradient(to left, var(--ds-color-surface-subtle), transparent);
1819
+ box-shadow: inset calc(var(--ds-hairline) * -1) 0 0 var(--ds-color-divider);
1820
+ }
1821
+
1822
+ .mh-table__cell[data-fixed='left']::before {
1823
+ inset-inline-end: calc(var(--mh-table-fixed-shadow-width) * -1);
1824
+ background: linear-gradient(to right, var(--ds-color-surface-subtle), transparent);
1825
+ box-shadow: inset var(--ds-hairline) 0 0 var(--ds-color-divider);
1826
+ }
1827
+
1828
+ /* ── 通栏行(trailingRow)────────────────────────────────────
1829
+ * 数据行之后的一整行,横跨全部列。busy 时叠一层扫光,复用 Skeleton 的全局
1830
+ * keyframes(moheng.base 层只有一份,src/styles/layers.css)。 */
1831
+ .mh-table__trailing-cell {
1832
+ position: relative;
1833
+ overflow: hidden;
1834
+ color: var(--ds-color-text-secondary);
1835
+ text-align: center;
1836
+ }
1837
+
1838
+ .mh-table__trailing-row[data-busy] .mh-table__trailing-cell::after {
1839
+ position: absolute;
1840
+ inset: 0;
1841
+ background: linear-gradient(90deg, transparent 0%, var(--ds-color-tint-accent) 50%, transparent 100%);
1842
+ background-size: 200% 100%;
1843
+ animation: mh-skeleton 1.4s var(--ui-ease-standard) infinite;
1844
+ pointer-events: none;
1845
+ content: '';
1846
+ }
1847
+
1702
1848
  /* ── priority 的响应式降级(04 · D2)────────────────────────────
1703
1849
  *
1704
1850
  * 契约声明 priority「决定窄视口下先压缩谁、先隐藏谁」,源实现却只输出了一个
@@ -1707,7 +1853,8 @@
1707
1853
  * 顺序照 02 §9 规则 8:**先压间距,再压列数,再压优先级**。 */
1708
1854
  @media (max-width: 1439px) {
1709
1855
  .mh-table {
1710
- --mh-table-cell-padding: var(--ds-space-2);
1856
+ --mh-table-cell-padding: var(--ds-space-3);
1857
+ --mh-table-head-padding: var(--ds-space-2) var(--ds-space-3);
1711
1858
  }
1712
1859
  }
1713
1860
 
@@ -1791,42 +1938,44 @@
1791
1938
  /* ── src/components/foundation/feedback-overlay/AlertDialog.css ──────── */
1792
1939
 
1793
1940
  @layer moheng.components {
1794
- /* 420px 是源实现写死的确认框宽度,未进 token 体系 —— 它是这一个组件的
1795
- * 版式常量,不是可复用的尺度,因此就近声明并注明来历。 */
1941
+ /* 圆角、最小高 240 与页头 / 主体 / 页脚的 kit 外观在 modal-frame.css,与 Dialog 共用。
1942
+ *
1943
+ * kit「弹窗 / 提示」(188:687)宽 680:最小高 240 里扣掉页头 48 与页脚 56,
1944
+ * 主体至少留 136 给居中的说明。680 只属于这一个组件,未进 token 体系,
1945
+ * 因此就近声明为版式常量。此前的 420px 是源实现写死的确认框宽度,2026-11-10
1946
+ * 由用户裁定照 kit 改为 680;视口更窄时由 Overlay 面板的 max-inline-size: 100% 收住。 */
1796
1947
  .mh-alert-dialog {
1797
- --mh-alert-dialog-width: 420px;
1948
+ --mh-alert-dialog-width: 680px;
1798
1949
 
1799
- box-sizing: border-box;
1800
1950
  inline-size: var(--mh-alert-dialog-width);
1801
- gap: var(--ds-space-3);
1802
- padding: var(--ds-space-4);
1803
- border-radius: var(--ds-radius-16);
1804
1951
  }
1805
1952
 
1806
- .mh-alert-dialog__header {
1807
- display: flex;
1808
- align-items: flex-start;
1809
- gap: var(--ds-space-2);
1953
+ /* 提示图标(224:1043)20px。kit 是黄色渐变的业务图标,本库用 circle-alert 配警示色,
1954
+ * destructive 也不换色 —— 见 AlertDialog.tsx 的文件头。 */
1955
+ .mh-alert-dialog__icon {
1956
+ color: var(--ds-color-warning);
1810
1957
  }
1811
1958
 
1812
1959
  .mh-alert-dialog__title {
1813
1960
  flex: 1;
1814
- color: var(--ds-color-text);
1815
- font-size: var(--ds-font-size-16);
1816
- line-height: var(--ds-line-height-24);
1817
- font-weight: var(--ds-font-weight-medium);
1961
+ min-inline-size: 0;
1818
1962
  }
1819
1963
 
1820
- .mh-alert-dialog__description {
1821
- color: var(--ds-color-text-secondary);
1822
- font-size: var(--ds-font-size-14);
1823
- line-height: var(--ds-line-height-20);
1964
+ /* 主体(188:691)把说明上下居中。列受影响对象的 children 横向铺满,
1965
+ * 不随说明一起收成内容宽度。 */
1966
+ .mh-alert-dialog__body {
1967
+ display: flex;
1968
+ flex-direction: column;
1969
+ justify-content: center;
1970
+ gap: var(--ds-space-3);
1824
1971
  }
1825
1972
 
1826
- .mh-alert-dialog__actions {
1827
- display: flex;
1828
- justify-content: flex-end;
1829
- gap: var(--ds-space-2);
1973
+ /* 说明 16/20 常规、文字1、居中(188:798)。 */
1974
+ .mh-alert-dialog__description {
1975
+ color: var(--ds-color-text);
1976
+ font-size: var(--ds-font-size-16);
1977
+ line-height: var(--ds-line-height-20);
1978
+ text-align: center;
1830
1979
  }
1831
1980
  }
1832
1981
 
@@ -1893,19 +2042,11 @@
1893
2042
  /* ── src/components/foundation/feedback-overlay/Dialog.css ───────────── */
1894
2043
 
1895
2044
  @layer moheng.components {
2045
+ /* 圆角、最小高与页头 / 主体 / 页脚的 kit 外观在 modal-frame.css,与 AlertDialog 共用。 */
1896
2046
  .mh-dialog {
1897
2047
  --mh-dialog-width: var(--application-form-dialog-width-small);
1898
2048
 
1899
2049
  inline-size: var(--mh-dialog-width);
1900
- border-radius: var(--ds-radius-16);
1901
- }
1902
-
1903
- .mh-dialog__header {
1904
- display: flex;
1905
- align-items: flex-start;
1906
- gap: var(--ds-space-2);
1907
- padding: var(--ds-space-4);
1908
- border-block-end: 1px solid var(--ds-color-divider);
1909
2050
  }
1910
2051
 
1911
2052
  .mh-dialog__heading {
@@ -1913,38 +2054,14 @@
1913
2054
  min-inline-size: 0;
1914
2055
  }
1915
2056
 
1916
- .mh-dialog__title {
1917
- color: var(--ds-color-text);
1918
- font-size: var(--ds-font-size-16);
1919
- line-height: var(--ds-line-height-24);
1920
- font-weight: var(--ds-font-weight-medium);
1921
- }
1922
-
1923
- /* 半档上边距:说明紧贴标题,但不粘在一起。 */
2057
+ /* 半档上边距:说明紧贴标题,但不粘在一起。kit 页头只画了标题;带说明时页头
2058
+ * 随内容长高,48 是最小高而不是定高。 */
1924
2059
  .mh-dialog__description {
1925
2060
  margin-block-start: calc(var(--ds-space-1) / 2);
1926
2061
  color: var(--ds-color-text-label);
1927
2062
  font-size: var(--ds-font-size-12);
1928
2063
  line-height: var(--ds-line-height-16);
1929
2064
  }
1930
-
1931
- /* 只有主体滚动,标题与页脚固定 —— min-block-size: 0 是让 flex 子项
1932
- * 能收缩到内容以下的关键,没有它这里根本不会出现滚动条。 */
1933
- .mh-dialog__body {
1934
- flex: 1;
1935
- min-block-size: 0;
1936
- padding: var(--ds-space-4);
1937
- overflow-y: auto;
1938
- }
1939
-
1940
- /* 取消在左、主操作在右。 */
1941
- .mh-dialog__footer {
1942
- display: flex;
1943
- justify-content: flex-end;
1944
- gap: var(--ds-space-2);
1945
- padding: var(--ds-space-3) var(--ds-space-4);
1946
- border-block-start: 1px solid var(--ds-color-divider);
1947
- }
1948
2065
  }
1949
2066
 
1950
2067
  /* ── src/components/foundation/feedback-overlay/Drawer.css ───────────── */
@@ -2051,6 +2168,96 @@
2051
2168
  }
2052
2169
  }
2053
2170
 
2171
+ /* ── src/components/foundation/feedback-overlay/modal-frame.css ──────── */
2172
+
2173
+ @layer moheng.components {
2174
+ /* Dialog 与 AlertDialog 共享的页头 / 主体 / 页脚 —— GAP Design kit「抽屉弹窗 / 弹窗」
2175
+ * 两个类型(默认 188:685、提示 188:687)共用同一套三段结构,只有页头间隔与主体排版不同。
2176
+ *
2177
+ * 写成一份分组选择器而不是两份逐字相同的规则:与 metric-card.css(04 · M1)同一条,
2178
+ * 发现第二处相同实现时先收敛。两个组件的类名照旧各用各的,消费方的 className 覆盖
2179
+ * 不受影响;各自独有的部分(宽度、标题下的说明、提示型的图标与居中正文)留在
2180
+ * Dialog.css / AlertDialog.css。
2181
+ *
2182
+ * 本文件按字典序排在两个组件文件之后,同权重时这里胜 —— 因此组件文件不得改写
2183
+ * 这里已声明的属性,差异一律写在本文件里(见提示型页头那一条)。 */
2184
+
2185
+ /* 面板:圆角 20(模态弹窗角色),最小高 240 —— 两个类型在 kit 里都标了 min-h 240。
2186
+ * 取 min(…, 100%):min-block-size 压过 Overlay 面板的 max-block-size: 100%,
2187
+ * 直接写 240 会在矮视口里把面板顶出视口,违反「绝不超出有效视口」。
2188
+ * 240 只属于这一族弹窗,未进 token 体系,就近声明为版式常量。 */
2189
+ .mh-dialog,
2190
+ .mh-alert-dialog {
2191
+ --mh-modal-frame-min-height: 240px;
2192
+
2193
+ min-block-size: min(var(--mh-modal-frame-min-height), 100%);
2194
+ border-radius: var(--ds-radius-dialog);
2195
+ }
2196
+
2197
+ /* 「弹窗标题」151:2541:最小高 48、内边距 8/12、导航背景色、底边 0.5px 分隔线。
2198
+ * 48 与 Drawer / Sheet 的头部同取页面内容区头高(token-layer.mjs 的登记豁免)。 */
2199
+ .mh-dialog__header,
2200
+ .mh-alert-dialog__header {
2201
+ display: flex;
2202
+ align-items: center;
2203
+ flex: 0 0 auto;
2204
+ gap: var(--ds-spacing-10);
2205
+ box-sizing: border-box;
2206
+ min-block-size: var(--application-content-header-height);
2207
+ padding: var(--ds-space-2) var(--ds-space-3);
2208
+ background: var(--ds-color-canvas);
2209
+ box-shadow: inset 0 calc(var(--ds-hairline) * -1) 0 var(--ds-color-divider);
2210
+ }
2211
+
2212
+ /* 提示型(188:688):图标、标题、关闭键之间是 8,比默认型的 10 窄一档。 */
2213
+ .mh-alert-dialog__header {
2214
+ gap: var(--ds-space-2);
2215
+ }
2216
+
2217
+ /* 标题 16/20 medium、文字1。 */
2218
+ .mh-dialog__title,
2219
+ .mh-alert-dialog__title {
2220
+ color: var(--ds-color-text);
2221
+ font-size: var(--ds-font-size-16);
2222
+ line-height: var(--ds-line-height-20);
2223
+ font-weight: var(--ds-font-weight-medium);
2224
+ }
2225
+
2226
+ /* 「内容插槽」188:629:与页头同底色,内边距 12。只有主体滚动,页头与页脚固定 ——
2227
+ * min-block-size: 0 是让 flex 子项能收缩到内容以下的关键,没有它这里根本不会
2228
+ * 出现滚动条。 */
2229
+ .mh-dialog__body,
2230
+ .mh-alert-dialog__body {
2231
+ flex: 1;
2232
+ min-block-size: 0;
2233
+ padding: var(--ds-space-3);
2234
+ background: var(--ds-color-canvas);
2235
+ overflow-y: auto;
2236
+ }
2237
+
2238
+ /* 「操作插槽」188:662:内边距 12、动作间隔 4、顶边 0.5px 分隔线,右对齐。 */
2239
+ .mh-dialog__footer,
2240
+ .mh-alert-dialog__footer {
2241
+ display: flex;
2242
+ align-items: center;
2243
+ justify-content: flex-end;
2244
+ flex: 0 0 auto;
2245
+ gap: var(--ds-space-1);
2246
+ padding: var(--ds-space-3);
2247
+ background: var(--ds-color-canvas);
2248
+ box-shadow: inset 0 var(--ds-hairline) 0 var(--ds-color-divider);
2249
+ }
2250
+
2251
+ /* 页脚左侧说明(203:1083):12/16 文字3,吃掉剩余宽度把动作挤到右边。 */
2252
+ .mh-dialog__footer-note {
2253
+ flex: 1;
2254
+ min-inline-size: 0;
2255
+ color: var(--ds-color-text-label);
2256
+ font-size: var(--ds-font-size-12);
2257
+ line-height: var(--ds-line-height-16);
2258
+ }
2259
+ }
2260
+
2054
2261
  /* ── src/components/foundation/feedback-overlay/Popover.css ──────────── */
2055
2262
 
2056
2263
  @layer moheng.components {
@@ -2491,7 +2698,7 @@
2491
2698
  block-size: var(--ds-control-height-32);
2492
2699
  padding: 0 var(--ds-space-3);
2493
2700
  border: 1px solid var(--ds-color-border);
2494
- border-radius: var(--ds-radius-8);
2701
+ border-radius: var(--ds-radius-control);
2495
2702
  background: var(--ds-color-surface);
2496
2703
  transition: border-color var(--ui-duration-fast) var(--ui-ease-standard);
2497
2704
  }
@@ -2582,6 +2789,82 @@
2582
2789
  }
2583
2790
  }
2584
2791
 
2792
+ /* ── src/components/foundation/input-selection/DateInput.css ─────────── */
2793
+
2794
+ @layer moheng.components {
2795
+ /* Popover 根默认按内容收缩;日期输入在表单里与 Input 一样占满一格。 */
2796
+ .mh-date-input {
2797
+ display: block;
2798
+ }
2799
+
2800
+ .mh-date-input > .mh-popover-root__trigger {
2801
+ display: block;
2802
+ }
2803
+
2804
+ /* 与 Input 同高同壳:32 高、12 圆角、1px 描边(GAP Design kit「输入选择」)。 */
2805
+ .mh-date-input__trigger {
2806
+ display: flex;
2807
+ align-items: center;
2808
+ justify-content: space-between;
2809
+ gap: var(--ds-space-2);
2810
+ box-sizing: border-box;
2811
+ inline-size: 100%;
2812
+ min-block-size: var(--ds-control-height-32);
2813
+ padding: 0 var(--ds-space-3);
2814
+ border: 1px solid var(--ds-color-border);
2815
+ border-radius: var(--ds-radius-control);
2816
+ background: var(--ds-color-surface);
2817
+ color: var(--ds-color-text);
2818
+ font-family: var(--ds-font-family);
2819
+ font-size: var(--ds-font-size-14);
2820
+ line-height: var(--ds-line-height-20);
2821
+ text-align: start;
2822
+ font-variant-numeric: tabular-nums;
2823
+ cursor: pointer;
2824
+ transition: border-color var(--ui-duration-fast) var(--ui-ease-standard);
2825
+ }
2826
+
2827
+ .mh-date-input__trigger[data-empty] .mh-date-input__value {
2828
+ color: var(--ds-color-text-placeholder);
2829
+ }
2830
+
2831
+ .mh-date-input__trigger[aria-expanded='true'] {
2832
+ border-color: var(--ds-color-focus);
2833
+ }
2834
+
2835
+ .mh-date-input__trigger:focus-visible {
2836
+ outline: var(--ds-focus-ring-width) solid var(--ds-color-focus);
2837
+ outline-offset: var(--ds-focus-ring-offset);
2838
+ border-color: var(--ds-color-focus);
2839
+ }
2840
+
2841
+ /* 失败态写在焦点规则之后:展开或聚焦时边框仍是 danger,与 Input 一致。 */
2842
+ .mh-date-input__trigger[data-invalid] {
2843
+ border-color: var(--ds-color-danger);
2844
+ }
2845
+
2846
+ .mh-date-input__trigger[data-invalid]:focus-visible {
2847
+ outline-color: var(--ds-color-danger);
2848
+ }
2849
+
2850
+ .mh-date-input__trigger:disabled {
2851
+ background: var(--ds-color-bg-3);
2852
+ color: var(--ds-color-disabled);
2853
+ cursor: not-allowed;
2854
+ }
2855
+
2856
+ .mh-date-input__value {
2857
+ overflow: hidden;
2858
+ text-overflow: ellipsis;
2859
+ white-space: nowrap;
2860
+ }
2861
+
2862
+ .mh-date-input__icon {
2863
+ flex: none;
2864
+ color: var(--ds-color-text-label);
2865
+ }
2866
+ }
2867
+
2585
2868
  /* ── src/components/foundation/input-selection/Field.css ─────────────── */
2586
2869
 
2587
2870
  @layer moheng.components {
@@ -2590,7 +2873,8 @@
2590
2873
  .mh-field {
2591
2874
  display: flex;
2592
2875
  flex-direction: column;
2593
- gap: var(--ds-space-1);
2876
+ /* 标签与控件间距 6(GAP Design kit「间距6」,业财平台 round-01 · editor/field/label-gap)。 */
2877
+ gap: var(--ds-spacing-6);
2594
2878
  }
2595
2879
 
2596
2880
  /* 跨列走 data-span 而不是调用方的内联 gridColumn(§1.7)。规则写在 Field 自己身上,
@@ -2618,7 +2902,7 @@
2618
2902
  /* ── src/components/foundation/input-selection/Input.css ─────────────── */
2619
2903
 
2620
2904
  @layer moheng.components {
2621
- /* 最小高度 32px,8px 圆角。焦点只在外层壳表达一次 —— InputGroup 会把
2905
+ /* 最小高度 32px,12px 圆角(--ds-radius-control,GAP Design kit)。焦点只在外层壳表达一次 —— InputGroup 会把
2622
2906
  * 这套边框剥掉并由外壳承担,见 InputGroup.css。 */
2623
2907
  .mh-input {
2624
2908
  box-sizing: border-box;
@@ -2626,7 +2910,7 @@
2626
2910
  min-block-size: var(--ds-control-height-32);
2627
2911
  padding: 0 var(--ds-space-3);
2628
2912
  border: 1px solid var(--ds-color-border);
2629
- border-radius: var(--ds-radius-8);
2913
+ border-radius: var(--ds-radius-control);
2630
2914
  background: var(--ds-color-surface);
2631
2915
  color: var(--ds-color-text);
2632
2916
  font-family: var(--ds-font-family);
@@ -2673,7 +2957,7 @@
2673
2957
  min-block-size: var(--ds-control-height-32);
2674
2958
  padding: 0 var(--ds-space-3);
2675
2959
  border: 1px solid var(--ds-color-border);
2676
- border-radius: var(--ds-radius-8);
2960
+ border-radius: var(--ds-radius-control);
2677
2961
  background: var(--ds-color-surface);
2678
2962
  color: var(--ds-color-text);
2679
2963
  transition: border-color var(--ui-duration-fast) var(--ui-ease-standard);
@@ -2759,7 +3043,7 @@
2759
3043
  inline-size: var(--ds-control-height-40);
2760
3044
  block-size: var(--ds-control-height-40);
2761
3045
  border: 1px solid var(--ds-color-border);
2762
- border-radius: var(--ds-radius-8);
3046
+ border-radius: var(--ds-radius-control);
2763
3047
  background: var(--ds-color-surface);
2764
3048
  color: var(--ds-color-text);
2765
3049
  font-family: var(--ds-font-family);
@@ -2825,7 +3109,7 @@
2825
3109
  block-size: var(--ds-control-height-32);
2826
3110
  padding: 0 var(--ds-space-3);
2827
3111
  border: 1px solid var(--ds-color-border);
2828
- border-radius: var(--ds-radius-8);
3112
+ border-radius: var(--ds-radius-control);
2829
3113
  background: var(--ds-color-surface);
2830
3114
  color: var(--ds-color-text);
2831
3115
  font-family: var(--ds-font-family);
@@ -2964,7 +3248,7 @@
2964
3248
  block-size: var(--ds-control-height-32);
2965
3249
  padding: 0 var(--ds-space-3);
2966
3250
  border: 1px solid var(--ds-color-border);
2967
- border-radius: var(--ds-radius-8);
3251
+ border-radius: var(--ds-radius-control);
2968
3252
  background: var(--ds-color-surface);
2969
3253
  color: var(--ds-color-text);
2970
3254
  font-family: var(--ds-font-family);
@@ -3260,7 +3544,7 @@
3260
3544
  inline-size: 100%;
3261
3545
  padding: var(--ds-space-2) var(--ds-space-3);
3262
3546
  border: 1px solid var(--ds-color-border);
3263
- border-radius: var(--ds-radius-8);
3547
+ border-radius: var(--ds-radius-control);
3264
3548
  background: var(--ds-color-surface);
3265
3549
  color: var(--ds-color-text);
3266
3550
  font-family: var(--ds-font-family);
@@ -3637,6 +3921,7 @@
3637
3921
  /* ── src/components/foundation/navigation-command/Pagination.css ─────── */
3638
3922
 
3639
3923
  @layer moheng.components {
3924
+ /* GAP Design kit「分页元素」:间隔 4,每一格 32×32、1px 线条描边、圆角 12、白底。 */
3640
3925
  .mh-pagination {
3641
3926
  display: flex;
3642
3927
  align-items: center;
@@ -3644,33 +3929,40 @@
3644
3929
  font-family: var(--ds-font-family);
3645
3930
  }
3646
3931
 
3647
- .mh-pagination__button {
3648
- box-sizing: border-box;
3649
- min-inline-size: var(--ds-control-height-28);
3650
- block-size: var(--ds-control-height-28);
3651
- padding-inline: var(--ds-space-2);
3652
- border: 1px solid transparent;
3653
- border-radius: var(--ds-radius-8);
3654
- background: transparent;
3655
- color: var(--ds-color-text-secondary);
3932
+ .mh-pagination__button,
3933
+ .mh-pagination__gap {
3934
+ display: inline-grid;
3935
+ place-items: center;
3936
+ flex: 0 0 auto;
3937
+ box-sizing: border-box;
3938
+ min-inline-size: var(--ds-control-height-32);
3939
+ block-size: var(--ds-control-height-32);
3940
+ padding-inline: var(--ds-spacing-6);
3941
+ border: 1px solid var(--ds-color-border);
3942
+ border-radius: var(--ds-radius-control);
3943
+ background: var(--ds-color-surface);
3944
+ }
3945
+
3946
+ /* 页码 14/20 medium 文字1;等宽数字:翻页时页码宽度不变,按钮不会左右跳。 */
3947
+ .mh-pagination__button {
3948
+ color: var(--ds-color-text);
3656
3949
  font-family: inherit;
3657
3950
  font-size: var(--ds-font-size-14);
3658
3951
  line-height: var(--ds-line-height-20);
3659
- /* 等宽数字:翻页时页码宽度不变,按钮不会左右跳。 */
3952
+ font-weight: var(--ds-font-weight-medium);
3660
3953
  font-variant-numeric: tabular-nums;
3661
3954
  cursor: pointer;
3662
3955
  }
3663
3956
 
3664
3957
  .mh-pagination__button:hover:not(:disabled):not([data-current]) {
3665
3958
  background: var(--ds-color-hover-neutral);
3666
- color: var(--ds-color-text);
3667
3959
  }
3668
3960
 
3669
- /* 当前页:淡强调色底 + 强调色描边 + 强调色文字。三重信号,不只靠颜色 ——
3961
+ /* 当前页:主色 6% 底 + 强调色描边 + 强调色文字(kit「点击」态)。三重信号,不只靠颜色 ——
3670
3962
  * 描边是那个在灰度下仍然可见的部分。 */
3671
3963
  .mh-pagination__button[data-current] {
3672
3964
  border-color: var(--ds-color-application-accent);
3673
- background: var(--ds-color-selected);
3965
+ background: var(--ds-color-tint-accent);
3674
3966
  color: var(--ds-color-application-accent);
3675
3967
  cursor: default;
3676
3968
  }
@@ -3686,9 +3978,7 @@
3686
3978
  }
3687
3979
 
3688
3980
  .mh-pagination__gap {
3689
- inline-size: var(--ds-space-5);
3690
- color: var(--ds-color-fg-1);
3691
- text-align: center;
3981
+ color: var(--ds-color-text-secondary);
3692
3982
  }
3693
3983
  }
3694
3984
 
@@ -3880,6 +4170,105 @@
3880
4170
  }
3881
4171
  }
3882
4172
 
4173
+ /* ── src/components/application-atomic/ApplicationDateRangeFilter.css ── */
4174
+
4175
+ @layer moheng.components {
4176
+ /* 触发器与 ApplicationFilterMenu 同一套外观:工具栏行高、控件圆角、生效态三重信号
4177
+ * (强调色描边 + 主色淡底 + 强调色文字)。工具栏主控制行里的控件要读起来是一排。 */
4178
+ .mh-date-range-filter__trigger {
4179
+ display: inline-flex;
4180
+ align-items: center;
4181
+ gap: var(--application-space-1);
4182
+ box-sizing: border-box;
4183
+ block-size: var(--application-toolbar-height);
4184
+ padding-inline: var(--application-space-3);
4185
+ border: 1px solid var(--application-border);
4186
+ border-radius: var(--application-radius-control);
4187
+ background: var(--application-surface);
4188
+ color: var(--application-text);
4189
+ font-family: var(--application-font-family);
4190
+ font-size: var(--application-font-size-body);
4191
+ line-height: var(--application-line-height-body);
4192
+ white-space: nowrap;
4193
+ font-variant-numeric: tabular-nums;
4194
+ cursor: pointer;
4195
+ transition:
4196
+ background var(--ui-duration-fast) var(--ui-ease-standard),
4197
+ border-color var(--ui-duration-fast) var(--ui-ease-standard);
4198
+ }
4199
+
4200
+ .mh-date-range-filter__trigger[data-applied] {
4201
+ border-color: var(--application-accent);
4202
+ background: var(--application-selected);
4203
+ color: var(--application-accent);
4204
+ }
4205
+
4206
+ .mh-date-range-filter__trigger:hover:not(:disabled):not([data-applied]) {
4207
+ background: var(--application-hover-neutral);
4208
+ }
4209
+
4210
+ .mh-date-range-filter__trigger:focus-visible {
4211
+ outline: var(--ds-focus-ring-width) solid var(--application-focus);
4212
+ outline-offset: var(--ds-focus-ring-offset);
4213
+ }
4214
+
4215
+ .mh-date-range-filter__trigger:disabled {
4216
+ color: var(--application-disabled);
4217
+ cursor: not-allowed;
4218
+ }
4219
+
4220
+ .mh-date-range-filter__panel {
4221
+ display: flex;
4222
+ flex-direction: column;
4223
+ gap: var(--application-space-3);
4224
+ padding: var(--application-space-3);
4225
+ font-family: var(--application-font-family);
4226
+ }
4227
+
4228
+ .mh-date-range-filter__calendars {
4229
+ display: flex;
4230
+ gap: var(--application-space-3);
4231
+ }
4232
+
4233
+ .mh-date-range-filter__side {
4234
+ display: flex;
4235
+ flex-direction: column;
4236
+ gap: var(--application-space-2);
4237
+ }
4238
+
4239
+ .mh-date-range-filter__side-title {
4240
+ display: flex;
4241
+ align-items: baseline;
4242
+ justify-content: space-between;
4243
+ gap: var(--application-space-2);
4244
+ color: var(--application-text);
4245
+ font-size: var(--application-font-size-body);
4246
+ line-height: var(--application-line-height-body);
4247
+ font-weight: var(--application-font-weight-medium);
4248
+ }
4249
+
4250
+ .mh-date-range-filter__side-value {
4251
+ color: var(--application-label);
4252
+ font-size: var(--application-font-size-meta);
4253
+ font-weight: var(--application-font-weight-regular);
4254
+ font-variant-numeric: tabular-nums;
4255
+ }
4256
+
4257
+ .mh-date-range-filter__footer {
4258
+ display: flex;
4259
+ align-items: center;
4260
+ justify-content: flex-end;
4261
+ gap: var(--application-space-2);
4262
+ }
4263
+
4264
+ .mh-date-range-filter__hint {
4265
+ flex: 1;
4266
+ color: var(--application-danger);
4267
+ font-size: var(--application-font-size-meta);
4268
+ line-height: var(--application-line-height-meta);
4269
+ }
4270
+ }
4271
+
3883
4272
  /* ── src/components/application-atomic/ApplicationFilterMenu.css ─────── */
3884
4273
 
3885
4274
  @layer moheng.components {
@@ -3887,7 +4276,7 @@
3887
4276
  display: inline-block;
3888
4277
  }
3889
4278
 
3890
- /* 触发器与 SearchField 同高(工具栏行高),同为 16px 圆角 ——
4279
+ /* 触发器与 SearchField 同高(工具栏行高),同为控件圆角 12px(GAP Design kit「筛选/选择」)——
3891
4280
  * 主控制行里的控件要读起来是一排。 */
3892
4281
  .mh-filter-menu__trigger {
3893
4282
  display: inline-flex;
@@ -3897,7 +4286,7 @@
3897
4286
  block-size: var(--application-toolbar-height);
3898
4287
  padding-inline: var(--application-space-3);
3899
4288
  border: 1px solid var(--application-border);
3900
- border-radius: var(--application-radius-16);
4289
+ border-radius: var(--application-radius-control);
3901
4290
  background: var(--application-surface);
3902
4291
  color: var(--application-text);
3903
4292
  font-family: var(--application-font-family);
@@ -4013,67 +4402,57 @@
4013
4402
 
4014
4403
  @layer moheng.components {
4015
4404
  .mh-list-table-pagination {
4405
+ /* 跳页框宽:「请输入」占位文字 + 左右 12 内边距 + 描边。版式常量,不在标尺上。 */
4406
+ --mh-list-table-pagination-jumper-width: 72px;
4407
+
4016
4408
  display: flex;
4017
4409
  align-items: center;
4018
4410
  justify-content: space-between;
4019
4411
  flex-wrap: wrap;
4020
- gap: var(--application-space-3);
4412
+ gap: var(--application-space-1);
4021
4413
  font-family: var(--application-font-family);
4022
4414
  }
4023
4415
 
4024
- /* 区间与总数用等宽数字:翻页时「第 21–40 条」的宽度不变,右侧控件不跟着抖。 */
4416
+ /* 摘要「每页 20 条,共 1,094 条数据」,12/20 三级文字色,吃掉剩余宽度把控件推到右侧
4417
+ * (kit 分页行,round-01 · pagination/summary/text)。等宽数字:总数变化时右侧控件不跟着抖。 */
4025
4418
  .mh-list-table-pagination__range {
4419
+ flex: 1 1 auto;
4420
+ min-inline-size: 0;
4026
4421
  color: var(--application-label);
4027
4422
  font-size: var(--application-font-size-meta);
4028
- line-height: var(--application-line-height-meta);
4423
+ line-height: var(--application-line-height-body);
4029
4424
  font-variant-numeric: tabular-nums;
4030
4425
  }
4031
4426
 
4427
+ /* kit 分页行里所有控件间隔 4。 */
4032
4428
  .mh-list-table-pagination__controls {
4033
4429
  display: flex;
4034
4430
  align-items: center;
4035
- gap: var(--application-space-2);
4431
+ flex-wrap: wrap;
4432
+ gap: var(--application-space-1);
4036
4433
  }
4037
4434
 
4038
4435
  /* 每页条数选择器复用 NativeSelect,只把它从「铺满一行」收成内容宽度 ——
4039
4436
  * 那个组件默认 width: 100%,是为表单里的整行控件设的。 */
4040
4437
  .mh-list-table-pagination__size {
4041
4438
  inline-size: auto;
4042
- block-size: var(--application-control-height-28);
4439
+ block-size: var(--application-control-height-32);
4043
4440
  }
4044
4441
 
4045
- .mh-list-table-pagination__step {
4046
- box-sizing: border-box;
4047
- block-size: var(--application-control-height-28);
4048
- padding-inline: var(--application-space-2);
4049
- border: 1px solid var(--application-border);
4050
- border-radius: var(--application-radius-8);
4051
- background: var(--application-surface);
4442
+ /* 「第 [ ] 页」:文字 14/20 文字1,与输入框间隔 4。 */
4443
+ .mh-list-table-pagination__jumper {
4444
+ display: inline-flex;
4445
+ align-items: center;
4446
+ gap: var(--application-space-1);
4052
4447
  color: var(--application-text);
4053
- font-family: var(--application-font-family);
4054
4448
  font-size: var(--application-font-size-body);
4055
4449
  line-height: var(--application-line-height-body);
4056
- cursor: pointer;
4057
- }
4058
-
4059
- .mh-list-table-pagination__step:hover:not(:disabled) {
4060
- background: var(--application-hover-neutral);
4061
- }
4062
-
4063
- .mh-list-table-pagination__step:focus-visible {
4064
- outline: var(--ds-focus-ring-width) solid var(--application-focus);
4065
- outline-offset: var(--ds-focus-ring-offset);
4066
- }
4067
-
4068
- .mh-list-table-pagination__step:disabled {
4069
- color: var(--application-disabled);
4070
- cursor: not-allowed;
4450
+ white-space: nowrap;
4071
4451
  }
4072
4452
 
4073
- .mh-list-table-pagination__position {
4074
- color: var(--application-text);
4075
- font-size: var(--application-font-size-body);
4076
- font-variant-numeric: tabular-nums;
4453
+ .mh-list-table-pagination__jumper-input {
4454
+ inline-size: var(--mh-list-table-pagination-jumper-width);
4455
+ block-size: var(--application-control-height-32);
4077
4456
  }
4078
4457
  }
4079
4458
 
@@ -4089,10 +4468,11 @@
4089
4468
  box-sizing: border-box;
4090
4469
  min-block-size: var(--application-toolbar-height);
4091
4470
  padding-inline: var(--application-space-3);
4092
- border: 1px solid transparent;
4093
- border-radius: var(--application-radius-16);
4094
- /* 静息态是一层极淡的文字色洗,不是描边输入框 —— 工具栏里它要退到后面去。 */
4095
- background: color-mix(in srgb, var(--application-text) 3%, transparent);
4471
+ border: 1px solid var(--application-border);
4472
+ border-radius: var(--application-radius-control);
4473
+ /* GAP Design kit「表单/输入」:白底、1px 描边、圆角 12(业财平台 round-01 ·
4474
+ * toolbar/search/style)。此前静息态是一层极淡的文字色洗、无可见描边。 */
4475
+ background: var(--application-surface);
4096
4476
  color: var(--application-text);
4097
4477
  transition:
4098
4478
  background var(--ui-duration-fast) var(--ui-ease-standard),
@@ -4100,7 +4480,7 @@
4100
4480
  }
4101
4481
 
4102
4482
  .mh-search-field:hover:not(:focus-within) {
4103
- background: color-mix(in srgb, var(--application-text) 4%, transparent);
4483
+ border-color: var(--application-muted);
4104
4484
  }
4105
4485
 
4106
4486
  .mh-search-field:focus-within {
@@ -4739,7 +5119,8 @@
4739
5119
  flex-direction: column;
4740
5120
  box-sizing: border-box;
4741
5121
  min-block-size: 0;
4742
- border: 1px solid var(--application-border);
5122
+ /* kit「表格组合」:圆角 16、裁切内容、无边框(业财平台 round-01)。
5123
+ * 外层白卡由 ApplicationPageLayoutContainer 的 __panel 承担。 */
4743
5124
  border-radius: var(--application-radius-16);
4744
5125
  background: var(--application-surface);
4745
5126
  font-family: var(--application-font-family);
@@ -4762,9 +5143,10 @@
4762
5143
  overflow: auto;
4763
5144
  }
4764
5145
 
5146
+ /* kit「分页行」:内边距 12、无上边线,32 高的控件撑出 56 高(round-01 ·
5147
+ * pagination/container/style)。与表格的分隔由末行自带的 0.5px 下边线承担。 */
4765
5148
  .mh-data-display__pagination {
4766
- padding: var(--application-space-3) var(--ui-surface-padding);
4767
- border-block-start: 1px solid var(--application-divider);
5149
+ padding: var(--application-space-3);
4768
5150
  }
4769
5151
  }
4770
5152
 
@@ -4853,37 +5235,89 @@
4853
5235
 
4854
5236
  @layer moheng.components {
4855
5237
  .mh-page-header {
4856
- /* 品牌强调色条 3×16 —— 上下文区的身份标记,不是装饰。 */
4857
- --mh-page-header-accent-width: 3px;
4858
- --mh-page-header-accent-height: 16px;
4859
5238
  --mh-page-header-divider-height: 20px;
5239
+ /* kit「数据更新」:标题与更新时间之间的竖线是 12×12 方块只画右边线。版式常量。 */
5240
+ --mh-page-header-rule-size: 12px;
4860
5241
 
5242
+ /* GAP Design kit(round-01 · page-header/container/surface):48px 通栏,落在页面
5243
+ * 底色上,只有一条 0.5px 下边线 —— 不是带边框的白卡片。中部任务胶囊绝对居中,
5244
+ * 因此容器是定位上下文。 */
5245
+ position: relative;
4861
5246
  display: flex;
4862
5247
  align-items: center;
4863
5248
  justify-content: space-between;
4864
5249
  gap: var(--application-space-3);
4865
5250
  box-sizing: border-box;
4866
5251
  min-block-size: var(--application-content-header-height);
4867
- padding: var(--application-space-2) var(--ui-surface-padding);
4868
- border: 1px solid var(--application-border);
4869
- border-radius: var(--application-radius-16);
4870
- background: var(--application-surface);
5252
+ padding: var(--application-space-2) var(--ui-page-gutter);
5253
+ background: transparent;
5254
+ box-shadow: inset 0 calc(var(--application-hairline) * -1) 0 var(--application-divider);
4871
5255
  font-family: var(--application-font-family);
4872
5256
  }
4873
5257
 
5258
+ /* 放在页面布局容器的 header 槽位时,吃掉顶部与两侧的页面留白,贴满内容区。 */
5259
+ .mh-page-layout > .mh-page-header:first-child {
5260
+ margin-block-start: calc(var(--ui-page-gutter) * -1);
5261
+ margin-inline: calc(var(--ui-page-gutter) * -1);
5262
+ }
5263
+
5264
+ .mh-page-header__task {
5265
+ position: absolute;
5266
+ inset-block-start: 50%;
5267
+ inset-inline-start: 50%;
5268
+ display: inline-flex;
5269
+ align-items: center;
5270
+ gap: var(--application-space-1);
5271
+ padding: var(--application-spacing-6) var(--application-space-3);
5272
+ border-radius: var(--application-radius-20);
5273
+ background: var(--application-tint-accent);
5274
+ color: var(--application-accent);
5275
+ font-size: var(--application-font-size-body);
5276
+ line-height: var(--application-line-height-body);
5277
+ white-space: nowrap;
5278
+ transform: translate(-50%, -50%);
5279
+ }
5280
+
5281
+ /* 左侧三段之间不留统一间隙:返回与标题之间 8(返回按钮自带的外边距),标题与竖线、
5282
+ * 竖线与时间之间的距离由竖线方块与时间按钮的内边距给出(kit 11 / 12)。 */
4874
5283
  .mh-page-header__lead {
4875
5284
  display: flex;
4876
5285
  align-items: center;
4877
- gap: var(--application-space-3);
4878
5286
  min-inline-size: 0;
4879
5287
  }
4880
5288
 
4881
- .mh-page-header__accent {
5289
+ /* 幽灵按钮:返回、更新时间 + 刷新共用。32 高、左右 12、间隔 4、圆角 12,
5290
+ * 文字 14/20 文字1,透明底(kit 按钮「幽灵」)。 */
5291
+ .mh-page-header__ghost {
5292
+ display: inline-flex;
5293
+ align-items: center;
4882
5294
  flex: 0 0 auto;
4883
- inline-size: var(--mh-page-header-accent-width);
4884
- block-size: var(--mh-page-header-accent-height);
4885
- border-radius: var(--application-radius-16);
4886
- background: var(--application-accent);
5295
+ gap: var(--application-space-1);
5296
+ box-sizing: border-box;
5297
+ block-size: var(--application-control-height-32);
5298
+ padding: 0 var(--application-space-3);
5299
+ border: 1px solid transparent;
5300
+ border-radius: var(--application-radius-control);
5301
+ background: transparent;
5302
+ color: var(--application-text);
5303
+ font-family: inherit;
5304
+ font-size: var(--application-font-size-body);
5305
+ line-height: var(--application-line-height-body);
5306
+ white-space: nowrap;
5307
+ cursor: pointer;
5308
+ }
5309
+
5310
+ .mh-page-header__ghost:hover:not([aria-disabled='true']) {
5311
+ background: var(--application-hover-neutral);
5312
+ }
5313
+
5314
+ .mh-page-header__ghost:focus-visible {
5315
+ outline: var(--ds-focus-ring-width) solid var(--application-focus);
5316
+ outline-offset: var(--ds-focus-ring-offset);
5317
+ }
5318
+
5319
+ .mh-page-header__back {
5320
+ margin-inline-end: var(--application-space-2);
4887
5321
  }
4888
5322
 
4889
5323
  .mh-page-header__titles {
@@ -4902,8 +5336,9 @@
4902
5336
  overflow: hidden;
4903
5337
  color: var(--application-text);
4904
5338
  font-size: var(--application-font-size-title);
4905
- line-height: var(--application-line-height-title);
4906
- font-weight: var(--application-font-weight-medium);
5339
+ /* kit 标题 16/32 regular。32 行高与 metric 角色共用同一档(--ds-line-height-32)。 */
5340
+ line-height: var(--application-line-height-metric);
5341
+ font-weight: var(--application-font-weight-regular);
4907
5342
  text-overflow: ellipsis;
4908
5343
  white-space: nowrap;
4909
5344
  }
@@ -4918,41 +5353,32 @@
4918
5353
  display: flex;
4919
5354
  align-items: center;
4920
5355
  flex: 0 0 auto;
4921
- gap: var(--application-space-1);
4922
- }
4923
-
4924
- .mh-page-header__status-text {
4925
- color: var(--application-label);
4926
- font-size: var(--application-font-size-meta);
4927
- line-height: var(--application-line-height-meta);
4928
- white-space: nowrap;
4929
5356
  }
4930
5357
 
4931
- .mh-page-header__status-text[data-status='failed'] {
4932
- color: var(--application-danger);
5358
+ .mh-page-header__status-rule {
5359
+ flex: 0 0 auto;
5360
+ box-sizing: border-box;
5361
+ inline-size: var(--mh-page-header-rule-size);
5362
+ block-size: var(--mh-page-header-rule-size);
5363
+ border-inline-end: 1px solid var(--application-divider);
4933
5364
  }
4934
5365
 
4935
- .mh-page-header__refresh {
4936
- display: grid;
4937
- place-items: center;
4938
- inline-size: var(--application-control-height-24);
4939
- block-size: var(--application-control-height-24);
4940
- padding: 0;
4941
- border: none;
4942
- border-radius: var(--application-radius-8);
4943
- background: transparent;
4944
- color: var(--application-muted);
4945
- cursor: pointer;
5366
+ /* 更新时间 14/20 文字1(kit · page-header/updated-at/format)。 */
5367
+ .mh-page-header__status-text {
5368
+ color: var(--application-text);
5369
+ font-size: var(--application-font-size-body);
5370
+ line-height: var(--application-line-height-body);
5371
+ font-variant-numeric: tabular-nums;
5372
+ white-space: nowrap;
4946
5373
  }
4947
5374
 
4948
- .mh-page-header__refresh:hover:not([aria-disabled='true']) {
4949
- background: var(--application-hover-neutral);
4950
- color: var(--application-text);
5375
+ /* 没有刷新能力时只有文字,补上按钮本该给的左内边距,竖线到文字仍是 12。 */
5376
+ .mh-page-header__status-plain {
5377
+ padding-inline-start: var(--application-space-3);
4951
5378
  }
4952
5379
 
4953
- .mh-page-header__refresh:focus-visible {
4954
- outline: var(--ds-focus-ring-width) solid var(--application-focus);
4955
- outline-offset: var(--ds-focus-ring-offset);
5380
+ .mh-page-header__status[data-status='failed'] .mh-page-header__status-text {
5381
+ color: var(--application-danger);
4956
5382
  }
4957
5383
 
4958
5384
  .mh-page-header__refresh[aria-disabled='true'] {
@@ -4960,6 +5386,10 @@
4960
5386
  cursor: not-allowed;
4961
5387
  }
4962
5388
 
5389
+ .mh-page-header__refresh[aria-disabled='true'] .mh-page-header__status-text {
5390
+ color: var(--application-label);
5391
+ }
5392
+
4963
5393
  /* 刷新中的转圈用 moheng.base 层的全局 keyframes(04 · M4)——
4964
5394
  * 源实现在组件内部注入了一份,是全库第 4 处内联 @keyframes。 */
4965
5395
  .mh-page-header__refresh[data-spinning] .mh-icon {
@@ -5056,6 +5486,25 @@
5056
5486
  min-block-size: auto;
5057
5487
  }
5058
5488
 
5489
+ /* 数据控制行 + 数据展示区共用的卡片。它也要吃掉剩余高度、可收缩,滚动才能往下传。
5490
+ * 没有数据控制行时它仍包着展示区,卡片外观照旧(展示区自身不再画边框)。 */
5491
+ .mh-page-layout__panel {
5492
+ display: flex;
5493
+ flex: 1;
5494
+ flex-direction: column;
5495
+ gap: var(--application-space-3);
5496
+ box-sizing: border-box;
5497
+ min-block-size: 0;
5498
+ padding: var(--application-space-3);
5499
+ border-radius: var(--application-radius-card);
5500
+ background: var(--application-surface);
5501
+ }
5502
+
5503
+ .mh-page-layout[data-page-type='DETAIL'] .mh-page-layout__panel {
5504
+ flex: none;
5505
+ min-block-size: auto;
5506
+ }
5507
+
5059
5508
  /* 数据展示区吃掉剩余高度,并把「谁来滚动」的问题继续往下传。 */
5060
5509
  .mh-page-layout__display {
5061
5510
  display: flex;
@@ -5073,44 +5522,81 @@
5073
5522
  * 240 是最窄宽度,够放下一句短的搜索范围,又不把筛选挤到下一行;320 是上限,
5074
5523
  * 约定要求占位文字写明搜索范围(「搜索任务名称、编号或检查对象」),固定 240 时
5075
5524
  * 这类占位被截断。行内有余量时搜索框先吃到 320,筛选多、行挤时退回 240。 */
5525
+ /* GAP Design kit(业财平台 round-01 · toolbar/search/style)把搜索框定为 240,
5526
+ * 上限随之收到 240:两值相等即固定宽度。保留两个变量,消费方可按页放宽。 */
5076
5527
  --mh-query-toolbar-search-min-width: 240px;
5077
- --mh-query-toolbar-search-max-width: 320px;
5528
+ --mh-query-toolbar-search-max-width: 240px;
5078
5529
 
5530
+ /* kit:工具栏与数据展示区同处一张白卡(圆角 20、内边距 12、无边框)。
5531
+ * 单独使用时自身就是这张卡的上半;放进 ApplicationPageLayoutContainer 时由容器的
5532
+ * __panel 承担卡片外观,本组件退为透明(见 ApplicationPageLayoutContainer.css)。 */
5533
+ /* 三行(业务视图 · 查询控件 · 已生效标签)之间 8(kit「数据筛选搜索」84:2803)。 */
5079
5534
  display: flex;
5080
5535
  flex-direction: column;
5081
5536
  gap: var(--application-space-2);
5082
5537
  box-sizing: border-box;
5083
- padding: var(--application-space-3) var(--ui-surface-padding);
5084
- border: 1px solid var(--application-border);
5085
- border-radius: var(--application-radius-16);
5538
+ padding: var(--application-space-3);
5539
+ border-radius: var(--application-radius-card);
5086
5540
  background: var(--application-surface);
5087
5541
  font-family: var(--application-font-family);
5088
5542
  }
5089
5543
 
5090
- .mh-query-toolbar__controls {
5091
- display: flex;
5544
+ .mh-page-layout__panel > .mh-query-toolbar {
5545
+ padding: 0;
5546
+ border-radius: 0;
5547
+ background: transparent;
5548
+ }
5549
+
5550
+ /* 第 2 行:左组(摘要 │ 搜索 · 排序 · 筛选)与右组(视图切换 · 设置)之间 12。 */
5551
+ .mh-query-toolbar__controls {
5552
+ display: flex;
5092
5553
  align-items: center;
5093
5554
  flex-wrap: wrap;
5094
- gap: var(--application-space-4);
5555
+ gap: var(--application-space-3);
5095
5556
  }
5096
5557
 
5558
+ /* 结果摘要是一枚胶囊(kit:页面底色、圆角 12、14/20)。总数用 <strong> 包裹即加粗。 */
5097
5559
  .mh-query-toolbar__summary {
5098
- color: var(--application-label);
5099
- font-size: var(--application-font-size-meta);
5100
- line-height: var(--application-line-height-meta);
5560
+ display: inline-flex;
5561
+ align-items: center;
5562
+ gap: var(--application-space-2);
5563
+ box-sizing: border-box;
5564
+ block-size: var(--application-toolbar-height);
5565
+ padding-inline: var(--application-space-3);
5566
+ border-radius: var(--application-radius-control);
5567
+ background: var(--application-elevated);
5568
+ color: var(--application-muted);
5569
+ font-size: var(--application-font-size-body);
5570
+ line-height: var(--application-line-height-body);
5101
5571
  font-variant-numeric: tabular-nums;
5102
5572
  white-space: nowrap;
5103
5573
  }
5104
5574
 
5575
+ .mh-query-toolbar__summary strong {
5576
+ color: var(--application-text);
5577
+ font-weight: var(--application-font-weight-semibold);
5578
+ }
5579
+
5580
+ /* 左组控件一律间隔 4(kit 39:1907 与筛选容器 39:1925 同为 4)。此前取 --ui-control-gap(8),
5581
+ * 摘要在组外、与搜索隔着行间距 16。 */
5105
5582
  .mh-query-toolbar__query {
5106
5583
  display: flex;
5107
5584
  align-items: center;
5108
5585
  flex: 1;
5109
5586
  flex-wrap: wrap;
5110
- gap: var(--ui-control-gap);
5587
+ gap: var(--application-space-1);
5111
5588
  min-inline-size: 0;
5112
5589
  }
5113
5590
 
5591
+ /* 摘要与搜索之间的竖线:1×20、线条色(kit 39:1913),两侧各吃一份 4 的间隔。
5592
+ * 1px 与 ApplicationPageHeader 的分隔竖线同写法;20 取 kit 登记的「间距20」。 */
5593
+ .mh-query-toolbar__divider {
5594
+ flex: 0 0 auto;
5595
+ inline-size: 1px;
5596
+ block-size: var(--application-spacing-20);
5597
+ background: var(--application-divider);
5598
+ }
5599
+
5114
5600
  /* 以 240 为基准参与换行判定,再按行内余量长到 320:基准若取 320,换行按 320 算,
5115
5601
  * 搜索框就永远是 320 或独占一行,落不到中间值。容器窄于 240 时照常收窄,不溢出。 */
5116
5602
  .mh-query-toolbar__search {
@@ -5118,29 +5604,28 @@
5118
5604
  max-inline-size: min(var(--mh-query-toolbar-search-max-width), 100%);
5119
5605
  }
5120
5606
 
5607
+ /* 右组(kit「列表工具」39:1944)同样间隔 4。 */
5121
5608
  .mh-query-toolbar__presentation {
5122
5609
  display: flex;
5123
5610
  align-items: center;
5124
5611
  flex: 0 0 auto;
5125
- gap: var(--ui-control-gap);
5612
+ gap: var(--application-space-1);
5126
5613
  }
5127
5614
 
5128
- /* 与 ApplicationFilterMenu 的触发器同高同圆角 —— 第二行的控件读起来是一排。 */
5615
+ /* 32×32 纯图标、白底 1px 描边、圆角 12(kit「数据筛选搜索 / 列表工具」);
5616
+ * 与 ApplicationFilterMenu 的触发器同高同圆角 —— 第二行的控件读起来是一排。 */
5129
5617
  .mh-query-toolbar__settings {
5130
- display: inline-flex;
5131
- align-items: center;
5132
- gap: var(--application-space-1);
5618
+ display: inline-grid;
5619
+ place-items: center;
5620
+ flex: 0 0 auto;
5133
5621
  box-sizing: border-box;
5622
+ inline-size: var(--application-toolbar-height);
5134
5623
  block-size: var(--application-toolbar-height);
5135
- padding-inline: var(--application-space-3);
5624
+ padding: 0;
5136
5625
  border: 1px solid var(--application-border);
5137
- border-radius: var(--application-radius-16);
5626
+ border-radius: var(--application-radius-control);
5138
5627
  background: var(--application-surface);
5139
5628
  color: var(--application-text);
5140
- font-family: inherit;
5141
- font-size: var(--application-font-size-body);
5142
- line-height: var(--application-line-height-body);
5143
- white-space: nowrap;
5144
5629
  cursor: pointer;
5145
5630
  }
5146
5631
 
@@ -5162,15 +5647,20 @@
5162
5647
  gap: var(--application-space-2);
5163
5648
  }
5164
5649
 
5165
- .mh-query-toolbar__tag {
5650
+ /* kit(round-01 · toolbar/applied-tag/style):高 28、圆角 8、上下 6 左右 8、主色 6% 底。
5651
+ * 高度由 16 行高 + 2×6 得出,不写死。「清空」与标签同款(toolbar/reset-button/style)。 */
5652
+ .mh-query-toolbar__tag,
5653
+ .mh-query-toolbar__reset {
5166
5654
  display: inline-flex;
5167
5655
  align-items: center;
5168
5656
  gap: calc(var(--application-space-1) / 2);
5169
- block-size: var(--application-control-height-24);
5170
- padding-inline: var(--application-space-2);
5171
- border-radius: var(--application-radius-16);
5172
- background: var(--application-selected);
5657
+ box-sizing: border-box;
5658
+ padding: var(--application-spacing-6) var(--application-space-2);
5659
+ border: none;
5660
+ border-radius: var(--application-radius-8);
5661
+ background: var(--application-tint-accent);
5173
5662
  color: var(--application-accent);
5663
+ font-family: inherit;
5174
5664
  font-size: var(--application-font-size-meta);
5175
5665
  line-height: var(--application-line-height-meta);
5176
5666
  }
@@ -5200,19 +5690,11 @@
5200
5690
  }
5201
5691
 
5202
5692
  .mh-query-toolbar__reset {
5203
- padding: 0;
5204
- border: none;
5205
- background: transparent;
5206
- color: var(--application-muted);
5207
- font-family: inherit;
5208
- font-size: var(--application-font-size-meta);
5209
- text-decoration: underline;
5210
- text-underline-offset: 3px;
5211
5693
  cursor: pointer;
5212
5694
  }
5213
5695
 
5214
5696
  .mh-query-toolbar__reset:hover {
5215
- color: var(--application-text);
5697
+ background: var(--application-hover);
5216
5698
  }
5217
5699
 
5218
5700
  .mh-query-toolbar__reset:focus-visible {
@@ -5224,16 +5706,62 @@
5224
5706
  /* ── src/components/application-module/content/ApplicationRecordDetailBody.css */
5225
5707
 
5226
5708
  @layer moheng.components {
5709
+ /* GAP Design kit「抽屉弹窗」(业财平台 round-01 · input-invoice-detail/*):
5710
+ * 内容放在白卡里、落在载体的灰底上;分节间距 16;分节标题 16/20 带 2×14 强调色竖条;
5711
+ * 字段横排,字段名 160 宽 14/20 三级文字色、值 14/20 medium。
5712
+ * 提供 aside 时两栏:左栏弹性、右栏 360,间距 12。 */
5227
5713
  .mh-detail-body {
5228
- /* 字段列最窄 240px:短于此,长字段名与值会挤成两行。 */
5229
- --mh-detail-field-min-width: 240px;
5714
+ /* 字段列最窄 360px:160 的字段名加 200 的值。短于此,值会被挤成竖条。 */
5715
+ --mh-detail-field-min-width: 360px;
5716
+ --mh-detail-field-label-width: 160px;
5717
+ /* 侧栏宽 360:kit「处理记录」卡片宽度。与 --ui-sidebar-list-width 同值不同义,不共用。 */
5718
+ --mh-detail-aside-width: 360px;
5719
+ /* 两栏的最小总宽:低于它侧栏落到主栏下方。 */
5720
+ --mh-detail-split-min-width: 960px;
5721
+ --mh-detail-section-bar-width: 2px;
5722
+ --mh-detail-section-bar-height: 14px;
5230
5723
 
5231
5724
  display: flex;
5232
- flex-direction: column;
5233
- gap: var(--application-space-5);
5725
+ align-items: flex-start;
5726
+ gap: var(--application-space-3);
5234
5727
  font-family: var(--application-font-family);
5235
5728
  }
5236
5729
 
5730
+ .mh-detail-body__main,
5731
+ .mh-detail-body__aside {
5732
+ display: flex;
5733
+ flex-direction: column;
5734
+ gap: var(--application-space-4);
5735
+ box-sizing: border-box;
5736
+ padding: var(--ui-surface-padding);
5737
+ border-radius: var(--application-radius-16);
5738
+ background: var(--application-surface);
5739
+ }
5740
+
5741
+ .mh-detail-body__main {
5742
+ flex: 1;
5743
+ min-inline-size: 0;
5744
+ }
5745
+
5746
+ .mh-detail-body__aside {
5747
+ flex: 0 0 var(--mh-detail-aside-width);
5748
+ }
5749
+
5750
+ /* 两栏放不下时侧栏换行落到主栏下方:主栏的弹性基准取「960 − 侧栏 − 间距」,
5751
+ * 容器窄于 960 时两者排不进一行,flex-wrap 把侧栏推到下一行并拉满。 */
5752
+ .mh-detail-body[data-layout='split'] {
5753
+ flex-wrap: wrap;
5754
+ }
5755
+
5756
+ .mh-detail-body[data-layout='split'] > .mh-detail-body__main {
5757
+ flex: 1 1 calc(var(--mh-detail-split-min-width) - var(--mh-detail-aside-width) - var(--application-space-3));
5758
+ }
5759
+
5760
+ .mh-detail-body[data-layout='split'] > .mh-detail-body__aside {
5761
+ flex: 1 0 var(--mh-detail-aside-width);
5762
+ max-inline-size: 100%;
5763
+ }
5764
+
5237
5765
  .mh-detail-body__section {
5238
5766
  display: flex;
5239
5767
  flex-direction: column;
@@ -5248,37 +5776,53 @@
5248
5776
  }
5249
5777
 
5250
5778
  .mh-detail-body__section-title {
5779
+ display: flex;
5780
+ align-items: center;
5781
+ gap: var(--application-space-2);
5251
5782
  margin: 0;
5252
5783
  color: var(--application-text);
5253
5784
  font-size: var(--application-font-size-title);
5254
- line-height: var(--application-line-height-title);
5785
+ line-height: var(--application-line-height-body);
5255
5786
  font-weight: var(--application-font-weight-medium);
5256
5787
  }
5257
5788
 
5258
- /* auto-fit + minmax:列数随可用宽度自适应,抽屉(680px)里排两列,
5259
- * 独立详情页的全宽下自然排三到四列,不需要为两种外壳各写一套。 */
5789
+ .mh-detail-body__section-title::before {
5790
+ flex: none;
5791
+ inline-size: var(--mh-detail-section-bar-width);
5792
+ block-size: var(--mh-detail-section-bar-height);
5793
+ background: var(--application-accent);
5794
+ content: '';
5795
+ }
5796
+
5797
+ /* auto-fit + minmax:列数随可用宽度自适应,抽屉里排两列,全宽详情页排三列。 */
5260
5798
  .mh-detail-body__fields {
5261
5799
  display: grid;
5262
- grid-template-columns: repeat(auto-fit, minmax(var(--mh-detail-field-min-width), 1fr));
5800
+ grid-template-columns: repeat(auto-fit, minmax(min(var(--mh-detail-field-min-width), 100%), 1fr));
5263
5801
  gap: var(--application-space-3) var(--application-space-5);
5264
5802
  margin: 0;
5265
5803
  }
5266
5804
 
5267
5805
  .mh-detail-body__field {
5806
+ display: flex;
5807
+ align-items: flex-start;
5268
5808
  min-inline-size: 0;
5269
5809
  }
5270
5810
 
5271
5811
  .mh-detail-body__field-label {
5812
+ flex: 0 0 var(--mh-detail-field-label-width);
5272
5813
  color: var(--application-label);
5273
- font-size: var(--application-font-size-meta);
5274
- line-height: var(--application-line-height-meta);
5814
+ font-size: var(--application-font-size-body);
5815
+ line-height: var(--application-line-height-body);
5275
5816
  }
5276
5817
 
5277
5818
  .mh-detail-body__field-value {
5819
+ flex: 1;
5820
+ min-inline-size: 0;
5278
5821
  margin: 0;
5279
5822
  color: var(--application-text);
5280
5823
  font-size: var(--application-font-size-body);
5281
5824
  line-height: var(--application-line-height-body);
5825
+ font-weight: var(--application-font-weight-medium);
5282
5826
  /* 详情里常有长编号与 URL,断词优先于溢出。 */
5283
5827
  word-break: break-word;
5284
5828
  }
@@ -5599,11 +6143,22 @@
5599
6143
  /* ── src/components/application-module/navigation/ApplicationModuleSwitcher.css */
5600
6144
 
5601
6145
  @layer moheng.components {
6146
+ /* 面板的定位上下文。面板挂在触发器正下方(kit「应用二级模块切换 / 激活」),
6147
+ * 不再是贴视口的 fixed 侧板。 */
6148
+ .mh-module-switcher-anchor {
6149
+ position: relative;
6150
+ display: flex;
6151
+ flex: 0 0 auto;
6152
+ }
6153
+
6154
+ /* GAP Design kit(业财平台 round-01 · shell/module-switcher/size):168×48、
6155
+ * 内边距 4/12、无图标块,右侧 0.5px 分隔线。 */
5602
6156
  .mh-module-switcher {
5603
6157
  display: flex;
5604
6158
  align-items: center;
5605
6159
  gap: var(--ui-shell-module-switch-trigger-gap);
5606
6160
  box-sizing: border-box;
6161
+ inline-size: var(--ui-shell-module-switch-trigger-min-width);
5607
6162
  min-inline-size: var(--ui-shell-module-switch-trigger-min-width);
5608
6163
  block-size: var(--ui-shell-module-switch-trigger-height);
5609
6164
  padding: var(--ui-shell-module-switch-trigger-padding-top)
@@ -5612,29 +6167,25 @@
5612
6167
  var(--ui-shell-module-switch-trigger-padding-left);
5613
6168
  border: none;
5614
6169
  background: transparent;
6170
+ box-shadow: var(--ui-shell-module-switch-trigger-divider);
5615
6171
  font-family: var(--application-font-family);
5616
6172
  text-align: left;
5617
6173
  cursor: pointer;
6174
+ transition: background var(--ui-duration-fast) var(--ui-ease-standard);
5618
6175
  }
5619
6176
 
5620
- .mh-module-switcher:focus-visible {
5621
- outline: var(--ds-focus-ring-width) solid var(--application-focus);
5622
- outline-offset: var(--ds-focus-ring-offset);
6177
+ /* 悬停与展开:6% 文字色淡底叠在导航背景上(kit「移入」「激活」)。 */
6178
+ .mh-module-switcher:hover,
6179
+ .mh-module-switcher[data-open] {
6180
+ background: var(--application-hover-neutral);
5623
6181
  }
5624
6182
 
5625
- /* 32×32 图标块,8px 圆角,18px 字形 —— 登记值。底色是比表面深一档的浅灰
5626
- * (`--ds-color-bg-4`),字形取正文色,暗色主题下两者随之反转;不是深色块配白色字形。 */
5627
- .mh-module-switcher__glyph {
5628
- display: grid;
5629
- place-items: center;
5630
- flex: 0 0 auto;
5631
- inline-size: var(--ui-shell-module-switch-icon-box-size);
5632
- block-size: var(--ui-shell-module-switch-icon-box-size);
5633
- border-radius: var(--application-radius-8);
5634
- background: var(--ui-shell-module-switch-icon-background);
5635
- color: var(--ui-shell-module-switch-icon-foreground);
6183
+ .mh-module-switcher:focus-visible {
6184
+ outline: var(--ds-focus-ring-width) solid var(--application-focus);
6185
+ outline-offset: calc(-1 * var(--ds-focus-ring-offset));
5636
6186
  }
5637
6187
 
6188
+ /* 模块名 16/20 medium 文字1(kit · shell/module-switcher/name/font-weight)。 */
5638
6189
  .mh-module-switcher__name {
5639
6190
  flex: 1;
5640
6191
  min-inline-size: 0;
@@ -5642,14 +6193,14 @@
5642
6193
  color: var(--application-text);
5643
6194
  font-size: var(--application-font-size-title);
5644
6195
  line-height: var(--application-line-height-body);
5645
- font-weight: var(--application-font-weight-bold);
6196
+ font-weight: var(--application-font-weight-medium);
5646
6197
  text-overflow: ellipsis;
5647
6198
  white-space: nowrap;
5648
6199
  }
5649
6200
 
5650
6201
  .mh-module-switcher__chevron {
5651
6202
  flex: 0 0 auto;
5652
- color: var(--application-muted);
6203
+ color: var(--application-text);
5653
6204
  transition: rotate var(--ui-duration-fast) var(--ui-ease-standard);
5654
6205
  }
5655
6206
 
@@ -5657,25 +6208,25 @@
5657
6208
  rotate: 180deg;
5658
6209
  }
5659
6210
 
5660
- /* 面板从 Shell 底沿贴到视口底。无圆角、无阴影是有意的:它是被推开的一块面,
5661
- * 不是浮在内容之上的卡片 —— 那条 1px 右边线就是它与内容的全部分界。
5662
- * 宽读 Shell 登记的 --ui-shell-module-switch-panel-width(06 · P3-8:此前写死 392px,
5663
- * 那个 token 一处都没用到),受视口限制,窄屏下退化为满宽。 */
6211
+ /* 面板与触发器同宽(168,最窄 128),内边距 4、条目间隔 2。无圆角、无阴影是 kit 的
6212
+ * 画法 —— 它是从触发器垂下来的一截,不是浮起的卡片;底色比导航背景再浅半档,
6213
+ * 右侧 1px 线与内容分开。限高到视口底,条目多时自身滚动。 */
5664
6214
  .mh-module-switcher__panel {
5665
- position: fixed;
5666
- top: var(--ui-shell-application-total-height);
5667
- left: 0;
5668
- bottom: 0;
6215
+ position: absolute;
6216
+ inset-block-start: 100%;
6217
+ inset-inline-start: 0;
5669
6218
  z-index: var(--ui-z-popover);
5670
6219
  display: flex;
5671
6220
  flex-direction: column;
5672
6221
  gap: var(--ui-shell-module-switch-panel-gap);
5673
6222
  box-sizing: border-box;
5674
- inline-size: min(var(--ui-shell-module-switch-panel-width), 100vw);
6223
+ inline-size: var(--ui-shell-module-switch-panel-width);
6224
+ min-inline-size: var(--ui-shell-module-switch-panel-min-width);
6225
+ max-block-size: calc(100dvh - var(--ui-shell-application-total-height));
5675
6226
  padding: var(--ui-shell-module-switch-panel-padding);
5676
6227
  border-inline-end: var(--ui-shell-module-switch-panel-border-rule);
5677
6228
  border-radius: 0;
5678
- background: var(--application-surface);
6229
+ background: var(--ui-shell-module-switch-panel-background);
5679
6230
  box-shadow: none;
5680
6231
  font-family: var(--application-font-family);
5681
6232
  overflow-y: auto;
@@ -5700,13 +6251,14 @@
5700
6251
  }
5701
6252
 
5702
6253
  .mh-module-switcher__item:hover:not(:disabled):not([data-current]) {
5703
- background: var(--application-hover-neutral);
6254
+ background: var(--ui-shell-module-switch-item-hover);
5704
6255
  }
5705
6256
 
5706
- /* 当前模块:有选中态但没有指针 —— 点它什么也不会发生。 */
6257
+ /* 当前模块:强调色 semibold + 对勾,没有底色也没有指针 —— 点它什么也不会发生。 */
5707
6258
  .mh-module-switcher__item[data-current] {
5708
6259
  background: var(--ui-shell-module-switch-item-active);
5709
6260
  color: var(--ui-shell-module-switch-item-active-text);
6261
+ font-weight: var(--application-font-weight-semibold);
5710
6262
  cursor: default;
5711
6263
  }
5712
6264
 
@@ -5727,15 +6279,21 @@
5727
6279
  text-overflow: ellipsis;
5728
6280
  white-space: nowrap;
5729
6281
  }
6282
+
6283
+ .mh-module-switcher__check {
6284
+ flex: 0 0 auto;
6285
+ }
5730
6286
  }
5731
6287
 
5732
6288
  /* ── src/components/application-module/navigation/ApplicationPrimaryNavigation.css */
5733
6289
 
5734
6290
  @layer moheng.components {
6291
+ /* GAP Design kit「应用一级导航」(业财平台 round-01 · shell/*):48 高、内边距 8/12、
6292
+ * 导航背景、底部 0.5px 分隔线。高度是 Shell 的固定契约,业务页面不得改。 */
5735
6293
  .mh-primary-nav {
5736
- /* 未读圆点 6px,贴触发器右上角 2px。本组件的版式常量。 */
6294
+ /* 未读圆点 6px,贴字形右上角。本组件的版式常量。 */
5737
6295
  --mh-primary-nav-badge-size: 6px;
5738
- --mh-primary-nav-badge-inset: 2px;
6296
+ --mh-primary-nav-badge-inset: -2px;
5739
6297
 
5740
6298
  display: flex;
5741
6299
  align-items: center;
@@ -5746,8 +6304,8 @@
5746
6304
  block-size: var(--ui-shell-application-title-height);
5747
6305
  padding: var(--ui-shell-application-row-padding-block)
5748
6306
  var(--ui-shell-application-row-padding-inline);
5749
- border-block-end: var(--ui-shell-divider);
5750
6307
  background: var(--application-canvas);
6308
+ box-shadow: var(--ui-shell-band-divider);
5751
6309
  font-family: var(--application-font-family);
5752
6310
  }
5753
6311
 
@@ -5766,60 +6324,27 @@
5766
6324
  flex: 0 0 auto;
5767
6325
  inline-size: var(--ui-shell-application-logo-size);
5768
6326
  block-size: var(--ui-shell-application-logo-size);
5769
- border-radius: var(--application-radius-12);
6327
+ border-radius: var(--ui-shell-application-logo-radius);
5770
6328
  background: var(--ui-shell-application-logo-background);
5771
6329
  color: var(--ui-shell-application-logo-foreground);
5772
6330
  }
5773
6331
 
5774
- .mh-primary-nav__text {
5775
- display: flex;
5776
- flex-direction: column;
5777
- justify-content: center;
5778
- min-inline-size: 0;
5779
- }
5780
-
5781
- .mh-primary-nav__name,
5782
- .mh-primary-nav__description {
6332
+ /* 应用名 14/20 regular 文字1(kit · shell/app-name/font)。 */
6333
+ .mh-primary-nav__name {
5783
6334
  overflow: hidden;
6335
+ color: var(--application-text);
6336
+ font-size: var(--application-font-size-body);
6337
+ line-height: var(--application-line-height-body);
6338
+ font-weight: var(--application-font-weight-regular);
5784
6339
  text-overflow: ellipsis;
5785
6340
  white-space: nowrap;
5786
6341
  }
5787
6342
 
5788
- .mh-primary-nav__name {
5789
- color: var(--application-text);
5790
- font-size: var(--application-font-size-title);
5791
- line-height: var(--application-line-height-title);
5792
- font-weight: var(--application-font-weight-bold);
5793
- }
5794
-
5795
- /* Compact 档:隐藏说明,给名称限宽,避免长应用名把动作簇挤出去。
5796
- *
5797
- * 由 @media 驱动(07 · C-18),条件与 viewport.css 切换 Shell 三带高度的那一档逐字相同
5798
- * (--ui-viewport-compact-max-width / -height,@media 里读不了 var())。显隐无法折成
5799
- * 一个尺度变量,因此同 Table 的 priority 降级一样在组件里写断点。
5800
- * data-compact 是已弃用的 compact prop 的强制档,下一个 minor 随 prop 一并删除。 */
5801
- .mh-primary-nav[data-compact] .mh-primary-nav__description {
5802
- display: none;
5803
- }
5804
-
5805
- .mh-primary-nav[data-compact] .mh-primary-nav__name {
5806
- max-inline-size: var(--ui-application-title-max-width-compact);
5807
- }
5808
-
5809
- @media (max-width: 1180px), (max-height: 720px) {
5810
- .mh-primary-nav__description {
5811
- display: none;
5812
- }
5813
-
5814
- .mh-primary-nav__name {
5815
- max-inline-size: var(--ui-application-title-max-width-compact);
5816
- }
5817
- }
5818
-
5819
- .mh-primary-nav__description {
5820
- color: var(--application-label);
5821
- font-size: var(--application-font-size-meta);
5822
- line-height: var(--application-line-height-meta);
6343
+ .mh-primary-nav__trail {
6344
+ display: flex;
6345
+ align-items: center;
6346
+ flex: 0 0 auto;
6347
+ gap: var(--ui-shell-global-actions-account-gap);
5823
6348
  }
5824
6349
 
5825
6350
  .mh-primary-nav__actions {
@@ -5830,18 +6355,25 @@
5830
6355
  padding-inline-end: var(--ui-shell-global-actions-padding-right);
5831
6356
  }
5832
6357
 
6358
+ /* 「18px 字形 + 文字」:32 高、左右 10、间隔 4、圆角 12,文字 14/20 文字2
6359
+ * (kit · shell/global-actions/form)。 */
5833
6360
  .mh-primary-nav__action {
5834
- position: relative;
5835
- display: grid;
5836
- place-items: center;
6361
+ display: inline-flex;
6362
+ align-items: center;
5837
6363
  flex: 0 0 auto;
5838
- inline-size: var(--ui-shell-global-action-size);
6364
+ gap: var(--ui-shell-global-action-label-gap);
6365
+ box-sizing: border-box;
5839
6366
  block-size: var(--ui-shell-global-action-size);
5840
- padding: 0;
6367
+ padding: 0 var(--ui-shell-global-action-padding-inline);
5841
6368
  border: none;
5842
6369
  border-radius: var(--ui-shell-global-action-radius);
5843
6370
  background: transparent;
5844
6371
  color: var(--application-muted);
6372
+ font-family: inherit;
6373
+ font-size: var(--application-font-size-body);
6374
+ line-height: var(--application-line-height-body);
6375
+ font-weight: var(--application-font-weight-regular);
6376
+ white-space: nowrap;
5845
6377
  cursor: pointer;
5846
6378
  transition: background var(--ui-duration-fast) var(--ui-ease-standard);
5847
6379
  }
@@ -5861,43 +6393,13 @@
5861
6393
  outline-offset: var(--ds-focus-ring-offset);
5862
6394
  }
5863
6395
 
5864
- /* 全局动作的提示条(06 · P1-14):Tooltip 的外观六项改读 Shell 登记的
5865
- * --ui-shell-global-action-tooltip-*。两层类名压过 Tooltip 自身的单类选择器,同在
5866
- * moheng.components 层内,不靠 !important。
5867
- *
5868
- * 偏移:Tooltip 以 8px 内置间隙定位(它的版式常量,记在这里的
5869
- * --mh-primary-nav-tip-builtin-gap),差值由 margin 补齐 —— 两者当前相等,补量为 0;
5870
- * Shell 改偏移时提示条随之移动。顶栏下方恒有空间,提示条不会翻到上方,margin 的方向
5871
- * 因此固定。shift 是出现时自上而下滑入的位移量。 */
5872
- .mh-primary-nav__tip {
5873
- --mh-primary-nav-tip-builtin-gap: 8px;
5874
- }
5875
-
5876
- .mh-primary-nav__tip .mh-tooltip {
5877
- block-size: var(--ui-shell-global-action-tooltip-height);
5878
- margin-block-start: calc(
5879
- var(--ui-shell-global-action-tooltip-offset) - var(--mh-primary-nav-tip-builtin-gap)
5880
- );
5881
- padding-inline: var(--ui-shell-global-action-tooltip-padding-inline);
5882
- border-radius: var(--ui-shell-global-action-tooltip-radius);
5883
- background: var(--ui-shell-global-action-tooltip-background);
5884
- color: var(--ui-shell-global-action-tooltip-foreground);
5885
- transition:
5886
- translate var(--ui-duration-fast) var(--ui-ease-standard),
5887
- opacity var(--ui-duration-fast) var(--ui-ease-standard);
5888
- }
5889
-
5890
- @starting-style {
5891
- .mh-primary-nav__tip .mh-tooltip {
5892
- translate: 0 calc(-1 * var(--ui-shell-global-action-tooltip-shift));
5893
- opacity: 0;
5894
- }
5895
- }
5896
-
5897
- @media (prefers-reduced-motion: reduce) {
5898
- .mh-primary-nav__tip .mh-tooltip {
5899
- transition: none;
5900
- }
6396
+ .mh-primary-nav__action-icon {
6397
+ position: relative;
6398
+ display: grid;
6399
+ place-items: center;
6400
+ flex: 0 0 auto;
6401
+ inline-size: var(--ui-shell-global-action-icon-size);
6402
+ block-size: var(--ui-shell-global-action-icon-size);
5901
6403
  }
5902
6404
 
5903
6405
  .mh-primary-nav__badge {
@@ -5921,14 +6423,18 @@
5921
6423
  box-sizing: border-box;
5922
6424
  inline-size: 100%;
5923
6425
  block-size: var(--ui-shell-application-subnav-height);
5924
- padding: var(--ui-shell-module-row-padding-block) var(--ui-shell-module-row-padding-inline);
5925
- border-block-end: var(--ui-shell-divider);
6426
+ /* kit「应用二级导航」:模块切换器贴左缘(它自带左右 12 与右侧分隔线),只留右侧 12。 */
6427
+ padding: var(--ui-shell-module-row-padding-block) var(--ui-shell-module-row-padding-inline)
6428
+ var(--ui-shell-module-row-padding-block) 0;
5926
6429
  background: var(--application-canvas);
6430
+ box-shadow: var(--ui-shell-band-divider);
5927
6431
  font-family: var(--application-font-family);
5928
6432
  }
5929
6433
 
5930
6434
  .mh-secondary-nav__switcher {
6435
+ display: flex;
5931
6436
  flex: 0 0 auto;
6437
+ align-self: stretch;
5932
6438
  }
5933
6439
 
5934
6440
  /* 标签保持单行并横向滚动,绝不换行 —— 规范点名的一条。
@@ -5952,6 +6458,7 @@
5952
6458
  * --ds-tab-* 是有意分开的(04 · N3):这里本来就属于 Shell,会随
5953
6459
  * Compact 档一起变;Foundation Tabs 在页面区域内,不该跟着 Shell 变形。 */
5954
6460
  .mh-secondary-nav__tab {
6461
+ position: relative;
5955
6462
  display: inline-flex;
5956
6463
  align-items: center;
5957
6464
  flex: 0 0 auto;
@@ -5960,6 +6467,7 @@
5960
6467
  block-size: var(--ui-shell-tab-height);
5961
6468
  padding: var(--ui-shell-tab-padding-block) var(--ui-shell-tab-padding-inline);
5962
6469
  border: none;
6470
+ border-radius: var(--ui-shell-tab-radius);
5963
6471
  background: transparent;
5964
6472
  color: var(--application-muted);
5965
6473
  font-family: inherit;
@@ -5970,19 +6478,30 @@
5970
6478
  cursor: pointer;
5971
6479
  }
5972
6480
 
5973
- /* 激活态是已登记的 2px 下划线,绝不是 pill 背景。
6481
+ /* 激活态是已登记的 2px 下划线,绝不是 pill 背景。GAP Design kit(业财平台 round-01 ·
6482
+ * shell/secondary-tab/selected/color):选中文字取强调色 medium,下划线两端各缩进 12
6483
+ * (与标签左右内边距相同,即与文字和图标同宽),贴标签底边。
5974
6484
  *
5975
6485
  * 下划线粗细取 --ui-shell-tab-indicator-height,与上面那段注释一致 —— 此处曾写的是
5976
6486
  * --ds-tab-underline-width,两者同为 2px 因此看不出来,但它恰恰是那段注释点名
5977
6487
  * 「有意分开」的那一支,注释与代码相距三行却互相矛盾。构建后断言 6 抓出来的。 */
5978
6488
  .mh-secondary-nav__tab[data-active] {
5979
- box-shadow: inset 0 calc(-1 * var(--ui-shell-tab-indicator-height)) 0 0 var(--application-accent);
5980
- color: var(--application-text);
6489
+ color: var(--application-accent);
5981
6490
  font-weight: var(--application-font-weight-medium);
5982
6491
  }
5983
6492
 
6493
+ .mh-secondary-nav__tab[data-active]::after {
6494
+ content: '';
6495
+ position: absolute;
6496
+ inset-inline: var(--ui-shell-tab-indicator-inset);
6497
+ inset-block-end: 0;
6498
+ block-size: var(--ui-shell-tab-indicator-height);
6499
+ background: var(--application-accent);
6500
+ }
6501
+
6502
+ /* 悬停是 6% 文字色的淡底、圆角 12,文字不变色(kit 标签「移入」态)。 */
5984
6503
  .mh-secondary-nav__tab:hover:not(:disabled):not([data-active]) {
5985
- color: var(--application-text);
6504
+ background: var(--application-hover-neutral);
5986
6505
  }
5987
6506
 
5988
6507
  .mh-secondary-nav__tab:focus-visible {
@@ -6003,6 +6522,44 @@
6003
6522
  inline-size: var(--ui-shell-topbar-icon-size);
6004
6523
  block-size: var(--ui-shell-topbar-icon-size);
6005
6524
  }
6525
+
6526
+ /* 尾部按钮(kit「二级导航设置」24:134 与「结构=设置」的关闭键):32×32、圆角 12、
6527
+ * 透明底,悬停 6% 文字色淡底 —— 与集团顶栏的应用切换同一套几何。标签区吃掉剩余宽度,
6528
+ * 它因此贴在右内边距 12 之内。两种形态共用这一段,只有字形颜色不同。 */
6529
+ .mh-secondary-nav__trail {
6530
+ display: grid;
6531
+ place-items: center;
6532
+ flex: 0 0 auto;
6533
+ box-sizing: border-box;
6534
+ inline-size: var(--ui-shell-control-size);
6535
+ block-size: var(--ui-shell-control-size);
6536
+ padding: 0;
6537
+ border: none;
6538
+ border-radius: var(--ui-shell-global-action-radius);
6539
+ background: transparent;
6540
+ cursor: pointer;
6541
+ transition: background var(--ui-duration-fast) var(--ui-ease-standard);
6542
+ }
6543
+
6544
+ .mh-secondary-nav__trail:hover {
6545
+ background: var(--application-hover-neutral);
6546
+ }
6547
+
6548
+ .mh-secondary-nav__trail:focus-visible {
6549
+ outline: var(--ds-focus-ring-width) solid var(--application-focus);
6550
+ outline-offset: calc(-1 * var(--ds-focus-ring-offset));
6551
+ }
6552
+
6553
+ /* 导航设置:16px 滑杆字形取文字2(kit 字形描边 #696865)。 */
6554
+ .mh-secondary-nav__settings {
6555
+ color: var(--application-muted);
6556
+ }
6557
+
6558
+ /* 关闭设置:叉号取文字1(kit 字形描边 #1f1e1a),悬停不变色。 */
6559
+ .mh-secondary-nav__close,
6560
+ .mh-secondary-nav__close:hover {
6561
+ color: var(--application-text);
6562
+ }
6006
6563
  }
6007
6564
 
6008
6565
  /* ── src/components/application-module/navigation/GlobalSidebar.css ──── */
@@ -6038,9 +6595,62 @@
6038
6595
  }
6039
6596
  }
6040
6597
 
6598
+ /* ── src/components/application-module/navigation/shell-account.css ──── */
6599
+
6600
+ @layer moheng.components {
6601
+ /* 账户头像触发器 —— TopNavigationPrimaryBar(集团版)与 ApplicationPrimaryNavigation
6602
+ * (基础版)共用。kit「框架结构 / 用户」:32 高的命中区里一枚 24×24 圆形头像。
6603
+ * 两处各写一份 JSX(每个 .tsx 都会被 build-index 当作公共组件导出,不能再拆一个
6604
+ * 文件),样式收在这里一处。缩写规则走 internal/initials,与 Avatar 相同。 */
6605
+ .mh-shell-account {
6606
+ display: grid;
6607
+ place-items: center;
6608
+ flex: 0 0 auto;
6609
+ inline-size: var(--ui-shell-control-size);
6610
+ block-size: var(--ui-shell-control-size);
6611
+ padding: 0;
6612
+ border: none;
6613
+ border-radius: var(--ui-shell-global-action-radius);
6614
+ background: transparent;
6615
+ cursor: pointer;
6616
+ transition: background var(--ui-duration-fast) var(--ui-ease-standard);
6617
+ }
6618
+
6619
+ .mh-shell-account:hover {
6620
+ background: var(--application-hover-neutral);
6621
+ }
6622
+
6623
+ .mh-shell-account:focus-visible {
6624
+ outline: var(--ds-focus-ring-width) solid var(--application-focus);
6625
+ outline-offset: var(--ds-focus-ring-offset);
6626
+ }
6627
+
6628
+ .mh-shell-account__avatar {
6629
+ display: grid;
6630
+ place-items: center;
6631
+ inline-size: var(--ui-shell-account-avatar-size);
6632
+ block-size: var(--ui-shell-account-avatar-size);
6633
+ border-radius: 50%;
6634
+ background: var(--application-avatar-fallback-surface);
6635
+ color: var(--application-muted);
6636
+ font-size: var(--application-font-size-meta);
6637
+ line-height: var(--application-line-height-meta);
6638
+ font-weight: var(--application-font-weight-medium);
6639
+ }
6640
+ }
6641
+
6041
6642
  /* ── src/components/application-module/navigation/TopNavigationPrimaryBar.css */
6042
6643
 
6043
6644
  @layer moheng.components {
6645
+ /* 集团版外壳:本带存在时把外壳总高让出本带高度(基础版取 var() 的默认值 0)。
6646
+ * 写在 :root 上而不是本元素上 —— --ui-shell-application-total-height 在 :root 声明,
6647
+ * var() 在声明所在元素解析,只有在同一元素上改它的输入才会传导下去。
6648
+ * tokens/shell.css 刻意不声明 --ui-shell-top-bar-offset:token 文件不在任何层内,
6649
+ * 那里写一个 0px 会压过这条层内规则(实测:顶栏在场时总高仍是 96)。 */
6650
+ :root:has(.mh-top-bar) {
6651
+ --ui-shell-top-bar-offset: var(--ui-shell-primary-height);
6652
+ }
6653
+
6044
6654
  /* 栅格 auto / minmax(0,1fr) / auto —— 品牌与账户按内容宽,中间吃掉剩余并
6045
6655
  * 允许收缩到 0。高度是 Shell 的固定契约,业务页面不得改。 */
6046
6656
  .mh-top-bar {
@@ -6052,27 +6662,31 @@
6052
6662
  inline-size: 100%;
6053
6663
  block-size: var(--ui-shell-primary-height);
6054
6664
  padding: var(--ui-shell-topbar-padding-block) var(--ui-shell-topbar-padding-inline);
6055
- border-block-end: var(--ui-shell-divider);
6056
6665
  background: var(--application-canvas);
6666
+ box-shadow: var(--ui-shell-band-divider);
6057
6667
  font-family: var(--application-font-family);
6058
6668
  }
6059
6669
 
6670
+ /* 品牌区(kit「集团顶部导航」24:249):36px 图形 + 8 + 集团名 20/30 semibold。
6671
+ * 宽度按内容 —— 集团名长短不一,此前固定 120 是给 120×32 字标资产留的位。
6672
+ * 区高 32 而图形 36:kit 即如此,图形上下各溢出 2,由 align-items 居中。 */
6060
6673
  .mh-top-bar__brand {
6061
6674
  display: flex;
6062
6675
  align-items: center;
6063
6676
  gap: var(--ui-shell-brand-fallback-name-gap);
6064
6677
  min-inline-size: var(--ui-shell-brand-min-width);
6065
- inline-size: var(--ui-shell-brand-width);
6066
6678
  block-size: var(--ui-shell-brand-height);
6067
6679
  }
6068
6680
 
6681
+ /* 真实资产与 mock 色块占同一个 36×36 图形位。 */
6069
6682
  .mh-top-bar__brand-asset {
6070
- inline-size: var(--ui-shell-brand-width);
6071
- block-size: var(--ui-shell-brand-height);
6683
+ flex: 0 0 auto;
6684
+ inline-size: var(--ui-shell-brand-fallback-mark-size);
6685
+ block-size: var(--ui-shell-brand-fallback-mark-size);
6072
6686
  object-fit: contain;
6073
6687
  }
6074
6688
 
6075
- /* 28×28 纯色块。规范禁止在里面画伪 Logo —— 它是占位,不是标识。 */
6689
+ /* 36×36 纯色块。规范禁止在里面画伪 Logo —— 它是占位,不是标识。 */
6076
6690
  .mh-top-bar__brand-mark {
6077
6691
  flex: 0 0 auto;
6078
6692
  inline-size: var(--ui-shell-brand-fallback-mark-size);
@@ -6085,7 +6699,7 @@
6085
6699
  color: var(--application-text);
6086
6700
  font-size: var(--ui-shell-brand-fallback-name-size);
6087
6701
  line-height: var(--ui-shell-brand-fallback-name-line-height);
6088
- font-weight: var(--application-font-weight-bold);
6702
+ font-weight: var(--application-font-weight-semibold);
6089
6703
  white-space: nowrap;
6090
6704
  }
6091
6705
 
@@ -6109,7 +6723,7 @@
6109
6723
  block-size: var(--ui-shell-control-size);
6110
6724
  padding: 0;
6111
6725
  border: none;
6112
- border-radius: var(--application-radius-16);
6726
+ border-radius: var(--ui-shell-global-action-radius);
6113
6727
  background: transparent;
6114
6728
  color: var(--application-text);
6115
6729
  cursor: pointer;
@@ -6124,18 +6738,6 @@
6124
6738
  outline: var(--ds-focus-ring-width) solid var(--application-focus);
6125
6739
  outline-offset: var(--ds-focus-ring-offset);
6126
6740
  }
6127
-
6128
- .mh-top-bar__avatar {
6129
- display: grid;
6130
- place-items: center;
6131
- inline-size: var(--ui-shell-control-size);
6132
- block-size: var(--ui-shell-control-size);
6133
- border-radius: 50%;
6134
- background: var(--application-avatar-fallback-surface);
6135
- color: var(--application-muted);
6136
- font-size: var(--application-font-size-meta);
6137
- font-weight: var(--application-font-weight-medium);
6138
- }
6139
6741
  }
6140
6742
 
6141
6743
  /* ── src/components/application-module/overlays/ApplicationDetailDrawer.css */
@@ -6150,6 +6752,14 @@
6150
6752
  font-family: var(--application-font-family);
6151
6753
  }
6152
6754
 
6755
+ /* GAP Design kit(业财平台 round-01 · drawer/background、drawer/shadow):抽屉是灰底
6756
+ * (导航背景,= --application-canvas),内容由 ApplicationRecordDetailBody 的白卡承载;
6757
+ * 不带投影,与遮罩之间只靠分隔线区分。 */
6758
+ .mh-detail-drawer.mh-overlay__panel {
6759
+ background: var(--application-canvas);
6760
+ box-shadow: none;
6761
+ }
6762
+
6153
6763
  /* 边框画在朝向内容的那一侧,随 side 换边(06 · P2-8),与 Foundation Drawer 同一写法。
6154
6764
  * 用 --application-divider 而非已废弃的 --ds-color-drawer-border(04 · F6)。 */
6155
6765
  .mh-detail-drawer[data-side='right'] {
@@ -6166,12 +6776,16 @@
6166
6776
  flex: 0 0 auto;
6167
6777
  gap: var(--application-space-3);
6168
6778
  min-block-size: var(--application-content-header-height);
6169
- padding: 0 var(--ui-surface-padding);
6170
- border-block-end: 1px solid var(--application-divider);
6779
+ padding: 0 var(--application-space-3);
6780
+ box-shadow: inset 0 calc(var(--application-hairline) * -1) 0 var(--application-divider);
6171
6781
  }
6172
6782
 
6783
+ /* 标题与副标题同行,都是 14/20(round-01 · header/title/font、header/subtitle/position)。 */
6173
6784
  .mh-detail-drawer__titles {
6785
+ display: flex;
6786
+ align-items: center;
6174
6787
  flex: 1;
6788
+ gap: var(--application-space-2);
6175
6789
  min-inline-size: 0;
6176
6790
  }
6177
6791
 
@@ -6184,44 +6798,39 @@
6184
6798
 
6185
6799
  .mh-detail-drawer__title {
6186
6800
  overflow: hidden;
6187
- color: var(--application-text);
6188
- font-size: var(--application-font-size-title);
6189
- line-height: var(--application-line-height-title);
6801
+ color: var(--application-muted);
6802
+ font-size: var(--application-font-size-body);
6803
+ line-height: var(--application-line-height-body);
6190
6804
  font-weight: var(--application-font-weight-medium);
6191
6805
  text-overflow: ellipsis;
6192
6806
  white-space: nowrap;
6193
6807
  }
6194
6808
 
6195
6809
  .mh-detail-drawer__subtitle {
6810
+ overflow: hidden;
6811
+ min-inline-size: 0;
6196
6812
  color: var(--application-label);
6197
- font-size: var(--application-font-size-meta);
6198
- line-height: var(--application-line-height-meta);
6813
+ font-size: var(--application-font-size-body);
6814
+ line-height: var(--application-line-height-body);
6815
+ text-overflow: ellipsis;
6816
+ white-space: nowrap;
6199
6817
  }
6200
6818
 
6201
- /* 抽屉的次要动作有自己一组登记色,与通用 secondary 按钮略有差别。 */
6202
- .mh-detail-drawer__close {
6203
- border-color: var(--application-drawer-action-secondary-border);
6204
- color: var(--application-drawer-action-secondary-text);
6819
+ /* 页头右侧动作区(kit「抽屉 / 常规 · 操作区域」):主动作 · 次要动作 · 关闭,间隔 4。 */
6820
+ .mh-detail-drawer__actions {
6821
+ display: flex;
6822
+ align-items: center;
6823
+ flex: 0 0 auto;
6824
+ gap: var(--application-space-1);
6205
6825
  }
6206
6826
 
6207
6827
  .mh-detail-drawer__body {
6208
6828
  flex: 1;
6209
6829
  min-block-size: 0;
6210
- padding: var(--ui-surface-padding);
6830
+ padding: var(--application-space-3);
6211
6831
  overflow-y: auto;
6212
6832
  }
6213
6833
 
6214
- /* 底部动作区固定不随内容滚动,主动作在最右。 */
6215
- .mh-detail-drawer__footer {
6216
- display: flex;
6217
- align-items: center;
6218
- justify-content: flex-end;
6219
- flex: 0 0 auto;
6220
- gap: var(--application-space-2);
6221
- padding: var(--application-space-3) var(--ui-surface-padding);
6222
- border-block-start: 1px solid var(--application-divider);
6223
- background: var(--application-surface);
6224
- }
6225
6834
  }
6226
6835
 
6227
6836
  /* ── src/components/application-module/overlays/ApplicationFormDialog.css */
@@ -6232,7 +6841,8 @@
6232
6841
 
6233
6842
  box-sizing: border-box;
6234
6843
  inline-size: var(--application-form-dialog-width-small);
6235
- border-radius: var(--application-radius-16);
6844
+ /* kit「弹窗」圆角 20(188:685)。 */
6845
+ border-radius: var(--application-radius-dialog);
6236
6846
  font-family: var(--application-font-family);
6237
6847
  }
6238
6848
 
@@ -6240,24 +6850,54 @@
6240
6850
  inline-size: var(--application-form-dialog-width-large);
6241
6851
  }
6242
6852
 
6853
+ /* kit 弹窗宽度上限 1280。视口更窄时由 Overlay 面板的 max-inline-size: 100% 收住。 */
6854
+ .mh-form-dialog[data-size='xlarge'] {
6855
+ inline-size: var(--application-form-dialog-width-xlarge);
6856
+ }
6857
+
6858
+ /* GAP Design kit(业财平台 round-01 · editor/header/layout):高 48、上下 8 左右 12、
6859
+ * 标题与关闭键间隔 10(kit「弹窗标题」151:2541)、
6860
+ * 灰底(导航背景),标题 16/20 medium;右侧 32×32 纯图标关闭(header/close/presence)。 */
6243
6861
  .mh-form-dialog__header {
6862
+ display: flex;
6863
+ align-items: center;
6864
+ justify-content: space-between;
6244
6865
  flex: 0 0 auto;
6245
- padding: var(--ui-surface-padding);
6246
- border-block-end: 1px solid var(--application-divider);
6866
+ gap: var(--application-spacing-10);
6867
+ box-sizing: border-box;
6868
+ min-block-size: var(--application-content-header-height);
6869
+ padding: var(--application-space-2) var(--application-space-3);
6870
+ background: var(--application-canvas);
6871
+ box-shadow: inset 0 calc(var(--application-hairline) * -1) 0 var(--application-divider);
6872
+ }
6873
+
6874
+ .mh-form-dialog__titles {
6875
+ display: flex;
6876
+ align-items: baseline;
6877
+ gap: var(--application-space-2);
6878
+ min-inline-size: 0;
6247
6879
  }
6248
6880
 
6249
6881
  .mh-form-dialog__title {
6250
6882
  color: var(--application-text);
6251
6883
  font-size: var(--application-font-size-title);
6252
- line-height: var(--application-line-height-title);
6884
+ line-height: var(--application-line-height-body);
6253
6885
  font-weight: var(--application-font-weight-medium);
6254
6886
  }
6255
6887
 
6256
6888
  .mh-form-dialog__description {
6257
- margin-block-start: calc(var(--application-space-1) / 2);
6889
+ overflow: hidden;
6258
6890
  color: var(--application-label);
6259
- font-size: var(--application-font-size-meta);
6260
- line-height: var(--application-line-height-meta);
6891
+ font-size: var(--application-font-size-body);
6892
+ line-height: var(--application-line-height-body);
6893
+ text-overflow: ellipsis;
6894
+ white-space: nowrap;
6895
+ }
6896
+
6897
+ /* 32×32 关闭键是 CloseButton 的 medium 档(kit 页头关闭键),这里只补提交中的禁用态。 */
6898
+ .mh-form-dialog__close[aria-disabled='true'] {
6899
+ color: var(--application-disabled);
6900
+ cursor: not-allowed;
6261
6901
  }
6262
6902
 
6263
6903
  /* 表单只是语义容器:接过面板的列向 flex,让主体照旧滚动、动作区照旧贴底。 */
@@ -6272,27 +6912,48 @@
6272
6912
  display: flex;
6273
6913
  flex: 1;
6274
6914
  flex-direction: column;
6275
- gap: var(--application-space-4);
6915
+ gap: var(--application-space-3);
6276
6916
  min-block-size: 0;
6277
- padding: var(--ui-surface-padding);
6917
+ padding: var(--application-space-3);
6918
+ background: var(--application-canvas);
6278
6919
  overflow-y: auto;
6279
6920
  }
6280
6921
 
6281
- /* 字段网格。minmax(0, 1fr) 让长值不撑破列宽 —— 详情里常有长编号。 */
6922
+ /* 主体灰底上的白卡(kit:圆角 16、内边距 12,round-01 · editor/body/surface)。 */
6923
+ .mh-form-dialog__card {
6924
+ padding: var(--application-space-3);
6925
+ border-radius: var(--application-radius-16);
6926
+ background: var(--application-surface);
6927
+ }
6928
+
6929
+ /* 字段网格,间距 10(kit「间距10」,round-01 · editor/grid/gap)。
6930
+ * minmax(0, 1fr) 让长值不撑破列宽 —— 详情里常有长编号。 */
6282
6931
  .mh-form-dialog__grid {
6283
6932
  display: grid;
6284
6933
  grid-template-columns: repeat(var(--mh-form-dialog-columns), minmax(0, 1fr));
6285
- gap: var(--application-space-4);
6934
+ gap: var(--application-spacing-10);
6286
6935
  }
6287
6936
 
6937
+ /* kit「弹窗」操作插槽(188:662):灰底、内边距 12、间隔 4、顶部 0.5px 分隔线 ——
6938
+ * 页头、主体、操作区三段同为导航背景色,白的只有主体里那张卡。 */
6288
6939
  .mh-form-dialog__footer {
6289
6940
  display: flex;
6290
6941
  align-items: center;
6291
6942
  justify-content: flex-end;
6292
6943
  flex: 0 0 auto;
6293
- gap: var(--application-space-2);
6294
- padding: var(--application-space-3) var(--ui-surface-padding);
6295
- border-block-start: 1px solid var(--application-divider);
6944
+ gap: var(--application-space-1);
6945
+ padding: var(--application-space-3);
6946
+ background: var(--application-canvas);
6947
+ box-shadow: inset 0 var(--application-hairline) 0 var(--application-divider);
6948
+ }
6949
+
6950
+ /* 左侧说明把动作挤到右边:它吃掉剩余宽度。 */
6951
+ .mh-form-dialog__footer-note {
6952
+ flex: 1;
6953
+ min-inline-size: 0;
6954
+ color: var(--application-label);
6955
+ font-size: var(--application-font-size-meta);
6956
+ line-height: var(--application-line-height-meta);
6296
6957
  }
6297
6958
  }
6298
6959
 
@@ -6304,8 +6965,9 @@
6304
6965
  *
6305
6966
  * 最大高度的视口约束按面板实际的 top 算:视口高 − 外壳总高 − 底部视口边距。
6306
6967
  * 此前减的是常量 --ui-shell-global-action-panel-viewport-offset(120px),
6307
- * 而 top 是外壳总高(164px),两者差 44px —— 1280×720 下面板底边落在 729px,
6308
- * 越出视口 9px,页脚被裁。底部边距取与左右同一个 16px 视口边距。 */
6968
+ * 而 top 是外壳总高(当时三带 164px),两者差 44px —— 1280×720 下面板底边落在 729px,
6969
+ * 越出视口 9px,页脚被裁。底部边距取与左右同一个 16px 视口边距。
6970
+ * 外壳总高自 round-01 Shell 裁决起随形态变化(基础版 96 / 集团版 144),这里照读不误。 */
6309
6971
  .mh-action-panel {
6310
6972
  position: fixed;
6311
6973
  top: var(--ui-shell-application-total-height);
@@ -6387,7 +7049,7 @@
6387
7049
  box-sizing: border-box;
6388
7050
  inline-size: var(--application-form-dialog-width-small);
6389
7051
  block-size: var(--mh-people-picker-height);
6390
- border-radius: var(--application-radius-16);
7052
+ border-radius: var(--application-radius-dialog);
6391
7053
  font-family: var(--application-font-family);
6392
7054
  }
6393
7055
 
@@ -6766,7 +7428,10 @@
6766
7428
  * 三条贯穿全族的硬约束都落在这里:
6767
7429
  * · 默认只读 —— cursor: default,整卡绝不成为导航入口
6768
7430
  * · 等高 —— min-block-size 固定,容器再用 grid 拉平
6769
- * · 无阴影 —— 与 Card 同一条规矩 */
7431
+ * · 无阴影 —— 与 Card 同一条规矩
7432
+ *
7433
+ * GAP Design kit(业财平台 round-01 · metrics/card/surface):指标不是卡片 ——
7434
+ * 没有边框、底色与内边距,直接落在页面底色上,高 76。类名保留 card 是历史命名。 */
6770
7435
  .mh-metric-card {
6771
7436
  display: flex;
6772
7437
  flex-direction: column;
@@ -6776,10 +7441,8 @@
6776
7441
  /* 作为 grid 子项时默认 min-inline-size: auto,内容宽度会撑开整列 */
6777
7442
  min-inline-size: 0;
6778
7443
  min-block-size: var(--application-metric-strip-height);
6779
- padding: var(--application-space-3) var(--application-space-4);
6780
- border: 1px solid var(--application-border);
6781
- border-radius: var(--application-radius-16);
6782
- background: var(--application-surface);
7444
+ padding: 0;
7445
+ background: transparent;
6783
7446
  font-family: var(--application-font-family);
6784
7447
  cursor: default;
6785
7448
  }
@@ -6790,7 +7453,14 @@
6790
7453
  line-height: var(--application-line-height-meta);
6791
7454
  }
6792
7455
 
6793
- /* 指标值 24/32 semibold,等宽数字 —— 一排卡片的数字要能竖着对齐。
7456
+ /* 口径说明,12/16 次要文字色(kit 文字2),在数值下方。 */
7457
+ .mh-metric-card__description {
7458
+ color: var(--application-muted);
7459
+ font-size: var(--application-font-size-meta);
7460
+ line-height: var(--application-line-height-meta);
7461
+ }
7462
+
7463
+ /* 指标值 32/32 semibold,等宽数字 —— 一排卡片的数字要能竖着对齐。
6794
7464
  * 行高与字重走 application-extend 补的别名,不再下探 --ds-*(S1)。 */
6795
7465
  .mh-metric-card__value {
6796
7466
  color: var(--application-text);