@tbox.cn/app-module-parking 0.1.0 → 0.9.3

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 (71) hide show
  1. package/AGENTS.md +16 -0
  2. package/README.md +58 -11
  3. package/dist/chunk-KEUD5YHH.js +1087 -0
  4. package/dist/chunk-QHLX6WXM.js +2667 -0
  5. package/dist/client/index.d.ts +17 -3
  6. package/dist/client/index.js +4 -2
  7. package/dist/index.d.ts +4 -3
  8. package/dist/index.js +14 -4
  9. package/dist/parking-2S2UPCOF.css +1306 -0
  10. package/dist/parking-guide-hero-pea-v2-X2O44LPQ.jpg +0 -0
  11. package/dist/server/index.d.ts +1216 -72
  12. package/dist/server/index.js +11 -3
  13. package/package.json +24 -16
  14. package/skills/parking/SKILL.md +165 -0
  15. package/skills/parking/references/payment-safety.md +25 -0
  16. package/src/client/assets/parking-guide-hero-pea-v2.jpg +0 -0
  17. package/src/client/assets/parking-guide-hero.jpg +0 -0
  18. package/src/client/assets.d.ts +5 -0
  19. package/src/client/cards/index.ts +8 -0
  20. package/src/client/cards/parking-info/index.tsx +41 -0
  21. package/src/client/cards/parking-payment/benefit-selection.ts +79 -0
  22. package/src/client/cards/parking-payment/index.tsx +442 -0
  23. package/src/client/cards/parking-payment-records/index.tsx +259 -0
  24. package/src/client/cards/parking-payment-result/index.tsx +83 -0
  25. package/src/client/cards/parking-vehicle-management/PlateKeyboard.tsx +106 -0
  26. package/src/client/cards/parking-vehicle-management/index.tsx +344 -0
  27. package/src/client/cards/parking-vehicle-management/plate-keyboard.ts +113 -0
  28. package/src/client/cards/view.ts +83 -0
  29. package/src/client/index.ts +19 -4
  30. package/src/client/styles/parking.css +1306 -0
  31. package/src/client/types/css.d.ts +2 -0
  32. package/src/server/actions.ts +975 -0
  33. package/src/server/cards/index.ts +14 -0
  34. package/src/server/cards/parking-info/meta.ts +19 -0
  35. package/src/server/cards/parking-info/samples.ts +50 -0
  36. package/src/server/cards/parking-payment/meta.ts +29 -0
  37. package/src/server/cards/parking-payment/samples.ts +311 -0
  38. package/src/server/cards/parking-payment-records/meta.ts +32 -0
  39. package/src/server/cards/parking-payment-records/samples.ts +86 -0
  40. package/src/server/cards/parking-payment-result/meta.ts +21 -0
  41. package/src/server/cards/parking-payment-result/samples.ts +84 -0
  42. package/src/server/cards/parking-vehicle-management/meta.ts +20 -0
  43. package/src/server/cards/parking-vehicle-management/samples.ts +73 -0
  44. package/src/server/domain.ts +279 -0
  45. package/src/server/handler.ts +47 -16
  46. package/src/server/index.ts +97 -17
  47. package/src/server/intent-context.ts +14 -0
  48. package/src/server/ports.ts +59 -0
  49. package/src/server/service.ts +474 -45
  50. package/src/server/tools.ts +846 -0
  51. package/tbox.module.json +107 -0
  52. package/tests/benefit-selection.test.ts +70 -0
  53. package/tests/cards-render.test.tsx +643 -0
  54. package/tests/dispatcher-flow.test.ts +256 -0
  55. package/tests/payment-flow.test.ts +420 -0
  56. package/tests/plate-keyboard.test.ts +158 -0
  57. package/tests/ports-resolve.test.ts +113 -0
  58. package/tests/pretool-parking-fee.test.ts +104 -0
  59. package/tests/samples.test.ts +44 -0
  60. package/tests/skills.test.ts +37 -0
  61. package/tests/tools-gate.test.ts +237 -0
  62. package/tests/tools-membership.test.ts +91 -0
  63. package/tests/view.test.ts +61 -0
  64. package/tsup.config.ts +9 -1
  65. package/dist/chunk-BYD3C6NE.js +0 -140
  66. package/dist/chunk-QQLBZY6D.js +0 -55
  67. package/src/client/cards/parking-fee/index.tsx +0 -59
  68. package/src/server/cards/parking-fee/meta.ts +0 -26
  69. package/src/server/tool.ts +0 -36
  70. package/tbox.component.json +0 -20
  71. package/tests/service.test.ts +0 -49
@@ -0,0 +1,1306 @@
1
+ /*
2
+ * Neutral parking cards in the mall service-card language. The host owns the
3
+ * conversation gutters, so roots stay width:100% without horizontal margins.
4
+ * Lowercase px follows the repository 750-design conversion.
5
+ */
6
+ .parking-payment,
7
+ .parking-result,
8
+ .parking-records,
9
+ .parking-vm,
10
+ .parking-info {
11
+ --parking-primary: #2368ec;
12
+ --parking-primary-deep: #2368ec;
13
+ --parking-primary-light: #f2f7ff;
14
+ --parking-primary-border: rgba(35, 104, 236, 0.24);
15
+ --parking-primary-ring: rgba(35, 104, 236, 0.12);
16
+ --parking-navy: #062a65;
17
+ --parking-amount: #df8b16;
18
+ --parking-success: #219653;
19
+ --parking-success-light: #edf9f2;
20
+ --parking-warning: #c96a12;
21
+ --parking-warning-light: #fff8ec;
22
+ --parking-danger: #c84b31;
23
+ --parking-text: var(--tbox-text-primary, #182235);
24
+ --parking-text-2: var(--tbox-text-secondary, #6f7c8f);
25
+ --parking-text-3: var(--tbox-text-muted, #9aa4b4);
26
+ --parking-border: var(--tbox-border, #dfe6f1);
27
+ --parking-bg-subtle: var(--tbox-bg-subtle, #f7f9fc);
28
+ box-sizing: border-box;
29
+ width: 100%;
30
+ color: var(--parking-text);
31
+ font: inherit;
32
+ }
33
+
34
+ .parking-result,
35
+ .parking-records,
36
+ .parking-vm,
37
+ .parking-info {
38
+ padding: 28px;
39
+ background: var(--tbox-bg-card, #fff);
40
+ }
41
+
42
+ .parking-payment {
43
+ overflow: hidden;
44
+ background: var(--tbox-bg-card, #fff);
45
+ }
46
+
47
+ .parking-payment *, .parking-result *, .parking-records *,
48
+ .parking-vm *, .parking-info * { box-sizing: border-box; }
49
+
50
+ /*
51
+ * 清浏览器默认 margin。**必须用 :where() 把优先级压到 0**——
52
+ * 原先写成 `.parking-payment p`(0,1,1),它压过所有 BEM 单类规则(0,1,0):
53
+ * __settlement / __token-expired / __fees / records__detail / records__message 上
54
+ * 声明的 margin-top 全被静默吃成 0,改多大都没反应(间距调不动就是这个原因)。
55
+ * 新增带 margin 的类规则时不必再操心这条 reset。
56
+ */
57
+ :where(.parking-payment, .parking-result, .parking-records, .parking-vm, .parking-info)
58
+ :where(h4, p, dl, dd, dt, ul) {
59
+ margin: 0;
60
+ }
61
+
62
+ .parking-records ul, .parking-vm ul { padding: 0; list-style: none; }
63
+ .parking-payment button, .parking-records button, .parking-vm button,
64
+ .parking-vm input, .parking-result button { font: inherit; letter-spacing: 0; }
65
+ .parking-payment button, .parking-records button, .parking-vm button,
66
+ .parking-result button { cursor: pointer; }
67
+ .parking-payment button:disabled, .parking-records button:disabled,
68
+ .parking-vm button:disabled, .parking-result button:disabled {
69
+ cursor: not-allowed;
70
+ opacity: 0.46;
71
+ }
72
+
73
+ /* Shared service heading */
74
+ .parking-vm__head, .parking-info__head {
75
+ display: flex;
76
+ align-items: center;
77
+ gap: 16px;
78
+ margin-bottom: 24px;
79
+ }
80
+ .parking-vm__head-icon,
81
+ .parking-info__head-icon, .parking-records__head-icon {
82
+ display: grid;
83
+ place-items: center;
84
+ flex: 0 0 64px;
85
+ width: 64px;
86
+ height: 64px;
87
+ border-radius: 20px;
88
+ background: linear-gradient(145deg, #f3f8ff 0%, #e6f2ff 100%);
89
+ color: var(--parking-primary-deep);
90
+ }
91
+ .parking-vm__heading,
92
+ .parking-info__heading, .parking-records__heading > div {
93
+ display: flex;
94
+ min-width: 0;
95
+ flex-direction: column;
96
+ }
97
+ /* 标题下的说明行:三张卡同一形态(车辆管理为基准),不再用「商场停车服务」做眉标 */
98
+ .parking-vm__heading p,
99
+ .parking-info__heading p, .parking-records__heading p {
100
+ margin-top: 4px;
101
+ color: var(--parking-text-2);
102
+ font-size: 22px;
103
+ line-height: 30px;
104
+ }
105
+ .parking-vm__heading h4,
106
+ .parking-info__heading h4, .parking-records__heading h4 {
107
+ overflow: hidden;
108
+ color: var(--parking-text);
109
+ font-size: 30px;
110
+ font-weight: 700;
111
+ line-height: 42px;
112
+ text-overflow: ellipsis;
113
+ white-space: nowrap;
114
+ }
115
+
116
+ /* Payment: mall parking-service card hierarchy. */
117
+ .parking-payment__hero {
118
+ position: relative;
119
+ height: 332px;
120
+ overflow: hidden;
121
+ background: #f9f0df;
122
+ }
123
+ .parking-payment__hero-image {
124
+ display: block;
125
+ width: 100%;
126
+ height: 100%;
127
+ object-fit: cover;
128
+ }
129
+ .parking-payment__hero-content {
130
+ position: absolute;
131
+ inset: 0;
132
+ display: flex;
133
+ flex-direction: column;
134
+ padding: 28px;
135
+ background: rgba(255, 255, 255, 0.04);
136
+ }
137
+ .parking-payment__hero-eyebrow {
138
+ display: flex;
139
+ align-items: center;
140
+ justify-content: space-between;
141
+ gap: 16px;
142
+ color: #1f1f1f;
143
+ font-size: 22px;
144
+ font-weight: 600;
145
+ line-height: 30px;
146
+ }
147
+ .parking-payment__hero-eyebrow > span:first-child {
148
+ overflow: hidden;
149
+ text-overflow: ellipsis;
150
+ white-space: nowrap;
151
+ }
152
+ .parking-payment__status {
153
+ flex-shrink: 0;
154
+ padding: 6px 14px;
155
+ border: 1px solid rgba(94, 121, 62, 0.24);
156
+ border-radius: 20px;
157
+ background: rgba(255, 255, 255, 0.72);
158
+ color: #1f1f1f;
159
+ font-size: 20px;
160
+ line-height: 28px;
161
+ }
162
+ /* 左下角次级入口:浅色头图上用半透明玻璃胶囊,不与右上「历史报价」抢视线 */
163
+ .parking-payment__hero-actions { display: flex; }
164
+ .parking-payment__hero-action {
165
+ display: inline-flex;
166
+ align-items: center;
167
+ gap: 6px;
168
+ padding: 8px 16px;
169
+ border: 1px solid rgba(57, 76, 43, 0.16);
170
+ border-radius: 1998px;
171
+ background: rgba(255, 255, 255, 0.72);
172
+ color: #1f1f1f;
173
+ font-size: 20px;
174
+ font-weight: 500;
175
+ line-height: 28px;
176
+ cursor: pointer;
177
+ transition: background 0.18s ease, border-color 0.18s ease;
178
+ }
179
+ .parking-payment__hero-action:hover:not(:disabled) {
180
+ border-color: rgba(82, 106, 53, 0.3);
181
+ background: rgba(255, 255, 255, 0.9);
182
+ }
183
+ .parking-payment__hero-action:disabled { opacity: 0.5; cursor: default; }
184
+
185
+ .parking-payment__hero-main {
186
+ display: flex;
187
+ flex: 1;
188
+ min-width: 0;
189
+ flex-direction: column;
190
+ justify-content: center;
191
+ }
192
+ .parking-payment__hero-main strong {
193
+ overflow: hidden;
194
+ color: #1f1f1f;
195
+ font-size: 52px;
196
+ font-weight: 760;
197
+ line-height: 66px;
198
+ letter-spacing: 1px;
199
+ text-overflow: ellipsis;
200
+ text-shadow: 0 2px 10px rgba(255, 255, 255, 0.52);
201
+ white-space: nowrap;
202
+ }
203
+ .parking-payment__hero-main span {
204
+ overflow: hidden;
205
+ margin-top: 4px;
206
+ color: #1f1f1f;
207
+ font-size: 23px;
208
+ line-height: 32px;
209
+ text-overflow: ellipsis;
210
+ white-space: nowrap;
211
+ }
212
+ .parking-payment__summary {
213
+ display: grid;
214
+ grid-template-columns: repeat(3, minmax(0, 1fr));
215
+ padding: 22px 12px;
216
+ border-bottom: 2px solid #edf1f7;
217
+ background: #fbfcff;
218
+ }
219
+ .parking-payment__summary-item {
220
+ display: flex;
221
+ min-width: 0;
222
+ flex-direction: column;
223
+ align-items: center;
224
+ justify-content: center;
225
+ padding: 0 8px;
226
+ text-align: center;
227
+ }
228
+ .parking-payment__summary-item + .parking-payment__summary-item {
229
+ border-left: 2px solid #e5e9f1;
230
+ }
231
+ .parking-payment__summary-item small,
232
+ .parking-payment__summary-item strong {
233
+ overflow: hidden;
234
+ max-width: 100%;
235
+ text-overflow: ellipsis;
236
+ white-space: nowrap;
237
+ }
238
+ .parking-payment__summary-item small {
239
+ color: #8c94a4;
240
+ font-size: 20px;
241
+ line-height: 28px;
242
+ }
243
+ .parking-payment__summary-item strong {
244
+ margin-top: 5px;
245
+ color: #222b3b;
246
+ font-size: 28px;
247
+ font-weight: 700;
248
+ line-height: 38px;
249
+ }
250
+ .parking-payment__summary-item--benefit strong { color: #1f1f1f; }
251
+ .parking-payment__summary-item--amount strong { color: var(--parking-amount); }
252
+ .parking-payment__body { padding: 24px 26px 22px; }
253
+ .parking-payment__billing {
254
+ padding: 22px;
255
+ border: 2px solid #e7ebf3;
256
+ border-radius: 22px;
257
+ background: #fff;
258
+ }
259
+ .parking-payment__billing-head,
260
+ .parking-payment__billing-head > div {
261
+ display: flex;
262
+ align-items: center;
263
+ }
264
+ .parking-payment__billing-head {
265
+ justify-content: space-between;
266
+ gap: 18px;
267
+ }
268
+ .parking-payment__billing-head > div { min-width: 0; gap: 12px; }
269
+ .parking-payment__billing-icon {
270
+ display: grid;
271
+ place-items: center;
272
+ flex: 0 0 44px;
273
+ width: 44px;
274
+ height: 44px;
275
+ border-radius: 14px;
276
+ background: #edf3ff;
277
+ color: var(--parking-primary-deep);
278
+ }
279
+ .parking-payment__billing-head h4 {
280
+ color: #252d3c;
281
+ font-size: 28px;
282
+ font-weight: 650;
283
+ line-height: 38px;
284
+ }
285
+ .parking-payment__fees { margin-top: 10px; }
286
+ .parking-payment__fee {
287
+ display: flex;
288
+ align-items: center;
289
+ justify-content: space-between;
290
+ gap: 18px;
291
+ margin-top: 14px;
292
+ color: #586174;
293
+ font-size: 23px;
294
+ line-height: 34px;
295
+ }
296
+ .parking-payment__fee dd {
297
+ color: #31394a;
298
+ font-size: 25px;
299
+ font-weight: 650;
300
+ }
301
+ .parking-payment__fee--discount dd { color: #1f1f1f; }
302
+ .parking-payment__billing-total {
303
+ display: flex;
304
+ align-items: center;
305
+ justify-content: space-between;
306
+ gap: 18px;
307
+ margin-top: 18px;
308
+ padding-top: 16px;
309
+ border-top: 2px solid #edf0f5;
310
+ }
311
+ .parking-payment__billing-total strong {
312
+ color: #252d3c;
313
+ font-size: 27px;
314
+ line-height: 38px;
315
+ }
316
+ .parking-payment__billing-total b {
317
+ color: var(--parking-amount);
318
+ font-size: 42px;
319
+ font-weight: 760;
320
+ line-height: 48px;
321
+ }
322
+
323
+ /*
324
+ * 车牌等宽:数字与字母同宽,避免同一列里 1 与 A 宽度不一造成的视觉跳动。
325
+ * 中文省份简称在等宽栈里回落到中文字体,本就等宽、不受影响;
326
+ * tabular-nums 兜住等宽栈缺失但支持表格数字的环境。
327
+ */
328
+ .parking-plate,
329
+ .parking-plate b,
330
+ .parking-plate span {
331
+ font-family: ui-monospace, 'SF Mono', 'SFMono-Regular', Menlo, 'Roboto Mono', monospace;
332
+ font-variant-numeric: tabular-nums;
333
+ }
334
+
335
+ /* 支付终态提示:解释按钮为何置灰 */
336
+ /*
337
+ * 跟在支付按钮下方:解释按钮为何置灰。间距与按钮上方(actions 的 22px)取齐,
338
+ * 让按钮连同它的说明读作同一组。
339
+ */
340
+ .parking-payment__settlement {
341
+ display: flex;
342
+ align-items: center;
343
+ gap: 8px;
344
+ margin-top: 22px;
345
+ padding: 14px 18px;
346
+ border-radius: 16px;
347
+ background: #f2f4f8;
348
+ color: var(--parking-text-2);
349
+ font-size: 21px;
350
+ line-height: 30px;
351
+ }
352
+ .parking-payment__settlement--paid { background: #eef8f2; color: #21824d; }
353
+ .parking-payment__settlement--failed { background: #fdf0ee; color: #c0483c; }
354
+
355
+ .parking-payment__caveats, .parking-records__caveats {
356
+ margin-top: 18px;
357
+ color: var(--parking-text-3);
358
+ font-size: 20px;
359
+ line-height: 30px;
360
+ }
361
+ .parking-payment__token-expired {
362
+ margin-top: 22px;
363
+ padding: 14px 16px;
364
+ border: 2px solid #fcc9bb;
365
+ border-radius: 16px;
366
+ background: #fff4f0;
367
+ color: var(--parking-danger);
368
+ font-size: 22px;
369
+ line-height: 32px;
370
+ }
371
+ .parking-payment__member-guide {
372
+ display: flex;
373
+ align-items: center;
374
+ gap: 14px;
375
+ margin-top: 18px;
376
+ padding: 18px 20px;
377
+ border: 2px solid #ffe2a3;
378
+ border-radius: 22px;
379
+ background: linear-gradient(100deg, #fff7dc 0%, #ffedbd 100%);
380
+ }
381
+ .parking-payment__member-guide-icon {
382
+ display: grid;
383
+ place-items: center;
384
+ flex: 0 0 46px;
385
+ width: 46px;
386
+ height: 46px;
387
+ border-radius: 15px;
388
+ background: #ffab2e;
389
+ color: #fff;
390
+ }
391
+ .parking-payment__member-guide > div { display: grid; flex: 1; min-width: 0; gap: 2px; }
392
+ .parking-payment__member-guide strong { color: #7a4a00; font-size: 23px; line-height: 32px; }
393
+ .parking-payment__member-guide small { color: #9a6c24; font-size: 18px; line-height: 26px; }
394
+ .parking-payment__member-guide > button {
395
+ flex: 0 0 auto;
396
+ min-height: 54px;
397
+ padding: 0 20px;
398
+ border: 0;
399
+ border-radius: 27px;
400
+ background: #ff9f1a;
401
+ color: #fff;
402
+ font-size: 21px;
403
+ font-weight: 700;
404
+ }
405
+ .parking-payment__actions {
406
+ display: grid;
407
+ grid-template-columns: 1fr;
408
+ gap: 12px;
409
+ margin-top: 22px;
410
+ }
411
+ .parking-payment__action {
412
+ display: flex;
413
+ align-items: center;
414
+ justify-content: center;
415
+ gap: 8px;
416
+ min-width: 0;
417
+ min-height: 72px;
418
+ padding: 0 22px;
419
+ border-radius: 28px;
420
+ font-size: 27px;
421
+ font-weight: 700;
422
+ white-space: nowrap;
423
+ }
424
+ .parking-payment__action--primary {
425
+ border: 2px solid var(--parking-primary-deep);
426
+ background: var(--parking-primary-deep);
427
+ box-shadow: 0 10px 22px rgba(35, 104, 236, 0.22);
428
+ color: #fff;
429
+ }
430
+ .parking-payment__action--secondary {
431
+ border: 2px solid var(--parking-primary-border);
432
+ min-height: 60px;
433
+ background: var(--parking-primary-light);
434
+ color: var(--parking-primary);
435
+ }
436
+ .parking-payment__action--primary:disabled {
437
+ border-color: #e6e9ef;
438
+ background: #f2f4f8;
439
+ box-shadow: none;
440
+ color: #9aa3b4;
441
+ opacity: 1;
442
+ }
443
+ /* 页脚承载服务端下发的注意事项,可能多条拼接、需要换行:图标固定不压缩,文本自由折行。 */
444
+ .parking-payment__foot {
445
+ display: flex;
446
+ align-items: flex-start;
447
+ gap: 8px;
448
+ margin-top: 20px;
449
+ padding-top: 18px;
450
+ border-top: 2px solid #edf0f5;
451
+ color: var(--parking-text-3);
452
+ font-size: 20px;
453
+ line-height: 30px;
454
+ }
455
+
456
+ .parking-payment__foot > svg {
457
+ flex-shrink: 0;
458
+ margin-top: 4px;
459
+ }
460
+ .parking-payment__foot svg {
461
+ flex: 0 0 auto;
462
+ margin-top: 2px;
463
+ color: var(--parking-primary);
464
+ }
465
+
466
+ /* Result */
467
+ /* ── 回执卡:左对齐凭证形态(原居中大图标改为标题行 + 明细表)───────── */
468
+ .parking-result { display: grid; gap: 20px; }
469
+ .parking-result__head { display: flex; align-items: center; gap: 16px; }
470
+ .parking-result__icon {
471
+ display: grid;
472
+ place-items: center;
473
+ flex: 0 0 62px;
474
+ width: 62px;
475
+ height: 62px;
476
+ border-radius: 1998px;
477
+ }
478
+ .parking-result--paid .parking-result__icon {
479
+ background: var(--parking-success);
480
+ color: #fff;
481
+ }
482
+ .parking-result--cancelled .parking-result__icon {
483
+ background: var(--parking-bg-subtle);
484
+ color: var(--parking-text-2);
485
+ }
486
+ .parking-result--unknown .parking-result__icon {
487
+ background: var(--parking-warning-light);
488
+ color: var(--parking-warning);
489
+ }
490
+ .parking-result__heading { flex: 1; min-width: 0; }
491
+ .parking-result h4 {
492
+ color: var(--parking-text);
493
+ font-size: 32px;
494
+ font-weight: 750;
495
+ line-height: 44px;
496
+ }
497
+ .parking-result__heading small {
498
+ display: block;
499
+ color: var(--parking-text-2);
500
+ font-size: 22px;
501
+ line-height: 30px;
502
+ }
503
+
504
+ /* 金额行:金额是主体,状态词是它的注脚 */
505
+ .parking-result__amount-row { display: flex; align-items: baseline; gap: 12px; }
506
+ .parking-result__amount {
507
+ color: var(--parking-success);
508
+ font-size: 52px;
509
+ font-weight: 750;
510
+ line-height: 62px;
511
+ font-variant-numeric: tabular-nums;
512
+ }
513
+ .parking-result--cancelled .parking-result__amount,
514
+ .parking-result--unknown .parking-result__amount { color: var(--parking-text); }
515
+ .parking-result__amount-row span {
516
+ color: var(--parking-text-2);
517
+ font-size: 23px;
518
+ }
519
+
520
+ /* 离场时限:暖色告警底,缴费后最要紧的一句 */
521
+ .parking-result__leave {
522
+ display: flex;
523
+ align-items: center;
524
+ gap: 10px;
525
+ padding: 16px 20px;
526
+ border: 2px solid #f7e2bb;
527
+ border-radius: 18px;
528
+ background: #fff8ea;
529
+ color: #a8701b;
530
+ font-size: 23px;
531
+ font-weight: 600;
532
+ line-height: 32px;
533
+ }
534
+
535
+ /* 明细表:label 左、value 右,与缴费卡费用明细同排版 */
536
+ .parking-result__details {
537
+ display: grid;
538
+ gap: 14px;
539
+ padding: 22px 24px;
540
+ border-radius: 20px;
541
+ background: var(--parking-bg-subtle);
542
+ }
543
+ .parking-result__details > div {
544
+ display: flex;
545
+ align-items: baseline;
546
+ justify-content: space-between;
547
+ gap: 20px;
548
+ }
549
+ .parking-result__details dt {
550
+ color: var(--parking-text-2);
551
+ font-size: 22px;
552
+ line-height: 32px;
553
+ }
554
+ .parking-result__details dd {
555
+ color: var(--parking-text);
556
+ font-size: 23px;
557
+ font-weight: 650;
558
+ line-height: 32px;
559
+ text-align: right;
560
+ overflow-wrap: anywhere;
561
+ }
562
+ .parking-result__refresh {
563
+ min-height: 68px;
564
+ padding: 0 36px;
565
+ border: 2px solid var(--parking-primary-border);
566
+ border-radius: 1998px;
567
+ background: var(--parking-primary-light);
568
+ color: var(--parking-primary);
569
+ font-size: 23px;
570
+ font-weight: 650;
571
+ }
572
+
573
+ /* Records */
574
+ .parking-records__head {
575
+ display: flex;
576
+ align-items: center;
577
+ justify-content: space-between;
578
+ gap: 16px;
579
+ margin-bottom: 20px;
580
+ }
581
+ .parking-records__heading { display: flex; align-items: center; gap: 16px; min-width: 0; }
582
+ .parking-records__head > span {
583
+ flex: 0 0 auto;
584
+ color: var(--parking-text-2);
585
+ font-size: 21px;
586
+ }
587
+ .parking-records__empty, .parking-vm__empty {
588
+ padding: 38px 0;
589
+ color: var(--parking-text-3);
590
+ font-size: 24px;
591
+ text-align: center;
592
+ }
593
+ .parking-records__list { display: grid; gap: 12px; }
594
+ .parking-records__row {
595
+ display: grid;
596
+ grid-template-columns: minmax(0, 1fr) auto;
597
+ gap: 8px 20px;
598
+ padding: 18px 20px;
599
+ border: 2px solid #eef1f6;
600
+ border-radius: 20px;
601
+ background: #fafbfd;
602
+ cursor: pointer;
603
+ transition: border-color 0.15s ease, background 0.15s ease;
604
+ }
605
+ .parking-records__row:hover,
606
+ .parking-records__row:focus-visible {
607
+ border-color: var(--parking-primary-border);
608
+ background: var(--parking-primary-light);
609
+ outline: none;
610
+ }
611
+ .parking-records__main { display: grid; gap: 4px; min-width: 0; }
612
+ .parking-records__main small {
613
+ overflow: hidden;
614
+ color: var(--parking-text-2);
615
+ font-size: 20px;
616
+ line-height: 28px;
617
+ text-overflow: ellipsis;
618
+ white-space: nowrap;
619
+ }
620
+ .parking-records__amount {
621
+ display: grid;
622
+ align-content: start;
623
+ justify-items: end;
624
+ gap: 2px;
625
+ }
626
+ .parking-records__amount strong {
627
+ color: var(--parking-text);
628
+ font-size: 30px;
629
+ font-weight: 700;
630
+ line-height: 40px;
631
+ }
632
+ .parking-records__amount em { font-size: 19px; font-style: normal; line-height: 28px; }
633
+ .parking-records__status--paid { color: var(--parking-success); }
634
+ .parking-records__status--refunded { color: var(--parking-warning); }
635
+ .parking-records__status--unknown { color: var(--parking-text-3); }
636
+ .parking-records__detail {
637
+ display: grid;
638
+ grid-column: 1 / -1;
639
+ gap: 6px;
640
+ margin-top: 8px;
641
+ padding: 14px 16px;
642
+ border-radius: 14px;
643
+ background: var(--parking-bg-subtle);
644
+ font-size: 21px;
645
+ line-height: 30px;
646
+ }
647
+ .parking-records__detail > div { display: flex; justify-content: space-between; gap: 20px; }
648
+ .parking-records__detail dt { color: var(--parking-text-2); }
649
+ .parking-records__detail dd { color: var(--parking-text); text-align: right; }
650
+ .parking-records__actions {
651
+ display: flex;
652
+ grid-column: 1 / -1;
653
+ flex-wrap: wrap;
654
+ gap: 10px;
655
+ margin-top: 6px;
656
+ }
657
+ .parking-records__actions button {
658
+ display: inline-flex;
659
+ align-items: center;
660
+ gap: 6px;
661
+ min-height: 50px;
662
+ padding: 0 16px;
663
+ border: 2px solid var(--parking-primary-border);
664
+ border-radius: 1998px;
665
+ background: var(--parking-primary-light);
666
+ color: var(--parking-primary);
667
+ font-size: 20px;
668
+ }
669
+ .parking-records__invoiced {
670
+ display: inline-flex;
671
+ align-items: center;
672
+ color: var(--parking-success);
673
+ font-size: 20px;
674
+ }
675
+ .parking-records__more {
676
+ display: flex;
677
+ align-items: center;
678
+ justify-content: center;
679
+ gap: 6px;
680
+ width: 100%;
681
+ min-height: 60px;
682
+ margin-top: 16px;
683
+ border: 0;
684
+ border-radius: 16px;
685
+ background: var(--parking-bg-subtle);
686
+ color: var(--parking-text-2);
687
+ font-size: 21px;
688
+ }
689
+ .parking-records__more svg[data-rotated] {
690
+ transform: rotate(180deg);
691
+ transition: transform 0.15s ease;
692
+ }
693
+ .parking-records__message {
694
+ margin-top: 18px;
695
+ padding: 14px 16px;
696
+ border-radius: 16px;
697
+ background: var(--parking-primary-light);
698
+ color: var(--parking-primary-deep);
699
+ font-size: 21px;
700
+ line-height: 31px;
701
+ }
702
+
703
+ /* ── Record detail bottom sheet ───────────────────────────────────── */
704
+ .parking-sheet {
705
+ position: fixed;
706
+ inset: 0;
707
+ z-index: 1000;
708
+ }
709
+ .parking-sheet__mask {
710
+ position: absolute;
711
+ inset: 0;
712
+ background: rgba(0, 0, 0, 0.4);
713
+ animation: parking-sheet-fade-in 200ms ease both;
714
+ }
715
+ .parking-sheet__panel {
716
+ position: absolute;
717
+ bottom: 0;
718
+ left: 0;
719
+ right: 0;
720
+ max-height: 60vh;
721
+ display: flex;
722
+ flex-direction: column;
723
+ background: #fff;
724
+ border-radius: 24px 24px 0 0;
725
+ box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12);
726
+ animation: parking-sheet-in 240ms cubic-bezier(0.22, 0.72, 0.24, 1) both;
727
+ }
728
+ .parking-sheet__header {
729
+ display: flex;
730
+ align-items: center;
731
+ justify-content: space-between;
732
+ padding: 20px 24px 12px;
733
+ border-bottom: 1px solid #eef1f6;
734
+ }
735
+ .parking-sheet__header h2 {
736
+ margin: 0;
737
+ font-size: 26px;
738
+ font-weight: 700;
739
+ color: var(--parking-text);
740
+ }
741
+ .parking-sheet__close {
742
+ display: flex;
743
+ align-items: center;
744
+ justify-content: center;
745
+ width: 40px;
746
+ height: 40px;
747
+ border: 0;
748
+ border-radius: 50%;
749
+ background: #f5f7fa;
750
+ color: var(--parking-text-2);
751
+ cursor: pointer;
752
+ }
753
+ .parking-sheet__close:hover {
754
+ background: #eef1f6;
755
+ }
756
+ .parking-sheet__body {
757
+ flex: 1;
758
+ overflow-y: auto;
759
+ padding: 20px 24px 40px;
760
+ }
761
+ .parking-sheet__plate {
762
+ margin-bottom: 16px;
763
+ }
764
+ .parking-sheet__facts {
765
+ display: grid;
766
+ gap: 12px;
767
+ margin: 0;
768
+ }
769
+ .parking-sheet__fact-row {
770
+ display: flex;
771
+ justify-content: space-between;
772
+ gap: 20px;
773
+ }
774
+ .parking-sheet__fact-row dt {
775
+ color: var(--parking-text-2);
776
+ font-size: 21px;
777
+ }
778
+ .parking-sheet__fact-row dd {
779
+ margin: 0;
780
+ color: var(--parking-text);
781
+ font-size: 21px;
782
+ text-align: right;
783
+ overflow-wrap: anywhere;
784
+ word-break: break-all;
785
+ }
786
+ .parking-sheet__invoice-btn {
787
+ display: inline-flex;
788
+ align-items: center;
789
+ gap: 6px;
790
+ width: 100%;
791
+ justify-content: center;
792
+ min-height: 52px;
793
+ margin-top: 20px;
794
+ border: 2px solid var(--parking-primary-border);
795
+ border-radius: 1998px;
796
+ background: var(--parking-primary-light);
797
+ color: var(--parking-primary);
798
+ font-size: 21px;
799
+ cursor: pointer;
800
+ }
801
+ .parking-sheet__invoiced {
802
+ display: flex;
803
+ align-items: center;
804
+ justify-content: center;
805
+ width: 100%;
806
+ min-height: 52px;
807
+ margin-top: 20px;
808
+ color: var(--parking-success);
809
+ font-size: 21px;
810
+ }
811
+ @keyframes parking-sheet-in {
812
+ from { transform: translateY(100%); }
813
+ to { transform: translateY(0); }
814
+ }
815
+ @keyframes parking-sheet-fade-in {
816
+ from { opacity: 0; }
817
+ to { opacity: 1; }
818
+ }
819
+
820
+ /* ── Vehicle management ─────────────────────────────────────────────
821
+ 两态一套视觉:列表态陈列已绑车辆,录入态填车牌。头部结构恒定,
822
+ 切换时只有标题与主体变,不整卡重排。 */
823
+ .parking-vm { display: grid; gap: 22px; }
824
+ .parking-vm__heading { flex: 1; min-width: 0; }
825
+ .parking-vm__heading h4 {
826
+ color: var(--parking-text);
827
+ font-size: 32px;
828
+ font-weight: 700;
829
+ line-height: 44px;
830
+ }
831
+ /* 头部右侧:列表态放「添加车辆」,录入态放「取消」——同一槽位,两态不跳位 */
832
+ .parking-vm__head-btn {
833
+ display: inline-flex;
834
+ flex-shrink: 0;
835
+ align-self: center;
836
+ align-items: center;
837
+ gap: 6px;
838
+ padding: 8px 18px;
839
+ border: 0;
840
+ border-radius: 1998px;
841
+ background: var(--parking-bg-subtle);
842
+ color: var(--parking-text-2);
843
+ font-size: 22px;
844
+ }
845
+ .parking-vm__head-btn--add {
846
+ background: #e8effb;
847
+ color: var(--parking-primary-deep);
848
+ font-weight: 600;
849
+ }
850
+ .parking-vm__head-btn:not(:disabled):active { opacity: 0.7; }
851
+
852
+ /* 车辆行:整行卡片化,与录入格子同一套圆角与底色 */
853
+ .parking-vm__bound { display: grid; gap: 12px; }
854
+ .parking-vm__vehicle {
855
+ display: flex;
856
+ align-items: center;
857
+ gap: 14px;
858
+ padding: 18px 20px;
859
+ border: 2px solid #eef1f6;
860
+ border-radius: 20px;
861
+ background: #fafbfd;
862
+ }
863
+ .parking-vm__vehicle-icon {
864
+ display: grid;
865
+ place-items: center;
866
+ flex: 0 0 52px;
867
+ width: 52px;
868
+ height: 52px;
869
+ border-radius: 16px;
870
+ background: #e8effb;
871
+ color: var(--parking-primary-deep);
872
+ }
873
+ .parking-vm__vehicle-copy {
874
+ display: flex;
875
+ flex: 1;
876
+ min-width: 0;
877
+ align-items: center;
878
+ gap: 12px;
879
+ }
880
+ .parking-vm__vehicle .parking-plate {
881
+ min-width: 0;
882
+ overflow: hidden;
883
+ font-size: 30px;
884
+ font-weight: 650;
885
+ white-space: nowrap;
886
+ text-overflow: ellipsis;
887
+ }
888
+ /* 车牌省份与编号间的分隔点:车牌本身的排版惯例,间距比字距略松 */
889
+ .parking-plate__sep {
890
+ margin: 0 2px;
891
+ color: #9aa4b4;
892
+ font-style: normal;
893
+ font-weight: 400;
894
+ }
895
+ /* 在场标记:绿色是「此刻正在场内」的事实,不是可点的动作 */
896
+ .parking-vm__vehicle-state {
897
+ flex-shrink: 0;
898
+ padding: 3px 12px;
899
+ border-radius: 1998px;
900
+ background: #e3f5ea;
901
+ color: #21824d;
902
+ font-size: 19px;
903
+ font-style: normal;
904
+ font-weight: 500;
905
+ line-height: 26px;
906
+ }
907
+ .parking-vm__vehicle-actions { display: flex; flex: 0 0 auto; gap: 6px; flex-shrink: 0; }
908
+ /* 操作收成图标按钮:车牌是这一行的主体,动作不该与之争夺视线 */
909
+ .parking-vm__vehicle-actions button {
910
+ display: inline-flex;
911
+ width: 56px;
912
+ height: 56px;
913
+ align-items: center;
914
+ justify-content: center;
915
+ border: none;
916
+ border-radius: 1998px;
917
+ background: #fff;
918
+ color: #9aa4b4;
919
+ }
920
+ .parking-vm__vehicle-actions button:not(:disabled):active {
921
+ background: #eef2f9;
922
+ color: var(--parking-primary-deep);
923
+ }
924
+ .parking-vm__vehicle-actions button[data-action-id="parking.unbind-vehicle"]:not(:disabled):active {
925
+ color: #d0483c;
926
+ }
927
+ .parking-vm__vehicle-actions button:disabled { opacity: 0.5; }
928
+ /* 防止 iOS WebKit 把 SVG 图标缩成点 */
929
+ .parking-vm__vehicle-actions button svg {
930
+ flex-shrink: 0;
931
+ min-width: 16px;
932
+ min-height: 16px;
933
+ }
934
+
935
+ /* 入会引导:暖金色与卡内蓝/灰体系拉开,是邀请不是状态 */
936
+ .parking-vm__enroll {
937
+ display: flex;
938
+ align-items: center;
939
+ gap: 14px;
940
+ padding: 18px 20px;
941
+ border-radius: 20px;
942
+ background: linear-gradient(135deg, #fdf1d8 0%, #fbe6bd 100%);
943
+ }
944
+ .parking-vm__enroll-icon {
945
+ display: grid;
946
+ place-items: center;
947
+ flex: 0 0 48px;
948
+ width: 48px;
949
+ height: 48px;
950
+ border-radius: 1998px;
951
+ background: #f0a537;
952
+ color: #fff;
953
+ }
954
+ .parking-vm__enroll-copy { flex: 1; min-width: 0; }
955
+ .parking-vm__enroll-copy strong {
956
+ display: block;
957
+ overflow: hidden;
958
+ color: #7a4f11;
959
+ font-size: 25px;
960
+ font-weight: 700;
961
+ line-height: 34px;
962
+ text-overflow: ellipsis;
963
+ white-space: nowrap;
964
+ }
965
+ .parking-vm__enroll-copy small {
966
+ display: block;
967
+ color: #9d7534;
968
+ font-size: 20px;
969
+ line-height: 28px;
970
+ }
971
+ .parking-vm__enroll-btn {
972
+ flex-shrink: 0;
973
+ padding: 12px 26px;
974
+ border: 0;
975
+ border-radius: 1998px;
976
+ background: linear-gradient(135deg, #f5ad42 0%, #ec8f26 100%);
977
+ color: #fff;
978
+ font-size: 23px;
979
+ font-weight: 650;
980
+ }
981
+ .parking-vm__enroll-btn:active { opacity: 0.85; }
982
+
983
+ /* 分格输入:格子只是视觉,真实输入在覆盖其上的透明 input */
984
+ .parking-vm__plate-field {
985
+ display: flex;
986
+ align-items: center;
987
+ gap: 18px;
988
+ /* 车牌格与下方主按钮拉开:格子本身有底色块,贴太近会读成一整块 */
989
+ margin-bottom: 14px;
990
+ }
991
+ .parking-vm__plate-label {
992
+ flex-shrink: 0;
993
+ color: var(--parking-text);
994
+ font-size: 26px;
995
+ font-weight: 600;
996
+ }
997
+ .parking-vm__plate-cells {
998
+ position: relative;
999
+ display: flex;
1000
+ flex: 1;
1001
+ min-width: 0;
1002
+ align-items: center;
1003
+ gap: 8px;
1004
+ cursor: text;
1005
+ }
1006
+ /* 透明 input 铺满格子区:只承接程序化 focus(bridge 唤起原生键盘);
1007
+ 指针事件让给分格(分格点击分发自绘键盘 / 桥唤起) */
1008
+ .parking-vm__plate-native {
1009
+ position: absolute;
1010
+ inset: 0;
1011
+ width: 100%;
1012
+ padding: 0;
1013
+ border: 0;
1014
+ background: transparent;
1015
+ color: transparent;
1016
+ caret-color: transparent;
1017
+ outline: none;
1018
+ cursor: text;
1019
+ pointer-events: none;
1020
+ }
1021
+ /* 省份 + 城市字母后的分隔点:车牌本身的排版惯例 */
1022
+ .parking-vm__plate-dot {
1023
+ flex-shrink: 0;
1024
+ width: 8px;
1025
+ height: 8px;
1026
+ border-radius: 50%;
1027
+ background: #c3cbd8;
1028
+ }
1029
+ .parking-vm__plate-cell {
1030
+ display: flex;
1031
+ flex: 1;
1032
+ min-width: 0;
1033
+ height: 84px;
1034
+ align-items: center;
1035
+ justify-content: center;
1036
+ border: 2px solid transparent;
1037
+ border-radius: 16px;
1038
+ background: #f2f4f8;
1039
+ color: var(--parking-text);
1040
+ font-size: 32px;
1041
+ font-weight: 650;
1042
+ font-variant-numeric: tabular-nums;
1043
+ transition: border-color 0.16s ease, background 0.16s ease;
1044
+ }
1045
+ .parking-vm__plate-cell--active {
1046
+ border-color: var(--parking-primary-deep, #2368ec);
1047
+ background: #fff;
1048
+ }
1049
+ /* 新能源位常空:虚线 + 绿色提示它是可选的第 8 位,而非漏填的格子 */
1050
+ .parking-vm__plate-cell--ne {
1051
+ border: 2px dashed #7fceac;
1052
+ background: #f1faf5;
1053
+ }
1054
+ .parking-vm__plate-cell--ne em {
1055
+ color: #2f8f63;
1056
+ font-size: 17px;
1057
+ font-style: normal;
1058
+ font-weight: 500;
1059
+ line-height: 22px;
1060
+ }
1061
+ .parking-vm__plate-cell--ne.parking-vm__plate-cell--active {
1062
+ border-style: solid;
1063
+ border-color: var(--parking-primary-deep, #2368ec);
1064
+ background: #fff;
1065
+ }
1066
+
1067
+ /* H5 自绘车牌键盘(浏览器降级;壳内走原生 plate-keyboard bridge)。
1068
+ 白键浮在浅灰面板上,与分格输入的软填充语言一致;禁用键降透明度、保留结构预期 */
1069
+ .parking-kb {
1070
+ display: grid;
1071
+ grid-template-columns: repeat(10, 1fr);
1072
+ gap: 6px;
1073
+ margin-top: 4px;
1074
+ padding: 12px 10px;
1075
+ border-radius: 20px;
1076
+ background: #f1f4f9;
1077
+ }
1078
+ .parking-kb__key {
1079
+ height: 52px;
1080
+ min-width: 0;
1081
+ padding: 0;
1082
+ border: 0;
1083
+ border-radius: 12px;
1084
+ background: #fff;
1085
+ color: var(--parking-text);
1086
+ font-size: 23px;
1087
+ font-weight: 600;
1088
+ font-variant-numeric: tabular-nums;
1089
+ transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
1090
+ }
1091
+ .parking-kb__key:active {
1092
+ transform: scale(0.96);
1093
+ background: #e6ebf4;
1094
+ }
1095
+ .parking-kb__key:disabled {
1096
+ opacity: 0.35;
1097
+ }
1098
+ .parking-kb__key--span2 { grid-column: span 2; }
1099
+ .parking-kb__key--span3 { grid-column: span 3; }
1100
+ .parking-kb__key--span4 { grid-column: span 4; }
1101
+ /* 功能键:文字小一号、次级色,与字符键拉开层级 */
1102
+ .parking-kb__key--fn {
1103
+ background: #e4eaf4;
1104
+ color: var(--parking-text-2);
1105
+ font-size: 17px;
1106
+ font-weight: 500;
1107
+ }
1108
+ .parking-kb__key--fn:active {
1109
+ background: #d7e0ef;
1110
+ }
1111
+ /* 新能源开关:开态对齐 plate-cell--ne 的绿色语言(浅绿底 + 绿字 + 绿描边) */
1112
+ .parking-kb__key--energy[aria-pressed='true'] {
1113
+ background: #f1faf5;
1114
+ color: #2f8f63;
1115
+ box-shadow: inset 0 0 0 2px #7fceac;
1116
+ }
1117
+ /* 完成键:收起键盘的唯一出口,主色强调 */
1118
+ .parking-kb__key--done {
1119
+ background: var(--parking-primary);
1120
+ color: #fff;
1121
+ font-size: 18px;
1122
+ font-weight: 600;
1123
+ }
1124
+ .parking-kb__key--done:active {
1125
+ background: var(--parking-primary-deep);
1126
+ }
1127
+
1128
+ /* 主按钮 / 次级文字 / 添加槽位 */
1129
+ /* 视觉全部复用 .parking-payment__action--primary,这里只补「铺满整行」 */
1130
+ .parking-vm__primary-btn { width: 100%; }
1131
+ .parking-vm__btn--loading { opacity: 0.72; }
1132
+ @keyframes parking-spin { to { transform: rotate(360deg); } }
1133
+ .parking-vm__spinner {
1134
+ display: inline-block;
1135
+ flex-shrink: 0;
1136
+ width: 22px;
1137
+ height: 22px;
1138
+ border: 3px solid rgba(255, 255, 255, 0.35);
1139
+ border-top-color: #fff;
1140
+ border-radius: 50%;
1141
+ animation: parking-spin 0.7s linear infinite;
1142
+ }
1143
+ .parking-vm__spinner--primary {
1144
+ border-color: rgba(22, 119, 255, 0.25);
1145
+ border-top-color: var(--parking-primary);
1146
+ }
1147
+
1148
+ /* Plate lockup */
1149
+ .parking-plate { display: inline-flex; align-items: baseline; gap: 0; min-width: 0; }
1150
+ .parking-plate b { color: var(--parking-text-2); font-weight: 650; }
1151
+ .parking-plate span {
1152
+ color: var(--parking-text);
1153
+ font-weight: 750;
1154
+ letter-spacing: 1px;
1155
+ }
1156
+
1157
+ /* ── 优惠勾选:卡片式选项(选中染色 + 金额右侧突出 + 类型分色标签) ── */
1158
+ .parking-payment__benefit-picker { margin-top: 18px; }
1159
+ .parking-payment__benefit-picker-head {
1160
+ display: flex;
1161
+ align-items: baseline;
1162
+ justify-content: space-between;
1163
+ margin-bottom: 12px;
1164
+ }
1165
+ .parking-payment__benefit-picker-head h4 {
1166
+ margin: 0;
1167
+ color: #4a5262;
1168
+ font-size: 24px;
1169
+ font-weight: 650;
1170
+ line-height: 32px;
1171
+ }
1172
+ .parking-payment__benefit-repricing {
1173
+ color: var(--parking-primary-deep, #2368ec);
1174
+ font-size: 20px;
1175
+ }
1176
+ .parking-payment__benefit-options {
1177
+ display: flex;
1178
+ flex-direction: column;
1179
+ gap: 12px;
1180
+ margin: 0;
1181
+ padding: 0;
1182
+ list-style: none;
1183
+ }
1184
+
1185
+ /* 选项卡片:默认白底细边,选中时主题色描边 + 浅色染底 */
1186
+ .parking-payment__benefit-option {
1187
+ position: relative;
1188
+ display: flex;
1189
+ align-items: center;
1190
+ gap: 14px;
1191
+ padding: 16px 22px;
1192
+ border: 2px solid #e7ebf3;
1193
+ border-radius: 20px;
1194
+ background: #fff;
1195
+ cursor: pointer;
1196
+ transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
1197
+ }
1198
+ .parking-payment__benefit-option--on {
1199
+ border-color: var(--parking-primary-deep, #2368ec);
1200
+ background: linear-gradient(180deg, #f5f9ff 0%, #fff 60%);
1201
+ box-shadow: 0 4px 16px rgba(35, 104, 236, 0.08);
1202
+ }
1203
+ .parking-payment__benefit-option:has(input:disabled) {
1204
+ opacity: 0.55;
1205
+ cursor: default;
1206
+ }
1207
+
1208
+ /* 原生 input 移出视觉但留在无障碍树(键盘与读屏照常) */
1209
+ .parking-payment__benefit-option input {
1210
+ position: absolute;
1211
+ width: 1px;
1212
+ height: 1px;
1213
+ margin: -1px;
1214
+ padding: 0;
1215
+ border: 0;
1216
+ overflow: hidden;
1217
+ clip: rect(0 0 0 0);
1218
+ white-space: nowrap;
1219
+ }
1220
+ /* 勾选圈:未选空心灰环,选中实心主题色 */
1221
+ .parking-payment__benefit-check {
1222
+ display: inline-flex;
1223
+ width: 40px;
1224
+ height: 40px;
1225
+ flex-shrink: 0;
1226
+ align-items: center;
1227
+ justify-content: center;
1228
+ border: 2px solid #ccd4e0;
1229
+ border-radius: 50%;
1230
+ background: #fff;
1231
+ color: transparent;
1232
+ transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
1233
+ }
1234
+ .parking-payment__benefit-option--on .parking-payment__benefit-check {
1235
+ border-color: var(--parking-primary-deep, #2368ec);
1236
+ background: var(--parking-primary-deep, #2368ec);
1237
+ color: #fff;
1238
+ }
1239
+ .parking-payment__benefit-option input:focus-visible + .parking-payment__benefit-check {
1240
+ outline: 2px solid var(--parking-primary-deep, #2368ec);
1241
+ outline-offset: 3px;
1242
+ }
1243
+
1244
+ .parking-payment__benefit-option-copy { flex: 1; min-width: 0; }
1245
+ .parking-payment__benefit-option-copy strong {
1246
+ display: block;
1247
+ overflow: hidden;
1248
+ color: #2b3040;
1249
+ font-size: 24px;
1250
+ font-weight: 650;
1251
+ line-height: 34px;
1252
+ text-overflow: ellipsis;
1253
+ white-space: nowrap;
1254
+ }
1255
+
1256
+ /* 金额右对齐,单行内与标题分居两端 */
1257
+ .parking-payment__benefit-amount {
1258
+ flex-shrink: 0;
1259
+ color: var(--parking-amount, #d0483c);
1260
+ font-size: 28px;
1261
+ font-weight: 700;
1262
+ line-height: 36px;
1263
+ font-variant-numeric: tabular-nums;
1264
+ }
1265
+ .parking-payment__benefit-amount i { font-size: 22px; font-style: normal; }
1266
+
1267
+ /* 互斥撤下提示:自动取消必须可见,否则用户以为优惠凭空消失 */
1268
+ .parking-payment__benefit-notice {
1269
+ display: flex;
1270
+ gap: 8px;
1271
+ margin: 12px 0 0;
1272
+ padding: 14px 16px;
1273
+ border-radius: 14px;
1274
+ background: #fff8e9;
1275
+ color: #a86b1b;
1276
+ font-size: 20px;
1277
+ line-height: 28px;
1278
+ }
1279
+
1280
+ /* Information */
1281
+ .parking-info__entries { display: grid; gap: 12px; }
1282
+ .parking-info__entry {
1283
+ display: flex;
1284
+ justify-content: space-between;
1285
+ gap: 20px;
1286
+ padding: 18px 20px;
1287
+ border: 2px solid #eef1f6;
1288
+ border-radius: 20px;
1289
+ background: #fafbfd;
1290
+ font-size: 23px;
1291
+ line-height: 34px;
1292
+ }
1293
+ .parking-info__entry dt { flex: 0 0 auto; color: var(--parking-text-2); }
1294
+ .parking-info__entry dd {
1295
+ color: var(--parking-text);
1296
+ font-weight: 550;
1297
+ text-align: right;
1298
+ overflow-wrap: anywhere;
1299
+ }
1300
+
1301
+ @media (max-width: 540PX) {
1302
+ .parking-payment__actions { grid-template-columns: 1fr; }
1303
+ .parking-payment__actions > .parking-payment__action { grid-column: auto; }
1304
+ .parking-vm__vehicle { gap: 8px; }
1305
+ .parking-vm__vehicle-actions button { flex: 1; justify-content: center; }
1306
+ }