cardbuddy 0.6.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 (167) hide show
  1. package/README.md +211 -0
  2. package/dist/cli.js +76 -0
  3. package/dist/config.js +63 -0
  4. package/dist/core.js +2 -0
  5. package/dist/preview-editor/assets/apple-touch-icon-BQcES9QK.png +0 -0
  6. package/dist/preview-editor/assets/default-image-wzZYQ86K.png +0 -0
  7. package/dist/preview-editor/assets/favicon-16-Cg6Nrosk.png +0 -0
  8. package/dist/preview-editor/assets/favicon-32-B_1744sp.png +0 -0
  9. package/dist/preview-editor/assets/index-BYB0hngG.js +72 -0
  10. package/dist/preview-editor/assets/index-CpBZEQDy.css +1 -0
  11. package/dist/preview-editor/assets/site-icon-CFMif8z4.png +0 -0
  12. package/dist/preview-editor/assets/svg-symbols-B2exBrAr.svg +118 -0
  13. package/dist/preview-editor/index.html +17 -0
  14. package/dist/server-core/_vendor/finmall-env.mjs +96 -0
  15. package/dist/server-core/assetProxy.js +154 -0
  16. package/dist/server-core/bbox.js +153 -0
  17. package/dist/server-core/browser.js +108 -0
  18. package/dist/server-core/buildDataFromSchema.js +50 -0
  19. package/dist/server-core/cardFiles.js +188 -0
  20. package/dist/server-core/cardHistory.js +156 -0
  21. package/dist/server-core/cardImage.js +85 -0
  22. package/dist/server-core/cardImportMeta.js +139 -0
  23. package/dist/server-core/cardListCache.js +68 -0
  24. package/dist/server-core/cardOpenFolder.js +135 -0
  25. package/dist/server-core/cardSave.js +127 -0
  26. package/dist/server-core/cardSidecar.js +72 -0
  27. package/dist/server-core/cardSync.js +259 -0
  28. package/dist/server-core/cardValidate.js +134 -0
  29. package/dist/server-core/index.js +82 -0
  30. package/dist/server-core/logger.js +241 -0
  31. package/dist/server-core/nodeModels.js +52 -0
  32. package/dist/server-core/renderStatus.js +207 -0
  33. package/dist/server-core/screenshot.js +123 -0
  34. package/dist/server-core/sliceStatic.js +44 -0
  35. package/dist/standalone.js +447 -0
  36. package/dist/vendored/App.vue +2330 -0
  37. package/dist/vendored/api.js +142 -0
  38. package/dist/vendored/assets/apple-touch-icon.png +0 -0
  39. package/dist/vendored/assets/default-image.png +0 -0
  40. package/dist/vendored/assets/favicon-16.png +0 -0
  41. package/dist/vendored/assets/favicon-32.png +0 -0
  42. package/dist/vendored/assets/logo.png +0 -0
  43. package/dist/vendored/assets/site-icon.png +0 -0
  44. package/dist/vendored/assets/svg-symbols.svg +118 -0
  45. package/dist/vendored/assets/svgIcons/icons.svg +54 -0
  46. package/dist/vendored/assets/svgIcons/index.js +39 -0
  47. package/dist/vendored/components/AbsoluteLayout.vue +42 -0
  48. package/dist/vendored/components/AlertCardInstance.vue +58 -0
  49. package/dist/vendored/components/AlertCardLayer.vue +59 -0
  50. package/dist/vendored/components/ApiPayloadTree.vue +168 -0
  51. package/dist/vendored/components/AppToast.vue +37 -0
  52. package/dist/vendored/components/Button.vue +37 -0
  53. package/dist/vendored/components/Canvas.vue +65 -0
  54. package/dist/vendored/components/CardGallery.vue +243 -0
  55. package/dist/vendored/components/CardPreview.vue +72 -0
  56. package/dist/vendored/components/CardSelect.vue +200 -0
  57. package/dist/vendored/components/CheckGroup.vue +131 -0
  58. package/dist/vendored/components/Column.vue +25 -0
  59. package/dist/vendored/components/ComponentPalette.vue +294 -0
  60. package/dist/vendored/components/ConfirmDialog.vue +39 -0
  61. package/dist/vendored/components/CustomPlaceholder.vue +33 -0
  62. package/dist/vendored/components/DatePickerOverlay.vue +345 -0
  63. package/dist/vendored/components/DebugPanel.vue +806 -0
  64. package/dist/vendored/components/DeviceOverlay.vue +70 -0
  65. package/dist/vendored/components/Divider.vue +22 -0
  66. package/dist/vendored/components/Dropdown.vue +191 -0
  67. package/dist/vendored/components/EventEditor.vue +247 -0
  68. package/dist/vendored/components/GridLayout.vue +67 -0
  69. package/dist/vendored/components/HoverGuides.vue +122 -0
  70. package/dist/vendored/components/Icon.vue +34 -0
  71. package/dist/vendored/components/Image.vue +34 -0
  72. package/dist/vendored/components/Input.vue +90 -0
  73. package/dist/vendored/components/JsonTree.vue +516 -0
  74. package/dist/vendored/components/ListLayout.vue +68 -0
  75. package/dist/vendored/components/LogValue.vue +51 -0
  76. package/dist/vendored/components/Map.vue +110 -0
  77. package/dist/vendored/components/MultiColumn.vue +49 -0
  78. package/dist/vendored/components/MultiText.vue +58 -0
  79. package/dist/vendored/components/NodeInspector.vue +295 -0
  80. package/dist/vendored/components/PickerOverlay.vue +131 -0
  81. package/dist/vendored/components/ProgressSlider.vue +167 -0
  82. package/dist/vendored/components/PropControl.vue +241 -0
  83. package/dist/vendored/components/PropTree.vue +128 -0
  84. package/dist/vendored/components/RadioButton.vue +74 -0
  85. package/dist/vendored/components/RemotePreview.vue +171 -0
  86. package/dist/vendored/components/RenderTree.vue +437 -0
  87. package/dist/vendored/components/Root.vue +30 -0
  88. package/dist/vendored/components/Row.vue +25 -0
  89. package/dist/vendored/components/SelectionOverlay.vue +105 -0
  90. package/dist/vendored/components/StructureTree.vue +949 -0
  91. package/dist/vendored/components/SvgCode.vue +19 -0
  92. package/dist/vendored/components/SvgSymbols.vue +30 -0
  93. package/dist/vendored/components/Switch.vue +38 -0
  94. package/dist/vendored/components/Text.vue +32 -0
  95. package/dist/vendored/components/Video.vue +70 -0
  96. package/dist/vendored/components/ViewContainer.vue +52 -0
  97. package/dist/vendored/components/base.js +12 -0
  98. package/dist/vendored/components/icons.js +47 -0
  99. package/dist/vendored/components/index.js +58 -0
  100. package/dist/vendored/components/setters/SetBgPosition.vue +64 -0
  101. package/dist/vendored/components/setters/SetBgSize.vue +90 -0
  102. package/dist/vendored/components/setters/SetCode.vue +90 -0
  103. package/dist/vendored/components/setters/SetColor.vue +244 -0
  104. package/dist/vendored/components/setters/SetCustomSelect.vue +58 -0
  105. package/dist/vendored/components/setters/SetExpr.vue +107 -0
  106. package/dist/vendored/components/setters/SetGradient.vue +125 -0
  107. package/dist/vendored/components/setters/SetGrid9.vue +68 -0
  108. package/dist/vendored/components/setters/SetIconSelect.vue +67 -0
  109. package/dist/vendored/components/setters/SetIfForm.vue +61 -0
  110. package/dist/vendored/components/setters/SetImage.vue +43 -0
  111. package/dist/vendored/components/setters/SetList.vue +139 -0
  112. package/dist/vendored/components/setters/SetNumber.vue +118 -0
  113. package/dist/vendored/components/setters/SetNumberStyle.vue +113 -0
  114. package/dist/vendored/components/setters/SetPadding.vue +77 -0
  115. package/dist/vendored/components/setters/SetSegment.vue +160 -0
  116. package/dist/vendored/components/setters/SetSelect.vue +51 -0
  117. package/dist/vendored/components/setters/SetSwitch.vue +49 -0
  118. package/dist/vendored/components/setters/SetText.vue +52 -0
  119. package/dist/vendored/components/setters/props.js +23 -0
  120. package/dist/vendored/fidelity/baseline-messageOverview.json +87 -0
  121. package/dist/vendored/fidelity/calibration.json +29 -0
  122. package/dist/vendored/fidelity/fidelity-messageOverview-after.html +114 -0
  123. package/dist/vendored/fidelity/fidelity-messageOverview-after.json +272 -0
  124. package/dist/vendored/fidelity/fidelity-messageOverview.html +185 -0
  125. package/dist/vendored/fidelity/fidelity-messageOverview.json +336 -0
  126. package/dist/vendored/fidelity/fidelity-messageOverview_v2.html +262 -0
  127. package/dist/vendored/fidelity/fidelity-messageOverview_v2.json +502 -0
  128. package/dist/vendored/fidelity/fidelity-messageOverview_v3.html +201 -0
  129. package/dist/vendored/fidelity/fidelity-messageOverview_v3.json +417 -0
  130. package/dist/vendored/fidelity/fidelity-messageOverview_visual.html +125 -0
  131. package/dist/vendored/fidelity/fidelity-messageOverview_visual.json +338 -0
  132. package/dist/vendored/index.html +16 -0
  133. package/dist/vendored/main.js +36 -0
  134. package/dist/vendored/meta/action-meta.json +141 -0
  135. package/dist/vendored/meta/component-meta.json +2714 -0
  136. package/dist/vendored/meta/directive-meta.json +40 -0
  137. package/dist/vendored/meta/style-meta.json +1086 -0
  138. package/dist/vendored/runtime/StyleParser.js +179 -0
  139. package/dist/vendored/runtime/adapter.js +166 -0
  140. package/dist/vendored/runtime/alert-card.js +125 -0
  141. package/dist/vendored/runtime/app-toast.js +33 -0
  142. package/dist/vendored/runtime/assets.js +16 -0
  143. package/dist/vendored/runtime/canvas-context.js +141 -0
  144. package/dist/vendored/runtime/card-runtime.js +289 -0
  145. package/dist/vendored/runtime/clipboard-node.js +83 -0
  146. package/dist/vendored/runtime/clipboard.js +29 -0
  147. package/dist/vendored/runtime/evaluate.js +152 -0
  148. package/dist/vendored/runtime/event-model.js +300 -0
  149. package/dist/vendored/runtime/hoverGuide.js +31 -0
  150. package/dist/vendored/runtime/jsapi-mock.js +256 -0
  151. package/dist/vendored/runtime/node-model.js +217 -0
  152. package/dist/vendored/runtime/property.js +364 -0
  153. package/dist/vendored/runtime/selectionOverlay.js +53 -0
  154. package/dist/vendored/runtime/toPreview.js +648 -0
  155. package/dist/vendored/standalone-main.js +36 -0
  156. package/dist/vendored/standalone.html +12 -0
  157. package/dist/vendored/styles/app.css +2565 -0
  158. package/dist/vendored/styles/card-gallery.css +234 -0
  159. package/dist/vendored/styles/card-select.css +281 -0
  160. package/dist/vendored/styles/components.css +383 -0
  161. package/dist/vendored/styles/dropdown.css +337 -0
  162. package/dist/vendored/styles/json-tree.css +308 -0
  163. package/dist/vendored/styles/node-inspector.css +1003 -0
  164. package/dist/vendored/styles/setters.css +962 -0
  165. package/dist/vendored/styles/standalone.css +27 -0
  166. package/dist/vendored/styles/structure-tree.css +320 -0
  167. package/package.json +42 -0
@@ -0,0 +1,272 @@
1
+ {
2
+ "cardId": "messageOverview",
3
+ "specFile": "UI/01、泛化消息-有未读消息-没有待办/spec.json",
4
+ "generatedAt": "2026-08-19T09:30:19.874Z",
5
+ "tolerance": 2,
6
+ "matchRadius": 30,
7
+ "commonOffset": {
8
+ "dx": -30,
9
+ "dy": -301.5
10
+ },
11
+ "env": {
12
+ "screen": {
13
+ "width": 375,
14
+ "height": 800
15
+ },
16
+ "renderCardWidth": 375,
17
+ "renderCardHeight": 465,
18
+ "specCanvasHeight": 874
19
+ },
20
+ "counts": {
21
+ "expected": 13,
22
+ "chromeSkipped": 7,
23
+ "actual": 40,
24
+ "matched": 6,
25
+ "unmatchedSpec": 7,
26
+ "unmatchedActual": 34
27
+ },
28
+ "rows": [
29
+ {
30
+ "idx": 0,
31
+ "type": "text",
32
+ "cid": "comp_0110",
33
+ "className": "Text",
34
+ "expectText": "重点摘要",
35
+ "actualText": "重点摘要",
36
+ "via": "text",
37
+ "expRect": {
38
+ "x": 32,
39
+ "y": 396,
40
+ "width": 60,
41
+ "height": 22
42
+ },
43
+ "actRect": {
44
+ "x": 2,
45
+ "y": 93,
46
+ "width": 60,
47
+ "height": 21
48
+ },
49
+ "dx": -30,
50
+ "dy": -303,
51
+ "dw": 0,
52
+ "dh": -1,
53
+ "dxL": 0,
54
+ "dyL": -1.5
55
+ },
56
+ {
57
+ "idx": 1,
58
+ "type": "text",
59
+ "cid": "comp_0111",
60
+ "className": "Text",
61
+ "expectText": "按强重要、待关注、时间倒序展示,不超过3条",
62
+ "actualText": "按强重要、待关注、时间倒序展示,不超过3条",
63
+ "via": "text",
64
+ "expRect": {
65
+ "x": 32,
66
+ "y": 420,
67
+ "width": 311,
68
+ "height": 18
69
+ },
70
+ "actRect": {
71
+ "x": 2,
72
+ "y": 120,
73
+ "width": 268.1,
74
+ "height": 18
75
+ },
76
+ "dx": -30,
77
+ "dy": -300,
78
+ "dw": -42.9,
79
+ "dh": 0,
80
+ "dxL": 0,
81
+ "dyL": 1.5
82
+ },
83
+ {
84
+ "idx": 2,
85
+ "type": "text",
86
+ "cid": "comp_0103",
87
+ "className": "Text",
88
+ "expectText": "条未读消息",
89
+ "actualText": "条未读消息",
90
+ "via": "text",
91
+ "expRect": {
92
+ "x": 74,
93
+ "y": 328,
94
+ "width": 75,
95
+ "height": 22
96
+ },
97
+ "actRect": {
98
+ "x": 41.8,
99
+ "y": 20,
100
+ "width": 75,
101
+ "height": 21
102
+ },
103
+ "dx": -32.2,
104
+ "dy": -308,
105
+ "dw": 0,
106
+ "dh": -1,
107
+ "dxL": -2.2,
108
+ "dyL": -6.5
109
+ },
110
+ {
111
+ "idx": 3,
112
+ "type": "text",
113
+ "cid": "comp_0102",
114
+ "className": "Text",
115
+ "expectText": "12",
116
+ "actualText": "12",
117
+ "via": "text",
118
+ "expRect": {
119
+ "x": 32,
120
+ "y": 314,
121
+ "width": 31,
122
+ "height": 42
123
+ },
124
+ "actRect": {
125
+ "x": 4,
126
+ "y": 4,
127
+ "width": 31.8,
128
+ "height": 42
129
+ },
130
+ "dx": -28,
131
+ "dy": -310,
132
+ "dw": 0.8,
133
+ "dh": 0,
134
+ "dxL": 2,
135
+ "dyL": -8.5
136
+ },
137
+ {
138
+ "idx": 4,
139
+ "type": "text",
140
+ "cid": "comp_0101",
141
+ "className": "Text",
142
+ "expectText": "动账 5 · 转账 2 · 站内 1 · 其他 4",
143
+ "actualText": "动账 5 · 转账 2 · 站内 1 · 其他 4",
144
+ "via": "text-far",
145
+ "expRect": {
146
+ "x": 74,
147
+ "y": 352,
148
+ "width": 196,
149
+ "height": 18
150
+ },
151
+ "actRect": {
152
+ "x": 0,
153
+ "y": 54,
154
+ "width": 223.1,
155
+ "height": 28
156
+ },
157
+ "dx": -74,
158
+ "dy": -298,
159
+ "dw": 27.1,
160
+ "dh": 10,
161
+ "dxL": -44,
162
+ "dyL": 3.5
163
+ },
164
+ {
165
+ "idx": 6,
166
+ "type": "text",
167
+ "cid": "comp_0114",
168
+ "className": "Text",
169
+ "expectText": "今日有一笔支出动账",
170
+ "actualText": "今日有一笔支出动账",
171
+ "via": "text",
172
+ "expRect": {
173
+ "x": 58,
174
+ "y": 464,
175
+ "width": 135,
176
+ "height": 22
177
+ },
178
+ "actRect": {
179
+ "x": 51.7,
180
+ "y": 166,
181
+ "width": 135,
182
+ "height": 21
183
+ },
184
+ "dx": -6.3,
185
+ "dy": -298,
186
+ "dw": 0,
187
+ "dh": -1,
188
+ "dxL": 23.7,
189
+ "dyL": 3.5
190
+ }
191
+ ],
192
+ "unmatchedSpec": [
193
+ {
194
+ "type": "text",
195
+ "text": "查看全部",
196
+ "rect": {
197
+ "x": 263,
198
+ "y": 328,
199
+ "width": 56,
200
+ "height": 20
201
+ }
202
+ },
203
+ {
204
+ "type": "text",
205
+ "text": "对话",
206
+ "rect": {
207
+ "x": 170.5,
208
+ "y": 54,
209
+ "width": 34,
210
+ "height": 24
211
+ }
212
+ },
213
+ {
214
+ "type": "text",
215
+ "text": "9:41",
216
+ "rect": {
217
+ "x": 35,
218
+ "y": 15.9,
219
+ "width": 26,
220
+ "height": 14
221
+ }
222
+ },
223
+ {
224
+ "type": "text",
225
+ "text": "9:4",
226
+ "rect": {
227
+ "x": 35,
228
+ "y": 15.9,
229
+ "width": 20,
230
+ "height": 14
231
+ }
232
+ },
233
+ {
234
+ "type": "text",
235
+ "text": "1",
236
+ "rect": {
237
+ "x": 54.5,
238
+ "y": 15.9,
239
+ "width": 6,
240
+ "height": 14
241
+ }
242
+ },
243
+ {
244
+ "type": "text",
245
+ "text": "最近有什么消息",
246
+ "rect": {
247
+ "x": 238,
248
+ "y": 110,
249
+ "width": 105,
250
+ "height": 22
251
+ }
252
+ },
253
+ {
254
+ "type": "text",
255
+ "text": "查询到您最近有未读消息12条,其中动账通知5条、转账消息2条、站内消息1条。优先提醒您:今日有3笔账户动账,合计支出2,580.00元;1笔转账已成功;另有1条站内服务提醒消息,需要查看。",
256
+ "rect": {
257
+ "x": 32,
258
+ "y": 168,
259
+ "width": 311,
260
+ "height": 110
261
+ }
262
+ }
263
+ ],
264
+ "suggestions": [
265
+ "整卡水平偏移 -30.0px(公共偏移已扣除,不影响逐元素评估;若渲染卡含外层留白/容器 padding 请检查根容器)",
266
+ "整卡垂直偏移 -301.5px(通常来自设计稿含状态栏/导航而渲染卡仅卡片主体;若渲染卡内确有同类元素整体偏移,请检查根容器 padding)",
267
+ "单元素离群:「条未读消息」(Text)偏离同类中位 6.5px → 检查该元素自身 align/padding/fontSize",
268
+ "单元素离群:「12」(Text)偏离同类中位 8.5px → 检查该元素自身 align/padding/fontSize",
269
+ "单元素离群:「动账 5 · 转账 2 · 站内」(Text)偏离同类中位 44.0px → 检查该元素自身 align/padding/fontSize",
270
+ "单元素离群:「今日有一笔支出动账」(Text)偏离同类中位 23.7px → 检查该元素自身 align/padding/fontSize"
271
+ ]
272
+ }
@@ -0,0 +1,185 @@
1
+ <!DOCTYPE html>
2
+ <html lang="zh-CN"><head><meta charset="utf-8"><title>UI 还原度对拍 · messageOverview</title>
3
+ <style>
4
+ body{font-family:-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;margin:0;background:#f5f6f8;color:#1f2329}
5
+ .wrap{max-width:1080px;margin:0 auto;padding:24px 20px 60px}
6
+ h1{font-size:20px;margin:0 0 4px}
7
+ .sub{color:#666;font-size:12px;margin-bottom:18px}
8
+ .cards{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:20px}
9
+ .card{flex:1;min-width:150px;background:#fff;border:1px solid #e5e6eb;border-radius:8px;padding:14px 16px}
10
+ .card .num{font-size:26px;font-weight:700}
11
+ .card .lbl{font-size:12px;color:#666;margin-top:2px}
12
+ table{border-collapse:collapse;width:100%;background:#fff;font-size:13px;border:1px solid #e5e6eb;border-radius:8px;overflow:hidden}
13
+ th,td{padding:7px 10px;border-bottom:1px solid #f0f1f3;text-align:left;white-space:nowrap}
14
+ th{background:#fafbfc;color:#333;font-weight:600}
15
+ tr:last-child td{border-bottom:none}
16
+ .sec{margin-top:22px;font-size:15px;font-weight:600}
17
+ .tips{background:#fff;border:1px solid #e5e6eb;border-radius:8px;padding:12px 16px 12px 34px;font-size:13px;line-height:1.8}
18
+ .muted{color:#999}
19
+ </style></head><body><div class="wrap">
20
+ <h1>UI 还原度对拍报告 · messageOverview</h1>
21
+ <div class="sub">spec: UI/01、泛化消息-有未读消息-没有待办/spec.json · 阈值 ±2px · 2026/8/19 17:32:54 · 生成:fidelity_report.mjs</div>
22
+ <div style="display:flex;gap:16px;align-items:stretch;margin-bottom:16px">
23
+ <div style="min-width:150px;background:#fff;border:1px solid #e5e6eb;border-radius:8px;padding:14px 18px;display:flex;flex-direction:column;justify-content:center;text-align:center">
24
+ <div style="font-size:44px;font-weight:800;line-height:1;color:#c62828">39</div>
25
+ <div style="font-size:13px;color:#666;margin-top:6px">还原度 · 需修复</div>
26
+ </div>
27
+ <div style="flex:1;background:#fff;border:1px solid #e5e6eb;border-radius:8px;padding:12px 16px"><div style="display:flex;align-items:center;gap:8px;margin:3px 0">
28
+ <span style="width:64px;font-size:12px;color:#666">覆盖率</span>
29
+ <div style="flex:1;height:8px;background:#eef0f3;border-radius:4px;overflow:hidden">
30
+ <div style="width:57%;height:100%;background:#c62828"></div>
31
+ </div>
32
+ <span style="width:34px;text-align:right;font-size:12px;color:#666">57</span>
33
+ </div><div style="display:flex;align-items:center;gap:8px;margin:3px 0">
34
+ <span style="width:64px;font-size:12px;color:#666">位置</span>
35
+ <div style="flex:1;height:8px;background:#eef0f3;border-radius:4px;overflow:hidden">
36
+ <div style="width:28%;height:100%;background:#c62828"></div>
37
+ </div>
38
+ <span style="width:34px;text-align:right;font-size:12px;color:#666">28</span>
39
+ </div><div style="display:flex;align-items:center;gap:8px;margin:3px 0">
40
+ <span style="width:64px;font-size:12px;color:#666">尺寸</span>
41
+ <div style="flex:1;height:8px;background:#eef0f3;border-radius:4px;overflow:hidden">
42
+ <div style="width:45%;height:100%;background:#c62828"></div>
43
+ </div>
44
+ <span style="width:34px;text-align:right;font-size:12px;color:#666">45</span>
45
+ </div><div style="display:flex;align-items:center;gap:8px;margin:3px 0">
46
+ <span style="width:64px;font-size:12px;color:#666">文本</span>
47
+ <div style="flex:1;height:8px;background:#eef0f3;border-radius:4px;overflow:hidden">
48
+ <div style="width:51%;height:100%;background:#c62828"></div>
49
+ </div>
50
+ <span style="width:34px;text-align:right;font-size:12px;color:#666">51</span>
51
+ </div><div style="display:flex;align-items:center;gap:8px;margin:3px 0">
52
+ <span style="width:64px;font-size:12px;color:#666">一致性</span>
53
+ <div style="flex:1;height:8px;background:#eef0f3;border-radius:4px;overflow:hidden">
54
+ <div style="width:0%;height:100%;background:#c62828"></div>
55
+ </div>
56
+ <span style="width:34px;text-align:right;font-size:12px;color:#666">0</span>
57
+ </div></div>
58
+ </div>
59
+ <div class="cards">
60
+ <div class="card"><div class="num">8</div><div class="lbl">已匹配元素</div></div>
61
+ <div class="card"><div class="num" style="color:#c62828">7</div><div class="lbl">超差(&gt;4px)</div></div>
62
+ <div class="card"><div class="num" style="color:#b26a00">0</div><div class="lbl">偏差(&gt;2px)</div></div>
63
+ <div class="card"><div class="num">6</div><div class="lbl">未匹配(设计稿)</div></div>
64
+ <div class="card"><div class="num">-13.0</div><div class="lbl">公共偏移 Δx</div></div>
65
+ <div class="card"><div class="num">-285.5</div><div class="lbl">公共偏移 Δy</div></div>
66
+ <div class="card"><div class="num" style="color:#888">6</div><div class="lbl">chrome 裁剪(不参与对拍)</div></div>
67
+ </div>
68
+ <div class="sec">系统性误差(按组件类中位数,≥2 样本;供生成器补偿校准)</div>
69
+ <table>
70
+ <tr><th>组件类</th><th>Δx</th><th>Δy</th><th>Δw</th><th>Δh</th><th>最大偏差</th></tr>
71
+ <tr>
72
+ <td><b>Text</b> ×7</td>
73
+ <td>-1.0</td><td>+1.5</td><td>0.0</td><td>0.0</td>
74
+ <td style="color:#666">45.0</td>
75
+ </tr>
76
+ </table>
77
+ <div class="sec">归因建议</div>
78
+ <ul class="tips"><li>整卡水平偏移 -13.0px(公共偏移已扣除,不影响逐元素评估;若渲染卡含外层留白/容器 padding 请检查根容器)</li>
79
+ <li>整卡垂直偏移 -285.5px(通常来自设计稿含状态栏/导航而渲染卡仅卡片主体;若渲染卡内确有同类元素整体偏移,请检查根容器 padding)</li>
80
+ <li>单元素离群:「条未读消息」(Text)偏离同类中位 8.0px → 检查该元素自身 align/padding/fontSize</li>
81
+ <li>单元素离群:「12」(Text)偏离同类中位 10.0px → 检查该元素自身 align/padding/fontSize</li>
82
+ <li>单元素离群:「动账 5 · 转账 2 · 站内」(Text)偏离同类中位 44.0px → 检查该元素自身 align/padding/fontSize</li>
83
+ <li>单元素离群:「今日有一笔支出动账」(Text)偏离同类中位 23.7px → 检查该元素自身 align/padding/fontSize</li>
84
+ <li>单元素离群:「金额1,280.00元,建议核对」(Text)偏离同类中位 23.7px → 检查该元素自身 align/padding/fontSize</li></ul>
85
+ <div class="sec">逐元素差异(局部 Δ = 已扣除公共偏移)</div>
86
+ <table>
87
+ <tr><th>状态</th><th>文本/元素</th><th>组件类</th><th>匹配</th><th>期望 rect</th><th>实际 rect</th><th>Δx</th><th>Δy</th><th>Δw</th><th>Δh</th></tr>
88
+ <tr style="background:#fdecea">
89
+ <td style="color:#c62828;font-weight:600">超差</td>
90
+ <td title="按强重要、待关注、时间倒序展示,不超过3条">按强重要、待关注、时间倒序展示,不超过3条</td>
91
+ <td>Text</td>
92
+ <td title="通过 text">文本</td>
93
+ <td style="color:#666">32, 420 · 311×18</td>
94
+ <td style="color:#666">18, 136 · 268.1×18</td>
95
+ <td style="color:#666">-1.0</td>
96
+ <td style="color:#666">+1.5</td>
97
+ <td style="color:#c62828">-42.9</td>
98
+ <td style="color:#666">0.0</td>
99
+ </tr>
100
+ <tr style="background:#fdecea">
101
+ <td style="color:#c62828;font-weight:600">超差</td>
102
+ <td title="条未读消息">条未读消息</td>
103
+ <td>Text</td>
104
+ <td title="通过 text">文本</td>
105
+ <td style="color:#666">74, 328 · 75×22</td>
106
+ <td style="color:#666">57.8, 36 · 75×21</td>
107
+ <td style="color:#c62828">-3.2</td>
108
+ <td style="color:#c62828">-6.5</td>
109
+ <td style="color:#666">0.0</td>
110
+ <td style="color:#666">-1.0</td>
111
+ </tr>
112
+ <tr style="background:#fdecea">
113
+ <td style="color:#c62828;font-weight:600">超差</td>
114
+ <td title="12">12</td>
115
+ <td>Text</td>
116
+ <td title="通过 text">文本</td>
117
+ <td style="color:#666">32, 314 · 31×42</td>
118
+ <td style="color:#666">20, 20 · 31.8×42</td>
119
+ <td style="color:#666">+1.0</td>
120
+ <td style="color:#c62828">-8.5</td>
121
+ <td style="color:#666">+0.8</td>
122
+ <td style="color:#666">0.0</td>
123
+ </tr>
124
+ <tr style="background:#fdecea">
125
+ <td style="color:#c62828;font-weight:600">超差</td>
126
+ <td title="动账 5 · 转账 2 · 站内 1 · 其他 4">动账 5 · 转账 2 · 站内 1 · 其他 </td>
127
+ <td>Text</td>
128
+ <td title="通过 text-far">文本远</td>
129
+ <td style="color:#666">74, 352 · 196×18</td>
130
+ <td style="color:#666">16, 70 · 223.1×28</td>
131
+ <td style="color:#c62828">-45.0</td>
132
+ <td style="color:#c62828">+3.5</td>
133
+ <td style="color:#c62828">+27.1</td>
134
+ <td style="color:#c62828">+10.0</td>
135
+ </tr>
136
+ <tr style="background:#fdecea">
137
+ <td style="color:#c62828;font-weight:600">超差</td>
138
+ <td title="查看全部">查看全部</td>
139
+ <td>Row</td>
140
+ <td title="通过 text-far">文本远</td>
141
+ <td style="color:#666">263, 328 · 56×20</td>
142
+ <td style="color:#666">285, 30 · 72×22</td>
143
+ <td style="color:#c62828">+35.0</td>
144
+ <td style="color:#c62828">-12.5</td>
145
+ <td style="color:#c62828">+16.0</td>
146
+ <td style="color:#666">+2.0</td>
147
+ </tr>
148
+ <tr style="background:#fdecea">
149
+ <td style="color:#c62828;font-weight:600">超差</td>
150
+ <td title="今日有一笔支出动账">今日有一笔支出动账</td>
151
+ <td>Text</td>
152
+ <td title="通过 text">文本</td>
153
+ <td style="color:#666">58, 464 · 135×22</td>
154
+ <td style="color:#666">67.7, 182 · 135×21</td>
155
+ <td style="color:#c62828">+22.7</td>
156
+ <td style="color:#c62828">+3.5</td>
157
+ <td style="color:#666">0.0</td>
158
+ <td style="color:#666">-1.0</td>
159
+ </tr>
160
+ <tr style="background:#fdecea">
161
+ <td style="color:#c62828;font-weight:600">超差</td>
162
+ <td title="金额1,280.00元,建议核对资金变动。">金额1,280.00元,建议核对资金变动。</td>
163
+ <td>Text</td>
164
+ <td title="通过 text">文本</td>
165
+ <td style="color:#666">58, 490 · 254×18</td>
166
+ <td style="color:#666">67.7, 207 · 221.3×18</td>
167
+ <td style="color:#c62828">+22.7</td>
168
+ <td style="color:#c62828">+2.5</td>
169
+ <td style="color:#c62828">-32.7</td>
170
+ <td style="color:#666">0.0</td>
171
+ </tr>
172
+ <tr style="background:#e7f6ec">
173
+ <td style="color:#0a7a2f;font-weight:600">OK</td>
174
+ <td title="重点摘要">重点摘要</td>
175
+ <td>Text</td>
176
+ <td title="通过 text">文本</td>
177
+ <td style="color:#666">32, 396 · 60×22</td>
178
+ <td style="color:#666">18, 109 · 60×21</td>
179
+ <td style="color:#666">-1.0</td>
180
+ <td style="color:#666">-1.5</td>
181
+ <td style="color:#666">0.0</td>
182
+ <td style="color:#666">-1.0</td>
183
+ </tr>
184
+ </table>
185
+ </div></body></html>