@xihan-ui/styles 3.1.0 → 4.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 (290) hide show
  1. package/CHANGELOG.md +470 -0
  2. package/component-tokens.d.ts +230 -60
  3. package/components.tokens.json +5156 -1557
  4. package/css/accordion.css +47 -20
  5. package/css/alert.css +16 -17
  6. package/css/anchor.css +2 -2
  7. package/css/approval.css +41 -17
  8. package/css/avatar-group.css +9 -12
  9. package/css/avatar.css +20 -18
  10. package/css/back-top.css +21 -7
  11. package/css/badge.css +5 -5
  12. package/css/breadcrumb.css +18 -16
  13. package/css/button-group.css +4 -6
  14. package/css/button.css +13 -12
  15. package/css/calendar-picker.css +178 -95
  16. package/css/calendar-range-picker.css +207 -122
  17. package/css/card.css +34 -6
  18. package/css/carousel.css +94 -46
  19. package/css/cartesian-chart.css +11 -11
  20. package/css/cascader.css +51 -39
  21. package/css/checkbox-group.css +9 -6
  22. package/css/checkbox.css +5 -4
  23. package/css/citation.css +9 -4
  24. package/css/clipboard.css +20 -4
  25. package/css/code-view.css +6 -6
  26. package/css/collapsible.css +29 -14
  27. package/css/color-field.css +4 -4
  28. package/css/color-picker.css +77 -23
  29. package/css/color-slider.css +10 -8
  30. package/css/color-swatch-picker.css +14 -9
  31. package/css/combobox.css +26 -14
  32. package/css/command.css +14 -9
  33. package/css/context-menu.css +10 -5
  34. package/css/date-field.css +12 -6
  35. package/css/date-picker.css +178 -109
  36. package/css/date-range-picker.css +199 -130
  37. package/css/description.css +10 -6
  38. package/css/descriptions.css +47 -19
  39. package/css/dialog.css +50 -35
  40. package/css/diff-view.css +8 -8
  41. package/css/drawer.css +75 -21
  42. package/css/editable.css +15 -41
  43. package/css/empty-state.css +21 -3
  44. package/css/field-array.css +5 -2
  45. package/css/field.css +17 -18
  46. package/css/fieldset.css +33 -13
  47. package/css/file-upload.css +66 -33
  48. package/css/float-button.css +60 -35
  49. package/css/floating-panel.css +1 -1
  50. package/css/form.css +30 -16
  51. package/css/graph-chart.css +2 -2
  52. package/css/grid-list.css +1 -1
  53. package/css/highlight.css +5 -5
  54. package/css/hover-card.css +19 -12
  55. package/css/image-viewer.css +77 -27
  56. package/css/image.css +13 -5
  57. package/css/infinite-scroll.css +8 -4
  58. package/css/input-group.css +74 -26
  59. package/css/kbd.css +1 -1
  60. package/css/label.css +27 -11
  61. package/css/layout.css +17 -10
  62. package/css/list.css +13 -9
  63. package/css/listbox.css +12 -7
  64. package/css/loading-bar.css +3 -0
  65. package/css/mention.css +11 -9
  66. package/css/menu.css +10 -5
  67. package/css/menubar.css +13 -8
  68. package/css/message-feed.css +1 -1
  69. package/css/navigation-menu.css +2 -2
  70. package/css/notification.css +132 -49
  71. package/css/number-animation.css +2 -2
  72. package/css/number-field.css +75 -52
  73. package/css/page-header.css +64 -27
  74. package/css/pagination.css +35 -38
  75. package/css/password-input.css +12 -68
  76. package/css/pin-input.css +18 -26
  77. package/css/popconfirm.css +23 -14
  78. package/css/popover.css +18 -12
  79. package/css/progress.css +14 -13
  80. package/css/prompt-input.css +3 -3
  81. package/css/question-flow.css +41 -15
  82. package/css/radar-chart.css +6 -6
  83. package/css/radio-group.css +120 -55
  84. package/css/rating.css +32 -15
  85. package/css/select.css +16 -12
  86. package/css/separator.css +24 -6
  87. package/css/side-nav.css +29 -24
  88. package/css/signature-pad.css +23 -9
  89. package/css/skeleton.css +12 -12
  90. package/css/slider.css +77 -48
  91. package/css/sortable.css +2 -2
  92. package/css/sparkline.css +8 -2
  93. package/css/spinner.css +40 -20
  94. package/css/statistic.css +14 -14
  95. package/css/steps.css +115 -84
  96. package/css/switch.css +9 -7
  97. package/css/table.css +29 -12
  98. package/css/tabs.css +35 -12
  99. package/css/tag-group.css +17 -6
  100. package/css/tag.css +54 -29
  101. package/css/tags-input.css +39 -20
  102. package/css/text-field.css +5 -5
  103. package/css/time-field.css +4 -4
  104. package/css/time-picker.css +150 -64
  105. package/css/time-range-picker.css +91 -62
  106. package/css/timeline.css +37 -20
  107. package/css/timer.css +3 -3
  108. package/css/toggle-group.css +4 -4
  109. package/css/tool-call.css +13 -11
  110. package/css/toolbar.css +6 -5
  111. package/css/tooltip.css +16 -17
  112. package/css/tour.css +14 -7
  113. package/css/transfer.css +22 -16
  114. package/css/tree-select.css +12 -12
  115. package/css/tree.css +26 -25
  116. package/css/typography.css +28 -25
  117. package/dist/css/accordion.css +296 -0
  118. package/dist/css/affix.css +47 -0
  119. package/dist/css/alert.css +246 -0
  120. package/dist/css/anchor.css +252 -0
  121. package/dist/css/approval.css +525 -0
  122. package/dist/css/avatar-group.css +96 -0
  123. package/dist/css/avatar.css +100 -0
  124. package/dist/css/back-top.css +175 -0
  125. package/dist/css/badge.css +205 -0
  126. package/dist/css/bar-code.css +62 -0
  127. package/dist/css/breadcrumb.css +232 -0
  128. package/dist/css/button-group.css +261 -0
  129. package/dist/css/button.css +216 -0
  130. package/dist/css/calendar-picker.css +550 -0
  131. package/dist/css/calendar-range-picker.css +639 -0
  132. package/dist/css/card.css +249 -0
  133. package/dist/css/carousel.css +726 -0
  134. package/dist/css/cartesian-chart.css +830 -0
  135. package/dist/css/cascader.css +973 -0
  136. package/dist/css/checkbox-group.css +361 -0
  137. package/dist/css/checkbox.css +258 -0
  138. package/dist/css/citation.css +475 -0
  139. package/dist/css/clipboard.css +331 -0
  140. package/dist/css/code-view.css +374 -0
  141. package/dist/css/collapsible.css +200 -0
  142. package/dist/css/color-field.css +176 -0
  143. package/dist/css/color-picker.css +649 -0
  144. package/dist/css/color-slider.css +283 -0
  145. package/dist/css/color-swatch-picker.css +250 -0
  146. package/dist/css/color-swatch.css +35 -0
  147. package/dist/css/combobox.css +578 -0
  148. package/dist/css/command.css +404 -0
  149. package/dist/css/context-menu.css +425 -0
  150. package/dist/css/date-field.css +317 -0
  151. package/dist/css/date-picker.css +931 -0
  152. package/dist/css/date-range-picker.css +949 -0
  153. package/dist/css/description.css +71 -0
  154. package/dist/css/descriptions.css +327 -0
  155. package/dist/css/dialog.css +470 -0
  156. package/dist/css/diff-view.css +513 -0
  157. package/dist/css/download-trigger.css +151 -0
  158. package/dist/css/drawer.css +606 -0
  159. package/dist/css/editable.css +269 -0
  160. package/dist/css/empty-state.css +181 -0
  161. package/dist/css/field-array.css +229 -0
  162. package/dist/css/field.css +165 -0
  163. package/dist/css/fieldset.css +122 -0
  164. package/dist/css/file-upload.css +462 -0
  165. package/dist/css/flex.css +441 -0
  166. package/dist/css/float-button.css +579 -0
  167. package/dist/css/floating-panel.css +429 -0
  168. package/dist/css/focus.css +46 -0
  169. package/dist/css/forced-colors.css +93 -0
  170. package/dist/css/form.css +407 -0
  171. package/dist/css/funnel-chart.css +106 -0
  172. package/dist/css/graph-chart.css +205 -0
  173. package/dist/css/grid-list.css +235 -0
  174. package/dist/css/grid.css +1201 -0
  175. package/dist/css/heatmap.css +552 -0
  176. package/dist/css/hierarchy-chart.css +298 -0
  177. package/dist/css/highlight.css +41 -0
  178. package/dist/css/hover-card.css +233 -0
  179. package/dist/css/icon.css +225 -0
  180. package/dist/css/image-cropper.css +373 -0
  181. package/dist/css/image-viewer.css +588 -0
  182. package/dist/css/image.css +106 -0
  183. package/dist/css/infinite-scroll.css +81 -0
  184. package/dist/css/input-group.css +323 -0
  185. package/dist/css/json-viewer.css +379 -0
  186. package/dist/css/kbd.css +72 -0
  187. package/dist/css/label.css +94 -0
  188. package/dist/css/layers.css +7 -0
  189. package/dist/css/layout.css +379 -0
  190. package/dist/css/liquid.css +106 -0
  191. package/dist/css/list.css +156 -0
  192. package/dist/css/listbox.css +395 -0
  193. package/dist/css/loading-bar.css +144 -0
  194. package/dist/css/log.css +306 -0
  195. package/dist/css/markdown-stream.css +149 -0
  196. package/dist/css/marquee.css +378 -0
  197. package/dist/css/masonry.css +70 -0
  198. package/dist/css/matrix-code.css +67 -0
  199. package/dist/css/mention.css +395 -0
  200. package/dist/css/menu.css +369 -0
  201. package/dist/css/menubar.css +461 -0
  202. package/dist/css/message-feed.css +318 -0
  203. package/dist/css/navigation-menu.css +513 -0
  204. package/dist/css/notification.css +865 -0
  205. package/dist/css/number-animation.css +44 -0
  206. package/dist/css/number-field.css +275 -0
  207. package/dist/css/overlay-arrow.css +56 -0
  208. package/dist/css/page-header.css +221 -0
  209. package/dist/css/pagination.css +447 -0
  210. package/dist/css/password-input.css +335 -0
  211. package/dist/css/pie-chart.css +247 -0
  212. package/dist/css/pin-input.css +191 -0
  213. package/dist/css/pointer.css +36 -0
  214. package/dist/css/popconfirm.css +329 -0
  215. package/dist/css/popover.css +285 -0
  216. package/dist/css/progress.css +502 -0
  217. package/dist/css/prompt-input.css +260 -0
  218. package/dist/css/question-flow.css +579 -0
  219. package/dist/css/radar-chart.css +233 -0
  220. package/dist/css/radio-group.css +663 -0
  221. package/dist/css/rating.css +311 -0
  222. package/dist/css/reasoning.css +343 -0
  223. package/dist/css/reset.css +117 -0
  224. package/dist/css/resizable.css +242 -0
  225. package/dist/css/sankey-chart.css +174 -0
  226. package/dist/css/scroll-area.css +240 -0
  227. package/dist/css/scrollbar.css +204 -0
  228. package/dist/css/select.css +616 -0
  229. package/dist/css/separator.css +140 -0
  230. package/dist/css/side-nav.css +481 -0
  231. package/dist/css/signature-pad.css +193 -0
  232. package/dist/css/skeleton.css +161 -0
  233. package/dist/css/slider.css +403 -0
  234. package/dist/css/sortable.css +228 -0
  235. package/dist/css/sparkline.css +170 -0
  236. package/dist/css/spinner.css +256 -0
  237. package/dist/css/splitter.css +159 -0
  238. package/dist/css/statistic.css +137 -0
  239. package/dist/css/steps.css +658 -0
  240. package/dist/css/switch.css +353 -0
  241. package/dist/css/table.css +1162 -0
  242. package/dist/css/tabs.css +967 -0
  243. package/dist/css/tag-group.css +258 -0
  244. package/dist/css/tag.css +335 -0
  245. package/dist/css/tags-input.css +341 -0
  246. package/dist/css/text-field.css +197 -0
  247. package/dist/css/time-field.css +277 -0
  248. package/dist/css/time-picker.css +793 -0
  249. package/dist/css/time-range-picker.css +775 -0
  250. package/dist/css/timeline.css +440 -0
  251. package/dist/css/timer.css +123 -0
  252. package/dist/css/timestamp.css +34 -0
  253. package/dist/css/toggle-group.css +424 -0
  254. package/dist/css/toggle.css +146 -0
  255. package/dist/css/tone.css +189 -0
  256. package/dist/css/tool-call.css +431 -0
  257. package/dist/css/toolbar.css +366 -0
  258. package/dist/css/tooltip.css +217 -0
  259. package/dist/css/tour.css +446 -0
  260. package/dist/css/transfer.css +644 -0
  261. package/dist/css/tree-select.css +878 -0
  262. package/dist/css/tree.css +734 -0
  263. package/dist/css/truncate.css +108 -0
  264. package/dist/css/typography.css +475 -0
  265. package/dist/css/undefined.css +58 -0
  266. package/dist/css/virtualizer.css +166 -0
  267. package/dist/css/visually-hidden.css +20 -0
  268. package/dist/css/watermark.css +82 -0
  269. package/dist/family/action-control.css +493 -0
  270. package/dist/family/chart.css +537 -0
  271. package/dist/family/check-mark.css +94 -0
  272. package/dist/family/choice-card.css +97 -0
  273. package/dist/family/collection-item.css +768 -0
  274. package/dist/family/field-chrome.css +296 -0
  275. package/dist/family/loading-ring.css +102 -0
  276. package/dist/family/material.css +72 -0
  277. package/dist/family/menu-choice.css +56 -0
  278. package/dist/family/motion.css +363 -0
  279. package/dist/family/swatch.css +59 -0
  280. package/dist/family/tag-list.css +65 -0
  281. package/family/action-control.css +33 -36
  282. package/family/chart.css +57 -0
  283. package/family/collection-item.css +12 -8
  284. package/family/field-chrome.css +28 -19
  285. package/family/loading-ring.css +20 -13
  286. package/family/swatch.css +4 -4
  287. package/family/tag-list.css +6 -0
  288. package/index.css +10349 -8756
  289. package/index.unlayered.css +10350 -8758
  290. package/package.json +165 -164
@@ -0,0 +1,579 @@
1
+ /*
2
+ * Copyright (c) 2021-Present XiHanFun and contributors.
3
+ * Licensed under the MIT License. See LICENSE in the project root for license information.
4
+ */
5
+
6
+ /* 定义 question flow 样式。 */
7
+
8
+ /* 共享关键帧由 family/motion.css 提供,本皮肤 @import 它,单独引入仍成立;
9
+ 独立皮肤同时传递引入选项行与四颗钮的动作控件配方,full bundle 递归去重。 */
10
+ @import '../family/motion.css';
11
+ @import '../family/action-control.css';
12
+ @import '../family/check-mark.css';
13
+
14
+ @layer xihan.components {
15
+ /* 皮肤在场的标记:开发模式下按 scope 探一次,取不到就说明这份皮肤没被引入。 */
16
+ .xh-scope-question-flow {
17
+ --xh-question-flow-skin: 1;
18
+ }
19
+
20
+ /* 一张静态内容面:--xh-border-default 描边 + surface 底 + 无影(边界只由描边承担)。
21
+ 三个视觉轴都落在 root 上:形态管底与描边怎么画,语气管用哪族颜色,尺寸管内衬、按钮高度与字号 */
22
+ .xh-scope-question-flow[data-part='root'] {
23
+ /* 作者塞进翻页钮的图标按档取尺,与皮肤画的兜底字形同一把尺 */
24
+ --xh-icon-size: var(--xh-question-flow-icon-size, var(--xh-glyph-size-md));
25
+ /* 尺寸缺省档:不写 data-size 时按中档走 */
26
+ --xh-_question-flow-p: var(--xh-space-4);
27
+ --xh-_question-flow-gap: var(--xh-space-3);
28
+ --xh-_question-flow-h: var(--xh-control-h-md);
29
+ --xh-_question-flow-px: var(--xh-control-px-md);
30
+ --xh-_question-flow-font-size: var(--xh-control-font-md);
31
+ --xh-_question-flow-indicator: var(--xh-control-indicator-md);
32
+
33
+ display: flex;
34
+ flex-direction: column;
35
+ gap: var(--xh-question-flow-gap, var(--xh-_question-flow-gap));
36
+ padding: var(--xh-question-flow-padding, var(--xh-_question-flow-p));
37
+ border: var(--xh-stroke-thin) solid var(--xh-question-flow-border, var(--xh-border-default));
38
+ border-radius: var(--xh-question-flow-radius, var(--xh-shape-surface));
39
+ background: var(--xh-question-flow-bg, var(--xh-bg-surface));
40
+ box-shadow: var(--xh-question-flow-shadow, none);
41
+ }
42
+
43
+ /* 卡片出现时滑入;落在首帧就在的列表条目里(历史消息)时直接呈现,不跟着整屏一起入场 */
44
+ .xh-scope-question-flow[data-part='root']:not([data-scope][data-part='item'][data-instant] :where(.xh-scope-question-flow)) {
45
+ animation: xh-item-in var(--xh-motion-duration-enter) var(--xh-motion-ease-enter-strong);
46
+ }
47
+
48
+ /* 上面声明的 display 会盖掉 UA 的 [hidden]{display:none},这里补回 */
49
+ .xh-scope-question-flow[data-part='root'][hidden] {
50
+ display: none;
51
+ }
52
+
53
+ /* —— 形态 —— */
54
+ /* 描边式是缺省档,写在上面那条基础规则里 */
55
+ /* 填充式:底色顶替描边表达边界。描边只退成透明而不去掉,
56
+ 1px 的位置留着,与 outline 档并排时基线对得上;
57
+ 淡底承载面向选项行与几颗中性钮下发 hover 200 → pressed 300 */
58
+ .xh-scope-question-flow[data-part='root'][data-variant='subtle'] {
59
+ --xh-action-host-bg-hover: var(--xh-bg-subtle-hover);
60
+ --xh-action-host-bg-pressed: var(--xh-bg-subtle-active);
61
+
62
+ border-color: transparent;
63
+ background: var(--xh-question-flow-bg, var(--xh-_tone-subtle, var(--xh-bg-subtle)));
64
+ }
65
+
66
+ /* 无壳:底与描边都透明,影一并收掉——底都不画了,一圈投影就成了没有来处的暗边 */
67
+ .xh-scope-question-flow[data-part='root'][data-variant='ghost'] {
68
+ border-color: transparent;
69
+ background: transparent;
70
+ box-shadow: none;
71
+ }
72
+
73
+ /* —— 尺寸 —— */
74
+ .xh-scope-question-flow[data-part='root'][data-size='sm'] {
75
+ --xh-_question-flow-p: var(--xh-space-3);
76
+ --xh-_question-flow-gap: var(--xh-space-2);
77
+ --xh-_question-flow-h: var(--xh-control-h-sm);
78
+ --xh-_question-flow-px: var(--xh-control-px-sm);
79
+ --xh-_question-flow-font-size: var(--xh-control-font-sm);
80
+ --xh-_question-flow-indicator: var(--xh-control-indicator-sm);
81
+ --xh-icon-size: var(--xh-question-flow-icon-size, var(--xh-glyph-size-sm));
82
+ }
83
+
84
+ .xh-scope-question-flow[data-part='root'][data-size='md'] {
85
+ --xh-_question-flow-p: var(--xh-space-4);
86
+ --xh-_question-flow-gap: var(--xh-space-3);
87
+ --xh-_question-flow-h: var(--xh-control-h-md);
88
+ --xh-_question-flow-px: var(--xh-control-px-md);
89
+ --xh-_question-flow-font-size: var(--xh-control-font-md);
90
+ --xh-_question-flow-indicator: var(--xh-control-indicator-md);
91
+ --xh-icon-size: var(--xh-question-flow-icon-size, var(--xh-glyph-size-md));
92
+ }
93
+
94
+ .xh-scope-question-flow[data-part='root'][data-size='lg'] {
95
+ --xh-_question-flow-p: var(--xh-space-5);
96
+ --xh-_question-flow-gap: var(--xh-space-4);
97
+ --xh-_question-flow-h: var(--xh-control-h-lg);
98
+ --xh-_question-flow-px: var(--xh-control-px-lg);
99
+ --xh-_question-flow-font-size: var(--xh-control-font-lg);
100
+ --xh-_question-flow-indicator: var(--xh-control-indicator-lg);
101
+ --xh-icon-size: var(--xh-question-flow-icon-size, var(--xh-glyph-size-lg));
102
+ }
103
+
104
+ /* 视口定高并裁切:高度由机器量出来写进私有槽,量到之前按内容撑开。
105
+ 换题时高度过渡到新那一题,卡片跟着长高或收矮 */
106
+ .xh-scope-question-flow[data-part='viewport'] {
107
+ --xh-_question-flow-viewport-h: auto;
108
+
109
+ display: block;
110
+ overflow: hidden;
111
+ block-size: var(--xh-question-flow-viewport-h, var(--xh-_question-flow-viewport-h));
112
+ transition: block-size var(--xh-motion-duration-move) var(--xh-motion-ease-continuous);
113
+ }
114
+
115
+ .xh-scope-question-flow[data-part='viewport'][hidden] {
116
+ display: none;
117
+ }
118
+
119
+ /* 轨道把全部题目纵向排开,靠位移把当前题推进视口 */
120
+ .xh-scope-question-flow[data-part='track'] {
121
+ --xh-_question-flow-track-y: 0;
122
+
123
+ display: flex;
124
+ flex-direction: column;
125
+ gap: var(--xh-question-flow-track-gap, var(--xh-_question-flow-gap));
126
+ translate: 0 var(--xh-question-flow-track-y, var(--xh-_question-flow-track-y));
127
+ transition: translate var(--xh-motion-duration-move) var(--xh-motion-ease-continuous);
128
+ }
129
+
130
+ .xh-scope-question-flow[data-part='track'][hidden] {
131
+ display: none;
132
+ }
133
+
134
+ /* 一题的整块。非当前题淡出并让开指针:它仍留在轨道上,高度才有得可量 */
135
+ .xh-scope-question-flow[data-part='question'] {
136
+ display: flex;
137
+ flex-direction: column;
138
+ gap: var(--xh-question-flow-question-gap, var(--xh-space-2));
139
+ opacity: 0;
140
+ pointer-events: none;
141
+ transition: opacity var(--xh-motion-duration-enter) var(--xh-motion-ease-enter-strong);
142
+ }
143
+
144
+ .xh-scope-question-flow[data-part='question'][hidden] {
145
+ display: none;
146
+ }
147
+
148
+ .xh-scope-question-flow[data-part='question'][data-current] {
149
+ opacity: 1;
150
+ pointer-events: auto;
151
+ }
152
+
153
+ /* 题干就是这一题的标题,也是选项组的可访问名:走 Surface 标题档 14/600 */
154
+ .xh-scope-question-flow[data-part='prompt'] {
155
+ display: block;
156
+ margin: 0;
157
+ color: var(--xh-question-flow-prompt-fg, var(--xh-fg-default));
158
+ font-size: var(--xh-question-flow-prompt-font-size, var(--xh-text-label-size));
159
+ font-weight: var(--xh-question-flow-prompt-font-weight, var(--xh-font-weight-semibold));
160
+ line-height: var(--xh-leading-tight);
161
+ }
162
+
163
+ .xh-scope-question-flow[data-part='prompt'][hidden] {
164
+ display: none;
165
+ }
166
+
167
+ .xh-scope-question-flow[data-part='group'] {
168
+ display: flex;
169
+ flex-direction: column;
170
+ gap: var(--xh-question-flow-group-gap, var(--xh-space-1));
171
+ }
172
+
173
+ .xh-scope-question-flow[data-part='group'][hidden] {
174
+ display: none;
175
+ }
176
+
177
+ /* 一个选项:整行可点、可聚焦,记号在左。盒型、悬停 / 按下 / 禁用面由 Action Control 的 row 档给
178
+ (ghost 形态:白底承载 hover 100 → pressed 200,按下只换面不缩放;禁用守卫认 data-disabled),
179
+ 这里只把使用者槽映射到桥接槽,内衬与间距沿用本组件的档位;字色三态同一支,选中档在下面换一档。
180
+ 行高不吃家族的单行档:row 档允许换行、高度随内容,一条会折行的选项文案走正文行高 */
181
+ .xh-scope-question-flow[data-part='item'] {
182
+ --xh-action-gap: var(--xh-question-flow-item-gap, var(--xh-space-1_5));
183
+ --xh-action-padding-inline: var(--xh-question-flow-item-px, var(--xh-space-2));
184
+ --xh-action-padding-block: var(--xh-question-flow-item-py, var(--xh-space-1));
185
+ --xh-action-radius: var(--xh-question-flow-item-radius, var(--xh-_action-profile-radius));
186
+ --xh-action-font-size: var(--xh-question-flow-item-font-size, var(--xh-_question-flow-font-size));
187
+ --xh-action-bg-rest: var(--xh-question-flow-item-bg, var(--xh-_action-variant-bg-rest));
188
+ --xh-action-bg-hover: var(--xh-question-flow-item-bg-hover, var(--xh-_action-variant-bg-hover));
189
+ --xh-action-fg-rest: var(--xh-question-flow-item-fg, var(--xh-fg-muted));
190
+ --xh-action-fg-hover: var(--xh-question-flow-item-fg, var(--xh-fg-muted));
191
+ --xh-action-fg-pressed: var(--xh-question-flow-item-fg, var(--xh-fg-muted));
192
+
193
+ line-height: var(--xh-leading-normal);
194
+ }
195
+
196
+ .xh-scope-question-flow[data-part='item'][hidden] {
197
+ display: none;
198
+ }
199
+
200
+ /* 当前题的选项按位次错开开幕,换题时随 data-current 重跑:一道题的选项总是同一批一起露面,
201
+ 位次就是到达顺序。落在首帧就在的列表条目里(历史消息)时直接呈现。
202
+ backwards 不能省:等待期间起帧不生效的话,后面几条会先露一下再跳回去。
203
+ 第 6 条起并到同一拍上 */
204
+ .xh-scope-question-flow[data-part='question'][data-current] [data-part='item']:where(.xh-scope-question-flow):not([data-scope][data-part='item'][data-instant] :where(.xh-scope-question-flow)) {
205
+ animation: xh-rise-in var(--xh-motion-duration-enter) var(--xh-motion-ease-enter-strong) backwards;
206
+ }
207
+
208
+ .xh-scope-question-flow[data-part='question'][data-current] [data-part='item']:where(.xh-scope-question-flow):nth-child(2):not([data-scope][data-part='item'][data-instant] :where(.xh-scope-question-flow)) {
209
+ animation-delay: calc(var(--xh-motion-stagger-step) * 1);
210
+ }
211
+
212
+ .xh-scope-question-flow[data-part='question'][data-current] [data-part='item']:where(.xh-scope-question-flow):nth-child(3):not([data-scope][data-part='item'][data-instant] :where(.xh-scope-question-flow)) {
213
+ animation-delay: calc(var(--xh-motion-stagger-step) * 2);
214
+ }
215
+
216
+ .xh-scope-question-flow[data-part='question'][data-current] [data-part='item']:where(.xh-scope-question-flow):nth-child(4):not([data-scope][data-part='item'][data-instant] :where(.xh-scope-question-flow)) {
217
+ animation-delay: calc(var(--xh-motion-stagger-step) * 3);
218
+ }
219
+
220
+ .xh-scope-question-flow[data-part='question'][data-current] [data-part='item']:where(.xh-scope-question-flow):nth-child(5):not([data-scope][data-part='item'][data-instant] :where(.xh-scope-question-flow)) {
221
+ animation-delay: calc(var(--xh-motion-stagger-step) * 4);
222
+ }
223
+
224
+ .xh-scope-question-flow[data-part='question'][data-current] [data-part='item']:where(.xh-scope-question-flow):nth-child(n + 6):not([data-scope][data-part='item'][data-instant] :where(.xh-scope-question-flow)) {
225
+ animation-delay: calc(var(--xh-motion-stagger-step) * 5);
226
+ }
227
+
228
+ /* 选中的那条读起来更重一档(禁用项无论选没选都是家族给的禁用色) */
229
+ .xh-scope-question-flow[data-part='item'][data-state='checked'] {
230
+ --xh-action-fg-rest: var(--xh-question-flow-item-fg-checked, var(--xh-fg-default));
231
+ --xh-action-fg-hover: var(--xh-question-flow-item-fg-checked, var(--xh-fg-default));
232
+ --xh-action-fg-pressed: var(--xh-question-flow-item-fg-checked, var(--xh-fg-default));
233
+ }
234
+
235
+ /* 记号盒:多选是圆角方格,单选是圆。选中态填色,纯装饰不进可访问名 */
236
+ .xh-scope-question-flow[data-part='item-indicator'] {
237
+ /* 盒里那枚记号按盒比例量(与 Checkbox 同一比例),作者塞进来的图标读同一把尺。
238
+ 根上那把是展示型图标档,比指示符盒还大一档,画进这个盒里会溢出四个像素 */
239
+ --xh-_question-flow-indicator-glyph: calc(var(--xh-question-flow-indicator-size, var(--xh-_question-flow-indicator)) * 0.75);
240
+ --xh-icon-size: var(--xh-question-flow-indicator-icon-size, var(--xh-_question-flow-indicator-glyph));
241
+
242
+ display: inline-flex;
243
+ flex: none;
244
+ align-items: center;
245
+ justify-content: center;
246
+ border: var(--xh-stroke-thin) solid var(--xh-question-flow-indicator-border, var(--xh-border-strong));
247
+ border-radius: var(--xh-question-flow-indicator-radius, var(--xh-shape-inset));
248
+ background: var(--xh-question-flow-indicator-bg, transparent);
249
+ color: var(--xh-question-flow-indicator-fg, var(--xh-_tone-on, var(--xh-fg-on-brand)));
250
+ inline-size: var(--xh-question-flow-indicator-size, var(--xh-_question-flow-indicator));
251
+ block-size: var(--xh-question-flow-indicator-size, var(--xh-_question-flow-indicator));
252
+ transition:
253
+ background-color var(--xh-motion-duration-micro) var(--xh-motion-ease-enter),
254
+ border-color var(--xh-motion-duration-micro) var(--xh-motion-ease-enter),
255
+ color var(--xh-motion-duration-micro) var(--xh-motion-ease-enter);
256
+ }
257
+
258
+ .xh-scope-question-flow[data-part='item-indicator'][hidden] {
259
+ display: none;
260
+ }
261
+
262
+ /* 单选那一档把方格收成圆:正方盒取 circle */
263
+ .xh-scope-question-flow[data-part='item-indicator'][data-select-mode='single'] {
264
+ border-radius: var(--xh-question-flow-indicator-radius-single, var(--xh-shape-circle));
265
+ }
266
+
267
+ /* 多选的记号是勾选格:没写内容时勾由勾选标记配方画在 ::before 上,常驻、按状态淡变并轻缩放;
268
+ 作者往部件里塞了自己的图形,配方与下面的圆点都不画。
269
+ 单选那一档画实心点,由伪元素自己的底色画;直径按记号盒的一半量,与其余单选控件的圆点同源——
270
+ 盒换档时点跟着换。圆点与 RadioGroup 同一套动效:没选中时缩放为 0(盒留在原位,翻面时整行不跳),
271
+ 选中时落位略涨过 1 再收回、收起走强减速不过冲,换色走 micro */
272
+ .xh-scope-question-flow[data-part='item-indicator'][data-select-mode='single']:empty::before {
273
+ content: '';
274
+ display: inline-block;
275
+ inline-size: var(--xh-question-flow-dot-size, calc(var(--xh-question-flow-indicator-size, var(--xh-_question-flow-indicator)) / 2));
276
+ block-size: var(--xh-question-flow-dot-size, calc(var(--xh-question-flow-indicator-size, var(--xh-_question-flow-indicator)) / 2));
277
+ border-radius: var(--xh-question-flow-dot-radius, var(--xh-shape-circle));
278
+ background-color: currentColor;
279
+ scale: 0;
280
+ transition:
281
+ scale var(--xh-motion-duration-nudge) var(--xh-motion-ease-enter-strong),
282
+ background-color var(--xh-motion-duration-micro) var(--xh-motion-ease-enter);
283
+ }
284
+
285
+ .xh-scope-question-flow[data-part='item-indicator'][data-select-mode='single'][data-state='checked']:empty::before {
286
+ scale: 1;
287
+ transition:
288
+ scale var(--xh-motion-duration-nudge) var(--xh-motion-ease-settle),
289
+ background-color var(--xh-motion-duration-micro) var(--xh-motion-ease-enter);
290
+ }
291
+
292
+ .xh-scope-question-flow[data-part='item-indicator'][data-state='checked'] {
293
+ border-color: var(--xh-question-flow-indicator-border-checked, var(--xh-_tone, var(--xh-bg-brand)));
294
+ background: var(--xh-question-flow-indicator-bg-checked, var(--xh-_tone, var(--xh-bg-brand)));
295
+ }
296
+
297
+ .xh-scope-question-flow[data-part='item-text'] {
298
+ display: block;
299
+ flex: 1 1 auto;
300
+ }
301
+
302
+ .xh-scope-question-flow[data-part='item-text'][hidden] {
303
+ display: none;
304
+ }
305
+
306
+ /* 选项带一行说明:说明另起一行、与文字左缘对齐,两行之间不留行距;字色取次级、字号小一档 */
307
+ .xh-scope-question-flow[data-part='item']:has(> [data-part='item-description']) {
308
+ flex-wrap: wrap;
309
+ row-gap: 0;
310
+ }
311
+
312
+ .xh-scope-question-flow[data-part='item-description'] {
313
+ display: block;
314
+ flex: 1 0 100%;
315
+ padding-inline-start: calc(var(--xh-question-flow-indicator-size, var(--xh-_question-flow-indicator)) + var(--xh-question-flow-item-gap, var(--xh-space-1_5)));
316
+ color: var(--xh-question-flow-item-description-fg, var(--xh-fg-subtle));
317
+ font-size: var(--xh-question-flow-item-description-font-size, var(--xh-text-caption-size));
318
+ text-align: start;
319
+ }
320
+
321
+ .xh-scope-question-flow[data-part='item-description'][hidden] {
322
+ display: none;
323
+ }
324
+
325
+ /* 题目说明(含多选的数量要求):题干下一行的次级文字 */
326
+ .xh-scope-question-flow[data-part='description'] {
327
+ display: block;
328
+ margin: 0;
329
+ color: var(--xh-question-flow-description-fg, var(--xh-fg-muted));
330
+ font-size: var(--xh-question-flow-description-font-size, var(--xh-text-secondary-size));
331
+ line-height: var(--xh-leading-normal);
332
+ }
333
+
334
+ .xh-scope-question-flow[data-part='description'][hidden] {
335
+ display: none;
336
+ }
337
+
338
+ /* 自由文本:与选项同等算数的一条答案,占满整行。框照字段外壳:字段淡底 + 控件描边,悬停描边升一档 */
339
+ .xh-scope-question-flow[data-part='note'] {
340
+ display: block;
341
+ inline-size: 100%;
342
+ padding-inline: var(--xh-question-flow-note-px, var(--xh-space-2));
343
+ padding-block: var(--xh-question-flow-note-py, var(--xh-space-1_5));
344
+ border: var(--xh-stroke-thin) solid var(--xh-question-flow-note-border, var(--xh-border-control));
345
+ border-radius: var(--xh-question-flow-note-radius, var(--xh-shape-control));
346
+ background: var(--xh-question-flow-note-bg, var(--xh-bg-field));
347
+ color: var(--xh-question-flow-note-fg, var(--xh-fg-default));
348
+ font-family: inherit;
349
+ font-size: var(--xh-question-flow-note-font-size, var(--xh-_question-flow-font-size));
350
+ transition:
351
+ background-color var(--xh-motion-duration-micro) var(--xh-motion-ease-enter),
352
+ border-color var(--xh-motion-duration-micro) var(--xh-motion-ease-enter);
353
+ }
354
+
355
+ .xh-scope-question-flow[data-part='note'][hidden] {
356
+ display: none;
357
+ }
358
+
359
+ .xh-scope-question-flow[data-part='note']::placeholder {
360
+ color: var(--xh-question-flow-placeholder-fg, var(--xh-fg-subtle));
361
+ }
362
+
363
+ .xh-scope-question-flow[data-part='note']:hover:not(:disabled, :focus, [data-invalid]) {
364
+ border-color: var(--xh-question-flow-note-border-hover, var(--xh-border-strong));
365
+ }
366
+
367
+ /* 聚焦换承载面底 + 品牌描边,不画环:焦点由描边换色与底色差标出,强制色档补一圈 Highlight 环 */
368
+ .xh-scope-question-flow[data-part='note']:focus-within {
369
+ border-color: var(--xh-question-flow-note-border-focus, var(--xh-border-control-focus));
370
+ background: var(--xh-question-flow-note-bg-focus, var(--xh-bg-surface));
371
+ }
372
+
373
+ .xh-scope-question-flow[data-part='note']:focus-visible {
374
+ outline: none;
375
+ }
376
+
377
+ .xh-scope-question-flow[data-part='note']:disabled {
378
+ border-color: var(--xh-question-flow-note-border-disabled, var(--xh-border-default));
379
+ background: var(--xh-question-flow-note-bg-disabled, var(--xh-bg-subtle));
380
+ color: var(--xh-fg-disabled);
381
+ }
382
+
383
+ /* 页脚:左边步进,右边动作。
384
+ 两侧的钮都不收缩、文案也不折行,一行摆不下时整条页脚顶出卡片;
385
+ 允许换行后摆不下的那一组落到下一行 */
386
+ .xh-scope-question-flow[data-part='footer'] {
387
+ display: flex;
388
+ flex-wrap: wrap;
389
+ align-items: center;
390
+ justify-content: space-between;
391
+ gap: var(--xh-question-flow-footer-gap, var(--xh-space-3));
392
+ }
393
+
394
+ .xh-scope-question-flow[data-part='footer'][hidden] {
395
+ display: none;
396
+ }
397
+
398
+ /* 两颗翻页钮是方形图标钮,中间夹着计数:盒几何、悬停 / 按下与 0.97 按压、焦点环、禁用面全由
399
+ Action Control 的 icon 档 xs 位给(24px = --xh-control-action-size;ghost 形态,白底 100 → 200),
400
+ 组件只映射既有使用者槽:尺寸、内衬、圆角(inset)、底与字色 */
401
+ .xh-scope-question-flow[data-part='prev-trigger'],
402
+ .xh-scope-question-flow[data-part='next-trigger'] {
403
+ --xh-action-visual-size: var(--xh-question-flow-step-size, var(--xh-_action-profile-visual-size));
404
+ --xh-action-padding-inline: var(--xh-question-flow-step-padding, var(--xh-_action-profile-padding-inline));
405
+ --xh-action-radius: var(--xh-question-flow-step-radius, var(--xh-shape-inset));
406
+ --xh-action-bg-rest: var(--xh-question-flow-step-bg, var(--xh-_action-variant-bg-rest));
407
+ --xh-action-bg-hover: var(--xh-question-flow-step-bg-hover, var(--xh-_action-variant-bg-hover));
408
+ --xh-action-fg-rest: var(--xh-question-flow-step-fg, var(--xh-fg-subtle));
409
+ --xh-action-fg-hover: var(--xh-question-flow-step-fg-hover, var(--xh-fg-default));
410
+ --xh-action-fg-pressed: var(--xh-question-flow-step-fg-hover, var(--xh-fg-default));
411
+ }
412
+
413
+ /* 家族那条 display 会把 UA 的 [hidden]{display:none} 盖掉 */
414
+ .xh-scope-question-flow[data-part='prev-trigger'][hidden],
415
+ .xh-scope-question-flow[data-part='next-trigger'][hidden] {
416
+ display: none;
417
+ }
418
+
419
+ /* 没写内容就由皮肤画箭头;作者往按钮里塞了自己的图形,这两条即不命中 */
420
+ .xh-scope-question-flow[data-part='prev-trigger']:empty::before {
421
+ content: '';
422
+ display: inline-block;
423
+ inline-size: var(--xh-icon-size, var(--xh-glyph-size-md));
424
+ block-size: var(--xh-icon-size, var(--xh-glyph-size-md));
425
+ vertical-align: var(--xh-glyph-baseline-shift);
426
+ background-color: currentColor;
427
+ -webkit-mask: var(--xh-glyph-mark-chevron-up) center / contain no-repeat;
428
+ mask: var(--xh-glyph-mark-chevron-up) center / contain no-repeat;
429
+ }
430
+
431
+ .xh-scope-question-flow[data-part='next-trigger']:empty::before {
432
+ content: '';
433
+ display: inline-block;
434
+ inline-size: var(--xh-icon-size, var(--xh-glyph-size-md));
435
+ block-size: var(--xh-icon-size, var(--xh-glyph-size-md));
436
+ vertical-align: var(--xh-glyph-baseline-shift);
437
+ background-color: currentColor;
438
+ -webkit-mask: var(--xh-glyph-mark-chevron-down) center / contain no-repeat;
439
+ mask: var(--xh-glyph-mark-chevron-down) center / contain no-repeat;
440
+ }
441
+
442
+ /* 给眼睛看的 N / M:等宽数字,换题时不左右晃 */
443
+ .xh-scope-question-flow[data-part='counter'] {
444
+ display: inline-flex;
445
+ align-items: center;
446
+ color: var(--xh-question-flow-counter-fg, var(--xh-fg-subtle));
447
+ font-size: var(--xh-question-flow-counter-font-size, var(--xh-text-caption-size));
448
+ font-variant-numeric: tabular-nums;
449
+ }
450
+
451
+ .xh-scope-question-flow[data-part='counter'][hidden] {
452
+ display: none;
453
+ }
454
+
455
+ /* 两颗动作钮是离散动作控件:盒几何、悬停 / 按下与 0.97 按压、焦点环、禁用面全由 Action Control 的 text 档给,
456
+ 组件只映射既有使用者槽。跳过走 ghost 档:安静的文字钮(白底 100 → 200);提交走 solid 档:这一组里的主要动作,
457
+ 与 Button 缺省同为品牌实心。两颗共用的几何与字号写在一起 */
458
+ .xh-scope-question-flow[data-part='skip-trigger'],
459
+ .xh-scope-question-flow[data-part='submit-trigger'] {
460
+ --xh-action-gap: var(--xh-question-flow-action-gap, var(--xh-space-1));
461
+ --xh-action-visual-size: var(--xh-question-flow-action-h, var(--xh-_question-flow-h));
462
+ --xh-action-padding-inline: var(--xh-question-flow-action-px, var(--xh-_question-flow-px));
463
+ --xh-action-radius: var(--xh-question-flow-action-radius, var(--xh-shape-control));
464
+ --xh-action-font-size: var(--xh-question-flow-action-font-size, var(--xh-text-label-size));
465
+
466
+ font-weight: var(--xh-question-flow-action-font-weight, var(--xh-text-label-weight));
467
+ }
468
+
469
+ /* 家族那条 display 会把 UA 的 [hidden]{display:none} 盖掉 */
470
+ .xh-scope-question-flow[data-part='skip-trigger'][hidden],
471
+ .xh-scope-question-flow[data-part='submit-trigger'][hidden] {
472
+ display: none;
473
+ }
474
+
475
+ /* 跳过钮:底与字色映到 ghost 档的桥接槽,悬停时字色提到正文档 */
476
+ .xh-scope-question-flow[data-part='skip-trigger'] {
477
+ --xh-action-bg-rest: var(--xh-question-flow-skip-bg, var(--xh-_action-variant-bg-rest));
478
+ --xh-action-bg-hover: var(--xh-question-flow-skip-bg-hover, var(--xh-_action-variant-bg-hover));
479
+ --xh-action-fg-rest: var(--xh-question-flow-skip-fg, var(--xh-fg-muted));
480
+ --xh-action-fg-hover: var(--xh-question-flow-skip-fg-hover, var(--xh-fg-default));
481
+ --xh-action-fg-pressed: var(--xh-question-flow-skip-fg-hover, var(--xh-fg-default));
482
+ }
483
+
484
+ /* 提交钮:品牌实心,内顶高光把实心块顶出一道边,与跳过那颗的描边同一档厚度(三态同一支,
485
+ 答不动时的置灰面由家族收掉、高光随之撤掉,出口一直在那里只是按不动);底 / 字与置灰底映到 solid 档的桥接槽 */
486
+ .xh-scope-question-flow[data-part='submit-trigger'] {
487
+ --xh-action-bg-rest: var(--xh-question-flow-submit-bg, var(--xh-_action-variant-bg-rest));
488
+ --xh-action-bg-hover: var(--xh-question-flow-submit-bg-hover, var(--xh-_action-variant-bg-hover));
489
+ --xh-action-bg-pressed: var(--xh-question-flow-submit-bg-active, var(--xh-_action-variant-bg-pressed));
490
+ --xh-action-bg-disabled: var(--xh-question-flow-submit-bg-off, var(--xh-_action-variant-bg-disabled));
491
+ --xh-action-fg-rest: var(--xh-question-flow-submit-fg, var(--xh-_action-variant-fg-rest));
492
+ --xh-action-fg-hover: var(--xh-question-flow-submit-fg, var(--xh-_action-variant-fg-hover));
493
+ --xh-action-fg-pressed: var(--xh-question-flow-submit-fg, var(--xh-_action-variant-fg-pressed));
494
+ --xh-action-highlight-rest: transparent;
495
+ --xh-action-shadow-rest: var(--xh-question-flow-submit-shadow, var(--xh-_highlight-tone));
496
+ --xh-action-shadow-hover: var(--xh-question-flow-submit-shadow, var(--xh-_highlight-tone));
497
+ --xh-action-shadow-pressed: var(--xh-question-flow-submit-shadow, var(--xh-_highlight-tone));
498
+ }
499
+
500
+ /* 面是实心的,环色与面同族,画在面里就看不出来;环改取面自己的前景色——
501
+ 那一族色本来就要在这块面上把字读清楚,与面的对比是按可读性定的。
502
+ 置灰档的底换成置灰底、字换成置灰色,环取过来就跟底一起糊了,那一档走公共层的环 */
503
+ .xh-scope-question-flow[data-part='submit-trigger']:not([data-disabled]) {
504
+ --xh-action-ring-color-focus-visible: currentColor;
505
+ }
506
+
507
+ /* 交卷之后才露出的那一格:与 Tag 的 sm 档同一副方签——control 圆角、块尺寸取 chip 档、竖向内衬为 0 */
508
+ .xh-scope-question-flow[data-part='result'] {
509
+ display: inline-flex;
510
+ align-self: flex-start;
511
+ align-items: center;
512
+ box-sizing: border-box;
513
+ gap: var(--xh-question-flow-result-gap, var(--xh-space-1));
514
+ min-block-size: var(--xh-question-flow-result-h, var(--xh-chip-h-sm));
515
+ padding-inline: var(--xh-question-flow-result-px, var(--xh-space-1_5));
516
+ padding-block: var(--xh-question-flow-result-py, 0);
517
+ border: var(--xh-stroke-thin) solid transparent;
518
+ border-radius: var(--xh-question-flow-result-radius, var(--xh-shape-control));
519
+ background: var(--xh-question-flow-result-bg, var(--xh-_tone-subtle));
520
+ color: var(--xh-question-flow-result-fg, var(--xh-_tone-fg));
521
+ font-size: var(--xh-question-flow-result-font-size, var(--xh-text-caption-size));
522
+ font-weight: var(--xh-question-flow-result-font-weight, var(--xh-font-weight-medium));
523
+ line-height: var(--xh-control-indicator-md);
524
+ }
525
+
526
+ /* 落定结果弹出;落在首帧就在的列表条目里(历史消息)时直接呈现,不跟着整屏一起入场 */
527
+ .xh-scope-question-flow[data-part='result']:not([data-scope][data-part='item'][data-instant] :where(.xh-scope-question-flow)) {
528
+ animation: xh-pop-in var(--xh-motion-duration-enter) var(--xh-motion-ease-enter-strong);
529
+ }
530
+
531
+ .xh-scope-question-flow[data-part='result'][hidden] {
532
+ display: none;
533
+ }
534
+
535
+ /* 视觉隐藏的播报区:不能 display:none,那样读屏就取不到它了 */
536
+ .xh-scope-question-flow[data-part='live-region'] {
537
+ position: absolute;
538
+ inline-size: 1px;
539
+ block-size: 1px;
540
+ padding: 0;
541
+ margin: -1px;
542
+ border: 0;
543
+ overflow: hidden;
544
+ clip-path: inset(50%);
545
+ white-space: nowrap;
546
+ }
547
+
548
+ @media (forced-colors: active) {
549
+ /* 兜底字形是 mask 挖出来的一块底色,这一档里底色被系统换成 Canvas,字形跟着消失。
550
+ 字形退出强制换色、直接写系统色(不能取 currentColor:退出强制换色的伪元素读到的是被系统换掉之前的作者色):
551
+ 按钮面上取 ButtonText,悬停与按下时家族把按钮涂成 Highlight、字形换 HighlightText;
552
+ 落在勾选盒自己的实心面上(这一档里是 Canvas),整行悬停不换面,取 CanvasText;
553
+ 禁用取 GrayText */
554
+ .xh-scope-question-flow[data-part='item-indicator'][data-select-mode='single']:empty::before {
555
+ forced-color-adjust: none;
556
+ background-color: CanvasText;
557
+ }
558
+
559
+ /* 备注框聚焦不画环、描边又被换成系统色,补一圈 Highlight 环 */
560
+ .xh-scope-question-flow[data-part='note']:focus {
561
+ outline: var(--xh-ring-width) solid Highlight;
562
+ outline-offset: var(--xh-ring-offset);
563
+ }
564
+
565
+ .xh-scope-question-flow:is([data-part='prev-trigger'], [data-part='next-trigger']):empty::before {
566
+ forced-color-adjust: none;
567
+ background-color: ButtonText;
568
+ }
569
+
570
+ .xh-scope-question-flow:is([data-part='prev-trigger'], [data-part='next-trigger']):not([data-disabled]):not([data-loading]):is(:hover, :active, [data-pressed]):empty::before {
571
+ background-color: HighlightText;
572
+ }
573
+
574
+ .xh-scope-question-flow[data-part='item'][data-disabled] .xh-scope-question-flow[data-part='item-indicator'][data-select-mode='single']:empty::before,
575
+ .xh-scope-question-flow:is([data-part='prev-trigger'], [data-part='next-trigger'])[data-disabled]:empty::before {
576
+ background-color: GrayText;
577
+ }
578
+ }
579
+ }