@tbox.cn/app-module-shopping-guide 0.9.12 → 1.0.0-alpha.6

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.
@@ -1,2600 +0,0 @@
1
- /* ============================================================
2
- * module-shopping-guide 客户端域样式(0.4.0 D1/D2;头注二轮评审修正)。
3
- * 视觉源:mall-vis 双演示(BrandGuideMessageCard 导购蓝系);域色矩阵对照 docs/reference/templates.md(视觉体系与域色矩阵)。
4
- * 基线(D2):本仓库统一 750 设计稿 2x——源码 px 经 rootValue 100 转 rem,渲染折半(375 下 1px 源码 = 0.5px 物理)。
5
- * POC sg 源文件本身即按 750 稿惯例作稿(正文 24/26px),故值 1:1 迁移、管线等价、渲染还原。
6
- * (评审修正:POC client 亦为 rootValue 100 管线,"POC = 物理 px 生态、一律 ×2" 的前提不成立,换算按源文件作稿惯例分域裁定。)
7
- * 机械规则:大写 PX 不转;rgba() 传统语法;禁 color-mix / !important;直引 --tbox-* 恒带 fallback;域专属视觉走域变量。
8
- * 分区序:域变量 → 卡根 → 布局 → 组件 → 状态变体。
9
- * ============================================================ */
10
-
11
- /* ===== 域变量 =====
12
- * 三个根都要声明:卡片在 .sg-card 里,两个半屏则 portal 到 body、**不在卡内**。
13
- * 变量原先只挂在 .sg-card 上,半屏于是拿不到 --sg-success-bg 等状态色,
14
- * 同一枚「营业中」在卡片上是绿底胶囊、在半屏里退化成一行灰字——
15
- * 与行样式挂在 .sg-recommend-merchants 下是同一类作用域问题。
16
- * 新增 portal 根时记得加进这份选择器列表。
17
- */
18
- .sg-card,
19
- .sg-store-list-sheet,
20
- .sg-shop-sheet {
21
- --sg-accent: var(--tbox-domain-sg-accent, #096bfa);
22
- --sg-surface: var(--tbox-domain-sg-surface, #f7faff);
23
- --sg-accent-border: var(--tbox-domain-sg-border, #cfe0f7);
24
- --sg-navy-gradient: linear-gradient(135deg, #0e2f80 0%, #1e5ed7 100%);
25
- --sg-cta-gradient: linear-gradient(108deg, #2493ff 0%, #0b63ff 100%);
26
- --sg-open-bg: #e9f8ef;
27
- --sg-open-ink: #237a48;
28
- --sg-neutral-badge-bg: #fff4df;
29
- --sg-neutral-badge-ink: #986415;
30
- --sg-buy: #e54650;
31
- --sg-text-2: var(--tbox-text-secondary, #888);
32
- --sg-text-3: var(--tbox-text-muted, #aaa);
33
- --sg-border: var(--tbox-border, #ececec);
34
- --sg-bg-subtle: var(--tbox-bg-subtle, #f7f7f7);
35
- --sg-danger: #ef4f43;
36
- --sg-danger-bg: #fff1f3;
37
- --sg-success: var(--tbox-success, #0f8a5f);
38
- --sg-success-bg: var(--tbox-success-light, #e6f7f0);
39
- --sg-warning-bg: var(--tbox-warning-light, #fff4e0);
40
- }
41
-
42
- /*
43
- * 无图占位。ImageWithFallback 只给 div 挂了 `img-fallback` 这个裸类名,本域一直没定义过它,
44
- * 于是占位块只继承到方块尺寸:图标按默认流落在左上角、颜色继承正文的近黑、
45
- * 大小是 phosphor 按 `size × 0.45` 算出的物理像素(列表行 96×0.45≈43,压在 68 的格子里过半)。
46
- * 这里补齐居中与减淡;限定在本域三个根内,避免影响其它模块自己的 .img-fallback。
47
- */
48
- .sg-card .img-fallback,
49
- .sg-store-list-sheet .img-fallback,
50
- .sg-shop-sheet .img-fallback {
51
- display: grid;
52
- place-items: center;
53
- color: #c4c8ce;
54
- }
55
- /* 列表行的占位格只有 68 物理像素,phosphor 按 size×0.45 算出的 43 压满大半格,单独收小。
56
- 注意这里的 60 是源码值:本文件的 px 会被转 rem 后折半,落到屏幕上是 30。
57
- (phosphor 自己的 size 属性反而不转,两套单位并存,改这块要分清。) */
58
- .sg-merchant-row .sg-rm-item-image.img-fallback svg {
59
- width: 60px;
60
- height: 60px;
61
- }
62
-
63
- /* ===== 卡根 ===== */
64
- .sg-card {
65
- box-sizing: border-box;
66
- padding: 40px;
67
- color: var(--tbox-text-primary, #202124);
68
- font: inherit;
69
- }
70
- .sg-card *,
71
- .sg-card *::before,
72
- .sg-card *::after {
73
- box-sizing: border-box;
74
- }
75
- .sg-card img {
76
- max-width: 100%;
77
- object-fit: cover;
78
- }
79
- .sg-card button,
80
- .sg-card input {
81
- font: inherit;
82
- letter-spacing: 0;
83
- }
84
- .sg-card button {
85
- cursor: pointer;
86
- }
87
- .sg-card button:disabled {
88
- cursor: not-allowed;
89
- opacity: 0.5;
90
- }
91
- .sg-card ul,
92
- .sg-card ol,
93
- .sg-card dl,
94
- .sg-card dd,
95
- .sg-card dt,
96
- .sg-card p {
97
- margin: 0;
98
- padding: 0;
99
- list-style: none;
100
- }
101
-
102
- /* ===== 布局 ===== */
103
- .sg-card-title {
104
- display: flex;
105
- align-items: center;
106
- gap: 16px;
107
- font-size: 34px;
108
- font-weight: 700;
109
- line-height: 48px;
110
- margin-bottom: 16px;
111
- color: var(--tbox-text-primary, #202124);
112
- }
113
- .sg-card-title::before {
114
- content: '';
115
- flex: 0 0 8px;
116
- width: 8px;
117
- height: 32px;
118
- border-radius: 4px;
119
- background: var(--sg-accent);
120
- }
121
- /* product-detail 渐变头(demo BrandGuide 卡头语言:深蓝渐变 + 白标题,负边距铺满卡框裁进圆角) */
122
- .sg-product-detail .sg-card-title {
123
- margin: -40px -40px 24px;
124
- padding: 28px;
125
- border-radius: 0;
126
- background: var(--sg-navy-gradient);
127
- color: #fff;
128
- font-size: 32px;
129
- }
130
- .sg-product-detail .sg-card-title::before {
131
- display: none;
132
- }
133
- .sg-card-subtitle,
134
- .sg-card-summary {
135
- font-size: 26px;
136
- color: var(--sg-text-2);
137
- margin-bottom: 24px;
138
- }
139
- .sg-empty {
140
- padding: 48px 0;
141
- text-align: center;
142
- color: var(--sg-text-3);
143
- font-size: 26px;
144
- }
145
- .sg-stale-notice {
146
- margin-bottom: 20px;
147
- padding: 16px 20px;
148
- border-radius: 16px;
149
- background: var(--sg-warning-bg);
150
- color: var(--tbox-warning, #b26a00);
151
- font-size: 24px;
152
- line-height: 36px;
153
- }
154
-
155
- /* ===== 组件 ===== */
156
-
157
- /* 通用 chip(条目动作/楼层查看门店)——分类 chip 模式:域 surface + 2px 描边 + 域蓝文字 */
158
- .sg-chip {
159
- display: inline-flex;
160
- align-items: center;
161
- justify-content: center;
162
- min-height: 60px;
163
- padding: 0 24px;
164
- border-radius: 18px;
165
- border: 2px solid var(--sg-border);
166
- color: var(--sg-accent);
167
- background: var(--sg-surface);
168
- font-size: 24px;
169
- font-weight: 500;
170
- white-space: nowrap;
171
- }
172
- .sg-item-actions {
173
- display: flex;
174
- flex-wrap: wrap;
175
- gap: 12px;
176
- margin-top: 16px;
177
- }
178
-
179
- /* 状态徽章 */
180
- .sg-status {
181
- display: inline-block;
182
- padding: 4px 16px;
183
- border-radius: 1998px;
184
- font-size: 22px;
185
- line-height: 32px;
186
- white-space: nowrap;
187
- }
188
- .sg-status-enabled,
189
- .sg-status-available {
190
- color: var(--sg-success);
191
- background: var(--sg-success-bg);
192
- }
193
- /* 营业状态徽(demo 营业绿/中性金) */
194
- .sg-status-open {
195
- color: var(--sg-open-ink);
196
- background: var(--sg-open-bg);
197
- }
198
- .sg-status-offline,
199
- .sg-status-closed,
200
- .sg-status-unknown,
201
- .sg-status-disabled {
202
- color: var(--sg-neutral-badge-ink);
203
- background: var(--sg-neutral-badge-bg);
204
- }
205
-
206
- /* 价格三段 */
207
- .sg-price-block {
208
- display: flex;
209
- align-items: baseline;
210
- flex-wrap: wrap;
211
- gap: 16px;
212
- margin-top: 8px;
213
- }
214
- .sg-price-sale {
215
- font-size: 30px;
216
- font-weight: 700;
217
- font-variant-numeric: tabular-nums;
218
- color: var(--sg-danger);
219
- }
220
- .sg-price-sale--lg {
221
- font-size: 44px;
222
- line-height: 56px;
223
- }
224
- .sg-price-original {
225
- font-size: 24px;
226
- color: var(--sg-text-3);
227
- text-decoration: line-through;
228
- }
229
- .sg-price-promotion {
230
- padding: 1px 12px;
231
- border-radius: 8px;
232
- background: var(--sg-danger-bg);
233
- color: var(--sg-danger);
234
- font-size: 22px;
235
- line-height: 32px;
236
- }
237
- .sg-price-unavailable {
238
- font-size: 24px;
239
- color: var(--sg-text-3);
240
- }
241
-
242
- /* 库存/可用性 */
243
- .sg-availability {
244
- display: inline-block;
245
- margin-top: 8px;
246
- font-size: 24px;
247
- color: var(--sg-text-2);
248
- }
249
- .sg-availability-in_stock,
250
- .sg-availability-available {
251
- color: var(--sg-success);
252
- }
253
- .sg-availability-out_of_stock {
254
- color: var(--tbox-warning, #b26a00);
255
- }
256
- .sg-availability__guide {
257
- margin-left: 16px;
258
- padding: 1px 12px;
259
- border-radius: 8px;
260
- background: var(--sg-bg-subtle);
261
- font-size: 22px;
262
- }
263
-
264
- /* 徽章/理由/服务/业态 tag */
265
- .sg-badges {
266
- display: flex;
267
- flex-wrap: wrap;
268
- gap: 12px;
269
- margin-bottom: 12px;
270
- }
271
- .sg-badge {
272
- padding: 1px 12px;
273
- border-radius: 8px;
274
- background: var(--sg-bg-subtle);
275
- color: var(--sg-text-2);
276
- font-size: 22px;
277
- line-height: 32px;
278
- }
279
- .sg-reasons {
280
- display: flex;
281
- flex-wrap: wrap;
282
- gap: 12px;
283
- margin-top: 12px;
284
- }
285
- .sg-reason-tag {
286
- padding: 4px 16px;
287
- border-radius: 1998px;
288
- background: var(--sg-danger-bg);
289
- color: var(--sg-danger);
290
- font-size: 22px;
291
- line-height: 32px;
292
- }
293
- .sg-services {
294
- display: flex;
295
- flex-wrap: wrap;
296
- gap: 12px;
297
- margin-top: 16px;
298
- }
299
- .sg-service-tag {
300
- padding: 4px 16px;
301
- border-radius: 16px;
302
- border: 1px solid var(--sg-border);
303
- color: var(--sg-text-2);
304
- font-size: 22px;
305
- line-height: 32px;
306
- }
307
- .sg-item-caveats {
308
- margin-top: 12px;
309
- }
310
- .sg-caveat-item {
311
- font-size: 22px;
312
- line-height: 32px;
313
- color: var(--sg-text-3);
314
- }
315
- .sg-promo-facts {
316
- margin-top: 16px;
317
- font-size: 24px;
318
- color: var(--sg-danger);
319
- }
320
- .sg-promo-fact {
321
- margin-top: 8px;
322
- font-size: 24px;
323
- line-height: 36px;
324
- color: var(--sg-danger);
325
- }
326
- .sg-product-merchant {
327
- margin-top: 12px;
328
- font-size: 24px;
329
- color: var(--sg-text-2);
330
- }
331
- .sg-merchant-location {
332
- color: var(--sg-text-3);
333
- }
334
-
335
- /* ===== product-list ===== */
336
- .sg-product-item {
337
- display: flex;
338
- gap: 24px;
339
- padding: 24px 0;
340
- border-bottom: 1px solid var(--sg-border);
341
- }
342
- .sg-product-item:last-child {
343
- border-bottom: 0;
344
- }
345
- .sg-product-image {
346
- flex: 0 0 160px;
347
- width: 160px;
348
- height: 160px;
349
- border-radius: 16px;
350
- object-fit: cover;
351
- }
352
- .sg-product-info {
353
- flex: 1;
354
- min-width: 0;
355
- }
356
- .sg-product-name {
357
- font-size: 30px;
358
- font-weight: 600;
359
- line-height: 42px;
360
- color: var(--tbox-text-primary, #202124);
361
- }
362
- .sg-product-item--clickable {
363
- cursor: pointer;
364
- transition: background 0.15s;
365
- }
366
- .sg-product-item--clickable:active {
367
- background: var(--sg-bg-subtle);
368
- }
369
- .sg-product-item__arrow {
370
- flex-shrink: 0;
371
- align-self: center;
372
- font-size: 32px;
373
- color: var(--sg-text-3);
374
- margin-left: 8px;
375
- }
376
-
377
- /* ===== product-detail sheet(半屏) ===== */
378
- .sg-product-sheet {
379
- position: fixed;
380
- inset: 0;
381
- z-index: 1000;
382
- /* 半屏 panel 整体在底部输入区(快捷指令 + 对话框)上方弹出,不与输入区相交 */
383
- padding-bottom: var(--tbox-chat-bottom-height, 0px);
384
- }
385
- .sg-product-sheet__mask {
386
- position: fixed;
387
- inset: 0;
388
- background: rgba(11, 15, 23, 0.5);
389
- }
390
- .sg-product-sheet__panel {
391
- position: absolute;
392
- bottom: 0;
393
- left: 0;
394
- right: 0;
395
- max-height: calc(82vh - var(--tbox-chat-bottom-height, 0px));
396
- background: var(--tbox-bg-card, #fff);
397
- border-radius: 36px 36px 0 0;
398
- box-shadow: 0 -12px 40px rgba(11, 15, 23, 0.12);
399
- display: flex;
400
- flex-direction: column;
401
- overflow: hidden;
402
- }
403
- .sg-product-sheet__header {
404
- display: flex;
405
- align-items: center;
406
- padding: 32px 32px 20px;
407
- flex-shrink: 0;
408
- }
409
- .sg-product-sheet__title {
410
- flex: 1;
411
- font-size: 32px;
412
- font-weight: 600;
413
- color: var(--tbox-text-primary, #202124);
414
- }
415
- .sg-product-sheet__close {
416
- display: flex;
417
- align-items: center;
418
- justify-content: center;
419
- width: 56px;
420
- height: 56px;
421
- border-radius: 50%;
422
- border: 0;
423
- background: var(--sg-bg-subtle);
424
- color: var(--sg-text-2);
425
- flex-shrink: 0;
426
- }
427
- .sg-product-sheet__body {
428
- overflow-y: auto;
429
- padding: 0 32px 48px;
430
- -webkit-overflow-scrolling: touch;
431
- }
432
- .sg-product-sheet__cover {
433
- width: 100%;
434
- height: 360px;
435
- border-radius: 24px;
436
- object-fit: cover;
437
- display: block;
438
- margin-bottom: 28px;
439
- }
440
- .sg-product-sheet__main {
441
- padding-bottom: 16px;
442
- }
443
- .sg-product-sheet__name {
444
- font-size: 36px;
445
- font-weight: 700;
446
- line-height: 52px;
447
- color: var(--tbox-text-primary, #202124);
448
- margin-top: 8px;
449
- }
450
- .sg-product-sheet__brand {
451
- font-size: 26px;
452
- color: var(--sg-text-3);
453
- margin-top: 6px;
454
- }
455
- .sg-product-sheet__price-row {
456
- display: flex;
457
- align-items: baseline;
458
- gap: 12px;
459
- margin-top: 16px;
460
- }
461
- .sg-product-sheet__merchant {
462
- margin-top: 12px;
463
- font-size: 26px;
464
- color: var(--sg-text-2);
465
- }
466
- .sg-product-sheet__actions {
467
- padding-top: 24px;
468
- border-top: 1px solid var(--sg-border);
469
- margin-top: 24px;
470
- }
471
- .sg-product-sheet__action-row {
472
- display: flex;
473
- gap: 16px;
474
- }
475
- .sg-product-sheet__chip {
476
- flex: 1;
477
- padding: 20px 0;
478
- border-radius: 18px;
479
- border: 0;
480
- background: var(--sg-buy);
481
- color: #fff;
482
- font-size: 28px;
483
- font-weight: 500;
484
- text-align: center;
485
- }
486
- .sg-page-info {
487
- margin-top: 20px;
488
- text-align: center;
489
- font-size: 24px;
490
- color: var(--sg-text-3);
491
- }
492
- .sg-refinements {
493
- display: flex;
494
- flex-wrap: wrap;
495
- gap: 16px;
496
- margin-top: 24px;
497
- padding-top: 20px;
498
- border-top: 1px dashed var(--sg-border);
499
- }
500
- .sg-refinement-chip {
501
- padding: 8px 24px;
502
- border-radius: 1998px;
503
- border: 1px solid var(--sg-border);
504
- background: var(--tbox-bg-card, #fff);
505
- color: var(--sg-text-2);
506
- font-size: 24px;
507
- }
508
-
509
- /* ===== product-detail ===== */
510
- .sg-carousel {
511
- position: relative;
512
- }
513
- .sg-carousel__stage {
514
- width: 100%;
515
- height: 480px;
516
- border-radius: 24px;
517
- object-fit: cover;
518
- }
519
- .sg-carousel__count {
520
- position: absolute;
521
- right: 20px;
522
- bottom: 20px;
523
- padding: 4px 16px;
524
- border-radius: 1998px;
525
- background: rgba(0, 0, 0, 0.5);
526
- color: #fff;
527
- font-size: 22px;
528
- line-height: 32px;
529
- }
530
- .sg-carousel__thumbs {
531
- display: flex;
532
- gap: 16px;
533
- margin-top: 16px;
534
- overflow-x: auto;
535
- }
536
- .sg-carousel__thumb {
537
- flex: 0 0 96px;
538
- width: 96px;
539
- height: 96px;
540
- padding: 0;
541
- border: 4px solid transparent;
542
- border-radius: 16px;
543
- overflow: hidden;
544
- }
545
- .sg-carousel__thumb img {
546
- width: 100%;
547
- height: 100%;
548
- object-fit: cover;
549
- }
550
- .sg-carousel__thumb[aria-current='true'] {
551
- border-color: var(--sg-accent);
552
- }
553
- .sg-product-desc {
554
- margin-top: 20px;
555
- font-size: 26px;
556
- line-height: 40px;
557
- color: var(--tbox-text-primary, #202124);
558
- }
559
- .sg-attr-table {
560
- margin-top: 20px;
561
- border: 1px solid var(--sg-border);
562
- border-radius: 16px;
563
- overflow: hidden;
564
- }
565
- .sg-attr-row {
566
- display: flex;
567
- gap: 24px;
568
- padding: 16px 24px;
569
- border-bottom: 1px solid var(--sg-border);
570
- font-size: 26px;
571
- }
572
- .sg-attr-row:last-child {
573
- border-bottom: 0;
574
- }
575
- .sg-attr-row dt {
576
- flex: 0 0 auto;
577
- color: var(--sg-text-2);
578
- }
579
- .sg-attr-row dd {
580
- flex: 1;
581
- text-align: right;
582
- color: var(--tbox-text-primary, #202124);
583
- }
584
- .sg-category-path {
585
- margin-top: 16px;
586
- font-size: 22px;
587
- color: var(--sg-text-3);
588
- }
589
- .sg-link-btn {
590
- display: inline-flex;
591
- align-items: center;
592
- gap: 8px;
593
- padding: 0;
594
- border: 0;
595
- background: transparent;
596
- color: var(--sg-accent);
597
- font-size: 26px;
598
- text-decoration: underline;
599
- text-underline-offset: 4px;
600
- }
601
-
602
- /* ===== merchant-list ===== */
603
- .sg-merchant-item {
604
- display: flex;
605
- gap: 24px;
606
- padding: 24px 0;
607
- border-bottom: 1px solid var(--sg-border);
608
- }
609
- .sg-merchant-item:last-child {
610
- border-bottom: 0;
611
- }
612
-
613
- /* Logo 容器:固定 80×80,有图展图,无图展首字占位 */
614
- .sg-merchant-logo-wrap {
615
- flex: 0 0 80px;
616
- width: 80px;
617
- height: 80px;
618
- border-radius: 16px;
619
- overflow: hidden;
620
- background: var(--sg-bg-subtle);
621
- }
622
- .sg-merchant-logo {
623
- width: 80px;
624
- height: 80px;
625
- border-radius: 16px;
626
- object-fit: cover;
627
- }
628
- .sg-merchant-logo-placeholder {
629
- width: 80px;
630
- height: 80px;
631
- display: flex;
632
- align-items: center;
633
- justify-content: center;
634
- border-radius: 16px;
635
- background: linear-gradient(135deg, var(--sg-accent-border) 0%, #dce9ff 100%);
636
- color: var(--sg-accent);
637
- font-size: 32px;
638
- font-weight: 700;
639
- }
640
-
641
- .sg-merchant-info {
642
- flex: 1;
643
- min-width: 0;
644
- }
645
- .sg-merchant-head {
646
- display: flex;
647
- align-items: center;
648
- justify-content: space-between;
649
- gap: 16px;
650
- }
651
- .sg-merchant-name {
652
- font-size: 30px;
653
- font-weight: 600;
654
- color: var(--tbox-text-primary, #202124);
655
- flex: 1;
656
- min-width: 0;
657
- overflow: hidden;
658
- text-overflow: ellipsis;
659
- white-space: nowrap;
660
- }
661
- .sg-merchant-brand {
662
- margin-top: 4px;
663
- font-size: 24px;
664
- color: var(--sg-text-3);
665
- }
666
-
667
- /* 品类 tag 行 */
668
- .sg-merchant-cats {
669
- display: flex;
670
- flex-wrap: wrap;
671
- gap: 8px;
672
- margin-top: 8px;
673
- }
674
- .sg-merchant-cat-tag {
675
- padding: 2px 12px;
676
- border-radius: 8px;
677
- background: var(--sg-bg-subtle);
678
- color: var(--sg-text-2);
679
- font-size: 20px;
680
- line-height: 30px;
681
- white-space: nowrap;
682
- }
683
-
684
- /* 位置行:图标 + 楼栋 · 楼层 · 铺位 */
685
- .sg-merchant-location {
686
- display: flex;
687
- align-items: center;
688
- gap: 6px;
689
- flex-wrap: wrap;
690
- margin-top: 8px;
691
- font-size: 24px;
692
- color: var(--sg-text-2);
693
- }
694
- .sg-location-icon {
695
- font-size: 22px;
696
- flex-shrink: 0;
697
- }
698
- .sg-location-building {
699
- font-weight: 500;
700
- color: var(--tbox-text-primary, #202124);
701
- }
702
- .sg-location-floor::before {
703
- content: ' ';
704
- }
705
- .sg-location-unit {
706
- color: var(--sg-text-3);
707
- }
708
- .sg-location-unit::before {
709
- content: ' ';
710
- }
711
-
712
- /* 电话行 */
713
- .sg-merchant-phone {
714
- display: flex;
715
- align-items: center;
716
- gap: 6px;
717
- margin-top: 6px;
718
- font-size: 24px;
719
- }
720
- .sg-phone-icon {
721
- font-size: 22px;
722
- flex-shrink: 0;
723
- }
724
- .sg-phone-link {
725
- color: var(--sg-accent);
726
- text-decoration: none;
727
- }
728
- .sg-phone-link:active {
729
- opacity: 0.7;
730
- }
731
-
732
- .sg-merchant-detail-hint {
733
- display: flex;
734
- align-items: center;
735
- gap: 4px;
736
- margin-top: 10px;
737
- padding: 0;
738
- border: 0;
739
- background: transparent;
740
- color: var(--sg-accent);
741
- font: inherit;
742
- font-size: 22px;
743
- font-weight: 500;
744
- cursor: pointer;
745
- }
746
- .sg-merchant-detail-hint:focus-visible {
747
- outline: 3px solid rgba(9, 107, 250, 0.28);
748
- outline-offset: 4px;
749
- border-radius: 8px;
750
- }
751
-
752
- /* ===== shop-detail =====
753
- * 卡壳与门店行全部走导览卡那套(.sg-recommend-merchants + .sg-merchant-row),
754
- * 本域已无详情卡专属样式。原先整套 .sg-shop-detail__*(封面/identity/logo/copy/
755
- * name-row/category/location/hint)与卡内动作行的位置规则,随卡片收进同一形态而删除——
756
- * 留着只会让人以为详情卡还有独立样式可调。
757
- */
758
-
759
- /*
760
- * 这里原有一整套 shop-detail v2 样式(封面出血、头区合一、票券、服务 chip、动作条),
761
- * 随详情卡收进门店导览形态而全部失效——那套 DOM 已不存在,`.sg-detail-*` 在源码里零引用。
762
- * 唯一还在生效的是 `.sg-card.sg-shop-detail { padding: 0 }`,而卡头靠 `margin: 0 -12px`
763
- * 抵消卡片内边距做通栏,padding 归零后负 margin 无从抵消,头图被推出卡外再被 overflow 裁掉,
764
- * 表现为「卡头左右缩进、与另两张卡对不齐」。整段删除,详情卡完全走 .sg-recommend-merchants。
765
- */
766
-
767
- /* ===== category-list ===== */
768
- .sg-category-grid {
769
- display: grid;
770
- grid-template-columns: repeat(3, minmax(0, 1fr));
771
- gap: 16px;
772
- }
773
- .sg-category-cell {
774
- display: flex;
775
- flex-direction: column;
776
- align-items: center;
777
- gap: 10px;
778
- padding: 28px 8px 20px;
779
- border: none;
780
- border-radius: 24px;
781
- background: var(--sg-surface);
782
- text-align: center;
783
- cursor: pointer;
784
- transition: transform 0.12s ease, background 0.12s ease;
785
- width: 100%;
786
- }
787
- .sg-category-cell:active {
788
- transform: scale(0.95);
789
- background: var(--sg-accent-border);
790
- }
791
- .sg-category-cell:disabled {
792
- cursor: default;
793
- opacity: 0.7;
794
- }
795
- .sg-category-cell:disabled:active {
796
- transform: none;
797
- background: var(--sg-surface);
798
- }
799
- .sg-category-icon-wrap {
800
- display: flex;
801
- align-items: center;
802
- justify-content: center;
803
- width: 96px;
804
- height: 96px;
805
- border-radius: 50%;
806
- background: rgba(9, 107, 250, 0.08);
807
- }
808
- .sg-category-icon {
809
- font-size: 48px;
810
- line-height: 1;
811
- user-select: none;
812
- }
813
- .sg-category-name {
814
- font-size: 26px;
815
- font-weight: 600;
816
- color: var(--tbox-text-primary, #202124);
817
- line-height: 36px;
818
- word-break: break-all;
819
- }
820
- .sg-category-count {
821
- font-size: 20px;
822
- color: var(--sg-text-2);
823
- line-height: 28px;
824
- }
825
- .sg-category-toggle {
826
- display: flex;
827
- align-items: center;
828
- justify-content: center;
829
- gap: 8px;
830
- width: 100%;
831
- margin-top: 20px;
832
- padding: 16px 0;
833
- border: 1px solid var(--sg-border);
834
- border-radius: 16px;
835
- background: transparent;
836
- color: var(--sg-text-2);
837
- font-size: 24px;
838
- }
839
- .sg-category-toggle__icon {
840
- transition: transform 0.15s ease;
841
- }
842
- .sg-category-toggle__icon[data-rotated] {
843
- transform: rotate(180deg);
844
- }
845
-
846
- /* ===== category-list: floor nav ===== */
847
- .sg-category-floors {
848
- margin-top: 24px;
849
- padding-top: 20px;
850
- border-top: 1px solid var(--sg-border);
851
- }
852
- .sg-category-floors__title {
853
- font-size: 24px;
854
- font-weight: 500;
855
- color: var(--sg-text-2);
856
- margin-bottom: 16px;
857
- }
858
- .sg-category-floors__building {
859
- margin-bottom: 16px;
860
- }
861
- .sg-category-floors__building-name {
862
- font-size: 22px;
863
- color: var(--sg-text-3);
864
- margin-bottom: 10px;
865
- }
866
- .sg-category-floors__floor-list {
867
- display: flex;
868
- flex-wrap: wrap;
869
- gap: 12px;
870
- }
871
- .sg-category-floor-chip {
872
- display: inline-flex;
873
- align-items: center;
874
- gap: 6px;
875
- padding: 10px 20px;
876
- border: 1px solid var(--sg-border);
877
- border-radius: 40px;
878
- background: var(--tbox-bg-card, #fff);
879
- font-size: 24px;
880
- color: var(--tbox-text-primary, #202124);
881
- cursor: pointer;
882
- transition: background 0.1s, border-color 0.1s;
883
- }
884
- .sg-category-floor-chip:active {
885
- background: var(--sg-accent-light, #e8f0fe);
886
- border-color: var(--sg-accent, #096bfa);
887
- }
888
- .sg-category-floor-chip:disabled {
889
- opacity: 0.5;
890
- cursor: default;
891
- }
892
- .sg-category-floor-chip__count {
893
- font-size: 20px;
894
- color: var(--sg-text-3);
895
- }
896
-
897
- /* ===== merchant-list: no-logo variant ===== */
898
- .sg-merchant-item--no-logo {
899
- padding-left: 0;
900
- }
901
- .sg-merchant-item--no-logo .sg-merchant-info {
902
- width: 100%;
903
- }
904
-
905
- /* ===== merchant-list: 整行可点击(非历史态) ===== */
906
- .sg-merchant-item--clickable {
907
- cursor: pointer;
908
- transition: background 0.12s ease;
909
- }
910
- .sg-merchant-item--clickable:active {
911
- background: var(--sg-hover-bg, rgba(0, 0, 0, 0.04));
912
- }
913
-
914
- /* ===== product-comparison ===== */
915
- .sg-compare-wrap {
916
- overflow-x: auto;
917
- }
918
- .sg-compare {
919
- width: 100%;
920
- border-collapse: collapse;
921
- font-size: 24px;
922
- }
923
- .sg-compare th,
924
- .sg-compare td {
925
- padding: 16px;
926
- border-bottom: 1px solid var(--sg-border);
927
- text-align: left;
928
- vertical-align: top;
929
- }
930
- .sg-compare__label {
931
- color: var(--sg-text-2);
932
- font-weight: 500;
933
- white-space: nowrap;
934
- }
935
- .sg-compare__img {
936
- width: 112px;
937
- height: 112px;
938
- border-radius: 16px;
939
- object-fit: cover;
940
- }
941
- .sg-compare__name {
942
- margin-top: 8px;
943
- font-weight: 600;
944
- line-height: 36px;
945
- color: var(--tbox-text-primary, #202124);
946
- }
947
- .sg-compare__cell-empty {
948
- color: var(--sg-text-3);
949
- }
950
- .sg-compare__stale-marker {
951
- display: block;
952
- margin-top: 16px;
953
- font-size: 24px;
954
- color: var(--tbox-warning, #b26a00);
955
- }
956
- .sg-product-comparison--stale .sg-compare {
957
- opacity: 0.6;
958
- }
959
-
960
- /* ===== mall-directory ===== */
961
- .sg-dir-building {
962
- border: 1px solid var(--sg-border);
963
- border-radius: 20px;
964
- margin-top: 16px;
965
- overflow: hidden;
966
- }
967
- .sg-dir-building__head {
968
- display: flex;
969
- align-items: center;
970
- gap: 16px;
971
- width: 100%;
972
- padding: 24px;
973
- border: 0;
974
- background: var(--tbox-bg-card, #fff);
975
- color: var(--tbox-text-primary, #202124);
976
- text-align: left;
977
- }
978
- .sg-dir-building__head > svg {
979
- color: var(--sg-accent);
980
- }
981
- .sg-dir-building__name {
982
- flex: 1;
983
- font-size: 28px;
984
- font-weight: 600;
985
- }
986
- .sg-dir-building__count {
987
- font-size: 24px;
988
- color: var(--sg-text-3);
989
- }
990
- .sg-dir-building__chevron[data-rotated] {
991
- transform: rotate(180deg);
992
- transition: transform 0.15s ease;
993
- }
994
- .sg-dir-floors {
995
- border-top: 1px solid var(--sg-border);
996
- background: var(--sg-bg-subtle);
997
- }
998
- .sg-dir-floor {
999
- display: flex;
1000
- align-items: center;
1001
- justify-content: space-between;
1002
- gap: 16px;
1003
- padding: 16px 24px;
1004
- border-bottom: 1px solid var(--sg-border);
1005
- }
1006
- .sg-dir-floor:last-child {
1007
- border-bottom: 0;
1008
- }
1009
- .sg-dir-floor__info {
1010
- display: grid;
1011
- gap: 4px;
1012
- min-width: 0;
1013
- }
1014
- .sg-dir-floor__name {
1015
- font-size: 26px;
1016
- font-weight: 500;
1017
- color: var(--tbox-text-primary, #202124);
1018
- }
1019
- .sg-dir-floor__cats {
1020
- font-size: 22px;
1021
- color: var(--sg-text-3);
1022
- overflow: hidden;
1023
- text-overflow: ellipsis;
1024
- white-space: nowrap;
1025
- }
1026
- .sg-dir-floor__action {
1027
- flex: 0 0 auto;
1028
- min-height: 56px;
1029
- padding: 0 20px;
1030
- }
1031
-
1032
- /* ===== nearby-mall-list ===== */
1033
- .sg-nearby-item {
1034
- padding: 24px 0;
1035
- border-bottom: 1px solid var(--sg-border);
1036
- }
1037
- .sg-nearby-item:last-child {
1038
- border-bottom: 0;
1039
- }
1040
- .sg-nearby-item__meta {
1041
- display: flex;
1042
- justify-content: space-between;
1043
- gap: 16px;
1044
- margin-top: 8px;
1045
- font-size: 24px;
1046
- color: var(--sg-text-2);
1047
- }
1048
- .sg-nearby-item__distance {
1049
- flex: 0 0 auto;
1050
- color: var(--sg-accent);
1051
- font-weight: 500;
1052
- }
1053
-
1054
- /* ===== customer-service-faq ===== */
1055
- .sg-faq-item {
1056
- border: 1px solid var(--sg-border);
1057
- border-radius: 20px;
1058
- margin-top: 16px;
1059
- overflow: hidden;
1060
- }
1061
- .sg-faq-item__q {
1062
- display: flex;
1063
- align-items: center;
1064
- justify-content: space-between;
1065
- gap: 16px;
1066
- width: 100%;
1067
- padding: 24px;
1068
- border: 0;
1069
- background: var(--tbox-bg-card, #fff);
1070
- color: var(--tbox-text-primary, #202124);
1071
- font-size: 28px;
1072
- font-weight: 500;
1073
- text-align: left;
1074
- }
1075
- .sg-faq-item__chevron[data-rotated] {
1076
- transform: rotate(180deg);
1077
- transition: transform 0.15s ease;
1078
- }
1079
- .sg-faq-item__a {
1080
- padding: 0 24px 24px;
1081
- border-top: 1px solid var(--sg-border);
1082
- background: var(--sg-bg-subtle);
1083
- }
1084
- .sg-faq-item__a p {
1085
- padding: 20px 0 8px;
1086
- font-size: 26px;
1087
- line-height: 40px;
1088
- color: var(--tbox-text-primary, #202124);
1089
- }
1090
- .sg-faq-item__ref {
1091
- margin-top: 8px;
1092
- font-size: 24px;
1093
- }
1094
- .sg-contact-btn {
1095
- display: flex;
1096
- align-items: center;
1097
- justify-content: center;
1098
- gap: 12px;
1099
- width: 100%;
1100
- margin-top: 24px;
1101
- height: 80px;
1102
- border-radius: 18px;
1103
- border: 2px solid var(--sg-accent-border);
1104
- color: var(--sg-accent);
1105
- background: var(--sg-surface);
1106
- font-size: 28px;
1107
- font-weight: 500;
1108
- }
1109
-
1110
- /* ===== human-guide-list ===== */
1111
- .sg-guide-item {
1112
- display: flex;
1113
- align-items: center;
1114
- gap: 24px;
1115
- padding: 24px 0;
1116
- border-bottom: 1px solid var(--sg-border);
1117
- }
1118
- .sg-guide-item:last-child {
1119
- border-bottom: 0;
1120
- }
1121
- .sg-guide-avatar {
1122
- flex: 0 0 96px;
1123
- width: 96px;
1124
- height: 96px;
1125
- border-radius: 50%;
1126
- object-fit: cover;
1127
- }
1128
- .sg-guide-info {
1129
- flex: 1;
1130
- min-width: 0;
1131
- }
1132
- .sg-guide-title {
1133
- margin-top: 4px;
1134
- font-size: 24px;
1135
- color: var(--sg-text-2);
1136
- }
1137
- .sg-guide-channels {
1138
- display: flex;
1139
- flex-wrap: wrap;
1140
- gap: 12px;
1141
- margin-top: 8px;
1142
- }
1143
- .sg-guide-channel {
1144
- padding: 1px 12px;
1145
- border-radius: 8px;
1146
- background: var(--sg-bg-subtle);
1147
- font-size: 22px;
1148
- color: var(--sg-text-2);
1149
- }
1150
- .sg-guide-contact {
1151
- flex: 0 0 auto;
1152
- min-height: 64px;
1153
- padding: 0 24px;
1154
- border-radius: 18px;
1155
- border: 2px solid var(--sg-border);
1156
- color: var(--sg-accent);
1157
- background: var(--sg-surface);
1158
- font-size: 24px;
1159
- }
1160
- .sg-guide-privacy {
1161
- margin-top: 20px;
1162
- font-size: 22px;
1163
- line-height: 32px;
1164
- color: var(--sg-text-3);
1165
- }
1166
-
1167
- /* ===== location-handoff ===== */
1168
- .sg-lh-map {
1169
- width: 100%;
1170
- height: 320px;
1171
- border-radius: 24px;
1172
- object-fit: cover;
1173
- }
1174
- .sg-lh-address {
1175
- display: flex;
1176
- align-items: center;
1177
- gap: 12px;
1178
- margin-top: 20px;
1179
- font-size: 28px;
1180
- font-weight: 500;
1181
- color: var(--tbox-text-primary, #202124);
1182
- }
1183
- .sg-lh-address svg {
1184
- flex: 0 0 auto;
1185
- color: var(--sg-accent);
1186
- }
1187
- .sg-lh-detail {
1188
- display: flex;
1189
- flex-wrap: wrap;
1190
- gap: 12px;
1191
- margin-top: 16px;
1192
- }
1193
- .sg-lh-detail span {
1194
- padding: 4px 16px;
1195
- border-radius: 16px;
1196
- background: var(--sg-bg-subtle);
1197
- font-size: 24px;
1198
- color: var(--sg-text-2);
1199
- }
1200
- .sg-lh-nav {
1201
- display: flex;
1202
- align-items: center;
1203
- justify-content: center;
1204
- gap: 12px;
1205
- width: 100%;
1206
- margin-top: 24px;
1207
- height: 80px;
1208
- border-radius: 18px;
1209
- border: 0;
1210
- color: #fff;
1211
- background: var(--sg-cta-gradient);
1212
- box-shadow: 0 8px 22px rgba(18, 118, 255, 0.35);
1213
- font-size: 28px;
1214
- font-weight: 500;
1215
- }
1216
-
1217
- /* ===== shop-list:门店导览卡头 + 类目 Tab ===== */
1218
-
1219
- .sg-sl-header {
1220
- display: flex;
1221
- align-items: flex-start;
1222
- margin: -40px -40px 0;
1223
- padding: 30px 28px 26px;
1224
- background: linear-gradient(135deg, #202522 0%, #353b36 100%);
1225
- border-radius: 0;
1226
- }
1227
- .sg-sl-header-copy {
1228
- display: flex;
1229
- flex-direction: column;
1230
- gap: 6px;
1231
- }
1232
- .sg-sl-header-title {
1233
- margin: 0;
1234
- font-size: 32px;
1235
- font-weight: 700;
1236
- line-height: 46px;
1237
- color: #fff;
1238
- }
1239
- .sg-sl-header-subtitle {
1240
- margin: 0;
1241
- font-size: 24px;
1242
- line-height: 36px;
1243
- color: rgba(255, 255, 255, 0.75);
1244
- }
1245
-
1246
- /* 类目 Tab 2×2 网格(最多 4 个) */
1247
- .sg-sl-tabs {
1248
- display: grid;
1249
- grid-template-columns: repeat(2, minmax(0, 1fr));
1250
- gap: 12px;
1251
- margin: 20px -8px 0;
1252
- padding: 12px 8px;
1253
- border-radius: 20px;
1254
- background: #f7f8f6;
1255
- }
1256
- .sg-sl-tab {
1257
- display: flex;
1258
- align-items: center;
1259
- justify-content: center;
1260
- gap: 9px;
1261
- min-height: 60px;
1262
- padding: 12px 16px;
1263
- border-radius: 14px;
1264
- border: 1px solid transparent;
1265
- background: #fff;
1266
- font-size: 24px;
1267
- font-weight: 500;
1268
- color: var(--tbox-text-primary, #202124);
1269
- cursor: pointer;
1270
- transition: border-color 0.15s, background 0.15s, color 0.15s;
1271
- }
1272
- .sg-sl-tab svg {
1273
- color: var(--sg-text-2);
1274
- flex: 0 0 auto;
1275
- }
1276
- .sg-sl-tab--active {
1277
- border-color: #2f3530;
1278
- background: #2f3530;
1279
- color: #fff;
1280
- }
1281
- .sg-sl-tab--active svg {
1282
- color: #fff;
1283
- }
1284
- .sg-sl-tab:disabled {
1285
- cursor: default;
1286
- opacity: 0.5;
1287
- }
1288
-
1289
- /* ===== recommend-merchants 卡(门店导览样式) ===== */
1290
-
1291
- .sg-rm-header {
1292
- display: flex;
1293
- align-items: flex-start;
1294
- justify-content: space-between;
1295
- gap: 16px;
1296
- margin: -40px -40px 0;
1297
- padding: 26px 28px 28px;
1298
- background: linear-gradient(135deg, #1c211e 0%, #353b36 100%);
1299
- border-radius: 0;
1300
- }
1301
- .sg-rm-header-copy {
1302
- display: flex;
1303
- flex-direction: column;
1304
- gap: 6px;
1305
- }
1306
- .sg-rm-header-eyebrow {
1307
- display: inline-flex;
1308
- align-items: center;
1309
- gap: 7px;
1310
- color: rgba(255, 255, 255, 0.72);
1311
- font-size: 20px;
1312
- line-height: 28px;
1313
- }
1314
- .sg-rm-header-title {
1315
- margin: 0;
1316
- font-size: 32px;
1317
- font-weight: 700;
1318
- line-height: 46px;
1319
- color: #fff;
1320
- }
1321
- .sg-rm-header-subtitle {
1322
- margin: 0;
1323
- font-size: 24px;
1324
- line-height: 36px;
1325
- color: rgba(255, 255, 255, 0.75);
1326
- }
1327
- /* 类目 Tab 2×2 网格 */
1328
- /*
1329
- * 品类筛选:单行横滑。原为 2×2 网格且截断到 4 个——网格放不下更多,于是商场真实有的业态
1330
- * 被藏掉一半,卡内看到 4 个、点进浮层却是七八个,两处对不上。改成横滑后条数不再受限,
1331
- * 卡内与浮层看到同一份分类;顺带从两行高收成一行。
1332
- * 纯文字、无图标:原先的图标是按顺序写死的四个(叉子/咖啡/购物袋/笑脸),第五个分类起就没有
1333
- * 图标可用,放开条数后这条会直接碰壁;浮层那侧本就是纯文字,去掉也就此对齐。
1334
- */
1335
- .sg-rm-tabs {
1336
- display: flex;
1337
- gap: 32px;
1338
- margin: 20px 0 0;
1339
- padding: 0;
1340
- overflow-x: auto;
1341
- scrollbar-width: none;
1342
- -webkit-overflow-scrolling: touch;
1343
- }
1344
- .sg-rm-tabs::-webkit-scrollbar {
1345
- display: none;
1346
- }
1347
- .sg-rm-tab {
1348
- position: relative;
1349
- display: flex;
1350
- flex: 0 0 auto;
1351
- align-items: center;
1352
- justify-content: center;
1353
- min-height: 56px;
1354
- padding: 0 2px 14px;
1355
- border: 0;
1356
- background: transparent;
1357
- font-size: 26px;
1358
- font-weight: 500;
1359
- color: #6b706d;
1360
- white-space: nowrap;
1361
- cursor: pointer;
1362
- transition: color 0.15s;
1363
- }
1364
- /* 选中态:加深加粗 + 下方短横。指示条用 ::after 而非 border-bottom——
1365
- border 会把未选中项也撑高一像素,一行 tab 的基线就此错开。 */
1366
- .sg-rm-tab--active {
1367
- color: var(--tbox-text-primary, #202124);
1368
- font-weight: 600;
1369
- }
1370
- .sg-rm-tab--active::after {
1371
- position: absolute;
1372
- bottom: 0;
1373
- left: 50%;
1374
- width: 36px;
1375
- height: 6px;
1376
- border-radius: 3px;
1377
- background: #30372f;
1378
- transform: translateX(-50%);
1379
- content: '';
1380
- }
1381
-
1382
- /* 列表分区标签 */
1383
- .sg-rm-section-label {
1384
- display: flex;
1385
- align-items: center;
1386
- justify-content: space-between;
1387
- margin-top: 26px;
1388
- font-size: 26px;
1389
- font-weight: 700;
1390
- color: var(--tbox-text-primary, #202124);
1391
- }
1392
-
1393
- /* 门店列表 */
1394
- .sg-rm-list {
1395
- margin: 10px 0 0;
1396
- padding: 0;
1397
- list-style: none;
1398
- display: flex;
1399
- flex-direction: column;
1400
- gap: 0;
1401
- }
1402
- .sg-rm-item {
1403
- padding: 20px 0;
1404
- border-bottom: 1px solid var(--sg-border);
1405
- }
1406
- .sg-rm-item:last-child {
1407
- border-bottom: 0;
1408
- }
1409
-
1410
- /* 门店头部:大图 + 信息 */
1411
- .sg-rm-item-head {
1412
- display: flex;
1413
- align-items: flex-start;
1414
- gap: 18px;
1415
- width: 100%;
1416
- padding: 0;
1417
- border: 0;
1418
- background: transparent;
1419
- color: inherit;
1420
- text-align: left;
1421
- cursor: pointer;
1422
- }
1423
- .sg-rm-item-head:focus-visible {
1424
- outline: 3px solid rgba(9, 107, 250, 0.28);
1425
- outline-offset: 6px;
1426
- border-radius: 12px;
1427
- }
1428
- .sg-rm-item-image {
1429
- flex: 0 0 96px;
1430
- width: 96px;
1431
- height: 96px;
1432
- border-radius: 18px;
1433
- object-fit: cover;
1434
- background: var(--sg-bg-subtle);
1435
- }
1436
- .sg-rm-item-meta {
1437
- flex: 1;
1438
- min-width: 0;
1439
- display: flex;
1440
- flex-direction: column;
1441
- gap: 6px;
1442
- }
1443
- .sg-rm-item-name-row {
1444
- display: flex;
1445
- align-items: center;
1446
- justify-content: space-between;
1447
- gap: 8px;
1448
- }
1449
- .sg-rm-item-name {
1450
- font-size: 27px;
1451
- font-weight: 600;
1452
- color: var(--tbox-text-primary, #202124);
1453
- white-space: nowrap;
1454
- overflow: hidden;
1455
- text-overflow: ellipsis;
1456
- }
1457
- .sg-rm-item-caret {
1458
- flex: 0 0 auto;
1459
- color: var(--sg-text-3);
1460
- }
1461
- .sg-rm-item-cats {
1462
- font-size: 22px;
1463
- color: var(--sg-text-2);
1464
- }
1465
- .sg-rm-item-location {
1466
- display: flex;
1467
- align-items: center;
1468
- gap: 6px;
1469
- font-size: 22px;
1470
- color: var(--sg-text-2);
1471
- }
1472
- .sg-rm-item-location svg {
1473
- flex: 0 0 auto;
1474
- color: var(--sg-accent);
1475
- }
1476
- .sg-rm-item-floor {
1477
- display: inline-flex;
1478
- align-items: center;
1479
- padding: 2px 12px;
1480
- border-radius: 999px;
1481
- background: var(--sg-bg-subtle);
1482
- font-size: 22px;
1483
- color: var(--sg-text-2);
1484
- }
1485
-
1486
- /* 评分 / 人均 / 营业状态 */
1487
- .sg-rm-item-stats {
1488
- display: flex;
1489
- align-items: center;
1490
- flex-wrap: wrap;
1491
- gap: 8px;
1492
- margin-top: 6px;
1493
- }
1494
- .sg-rm-item-rating {
1495
- font-size: 22px;
1496
- color: #f5a623;
1497
- font-weight: 600;
1498
- }
1499
- .sg-rm-item-avg-spend {
1500
- font-size: 22px;
1501
- color: var(--sg-text-2);
1502
- }
1503
-
1504
- /* ===== 门店详情半屏 ===== */
1505
- .sg-shop-sheet {
1506
- position: fixed;
1507
- inset: 0;
1508
- /* 60 对齐神券 .promotion-sheet:低于 Toast 默认 1000,领取反馈不被浮层盖住
1509
- (曾用 1100 盖住 Toast——修复依赖模板 global.less 同步不可靠,改在模块层定死) */
1510
- z-index: 60;
1511
- color: var(--tbox-text-primary, #202124);
1512
- }
1513
- .sg-shop-sheet,
1514
- .sg-shop-sheet *,
1515
- .sg-shop-sheet *::before,
1516
- .sg-shop-sheet *::after {
1517
- box-sizing: border-box;
1518
- }
1519
- .sg-shop-sheet__mask {
1520
- position: absolute;
1521
- inset: 0;
1522
- background: rgba(18, 21, 19, 0.52);
1523
- backdrop-filter: blur(4px);
1524
- }
1525
- .sg-shop-sheet__panel {
1526
- position: absolute;
1527
- bottom: 0;
1528
- left: 50%;
1529
- display: flex;
1530
- flex-direction: column;
1531
- width: min(100%, 750px);
1532
- max-height: 84vh;
1533
- overflow: hidden;
1534
- border-radius: 36px 36px 0 0;
1535
- background: #fff;
1536
- box-shadow: 0 -16px 48px rgba(24, 31, 27, 0.18);
1537
- transform: translateX(-50%);
1538
- animation: sg-shop-sheet-in 240ms cubic-bezier(0.22, 0.72, 0.24, 1) both;
1539
- }
1540
- .sg-shop-sheet__handle {
1541
- flex-shrink: 0;
1542
- align-self: center;
1543
- width: 72px;
1544
- height: 8px;
1545
- margin-top: 16px;
1546
- border-radius: 999px;
1547
- background: #d9dcd9;
1548
- }
1549
- .sg-shop-sheet__header {
1550
- display: flex;
1551
- flex-shrink: 0;
1552
- align-items: center;
1553
- padding: 16px 28px 18px 32px;
1554
- border-bottom: 1px solid var(--sg-border);
1555
- }
1556
- .sg-shop-sheet__header h2 {
1557
- flex: 1;
1558
- margin: 0;
1559
- color: #262c28;
1560
- font-size: 30px;
1561
- font-weight: 700;
1562
- line-height: 44px;
1563
- }
1564
- .sg-shop-sheet__close {
1565
- display: flex;
1566
- flex: 0 0 56px;
1567
- align-items: center;
1568
- justify-content: center;
1569
- width: 56px;
1570
- height: 56px;
1571
- padding: 0;
1572
- border: 0;
1573
- border-radius: 50%;
1574
- background: #f2f4f1;
1575
- color: #4f5751;
1576
- }
1577
- .sg-shop-sheet__close:focus-visible {
1578
- outline: 3px solid rgba(9, 107, 250, 0.28);
1579
- outline-offset: 2px;
1580
- }
1581
- .sg-shop-sheet__body {
1582
- flex: 1;
1583
- min-height: 0;
1584
- overflow-y: auto;
1585
- padding: 0 32px calc(40px + env(safe-area-inset-bottom));
1586
- -webkit-overflow-scrolling: touch;
1587
- }
1588
- .sg-shop-sheet__body::-webkit-scrollbar {
1589
- display: none;
1590
- }
1591
- .sg-shop-sheet__cover {
1592
- display: block;
1593
- width: 100%;
1594
- height: 320px;
1595
- margin-top: 24px;
1596
- border-radius: 24px;
1597
- object-fit: cover;
1598
- }
1599
- .sg-shop-sheet__identity {
1600
- display: flex;
1601
- align-items: center;
1602
- gap: 18px;
1603
- margin-top: 28px;
1604
- }
1605
- .sg-shop-sheet__logo {
1606
- flex: 0 0 104px;
1607
- width: 104px;
1608
- height: 104px;
1609
- border-radius: 22px;
1610
- object-fit: cover;
1611
- background: #f2f4f1;
1612
- }
1613
- .sg-shop-sheet__identity-copy {
1614
- flex: 1;
1615
- min-width: 0;
1616
- }
1617
- .sg-shop-sheet__name-row {
1618
- display: flex;
1619
- align-items: center;
1620
- gap: 12px;
1621
- }
1622
- .sg-shop-sheet__name-row h3 {
1623
- flex: 1;
1624
- min-width: 0;
1625
- margin: 0;
1626
- overflow: hidden;
1627
- color: #262c28;
1628
- font-size: 32px;
1629
- font-weight: 700;
1630
- line-height: 44px;
1631
- text-overflow: ellipsis;
1632
- white-space: nowrap;
1633
- }
1634
- .sg-shop-sheet__identity-copy p {
1635
- margin: 6px 0 0;
1636
- color: var(--sg-text-2);
1637
- font-size: 23px;
1638
- line-height: 34px;
1639
- }
1640
- .sg-shop-sheet__stats {
1641
- display: flex;
1642
- flex-wrap: wrap;
1643
- align-items: center;
1644
- gap: 8px 18px;
1645
- margin-top: 20px;
1646
- color: var(--sg-text-2);
1647
- font-size: 23px;
1648
- }
1649
- .sg-shop-sheet__rating {
1650
- display: inline-flex;
1651
- align-items: center;
1652
- gap: 5px;
1653
- color: #ef8e24;
1654
- font-weight: 700;
1655
- }
1656
- .sg-shop-sheet__facts {
1657
- display: flex;
1658
- flex-direction: column;
1659
- gap: 18px;
1660
- margin-top: 28px;
1661
- padding: 24px;
1662
- border-radius: 22px;
1663
- background: #f7f8f6;
1664
- }
1665
- .sg-shop-sheet__facts > div {
1666
- display: flex;
1667
- align-items: flex-start;
1668
- gap: 12px;
1669
- color: #555d57;
1670
- font-size: 24px;
1671
- line-height: 34px;
1672
- }
1673
- .sg-shop-sheet__facts svg {
1674
- flex-shrink: 0;
1675
- margin-top: 3px;
1676
- color: #738176;
1677
- }
1678
- .sg-shop-sheet__facts a {
1679
- color: #39483d;
1680
- text-decoration: none;
1681
- }
1682
- .sg-shop-sheet__description {
1683
- margin: 26px 0 0;
1684
- color: #555d57;
1685
- font-size: 25px;
1686
- line-height: 40px;
1687
- }
1688
- .sg-shop-sheet__services {
1689
- display: flex;
1690
- flex-wrap: wrap;
1691
- gap: 10px;
1692
- margin-top: 24px;
1693
- }
1694
- .sg-shop-sheet__services span {
1695
- padding: 7px 16px;
1696
- border: 1px solid #e1e5e1;
1697
- border-radius: 999px;
1698
- color: #626b64;
1699
- background: #fff;
1700
- font-size: 22px;
1701
- }
1702
- .sg-shop-sheet__actions {
1703
- display: flex;
1704
- gap: 12px;
1705
- margin-top: 30px;
1706
- }
1707
- .sg-shop-sheet__action {
1708
- display: inline-flex;
1709
- flex: 1;
1710
- align-items: center;
1711
- justify-content: center;
1712
- min-height: 72px;
1713
- padding: 0 24px;
1714
- border: 0;
1715
- border-radius: 18px;
1716
- background: #313833;
1717
- color: #fff;
1718
- font-size: 25px;
1719
- font-weight: 600;
1720
- }
1721
- .sg-shop-sheet__action:disabled {
1722
- opacity: 0.48;
1723
- }
1724
-
1725
- @keyframes sg-shop-sheet-in {
1726
- from { transform: translate(-50%, 24px); opacity: 0; }
1727
- to { transform: translate(-50%, 0); opacity: 1; }
1728
- }
1729
-
1730
- @keyframes sg-shop-sheet-out {
1731
- from { opacity: 1; }
1732
- to { opacity: 0; }
1733
- }
1734
-
1735
- @keyframes sg-shop-sheet-down {
1736
- from { transform: translate(-50%, 0); }
1737
- to { transform: translate(-50%, 100%); }
1738
- }
1739
-
1740
- .sg-shop-sheet--closing,
1741
- .sg-store-list-sheet--closing {
1742
- pointer-events: none;
1743
- animation: sg-shop-sheet-out 180ms ease-in both;
1744
- }
1745
-
1746
- .sg-shop-sheet--closing .sg-shop-sheet__panel,
1747
- .sg-store-list-sheet--closing .sg-store-list-sheet__panel {
1748
- animation: sg-shop-sheet-down 180ms ease-in both;
1749
- }
1750
-
1751
- @media (prefers-reduced-motion: reduce) {
1752
- .sg-shop-sheet,
1753
- .sg-store-list-sheet,
1754
- .sg-shop-sheet__panel,
1755
- .sg-shop-sheet--closing .sg-shop-sheet__panel,
1756
- .sg-store-list-sheet--closing .sg-store-list-sheet__panel {
1757
- animation-duration: 1ms;
1758
- }
1759
- }
1760
-
1761
- /* ===== 门店导览截图对齐 v3:紧凑主卡 + 列表半屏 + 信息型详情半屏 ===== */
1762
- .sg-recommend-merchants {
1763
- overflow: hidden;
1764
- padding: 0 24px 24px;
1765
- border-radius: 28px;
1766
- }
1767
- .sg-recommend-merchants .sg-rm-header {
1768
- position: relative;
1769
- min-height: 154px;
1770
- margin: 0 -24px;
1771
- overflow: hidden;
1772
- padding: 30px 28px;
1773
- border-radius: 0;
1774
- background: #f9f0df;
1775
- }
1776
- /* 门店导览头图(主题品牌资产轨 A1 级联修复):img 层转伪元素背景;
1777
- 元素只消费不声明(声明截断主题覆写继承),兜底 = 中立渐变(零品牌资产——B2),
1778
- 主题包经 html[data-theme] 段覆写 --tbox-asset-sg-header */
1779
- .sg-rm-header::after {
1780
- content: '';
1781
- position: absolute;
1782
- inset: 0 0 0 auto;
1783
- width: 62%;
1784
- height: 100%;
1785
- background-image: var(--tbox-asset-sg-header, linear-gradient(135deg, #f9f0df, #f3e5cd));
1786
- background-size: cover;
1787
- background-position: right center;
1788
- opacity: 0.9;
1789
- pointer-events: none;
1790
- }
1791
- .sg-recommend-merchants .sg-rm-header-copy {
1792
- position: relative;
1793
- z-index: 1;
1794
- max-width: 66%;
1795
- gap: 10px;
1796
- }
1797
- .sg-rm-header-title-row {
1798
- display: flex;
1799
- align-items: center;
1800
- gap: 10px;
1801
- color: #2f3a22;
1802
- }
1803
- .sg-recommend-merchants .sg-rm-header-title {
1804
- color: #2f3a22;
1805
- font-size: 32px;
1806
- line-height: 42px;
1807
- }
1808
- .sg-recommend-merchants .sg-rm-header-subtitle {
1809
- overflow: hidden;
1810
- color: #626b5c;
1811
- font-size: 22px;
1812
- line-height: 32px;
1813
- text-overflow: ellipsis;
1814
- white-space: nowrap;
1815
- }
1816
- .sg-rm-header-badge {
1817
- position: absolute;
1818
- z-index: 2;
1819
- top: 24px;
1820
- right: 22px;
1821
- padding: 7px 14px;
1822
- border: 1px solid rgba(57, 76, 43, 0.14);
1823
- border-radius: 999px;
1824
- color: #526a35;
1825
- background: rgba(255, 255, 255, 0.72);
1826
- font-size: 18px;
1827
- line-height: 26px;
1828
- }
1829
- .sg-recommend-merchants .sg-rm-tabs {
1830
- margin: 18px 0 0;
1831
- }
1832
- .sg-recommend-merchants .sg-rm-tab {
1833
- font-size: 25px;
1834
- }
1835
- .sg-recommend-merchants .sg-rm-section-label {
1836
- justify-content: flex-start;
1837
- gap: 14px;
1838
- margin-top: 28px;
1839
- font-size: 28px;
1840
- }
1841
- .sg-recommend-merchants .sg-rm-list {
1842
- margin-top: 8px;
1843
- }
1844
- .sg-recommend-merchants .sg-rm-item {
1845
- padding: 20px 0;
1846
- border-bottom: 0;
1847
- }
1848
- /*
1849
- * 门店行的唯一一份内部视觉,挂在 .sg-merchant-row 上而非某个卡片容器下——
1850
- * 这些规则原先限定在 .sg-recommend-merchants 里,门店列表半屏拿不到,
1851
- * 于是半屏另写了一套 .sg-store-list-sheet__* 的行样式,两边就此长歪。
1852
- * 现在三处列表共用 MerchantRow 组件与这一段;外层容器只负责各自的边框/底色/间距。
1853
- */
1854
- .sg-merchant-row {
1855
- gap: 18px;
1856
- }
1857
- .sg-merchant-row .sg-rm-item-image {
1858
- flex-basis: 136px;
1859
- width: 136px;
1860
- height: 136px;
1861
- border-radius: 18px;
1862
- object-fit: contain;
1863
- background: var(--tbox-bg-card);
1864
- }
1865
- .sg-merchant-row .sg-rm-item-meta {
1866
- gap: 8px;
1867
- }
1868
- .sg-merchant-row .sg-rm-item-name {
1869
- font-size: 28px;
1870
- line-height: 38px;
1871
- }
1872
- /* 业态标签行:与此前状态胶囊同一规格(2/10 内边距 + 7 圆角 + 20 字号),
1873
- 纯底色无描边——与券行标签、门店导览其余胶囊同一手法。 */
1874
- .sg-merchant-row .sg-rm-item-tags {
1875
- display: flex;
1876
- gap: 8px;
1877
- overflow: hidden;
1878
- }
1879
- .sg-merchant-row .sg-rm-item-tag {
1880
- flex-shrink: 0;
1881
- max-width: 160px;
1882
- overflow: hidden;
1883
- padding: 2px 10px;
1884
- border-radius: 7px;
1885
- color: var(--sg-neutral-badge-ink);
1886
- background: var(--sg-neutral-badge-bg);
1887
- font-size: 20px;
1888
- line-height: 28px;
1889
- text-overflow: ellipsis;
1890
- white-space: nowrap;
1891
- }
1892
- .sg-merchant-row .sg-rm-item-stats {
1893
- margin-top: 0;
1894
- }
1895
- .sg-merchant-row .sg-rm-item-rating {
1896
- display: inline-flex;
1897
- align-items: center;
1898
- gap: 4px;
1899
- }
1900
- .sg-merchant-row .sg-rm-item-location {
1901
- gap: 8px;
1902
- overflow: hidden;
1903
- font-size: 21px;
1904
- line-height: 30px;
1905
- white-space: nowrap;
1906
- }
1907
- .sg-merchant-row .sg-rm-item-location > span {
1908
- overflow: hidden;
1909
- text-overflow: ellipsis;
1910
- }
1911
- /* 位置行退居第三行,图标改灰:位置是辅助信息,不再用强调色抢标签的视觉优先级。 */
1912
- .sg-merchant-row .sg-rm-item-location svg {
1913
- color: var(--sg-text-3);
1914
- }
1915
- .sg-rm-view-all {
1916
- display: flex;
1917
- align-items: center;
1918
- justify-content: center;
1919
- gap: 4px;
1920
- width: 100%;
1921
- min-height: 64px;
1922
- margin-top: 4px;
1923
- padding: 0;
1924
- border: 0;
1925
- background: transparent;
1926
- color: #686d69;
1927
- font-size: 24px;
1928
- cursor: pointer;
1929
- }
1930
- .sg-rm-view-all:focus-visible {
1931
- outline: 3px solid rgba(9, 107, 250, 0.28);
1932
- outline-offset: 2px;
1933
- border-radius: 10px;
1934
- }
1935
-
1936
- .sg-store-list-sheet {
1937
- position: fixed;
1938
- inset: 0;
1939
- /* 60 对齐 .sg-shop-sheet/.promotion-sheet:同层叠底,其上叠开的门店详情靠 DOM 后挂载序压顶 */
1940
- z-index: 60;
1941
- color: var(--tbox-text-primary, #202124);
1942
- }
1943
- .sg-store-list-sheet,
1944
- .sg-store-list-sheet *,
1945
- .sg-store-list-sheet *::before,
1946
- .sg-store-list-sheet *::after {
1947
- box-sizing: border-box;
1948
- }
1949
- .sg-store-list-sheet__mask {
1950
- position: absolute;
1951
- inset: 0;
1952
- background: rgba(18, 21, 19, 0.52);
1953
- -webkit-backdrop-filter: blur(4px);
1954
- backdrop-filter: blur(4px);
1955
- }
1956
- .sg-store-list-sheet__panel {
1957
- position: absolute;
1958
- bottom: 0;
1959
- left: 50%;
1960
- display: flex;
1961
- flex-direction: column;
1962
- width: min(100%, 750px);
1963
- height: 86vh;
1964
- max-height: 86vh;
1965
- overflow: hidden;
1966
- border-radius: 36px 36px 0 0;
1967
- background: #fff;
1968
- box-shadow: 0 -16px 48px rgba(24, 31, 27, 0.18);
1969
- transform: translateX(-50%);
1970
- animation: sg-shop-sheet-in 240ms cubic-bezier(0.22, 0.72, 0.24, 1) both;
1971
- }
1972
- .sg-store-list-sheet__header {
1973
- display: flex;
1974
- flex-shrink: 0;
1975
- align-items: center;
1976
- padding: 26px 28px 18px 32px;
1977
- }
1978
- .sg-store-list-sheet__header h2 {
1979
- display: flex;
1980
- flex: 1;
1981
- align-items: center;
1982
- gap: 10px;
1983
- margin: 0;
1984
- font-size: 30px;
1985
- line-height: 44px;
1986
- }
1987
- .sg-store-list-sheet__close,
1988
- .sg-shop-sheet__close {
1989
- display: flex;
1990
- flex: 0 0 56px;
1991
- align-items: center;
1992
- justify-content: center;
1993
- width: 56px;
1994
- height: 56px;
1995
- padding: 0;
1996
- border: 0;
1997
- border-radius: 50%;
1998
- background: transparent;
1999
- color: #343936;
2000
- }
2001
- .sg-store-list-sheet__close:focus-visible,
2002
- .sg-shop-sheet__close:focus-visible {
2003
- outline: 3px solid rgba(9, 107, 250, 0.28);
2004
- outline-offset: 2px;
2005
- }
2006
- .sg-store-list-sheet__tabs {
2007
- display: grid;
2008
- flex-shrink: 0;
2009
- grid-template-columns: repeat(2, minmax(0, 1fr));
2010
- gap: 12px;
2011
- padding: 0 32px 20px;
2012
- }
2013
- .sg-store-list-sheet__tabs button {
2014
- display: flex;
2015
- align-items: center;
2016
- justify-content: center;
2017
- gap: 8px;
2018
- min-height: 64px;
2019
- padding: 10px 14px;
2020
- border: 1px solid #e3e5e2;
2021
- border-radius: 14px;
2022
- background: #fff;
2023
- color: #3d423f;
2024
- font: inherit;
2025
- font-size: 23px;
2026
- }
2027
- .sg-store-list-sheet__tabs button.is-active {
2028
- border-color: #292c2f;
2029
- background: #292c2f;
2030
- color: #fff;
2031
- }
2032
- .sg-store-list-sheet__body {
2033
- flex: 1;
2034
- min-height: 0;
2035
- overflow-y: auto;
2036
- padding: 0 32px calc(36px + env(safe-area-inset-bottom));
2037
- -webkit-overflow-scrolling: touch;
2038
- }
2039
- .sg-store-list-sheet__body::-webkit-scrollbar {
2040
- display: none;
2041
- }
2042
- .sg-store-list-sheet__list {
2043
- display: flex;
2044
- flex-direction: column;
2045
- gap: 6px;
2046
- margin: 0;
2047
- padding: 0;
2048
- list-style: none;
2049
- }
2050
- .sg-store-list-sheet__item {
2051
- display: flex;
2052
- gap: 18px;
2053
- width: 100%;
2054
- min-height: 240px;
2055
- padding: 14px 0;
2056
- border: 0;
2057
- background: #fff;
2058
- color: inherit;
2059
- font: inherit;
2060
- text-align: left;
2061
- cursor: pointer;
2062
- }
2063
- .sg-store-list-sheet__item:focus-visible {
2064
- outline: 3px solid rgba(9, 107, 250, 0.28);
2065
- outline-offset: 3px;
2066
- border-radius: 16px;
2067
- }
2068
- .sg-store-list-sheet__empty {
2069
- padding: 80px 20px;
2070
- color: var(--sg-text-2);
2071
- text-align: center;
2072
- font-size: 24px;
2073
- }
2074
-
2075
- .sg-shop-sheet__panel {
2076
- height: 86vh;
2077
- max-height: 86vh;
2078
- }
2079
- .sg-shop-sheet__header {
2080
- padding: 26px 28px 18px 32px;
2081
- }
2082
- .sg-shop-sheet__body {
2083
- padding: 0 32px calc(38px + env(safe-area-inset-bottom));
2084
- }
2085
- .sg-shop-sheet__cover {
2086
- height: 300px;
2087
- margin-top: 10px;
2088
- border-radius: 20px;
2089
- }
2090
- .sg-shop-sheet__identity {
2091
- align-items: flex-start;
2092
- margin-top: 28px;
2093
- }
2094
- .sg-shop-sheet__identity-copy {
2095
- min-width: 0;
2096
- }
2097
- .sg-shop-sheet__name-row h3 {
2098
- font-size: 34px;
2099
- line-height: 46px;
2100
- }
2101
- .sg-shop-sheet__stats {
2102
- gap: 10px 18px;
2103
- margin-top: 10px;
2104
- font-size: 22px;
2105
- }
2106
- .sg-shop-sheet__phone {
2107
- display: flex;
2108
- flex: 0 0 78px;
2109
- align-items: center;
2110
- justify-content: center;
2111
- flex-direction: column;
2112
- gap: 4px;
2113
- width: 78px;
2114
- min-height: 78px;
2115
- border-radius: 50%;
2116
- background: #f6f8fb;
2117
- color: #2f3539;
2118
- font-size: 18px;
2119
- text-decoration: none;
2120
- }
2121
- .sg-shop-sheet__phone-skeleton {
2122
- display: block;
2123
- flex: 0 0 78px;
2124
- width: 78px;
2125
- height: 78px;
2126
- border-radius: 50%;
2127
- background: #eef0ee;
2128
- animation: sg-shop-sheet-skeleton 1.4s ease-in-out infinite;
2129
- }
2130
- .sg-shop-sheet__skeleton {
2131
- display: block;
2132
- border-radius: 999px;
2133
- background: #eef0ee;
2134
- animation: sg-shop-sheet-skeleton 1.4s ease-in-out infinite;
2135
- }
2136
- .sg-shop-sheet__skeleton--status {
2137
- width: 92px;
2138
- height: 36px;
2139
- }
2140
- .sg-shop-sheet__facts {
2141
- gap: 10px;
2142
- margin-top: 20px;
2143
- padding: 0;
2144
- border-radius: 0;
2145
- background: transparent;
2146
- }
2147
- .sg-shop-sheet__facts > div {
2148
- align-items: center;
2149
- gap: 8px;
2150
- color: #858b87;
2151
- font-size: 22px;
2152
- line-height: 32px;
2153
- }
2154
- .sg-shop-sheet__facts > div:first-child {
2155
- flex-wrap: wrap;
2156
- }
2157
- .sg-shop-sheet__facts svg {
2158
- margin-top: 0;
2159
- color: #2979ff;
2160
- }
2161
- .sg-shop-sheet__location {
2162
- color: #2979ff;
2163
- }
2164
- .sg-shop-sheet__facts > .sg-shop-sheet__facts-skeleton {
2165
- display: flex;
2166
- width: 100%;
2167
- align-items: stretch;
2168
- flex-direction: column;
2169
- gap: 12px;
2170
- }
2171
- .sg-shop-sheet__skeleton--fact {
2172
- width: 72%;
2173
- height: 24px;
2174
- }
2175
- .sg-shop-sheet__skeleton--fact-short {
2176
- width: 48%;
2177
- height: 24px;
2178
- }
2179
- .sg-shop-sheet__details-skeleton {
2180
- display: flex;
2181
- flex-direction: column;
2182
- gap: 14px;
2183
- margin-top: 24px;
2184
- }
2185
- .sg-shop-sheet__skeleton--detail-line {
2186
- width: 88%;
2187
- height: 24px;
2188
- }
2189
- .sg-shop-sheet__skeleton--detail-line-short {
2190
- width: 62%;
2191
- height: 24px;
2192
- }
2193
- .sg-shop-sheet__skeleton--detail-block {
2194
- width: 100%;
2195
- height: 104px;
2196
- border-radius: 18px;
2197
- }
2198
- .sg-shop-sheet__description {
2199
- margin-top: 24px;
2200
- color: #666d68;
2201
- font-size: 23px;
2202
- line-height: 36px;
2203
- }
2204
- @keyframes sg-shop-sheet-skeleton {
2205
- 0%, 100% { opacity: 0.55; }
2206
- 50% { opacity: 1; }
2207
- }
2208
-
2209
- @media (prefers-reduced-motion: reduce) {
2210
- .sg-store-list-sheet__panel {
2211
- animation-duration: 1ms;
2212
- }
2213
- .sg-shop-sheet__skeleton,
2214
- .sg-shop-sheet__phone-skeleton {
2215
- animation: none;
2216
- }
2217
- }
2218
-
2219
- /* ===== 门店导览 v4:搜索 + 左侧业态 + 门店列表的半屏浮层 ===== */
2220
- .sg-visually-hidden {
2221
- position: absolute;
2222
- width: 1px;
2223
- height: 1px;
2224
- overflow: hidden;
2225
- clip: rect(0 0 0 0);
2226
- clip-path: inset(50%);
2227
- white-space: nowrap;
2228
- }
2229
- .sg-store-list-sheet__panel {
2230
- width: min(100%, 750px);
2231
- height: 86vh;
2232
- max-height: 86vh;
2233
- }
2234
- .sg-store-list-sheet__header {
2235
- min-height: 104px;
2236
- padding: 18px 24px 10px 36px;
2237
- }
2238
- .sg-store-list-sheet__header h2 {
2239
- justify-content: center;
2240
- /* 与关闭按钮等宽,标题才真正居中。 */
2241
- padding-left: 56px;
2242
- font-size: 36px;
2243
- line-height: 48px;
2244
- }
2245
- /* 图标由 38 收到 20(phosphor 的 size 走 SVG 属性、不转 rem,原值是实打实的 38 物理像素,
2246
- 比同处的 18px 标题还大一圈),容器同步收一档。 */
2247
- .sg-store-list-sheet__close {
2248
- flex-basis: 56px;
2249
- width: 56px;
2250
- height: 56px;
2251
- }
2252
- .sg-store-list-sheet__search {
2253
- display: flex;
2254
- flex-shrink: 0;
2255
- align-items: center;
2256
- gap: 14px;
2257
- min-height: 76px;
2258
- margin: 4px 30px 18px;
2259
- padding: 0 22px;
2260
- border-radius: 18px;
2261
- background: #f2f3f2;
2262
- color: #777d79;
2263
- }
2264
- .sg-store-list-sheet__search input {
2265
- flex: 1;
2266
- min-width: 0;
2267
- height: 68px;
2268
- padding: 0;
2269
- border: 0;
2270
- outline: 0;
2271
- background: transparent;
2272
- color: #242724;
2273
- font: inherit;
2274
- font-size: 28px;
2275
- appearance: none;
2276
- }
2277
- .sg-store-list-sheet__search input::-webkit-search-cancel-button {
2278
- display: none;
2279
- }
2280
- .sg-store-list-sheet__search input::placeholder {
2281
- color: #a7aba8;
2282
- }
2283
- .sg-store-list-sheet__search:focus-within {
2284
- box-shadow: 0 0 0 3px rgba(45, 98, 69, 0.16);
2285
- }
2286
- .sg-store-list-sheet__search button {
2287
- display: flex;
2288
- flex: 0 0 48px;
2289
- align-items: center;
2290
- justify-content: center;
2291
- width: 48px;
2292
- height: 48px;
2293
- padding: 0;
2294
- border: 0;
2295
- border-radius: 50%;
2296
- background: #dadeda;
2297
- color: #5f6561;
2298
- }
2299
- .sg-store-list-sheet__content {
2300
- position: relative;
2301
- display: grid;
2302
- flex: 1;
2303
- min-height: 0;
2304
- grid-template-columns: 164px minmax(0, 1fr);
2305
- overflow: hidden;
2306
- border-top: 1px solid #f0f1ef;
2307
- }
2308
- .sg-store-list-sheet__categories {
2309
- display: flex;
2310
- min-height: 0;
2311
- overflow-y: auto;
2312
- flex-direction: column;
2313
- padding: 14px 0 calc(44px + env(safe-area-inset-bottom));
2314
- background: #f5f6f7;
2315
- scrollbar-width: none;
2316
- }
2317
- .sg-store-list-sheet__categories::-webkit-scrollbar {
2318
- display: none;
2319
- }
2320
- .sg-store-list-sheet__categories button {
2321
- position: relative;
2322
- flex: 0 0 auto;
2323
- min-height: 92px;
2324
- padding: 14px 18px;
2325
- border: 0;
2326
- background: transparent;
2327
- color: #4f5551;
2328
- font: inherit;
2329
- font-size: 27px;
2330
- line-height: 36px;
2331
- text-align: center;
2332
- }
2333
- .sg-store-list-sheet__categories button.is-active {
2334
- background: #fff;
2335
- color: #273c2d;
2336
- font-weight: 700;
2337
- }
2338
- .sg-store-list-sheet__categories button.is-active::before {
2339
- position: absolute;
2340
- top: 26px;
2341
- bottom: 26px;
2342
- left: 0;
2343
- width: 6px;
2344
- border-radius: 0 6px 6px 0;
2345
- background: #6c8753;
2346
- content: '';
2347
- }
2348
- .sg-store-list-sheet__categories button:focus-visible,
2349
- .sg-store-list-sheet__floors button:focus-visible {
2350
- z-index: 1;
2351
- outline: 3px solid rgba(45, 98, 69, 0.2);
2352
- outline-offset: -3px;
2353
- }
2354
- .sg-store-list-sheet__body {
2355
- min-width: 0;
2356
- padding: 0 24px calc(54px + env(safe-area-inset-bottom));
2357
- scroll-padding-top: 60px;
2358
- background: #f7f8f6;
2359
- }
2360
- .sg-store-list-sheet__count {
2361
- position: sticky;
2362
- z-index: 2;
2363
- top: 0;
2364
- margin: 0 -2px;
2365
- padding: 18px 2px 10px;
2366
- background: rgba(247, 248, 246, 0.96);
2367
- color: #939894;
2368
- font-size: 22px;
2369
- line-height: 30px;
2370
- }
2371
- .sg-store-list-sheet__list {
2372
- gap: 16px;
2373
- }
2374
- .sg-store-list-sheet__list > li {
2375
- scroll-margin-top: 64px;
2376
- border: 0;
2377
- }
2378
- /*
2379
- * 半屏里的行 = 共享的 .sg-merchant-row + 这一层卡片外壳(白底、圆角、投影、统一项高)。
2380
- * 行内部的图文结构与尺寸一律不在这里定义,改动请去 .sg-merchant-row。
2381
- * align-items:center 是必需的:min-height 高过「图片 + 内边距」,而图片有固定高度不会
2382
- * stretch、默认落在顶部,不居中的话每一项的图与文都会差着几像素错位。
2383
- */
2384
- .sg-store-list-sheet__item {
2385
- align-items: center;
2386
- /* 172 = 图片 136 + 上下内边距 36。原值 208 比这多出 36,短内容(两行)时图片上下
2387
- 各空出 18,正好是左右内边距的两倍,卡片看着上下松、左右紧。行数多到撑过图片时
2388
- 项高本就由内容决定,min-height 不参与,所以收到这个值不会让长内容项变挤。 */
2389
- min-height: 172px;
2390
- padding: 18px;
2391
- border-radius: 18px;
2392
- background: #fff;
2393
- box-shadow: 0 4px 16px rgba(34, 42, 37, 0.05);
2394
- }
2395
- .sg-store-list-sheet__item:disabled {
2396
- cursor: default;
2397
- opacity: 0.72;
2398
- }
2399
- .sg-store-list-sheet__empty {
2400
- padding: 128px 20px;
2401
- font-size: 26px;
2402
- }
2403
- .sg-store-list-sheet__floors {
2404
- position: absolute;
2405
- z-index: 3;
2406
- right: 8px;
2407
- bottom: calc(60px + env(safe-area-inset-bottom));
2408
- display: flex;
2409
- width: 70px;
2410
- overflow: hidden;
2411
- flex-direction: column;
2412
- padding: 8px 0;
2413
- border: 1px solid #eceeeb;
2414
- border-radius: 30px;
2415
- background: rgba(255, 255, 255, 0.95);
2416
- box-shadow: 0 6px 20px rgba(29, 36, 31, 0.12);
2417
- }
2418
- .sg-store-list-sheet__floors button {
2419
- min-height: 46px;
2420
- padding: 0 6px;
2421
- border: 0;
2422
- background: transparent;
2423
- color: #7c827e;
2424
- font: inherit;
2425
- font-size: 21px;
2426
- }
2427
- .sg-store-list-sheet__floors button.is-active {
2428
- color: #fff;
2429
- background: #30372f;
2430
- }
2431
-
2432
- @media (max-width: 700px) {
2433
- .sg-store-list-sheet__content {
2434
- grid-template-columns: 148px minmax(0, 1fr);
2435
- }
2436
- .sg-store-list-sheet__categories button {
2437
- padding-inline: 10px;
2438
- font-size: 25px;
2439
- }
2440
- .sg-store-list-sheet__body {
2441
- padding-inline: 18px;
2442
- }
2443
- /* 窄屏收图:挂在共享钩子上,三处列表一起收,不再只让半屏单独变。 */
2444
- .sg-merchant-row .sg-rm-item-image {
2445
- flex-basis: 140px;
2446
- width: 140px;
2447
- height: 140px;
2448
- }
2449
- }
2450
-
2451
- /* ===== 门店券行(2026-09-02:对齐 promotion-coupon-row 视觉——缩略图 + 主信息 + 右侧领取胶囊;
2452
- * 领取链路与优惠列表同源(promotion.acquire componentAction),本文件自持样式不跨模块引包) ===== */
2453
- /* 样式对齐神券行(2026-09-05 用户裁决,覆盖 09-04 卡片化/压缩形态):透明底 + 分割线 + min-height 154,
2454
- * 标题/副信息 2 行截断——逐字段与 promotion-coupon-row 同职责同形态 */
2455
- .sg-shop-sheet__coupon-list {
2456
- padding: 0;
2457
- background: transparent;
2458
- border-radius: 0;
2459
- }
2460
- .sg-shop-sheet__coupon-row {
2461
- position: relative;
2462
- display: grid;
2463
- grid-template-columns: 112px minmax(0, 1fr) auto;
2464
- gap: 0 16px;
2465
- align-items: center;
2466
- min-height: 154px;
2467
- padding: 18px 0;
2468
- border-top: 1px solid #f0f1f4;
2469
- background: transparent;
2470
- box-shadow: none;
2471
- margin-bottom: 0;
2472
- border-radius: 0;
2473
- overflow: hidden;
2474
- }
2475
- .sg-shop-sheet__coupon-row:first-child {
2476
- border-top: 0;
2477
- }
2478
- /* 右上角金色类型标签(useBusinessType → applicableCategories;2026-09-05 用户裁决:
2479
- * 金色渐变 #f9e2ac→#dabd88 + 字色 #746447,右上+左下 12px 角标形态(对齐同列缩略图 12px 圆角语言),
2480
- * 本文件自持样式不跨模块引包) */
2481
- .sg-shop-sheet__coupon-tag {
2482
- position: absolute;
2483
- top: 18px;
2484
- right: 0;
2485
- max-width: 40%;
2486
- overflow: hidden;
2487
- padding: 3px 10px;
2488
- border-radius: 0 12px 0 12px;
2489
- color: #746447;
2490
- background: linear-gradient(160deg, #f9e2ac 0%, #dabd88 100%);
2491
- font-size: 16px;
2492
- font-weight: 650;
2493
- line-height: 24px;
2494
- text-overflow: ellipsis;
2495
- white-space: nowrap;
2496
- }
2497
- .sg-shop-sheet__coupon-img {
2498
- width: 112px;
2499
- height: 112px;
2500
- border-radius: 12px;
2501
- box-shadow: inset 0 0 0 1px rgba(11, 15, 23, 0.04);
2502
- object-fit: cover;
2503
- flex-shrink: 0;
2504
- }
2505
- .sg-shop-sheet__coupon-body {
2506
- display: flex;
2507
- min-width: 0;
2508
- flex: 1;
2509
- flex-direction: column;
2510
- gap: 5px;
2511
- justify-content: center;
2512
- }
2513
- .sg-shop-sheet__coupon-name {
2514
- display: -webkit-box;
2515
- overflow: hidden;
2516
- color: rgba(11, 15, 23, 0.9);
2517
- font-size: 23px;
2518
- font-weight: 750;
2519
- line-height: 30px;
2520
- -webkit-box-orient: vertical;
2521
- -webkit-line-clamp: 2;
2522
- }
2523
- .sg-shop-sheet__coupon-price {
2524
- display: flex;
2525
- align-items: baseline;
2526
- gap: 8px;
2527
- margin-top: 2px;
2528
- }
2529
- .sg-shop-sheet__coupon-face {
2530
- color: #e8471c;
2531
- font-size: 26px;
2532
- font-weight: 800;
2533
- line-height: 32px;
2534
- }
2535
- /* 划线原价(对齐神券 price > s):免费券划面值、付费券划面值均用此角色 */
2536
- .sg-shop-sheet__coupon-face--strike {
2537
- overflow: hidden;
2538
- color: rgba(11, 15, 23, 0.38);
2539
- font-size: 17px;
2540
- text-decoration: line-through;
2541
- }
2542
- .sg-shop-sheet__coupon-free {
2543
- color: #e8471c;
2544
- font-size: 26px;
2545
- font-weight: 800;
2546
- line-height: 32px;
2547
- }
2548
- /* 次要信息行(对齐神券 sub 职责):可用时间文案(useWeekTime 解析),2 行截断 */
2549
- .sg-shop-sheet__coupon-sub {
2550
- display: -webkit-box;
2551
- overflow: hidden;
2552
- -webkit-box-orient: vertical;
2553
- -webkit-line-clamp: 2;
2554
- color: rgba(11, 15, 23, 0.55);
2555
- font-size: 17px;
2556
- line-height: 23px;
2557
- }
2558
- /* 米金实心胶囊(对齐 promotion-chip--coupon——动作与价格分色,橙红只留给价格) */
2559
- .sg-shop-sheet__coupon-claim {
2560
- min-width: 96px;
2561
- height: 64px;
2562
- padding: 0 15px;
2563
- border: 0;
2564
- border-radius: 999px;
2565
- background: linear-gradient(160deg, #c3ad78 0%, #a89058 100%);
2566
- color: #fff;
2567
- box-shadow: none;
2568
- font-size: 24px;
2569
- font-weight: 700;
2570
- letter-spacing: 1px;
2571
- flex-shrink: 0;
2572
- cursor: pointer;
2573
- }
2574
- .sg-shop-sheet__coupon-claim:hover:not(:disabled) {
2575
- background: linear-gradient(160deg, #b39d68 0%, #967f4a 100%);
2576
- }
2577
- .sg-shop-sheet__coupon-claim:disabled {
2578
- cursor: not-allowed;
2579
- opacity: 0.45;
2580
- }
2581
-
2582
- /* ===== shop-detail 卡面事实行(2026-09-02:营业时间/电话上卡面——此前只在浮层) ===== */
2583
- .sg-shop-detail__facts {
2584
- display: flex;
2585
- flex-wrap: wrap;
2586
- gap: 8px 20px;
2587
- padding: 0 24px 18px;
2588
- }
2589
- .sg-shop-detail__fact {
2590
- display: inline-flex;
2591
- align-items: center;
2592
- gap: 6px;
2593
- color: rgba(11, 15, 23, 0.72);
2594
- font-size: 20px;
2595
- line-height: 26px;
2596
- }
2597
- .sg-shop-detail__fact svg {
2598
- flex-shrink: 0;
2599
- color: rgba(35, 104, 236, 0.8);
2600
- }