@tbox.cn/app-module-shopping-guide 1.0.0-alpha.1 → 1.0.0-alpha.7

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,6 +1,3 @@
1
- // src/client/index.ts
2
- import "./shopping-guide-62BDCPW5.css";
3
-
4
1
  // src/client/cards/product-list/index.tsx
5
2
  import { useState as useState2 } from "react";
6
3
  import { createPortal } from "react-dom";
@@ -15,7 +12,7 @@ function ImageWithFallback(props) {
15
12
  const { src, alt, className, size = 40 } = props;
16
13
  const [failed, setFailed] = useState(false);
17
14
  if (!src || failed) {
18
- return /* @__PURE__ */ jsx("div", { className: `img-fallback ${className ?? ""}`.trim(), "aria-label": alt, role: "img", children: /* @__PURE__ */ jsx(ImageSquare, { weight: "duotone", size: Math.round(size * 0.45) }) });
15
+ return /* @__PURE__ */ jsx("div", { className: `img-fallback grid place-items-center text-[#c4c8ce] ${className ?? ""}`.trim(), "aria-label": alt, role: "img", children: /* @__PURE__ */ jsx(ImageSquare, { weight: "duotone", size: Math.round(size * 0.45) }) });
19
16
  }
20
17
  return /* @__PURE__ */ jsx(
21
18
  "img",
@@ -32,6 +29,14 @@ function ImageWithFallback(props) {
32
29
 
33
30
  // src/client/cards/product-list/index.tsx
34
31
  import { jsx as jsx2, jsxs } from "react/jsx-runtime";
32
+ var AVAILABILITY_BASE_CLASS = "sg-availability mt-1 inline-block text-xs text-secondary-foreground";
33
+ var AVAILABILITY_TONE_CLASS = {
34
+ in_stock: "sg-availability-in_stock text-success",
35
+ available: "sg-availability-available text-success",
36
+ out_of_stock: "sg-availability-out_of_stock text-warning",
37
+ limited: "sg-availability-limited",
38
+ unknown: "sg-availability-unknown"
39
+ };
35
40
  function ProductDetailSheet({
36
41
  item,
37
42
  cardId,
@@ -39,55 +44,55 @@ function ProductDetailSheet({
39
44
  onClose
40
45
  }) {
41
46
  return createPortal(
42
- /* @__PURE__ */ jsxs("div", { className: "sg-product-sheet", role: "dialog", "aria-modal": "true", "aria-label": item.name, children: [
43
- /* @__PURE__ */ jsx2("div", { className: "sg-product-sheet__mask", onClick: onClose }),
44
- /* @__PURE__ */ jsxs("div", { className: "sg-product-sheet__panel", children: [
45
- /* @__PURE__ */ jsxs("div", { className: "sg-product-sheet__header", children: [
46
- /* @__PURE__ */ jsx2("span", { className: "sg-product-sheet__title", children: "\u5546\u54C1\u8BE6\u60C5" }),
47
- /* @__PURE__ */ jsx2("button", { type: "button", className: "sg-product-sheet__close", onClick: onClose, "aria-label": "\u5173\u95ED", children: /* @__PURE__ */ jsx2(X, { size: 18 }) })
47
+ /* @__PURE__ */ jsxs("div", { className: "sg-product-sheet fixed inset-0 z-[1000] pb-[var(--tbox-chat-bottom-height,0px)]", role: "dialog", "aria-modal": "true", "aria-label": item.name, children: [
48
+ /* @__PURE__ */ jsx2("div", { className: "sg-product-sheet__mask fixed inset-0 bg-[rgba(11,15,23,0.5)]", onClick: onClose }),
49
+ /* @__PURE__ */ jsxs("div", { className: "sg-product-sheet__panel absolute inset-x-0 bottom-0 flex max-h-[calc(82vh-var(--tbox-chat-bottom-height,0px))] flex-col overflow-hidden rounded-t-[18px] bg-card shadow-[0_-6px_20px_rgba(11,15,23,0.12)]", children: [
50
+ /* @__PURE__ */ jsxs("div", { className: "sg-product-sheet__header flex shrink-0 items-center px-4 pt-4 pb-2.5", children: [
51
+ /* @__PURE__ */ jsx2("span", { className: "sg-product-sheet__title min-w-0 flex-1 text-base font-semibold text-foreground", children: "\u5546\u54C1\u8BE6\u60C5" }),
52
+ /* @__PURE__ */ jsx2("button", { type: "button", className: "sg-product-sheet__close flex size-7 shrink-0 items-center justify-center rounded-full border-0 bg-muted text-secondary-foreground", onClick: onClose, "aria-label": "\u5173\u95ED", children: /* @__PURE__ */ jsx2(X, { size: 18 }) })
48
53
  ] }),
49
- /* @__PURE__ */ jsxs("div", { className: "sg-product-sheet__body", children: [
54
+ /* @__PURE__ */ jsxs("div", { className: "sg-product-sheet__body overflow-y-auto px-4 pb-6", children: [
50
55
  item.imageUrl && /* @__PURE__ */ jsx2(
51
56
  ImageWithFallback,
52
57
  {
53
58
  src: item.imageUrl,
54
59
  alt: item.name,
55
- className: "sg-product-sheet__cover",
60
+ className: "sg-product-sheet__cover mb-3.5 block h-[180px] w-full max-w-full rounded-[12px] object-cover",
56
61
  size: 240
57
62
  }
58
63
  ),
59
- /* @__PURE__ */ jsxs("div", { className: "sg-product-sheet__main", children: [
60
- item.badges.length > 0 && /* @__PURE__ */ jsx2("div", { className: "sg-badges", children: item.badges.map((b) => /* @__PURE__ */ jsx2("span", { className: "sg-badge", children: b }, b)) }),
61
- /* @__PURE__ */ jsx2("div", { className: "sg-product-sheet__name", children: item.name }),
62
- item.brand && /* @__PURE__ */ jsx2("div", { className: "sg-product-sheet__brand", children: item.brand }),
63
- /* @__PURE__ */ jsxs("div", { className: "sg-product-sheet__price-row", children: [
64
- item.price.sale && /* @__PURE__ */ jsx2("span", { className: "sg-price-sale", children: item.price.sale.display }),
65
- item.price.original && item.price.sale && /* @__PURE__ */ jsx2("span", { className: "sg-price-original", children: item.price.original.display }),
66
- item.price.promotion && /* @__PURE__ */ jsx2("span", { className: "sg-price-promotion", children: item.price.promotion.display }),
67
- !item.price.sale && !item.price.original && !item.price.promotion && /* @__PURE__ */ jsx2("span", { className: "sg-price-unavailable", children: "\u4EF7\u683C\u6682\u65E0" })
64
+ /* @__PURE__ */ jsxs("div", { className: "sg-product-sheet__main pb-2", children: [
65
+ item.badges.length > 0 && /* @__PURE__ */ jsx2("div", { className: "sg-badges mb-1.5 flex flex-wrap gap-1.5", children: item.badges.map((b) => /* @__PURE__ */ jsx2("span", { className: "sg-badge rounded-[8px] bg-muted px-1.5 py-[0.5px] text-xs leading-4 text-secondary-foreground", children: b }, b)) }),
66
+ /* @__PURE__ */ jsx2("div", { className: "sg-product-sheet__name mt-1 text-lg leading-[26px] font-bold text-foreground", children: item.name }),
67
+ item.brand && /* @__PURE__ */ jsx2("div", { className: "sg-product-sheet__brand mt-[3px] text-sm text-muted-foreground", children: item.brand }),
68
+ /* @__PURE__ */ jsxs("div", { className: "sg-product-sheet__price-row mt-2 flex items-baseline gap-1.5", children: [
69
+ item.price.sale && /* @__PURE__ */ jsx2("span", { className: "sg-price-sale text-base font-bold tabular-nums text-[#ef4f43]", children: item.price.sale.display }),
70
+ item.price.original && item.price.sale && /* @__PURE__ */ jsx2("span", { className: "sg-price-original text-xs line-through text-muted-foreground", children: item.price.original.display }),
71
+ item.price.promotion && /* @__PURE__ */ jsx2("span", { className: "sg-price-promotion rounded-[8px] bg-[#fff1f3] px-1.5 py-[0.5px] text-xs leading-4 text-[#ef4f43]", children: item.price.promotion.display }),
72
+ !item.price.sale && !item.price.original && !item.price.promotion && /* @__PURE__ */ jsx2("span", { className: "sg-price-unavailable text-xs text-muted-foreground", children: "\u4EF7\u683C\u6682\u65E0" })
68
73
  ] }),
69
- /* @__PURE__ */ jsx2("div", { className: `sg-availability sg-availability-${item.availability.status}`, children: item.availability.label }),
70
- /* @__PURE__ */ jsxs("div", { className: "sg-product-sheet__merchant", children: [
74
+ /* @__PURE__ */ jsx2("div", { className: `${AVAILABILITY_BASE_CLASS} ${AVAILABILITY_TONE_CLASS[item.availability.status] ?? ""}`, children: item.availability.label }),
75
+ /* @__PURE__ */ jsxs("div", { className: "sg-product-sheet__merchant mt-1.5 text-sm text-secondary-foreground", children: [
71
76
  /* @__PURE__ */ jsx2("span", { children: item.merchant.name }),
72
- item.merchant.location?.displayText && /* @__PURE__ */ jsxs("span", { className: "sg-merchant-location", children: [
77
+ item.merchant.location?.displayText && /* @__PURE__ */ jsxs("span", { className: "sg-merchant-location mt-1 flex flex-wrap items-center gap-[3px] text-xs text-secondary-foreground", children: [
73
78
  " \xB7 ",
74
79
  item.merchant.location.displayText
75
80
  ] })
76
81
  ] }),
77
- item.reasons && item.reasons.length > 0 && /* @__PURE__ */ jsx2("div", { className: "sg-reasons", children: item.reasons.map((r) => /* @__PURE__ */ jsx2("span", { className: "sg-reason-tag", children: r.label }, r.code)) }),
78
- item.caveats.length > 0 && /* @__PURE__ */ jsx2("div", { className: "sg-item-caveats", children: item.caveats.map((c, i) => /* @__PURE__ */ jsxs("div", { className: "sg-caveat-item", children: [
82
+ item.reasons && item.reasons.length > 0 && /* @__PURE__ */ jsx2("div", { className: "sg-reasons mt-1.5 flex flex-wrap gap-1.5", children: item.reasons.map((r) => /* @__PURE__ */ jsx2("span", { className: "sg-reason-tag rounded-full bg-[#fff1f3] px-2 py-0.5 text-xs leading-4 text-[#ef4f43]", children: r.label }, r.code)) }),
83
+ item.caveats.length > 0 && /* @__PURE__ */ jsx2("div", { className: "sg-item-caveats mt-1.5", children: item.caveats.map((c, i) => /* @__PURE__ */ jsxs("div", { className: "sg-caveat-item text-xs leading-4 text-muted-foreground", children: [
79
84
  "\u26A0\uFE0F ",
80
85
  c
81
86
  ] }, i)) })
82
87
  ] }),
83
- item.availability.marketable && /* @__PURE__ */ jsx2("div", { className: "sg-product-sheet__actions", children: /* @__PURE__ */ jsx2(
88
+ item.availability.marketable && /* @__PURE__ */ jsx2("div", { className: "sg-product-sheet__actions mt-3 border-t-[0.5px] border-border pt-3", children: /* @__PURE__ */ jsx2(
84
89
  ItemActionsRow,
85
90
  {
86
91
  actions: item.itemActions,
87
92
  cardId,
88
93
  isHistory,
89
- className: "sg-product-sheet__action-row",
90
- chipClassName: "sg-product-sheet__chip"
94
+ className: "sg-product-sheet__action-row flex gap-2",
95
+ chipClassName: "sg-product-sheet__chip flex-1 rounded-[9px] border-0 bg-[#e54650] py-2.5 text-center text-sm font-medium text-white"
91
96
  }
92
97
  ) })
93
98
  ] })
@@ -99,12 +104,12 @@ function ProductDetailSheet({
99
104
  function ProductListCard(props) {
100
105
  const { data, cardId, isHistory } = props;
101
106
  const [activeItem, setActiveItem] = useState2(null);
102
- return /* @__PURE__ */ jsxs("section", { className: "sg-card sg-product-list", children: [
103
- data.summary && /* @__PURE__ */ jsx2("div", { className: "sg-card-summary", children: data.summary }),
104
- data.items.length === 0 ? /* @__PURE__ */ jsx2("div", { className: "sg-empty", children: data.noResultsReason ?? "\u6682\u65E0\u76F8\u5173\u5546\u54C1" }) : /* @__PURE__ */ jsx2("ul", { className: "sg-product-list-items", children: data.items.map((item) => /* @__PURE__ */ jsxs(
107
+ return /* @__PURE__ */ jsxs("section", { className: "sg-card sg-product-list p-5 text-foreground", children: [
108
+ data.summary && /* @__PURE__ */ jsx2("div", { className: "sg-card-summary mb-3 text-sm text-secondary-foreground", children: data.summary }),
109
+ data.items.length === 0 ? /* @__PURE__ */ jsx2("div", { className: "sg-empty py-6 text-center text-sm text-muted-foreground", children: data.noResultsReason ?? "\u6682\u65E0\u76F8\u5173\u5546\u54C1" }) : /* @__PURE__ */ jsx2("ul", { className: "sg-product-list-items m-0 list-none p-0", children: data.items.map((item) => /* @__PURE__ */ jsxs(
105
110
  "li",
106
111
  {
107
- className: "sg-product-item sg-product-item--clickable",
112
+ className: "sg-product-item sg-product-item--clickable flex cursor-pointer gap-3 border-b-[0.5px] border-border py-3 transition-colors duration-150 last:border-b-0 active:bg-muted",
108
113
  onClick: () => setActiveItem(item),
109
114
  role: "button",
110
115
  tabIndex: 0,
@@ -115,45 +120,45 @@ function ProductListCard(props) {
115
120
  {
116
121
  src: item.imageUrl,
117
122
  alt: item.name,
118
- className: "sg-product-image",
123
+ className: "sg-product-image size-20 shrink-0 max-w-full rounded-[8px] object-cover",
119
124
  size: 44
120
125
  }
121
126
  ),
122
- /* @__PURE__ */ jsxs("div", { className: "sg-product-info", children: [
123
- item.badges.length > 0 && /* @__PURE__ */ jsx2("div", { className: "sg-badges", children: item.badges.map((b) => /* @__PURE__ */ jsx2("span", { className: "sg-badge", children: b }, b)) }),
124
- /* @__PURE__ */ jsx2("div", { className: "sg-product-name", children: item.name }),
127
+ /* @__PURE__ */ jsxs("div", { className: "sg-product-info min-w-0 flex-1", children: [
128
+ item.badges.length > 0 && /* @__PURE__ */ jsx2("div", { className: "sg-badges mb-1.5 flex flex-wrap gap-1.5", children: item.badges.map((b) => /* @__PURE__ */ jsx2("span", { className: "sg-badge rounded-[8px] bg-muted px-1.5 py-[0.5px] text-xs leading-4 text-secondary-foreground", children: b }, b)) }),
129
+ /* @__PURE__ */ jsx2("div", { className: "sg-product-name text-base leading-[21px] font-semibold text-foreground", children: item.name }),
125
130
  item.brand && /* @__PURE__ */ jsx2("div", { className: "sg-product-brand", children: item.brand }),
126
- /* @__PURE__ */ jsxs("div", { className: "sg-price-block", children: [
127
- item.price.sale && /* @__PURE__ */ jsx2("span", { className: "sg-price-sale", children: item.price.sale.display }),
128
- item.price.original && item.price.sale && /* @__PURE__ */ jsx2("span", { className: "sg-price-original", children: item.price.original.display }),
129
- item.price.promotion && /* @__PURE__ */ jsx2("span", { className: "sg-price-promotion", children: item.price.promotion.display }),
130
- !item.price.sale && !item.price.original && !item.price.promotion && /* @__PURE__ */ jsx2("span", { className: "sg-price-unavailable", children: "\u4EF7\u683C\u6682\u65E0" })
131
+ /* @__PURE__ */ jsxs("div", { className: "sg-price-block mt-1 flex flex-wrap items-baseline gap-2", children: [
132
+ item.price.sale && /* @__PURE__ */ jsx2("span", { className: "sg-price-sale text-base font-bold tabular-nums text-[#ef4f43]", children: item.price.sale.display }),
133
+ item.price.original && item.price.sale && /* @__PURE__ */ jsx2("span", { className: "sg-price-original text-xs line-through text-muted-foreground", children: item.price.original.display }),
134
+ item.price.promotion && /* @__PURE__ */ jsx2("span", { className: "sg-price-promotion rounded-[8px] bg-[#fff1f3] px-1.5 py-[0.5px] text-xs leading-4 text-[#ef4f43]", children: item.price.promotion.display }),
135
+ !item.price.sale && !item.price.original && !item.price.promotion && /* @__PURE__ */ jsx2("span", { className: "sg-price-unavailable text-xs text-muted-foreground", children: "\u4EF7\u683C\u6682\u65E0" })
131
136
  ] }),
132
- /* @__PURE__ */ jsxs("div", { className: "sg-product-sheet__merchant", children: [
137
+ /* @__PURE__ */ jsxs("div", { className: "sg-product-sheet__merchant mt-1.5 text-sm text-secondary-foreground", children: [
133
138
  /* @__PURE__ */ jsx2("span", { children: item.merchant.name }),
134
- item.merchant.location?.displayText && /* @__PURE__ */ jsxs("span", { className: "sg-merchant-location", children: [
139
+ item.merchant.location?.displayText && /* @__PURE__ */ jsxs("span", { className: "sg-merchant-location mt-1 flex flex-wrap items-center gap-[3px] text-xs text-secondary-foreground", children: [
135
140
  " \xB7 ",
136
141
  item.merchant.location.displayText
137
142
  ] })
138
143
  ] })
139
144
  ] }),
140
- /* @__PURE__ */ jsx2("div", { className: "sg-product-item__arrow", "aria-hidden": "true", children: "\u203A" })
145
+ /* @__PURE__ */ jsx2("div", { className: "sg-product-item__arrow ml-1 shrink-0 self-center text-base text-muted-foreground", "aria-hidden": "true", children: "\u203A" })
141
146
  ]
142
147
  },
143
148
  item.productId
144
149
  )) }),
145
- data.pageInfo?.hasMore && /* @__PURE__ */ jsxs("div", { className: "sg-page-info", children: [
150
+ data.pageInfo?.hasMore && /* @__PURE__ */ jsxs("div", { className: "sg-page-info mt-2.5 text-center text-xs text-muted-foreground", children: [
146
151
  "\u5DF2\u5C55\u793A ",
147
152
  data.items.length,
148
153
  " / ",
149
154
  data.pageInfo.total,
150
155
  " \u4EF6\u5546\u54C1"
151
156
  ] }),
152
- data.refinements.length > 0 && /* @__PURE__ */ jsx2("div", { className: "sg-refinements", children: data.refinements.map((r, i) => /* @__PURE__ */ jsx2(
157
+ data.refinements.length > 0 && /* @__PURE__ */ jsx2("div", { className: "sg-refinements mt-3 flex flex-wrap gap-2 border-t-[0.5px] border-dashed border-border pt-2.5", children: data.refinements.map((r, i) => /* @__PURE__ */ jsx2(
153
158
  "button",
154
159
  {
155
160
  type: "button",
156
- className: "sg-refinement-chip",
161
+ className: "sg-refinement-chip cursor-pointer rounded-full border-[0.5px] border-border bg-card px-3 py-1 text-xs text-secondary-foreground disabled:cursor-not-allowed disabled:opacity-50 [font-family:inherit] tracking-normal",
157
162
  disabled: isHistory,
158
163
  onClick: () => {
159
164
  if (isHistory) return;
@@ -180,58 +185,75 @@ var product_list_default = ProductListCard;
180
185
  import { useState as useState3 } from "react";
181
186
  import { ItemActionsRow as ItemActionsRow2 } from "@tbox.cn/app-agent-sdk-client";
182
187
  import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
188
+ var AVAILABILITY_BASE_CLASS2 = "sg-availability mt-1 inline-block text-xs text-secondary-foreground";
189
+ var AVAILABILITY_TONE_CLASS2 = {
190
+ in_stock: "sg-availability-in_stock text-success",
191
+ available: "sg-availability-available text-success",
192
+ out_of_stock: "sg-availability-out_of_stock text-warning",
193
+ limited: "sg-availability-limited",
194
+ unknown: "sg-availability-unknown"
195
+ };
183
196
  function ProductDetailCard(props) {
184
197
  const { data, cardId, isHistory } = props;
185
198
  const [active, setActive] = useState3(0);
186
199
  const images = data.imageUrls;
187
200
  const current = Math.min(active, Math.max(images.length - 1, 0));
188
- return /* @__PURE__ */ jsxs2("section", { className: "sg-card sg-product-detail", children: [
189
- /* @__PURE__ */ jsx3("div", { className: "sg-card-title", children: data.name }),
190
- data.brand && /* @__PURE__ */ jsx3("div", { className: "sg-card-subtitle", children: data.brand }),
191
- images.length > 0 && /* @__PURE__ */ jsxs2("div", { className: "sg-carousel", children: [
192
- /* @__PURE__ */ jsx3(ImageWithFallback, { src: images[current], alt: data.name, className: "sg-carousel__stage", size: 72 }),
193
- images.length > 1 && /* @__PURE__ */ jsxs2("span", { className: "sg-carousel__count", children: [
201
+ return /* @__PURE__ */ jsxs2("section", { className: "sg-card sg-product-detail p-5 text-foreground", children: [
202
+ /* @__PURE__ */ jsx3("div", { className: "sg-card-title -mx-5 -mt-5 mb-3 flex items-center gap-2 bg-[linear-gradient(135deg,#0e2f80_0%,#1e5ed7_100%)] p-3.5 text-base leading-6 font-bold text-white", children: data.name }),
203
+ data.brand && /* @__PURE__ */ jsx3("div", { className: "sg-card-subtitle mb-3 text-sm text-secondary-foreground", children: data.brand }),
204
+ images.length > 0 && /* @__PURE__ */ jsxs2("div", { className: "sg-carousel relative", children: [
205
+ /* @__PURE__ */ jsx3(ImageWithFallback, { src: images[current], alt: data.name, className: "sg-carousel__stage h-60 w-full max-w-full rounded-[12px] object-cover", size: 72 }),
206
+ images.length > 1 && /* @__PURE__ */ jsxs2("span", { className: "sg-carousel__count absolute right-2.5 bottom-2.5 rounded-full bg-[rgba(0,0,0,0.5)] px-2 py-0.5 text-xs leading-4 text-white", children: [
194
207
  current + 1,
195
208
  "/",
196
209
  images.length
197
210
  ] }),
198
- images.length > 1 && /* @__PURE__ */ jsx3("div", { className: "sg-carousel__thumbs", children: images.map((src, i) => /* @__PURE__ */ jsx3(
211
+ images.length > 1 && /* @__PURE__ */ jsx3("div", { className: "sg-carousel__thumbs mt-2 flex gap-2 overflow-x-auto", children: images.map((src, i) => /* @__PURE__ */ jsx3(
199
212
  "button",
200
213
  {
201
214
  type: "button",
202
- className: "sg-carousel__thumb",
215
+ className: "sg-carousel__thumb size-12 shrink-0 cursor-pointer overflow-hidden rounded-[8px] border-2 border-transparent p-0 aria-[current=true]:border-[var(--tbox-domain-sg-accent,#096bfa)] [font-family:inherit]",
203
216
  "aria-current": i === current,
204
217
  "aria-label": `\u67E5\u770B\u7B2C ${i + 1} \u5F20\u56FE`,
205
218
  onClick: () => setActive(i),
206
- children: /* @__PURE__ */ jsx3("img", { src, alt: "", loading: "lazy", referrerPolicy: "no-referrer" })
219
+ children: /* @__PURE__ */ jsx3("img", { className: "h-full w-full max-w-full object-cover", src, alt: "", loading: "lazy", referrerPolicy: "no-referrer" })
207
220
  },
208
221
  i
209
222
  )) })
210
223
  ] }),
211
- /* @__PURE__ */ jsxs2("div", { className: "sg-price-block sg-price-block--detail", children: [
212
- data.price.sale && /* @__PURE__ */ jsx3("span", { className: "sg-price-sale sg-price-sale--lg", children: data.price.sale.display }),
213
- data.price.original && data.price.sale && /* @__PURE__ */ jsx3("span", { className: "sg-price-original", children: data.price.original.display }),
214
- data.price.promotion && /* @__PURE__ */ jsx3("span", { className: "sg-price-promotion", children: data.price.promotion.display })
224
+ /* @__PURE__ */ jsxs2("div", { className: "sg-price-block sg-price-block--detail mt-1 flex flex-wrap items-baseline gap-2", children: [
225
+ data.price.sale && /* @__PURE__ */ jsx3("span", { className: "sg-price-sale sg-price-sale--lg text-2xl leading-7 font-bold tabular-nums text-[#ef4f43]", children: data.price.sale.display }),
226
+ data.price.original && data.price.sale && /* @__PURE__ */ jsx3("span", { className: "sg-price-original text-xs line-through text-muted-foreground", children: data.price.original.display }),
227
+ data.price.promotion && /* @__PURE__ */ jsx3("span", { className: "sg-price-promotion rounded-[8px] bg-[#fff1f3] px-1.5 py-[0.5px] text-xs leading-4 text-[#ef4f43]", children: data.price.promotion.display })
215
228
  ] }),
216
- /* @__PURE__ */ jsxs2("div", { className: `sg-availability sg-availability-${data.availability.status}`, children: [
229
+ /* @__PURE__ */ jsxs2("div", { className: `${AVAILABILITY_BASE_CLASS2} ${AVAILABILITY_TONE_CLASS2[data.availability.status] ?? ""}`, children: [
217
230
  data.availability.label,
218
- data.humanGuideAvailable && /* @__PURE__ */ jsx3("span", { className: "sg-availability__guide", children: "\u652F\u6301\u4EBA\u5DE5\u5BFC\u8D2D" })
231
+ data.humanGuideAvailable && /* @__PURE__ */ jsx3("span", { className: "sg-availability__guide ml-2 rounded-[8px] bg-muted px-1.5 py-[0.5px] text-xs", children: "\u652F\u6301\u4EBA\u5DE5\u5BFC\u8D2D" })
219
232
  ] }),
220
- data.description && /* @__PURE__ */ jsx3("div", { className: "sg-product-desc", children: data.description }),
221
- /* @__PURE__ */ jsx3("dl", { className: "sg-attr-table", children: data.attributes.map((a) => /* @__PURE__ */ jsxs2("div", { className: "sg-attr-row", children: [
222
- /* @__PURE__ */ jsx3("dt", { children: a.name }),
223
- /* @__PURE__ */ jsx3("dd", { children: a.value })
233
+ data.description && /* @__PURE__ */ jsx3("div", { className: "sg-product-desc mt-2.5 text-sm leading-5 text-foreground", children: data.description }),
234
+ /* @__PURE__ */ jsx3("dl", { className: "sg-attr-table m-0 mt-2.5 overflow-hidden rounded-[8px] border-[0.5px] border-border p-0", children: data.attributes.map((a) => /* @__PURE__ */ jsxs2("div", { className: "sg-attr-row flex gap-3 border-b-[0.5px] border-border px-3 py-2 text-sm last:border-b-0", children: [
235
+ /* @__PURE__ */ jsx3("dt", { className: "flex-none text-secondary-foreground", children: a.name }),
236
+ /* @__PURE__ */ jsx3("dd", { className: "m-0 flex-1 text-right text-foreground", children: a.value })
224
237
  ] }, a.name)) }),
225
- /* @__PURE__ */ jsxs2("div", { className: "sg-product-merchant", children: [
238
+ /* @__PURE__ */ jsxs2("div", { className: "sg-product-merchant mt-1.5 text-xs text-secondary-foreground", children: [
226
239
  data.merchant.name,
227
- data.merchant.location?.displayText && /* @__PURE__ */ jsxs2("span", { className: "sg-merchant-location", children: [
240
+ data.merchant.location?.displayText && /* @__PURE__ */ jsxs2("span", { className: "sg-merchant-location mt-1 flex flex-wrap items-center gap-[3px] text-xs text-secondary-foreground", children: [
228
241
  " \xB7 ",
229
242
  data.merchant.location.displayText
230
243
  ] })
231
244
  ] }),
232
- data.promotionFacts.map((p) => /* @__PURE__ */ jsx3("div", { className: "sg-promo-fact", children: p }, p)),
233
- data.categoryPath.length > 0 && /* @__PURE__ */ jsx3("div", { className: "sg-category-path", children: data.categoryPath.join(" / ") }),
234
- /* @__PURE__ */ jsx3(ItemActionsRow2, { actions: data.itemActions, cardId, isHistory, className: "sg-item-actions", chipClassName: "sg-chip" })
245
+ data.promotionFacts.map((p) => /* @__PURE__ */ jsx3("div", { className: "sg-promo-fact mt-1 text-xs leading-4.5 text-[#ef4f43]", children: p }, p)),
246
+ data.categoryPath.length > 0 && /* @__PURE__ */ jsx3("div", { className: "sg-category-path mt-2 text-xs text-muted-foreground", children: data.categoryPath.join(" / ") }),
247
+ /* @__PURE__ */ jsx3(
248
+ ItemActionsRow2,
249
+ {
250
+ actions: data.itemActions,
251
+ cardId,
252
+ isHistory,
253
+ className: "sg-item-actions mt-2 flex flex-wrap gap-1.5",
254
+ chipClassName: "sg-chip inline-flex min-h-[30px] cursor-pointer items-center justify-center rounded-[9px] border border-border bg-[var(--tbox-domain-sg-surface,#f7faff)] px-3 text-xs font-medium whitespace-nowrap text-[var(--tbox-domain-sg-accent,#096bfa)] disabled:cursor-not-allowed disabled:opacity-50 [font-family:inherit] tracking-normal"
255
+ }
256
+ )
235
257
  ] });
236
258
  }
237
259
  var product_detail_default = ProductDetailCard;
@@ -248,6 +270,16 @@ import { Clock, MapPin, Phone, Star, Tag, X as X2 } from "@phosphor-icons/react"
248
270
  import { ItemActionsRow as ItemActionsRow3, navigateToAlipayPage, sendCardAction as sendCardAction2 } from "@tbox.cn/app-agent-sdk-client";
249
271
  import { Fragment, jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
250
272
  var HIDDEN_DETAIL_ACTION_LABELS = /* @__PURE__ */ new Set(["\u67E5\u770B\u8BE6\u60C5", "\u5BFC\u822A", "\u95EE\u95EE\u5BFC\u8D2D"]);
273
+ var STATUS_BASE_CLASS = "sg-status inline-block rounded-full px-2 py-0.5 text-xs leading-4 whitespace-nowrap";
274
+ var STATUS_TONE_CLASS = {
275
+ enabled: "sg-status-enabled text-success bg-success-soft",
276
+ available: "sg-status-available text-success bg-success-soft",
277
+ open: "sg-status-open bg-[#e9f8ef] text-[#237a48]",
278
+ offline: "sg-status-offline bg-[#fff4df] text-[#986415]",
279
+ closed: "sg-status-closed bg-[#fff4df] text-[#986415]",
280
+ unknown: "sg-status-unknown bg-[#fff4df] text-[#986415]",
281
+ disabled: "sg-status-disabled bg-[#fff4df] text-[#986415]"
282
+ };
251
283
  function ShopDetailSheet(props) {
252
284
  const { open, data, loading = false, cardId, isHistory, onClose, actionTokens, claimActionId } = props;
253
285
  const [closing, setClosing] = useState4(false);
@@ -346,52 +378,52 @@ function ShopDetailSheet(props) {
346
378
  /* @__PURE__ */ jsxs3(
347
379
  "div",
348
380
  {
349
- className: `sg-shop-sheet${closing ? " sg-shop-sheet--closing" : ""}`,
381
+ className: `sg-shop-sheet fixed inset-0 z-[60] text-foreground motion-reduce:[animation-duration:1ms] ${closing ? " sg-shop-sheet--closing pointer-events-none animate-[sg-shop-sheet-out_180ms_ease-in_both]" : ""}`,
350
382
  role: "presentation",
351
383
  onAnimationEnd: (event) => {
352
384
  if (closing && event.target === event.currentTarget) finishClose();
353
385
  },
354
386
  children: [
355
- /* @__PURE__ */ jsx4("div", { className: "sg-shop-sheet__mask", "aria-hidden": "true", onClick: requestClose }),
387
+ /* @__PURE__ */ jsx4("div", { className: "sg-shop-sheet__mask absolute inset-0 bg-[rgba(18,21,19,0.52)] backdrop-blur-[2px]", "aria-hidden": "true", onClick: requestClose }),
356
388
  /* @__PURE__ */ jsxs3(
357
389
  "section",
358
390
  {
359
391
  ref: panelRef,
360
- className: "sg-shop-sheet__panel",
392
+ className: `sg-shop-sheet__panel absolute bottom-0 left-1/2 flex h-[86vh] max-h-[86vh] w-[min(100%,375px)] [transform:translateX(-50%)] flex-col overflow-hidden rounded-t-[18px] bg-white shadow-[0_-8px_24px_rgba(24,31,27,0.18)] motion-reduce:[animation-duration:1ms] ${closing ? "animate-[sg-shop-sheet-down_180ms_ease-in_both]" : "animate-[sg-shop-sheet-in_240ms_cubic-bezier(0.22,0.72,0.24,1)_both]"}`,
361
393
  role: "dialog",
362
394
  "aria-modal": "true",
363
395
  "aria-labelledby": titleId,
364
396
  "aria-busy": loading || void 0,
365
397
  children: [
366
- /* @__PURE__ */ jsxs3("header", { className: "sg-shop-sheet__header", children: [
367
- /* @__PURE__ */ jsx4("h2", { id: titleId, children: "\u95E8\u5E97\u8BE6\u60C5" }),
398
+ /* @__PURE__ */ jsxs3("header", { className: "sg-shop-sheet__header flex shrink-0 items-center border-b-[0.5px] border-border pt-[13px] pr-3.5 pb-[9px] pl-4", children: [
399
+ /* @__PURE__ */ jsx4("h2", { id: titleId, className: "min-w-0 flex-1 text-base leading-[22px] font-bold text-[#262c28]", children: "\u95E8\u5E97\u8BE6\u60C5" }),
368
400
  /* @__PURE__ */ jsx4(
369
401
  "button",
370
402
  {
371
403
  ref: closeButtonRef,
372
404
  type: "button",
373
- className: "sg-shop-sheet__close",
405
+ className: "sg-shop-sheet__close flex size-7 shrink-0 items-center justify-center rounded-full border-0 bg-transparent p-0 text-[#343936] focus-visible:outline-[1.5px] focus-visible:outline-offset-[1px] focus-visible:outline-[rgba(9,107,250,0.28)]",
374
406
  "aria-label": "\u5173\u95ED\u95E8\u5E97\u8BE6\u60C5",
375
407
  onClick: requestClose,
376
408
  children: /* @__PURE__ */ jsx4(X2, { size: 20, weight: "bold" })
377
409
  }
378
410
  )
379
411
  ] }),
380
- /* @__PURE__ */ jsxs3("div", { className: "sg-shop-sheet__body", children: [
412
+ /* @__PURE__ */ jsxs3("div", { className: "sg-shop-sheet__body min-h-0 flex-1 overflow-y-auto px-4 pb-[calc(19px_+_env(safe-area-inset-bottom))] [&::-webkit-scrollbar]:hidden", children: [
381
413
  (data.coverUrl || data.logoUrl) && /* @__PURE__ */ jsx4(
382
414
  ImageWithFallback,
383
415
  {
384
416
  src: data.coverUrl ?? data.logoUrl,
385
417
  alt: "",
386
- className: "sg-shop-sheet__cover",
418
+ className: "sg-shop-sheet__cover mt-[5px] block h-[150px] w-full max-w-full rounded-[10px] object-cover",
387
419
  size: 176
388
420
  }
389
421
  ),
390
- /* @__PURE__ */ jsxs3("div", { className: "sg-shop-sheet__identity", children: [
391
- /* @__PURE__ */ jsxs3("div", { className: "sg-shop-sheet__identity-copy", children: [
392
- /* @__PURE__ */ jsx4("div", { className: "sg-shop-sheet__name-row", children: /* @__PURE__ */ jsx4("h3", { children: data.name }) }),
393
- (data.rating || data.avgSpend || data.status.code !== "unknown" && data.status.label || loading) && /* @__PURE__ */ jsxs3("div", { className: "sg-shop-sheet__stats", children: [
394
- data.rating && /* @__PURE__ */ jsxs3("span", { className: "sg-shop-sheet__rating", children: [
422
+ /* @__PURE__ */ jsxs3("div", { className: "sg-shop-sheet__identity mt-3.5 flex items-start gap-[9px]", children: [
423
+ /* @__PURE__ */ jsxs3("div", { className: "sg-shop-sheet__identity-copy min-w-0 flex-1", children: [
424
+ /* @__PURE__ */ jsx4("div", { className: "sg-shop-sheet__name-row flex items-center gap-1.5", children: /* @__PURE__ */ jsx4("h3", { className: "min-w-0 flex-1 truncate text-lg leading-[23px] font-bold text-[#262c28]", children: data.name }) }),
425
+ (data.rating || data.avgSpend || data.status.code !== "unknown" && data.status.label || loading) && /* @__PURE__ */ jsxs3("div", { className: "sg-shop-sheet__stats mt-[5px] flex flex-wrap items-center gap-x-[9px] gap-y-[5px] text-xs text-secondary-foreground", children: [
426
+ data.rating && /* @__PURE__ */ jsxs3("span", { className: "sg-shop-sheet__rating inline-flex items-center gap-[2.5px] font-bold text-[#ef8e24]", children: [
395
427
  /* @__PURE__ */ jsx4(Star, { size: 15, weight: "fill" }),
396
428
  data.rating
397
429
  ] }),
@@ -399,13 +431,13 @@ function ShopDetailSheet(props) {
399
431
  "\u4EBA\u5747 ",
400
432
  data.avgSpend
401
433
  ] }),
402
- loading ? /* @__PURE__ */ jsx4("span", { className: "sg-shop-sheet__skeleton sg-shop-sheet__skeleton--status", "aria-hidden": "true" }) : data.status.code !== "unknown" && /* @__PURE__ */ jsx4("span", { className: `sg-status sg-status-${data.status.code}`, children: data.status.label })
434
+ loading ? /* @__PURE__ */ jsx4("span", { className: "sg-shop-sheet__skeleton sg-shop-sheet__skeleton--status block h-[18px] w-[46px] rounded-full bg-[#eef0ee] animate-[sg-shop-sheet-skeleton_1.4s_ease-in-out_infinite] motion-reduce:animate-none", "aria-hidden": "true" }) : data.status.code !== "unknown" && /* @__PURE__ */ jsx4("span", { className: `${STATUS_BASE_CLASS} ${STATUS_TONE_CLASS[data.status.code] ?? STATUS_TONE_CLASS.unknown}`, children: data.status.label })
403
435
  ] })
404
436
  ] }),
405
- loading ? /* @__PURE__ */ jsx4("span", { className: "sg-shop-sheet__phone-skeleton", "aria-hidden": "true" }) : phone && /* @__PURE__ */ jsxs3(
437
+ loading ? /* @__PURE__ */ jsx4("span", { className: "sg-shop-sheet__phone-skeleton block size-[39px] shrink-0 rounded-full bg-[#eef0ee] animate-[sg-shop-sheet-skeleton_1.4s_ease-in-out_infinite] motion-reduce:animate-none", "aria-hidden": "true" }) : phone && /* @__PURE__ */ jsxs3(
406
438
  "a",
407
439
  {
408
- className: "sg-shop-sheet__phone",
440
+ className: "sg-shop-sheet__phone flex size-[39px] no-underline shrink-0 flex-col items-center justify-center gap-[2px] rounded-full bg-[#f6f8fb] text-xs text-[#2f3539]",
409
441
  href: phone.value.startsWith("tel:") ? phone.value : `tel:${phone.value}`,
410
442
  "aria-label": `\u62E8\u6253${data.name}\u7535\u8BDD`,
411
443
  children: [
@@ -415,83 +447,83 @@ function ShopDetailSheet(props) {
415
447
  }
416
448
  )
417
449
  ] }),
418
- /* @__PURE__ */ jsxs3("div", { className: "sg-shop-sheet__facts", children: [
419
- /* @__PURE__ */ jsxs3("div", { children: [
450
+ /* @__PURE__ */ jsxs3("div", { className: "sg-shop-sheet__facts mt-2.5 flex flex-col gap-[5px]", children: [
451
+ /* @__PURE__ */ jsxs3("div", { className: "flex flex-wrap items-center gap-1 text-xs leading-4 text-[#858b87]", children: [
420
452
  data.businessCategories.length > 0 && /* @__PURE__ */ jsx4("span", { children: data.businessCategories.join(" \xB7 ") }),
421
- /* @__PURE__ */ jsx4(MapPin, { size: 17, weight: "fill" }),
422
- /* @__PURE__ */ jsx4("span", { className: "sg-shop-sheet__location", children: data.location.displayText })
453
+ /* @__PURE__ */ jsx4(MapPin, { size: 17, weight: "fill", className: "shrink-0 text-[#2979ff]" }),
454
+ /* @__PURE__ */ jsx4("span", { className: "sg-shop-sheet__location text-[#2979ff]", children: data.location.displayText })
423
455
  ] }),
424
- !loading && data.operatingStatus && /* @__PURE__ */ jsx4("div", { children: data.operatingStatus }),
425
- !loading && /* @__PURE__ */ jsxs3("div", { children: [
426
- /* @__PURE__ */ jsx4(Clock, { size: 18 }),
456
+ !loading && data.operatingStatus && /* @__PURE__ */ jsx4("div", { className: "flex items-center gap-1 text-xs leading-4 text-[#858b87]", children: data.operatingStatus }),
457
+ !loading && /* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-1 text-xs leading-4 text-[#858b87]", children: [
458
+ /* @__PURE__ */ jsx4(Clock, { size: 18, className: "shrink-0 text-[#2979ff]" }),
427
459
  /* @__PURE__ */ jsx4("span", { children: hoursText })
428
460
  ] }),
429
- !loading && data.services && data.services.length > 0 && /* @__PURE__ */ jsxs3("div", { children: [
461
+ !loading && data.services && data.services.length > 0 && /* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-1 text-xs leading-4 text-[#858b87]", children: [
430
462
  "\u652F\u6301",
431
463
  data.services.join("\u3001")
432
464
  ] }),
433
- loading && /* @__PURE__ */ jsxs3("div", { className: "sg-shop-sheet__facts-skeleton", role: "status", "aria-label": "\u95E8\u5E97\u8BE6\u60C5\u52A0\u8F7D\u4E2D", children: [
434
- /* @__PURE__ */ jsx4("span", { className: "sg-shop-sheet__skeleton sg-shop-sheet__skeleton--fact", "aria-hidden": "true" }),
435
- /* @__PURE__ */ jsx4("span", { className: "sg-shop-sheet__skeleton sg-shop-sheet__skeleton--fact-short", "aria-hidden": "true" })
465
+ loading && /* @__PURE__ */ jsxs3("div", { className: "sg-shop-sheet__facts-skeleton flex w-full flex-col items-stretch gap-1.5", role: "status", "aria-label": "\u95E8\u5E97\u8BE6\u60C5\u52A0\u8F7D\u4E2D", children: [
466
+ /* @__PURE__ */ jsx4("span", { className: "sg-shop-sheet__skeleton sg-shop-sheet__skeleton--fact block h-3 w-[72%] rounded-full bg-[#eef0ee] animate-[sg-shop-sheet-skeleton_1.4s_ease-in-out_infinite] motion-reduce:animate-none", "aria-hidden": "true" }),
467
+ /* @__PURE__ */ jsx4("span", { className: "sg-shop-sheet__skeleton sg-shop-sheet__skeleton--fact-short block h-3 w-[48%] rounded-full bg-[#eef0ee] animate-[sg-shop-sheet-skeleton_1.4s_ease-in-out_infinite] motion-reduce:animate-none", "aria-hidden": "true" })
436
468
  ] })
437
469
  ] }),
438
- loading && /* @__PURE__ */ jsxs3("div", { className: "sg-shop-sheet__details-skeleton", "aria-hidden": "true", children: [
439
- /* @__PURE__ */ jsx4("span", { className: "sg-shop-sheet__skeleton sg-shop-sheet__skeleton--detail-line" }),
440
- /* @__PURE__ */ jsx4("span", { className: "sg-shop-sheet__skeleton sg-shop-sheet__skeleton--detail-line-short" }),
441
- /* @__PURE__ */ jsx4("span", { className: "sg-shop-sheet__skeleton sg-shop-sheet__skeleton--detail-block" })
470
+ loading && /* @__PURE__ */ jsxs3("div", { className: "sg-shop-sheet__details-skeleton mt-3 flex flex-col gap-[7px]", "aria-hidden": "true", children: [
471
+ /* @__PURE__ */ jsx4("span", { className: "sg-shop-sheet__skeleton sg-shop-sheet__skeleton--detail-line block h-3 w-[88%] rounded-full bg-[#eef0ee] animate-[sg-shop-sheet-skeleton_1.4s_ease-in-out_infinite] motion-reduce:animate-none" }),
472
+ /* @__PURE__ */ jsx4("span", { className: "sg-shop-sheet__skeleton sg-shop-sheet__skeleton--detail-line-short block h-3 w-[62%] rounded-full bg-[#eef0ee] animate-[sg-shop-sheet-skeleton_1.4s_ease-in-out_infinite] motion-reduce:animate-none" }),
473
+ /* @__PURE__ */ jsx4("span", { className: "sg-shop-sheet__skeleton sg-shop-sheet__skeleton--detail-block block h-13 w-full rounded-[9px] bg-[#eef0ee] animate-[sg-shop-sheet-skeleton_1.4s_ease-in-out_infinite] motion-reduce:animate-none" })
442
474
  ] }),
443
- !loading && data.description && /* @__PURE__ */ jsx4("p", { className: "sg-shop-sheet__description", children: data.description }),
475
+ !loading && data.description && /* @__PURE__ */ jsx4("p", { className: "sg-shop-sheet__description mt-3 text-xs leading-4.5 text-[#666d68]", children: data.description }),
444
476
  !loading && data.coupons && data.coupons.length > 0 && /* @__PURE__ */ jsxs3("div", { className: "sg-shop-sheet__coupons", "aria-label": "\u95E8\u5E97\u4F18\u60E0", children: [
445
477
  /* @__PURE__ */ jsxs3("h3", { className: "sg-shop-sheet__section-title", children: [
446
478
  /* @__PURE__ */ jsx4(Tag, { size: 16, weight: "fill", "aria-hidden": "true" }),
447
479
  "\u4F18\u60E0\u6D3B\u52A8"
448
480
  ] }),
449
- /* @__PURE__ */ jsx4("div", { className: "sg-shop-sheet__coupon-list", children: data.coupons.map((coupon, index) => {
481
+ /* @__PURE__ */ jsx4("div", { className: "sg-shop-sheet__coupon-list bg-transparent p-0", children: data.coupons.map((coupon, index) => {
450
482
  const purchaseOnly = coupon.salePrice !== void 0 && coupon.salePrice > 0;
451
483
  const redirectOnly = purchaseOnly || coupon.freeCouponClaimMode === "REDIRECT";
452
484
  const claimToken = coupon.offerRef && claimActionId ? actionTokens?.[claimActionId] : void 0;
453
485
  const claimable = Boolean(!redirectOnly && coupon.offerRef && claimToken && !isHistory);
454
486
  const redirectAction = redirectOnly && Boolean(coupon.offerRef || coupon.purchaseUrl);
455
487
  const claimed = coupon.offerRef !== void 0 && claimedRefs.has(coupon.offerRef);
456
- return /* @__PURE__ */ jsxs3("div", { className: "sg-shop-sheet__coupon-row", children: [
457
- coupon.applicableCategories && coupon.applicableCategories.length > 0 && /* @__PURE__ */ jsx4("span", { className: "sg-shop-sheet__coupon-tag", children: coupon.applicableCategories.join("\u3001") }),
488
+ return /* @__PURE__ */ jsxs3("div", { className: "sg-shop-sheet__coupon-row relative grid min-h-[77px] grid-cols-[56px_minmax(0,1fr)_auto] items-center gap-x-2 overflow-hidden border-t-[0.5px] border-[#f0f1f4] bg-transparent py-[9px] first:border-t-0", children: [
489
+ coupon.applicableCategories && coupon.applicableCategories.length > 0 && /* @__PURE__ */ jsx4("span", { className: "sg-shop-sheet__coupon-tag absolute top-[9px] right-0 max-w-[40%] truncate rounded-[0_6px_0_6px] bg-[linear-gradient(160deg,#f9e2ac_0%,#dabd88_100%)] px-[5px] py-[1.5px] text-xs leading-3 font-[650] text-[#746447]", children: coupon.applicableCategories.join("\u3001") }),
458
490
  coupon.imageUrl && /* @__PURE__ */ jsx4(
459
491
  ImageWithFallback,
460
492
  {
461
493
  src: coupon.imageUrl,
462
494
  alt: coupon.name,
463
- className: "sg-shop-sheet__coupon-img",
495
+ className: "sg-shop-sheet__coupon-img size-14 shrink-0 max-w-full rounded-[6px] object-cover shadow-[inset_0_0_0_0.5px_rgba(11,15,23,0.04)]",
464
496
  size: 112
465
497
  }
466
498
  ),
467
- /* @__PURE__ */ jsxs3("div", { className: "sg-shop-sheet__coupon-body", children: [
468
- /* @__PURE__ */ jsx4("strong", { className: "sg-shop-sheet__coupon-name", children: coupon.name }),
469
- coupon.faceValue !== void 0 && /* @__PURE__ */ jsx4("p", { className: "sg-shop-sheet__coupon-price", children: coupon.salePrice === 0 ? /* @__PURE__ */ jsxs3(Fragment, { children: [
470
- /* @__PURE__ */ jsx4("span", { className: "sg-shop-sheet__coupon-free", children: "\u514D\u8D39" }),
471
- /* @__PURE__ */ jsxs3("s", { className: "sg-shop-sheet__coupon-face--strike", children: [
499
+ /* @__PURE__ */ jsxs3("div", { className: "sg-shop-sheet__coupon-body flex min-w-0 flex-1 flex-col justify-center gap-[2.5px]", children: [
500
+ /* @__PURE__ */ jsx4("strong", { className: "sg-shop-sheet__coupon-name line-clamp-2 text-xs leading-[15px] font-[750] text-[rgba(11,15,23,0.9)]", children: coupon.name }),
501
+ coupon.faceValue !== void 0 && /* @__PURE__ */ jsx4("p", { className: "sg-shop-sheet__coupon-price mt-px flex items-baseline gap-1", children: coupon.salePrice === 0 ? /* @__PURE__ */ jsxs3(Fragment, { children: [
502
+ /* @__PURE__ */ jsx4("span", { className: "sg-shop-sheet__coupon-free text-sm leading-4 font-extrabold text-[#e8471c]", children: "\u514D\u8D39" }),
503
+ /* @__PURE__ */ jsxs3("s", { className: "sg-shop-sheet__coupon-face--strike overflow-hidden text-xs line-through text-[rgba(11,15,23,0.38)]", children: [
472
504
  "\xA5",
473
505
  coupon.faceValue
474
506
  ] })
475
507
  ] }) : coupon.salePrice !== void 0 ? /* @__PURE__ */ jsxs3(Fragment, { children: [
476
- /* @__PURE__ */ jsxs3("span", { className: "sg-shop-sheet__coupon-face", children: [
508
+ /* @__PURE__ */ jsxs3("span", { className: "sg-shop-sheet__coupon-face text-sm leading-4 font-extrabold text-[#e8471c]", children: [
477
509
  "\xA5",
478
510
  coupon.salePrice
479
511
  ] }),
480
- /* @__PURE__ */ jsxs3("s", { className: "sg-shop-sheet__coupon-face--strike", children: [
512
+ /* @__PURE__ */ jsxs3("s", { className: "sg-shop-sheet__coupon-face--strike overflow-hidden text-xs line-through text-[rgba(11,15,23,0.38)]", children: [
481
513
  "\xA5",
482
514
  coupon.faceValue
483
515
  ] })
484
- ] }) : /* @__PURE__ */ jsxs3("span", { className: "sg-shop-sheet__coupon-face", children: [
516
+ ] }) : /* @__PURE__ */ jsxs3("span", { className: "sg-shop-sheet__coupon-face text-sm leading-4 font-extrabold text-[#e8471c]", children: [
485
517
  "\xA5",
486
518
  coupon.faceValue
487
519
  ] }) }),
488
- coupon.usageTimeText && /* @__PURE__ */ jsx4("p", { className: "sg-shop-sheet__coupon-sub", children: coupon.usageTimeText })
520
+ coupon.usageTimeText && /* @__PURE__ */ jsx4("p", { className: "sg-shop-sheet__coupon-sub line-clamp-2 text-xs leading-[11.5px] text-[rgba(11,15,23,0.55)]", children: coupon.usageTimeText })
489
521
  ] }),
490
522
  redirectAction ? /* @__PURE__ */ jsx4(
491
523
  "button",
492
524
  {
493
525
  type: "button",
494
- className: "sg-shop-sheet__coupon-claim",
526
+ className: "sg-shop-sheet__coupon-claim h-8 min-w-12 shrink-0 cursor-pointer rounded-full border-0 bg-[linear-gradient(160deg,#c3ad78_0%,#a89058_100%)] px-[7.5px] text-xs font-bold tracking-[0.5px] text-white enabled:hover:bg-[linear-gradient(160deg,#b39d68_0%,#967f4a_100%)] disabled:cursor-not-allowed disabled:opacity-45",
495
527
  disabled: !coupon.purchaseUrl,
496
528
  onClick: () => {
497
529
  if (!coupon.purchaseUrl) return;
@@ -505,7 +537,7 @@ function ShopDetailSheet(props) {
505
537
  "button",
506
538
  {
507
539
  type: "button",
508
- className: "sg-shop-sheet__coupon-claim",
540
+ className: "sg-shop-sheet__coupon-claim h-8 min-w-12 shrink-0 cursor-pointer rounded-full border-0 bg-[linear-gradient(160deg,#c3ad78_0%,#a89058_100%)] px-[7.5px] text-xs font-bold tracking-[0.5px] text-white enabled:hover:bg-[linear-gradient(160deg,#b39d68_0%,#967f4a_100%)] disabled:cursor-not-allowed disabled:opacity-45",
509
541
  onClick: () => claimCoupon(coupon.offerRef),
510
542
  disabled: claimingRef === coupon.offerRef || claimed,
511
543
  children: claimed ? "\u5DF2\u9886\u53D6" : claimingRef === coupon.offerRef ? "\u9886\u53D6\u4E2D\uFF0C\u8BF7\u7A0D\u5019\u2026" : "\u9886\u53D6"
@@ -520,8 +552,8 @@ function ShopDetailSheet(props) {
520
552
  actions: detailActions,
521
553
  cardId,
522
554
  isHistory,
523
- className: "sg-shop-sheet__actions",
524
- chipClassName: "sg-shop-sheet__action"
555
+ className: "sg-shop-sheet__actions mt-[15px] flex gap-1.5",
556
+ chipClassName: "sg-shop-sheet__action inline-flex min-h-9 flex-1 items-center justify-center rounded-[9px] border-0 bg-[#313833] px-3 text-xs font-semibold text-white disabled:opacity-48"
525
557
  }
526
558
  )
527
559
  ] })
@@ -544,28 +576,41 @@ function MerchantRow(props) {
544
576
  "button",
545
577
  {
546
578
  type: "button",
547
- className: ["sg-rm-item-head", "sg-merchant-row", className].filter(Boolean).join(" "),
579
+ className: [
580
+ "sg-rm-item-head",
581
+ "sg-merchant-row",
582
+ "flex w-full cursor-pointer gap-[9px] border-0 text-left text-inherit [font-family:inherit] tracking-normal focus-visible:outline-[1.5px] focus-visible:outline-[rgba(9,107,250,0.28)]",
583
+ className
584
+ ].filter(Boolean).join(" "),
548
585
  "aria-label": `\u67E5\u770B${merchant.name}\u8BE6\u60C5`,
549
586
  disabled,
550
587
  onClick: onSelect,
551
588
  children: [
552
- /* @__PURE__ */ jsx5(ImageWithFallback, { src: merchant.logoUrl, alt: "", className: "sg-rm-item-image", size: 96 }),
553
- /* @__PURE__ */ jsxs4("div", { className: "sg-rm-item-meta", children: [
554
- /* @__PURE__ */ jsx5("div", { className: "sg-rm-item-name-row", children: /* @__PURE__ */ jsx5("span", { className: "sg-rm-item-name", children: merchant.name }) }),
555
- (merchant.rating || merchant.avgSpend) && /* @__PURE__ */ jsxs4("div", { className: "sg-rm-item-stats", children: [
556
- merchant.rating && /* @__PURE__ */ jsxs4("span", { className: "sg-rm-item-rating", children: [
589
+ /* @__PURE__ */ jsx5(
590
+ ImageWithFallback,
591
+ {
592
+ src: merchant.logoUrl,
593
+ alt: "",
594
+ className: "sg-rm-item-image size-[68px] shrink-0 rounded-[9px] bg-card object-contain max-w-full max-[700px]:size-[70px] [&>svg]:size-[30px]",
595
+ size: 96
596
+ }
597
+ ),
598
+ /* @__PURE__ */ jsxs4("div", { className: "sg-rm-item-meta flex min-w-0 flex-1 flex-col gap-1", children: [
599
+ /* @__PURE__ */ jsx5("div", { className: "sg-rm-item-name-row flex items-center justify-between gap-1", children: /* @__PURE__ */ jsx5("span", { className: "sg-rm-item-name truncate text-sm leading-[19px] font-semibold text-foreground", children: merchant.name }) }),
600
+ (merchant.rating || merchant.avgSpend) && /* @__PURE__ */ jsxs4("div", { className: "sg-rm-item-stats flex flex-wrap items-center gap-1", children: [
601
+ merchant.rating && /* @__PURE__ */ jsxs4("span", { className: "sg-rm-item-rating inline-flex items-center gap-[2px] text-xs font-semibold text-[#f5a623]", children: [
557
602
  /* @__PURE__ */ jsx5(Star2, { size: 14, weight: "fill" }),
558
603
  merchant.rating
559
604
  ] }),
560
- merchant.avgSpend && /* @__PURE__ */ jsxs4("span", { className: "sg-rm-item-avg-spend", children: [
605
+ merchant.avgSpend && /* @__PURE__ */ jsxs4("span", { className: "sg-rm-item-avg-spend text-xs text-secondary-foreground", children: [
561
606
  "\u4EBA\u5747 ",
562
607
  merchant.avgSpend
563
608
  ] })
564
609
  ] }),
565
- merchant.businessCategories.length > 0 && /* @__PURE__ */ jsx5("div", { className: "sg-rm-item-tags", "aria-label": "\u95E8\u5E97\u4E1A\u6001", children: merchant.businessCategories.map((category) => /* @__PURE__ */ jsx5("span", { className: "sg-rm-item-tag", children: category }, category)) }),
566
- /* @__PURE__ */ jsxs4("div", { className: "sg-rm-item-location", children: [
567
- /* @__PURE__ */ jsx5(MapPin2, { size: 13, weight: "fill" }),
568
- /* @__PURE__ */ jsx5("span", { children: merchant.location.displayText })
610
+ merchant.businessCategories.length > 0 && /* @__PURE__ */ jsx5("div", { className: "sg-rm-item-tags flex gap-1 overflow-hidden", "aria-label": "\u95E8\u5E97\u4E1A\u6001", children: merchant.businessCategories.map((category) => /* @__PURE__ */ jsx5("span", { className: "sg-rm-item-tag max-w-20 shrink-0 truncate rounded-[3.5px] bg-[#fff4df] px-[5px] py-px text-xs leading-3.5 text-[#986415]", children: category }, category)) }),
611
+ /* @__PURE__ */ jsxs4("div", { className: "sg-rm-item-location flex items-center gap-1 overflow-hidden whitespace-nowrap text-xs leading-[15px] text-secondary-foreground", children: [
612
+ /* @__PURE__ */ jsx5(MapPin2, { size: 13, weight: "fill", className: "shrink-0 text-muted-foreground" }),
613
+ /* @__PURE__ */ jsx5("span", { className: "overflow-hidden text-ellipsis", children: merchant.location.displayText })
569
614
  ] })
570
615
  ] })
571
616
  ]
@@ -598,22 +643,22 @@ function resolveCategoryTabs(categoryTabs, items) {
598
643
  import { Storefront } from "@phosphor-icons/react";
599
644
  import { jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
600
645
  function ShopGuideHeader(props) {
601
- return /* @__PURE__ */ jsxs5("header", { className: "sg-rm-header", children: [
602
- /* @__PURE__ */ jsxs5("div", { className: "sg-rm-header-copy", children: [
603
- /* @__PURE__ */ jsxs5("div", { className: "sg-rm-header-title-row", children: [
646
+ return /* @__PURE__ */ jsxs5("header", { className: "sg-rm-header relative -mx-3 flex min-h-[77px] items-start justify-between gap-2 overflow-hidden bg-[#f9f0df] px-3.5 py-[15px] after:pointer-events-none after:absolute after:inset-y-0 after:right-0 after:w-[62%] after:bg-[image:var(--tbox-asset-sg-header,linear-gradient(135deg,#f9f0df,#f3e5cd))] after:bg-cover after:bg-right after:opacity-90", children: [
647
+ /* @__PURE__ */ jsxs5("div", { className: "sg-rm-header-copy relative z-[1] flex max-w-[66%] flex-col gap-[5px]", children: [
648
+ /* @__PURE__ */ jsxs5("div", { className: "sg-rm-header-title-row flex items-center gap-[5px] text-[#2f3a22]", children: [
604
649
  /* @__PURE__ */ jsx6(Storefront, { size: 22, weight: "fill" }),
605
- /* @__PURE__ */ jsx6("h3", { className: "sg-rm-header-title", children: "\u95E8\u5E97\u5BFC\u89C8" })
650
+ /* @__PURE__ */ jsx6("h3", { className: "sg-rm-header-title text-base leading-[21px] font-bold text-[#2f3a22]", children: "\u95E8\u5E97\u5BFC\u89C8" })
606
651
  ] }),
607
- /* @__PURE__ */ jsx6("p", { className: "sg-rm-header-subtitle", children: props.subtitle })
652
+ /* @__PURE__ */ jsx6("p", { className: "sg-rm-header-subtitle truncate text-xs leading-4 text-[#626b5c]", children: props.subtitle })
608
653
  ] }),
609
- /* @__PURE__ */ jsx6("span", { className: "sg-rm-header-badge", children: "\u5546\u573A\u5BFC\u89C8" })
654
+ /* @__PURE__ */ jsx6("span", { className: "sg-rm-header-badge absolute top-3 right-[11px] z-[2] rounded-full border-[0.5px] border-[rgba(57,76,43,0.14)] bg-[rgba(255,255,255,0.72)] px-[7px] py-[3.5px] text-xs leading-[13px] text-[#526a35]", children: "\u5546\u573A\u5BFC\u89C8" })
610
655
  ] });
611
656
  }
612
657
 
613
658
  // src/client/components/ShopGuideSectionLabel.tsx
614
659
  import { jsx as jsx7 } from "react/jsx-runtime";
615
660
  function ShopGuideSectionLabel() {
616
- return /* @__PURE__ */ jsx7("div", { className: "sg-rm-section-label", children: "\u95E8\u5E97" });
661
+ return /* @__PURE__ */ jsx7("div", { className: "sg-rm-section-label mt-3.5 flex items-center justify-start gap-[7px] text-sm font-bold text-foreground", children: "\u95E8\u5E97" });
617
662
  }
618
663
 
619
664
  // src/client/components/ShopListSheet.tsx
@@ -636,6 +681,12 @@ function floorOrder(a, b) {
636
681
  const numeric = parse(a) - parse(b);
637
682
  return Number.isNaN(numeric) || numeric === 0 ? a.localeCompare(b, "zh-CN", { numeric: true }) : numeric;
638
683
  }
684
+ var SHEET_ROOT_CLASS = "sg-store-list-sheet fixed inset-0 z-[60] text-foreground motion-reduce:[animation-duration:1ms]";
685
+ var SHEET_PANEL_CLASS = "sg-store-list-sheet__panel absolute bottom-0 left-1/2 flex h-[86vh] max-h-[86vh] w-[min(100%,375px)] [transform:translateX(-50%)] flex-col overflow-hidden rounded-t-[18px] bg-white shadow-[0_-8px_24px_rgba(24,31,27,0.18)] motion-reduce:[animation-duration:1ms]";
686
+ var CATEGORY_BUTTON_CLASS = "relative min-h-[46px] shrink-0 border-0 bg-transparent px-[9px] py-[7px] text-center text-sm leading-4.5 text-[#4f5551] [font-family:inherit] focus-visible:z-[1] focus-visible:outline-[1.5px] focus-visible:outline-offset-[-1.5px] focus-visible:outline-[rgba(45,98,69,0.2)] max-[700px]:px-[5px] max-[700px]:text-xs";
687
+ var CATEGORY_BUTTON_ACTIVE_CLASS = "is-active relative min-h-[46px] shrink-0 border-0 bg-white px-[9px] py-[7px] text-center text-sm leading-4.5 font-bold text-[#273c2d] [font-family:inherit] before:absolute before:top-[13px] before:bottom-[13px] before:left-0 before:w-[3px] before:rounded-r-[3px] before:bg-[#6c8753] focus-visible:z-[1] focus-visible:outline-[1.5px] focus-visible:outline-offset-[-1.5px] focus-visible:outline-[rgba(45,98,69,0.2)] max-[700px]:px-[5px] max-[700px]:text-xs";
688
+ var FLOOR_BUTTON_CLASS = "min-h-[23px] border-0 bg-transparent px-[3px] text-xs text-[#7c827e] [font-family:inherit] focus-visible:z-[1] focus-visible:outline-[1.5px] focus-visible:outline-offset-[-1.5px] focus-visible:outline-[rgba(45,98,69,0.2)]";
689
+ var FLOOR_BUTTON_ACTIVE_CLASS = "is-active min-h-[23px] border-0 bg-[#30372f] px-[3px] text-xs text-white [font-family:inherit] focus-visible:z-[1] focus-visible:outline-[1.5px] focus-visible:outline-offset-[-1.5px] focus-visible:outline-[rgba(45,98,69,0.2)]";
639
690
  function ShopListSheet(props) {
640
691
  const { open, items, categoryTabs, activeTabCode, onSelect, onClose } = props;
641
692
  const [query, setQuery] = useState5("");
@@ -738,100 +789,111 @@ function ShopListSheet(props) {
738
789
  /* @__PURE__ */ jsxs6(
739
790
  "div",
740
791
  {
741
- className: `sg-store-list-sheet${closing ? " sg-store-list-sheet--closing" : ""}`,
792
+ className: `${SHEET_ROOT_CLASS}${closing ? " sg-store-list-sheet--closing pointer-events-none animate-[sg-shop-sheet-out_180ms_ease-in_both]" : ""}`,
742
793
  role: "presentation",
743
794
  onAnimationEnd: (event) => {
744
795
  if (closing && event.target === event.currentTarget) finishClose();
745
796
  },
746
797
  children: [
747
- /* @__PURE__ */ jsx8("div", { className: "sg-store-list-sheet__mask", "aria-hidden": "true", onClick: requestClose }),
748
- /* @__PURE__ */ jsxs6("section", { ref: panelRef, className: "sg-store-list-sheet__panel", role: "dialog", "aria-modal": "true", "aria-labelledby": titleId, children: [
749
- /* @__PURE__ */ jsxs6("header", { className: "sg-store-list-sheet__header", children: [
750
- /* @__PURE__ */ jsx8("h2", { id: titleId, children: "\u95E8\u5E97\u5BFC\u89C8" }),
751
- /* @__PURE__ */ jsx8("button", { ref: closeButtonRef, type: "button", className: "sg-store-list-sheet__close", "aria-label": "\u5173\u95ED\u95E8\u5E97\u5217\u8868", onClick: requestClose, children: /* @__PURE__ */ jsx8(X3, { size: 20, weight: "bold" }) })
752
- ] }),
753
- /* @__PURE__ */ jsxs6("div", { className: "sg-store-list-sheet__search", children: [
754
- /* @__PURE__ */ jsx8("label", { className: "sg-visually-hidden", htmlFor: searchId, children: "\u641C\u7D22\u95E8\u5E97" }),
755
- /* @__PURE__ */ jsx8(MagnifyingGlass, { size: 18, "aria-hidden": "true" }),
756
- /* @__PURE__ */ jsx8(
757
- "input",
758
- {
759
- id: searchId,
760
- type: "search",
761
- value: query,
762
- placeholder: "\u8BF7\u8F93\u5165\u8981\u641C\u7D22\u7684\u5E97\u94FA\u540D",
763
- onChange: (event) => setQuery(event.target.value)
764
- }
765
- ),
766
- query && /* @__PURE__ */ jsx8("button", { type: "button", "aria-label": "\u6E05\u7A7A\u95E8\u5E97\u641C\u7D22", onClick: () => setQuery(""), children: /* @__PURE__ */ jsx8(X3, { size: 14, weight: "bold" }) })
767
- ] }),
768
- /* @__PURE__ */ jsxs6("div", { className: "sg-store-list-sheet__content", children: [
769
- /* @__PURE__ */ jsxs6("nav", { className: "sg-store-list-sheet__categories", "aria-label": "\u6309\u95E8\u5E97\u4E1A\u6001\u7B5B\u9009", children: [
770
- /* @__PURE__ */ jsx8(
771
- "button",
772
- {
773
- type: "button",
774
- className: !sheetTabCode ? "is-active" : void 0,
775
- "aria-pressed": !sheetTabCode,
776
- onClick: () => setSheetTabCode(""),
777
- children: "\u5168\u90E8"
778
- }
779
- ),
780
- allCategories.map((tab) => {
781
- const isActive = sheetTabCode === tab.code;
782
- return /* @__PURE__ */ jsx8(
783
- "button",
798
+ /* @__PURE__ */ jsx8("div", { className: "sg-store-list-sheet__mask absolute inset-0 bg-[rgba(18,21,19,0.52)] backdrop-blur-[2px]", "aria-hidden": "true", onClick: requestClose }),
799
+ /* @__PURE__ */ jsxs6(
800
+ "section",
801
+ {
802
+ ref: panelRef,
803
+ className: `${SHEET_PANEL_CLASS} ${closing ? "animate-[sg-shop-sheet-down_180ms_ease-in_both]" : "animate-[sg-shop-sheet-in_240ms_cubic-bezier(0.22,0.72,0.24,1)_both]"}`,
804
+ role: "dialog",
805
+ "aria-modal": "true",
806
+ "aria-labelledby": titleId,
807
+ children: [
808
+ /* @__PURE__ */ jsxs6("header", { className: "sg-store-list-sheet__header flex min-h-[52px] shrink-0 items-center pt-[9px] pr-3 pb-[5px] pl-[18px]", children: [
809
+ /* @__PURE__ */ jsx8("h2", { id: titleId, className: "flex min-w-0 flex-1 items-center justify-center gap-[5px] pl-7 text-lg leading-6", children: "\u95E8\u5E97\u5BFC\u89C8" }),
810
+ /* @__PURE__ */ jsx8("button", { ref: closeButtonRef, type: "button", className: "sg-store-list-sheet__close flex size-7 shrink-0 items-center justify-center rounded-full border-0 bg-transparent p-0 text-[#343936] focus-visible:outline-[1.5px] focus-visible:outline-offset-[1px] focus-visible:outline-[rgba(9,107,250,0.28)]", "aria-label": "\u5173\u95ED\u95E8\u5E97\u5217\u8868", onClick: requestClose, children: /* @__PURE__ */ jsx8(X3, { size: 20, weight: "bold" }) })
811
+ ] }),
812
+ /* @__PURE__ */ jsxs6("div", { className: "sg-store-list-sheet__search mx-[15px] mt-[2px] mb-[9px] flex min-h-[38px] shrink-0 items-center gap-[7px] rounded-[9px] bg-[#f2f3f2] px-[11px] text-[#777d79] focus-within:shadow-[0_0_0_1.5px_rgba(45,98,69,0.16)]", children: [
813
+ /* @__PURE__ */ jsx8("label", { className: "sg-visually-hidden sr-only", htmlFor: searchId, children: "\u641C\u7D22\u95E8\u5E97" }),
814
+ /* @__PURE__ */ jsx8(MagnifyingGlass, { size: 18, "aria-hidden": "true" }),
815
+ /* @__PURE__ */ jsx8(
816
+ "input",
784
817
  {
785
- type: "button",
786
- className: isActive ? "is-active" : void 0,
787
- "aria-pressed": isActive,
788
- onClick: () => setSheetTabCode(tab.code),
789
- children: tab.name
790
- },
791
- tab.code
792
- );
793
- })
794
- ] }),
795
- /* @__PURE__ */ jsxs6("div", { ref: bodyRef, className: "sg-store-list-sheet__body", children: [
796
- /* @__PURE__ */ jsxs6("p", { className: "sg-store-list-sheet__count", "aria-live": "polite", children: [
797
- "\u5F53\u524D\u663E\u793A ",
798
- filteredItems.length,
799
- " \u5BB6\u95E8\u5E97"
818
+ id: searchId,
819
+ type: "search",
820
+ value: query,
821
+ placeholder: "\u8BF7\u8F93\u5165\u8981\u641C\u7D22\u7684\u5E97\u94FA\u540D",
822
+ onChange: (event) => setQuery(event.target.value),
823
+ className: "h-[34px] min-w-0 flex-1 appearance-none rounded-none border-0 bg-transparent p-0 text-sm text-[#242724] [font-family:inherit] outline-none placeholder:text-[#a7aba8] [&::-webkit-search-cancel-button]:hidden"
824
+ }
825
+ ),
826
+ query && /* @__PURE__ */ jsx8("button", { type: "button", className: "flex size-6 shrink-0 items-center justify-center rounded-full border-0 bg-[#dadeda] p-0 text-[#5f6561]", "aria-label": "\u6E05\u7A7A\u95E8\u5E97\u641C\u7D22", onClick: () => setQuery(""), children: /* @__PURE__ */ jsx8(X3, { size: 14, weight: "bold" }) })
800
827
  ] }),
801
- filteredItems.length === 0 ? /* @__PURE__ */ jsx8("div", { className: "sg-store-list-sheet__empty", children: "\u6682\u65F6\u6CA1\u6709\u7B26\u5408\u6761\u4EF6\u7684\u95E8\u5E97" }) : /* @__PURE__ */ jsx8("ul", { className: "sg-store-list-sheet__list", children: filteredItems.map((item) => /* @__PURE__ */ jsx8("li", { children: /* @__PURE__ */ jsx8(
802
- MerchantRow,
803
- {
804
- merchant: item,
805
- className: "sg-store-list-sheet__item",
806
- onSelect: () => onSelect(item)
807
- }
808
- ) }, item.merchantId)) })
809
- ] }),
810
- showFloorRail && /* @__PURE__ */ jsxs6("nav", { className: "sg-store-list-sheet__floors", "aria-label": "\u6309\u697C\u5C42\u7B5B\u9009", children: [
811
- /* @__PURE__ */ jsx8(
812
- "button",
813
- {
814
- type: "button",
815
- className: !activeFloor ? "is-active" : void 0,
816
- "aria-pressed": !activeFloor,
817
- onClick: () => setActiveFloor(""),
818
- children: "\u5168"
819
- }
820
- ),
821
- floorNames.map((floor) => /* @__PURE__ */ jsx8(
822
- "button",
823
- {
824
- type: "button",
825
- className: activeFloor === floor ? "is-active" : void 0,
826
- "aria-pressed": activeFloor === floor,
827
- onClick: () => setActiveFloor(floor),
828
- children: floor
829
- },
830
- floor
831
- ))
832
- ] })
833
- ] })
834
- ] })
828
+ /* @__PURE__ */ jsxs6("div", { className: "sg-store-list-sheet__content relative grid min-h-0 flex-1 grid-cols-[82px_minmax(0,1fr)] overflow-hidden border-t-[0.5px] border-[#f0f1ef] max-[700px]:grid-cols-[74px_minmax(0,1fr)]", children: [
829
+ /* @__PURE__ */ jsxs6("nav", { className: "sg-store-list-sheet__categories flex min-h-0 flex-col overflow-y-auto bg-[#f5f6f7] pt-[7px] pb-[calc(22px_+_env(safe-area-inset-bottom))] [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", "aria-label": "\u6309\u95E8\u5E97\u4E1A\u6001\u7B5B\u9009", children: [
830
+ /* @__PURE__ */ jsx8(
831
+ "button",
832
+ {
833
+ type: "button",
834
+ className: !sheetTabCode ? CATEGORY_BUTTON_ACTIVE_CLASS : CATEGORY_BUTTON_CLASS,
835
+ "aria-pressed": !sheetTabCode,
836
+ onClick: () => setSheetTabCode(""),
837
+ children: "\u5168\u90E8"
838
+ }
839
+ ),
840
+ allCategories.map((tab) => {
841
+ const isActive = sheetTabCode === tab.code;
842
+ return /* @__PURE__ */ jsx8(
843
+ "button",
844
+ {
845
+ type: "button",
846
+ className: isActive ? CATEGORY_BUTTON_ACTIVE_CLASS : CATEGORY_BUTTON_CLASS,
847
+ "aria-pressed": isActive,
848
+ onClick: () => setSheetTabCode(tab.code),
849
+ children: tab.name
850
+ },
851
+ tab.code
852
+ );
853
+ })
854
+ ] }),
855
+ /* @__PURE__ */ jsxs6("div", { ref: bodyRef, className: "sg-store-list-sheet__body min-h-0 min-w-0 flex-1 overflow-y-auto bg-[#f7f8f6] px-3 pb-[calc(27px_+_env(safe-area-inset-bottom))] [scroll-padding-top:30px] [&::-webkit-scrollbar]:hidden max-[700px]:px-[9px]", children: [
856
+ /* @__PURE__ */ jsxs6("p", { className: "sg-store-list-sheet__count sticky top-0 z-[2] -mx-px bg-[rgba(247,248,246,0.96)] px-px pt-[9px] pb-[5px] text-xs leading-[15px] text-[#939894]", "aria-live": "polite", children: [
857
+ "\u5F53\u524D\u663E\u793A ",
858
+ filteredItems.length,
859
+ " \u5BB6\u95E8\u5E97"
860
+ ] }),
861
+ filteredItems.length === 0 ? /* @__PURE__ */ jsx8("div", { className: "sg-store-list-sheet__empty px-2.5 py-16 text-center text-sm text-secondary-foreground", children: "\u6682\u65F6\u6CA1\u6709\u7B26\u5408\u6761\u4EF6\u7684\u95E8\u5E97" }) : /* @__PURE__ */ jsx8("ul", { className: "sg-store-list-sheet__list m-0 flex list-none flex-col gap-2 p-0", children: filteredItems.map((item) => /* @__PURE__ */ jsx8("li", { className: "border-0 [scroll-margin-top:32px]", children: /* @__PURE__ */ jsx8(
862
+ MerchantRow,
863
+ {
864
+ merchant: item,
865
+ className: "sg-store-list-sheet__item min-h-[86px] items-center rounded-[9px] bg-white p-[9px] shadow-[0_2px_8px_rgba(34,42,37,0.05)] focus-visible:rounded-[8px] focus-visible:outline-offset-[1.5px] disabled:cursor-default disabled:opacity-72",
866
+ onSelect: () => onSelect(item)
867
+ }
868
+ ) }, item.merchantId)) })
869
+ ] }),
870
+ showFloorRail && /* @__PURE__ */ jsxs6("nav", { className: "sg-store-list-sheet__floors absolute right-1 bottom-[calc(30px_+_env(safe-area-inset-bottom))] z-[3] flex w-[35px] flex-col overflow-hidden rounded-[15px] border-[0.5px] border-[#eceeeb] bg-[rgba(255,255,255,0.95)] py-1 shadow-[0_3px_10px_rgba(29,36,31,0.12)]", "aria-label": "\u6309\u697C\u5C42\u7B5B\u9009", children: [
871
+ /* @__PURE__ */ jsx8(
872
+ "button",
873
+ {
874
+ type: "button",
875
+ className: !activeFloor ? FLOOR_BUTTON_ACTIVE_CLASS : FLOOR_BUTTON_CLASS,
876
+ "aria-pressed": !activeFloor,
877
+ onClick: () => setActiveFloor(""),
878
+ children: "\u5168"
879
+ }
880
+ ),
881
+ floorNames.map((floor) => /* @__PURE__ */ jsx8(
882
+ "button",
883
+ {
884
+ type: "button",
885
+ className: activeFloor === floor ? FLOOR_BUTTON_ACTIVE_CLASS : FLOOR_BUTTON_CLASS,
886
+ "aria-pressed": activeFloor === floor,
887
+ onClick: () => setActiveFloor(floor),
888
+ children: floor
889
+ },
890
+ floor
891
+ ))
892
+ ] })
893
+ ] })
894
+ ]
895
+ }
896
+ )
835
897
  ]
836
898
  }
837
899
  ),
@@ -843,6 +905,8 @@ function ShopListSheet(props) {
843
905
  import { httpGet } from "@tbox.cn/app-agent-sdk-client";
844
906
  import { Fragment as Fragment2, jsx as jsx9, jsxs as jsxs7 } from "react/jsx-runtime";
845
907
  var PREVIEW_ITEM_COUNT = 3;
908
+ var TAB_CLASS = "sg-rm-tab relative flex min-h-7 shrink-0 cursor-pointer items-center justify-center border-0 bg-transparent px-px pb-[7px] text-xs font-medium whitespace-nowrap text-[#6b706d] transition-colors duration-150 [font-family:inherit] tracking-normal";
909
+ var TAB_ACTIVE_CLASS = "sg-rm-tab sg-rm-tab--active relative flex min-h-7 shrink-0 cursor-pointer items-center justify-center border-0 bg-transparent px-px pb-[7px] text-xs font-semibold whitespace-nowrap text-foreground transition-colors duration-150 [font-family:inherit] tracking-normal after:absolute after:bottom-0 after:left-1/2 after:h-[3px] after:w-[18px] after:-translate-x-1/2 after:rounded-[1.5px] after:bg-[#30372f]";
846
910
  function projectSheetDataFromItem(merchant) {
847
911
  return {
848
912
  name: merchant.name,
@@ -920,15 +984,15 @@ function ShopListCard(props) {
920
984
  });
921
985
  }, [data]);
922
986
  return /* @__PURE__ */ jsxs7(Fragment2, { children: [
923
- /* @__PURE__ */ jsxs7("section", { className: "sg-card sg-recommend-merchants sg-shop-list", children: [
987
+ /* @__PURE__ */ jsxs7("section", { className: "sg-card sg-recommend-merchants sg-shop-list overflow-hidden rounded-[14px] px-3 pb-3 text-foreground", children: [
924
988
  /* @__PURE__ */ jsx9(ShopGuideHeader, { subtitle: data.summary ?? "\u6309\u54C1\u7C7B\u5FEB\u901F\u627E\u5230\u60F3\u901B\u7684\u95E8\u5E97" }),
925
- allTabs.length > 0 && /* @__PURE__ */ jsxs7("div", { className: "sg-rm-tabs", "aria-label": "\u6309\u95E8\u5E97\u54C1\u7C7B\u7B5B\u9009", children: [
989
+ allTabs.length > 0 && /* @__PURE__ */ jsxs7("div", { className: "sg-rm-tabs mt-[9px] flex gap-4 overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", "aria-label": "\u6309\u95E8\u5E97\u54C1\u7C7B\u7B5B\u9009", children: [
926
990
  /* @__PURE__ */ jsx9(
927
991
  "button",
928
992
  {
929
993
  type: "button",
930
994
  "aria-pressed": !activeTabCode,
931
- className: `sg-rm-tab${!activeTabCode ? " sg-rm-tab--active" : ""}`,
995
+ className: !activeTabCode ? TAB_ACTIVE_CLASS : TAB_CLASS,
932
996
  onClick: () => setActiveTabCode(""),
933
997
  children: /* @__PURE__ */ jsx9("span", { children: "\u5168\u90E8" })
934
998
  }
@@ -940,7 +1004,7 @@ function ShopListCard(props) {
940
1004
  {
941
1005
  type: "button",
942
1006
  "aria-pressed": isActive,
943
- className: `sg-rm-tab${isActive ? " sg-rm-tab--active" : ""}`,
1007
+ className: isActive ? TAB_ACTIVE_CLASS : TAB_CLASS,
944
1008
  onClick: () => setActiveTabCode(tab.code),
945
1009
  children: /* @__PURE__ */ jsx9("span", { children: tab.name })
946
1010
  },
@@ -948,14 +1012,21 @@ function ShopListCard(props) {
948
1012
  );
949
1013
  })
950
1014
  ] }),
951
- filteredItems.length === 0 ? /* @__PURE__ */ jsx9("div", { className: "sg-empty", children: data.noResultsReason ?? "\u6682\u65F6\u6CA1\u6709\u7B26\u5408\u6761\u4EF6\u7684\u95E8\u5E97" }) : /* @__PURE__ */ jsxs7(Fragment2, { children: [
1015
+ filteredItems.length === 0 ? /* @__PURE__ */ jsx9("div", { className: "sg-empty py-6 text-center text-sm text-muted-foreground", children: data.noResultsReason ?? "\u6682\u65F6\u6CA1\u6709\u7B26\u5408\u6761\u4EF6\u7684\u95E8\u5E97" }) : /* @__PURE__ */ jsxs7(Fragment2, { children: [
952
1016
  /* @__PURE__ */ jsx9(ShopGuideSectionLabel, {}),
953
- /* @__PURE__ */ jsx9("ul", { className: "sg-rm-list", children: previewItems.map((item) => /* @__PURE__ */ jsx9("li", { className: "sg-rm-item", children: /* @__PURE__ */ jsx9(MerchantRow, { merchant: item, onSelect: () => openDetail(item) }) }, item.merchantId)) }),
1017
+ /* @__PURE__ */ jsx9("ul", { className: "sg-rm-list mt-1 mr-0 mb-0 ml-0 flex list-none flex-col p-0", children: previewItems.map((item) => /* @__PURE__ */ jsx9("li", { className: "sg-rm-item py-2.5", children: /* @__PURE__ */ jsx9(
1018
+ MerchantRow,
1019
+ {
1020
+ merchant: item,
1021
+ className: "items-start bg-transparent p-0 focus-visible:rounded-[6px] focus-visible:outline-offset-[3px]",
1022
+ onSelect: () => openDetail(item)
1023
+ }
1024
+ ) }, item.merchantId)) }),
954
1025
  filteredItems.length > PREVIEW_ITEM_COUNT && /* @__PURE__ */ jsxs7(
955
1026
  "button",
956
1027
  {
957
1028
  type: "button",
958
- className: "sg-rm-view-all",
1029
+ className: "sg-rm-view-all mt-[2px] flex min-h-8 w-full cursor-pointer items-center justify-center gap-[2px] border-0 bg-transparent p-0 text-xs text-[#686d69] focus-visible:rounded-[5px] focus-visible:outline-[1.5px] focus-visible:outline-offset-[1px] focus-visible:outline-[rgba(9,107,250,0.28)] [font-family:inherit] tracking-normal",
959
1030
  onClick: () => setOverlay({ kind: "list" }),
960
1031
  children: [
961
1032
  "\u67E5\u770B\u5168\u90E8\u95E8\u5E97",
@@ -1056,16 +1127,23 @@ function ShopDetailCard(props) {
1056
1127
  const hoursText = data.contactInfo?.find((item) => /hours|营业时间/i.test(item.channel))?.value ?? "\u5468\u4E00-\u5468\u65E5 10:00-22:00";
1057
1128
  const phone = data.contactInfo?.find((item) => /phone|电话/i.test(item.channel));
1058
1129
  return /* @__PURE__ */ jsxs8(Fragment3, { children: [
1059
- /* @__PURE__ */ jsxs8("section", { className: "sg-card sg-recommend-merchants sg-shop-detail", children: [
1130
+ /* @__PURE__ */ jsxs8("section", { className: "sg-card sg-recommend-merchants sg-shop-detail overflow-hidden rounded-[14px] px-3 pb-3 text-foreground", children: [
1060
1131
  /* @__PURE__ */ jsx10(ShopGuideHeader, { subtitle: data.brand ?? data.businessCategories.join(" \xB7 ") ?? "\u95E8\u5E97\u8BE6\u60C5" }),
1061
- /* @__PURE__ */ jsx10("ul", { className: "sg-rm-list", children: /* @__PURE__ */ jsx10("li", { className: "sg-rm-item", children: /* @__PURE__ */ jsx10(MerchantRow, { merchant: data, onSelect: openDetail }) }) }),
1062
- (hoursText || phone) && /* @__PURE__ */ jsxs8("div", { className: "sg-shop-detail__facts", children: [
1063
- /* @__PURE__ */ jsxs8("span", { className: "sg-shop-detail__fact", children: [
1064
- /* @__PURE__ */ jsx10(Clock2, { size: 15, weight: "duotone", "aria-hidden": "true" }),
1132
+ /* @__PURE__ */ jsx10("ul", { className: "sg-rm-list mt-1 mr-0 mb-0 ml-0 flex list-none flex-col p-0", children: /* @__PURE__ */ jsx10("li", { className: "sg-rm-item py-2.5", children: /* @__PURE__ */ jsx10(
1133
+ MerchantRow,
1134
+ {
1135
+ merchant: data,
1136
+ className: "items-start bg-transparent p-0 focus-visible:rounded-[6px] focus-visible:outline-offset-[3px]",
1137
+ onSelect: openDetail
1138
+ }
1139
+ ) }) }),
1140
+ (hoursText || phone) && /* @__PURE__ */ jsxs8("div", { className: "sg-shop-detail__facts flex flex-wrap gap-x-2.5 gap-y-1 px-3 pb-[9px]", children: [
1141
+ /* @__PURE__ */ jsxs8("span", { className: "sg-shop-detail__fact inline-flex items-center gap-[3px] text-xs leading-[13px] text-[rgba(11,15,23,0.72)]", children: [
1142
+ /* @__PURE__ */ jsx10(Clock2, { size: 15, weight: "duotone", "aria-hidden": "true", className: "shrink-0 text-[rgba(35,104,236,0.8)]" }),
1065
1143
  hoursText
1066
1144
  ] }),
1067
- phone && /* @__PURE__ */ jsxs8("span", { className: "sg-shop-detail__fact", children: [
1068
- /* @__PURE__ */ jsx10(Phone2, { size: 15, weight: "duotone", "aria-hidden": "true" }),
1145
+ phone && /* @__PURE__ */ jsxs8("span", { className: "sg-shop-detail__fact inline-flex items-center gap-[3px] text-xs leading-[13px] text-[rgba(11,15,23,0.72)]", children: [
1146
+ /* @__PURE__ */ jsx10(Phone2, { size: 15, weight: "duotone", "aria-hidden": "true", className: "shrink-0 text-[rgba(35,104,236,0.8)]" }),
1069
1147
  phone.value
1070
1148
  ] })
1071
1149
  ] })
@@ -1236,20 +1314,20 @@ function CategoryListCard(props) {
1236
1314
  visible: true
1237
1315
  });
1238
1316
  }
1239
- return /* @__PURE__ */ jsxs9("section", { className: "sg-card sg-category-list", children: [
1240
- /* @__PURE__ */ jsx11("div", { className: "sg-card-title", children: "\u4E1A\u6001\u5206\u7C7B" }),
1241
- /* @__PURE__ */ jsx11("ul", { className: "sg-category-grid", children: visible.map((c) => /* @__PURE__ */ jsx11("li", { children: /* @__PURE__ */ jsxs9(
1317
+ return /* @__PURE__ */ jsxs9("section", { className: "sg-card sg-category-list p-5 text-foreground", children: [
1318
+ /* @__PURE__ */ jsx11("div", { className: "sg-card-title mb-2 flex items-center gap-2 text-lg leading-6 font-bold text-foreground before:h-4 before:w-1 before:shrink-0 before:rounded-[2px] before:bg-[var(--tbox-domain-sg-accent,#096bfa)]", children: "\u4E1A\u6001\u5206\u7C7B" }),
1319
+ /* @__PURE__ */ jsx11("ul", { className: "sg-category-grid m-0 grid list-none grid-cols-3 gap-2 p-0", children: visible.map((c) => /* @__PURE__ */ jsx11("li", { children: /* @__PURE__ */ jsxs9(
1242
1320
  "button",
1243
1321
  {
1244
1322
  type: "button",
1245
- className: "sg-category-cell",
1323
+ className: "sg-category-cell flex w-full cursor-pointer flex-col items-center gap-[5px] rounded-[12px] border-0 bg-[var(--tbox-domain-sg-surface,#f7faff)] px-1 pt-3.5 pb-2.5 text-center transition-[transform,background-color] duration-[120ms] active:scale-95 active:bg-[var(--tbox-domain-sg-border,#cfe0f7)] disabled:cursor-not-allowed disabled:opacity-50 disabled:active:scale-100 disabled:active:bg-[var(--tbox-domain-sg-surface,#f7faff)] [font-family:inherit] tracking-normal",
1246
1324
  disabled: isHistory,
1247
1325
  onClick: () => handleCategoryClick(c),
1248
1326
  "aria-label": `\u67E5\u770B${c.name}\uFF08${c.merchantCount} \u5BB6\u95E8\u5E97\uFF09`,
1249
1327
  children: [
1250
- /* @__PURE__ */ jsx11("span", { className: "sg-category-icon-wrap", "aria-hidden": "true", children: /* @__PURE__ */ jsx11("span", { className: "sg-category-icon", children: categoryIcon(c.code) }) }),
1251
- /* @__PURE__ */ jsx11("span", { className: "sg-category-name", children: c.name }),
1252
- c.merchantCount > 0 && /* @__PURE__ */ jsxs9("span", { className: "sg-category-count", children: [
1328
+ /* @__PURE__ */ jsx11("span", { className: "sg-category-icon-wrap flex size-12 items-center justify-center rounded-full bg-[rgba(9,107,250,0.08)]", "aria-hidden": "true", children: /* @__PURE__ */ jsx11("span", { className: "sg-category-icon text-2xl leading-none select-none", children: categoryIcon(c.code) }) }),
1329
+ /* @__PURE__ */ jsx11("span", { className: "sg-category-name text-sm leading-4.5 font-semibold break-all text-foreground", children: c.name }),
1330
+ c.merchantCount > 0 && /* @__PURE__ */ jsxs9("span", { className: "sg-category-count text-xs leading-3.5 text-secondary-foreground", children: [
1253
1331
  c.merchantCount,
1254
1332
  " \u5BB6"
1255
1333
  ] })
@@ -1260,7 +1338,7 @@ function CategoryListCard(props) {
1260
1338
  "button",
1261
1339
  {
1262
1340
  type: "button",
1263
- className: "sg-category-toggle",
1341
+ className: "sg-category-toggle mt-2.5 flex w-full cursor-pointer items-center justify-center gap-1 rounded-[8px] border-[0.5px] border-border bg-transparent py-2 text-xs text-secondary-foreground [font-family:inherit] tracking-normal",
1264
1342
  "aria-expanded": expanded,
1265
1343
  onClick: () => setExpanded((v) => !v),
1266
1344
  children: [
@@ -1268,7 +1346,7 @@ function CategoryListCard(props) {
1268
1346
  CaretDown,
1269
1347
  {
1270
1348
  size: 14,
1271
- className: "sg-category-toggle__icon",
1349
+ className: "sg-category-toggle__icon transition-transform duration-150 data-[rotated]:rotate-180",
1272
1350
  "data-rotated": expanded || void 0
1273
1351
  }
1274
1352
  ),
@@ -1276,15 +1354,15 @@ function CategoryListCard(props) {
1276
1354
  ]
1277
1355
  }
1278
1356
  ),
1279
- data.buildings && data.buildings.length > 0 && /* @__PURE__ */ jsxs9("div", { className: "sg-category-floors", children: [
1280
- /* @__PURE__ */ jsx11("div", { className: "sg-category-floors__title", children: "\u697C\u5C42\u5BFC\u89C8" }),
1281
- data.buildings.map((building) => /* @__PURE__ */ jsxs9("div", { className: "sg-category-floors__building", children: [
1282
- data.buildings.length > 1 && /* @__PURE__ */ jsx11("div", { className: "sg-category-floors__building-name", children: building.buildingName }),
1283
- /* @__PURE__ */ jsx11("div", { className: "sg-category-floors__floor-list", children: building.floors.map((floor) => /* @__PURE__ */ jsxs9(
1357
+ data.buildings && data.buildings.length > 0 && /* @__PURE__ */ jsxs9("div", { className: "sg-category-floors mt-3 border-t-[0.5px] border-border pt-2.5", children: [
1358
+ /* @__PURE__ */ jsx11("div", { className: "sg-category-floors__title mb-2 text-xs font-medium text-secondary-foreground", children: "\u697C\u5C42\u5BFC\u89C8" }),
1359
+ data.buildings.map((building) => /* @__PURE__ */ jsxs9("div", { className: "sg-category-floors__building mb-2", children: [
1360
+ data.buildings.length > 1 && /* @__PURE__ */ jsx11("div", { className: "sg-category-floors__building-name mb-[5px] text-xs text-muted-foreground", children: building.buildingName }),
1361
+ /* @__PURE__ */ jsx11("div", { className: "sg-category-floors__floor-list flex flex-wrap gap-1.5", children: building.floors.map((floor) => /* @__PURE__ */ jsxs9(
1284
1362
  "button",
1285
1363
  {
1286
1364
  type: "button",
1287
- className: "sg-category-floor-chip",
1365
+ className: "sg-category-floor-chip inline-flex cursor-pointer items-center gap-[3px] rounded-[20px] border-[0.5px] border-border bg-card px-2.5 py-[5px] text-xs text-foreground transition-[background-color,border-color] duration-100 active:border-[var(--tbox-domain-sg-accent,#096bfa)] active:bg-[#e8f0fe] disabled:cursor-not-allowed disabled:opacity-50 [font-family:inherit] tracking-normal",
1288
1366
  disabled: isHistory,
1289
1367
  onClick: () => {
1290
1368
  if (isHistory) return;
@@ -1296,7 +1374,7 @@ function CategoryListCard(props) {
1296
1374
  },
1297
1375
  children: [
1298
1376
  /* @__PURE__ */ jsx11("span", { className: "sg-category-floor-chip__name", children: floor.floorName }),
1299
- floor.merchantCount > 0 && /* @__PURE__ */ jsx11("span", { className: "sg-category-floor-chip__count", children: floor.merchantCount })
1377
+ floor.merchantCount > 0 && /* @__PURE__ */ jsx11("span", { className: "sg-category-floor-chip__count text-xs text-muted-foreground", children: floor.merchantCount })
1300
1378
  ]
1301
1379
  },
1302
1380
  floor.floorCode
@@ -1310,6 +1388,15 @@ var category_list_default = CategoryListCard;
1310
1388
  // src/client/cards/product-comparison/index.tsx
1311
1389
  import { useEffect as useEffect3, useState as useState9 } from "react";
1312
1390
  import { jsx as jsx12, jsxs as jsxs10 } from "react/jsx-runtime";
1391
+ var AVAILABILITY_BASE_CLASS3 = "sg-availability mt-1 inline-block text-xs text-secondary-foreground";
1392
+ var AVAILABILITY_TONE_CLASS3 = {
1393
+ in_stock: "sg-availability-in_stock text-success",
1394
+ available: "sg-availability-available text-success",
1395
+ out_of_stock: "sg-availability-out_of_stock text-warning",
1396
+ limited: "sg-availability-limited",
1397
+ unknown: "sg-availability-unknown"
1398
+ };
1399
+ var CELL_CLASS = "border-b-[0.5px] border-border p-2 text-left align-top";
1313
1400
  function ProductComparisonCard(props) {
1314
1401
  const { data } = props;
1315
1402
  const [stale, setStale] = useState9(false);
@@ -1321,37 +1408,37 @@ function ProductComparisonCard(props) {
1321
1408
  return () => window.clearTimeout(timer);
1322
1409
  }, [data.refreshRequiredAt]);
1323
1410
  const attrNames = Array.from(new Set(data.products.flatMap((p) => p.attributes.map((a) => a.name))));
1324
- return /* @__PURE__ */ jsxs10("section", { className: `sg-card sg-product-comparison${stale ? " sg-product-comparison--stale" : ""}`, children: [
1325
- /* @__PURE__ */ jsx12("div", { className: "sg-card-title", children: "\u5546\u54C1\u5BF9\u6BD4" }),
1326
- stale && /* @__PURE__ */ jsx12("div", { className: "sg-stale-notice", children: /* @__PURE__ */ jsx12("span", { children: "\u5BF9\u6BD4\u6570\u636E\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u53D1\u8D77\u5BF9\u6BD4" }) }),
1327
- /* @__PURE__ */ jsx12("div", { className: "sg-compare-wrap", children: /* @__PURE__ */ jsxs10("table", { className: "sg-compare", children: [
1411
+ return /* @__PURE__ */ jsxs10("section", { className: `sg-card sg-product-comparison p-5 text-foreground ${stale ? " sg-product-comparison--stale" : ""}`, children: [
1412
+ /* @__PURE__ */ jsx12("div", { className: "sg-card-title mb-2 flex items-center gap-2 text-lg leading-6 font-bold text-foreground before:h-4 before:w-1 before:shrink-0 before:rounded-[2px] before:bg-[var(--tbox-domain-sg-accent,#096bfa)]", children: "\u5546\u54C1\u5BF9\u6BD4" }),
1413
+ stale && /* @__PURE__ */ jsx12("div", { className: "sg-stale-notice mb-2.5 rounded-[8px] bg-warning-soft px-2.5 py-2 text-xs leading-4.5 text-warning", children: /* @__PURE__ */ jsx12("span", { children: "\u5BF9\u6BD4\u6570\u636E\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u91CD\u65B0\u53D1\u8D77\u5BF9\u6BD4" }) }),
1414
+ /* @__PURE__ */ jsx12("div", { className: "sg-compare-wrap overflow-x-auto", children: /* @__PURE__ */ jsxs10("table", { className: `sg-compare w-full border-collapse text-xs ${stale ? " opacity-60" : ""}`, children: [
1328
1415
  /* @__PURE__ */ jsx12("thead", { children: /* @__PURE__ */ jsxs10("tr", { children: [
1329
- /* @__PURE__ */ jsx12("th", { scope: "col", className: "sg-compare__label" }),
1330
- data.products.map((p) => /* @__PURE__ */ jsxs10("th", { scope: "col", children: [
1331
- /* @__PURE__ */ jsx12(ImageWithFallback, { src: p.imageUrl, alt: p.name, className: "sg-compare__img", size: 40 }),
1332
- /* @__PURE__ */ jsx12("div", { className: "sg-compare__name", children: p.name }),
1333
- /* @__PURE__ */ jsx12("div", { className: "sg-price-sale", children: p.price.sale?.display ?? "\u2014" })
1416
+ /* @__PURE__ */ jsx12("th", { scope: "col", className: `sg-compare__label ${CELL_CLASS} font-medium whitespace-nowrap text-secondary-foreground` }),
1417
+ data.products.map((p) => /* @__PURE__ */ jsxs10("th", { scope: "col", className: CELL_CLASS, children: [
1418
+ /* @__PURE__ */ jsx12(ImageWithFallback, { src: p.imageUrl, alt: p.name, className: "sg-compare__img size-14 max-w-full rounded-[8px] object-cover", size: 40 }),
1419
+ /* @__PURE__ */ jsx12("div", { className: "sg-compare__name mt-1 leading-4.5 font-semibold text-foreground", children: p.name }),
1420
+ /* @__PURE__ */ jsx12("div", { className: "sg-price-sale text-base font-bold tabular-nums text-[#ef4f43]", children: p.price.sale?.display ?? "\u2014" })
1334
1421
  ] }, p.productId))
1335
1422
  ] }) }),
1336
1423
  /* @__PURE__ */ jsxs10("tbody", { children: [
1337
1424
  /* @__PURE__ */ jsxs10("tr", { children: [
1338
- /* @__PURE__ */ jsx12("th", { scope: "row", className: "sg-compare__label", children: "\u5E93\u5B58" }),
1339
- data.products.map((p) => /* @__PURE__ */ jsx12("td", { children: /* @__PURE__ */ jsx12("span", { className: `sg-availability sg-availability-${p.availability.status}`, children: p.availability.label }) }, p.productId))
1425
+ /* @__PURE__ */ jsx12("th", { scope: "row", className: `sg-compare__label ${CELL_CLASS} font-medium whitespace-nowrap text-secondary-foreground`, children: "\u5E93\u5B58" }),
1426
+ data.products.map((p) => /* @__PURE__ */ jsx12("td", { className: CELL_CLASS, children: /* @__PURE__ */ jsx12("span", { className: `${AVAILABILITY_BASE_CLASS3} ${AVAILABILITY_TONE_CLASS3[p.availability.status] ?? ""}`, children: p.availability.label }) }, p.productId))
1340
1427
  ] }),
1341
1428
  attrNames.map((name) => /* @__PURE__ */ jsxs10("tr", { children: [
1342
- /* @__PURE__ */ jsx12("th", { scope: "row", className: "sg-compare__label", children: name }),
1429
+ /* @__PURE__ */ jsx12("th", { scope: "row", className: `sg-compare__label ${CELL_CLASS} font-medium whitespace-nowrap text-secondary-foreground`, children: name }),
1343
1430
  data.products.map((p) => {
1344
1431
  const attr = p.attributes.find((a) => a.name === name);
1345
- return /* @__PURE__ */ jsx12("td", { className: attr ? "" : "sg-compare__cell-empty", children: attr?.value ?? "\u2014" }, p.productId);
1432
+ return /* @__PURE__ */ jsx12("td", { className: `${CELL_CLASS}${attr ? "" : " sg-compare__cell-empty text-muted-foreground"}`, children: attr?.value ?? "\u2014" }, p.productId);
1346
1433
  })
1347
1434
  ] }, name))
1348
1435
  ] })
1349
1436
  ] }) }),
1350
- data.products.some((p) => p.caveats.length > 0) && /* @__PURE__ */ jsx12("div", { className: "sg-item-caveats", children: data.products.flatMap((p) => p.caveats.map((c, i) => ({ key: `${p.productId}-${i}`, text: c }))).map(({ key, text }) => /* @__PURE__ */ jsxs10("div", { className: "sg-caveat-item", children: [
1437
+ data.products.some((p) => p.caveats.length > 0) && /* @__PURE__ */ jsx12("div", { className: "sg-item-caveats mt-1.5", children: data.products.flatMap((p) => p.caveats.map((c, i) => ({ key: `${p.productId}-${i}`, text: c }))).map(({ key, text }) => /* @__PURE__ */ jsxs10("div", { className: "sg-caveat-item text-xs leading-4 text-muted-foreground", children: [
1351
1438
  "\u26A0\uFE0F ",
1352
1439
  text
1353
1440
  ] }, key)) }),
1354
- /* @__PURE__ */ jsx12("span", { className: "sg-compare__stale-marker", hidden: !stale, children: "\u5BF9\u6BD4\u6570\u636E\u53EF\u80FD\u5DF2\u8FC7\u671F" })
1441
+ /* @__PURE__ */ jsx12("span", { className: "sg-compare__stale-marker mt-2 block text-xs text-warning", hidden: !stale, children: "\u5BF9\u6BD4\u6570\u636E\u53EF\u80FD\u5DF2\u8FC7\u671F" })
1355
1442
  ] });
1356
1443
  }
1357
1444
  var product_comparison_default = ProductComparisonCard;
@@ -1366,42 +1453,42 @@ function MallDirectoryCard(props) {
1366
1453
  const [openBuilding, setOpenBuilding] = useState10(
1367
1454
  data.buildings.length > 0 ? data.buildings[0].buildingCode : null
1368
1455
  );
1369
- return /* @__PURE__ */ jsxs11("section", { className: "sg-card sg-mall-directory", children: [
1370
- /* @__PURE__ */ jsxs11("div", { className: "sg-card-title", children: [
1456
+ return /* @__PURE__ */ jsxs11("section", { className: "sg-card sg-mall-directory p-5 text-foreground", children: [
1457
+ /* @__PURE__ */ jsxs11("div", { className: "sg-card-title mb-2 flex items-center gap-2 text-lg leading-6 font-bold text-foreground before:h-4 before:w-1 before:shrink-0 before:rounded-[2px] before:bg-[var(--tbox-domain-sg-accent,#096bfa)]", children: [
1371
1458
  data.mallName,
1372
1459
  " \xB7 \u697C\u5C42\u76EE\u5F55"
1373
1460
  ] }),
1374
1461
  data.buildings.map((b) => {
1375
1462
  const open = openBuilding === b.buildingCode;
1376
- return /* @__PURE__ */ jsxs11("div", { className: "sg-dir-building", children: [
1463
+ return /* @__PURE__ */ jsxs11("div", { className: "sg-dir-building mt-2 overflow-hidden rounded-[10px] border-[0.5px] border-border", children: [
1377
1464
  /* @__PURE__ */ jsxs11(
1378
1465
  "button",
1379
1466
  {
1380
1467
  type: "button",
1381
- className: "sg-dir-building__head",
1468
+ className: "sg-dir-building__head flex w-full cursor-pointer items-center gap-2 border-0 bg-card p-3 text-left text-foreground [font-family:inherit] tracking-normal",
1382
1469
  "aria-expanded": open,
1383
1470
  onClick: () => setOpenBuilding(open ? null : b.buildingCode),
1384
1471
  children: [
1385
- /* @__PURE__ */ jsx13(Storefront2, { size: 18 }),
1386
- /* @__PURE__ */ jsx13("span", { className: "sg-dir-building__name", children: b.buildingName }),
1387
- /* @__PURE__ */ jsxs11("span", { className: "sg-dir-building__count", children: [
1472
+ /* @__PURE__ */ jsx13(Storefront2, { size: 18, className: "text-[var(--tbox-domain-sg-accent,#096bfa)]" }),
1473
+ /* @__PURE__ */ jsx13("span", { className: "sg-dir-building__name min-w-0 flex-1 text-sm font-semibold", children: b.buildingName }),
1474
+ /* @__PURE__ */ jsxs11("span", { className: "sg-dir-building__count text-xs text-muted-foreground", children: [
1388
1475
  b.floors.length,
1389
1476
  " \u5C42"
1390
1477
  ] }),
1391
- /* @__PURE__ */ jsx13(CaretDown2, { size: 16, className: "sg-dir-building__chevron", "data-rotated": open || void 0 })
1478
+ /* @__PURE__ */ jsx13(CaretDown2, { size: 16, className: "sg-dir-building__chevron text-[var(--tbox-domain-sg-accent,#096bfa)] data-[rotated]:rotate-180 data-[rotated]:transition-transform", "data-rotated": open || void 0 })
1392
1479
  ]
1393
1480
  }
1394
1481
  ),
1395
- open && /* @__PURE__ */ jsx13("ul", { className: "sg-dir-floors", children: b.floors.map((f) => /* @__PURE__ */ jsxs11("li", { className: "sg-dir-floor", children: [
1396
- /* @__PURE__ */ jsxs11("div", { className: "sg-dir-floor__info", children: [
1397
- /* @__PURE__ */ jsx13("span", { className: "sg-dir-floor__name", children: f.floorName }),
1398
- /* @__PURE__ */ jsx13("span", { className: "sg-dir-floor__cats", children: f.businessCategories.join(" / ") || `${f.merchantCount} \u5BB6\u5546\u6237` })
1482
+ open && /* @__PURE__ */ jsx13("ul", { className: "sg-dir-floors m-0 list-none border-t-[0.5px] border-border bg-muted p-0", children: b.floors.map((f) => /* @__PURE__ */ jsxs11("li", { className: "sg-dir-floor flex items-center justify-between gap-2 border-b-[0.5px] border-border px-3 py-2 last:border-b-0", children: [
1483
+ /* @__PURE__ */ jsxs11("div", { className: "sg-dir-floor__info grid min-w-0 gap-1", children: [
1484
+ /* @__PURE__ */ jsx13("span", { className: "sg-dir-floor__name text-sm font-medium text-foreground", children: f.floorName }),
1485
+ /* @__PURE__ */ jsx13("span", { className: "sg-dir-floor__cats truncate text-xs text-muted-foreground", children: f.businessCategories.join(" / ") || `${f.merchantCount} \u5BB6\u5546\u6237` })
1399
1486
  ] }),
1400
1487
  f.itemActions && f.itemActions.length > 0 && /* @__PURE__ */ jsx13(
1401
1488
  "button",
1402
1489
  {
1403
1490
  type: "button",
1404
- className: "sg-chip sg-dir-floor__action",
1491
+ className: "sg-chip sg-dir-floor__action inline-flex min-h-[28px] shrink-0 cursor-pointer items-center justify-center rounded-[9px] border border-border bg-[var(--tbox-domain-sg-surface,#f7faff)] px-2.5 text-xs font-medium whitespace-nowrap text-[var(--tbox-domain-sg-accent,#096bfa)] disabled:cursor-not-allowed disabled:opacity-50 [font-family:inherit] tracking-normal",
1405
1492
  disabled: isHistory,
1406
1493
  onClick: () => {
1407
1494
  if (isHistory) return;
@@ -1424,28 +1511,47 @@ var mall_directory_default = MallDirectoryCard;
1424
1511
  // src/client/cards/nearby-mall-list/index.tsx
1425
1512
  import { ItemActionsRow as ItemActionsRow4 } from "@tbox.cn/app-agent-sdk-client";
1426
1513
  import { jsx as jsx14, jsxs as jsxs12 } from "react/jsx-runtime";
1514
+ var STATUS_BASE_CLASS2 = "sg-status inline-block rounded-full px-2 py-0.5 text-xs leading-4 whitespace-nowrap";
1515
+ var STATUS_TONE_CLASS2 = {
1516
+ enabled: "sg-status-enabled text-success bg-success-soft",
1517
+ available: "sg-status-available text-success bg-success-soft",
1518
+ open: "sg-status-open bg-[#e9f8ef] text-[#237a48]",
1519
+ offline: "sg-status-offline bg-[#fff4df] text-[#986415]",
1520
+ closed: "sg-status-closed bg-[#fff4df] text-[#986415]",
1521
+ disabled: "sg-status-disabled bg-[#fff4df] text-[#986415]",
1522
+ unknown: "sg-status-unknown bg-[#fff4df] text-[#986415]"
1523
+ };
1427
1524
  function NearbyMallListCard(props) {
1428
1525
  const { data, cardId, isHistory } = props;
1429
1526
  if (data.malls.length === 0) {
1430
- return /* @__PURE__ */ jsx14("section", { className: "sg-card", children: /* @__PURE__ */ jsx14("div", { className: "sg-empty", children: "\u6682\u65E0\u9644\u8FD1\u5546\u573A" }) });
1527
+ return /* @__PURE__ */ jsx14("section", { className: "sg-card p-5 text-foreground", children: /* @__PURE__ */ jsx14("div", { className: "sg-empty py-6 text-center text-sm text-muted-foreground", children: "\u6682\u65E0\u9644\u8FD1\u5546\u573A" }) });
1431
1528
  }
1432
- return /* @__PURE__ */ jsxs12("section", { className: "sg-card sg-nearby-malls", children: [
1433
- /* @__PURE__ */ jsx14("div", { className: "sg-card-title", children: "\u9644\u8FD1\u5546\u573A" }),
1434
- data.query && /* @__PURE__ */ jsxs12("div", { className: "sg-card-summary", children: [
1529
+ return /* @__PURE__ */ jsxs12("section", { className: "sg-card sg-nearby-malls p-5 text-foreground", children: [
1530
+ /* @__PURE__ */ jsx14("div", { className: "sg-card-title mb-2 flex items-center gap-2 text-lg leading-6 font-bold text-foreground before:h-4 before:w-1 before:shrink-0 before:rounded-[2px] before:bg-[var(--tbox-domain-sg-accent,#096bfa)]", children: "\u9644\u8FD1\u5546\u573A" }),
1531
+ data.query && /* @__PURE__ */ jsxs12("div", { className: "sg-card-summary mb-3 text-sm text-secondary-foreground", children: [
1435
1532
  "\u67E5\u8BE2\u300C",
1436
1533
  data.query,
1437
1534
  "\u300D"
1438
1535
  ] }),
1439
- /* @__PURE__ */ jsx14("ul", { className: "sg-nearby-list", children: data.malls.map((m) => /* @__PURE__ */ jsxs12("li", { className: "sg-nearby-item", children: [
1536
+ /* @__PURE__ */ jsx14("ul", { className: "sg-nearby-list m-0 list-none p-0", children: data.malls.map((m) => /* @__PURE__ */ jsxs12("li", { className: "sg-nearby-item border-b-[0.5px] border-border py-3 last:border-b-0", children: [
1440
1537
  /* @__PURE__ */ jsxs12("div", { className: "sg-nearby-item__head", children: [
1441
- /* @__PURE__ */ jsx14("span", { className: "sg-merchant-name", children: m.name }),
1442
- /* @__PURE__ */ jsx14("span", { className: `sg-status sg-status-${m.status.code}`, children: m.status.label })
1538
+ /* @__PURE__ */ jsx14("span", { className: "sg-merchant-name min-w-0 flex-1 truncate text-base font-semibold text-foreground", children: m.name }),
1539
+ /* @__PURE__ */ jsx14("span", { className: `${STATUS_BASE_CLASS2} ${STATUS_TONE_CLASS2[m.status.code] ?? STATUS_TONE_CLASS2.unknown}`, children: m.status.label })
1443
1540
  ] }),
1444
- /* @__PURE__ */ jsxs12("div", { className: "sg-nearby-item__meta", children: [
1541
+ /* @__PURE__ */ jsxs12("div", { className: "sg-nearby-item__meta mt-1 flex justify-between gap-2 text-xs text-secondary-foreground", children: [
1445
1542
  /* @__PURE__ */ jsx14("span", { children: m.address }),
1446
- /* @__PURE__ */ jsx14("span", { className: "sg-nearby-item__distance", children: formatDistance(m.distanceKm) })
1543
+ /* @__PURE__ */ jsx14("span", { className: "sg-nearby-item__distance shrink-0 font-medium text-[var(--tbox-domain-sg-accent,#096bfa)]", children: formatDistance(m.distanceKm) })
1447
1544
  ] }),
1448
- /* @__PURE__ */ jsx14(ItemActionsRow4, { actions: m.itemActions, cardId, isHistory, className: "sg-item-actions", chipClassName: "sg-chip" })
1545
+ /* @__PURE__ */ jsx14(
1546
+ ItemActionsRow4,
1547
+ {
1548
+ actions: m.itemActions,
1549
+ cardId,
1550
+ isHistory,
1551
+ className: "sg-item-actions mt-2 flex flex-wrap gap-1.5",
1552
+ chipClassName: "sg-chip inline-flex min-h-[30px] cursor-pointer items-center justify-center rounded-[9px] border border-border bg-[var(--tbox-domain-sg-surface,#f7faff)] px-3 text-xs font-medium whitespace-nowrap text-[var(--tbox-domain-sg-accent,#096bfa)] disabled:cursor-not-allowed disabled:opacity-50 [font-family:inherit] tracking-normal"
1553
+ }
1554
+ )
1449
1555
  ] }, m.mallId)) })
1450
1556
  ] });
1451
1557
  }
@@ -1456,29 +1562,35 @@ import { sendCardAction as sendCardAction5 } from "@tbox.cn/app-agent-sdk-client
1456
1562
  import { jsx as jsx15, jsxs as jsxs13 } from "react/jsx-runtime";
1457
1563
  function HumanGuideListCard(props) {
1458
1564
  const { data, cardId, isHistory } = props;
1459
- return /* @__PURE__ */ jsxs13("section", { className: "sg-card sg-human-guide", children: [
1460
- /* @__PURE__ */ jsxs13("div", { className: "sg-card-title", children: [
1565
+ return /* @__PURE__ */ jsxs13("section", { className: "sg-card sg-human-guide p-5 text-foreground", children: [
1566
+ /* @__PURE__ */ jsxs13("div", { className: "sg-card-title mb-2 flex items-center gap-2 text-lg leading-6 font-bold text-foreground before:h-4 before:w-1 before:shrink-0 before:rounded-[2px] before:bg-[var(--tbox-domain-sg-accent,#096bfa)]", children: [
1461
1567
  data.merchantName,
1462
1568
  " \xB7 \u4EBA\u5DE5\u5BFC\u8D2D"
1463
1569
  ] }),
1464
- data.guides.length === 0 ? /* @__PURE__ */ jsx15("div", { className: "sg-empty", children: "\u6682\u65E0\u5BFC\u8D2D\u5458\u4FE1\u606F" }) : /* @__PURE__ */ jsx15("ul", { className: "sg-guide-list", children: data.guides.map((g) => {
1570
+ data.guides.length === 0 ? /* @__PURE__ */ jsx15("div", { className: "sg-empty py-6 text-center text-sm text-muted-foreground", children: "\u6682\u65E0\u5BFC\u8D2D\u5458\u4FE1\u606F" }) : /* @__PURE__ */ jsx15("ul", { className: "sg-guide-list m-0 list-none p-0", children: data.guides.map((g) => {
1465
1571
  const contact = g.itemActions[0];
1466
1572
  const contactDisabled = isHistory || !contact;
1467
- return /* @__PURE__ */ jsxs13("li", { className: "sg-guide-item", children: [
1468
- /* @__PURE__ */ jsx15(ImageWithFallback, { src: g.avatarUrl, alt: g.name, className: "sg-guide-avatar", size: 48 }),
1469
- /* @__PURE__ */ jsxs13("div", { className: "sg-guide-info", children: [
1573
+ return /* @__PURE__ */ jsxs13("li", { className: "sg-guide-item flex items-center gap-3 border-b-[0.5px] border-border py-3 last:border-b-0", children: [
1574
+ /* @__PURE__ */ jsx15(ImageWithFallback, { src: g.avatarUrl, alt: g.name, className: "sg-guide-avatar size-12 shrink-0 max-w-full rounded-full object-cover", size: 48 }),
1575
+ /* @__PURE__ */ jsxs13("div", { className: "sg-guide-info min-w-0 flex-1", children: [
1470
1576
  /* @__PURE__ */ jsxs13("div", { className: "sg-guide-head", children: [
1471
- /* @__PURE__ */ jsx15("span", { className: "sg-merchant-name", children: g.name }),
1472
- /* @__PURE__ */ jsx15("span", { className: `sg-status sg-status-${g.available ? "available" : "offline"}`, children: g.available ? "\u5728\u7EBF" : "\u79BB\u7EBF" })
1577
+ /* @__PURE__ */ jsx15("span", { className: "sg-merchant-name min-w-0 flex-1 truncate text-base font-semibold text-foreground", children: g.name }),
1578
+ /* @__PURE__ */ jsx15(
1579
+ "span",
1580
+ {
1581
+ className: g.available ? "sg-status sg-status-available inline-block rounded-full bg-success-soft px-2 py-0.5 text-xs leading-4 whitespace-nowrap text-success" : "sg-status sg-status-offline inline-block rounded-full bg-[#fff4df] px-2 py-0.5 text-xs leading-4 whitespace-nowrap text-[#986415]",
1582
+ children: g.available ? "\u5728\u7EBF" : "\u79BB\u7EBF"
1583
+ }
1584
+ )
1473
1585
  ] }),
1474
- g.title && /* @__PURE__ */ jsx15("div", { className: "sg-guide-title", children: g.title }),
1475
- g.contactInfo && g.contactInfo.length > 0 && /* @__PURE__ */ jsx15("div", { className: "sg-guide-channels", children: g.contactInfo.map((c, i) => /* @__PURE__ */ jsx15("span", { className: "sg-guide-channel", children: c.channel }, i)) })
1586
+ g.title && /* @__PURE__ */ jsx15("div", { className: "sg-guide-title mt-[2px] text-xs text-secondary-foreground", children: g.title }),
1587
+ g.contactInfo && g.contactInfo.length > 0 && /* @__PURE__ */ jsx15("div", { className: "sg-guide-channels mt-1 flex flex-wrap gap-1.5", children: g.contactInfo.map((c, i) => /* @__PURE__ */ jsx15("span", { className: "sg-guide-channel rounded-[8px] bg-muted px-1.5 py-[0.5px] text-xs text-secondary-foreground", children: c.channel }, i)) })
1476
1588
  ] }),
1477
1589
  /* @__PURE__ */ jsx15(
1478
1590
  "button",
1479
1591
  {
1480
1592
  type: "button",
1481
- className: "sg-guide-contact",
1593
+ className: "sg-guide-contact min-h-8 shrink-0 cursor-pointer rounded-[9px] border border-border bg-[var(--tbox-domain-sg-surface,#f7faff)] px-3 text-xs text-[var(--tbox-domain-sg-accent,#096bfa)] disabled:cursor-not-allowed disabled:opacity-50 [font-family:inherit] tracking-normal",
1482
1594
  disabled: contactDisabled,
1483
1595
  title: contact ? contact.label : "\u6682\u65E0\u53EF\u7528\u7684\u8054\u7CFB\u65B9\u5F0F",
1484
1596
  onClick: () => {
@@ -1493,7 +1605,7 @@ function HumanGuideListCard(props) {
1493
1605
  )
1494
1606
  ] }, g.guideId);
1495
1607
  }) }),
1496
- /* @__PURE__ */ jsx15("p", { className: "sg-guide-privacy", children: "\u5BFC\u8D2D\u4FE1\u606F\u7531\u95E8\u5E97\u63D0\u4F9B\uFF0C\u8054\u7CFB\u65B9\u5F0F\u4EC5\u7528\u4E8E\u672C\u6B21\u54A8\u8BE2" })
1608
+ /* @__PURE__ */ jsx15("p", { className: "sg-guide-privacy mt-2.5 text-xs leading-4 text-muted-foreground", children: "\u5BFC\u8D2D\u4FE1\u606F\u7531\u95E8\u5E97\u63D0\u4F9B\uFF0C\u8054\u7CFB\u65B9\u5F0F\u4EC5\u7528\u4E8E\u672C\u6B21\u54A8\u8BE2" })
1497
1609
  ] });
1498
1610
  }
1499
1611
  var human_guide_list_default = HumanGuideListCard;
@@ -1506,26 +1618,26 @@ function LocationHandoffCard(props) {
1506
1618
  const { data, cardId } = props;
1507
1619
  const level = deriveLocationLevel({ location: data.location, itemActions: data.itemActions });
1508
1620
  const navAction = data.itemActions.find((a) => a.kind === "link");
1509
- return /* @__PURE__ */ jsxs14("section", { className: "sg-card sg-location-handoff", children: [
1510
- /* @__PURE__ */ jsxs14("div", { className: "sg-card-title", children: [
1621
+ return /* @__PURE__ */ jsxs14("section", { className: "sg-card sg-location-handoff p-5 text-foreground", children: [
1622
+ /* @__PURE__ */ jsxs14("div", { className: "sg-card-title mb-2 flex items-center gap-2 text-lg leading-6 font-bold text-foreground before:h-4 before:w-1 before:shrink-0 before:rounded-[2px] before:bg-[var(--tbox-domain-sg-accent,#096bfa)]", children: [
1511
1623
  data.merchantName,
1512
1624
  " \xB7 \u4F4D\u7F6E"
1513
1625
  ] }),
1514
- data.mapUrl && /* @__PURE__ */ jsx16(ImageWithFallback, { src: data.mapUrl, alt: `${data.merchantName} \u4F4D\u7F6E\u793A\u610F`, className: "sg-lh-map", size: 88 }),
1515
- /* @__PURE__ */ jsxs14("div", { className: "sg-lh-address", children: [
1516
- /* @__PURE__ */ jsx16(MapPin3, { size: 16 }),
1626
+ data.mapUrl && /* @__PURE__ */ jsx16(ImageWithFallback, { src: data.mapUrl, alt: `${data.merchantName} \u4F4D\u7F6E\u793A\u610F`, className: "sg-lh-map h-40 w-full max-w-full rounded-[12px] object-cover", size: 88 }),
1627
+ /* @__PURE__ */ jsxs14("div", { className: "sg-lh-address mt-2.5 flex items-center gap-1.5 text-sm font-medium text-foreground", children: [
1628
+ /* @__PURE__ */ jsx16(MapPin3, { size: 16, className: "shrink-0 text-[var(--tbox-domain-sg-accent,#096bfa)]" }),
1517
1629
  /* @__PURE__ */ jsx16("span", { children: data.location.displayText })
1518
1630
  ] }),
1519
- (data.location.buildingName || data.location.floorName || data.location.unitName) && /* @__PURE__ */ jsxs14("div", { className: "sg-lh-detail", children: [
1520
- data.location.buildingName && /* @__PURE__ */ jsx16("span", { children: data.location.buildingName }),
1521
- data.location.floorName && /* @__PURE__ */ jsx16("span", { children: data.location.floorName }),
1522
- data.location.unitName && /* @__PURE__ */ jsx16("span", { children: data.location.unitName })
1631
+ (data.location.buildingName || data.location.floorName || data.location.unitName) && /* @__PURE__ */ jsxs14("div", { className: "sg-lh-detail mt-2 flex flex-wrap gap-1.5", children: [
1632
+ data.location.buildingName && /* @__PURE__ */ jsx16("span", { className: "rounded-[8px] bg-muted px-2 py-0.5 text-xs text-secondary-foreground", children: data.location.buildingName }),
1633
+ data.location.floorName && /* @__PURE__ */ jsx16("span", { className: "rounded-[8px] bg-muted px-2 py-0.5 text-xs text-secondary-foreground", children: data.location.floorName }),
1634
+ data.location.unitName && /* @__PURE__ */ jsx16("span", { className: "rounded-[8px] bg-muted px-2 py-0.5 text-xs text-secondary-foreground", children: data.location.unitName })
1523
1635
  ] }),
1524
1636
  level === "route_available" && navAction && /* @__PURE__ */ jsxs14(
1525
1637
  "button",
1526
1638
  {
1527
1639
  type: "button",
1528
- className: "sg-lh-nav",
1640
+ className: "sg-lh-nav mt-3 flex h-10 w-full cursor-pointer items-center justify-center gap-1.5 rounded-[9px] border-0 bg-[linear-gradient(108deg,#2493ff_0%,#0b63ff_100%)] text-sm font-medium text-white shadow-[0_4px_11px_rgba(18,118,255,0.35)] [font-family:inherit] tracking-normal",
1529
1641
  onClick: () => {
1530
1642
  sendCardAction6(cardId, { type: "openLink", url: navAction.url });
1531
1643
  },
@@ -1544,6 +1656,8 @@ import { useCallback as useCallback5, useMemo as useMemo3, useState as useState1
1544
1656
  import { CaretRight as CaretRight2 } from "@phosphor-icons/react";
1545
1657
  import { Fragment as Fragment4, jsx as jsx17, jsxs as jsxs15 } from "react/jsx-runtime";
1546
1658
  var PREVIEW_ITEM_COUNT2 = 3;
1659
+ var TAB_CLASS2 = "sg-rm-tab relative flex min-h-7 shrink-0 cursor-pointer items-center justify-center border-0 bg-transparent px-px pb-[7px] text-xs font-medium whitespace-nowrap text-[#6b706d] transition-colors duration-150 [font-family:inherit] tracking-normal";
1660
+ var TAB_ACTIVE_CLASS2 = "sg-rm-tab sg-rm-tab--active relative flex min-h-7 shrink-0 cursor-pointer items-center justify-center border-0 bg-transparent px-px pb-[7px] text-xs font-semibold whitespace-nowrap text-foreground transition-colors duration-150 [font-family:inherit] tracking-normal after:absolute after:bottom-0 after:left-1/2 after:h-[3px] after:w-[18px] after:-translate-x-1/2 after:rounded-[1.5px] after:bg-[#30372f]";
1547
1661
  function RecommendMerchantsCard(props) {
1548
1662
  const { data, cardId, isHistory } = props;
1549
1663
  const [activeTabCode, setActiveTabCode] = useState11("");
@@ -1579,15 +1693,15 @@ function RecommendMerchantsCard(props) {
1579
1693
  setOverlay({ kind: "detail", merchant });
1580
1694
  }, []);
1581
1695
  return /* @__PURE__ */ jsxs15(Fragment4, { children: [
1582
- /* @__PURE__ */ jsxs15("section", { className: "sg-card sg-recommend-merchants", children: [
1696
+ /* @__PURE__ */ jsxs15("section", { className: "sg-card sg-recommend-merchants overflow-hidden rounded-[14px] px-3 pb-3 text-foreground", children: [
1583
1697
  /* @__PURE__ */ jsx17(ShopGuideHeader, { subtitle: data.summary ?? "\u6309\u54C1\u7C7B\u53D1\u73B0\u503C\u5F97\u901B\u7684\u95E8\u5E97" }),
1584
- visibleTabs.length > 0 && /* @__PURE__ */ jsxs15("div", { className: "sg-rm-tabs", "aria-label": "\u6309\u95E8\u5E97\u54C1\u7C7B\u7B5B\u9009", children: [
1698
+ visibleTabs.length > 0 && /* @__PURE__ */ jsxs15("div", { className: "sg-rm-tabs mt-[9px] flex gap-4 overflow-x-auto [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", "aria-label": "\u6309\u95E8\u5E97\u54C1\u7C7B\u7B5B\u9009", children: [
1585
1699
  /* @__PURE__ */ jsx17(
1586
1700
  "button",
1587
1701
  {
1588
1702
  type: "button",
1589
1703
  "aria-pressed": !activeTabCode,
1590
- className: `sg-rm-tab${!activeTabCode ? " sg-rm-tab--active" : ""}`,
1704
+ className: !activeTabCode ? TAB_ACTIVE_CLASS2 : TAB_CLASS2,
1591
1705
  onClick: () => setActiveTabCode(""),
1592
1706
  children: /* @__PURE__ */ jsx17("span", { children: "\u5168\u90E8" })
1593
1707
  }
@@ -1599,7 +1713,7 @@ function RecommendMerchantsCard(props) {
1599
1713
  {
1600
1714
  type: "button",
1601
1715
  "aria-pressed": isActive,
1602
- className: `sg-rm-tab${isActive ? " sg-rm-tab--active" : ""}`,
1716
+ className: isActive ? TAB_ACTIVE_CLASS2 : TAB_CLASS2,
1603
1717
  onClick: () => setActiveTabCode(tab.code),
1604
1718
  children: /* @__PURE__ */ jsx17("span", { children: tab.name })
1605
1719
  },
@@ -1607,14 +1721,21 @@ function RecommendMerchantsCard(props) {
1607
1721
  );
1608
1722
  })
1609
1723
  ] }),
1610
- filteredItems.length === 0 ? /* @__PURE__ */ jsx17("div", { className: "sg-empty", children: data.noResultsReason ?? "\u6682\u65F6\u6CA1\u6709\u7B26\u5408\u6761\u4EF6\u7684\u95E8\u5E97" }) : /* @__PURE__ */ jsxs15(Fragment4, { children: [
1724
+ filteredItems.length === 0 ? /* @__PURE__ */ jsx17("div", { className: "sg-empty py-6 text-center text-sm text-muted-foreground", children: data.noResultsReason ?? "\u6682\u65F6\u6CA1\u6709\u7B26\u5408\u6761\u4EF6\u7684\u95E8\u5E97" }) : /* @__PURE__ */ jsxs15(Fragment4, { children: [
1611
1725
  /* @__PURE__ */ jsx17(ShopGuideSectionLabel, {}),
1612
- /* @__PURE__ */ jsx17("ul", { className: "sg-rm-list", children: previewItems.map((item) => /* @__PURE__ */ jsx17("li", { className: "sg-rm-item", children: /* @__PURE__ */ jsx17(MerchantRow, { merchant: item, onSelect: () => openDetail(item) }) }, item.merchantId)) }),
1726
+ /* @__PURE__ */ jsx17("ul", { className: "sg-rm-list mt-1 mr-0 mb-0 ml-0 flex list-none flex-col p-0", children: previewItems.map((item) => /* @__PURE__ */ jsx17("li", { className: "sg-rm-item py-2.5", children: /* @__PURE__ */ jsx17(
1727
+ MerchantRow,
1728
+ {
1729
+ merchant: item,
1730
+ className: "items-start bg-transparent p-0 focus-visible:rounded-[6px] focus-visible:outline-offset-[3px]",
1731
+ onSelect: () => openDetail(item)
1732
+ }
1733
+ ) }, item.merchantId)) }),
1613
1734
  filteredItems.length > PREVIEW_ITEM_COUNT2 && /* @__PURE__ */ jsxs15(
1614
1735
  "button",
1615
1736
  {
1616
1737
  type: "button",
1617
- className: "sg-rm-view-all",
1738
+ className: "sg-rm-view-all mt-[2px] flex min-h-8 w-full cursor-pointer items-center justify-center gap-[2px] border-0 bg-transparent p-0 text-xs text-[#686d69] focus-visible:rounded-[5px] focus-visible:outline-[1.5px] focus-visible:outline-offset-[1px] focus-visible:outline-[rgba(9,107,250,0.28)] [font-family:inherit] tracking-normal",
1618
1739
  onClick: () => setOverlay({ kind: "list" }),
1619
1740
  children: [
1620
1741
  "\u67E5\u770B\u5168\u90E8\u95E8\u5E97",