@@ -341,7 +401,9 @@
display: flex;
flex-direction: column;
gap: 12px;
- min-height: 200px;
+ min-height: 0;
+ height: 100%;
+ overflow: auto;
}
.guide-panel__failure-badge {
@@ -355,6 +417,100 @@
line-height: 20px;
}
+ .guide-panel__failure-summary {
+ margin: 0;
+ color: var(--color-text-2);
+ font-size: 12px;
+ line-height: 1.5;
+ }
+
+ .guide-panel__failure-list {
+ margin: 0;
+ padding: 0;
+ list-style: none;
+ display: flex;
+ flex-direction: column;
+ gap: 10px;
+ }
+
+ .guide-panel__failure-product {
+ padding: 10px 12px;
+ border: 1px solid var(--color-border-2);
+ border-radius: 8px;
+ background: var(--color-fill-1);
+ }
+
+ .guide-panel__failure-product-head {
+ display: flex;
+ align-items: flex-start;
+ gap: 8px;
+ }
+
+ .guide-panel__failure-index {
+ flex: none;
+ width: 20px;
+ height: 20px;
+ border-radius: 50%;
+ background: var(--app-primary-color);
+ color: #fff;
+ font-size: 12px;
+ font-weight: 600;
+ line-height: 20px;
+ text-align: center;
+ }
+
+ .guide-panel__failure-product-title {
+ display: flex;
+ flex-direction: column;
+ gap: 2px;
+ min-width: 0;
+
+ strong {
+ font-size: 13px;
+ font-weight: 600;
+ color: var(--color-text-1);
+ line-height: 20px;
+ word-break: break-word;
+ }
+ }
+
+ .guide-panel__failure-code {
+ color: var(--color-text-3);
+ font-size: 12px;
+ line-height: 18px;
+ }
+
+ .guide-panel__failure-reasons {
+ margin: 8px 0 0;
+ padding: 0;
+ list-style: none;
+ display: flex;
+ flex-direction: column;
+ gap: 8px;
+ }
+
+ .guide-panel__failure-meta {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+ color: var(--color-text-3);
+ font-size: 12px;
+ line-height: 18px;
+ }
+
+ .guide-panel__failure-step {
+ color: var(--app-primary-color);
+ font-weight: 600;
+ }
+
+ .guide-panel__failure-reason {
+ margin: 4px 0 0;
+ color: var(--color-text-2);
+ font-size: 13px;
+ line-height: 1.6;
+ word-break: break-word;
+ }
+
.guide-panel__failure-text {
margin: 0;
color: var(--color-text-2);
diff --git a/src/views/order/priceCheck/components/QuoteResultCard.vue b/src/views/order/priceCheck/components/QuoteResultCard.vue
index 4b5db53..f2637b9 100644
--- a/src/views/order/priceCheck/components/QuoteResultCard.vue
+++ b/src/views/order/priceCheck/components/QuoteResultCard.vue
@@ -1,7 +1,7 @@
diff --git a/src/views/site/SiteComposer.vue b/src/views/site/SiteComposer.vue
new file mode 100644
index 0000000..c7af8ab
--- /dev/null
+++ b/src/views/site/SiteComposer.vue
@@ -0,0 +1,76 @@
+
+
+
+
+
diff --git a/src/views/site/SiteHeader.vue b/src/views/site/SiteHeader.vue
new file mode 100644
index 0000000..4140963
--- /dev/null
+++ b/src/views/site/SiteHeader.vue
@@ -0,0 +1,316 @@
+
+
+
+
+
diff --git a/src/views/site/SiteIllusIcon.vue b/src/views/site/SiteIllusIcon.vue
new file mode 100644
index 0000000..42be42c
--- /dev/null
+++ b/src/views/site/SiteIllusIcon.vue
@@ -0,0 +1,89 @@
+
+
+
+
+
diff --git a/src/views/site/SiteMessageCard.vue b/src/views/site/SiteMessageCard.vue
new file mode 100644
index 0000000..ace8fda
--- /dev/null
+++ b/src/views/site/SiteMessageCard.vue
@@ -0,0 +1,233 @@
+
+
+
{{ view.kicker }}
+
{{ view.metric }}
+
{{ view.title }}
+
{{ view.body }}
+
+
+ {{ row.label }}
+ {{ row.value }}
+
+
+
+
+ {{ item.title }}
+ {{ item.hint }}
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/site/SitePartnerMarquee.vue b/src/views/site/SitePartnerMarquee.vue
new file mode 100644
index 0000000..793bd1c
--- /dev/null
+++ b/src/views/site/SitePartnerMarquee.vue
@@ -0,0 +1,187 @@
+
+
+
{{ tag }}
+
+
+
+
+
+ {{ item.label }}
+
+
+
+
+
+
+ {{ item.label }}
+
+
+
+
+
+
+
+
diff --git a/src/views/site/SiteRoutesPanel.vue b/src/views/site/SiteRoutesPanel.vue
new file mode 100644
index 0000000..f04dae6
--- /dev/null
+++ b/src/views/site/SiteRoutesPanel.vue
@@ -0,0 +1,330 @@
+
+
+
+
+
diff --git a/src/views/site/SiteServicesPanel.vue b/src/views/site/SiteServicesPanel.vue
new file mode 100644
index 0000000..74e9263
--- /dev/null
+++ b/src/views/site/SiteServicesPanel.vue
@@ -0,0 +1,54 @@
+
+
+
+
+
diff --git a/src/views/site/SiteStageMaps.vue b/src/views/site/SiteStageMaps.vue
new file mode 100644
index 0000000..0ba1037
--- /dev/null
+++ b/src/views/site/SiteStageMaps.vue
@@ -0,0 +1,74 @@
+
+
+
+
+
diff --git a/src/views/site/SiteTopicPanel.vue b/src/views/site/SiteTopicPanel.vue
new file mode 100644
index 0000000..ee968c6
--- /dev/null
+++ b/src/views/site/SiteTopicPanel.vue
@@ -0,0 +1,183 @@
+
+
+
+
+
diff --git a/src/views/site/SiteWecomModal.vue b/src/views/site/SiteWecomModal.vue
new file mode 100644
index 0000000..b7f9aa8
--- /dev/null
+++ b/src/views/site/SiteWecomModal.vue
@@ -0,0 +1,57 @@
+
+
+
+
+
+
{{ isZh ? '企业微信客服' : 'WeCom support' }}
+
{{ isZh ? '微信扫码咨询' : 'Scan with WeChat' }}
+
+ {{ isZh ? '打开手机微信,扫一扫下方二维码即可对话顾问' : 'Open WeChat on your phone and scan the code to chat' }}
+
+
+
![WeCom QR]()
+
+ {{ isZh ? '二维码加载失败,请点下方打开客服页后用微信扫码' : 'QR failed to load — open the support page and scan there' }}
+
+
+
+ {{ isZh ? '在新窗口打开客服页' : 'Open support page' }}
+
+
+
+
+
+
diff --git a/src/views/site/index.vue b/src/views/site/index.vue
new file mode 100644
index 0000000..ed2db2a
--- /dev/null
+++ b/src/views/site/index.vue
@@ -0,0 +1,409 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/site/lib/guide-services.ts b/src/views/site/lib/guide-services.ts
new file mode 100644
index 0000000..5df76a5
--- /dev/null
+++ b/src/views/site/lib/guide-services.ts
@@ -0,0 +1,137 @@
+export type SiteLang = 'zh' | 'en';
+
+export const GUIDE_SERVICES = [
+ {
+ icon: 'lane',
+ tag: { en: 'Ship', zh: '发货' },
+ en: {
+ title: 'US / EU / SEA parcels',
+ body: 'US, Mexico, Canada, EU 27, the UK, Australia, New Zealand, and Southeast Asia parcels. Tracked end to end.',
+ },
+ zh: {
+ title: '欧美 / 东南亚专线',
+ body: '美国、墨西哥、加拿大、欧盟 27 国及英国、澳大利亚、新西兰,以及东南亚小包。全程可追踪。',
+ },
+ ask: { en: 'I need a line to the US or Southeast Asia', zh: '我要走欧美或东南亚专线' },
+ intent: 'quote',
+ },
+ {
+ icon: 'warehouse',
+ tag: { en: 'Warehouse', zh: '仓储' },
+ en: {
+ title: 'Warehouse dropship',
+ body: 'Inbound, pick and pack, ship when the order lands. SMB sellers do not need their own warehouse.',
+ },
+ zh: {
+ title: '仓储一件代发',
+ body: '入仓、拣货打包,订单来了就发出去。中小卖家不用自己养仓。',
+ },
+ ask: { en: 'I need warehouse dropshipping', zh: '我要仓储一件代发' },
+ intent: 'warehouse',
+ },
+ {
+ icon: 'clearance',
+ tag: { en: 'Ship', zh: '发货' },
+ en: {
+ title: '9610 clearance',
+ body: 'List release, consolidated declaration, and three-document match — so this parcel can actually leave.',
+ },
+ zh: {
+ title: '9610 报关出货',
+ body: '清单核放、汇总申报、三单对碰。先保证这票货出得去。',
+ },
+ ask: { en: 'I need to ship a 9610 parcel', zh: '我有一票 9610 要出货' },
+ intent: 'hard',
+ },
+ {
+ icon: 'advise',
+ tag: { en: 'Ship', zh: '发货' },
+ en: {
+ title: 'Tough cargo',
+ body: 'Battery, oversize, no invoice, or declined elsewhere. We pick the lane and the tax path first.',
+ },
+ zh: {
+ title: '疑难货怎么发',
+ body: '带电、超长、无票、别人不接的单。先帮你选线路和税务路径。',
+ },
+ ask: { en: 'Others declined this cargo. Can you take it?', zh: '别人不接的货,你们能发吗?' },
+ intent: 'hard',
+ },
+ {
+ icon: 'refund',
+ tag: { en: 'Tax', zh: '税务' },
+ en: {
+ title: 'Export VAT refund',
+ body: 'If you have special VAT invoices: we assemble the refund pack and file it on the e-tax bureau.',
+ },
+ zh: {
+ title: '出口退税',
+ body: '有增值税专票:整理退税资料,并在电子税务局申报。进项税按退税率退还。',
+ },
+ ask: { en: 'Can you handle export tax refund?', zh: '出口退税可以代办吗?' },
+ intent: 'hard',
+ },
+ {
+ icon: 'exempt',
+ tag: { en: 'Tax', zh: '税务' },
+ en: {
+ title: 'Exemption without invoice',
+ body: 'No special invoice: pilot-zone filing and exemption registration, so export VAT is waived.',
+ },
+ zh: {
+ title: '无票免征',
+ body: '没有专票:综试区备案和免税登记。出口环节增值税免掉。',
+ },
+ ask: { en: 'Help me register for VAT-free export', zh: '帮我办无票免征登记' },
+ intent: 'hard',
+ },
+ {
+ icon: 'filing',
+ tag: { en: 'Filing', zh: '备案' },
+ en: {
+ title: 'Customs credentials',
+ body: 'Importer/exporter filing, cross-border seller status, and e-port card — when volume is ready to scale.',
+ },
+ zh: {
+ title: '海关资质',
+ body: '进出口收发货人、跨境电商资质、电子口岸卡。量起来再办也不迟。',
+ },
+ ask: { en: 'I need customs credentials filed', zh: '我要办海关资质备案' },
+ intent: 'hard',
+ },
+] as const;
+
+const GUIDE_ICON: Record
= {
+ lane:
+ '',
+ advise:
+ '',
+ refund:
+ '',
+ exempt:
+ '',
+ filing:
+ '',
+ warehouse:
+ '',
+ clearance:
+ '',
+};
+
+export function guideIconSvg(name: string) {
+ const body = GUIDE_ICON[name] || GUIDE_ICON.lane;
+ return ``;
+}
+
+export const GUIDE_COPY = {
+ en: {
+ title: 'Ship first, tax second',
+ kicker: 'Services',
+ sub: 'Pick a lane. Tax and filings come after the parcel can leave.',
+ },
+ zh: {
+ title: '先发货,再办税',
+ kicker: '服务',
+ sub: '先选怎么走货。税务和备案跟在后面,点一张卡就能问。',
+ },
+};
diff --git a/src/views/site/lib/portal-catalog.ts b/src/views/site/lib/portal-catalog.ts
new file mode 100644
index 0000000..61a7fed
--- /dev/null
+++ b/src/views/site/lib/portal-catalog.ts
@@ -0,0 +1,368 @@
+import { resolveAdminApiPath } from '@/utils/adminApi';
+import type { SiteLang } from './guide-services';
+
+export const ROUTE_PAGE_SIZE = 12;
+
+export const ROUTE_DEST_PRESETS = [
+ { id: 'all', label: { zh: '不限', en: 'Any' }, keys: [] as string[] },
+ {
+ id: 'us',
+ label: { zh: '美国', en: 'United States' },
+ keys: ['美国', 'usa', 'u.s', 'united states', '美东', '美西', '美线'],
+ },
+ {
+ id: 'eu',
+ label: { zh: '欧盟 / 英国', en: 'EU / UK' },
+ keys: [
+ '欧盟',
+ '欧洲',
+ '英国',
+ '德国',
+ '法国',
+ '意大利',
+ '西班牙',
+ '荷兰',
+ 'europe',
+ 'european',
+ 'germany',
+ 'france',
+ 'united kingdom',
+ ],
+ },
+ {
+ id: 'sea',
+ label: { zh: '东南亚', en: 'Southeast Asia' },
+ keys: [
+ '东南',
+ '越南',
+ '马来',
+ '新加坡',
+ '泰国',
+ '菲律宾',
+ '印尼',
+ '印度尼西亚',
+ 'sea',
+ 'southeast',
+ 'vietnam',
+ 'malaysia',
+ 'thailand',
+ 'philippines',
+ 'indonesia',
+ 'singapore',
+ ],
+ },
+ {
+ id: 'ca_mx',
+ label: { zh: '加 / 墨', en: 'CA / MX' },
+ keys: ['加拿大', '墨西哥', 'canada', 'mexico', '加线', '墨线'],
+ },
+ {
+ id: 'au',
+ label: { zh: '澳新', en: 'AU / NZ' },
+ keys: ['澳洲', '澳大利亚', '新西兰', 'australia', 'new zealand', '澳线'],
+ },
+ {
+ id: 'global',
+ label: { zh: '全球快递', en: 'Global express' },
+ keys: ['dhl', 'ups', 'fedex', '3pe', '国际快递'],
+ },
+];
+
+const ROUTE_CARGO_FALLBACK = [
+ { code: 'general', name: { zh: '普货', en: 'General' } },
+ { code: 'electronics', name: { zh: '3C&带电', en: '3C & Battery' } },
+ { code: 'sensitive', name: { zh: '敏感货', en: 'Sensitive' } },
+];
+
+export type RouteItem = {
+ id: string | number;
+ productName: string;
+ productGroup: string;
+ productGroupName: string;
+ minTimeliness: number | null;
+ maxTimeliness: number | null;
+ tradeTerms: string;
+ productDescription: string;
+ destRegions: string[];
+ coverageCountries: string[];
+ cargoTags: string[];
+};
+
+export type RoutesCatalog = {
+ groups: { code: string; name: string }[];
+ cargos: { code: string; name: string }[];
+ items: RouteItem[];
+};
+
+export const ROUTES_COPY = {
+ en: {
+ title: 'Lanes',
+ sub: 'Pick a destination, compare transit, then ask.',
+ destLabel: 'Ship to',
+ searchPh: 'Search country, lane name, or cargo…',
+ all: 'All types',
+ termsAll: 'Any terms',
+ ask: 'Ask about this lane',
+ register: 'Register to see price',
+ sticky: 'Not sure? Ask an advisor by destination',
+ empty: 'No lanes match these filters',
+ emptyHint: 'Try another destination, or ask an advisor to recommend.',
+ error: 'Couldn’t load lanes',
+ errorHint: 'Check the connection and retry, or ask an advisor directly.',
+ clearFilters: 'Clear filters',
+ askDirect: 'Ask advisor',
+ retry: 'Retry',
+ loading: 'Loading lanes…',
+ days: 'days',
+ ddpHint: 'Duties prepaid',
+ dduHint: 'Duties unpaid',
+ expand: 'More',
+ collapse: 'Less',
+ coverageGlobal: 'Multi-country',
+ cargoAsk: 'Confirm cargo with advisor',
+ matchCount: '{n} lanes',
+ matchShown: 'Showing {shown} of {total}',
+ loadMore: 'Load more',
+ },
+ zh: {
+ title: '线路',
+ sub: '选目的地,对比时效后再询价',
+ destLabel: '发往哪里',
+ searchPh: '搜国家、线路名或货型…',
+ all: '全部类型',
+ termsAll: '不限条款',
+ ask: '按这条问顾问',
+ register: '注册看价',
+ sticky: '不确定?直接按目的国问顾问',
+ empty: '没有符合条件的线路',
+ emptyHint: '换个目的地试试,或直接问顾问帮你选。',
+ error: '线路加载失败',
+ errorHint: '网络或服务暂时不可用,可重试或直接问顾问。',
+ clearFilters: '清除筛选',
+ askDirect: '直接问顾问',
+ retry: '重试',
+ loading: '线路加载中…',
+ days: '天',
+ ddpHint: '包税到门',
+ dduHint: '关税自理',
+ expand: '展开',
+ collapse: '收起',
+ coverageGlobal: '全球多国',
+ cargoAsk: '货型询顾问确认',
+ matchCount: '共 {n} 条',
+ matchShown: '已显示 {shown} / {total}',
+ loadMore: '加载更多',
+ },
+};
+
+function unwrapApiData(payload: unknown) {
+ if (!payload || typeof payload !== 'object') return null;
+ let cur: Record = payload as Record;
+ for (let i = 0; i < 4; i++) {
+ if (Array.isArray(cur.groups) || Array.isArray(cur.Groups) || Array.isArray(cur.items) || Array.isArray(cur.Items)) {
+ return cur;
+ }
+ const next = cur.data ?? cur.Data ?? cur.result ?? cur.Result;
+ if (!next || typeof next !== 'object') break;
+ cur = next as Record;
+ }
+ return cur;
+}
+
+function normalizeStringList(raw: unknown) {
+ if (!Array.isArray(raw)) return [];
+ return raw.map((v) => String(v ?? '').trim()).filter(Boolean);
+}
+
+export function normalizeRoutesCatalog(raw: unknown, lang: SiteLang): RoutesCatalog {
+ const data = unwrapApiData(raw) || {};
+ const groups = ((data.groups || data.Groups || []) as Record[])
+ .map((g) => ({
+ code: String(g.code ?? g.Code ?? '').trim(),
+ name: String(g.name ?? g.Name ?? g.code ?? g.Code ?? '').trim(),
+ }))
+ .filter((g) => g.code);
+ const cargos = ((data.cargos || data.Cargos || []) as Record[])
+ .map((c) => ({
+ code: String(c.code ?? c.Code ?? '').trim(),
+ name: String(c.name ?? c.Name ?? c.code ?? c.Code ?? '').trim(),
+ }))
+ .filter((c) => c.code);
+ const items = ((data.items || data.Items || []) as Record[])
+ .map((item) => ({
+ id: (item.id ?? item.Id) as string | number,
+ productName: String(item.productName ?? item.ProductName ?? '').trim(),
+ productGroup: String(item.productGroup ?? item.ProductGroup ?? '').trim() || '_ungrouped',
+ productGroupName: String(item.productGroupName ?? item.ProductGroupName ?? '').trim(),
+ minTimeliness: (item.minTimeliness ?? item.MinTimeliness ?? null) as number | null,
+ maxTimeliness: (item.maxTimeliness ?? item.MaxTimeliness ?? null) as number | null,
+ tradeTerms: String(item.tradeTerms ?? item.TradeTerms ?? '')
+ .trim()
+ .toUpperCase(),
+ productDescription: String(item.productDescription ?? item.ProductDescription ?? '').trim(),
+ destRegions: normalizeStringList(item.destRegions ?? item.DestRegions),
+ coverageCountries: normalizeStringList(item.coverageCountries ?? item.CoverageCountries).map((c) =>
+ c.toUpperCase(),
+ ),
+ cargoTags: normalizeStringList(item.cargoTags ?? item.CargoTags).map((c) => c.toLowerCase()),
+ }))
+ .filter((item) => item.productName);
+ return {
+ groups,
+ cargos: cargos.length
+ ? cargos
+ : ROUTE_CARGO_FALLBACK.map((c) => ({ code: c.code, name: lang === 'zh' ? c.name.zh : c.name.en })),
+ items,
+ };
+}
+
+export async function fetchRoutesCatalog(lang: SiteLang): Promise {
+ const res = await fetch(resolveAdminApiPath('/channel/sales-product/portal/catalog'), {
+ method: 'GET',
+ headers: { Accept: 'application/json' },
+ credentials: 'omit',
+ });
+ if (!res.ok) throw new Error('HTTP ' + res.status);
+ return normalizeRoutesCatalog(await res.json(), lang);
+}
+
+function routeItemBlob(item: RouteItem) {
+ return [item.productName, item.productDescription, item.productGroupName, item.productGroup]
+ .join(' ')
+ .toLowerCase();
+}
+
+export function inferRouteDestIds(item: RouteItem) {
+ if (Array.isArray(item.destRegions) && item.destRegions.length) {
+ return item.destRegions.map((id) => String(id).toLowerCase());
+ }
+ const blob = routeItemBlob(item);
+ const ids: string[] = [];
+ ROUTE_DEST_PRESETS.forEach((dest) => {
+ if (dest.id === 'all') return;
+ if (dest.keys.some((key) => blob.includes(String(key).toLowerCase()))) ids.push(dest.id);
+ });
+ if (!ids.length && /dhl|ups|fedex|3pe|国际快递|快递/.test(blob)) ids.push('global');
+ return ids.length ? ids : ['other'];
+}
+
+export function itemMatchesDest(item: RouteItem, destId: string) {
+ if (!destId || destId === 'all') return true;
+ const ids = inferRouteDestIds(item);
+ if (ids.includes(destId)) return true;
+ if (destId !== 'global' && ids.includes('global')) return true;
+ return false;
+}
+
+export function formatRouteTimeliness(item: RouteItem) {
+ const min = item.minTimeliness;
+ const max = item.maxTimeliness;
+ if (min != null && max != null && min !== max) return min + '–' + max;
+ if (min != null && max != null) return String(min);
+ if (min != null) return String(min) + '+';
+ if (max != null) return '≤' + max;
+ return '';
+}
+
+export function destLabel(destId: string, lang: SiteLang) {
+ const dest = ROUTE_DEST_PRESETS.find((d) => d.id === destId);
+ if (!dest || dest.id === 'all') return '';
+ return lang === 'zh' ? dest.label.zh : dest.label.en;
+}
+
+export function routeCoverageLabel(item: RouteItem, lang: SiteLang) {
+ const copy = ROUTES_COPY[lang];
+ const ids = inferRouteDestIds(item).filter((id) => id !== 'other');
+ if (!ids.length || (ids.length === 1 && ids[0] === 'global')) return copy.coverageGlobal;
+ const labels = ids
+ .filter((id) => id !== 'global')
+ .map((id) => destLabel(id, lang))
+ .filter(Boolean);
+ if (!labels.length) return copy.coverageGlobal;
+ return labels.slice(0, 2).join(' · ');
+}
+
+export function routeCargoHint(item: RouteItem, catalog: RoutesCatalog | null, lang: SiteLang) {
+ const copy = ROUTES_COPY[lang];
+ const tags = item.cargoTags || [];
+ const nameOf = (code: string) => {
+ const hit = catalog?.cargos.find((c) => c.code === code);
+ if (hit?.name) return hit.name;
+ const fallback = ROUTE_CARGO_FALLBACK.find((c) => c.code === code);
+ return fallback ? (lang === 'zh' ? fallback.name.zh : fallback.name.en) : code;
+ };
+ if (tags.includes('electronics')) return nameOf('electronics');
+ if (tags.includes('sensitive')) return nameOf('sensitive');
+ if (tags.includes('general')) return nameOf('general');
+ const text = routeItemBlob(item);
+ if (/带电|电池|锂电|3c|lithium|battery/.test(text)) return nameOf('electronics');
+ if (/化妆品|cosmetic|敏感|特殊|疑难|超长|超重|oversize|special/.test(text)) return nameOf('sensitive');
+ if (/普货|general/.test(text)) return nameOf('general');
+ return copy.cargoAsk;
+}
+
+export function filterRouteItems(
+ catalog: RoutesCatalog | null,
+ opts: { dest: string; group: string; terms: string; search: string; lang: SiteLang },
+) {
+ const items = catalog?.items || [];
+ const q = opts.search.toLowerCase();
+ return items.filter((item) => {
+ if (!itemMatchesDest(item, opts.dest)) return false;
+ if (opts.group !== 'all' && item.productGroup !== opts.group) return false;
+ if (opts.terms !== 'all' && item.tradeTerms !== opts.terms) return false;
+ if (!q) return true;
+ const blob = routeItemBlob(item);
+ const destHit = ROUTE_DEST_PRESETS.some(
+ (dest) =>
+ dest.id !== 'all' &&
+ (opts.lang === 'zh' ? dest.label.zh : dest.label.en).toLowerCase().includes(q) &&
+ itemMatchesDest(item, dest.id),
+ );
+ return (
+ destHit ||
+ blob.includes(q) ||
+ item.productName.toLowerCase().includes(q) ||
+ item.productDescription.toLowerCase().includes(q) ||
+ item.productGroupName.toLowerCase().includes(q)
+ );
+ });
+}
+
+export function buildRouteAskText(item: RouteItem, destId: string, lang: SiteLang) {
+ const dest = destLabel(destId, lang);
+ const eta = formatRouteTimeliness(item);
+ const terms = item.tradeTerms ? item.tradeTerms + ' ' : '';
+ if (lang === 'zh') {
+ return (
+ '想了解【' +
+ item.productName +
+ '】' +
+ (dest ? '发往' + dest : '') +
+ '的报价、时效和走货要求' +
+ (eta ? '(参考时效 ' + eta + ' 天)' : '') +
+ (terms ? ',条款 ' + terms.trim() : '')
+ );
+ }
+ return (
+ 'I want a quote for [' +
+ item.productName +
+ ']' +
+ (dest ? ' to ' + dest : '') +
+ ', including transit time and shipping requirements' +
+ (eta ? ' (about ' + eta + ' days)' : '') +
+ (terms ? ', terms ' + terms.trim() : '')
+ );
+}
+
+export function buildDirectAskText(destId: string, lang: SiteLang) {
+ const dest = destLabel(destId, lang);
+ if (lang === 'zh') {
+ return dest
+ ? '帮我推荐发往' + dest + '的合适线路,并说明时效和贸易条款'
+ : '按目的国帮我推荐合适线路,并说明时效和贸易条款';
+ }
+ return dest
+ ? 'Recommend a shipping lane to ' + dest + ', with transit time and trade terms'
+ : 'Recommend a shipping lane by destination, with transit time and trade terms';
+}
diff --git a/src/views/site/lib/site-cover.ts b/src/views/site/lib/site-cover.ts
new file mode 100644
index 0000000..eb7e667
--- /dev/null
+++ b/src/views/site/lib/site-cover.ts
@@ -0,0 +1,117 @@
+export const COVER_REGIONS = [
+ { id: 'eu', dest: { zh: '欧盟', en: 'European Union' }, label: { zh: '欧盟 27 国 + 英国', en: 'EU 27 + UK' }, expand: true },
+ { id: 'us', dest: { zh: '美国', en: 'United States' }, label: { zh: '美国', en: 'United States' } },
+ { id: 'mx', dest: { zh: '墨西哥', en: 'Mexico' }, label: { zh: '墨西哥', en: 'Mexico' } },
+ { id: 'ca', dest: { zh: '加拿大', en: 'Canada' }, label: { zh: '加拿大', en: 'Canada' } },
+ { id: 'au', dest: { zh: '澳大利亚', en: 'Australia' }, label: { zh: '澳大利亚', en: 'Australia' } },
+ { id: 'nz', dest: { zh: '新西兰', en: 'New Zealand' }, label: { zh: '新西兰', en: 'New Zealand' } },
+];
+
+export const COVER_EU = [
+ { mapId: 'de', zh: '德国', en: 'Germany' },
+ { mapId: 'fr', zh: '法国', en: 'France' },
+ { mapId: 'it', zh: '意大利', en: 'Italy' },
+ { mapId: 'es', zh: '西班牙', en: 'Spain' },
+ { mapId: 'nl', zh: '荷兰', en: 'Netherlands' },
+ { mapId: 'be', zh: '比利时', en: 'Belgium' },
+ { mapId: 'at', zh: '奥地利', en: 'Austria' },
+ { mapId: 'ie', zh: '爱尔兰', en: 'Ireland' },
+ { mapId: 'gb', zh: '英国', en: 'United Kingdom' },
+ { mapId: 'pt', zh: '葡萄牙', en: 'Portugal' },
+ { mapId: 'gr', zh: '希腊', en: 'Greece' },
+ { mapId: 'se', zh: '瑞典', en: 'Sweden' },
+ { mapId: 'dk', zh: '丹麦', en: 'Denmark' },
+ { mapId: 'fi', zh: '芬兰', en: 'Finland' },
+ { mapId: 'pl', zh: '波兰', en: 'Poland' },
+ { mapId: 'cz', zh: '捷克', en: 'Czechia' },
+ { mapId: 'hu', zh: '匈牙利', en: 'Hungary' },
+ { mapId: 'ro', zh: '罗马尼亚', en: 'Romania' },
+ { mapId: 'bg', zh: '保加利亚', en: 'Bulgaria' },
+ { mapId: 'sk', zh: '斯洛伐克', en: 'Slovakia' },
+ { mapId: 'si', zh: '斯洛文尼亚', en: 'Slovenia' },
+ { mapId: 'hr', zh: '克罗地亚', en: 'Croatia' },
+ { mapId: 'lt', zh: '立陶宛', en: 'Lithuania' },
+ { mapId: 'lv', zh: '拉脱维亚', en: 'Latvia' },
+ { mapId: 'ee', zh: '爱沙尼亚', en: 'Estonia' },
+ { mapId: 'lu', zh: '卢森堡', en: 'Luxembourg' },
+ { mapId: 'mt', zh: '马耳他', en: 'Malta' },
+ { mapId: 'cy', zh: '塞浦路斯', en: 'Cyprus' },
+];
+
+export const COVER_SEA = [
+ { mapId: 'my', zh: '马来西亚', en: 'Malaysia' },
+ { mapId: 'sg', zh: '新加坡', en: 'Singapore' },
+ { mapId: 'ph', zh: '菲律宾', en: 'Philippines' },
+ { mapId: 'th', zh: '泰国', en: 'Thailand' },
+ { mapId: 'vn', zh: '越南', en: 'Vietnam' },
+ { mapId: 'id', zh: '印度尼西亚', en: 'Indonesia' },
+];
+
+export const MAP_COORDS: Record = {
+ eu: [10.5, 50.5],
+ us: [-98.5, 39.8],
+ mx: [-102.5, 23.6],
+ ca: [-106.3, 56.1],
+ au: [134.5, -25.7],
+ nz: [174.8, -41.3],
+ de: [10.45, 51.16],
+ fr: [2.35, 46.85],
+ it: [12.5, 42.85],
+ es: [-3.7, 40.4],
+ nl: [5.3, 52.15],
+ be: [4.35, 50.85],
+ at: [14.55, 47.52],
+ ie: [-7.7, 53.35],
+ gb: [-2.5, 54.0],
+ pt: [-8.6, 39.4],
+ gr: [23.73, 37.98],
+ se: [18.07, 59.33],
+ dk: [12.57, 55.68],
+ fi: [24.94, 60.17],
+ pl: [21.01, 52.23],
+ cz: [14.44, 50.08],
+ hu: [19.05, 47.5],
+ ro: [24.97, 45.94],
+ bg: [23.32, 42.7],
+ sk: [17.11, 48.15],
+ si: [14.51, 46.05],
+ hr: [15.98, 45.81],
+ lt: [25.28, 54.69],
+ lv: [24.11, 56.95],
+ ee: [24.75, 59.44],
+ lu: [6.13, 49.61],
+ mt: [14.51, 35.9],
+ cy: [33.38, 35.18],
+ my: [101.98, 4.21],
+ sg: [103.82, 1.35],
+ ph: [121.77, 12.88],
+ th: [100.5, 13.75],
+ vn: [105.85, 21.03],
+ id: [113.92, -0.79],
+};
+
+const MAP_REGION_EU = new Set(['eu', ...COVER_EU.map((item) => item.mapId)]);
+const MAP_REGION_AM = new Set(['us', 'mx', 'ca']);
+const MAP_REGION_AU = new Set(['au', 'nz']);
+const MAP_REGION_SEA = new Set(COVER_SEA.map((item) => item.mapId));
+
+export function mapRegionForId(mapId: string) {
+ if (MAP_REGION_EU.has(mapId)) return 'eu';
+ if (MAP_REGION_AM.has(mapId)) return 'am';
+ if (MAP_REGION_AU.has(mapId)) return 'au';
+ if (MAP_REGION_SEA.has(mapId)) return 'sea';
+ return 'cn';
+}
+
+export function buildCoverageMarkers(isZh: boolean) {
+ const markers: { id: string; coords: [number, number]; label: string; regionId: string }[] = [];
+ const push = (id: string, label: string) => {
+ const coords = MAP_COORDS[id];
+ if (!coords) return;
+ markers.push({ id, coords, label, regionId: mapRegionForId(id) });
+ };
+ COVER_REGIONS.forEach((region) => push(region.id, isZh ? region.label.zh : region.label.en));
+ COVER_EU.forEach((item) => push(item.mapId, isZh ? item.zh : item.en));
+ COVER_SEA.forEach((item) => push(item.mapId, isZh ? item.zh : item.en));
+ return markers;
+}
diff --git a/src/views/site/lib/site-reply.ts b/src/views/site/lib/site-reply.ts
new file mode 100644
index 0000000..6b738d7
--- /dev/null
+++ b/src/views/site/lib/site-reply.ts
@@ -0,0 +1,263 @@
+import { WELCOME_COPY } from './site-welcome';
+
+export type SiteLang = 'zh' | 'en';
+
+export type SiteCard = Record & { type: string };
+
+export type SiteReply = {
+ text: string;
+ card: SiteCard | null;
+ openServices?: boolean;
+};
+
+export type SiteFlow = {
+ id: string;
+ step: number;
+ data: Record;
+} | null;
+
+export type SiteAskExtra = {
+ intentId?: string;
+ dest?: string;
+ kind?: string;
+ flowId?: string;
+ choice?: string;
+};
+
+export function looksLikeTracking(text: string) {
+ if (typeof text !== 'string') return false;
+ return /^[A-Za-z0-9][A-Za-z0-9\-_]{7,}$/.test(text.replace(/\s+/g, ''));
+}
+
+export function detectIntent(text: string) {
+ const lower = text.toLowerCase();
+ if (/track|tracking|物流|单号|追踪/.test(lower) || looksLikeTracking(text)) return 'track';
+ if (/9610|退税|专票|免税|免征|合规|报关|declaration|refund|exempt/.test(lower)) return 'compliance';
+ if (/疑难|小批量|不接|带电|3c|特殊品|化妆品/.test(lower)) return 'hard';
+ if (/一件代发|代发|dropship|fulfillment/.test(lower)) return 'warehouse';
+ if (/仓储|清关|空运|海运|服务|warehous|customs|services/.test(lower)) return 'guide';
+ if (/定价|收费|价目|pricing/.test(lower)) return 'pricing';
+ if (/price|cost|quote|报价|价格|多少钱/.test(lower)) return 'quote';
+ if (/human|人工|顾问|电话|联系我们|联系/.test(lower)) return 'human';
+ if (/who are you|about ide|你们是谁|关于我们|关于|公司|靠谱/.test(lower)) return 'company';
+ return null;
+}
+
+function fallback(lang: SiteLang): SiteReply {
+ return { text: WELCOME_COPY[lang].fallback, card: { type: 'contact' } };
+}
+
+export function replyForIntent(
+ intentId: string,
+ payload: SiteAskExtra | string | null,
+ lang: SiteLang
+): { reply: SiteReply; flow: SiteFlow } {
+ const zh = lang === 'zh';
+ const dest = payload && typeof payload === 'object' ? String(payload.dest || '') : '';
+
+ if (intentId === 'human') {
+ return {
+ flow: null,
+ reply: {
+ text: zh
+ ? '点「在线咨询」用微信对接顾问,也可打电话。询价请先注册登记。'
+ : 'Tap Live chat for WeChat support, or call us. Register first if you need a quote.',
+ card: { type: 'contact' },
+ },
+ };
+ }
+ if (intentId === 'company') {
+ return {
+ flow: null,
+ reply: {
+ text: zh ? '先看这张公司卡。要询价请先注册登记。' : 'Here is who we are. Register first when you are ready to quote.',
+ card: { type: 'company' },
+ },
+ };
+ }
+ if (intentId === 'guide') {
+ return {
+ flow: null,
+ reply: {
+ text: zh ? '服务在右侧,点一张卡继续。' : 'Services are on the right — pick a card to continue.',
+ card: null,
+ openServices: true,
+ },
+ };
+ }
+ if (intentId === 'pricing') {
+ return {
+ flow: null,
+ reply: {
+ text: zh
+ ? '计费重取实重和体积重较大值;有票走退税,无票走免征。询价请先注册登记。'
+ : 'Chargeable weight is the greater of actual and volumetric. Refund if you have invoices, exemption if not. Register first to quote.',
+ card: { type: 'pricing' },
+ },
+ };
+ }
+ if (intentId === 'quote') {
+ return {
+ flow: null,
+ reply: {
+ text: dest
+ ? zh
+ ? '发到' + dest + '可以走。官网不提供询价,请先注册登记。'
+ : 'We ship to ' + dest + '. Quotes are not on this site — please register first.'
+ : zh
+ ? '官网不提供询价。完成注册登记后,即可在客户系统里看明码价。'
+ : 'This site does not quote. Register first, then see list rates in the customer system.',
+ card: { type: 'quote', dest },
+ },
+ };
+ }
+ if (intentId === 'warehouse') {
+ return {
+ flow: null,
+ reply: {
+ text: zh
+ ? '仓储一件代发要先注册登记,入仓和代发在客户系统里操作。'
+ : 'Warehouse dropship needs an account. Inbound and outbound run in the customer system.',
+ card: { type: 'warehouse' },
+ },
+ };
+ }
+ if (intentId === 'track') {
+ const raw = typeof payload === 'string' ? payload : '';
+ const number = looksLikeTracking(raw) ? raw.replace(/\s+/g, '') : '';
+ if (number) {
+ try {
+ sessionStorage.setItem('ide-pending-track', number);
+ } catch {
+ /* ignore */
+ }
+ }
+ return {
+ flow: null,
+ reply: {
+ text: number
+ ? zh
+ ? '单号已记下。请登录客户系统看本票真实节点。'
+ : 'Number saved. Sign in to see live scans for this shipment.'
+ : zh
+ ? '有单号请登录看真实轨迹。询价需先注册登记。'
+ : 'Sign in if you have a tracking number. Quotes require registration.',
+ card: { type: 'track', number },
+ },
+ };
+ }
+ if (intentId === 'hard') {
+ return {
+ flow: null,
+ reply: {
+ text: zh
+ ? '带电、特殊品、化妆品这类别人不接的单,我们按品类选线路。先说下货是什么,或点在线顾问细聊。'
+ : 'Battery, special cargo, cosmetics — we pick a lane by commodity. Tell us what it is, or talk to an advisor.',
+ card: { type: 'contact' },
+ },
+ };
+ }
+ if (intentId === 'compliance') {
+ return {
+ flow: { id: 'hard', step: 0, data: {} },
+ reply: {
+ text: zh
+ ? '出口合规我们能办:正式报关、退税、无票免征。先确认一张票,再给你对应方案。'
+ : 'We handle formal declaration, VAT refund, and invoice-free exemption. One tax question first — then the matching scheme.',
+ card: {
+ type: 'choice',
+ flowId: 'hard',
+ kicker: '9610',
+ title: zh ? '货物能取得增值税专用发票(进项票)吗?' : 'Can you obtain special VAT invoices (input invoices)?',
+ options: [
+ { id: 'vat-yes', label: zh ? '能取得专票' : 'Yes, we have invoices', primary: true },
+ { id: 'vat-no', label: zh ? '无法取得专票' : 'No special invoices' },
+ ],
+ },
+ },
+ };
+ }
+ return { flow: null, reply: fallback(lang) };
+}
+
+export function continueFlow(
+ userText: string,
+ extra: SiteAskExtra | null,
+ lang: SiteLang,
+ flow: NonNullable
+): { reply: SiteReply; flow: SiteFlow } {
+ const zh = lang === 'zh';
+ if (flow.id === 'quote') return replyForIntent('quote', extra, lang);
+ if (flow.id === 'track') return replyForIntent('track', userText, lang);
+ if (flow.id === 'hard') {
+ const choice = extra && extra.kind === 'choice' ? extra.choice : null;
+ const normalized = (choice || userText || '').toLowerCase();
+ if (flow.step === 0) {
+ const yes = choice === 'vat-yes' || /能|有票|yes|invoice/.test(normalized);
+ if (yes) {
+ return {
+ flow: null,
+ reply: {
+ text: zh ? '有专票,走退税最划算。' : 'With special invoices, refund is the strongest path.',
+ card: { type: 'hard-refund' },
+ },
+ };
+ }
+ return {
+ flow: { ...flow, step: 1 },
+ reply: {
+ text: zh ? '没有专票的话,还想不想用出口免税?' : 'Without special invoices — do you still want export tax exemption?',
+ card: {
+ type: 'choice',
+ flowId: 'hard',
+ title: zh ? '是否希望享受出口免税政策?' : 'Do you want the export tax exemption?',
+ options: [
+ { id: 'exempt-yes', label: zh ? '希望免税' : 'Yes, exemption', primary: true },
+ { id: 'exempt-no', label: zh ? '仅需出货' : 'Just need to ship' },
+ ],
+ },
+ },
+ };
+ }
+ const wantExempt = choice === 'exempt-yes' || /免税|希望|yes|exempt/.test(normalized);
+ if (wantExempt) {
+ return {
+ flow: null,
+ reply: {
+ text: zh ? '无票免征,合规且能免出口环节税。' : 'Exemption without invoice — compliant, and export tax is waived.',
+ card: { type: 'hard-exempt' },
+ },
+ };
+ }
+ return {
+ flow: null,
+ reply: {
+ text: zh ? '可以先出货,但税务风险要心里有数。' : 'We can ship first — keep the tax risk in view.',
+ card: { type: 'hard-basic' },
+ },
+ };
+ }
+ return { flow: null, reply: fallback(lang) };
+}
+
+export function buildReply(
+ userText: string,
+ extra: SiteAskExtra | null,
+ lang: SiteLang,
+ flow: SiteFlow
+): { reply: SiteReply; flow: SiteFlow } {
+ if (extra?.intentId) return replyForIntent(extra.intentId, extra, lang);
+ if (flow) return continueFlow(userText, extra, lang, flow);
+ const guessed = detectIntent(userText);
+ if (guessed === 'track' && looksLikeTracking(userText)) {
+ return replyForIntent('track', userText, lang);
+ }
+ if (guessed) return replyForIntent(guessed, userText, lang);
+ return { flow: null, reply: fallback(lang) };
+}
+
+export const SITE_NAV_TOPICS: Record = {
+ about: { intentId: 'company', label: { zh: '关于我们', en: 'About IDE' } },
+ pricing: { intentId: 'pricing', label: { zh: '价格怎么算?', en: 'How does pricing work?' } },
+ contact: { intentId: 'human', label: { zh: '联系在线顾问', en: 'Talk to an online advisor' } },
+};
diff --git a/src/views/site/lib/site-threads.ts b/src/views/site/lib/site-threads.ts
new file mode 100644
index 0000000..7a3a65c
--- /dev/null
+++ b/src/views/site/lib/site-threads.ts
@@ -0,0 +1,84 @@
+import type { SiteCard, SiteFlow } from './site-reply';
+import { WELCOME_COPY } from './site-welcome';
+
+const STORAGE_THREADS = 'ide-ai-threads';
+const STORAGE_ACTIVE_THREAD = 'ide-ai-active-thread';
+const STORAGE_SESSION = 'ide-ai-session';
+
+export type SiteChatMessage = {
+ role: 'user' | 'assistant';
+ text?: string;
+ card?: SiteCard | null;
+};
+
+export type SiteChatThread = {
+ id: string;
+ title: string;
+ updatedAt: number;
+ messages: SiteChatMessage[];
+ flow: SiteFlow;
+};
+
+function newThreadId() {
+ return 't_' + Date.now().toString(36) + '_' + Math.random().toString(36).slice(2, 8);
+}
+
+export function deriveThreadTitle(messages: SiteChatMessage[], isZh: boolean) {
+ const firstUser = messages.find((m) => m.role === 'user');
+ if (!firstUser) return isZh ? WELCOME_COPY.zh.newChat : WELCOME_COPY.en.newChat;
+ const text = String(firstUser.text || '').trim();
+ return text.length > 28 ? `${text.slice(0, 28)}…` : text;
+}
+
+export function emptyThread(isZh: boolean): SiteChatThread {
+ return {
+ id: newThreadId(),
+ title: isZh ? WELCOME_COPY.zh.newChat : WELCOME_COPY.en.newChat,
+ updatedAt: Date.now(),
+ messages: [],
+ flow: null,
+ };
+}
+
+export function persistThreads(threads: SiteChatThread[], activeThreadId: string) {
+ localStorage.setItem(STORAGE_THREADS, JSON.stringify(threads));
+ if (activeThreadId) localStorage.setItem(STORAGE_ACTIVE_THREAD, activeThreadId);
+}
+
+export function loadStoredThreads(isZh: boolean): { threads: SiteChatThread[]; activeThreadId: string } {
+ let threads: SiteChatThread[] = [];
+ try {
+ const raw = localStorage.getItem(STORAGE_THREADS);
+ threads = raw ? JSON.parse(raw) : [];
+ if (!Array.isArray(threads)) threads = [];
+ } catch {
+ threads = [];
+ }
+
+ let activeThreadId = localStorage.getItem(STORAGE_ACTIVE_THREAD) || '';
+
+ if (threads.length === 0) {
+ try {
+ const legacy = sessionStorage.getItem(STORAGE_SESSION);
+ const legacyMessages = legacy ? JSON.parse(legacy) : [];
+ if (Array.isArray(legacyMessages) && legacyMessages.length > 0) {
+ const thread = emptyThread(isZh);
+ thread.messages = legacyMessages;
+ thread.title = deriveThreadTitle(legacyMessages, isZh);
+ sessionStorage.removeItem(STORAGE_SESSION);
+ persistThreads([thread], thread.id);
+ return { threads: [thread], activeThreadId: thread.id };
+ }
+ } catch {
+ /* ignore */
+ }
+ const thread = emptyThread(isZh);
+ persistThreads([thread], thread.id);
+ return { threads: [thread], activeThreadId: thread.id };
+ }
+
+ if (!activeThreadId || !threads.some((thread) => thread.id === activeThreadId)) {
+ activeThreadId = threads[0].id;
+ }
+ return { threads, activeThreadId };
+}
diff --git a/src/views/site/lib/site-topics.ts b/src/views/site/lib/site-topics.ts
new file mode 100644
index 0000000..239d00a
--- /dev/null
+++ b/src/views/site/lib/site-topics.ts
@@ -0,0 +1,106 @@
+import { SITE_CONTACT } from './site-welcome';
+
+export type SiteTopicId = 'pricing' | 'about' | 'contact';
+
+export const SITE_TOPIC_COPY = {
+ pricing: {
+ zh: {
+ kicker: '价格',
+ title: '按线路明码报价,一口价不砍',
+ sub: '中小卖家按计费重看价即可,不磨、不砍。美国空运小包大约 5–7 天,DHL 大约 2–4 天。一口价请先注册登记。',
+ register: '去注册登记',
+ login: '已有账号,去登录',
+ lanes: '先看线路',
+ ask: '问顾问怎么算',
+ askText: '价格怎么算?',
+ },
+ en: {
+ kicker: 'Pricing',
+ title: 'Lane list rates — no haggling',
+ sub: 'SMB sellers see the list rate by chargeable weight. US air packets usually 5–7 days, DHL about 2–4. Register first to quote.',
+ register: 'Register to quote',
+ login: 'Already registered? Sign in',
+ lanes: 'Browse lanes',
+ ask: 'Ask how it is billed',
+ askText: 'How does pricing work?',
+ },
+ facts: [
+ {
+ zh: { title: '先看时效,价在登记后', hint: '美国空运小包大约 5–7 天,东南亚专线大约 4–9 天,DHL 大约 2–4 天。具体一口价按计费重在客户系统里看。' },
+ en: { title: 'Transit first, list rate after you register', hint: 'US air packets about 5–7 days, SEA lines 4–9, DHL 2–4. Exact list rates by chargeable weight in the customer system.' },
+ },
+ {
+ zh: { title: '明码一口价', hint: '注册后在客户系统里按线路看价,不用讨价还价。' },
+ en: { title: 'Published list rate', hint: 'After you register, see list rates by lane. No bargaining.' },
+ },
+ {
+ zh: { title: '有票退税,无票免征或基础通关', hint: '差在税,不在口头运费。带电、敏感货加收。' },
+ en: { title: 'Refund / exemption / basic clearance', hint: 'The gap is tax, not a spoken freight. Battery and sensitive cargo surcharge.' },
+ },
+ ],
+ },
+ about: {
+ zh: {
+ kicker: '关于',
+ title: '中小卖家的跨境物流顾问',
+ sub:
+ '深圳宝安运营,备案主体可核(' +
+ SITE_CONTACT.icp +
+ ')。主做美欧与东南亚小包。接小批量、带电、别人不接的 9610。一人从报价跟到售后。',
+ register: '去注册登记',
+ contact: '联系顾问',
+ },
+ en: {
+ kicker: 'About',
+ title: 'Cross-border logistics for SMB sellers',
+ sub:
+ 'Operated from Bao’an, Shenzhen (ICP ' +
+ SITE_CONTACT.icp +
+ '). US, EU and Southeast Asia parcels. We take low volume, battery, and 9610 others decline. One advisor from quote to after-sales.',
+ register: 'Register to quote',
+ contact: 'Talk to an advisor',
+ },
+ facts: [
+ {
+ zh: { title: '主线:美加墨 / 欧盟 / 澳新 / 东南亚', hint: '欧盟 27 国及英国,东南亚列马来、新、菲、泰、越、印尼。' },
+ en: { title: 'Lanes: US-CA-MX / EU / AU-NZ / SEA', hint: 'EU 27 and the UK, plus Malaysia, Singapore, Philippines, Thailand, Vietnam, Indonesia.' },
+ },
+ {
+ zh: { title: '难单先给出货路径', hint: '别人不接的带电、无票、超长,先保证出得去,再谈退税或免征。' },
+ en: { title: 'Tough orders get a ship path first', hint: 'Battery, no invoice, oversize — we get it out, then pick refund or exemption.' },
+ },
+ {
+ zh: { title: '专人跟,不排队工单', hint: '卖家常用一个微信号找顾问,不拉大群、不踢皮球。' },
+ en: { title: 'One advisor, not a ticket queue', hint: 'Sellers use one WeChat ID. No giant groups, no bouncing.' },
+ },
+ ],
+ },
+ contact: {
+ zh: {
+ kicker: '联系',
+ title: '专人跟,不排队工单',
+ sub: '微信扫码对接顾问。询价请先注册登记。',
+ live: '在线咨询',
+ scan: '打开微信扫一扫',
+ copied: '已复制',
+ copy: '复制微信号',
+ phone: '电话',
+ wechat: '微信号',
+ email: '邮箱',
+ address: '地址',
+ },
+ en: {
+ kicker: 'Contact',
+ title: 'One advisor — not a ticket queue',
+ sub: 'Scan with WeChat to reach an advisor. Register first if you need a quote.',
+ live: 'Live chat',
+ scan: 'Scan with WeChat',
+ copied: 'Copied',
+ copy: 'Copy WeChat ID',
+ phone: 'Phone',
+ wechat: 'WeChat ID',
+ email: 'Email',
+ address: 'Address',
+ },
+ },
+} as const;
diff --git a/src/views/site/lib/site-urls.ts b/src/views/site/lib/site-urls.ts
new file mode 100644
index 0000000..81db988
--- /dev/null
+++ b/src/views/site/lib/site-urls.ts
@@ -0,0 +1,43 @@
+export function officialAppHomeUrl() {
+ const ua = navigator.userAgent || '';
+ const mobile = /MicroMessenger|Android|iPhone|iPod|iPad|Mobile/i.test(ua);
+ return new URL(mobile ? '/h5' : '/home/workplace', window.location.origin).toString();
+}
+
+export function officialLoginUrl(dest?: string) {
+ const ua = navigator.userAgent || '';
+ const mobile = /MicroMessenger|Android|iPhone|iPod|iPad|Mobile/i.test(ua);
+ const url = new URL(mobile ? '/h5/login' : '/login', window.location.origin);
+ url.searchParams.set('from', 'official-site');
+ if (dest) url.searchParams.set('dest', dest);
+ return url.toString();
+}
+
+export function warmupOfficialLogin() {
+ const warmed = document.documentElement.dataset.omsLoginWarm;
+ if (warmed) return;
+ document.documentElement.dataset.omsLoginWarm = '1';
+ try {
+ const url = officialLoginUrl();
+ const origin = window.location.origin;
+ const preconnect = document.createElement('link');
+ preconnect.rel = 'preconnect';
+ preconnect.href = origin;
+ document.head.appendChild(preconnect);
+ const prefetch = document.createElement('link');
+ prefetch.rel = 'prefetch';
+ prefetch.href = url;
+ document.head.appendChild(prefetch);
+ } catch {
+ /* ignore */
+ }
+}
+
+export function officialTrackLoginUrl(number?: string) {
+ const ua = navigator.userAgent || '';
+ const mobile = /MicroMessenger|Android|iPhone|iPod|iPad|Mobile/i.test(ua);
+ const url = new URL(mobile ? '/h5/login' : '/login', window.location.origin);
+ url.searchParams.set('redirect', mobile ? '/h5/orders' : '/home/workplace');
+ if (number) url.searchParams.set('track', number);
+ return url.toString();
+}
diff --git a/src/views/site/lib/site-wecom.ts b/src/views/site/lib/site-wecom.ts
new file mode 100644
index 0000000..1ff1d3b
--- /dev/null
+++ b/src/views/site/lib/site-wecom.ts
@@ -0,0 +1,13 @@
+export const WECOM_KF_URL = 'https://work.weixin.qq.com/kfid/kfcae09c206f6c7045a';
+
+export function isWeChatEnv() {
+ return /MicroMessenger/i.test(navigator.userAgent);
+}
+
+export function isMobileEnv() {
+ return /Android|iPhone|iPad|iPod|Mobile/i.test(navigator.userAgent);
+}
+
+export function shouldOpenWecomDirect() {
+ return isWeChatEnv() || isMobileEnv();
+}
diff --git a/src/views/site/lib/site-welcome.ts b/src/views/site/lib/site-welcome.ts
new file mode 100644
index 0000000..ea950cf
--- /dev/null
+++ b/src/views/site/lib/site-welcome.ts
@@ -0,0 +1,271 @@
+export const WELCOME_COPY = {
+ en: {
+ title: 'IDE. Your cross-border logistics advisor',
+ titleShort: 'IDE. Logistics advisor',
+ titleRest: ' Your cross-border logistics advisor',
+ titleRestShort: ' Logistics advisor',
+ sub: 'US, EU and Southeast Asia parcels. List rates after you register. One advisor through to delivery.',
+ placeholder: 'e.g. 5 kg general cargo to the US, how many days?',
+ sendLabel: 'Ask',
+ human: 'Talk to an advisor',
+ lanes: 'See lanes',
+ you: 'You',
+ historyTitle: 'Chat history',
+ newChat: 'New chat',
+ newChatHint: 'New chat started — ask here',
+ emptyHistory: 'No conversations yet',
+ heroCta: 'Register to see rates',
+ statsAria: 'Service highlights',
+ composeLead: 'Where are you shipping? Pick a destination, or ask below.',
+ destAria: 'Pick a destination',
+ partnerTag: 'Partners',
+ partnerAria: 'Connected platforms and carriers',
+ trustIcp: '粤ICP备2025463970号-2',
+ routesBack: 'Back to lanes',
+ fallback: 'Quotes are in the customer system after you register. You can also talk to an advisor.',
+ },
+ zh: {
+ title: 'IDE.您身边的跨境物流顾问',
+ titleShort: 'IDE.跨境物流顾问',
+ titleRest: '您身边的跨境物流顾问',
+ titleRestShort: '跨境物流顾问',
+ sub: '中小卖家也能按线路看一口价。不砍价、不拉大群,一个人从报价跟到签收。',
+ placeholder: '例如:发美国普货,5kg,要几天',
+ sendLabel: '提问',
+ human: '联系顾问',
+ lanes: '看线路',
+ you: '你',
+ historyTitle: '历史记录',
+ newChat: '新会话',
+ newChatHint: '已开启新会话,在这里提问',
+ emptyHistory: '暂无会话',
+ heroCta: '去注册看价',
+ statsAria: '服务数据',
+ composeLead: '发到哪?点目的地看线路,或直接提问。',
+ destAria: '选择目的地',
+ partnerTag: '合作伙伴',
+ partnerAria: '对接平台与服务商',
+ trustIcp: '粤ICP备2025463970号-2',
+ routesBack: '返回线路',
+ fallback: '官网不提供口头价。完成注册登记后,即可在客户系统里按线路看明码价。也可以先联系顾问。',
+ },
+};
+
+export const SITE_CONTACT = {
+ phone: '18123959245',
+ email: 'bd01@1st56.com',
+ wechat: 'ydgjzzh',
+ icp: '粤ICP备2025463970号-2',
+ addressZh: '深圳宝安区福永怀德翠岗5区36栋',
+ addressEn: 'Bldg 36, Cuigang 5, Fuyong, Bao’an, Shenzhen',
+};
+
+export const HERO_STATS = [
+ {
+ value: { zh: '30+', en: '30+' },
+ label: { zh: '覆盖国家/地区', en: 'Countries & regions' },
+ },
+ {
+ value: { zh: '8,000+', en: '8,000+' },
+ label: { zh: '服务跨境卖家', en: 'SMB sellers served' },
+ },
+ {
+ value: { zh: '1,200万+', en: '12M+' },
+ label: { zh: '累计运送包裹', en: 'Parcels shipped' },
+ },
+ {
+ value: { zh: '5–7天', en: '5–7d' },
+ label: { zh: '美国空运小包', en: 'US air packets' },
+ },
+];
+
+export const SITE_INTENTS = [
+ {
+ id: 'quote',
+ icon: 'quote',
+ en: {
+ title: 'Need a rate?',
+ hint: 'Register to see list rates by lane — no haggling',
+ label: 'I want to see list rates',
+ },
+ zh: {
+ title: '想看报价',
+ hint: '登记后按线路看一口价,不用砍',
+ label: '我想看线路一口价',
+ },
+ },
+ {
+ id: 'track',
+ icon: 'track',
+ en: {
+ title: 'Where is my parcel?',
+ hint: 'Sign in to see live scans from pickup to delivery',
+ label: 'Where is my shipment from pickup to delivery?',
+ },
+ zh: {
+ title: '货到哪了',
+ hint: '登录后看揽收到派送的真实节点',
+ label: '这票货从揽收到派送卡在哪',
+ },
+ },
+ {
+ id: 'hard',
+ icon: 'hard',
+ en: {
+ title: 'Others declined it?',
+ hint: 'Battery, cosmetics, oversize — ask us first',
+ label: 'Others declined this cargo. Can you take it?',
+ },
+ zh: {
+ title: '别人不接',
+ hint: '带电、化妆品、超长,先问我们出得去不',
+ label: '别人不接的货,你们能发吗?',
+ },
+ },
+ {
+ id: 'compliance',
+ icon: 'clearance',
+ en: {
+ title: 'Export paperwork',
+ hint: 'Declaration, VAT refund, or shipping without invoices',
+ label: 'I need export compliance — declaration, refund, or exemption',
+ },
+ zh: {
+ title: '出口文件',
+ hint: '报关、退税,或没有专票怎么出',
+ label: '想出口合规:正式报关 / 退税 / 无票免征',
+ },
+ },
+ {
+ id: 'human',
+ icon: 'human',
+ en: {
+ title: 'Talk to a person',
+ hint: 'One advisor from quote to delivery — no group chat',
+ label: 'Give me a dedicated advisor, no group chat',
+ },
+ zh: {
+ title: '找顾问',
+ hint: '不拉大群,一个人从报价跟到签收',
+ label: '给我一个专属顾问,别拉群',
+ },
+ },
+] as const;
+
+export const HOME_DOORS = [
+ {
+ id: 'hard',
+ icon: 'hard',
+ intentId: 'hard' as const,
+ zh: { title: '带电、别人不接也能问', hint: '先帮你看出得去的线路,再谈税。' },
+ en: { title: 'Battery or declined cargo', hint: 'We find a lane that can leave, then the tax path.' },
+ },
+ {
+ id: 'track',
+ icon: 'track',
+ intentId: 'track' as const,
+ zh: { title: '货到哪了', hint: '登录后看揽收到派送的真实节点。' },
+ en: { title: 'Where is my parcel?', hint: 'Sign in to see scans from pickup to delivery.' },
+ },
+ {
+ id: 'clearance',
+ icon: 'clearance',
+ intentId: 'compliance' as const,
+ zh: { title: '出口报关 / 退税', hint: '正式报关、退税,或没有专票怎么出。' },
+ en: { title: 'Export paperwork', hint: 'Declaration, VAT refund, or shipping without invoices.' },
+ },
+] as const;
+
+export const SITE_PARTNERS = [
+ {
+ id: 'taobao',
+ group: 'platform',
+ icon: '/site/img/partners/taobao.svg',
+ label: '淘宝',
+ ask: { zh: '淘宝订单怎么同步发货?', en: 'How do Taobao orders sync for shipping?' },
+ },
+ {
+ id: '1688',
+ group: 'platform',
+ icon: '/site/img/partners/1688.png',
+ label: '1688',
+ ask: { zh: '1688 采购怎么一件代发?', en: 'How does 1688 dropship work?' },
+ },
+ {
+ id: 'jd',
+ group: 'platform',
+ icon: '/site/img/partners/jd.svg',
+ label: '京东',
+ ask: { zh: '京东订单怎么对接发货?', en: 'How do JD orders connect for shipping?' },
+ },
+ {
+ id: 'ae',
+ group: 'platform',
+ icon: '/site/img/partners/aliexpress.svg',
+ label: 'AE',
+ ask: { zh: 'AliExpress 店铺怎么授权同步订单?', en: 'How do I authorize AliExpress and sync orders?' },
+ },
+ {
+ id: 'icbu',
+ group: 'platform',
+ icon: '/site/img/partners/icbu.svg',
+ label: 'ICBU',
+ ask: { zh: 'ICBU / 阿里巴巴国际站订单怎么发?', en: 'How do ICBU / Alibaba.com orders ship?' },
+ },
+ {
+ id: 'lazada',
+ group: 'platform',
+ icon: '/site/img/partners/lazada.svg',
+ label: 'Lazada',
+ ask: { zh: 'Lazada 店铺怎么授权、同步订单做一件代发?', en: 'How do I authorize a Lazada shop and sync orders for dropship?' },
+ },
+ {
+ id: 'shopee',
+ group: 'platform',
+ icon: '/site/img/partners/shopee.svg',
+ label: 'Shopee',
+ ask: { zh: 'Shopee 店铺怎么授权同步订单?', en: 'How do I authorize a Shopee shop and sync orders?' },
+ },
+ {
+ id: 'tiktok',
+ group: 'platform',
+ icon: '/site/img/partners/tiktok.svg',
+ label: 'TikTok',
+ ask: { zh: 'TikTok 店铺订单怎么同步到你们系统?', en: 'How do TikTok shop orders sync into your system?' },
+ },
+ {
+ id: 'temu',
+ group: 'platform',
+ icon: '/site/img/partners/temu.svg',
+ label: 'Temu',
+ ask: { zh: 'Temu 店铺怎么授权同步、一件代发?', en: 'How do I authorize Temu for order sync and dropship?' },
+ },
+ {
+ id: 'dhl',
+ group: 'carrier',
+ icon: '/site/img/partners/dhl.svg',
+ label: 'DHL',
+ ask: { zh: '有没有 DHL 线路可以询价?', en: 'Do you have DHL lanes I can quote?' },
+ },
+ {
+ id: 'fedex',
+ group: 'carrier',
+ icon: '/site/img/partners/fedex.svg',
+ label: 'FedEx',
+ ask: { zh: '有没有 FedEx 线路可以询价?', en: 'Do you have FedEx lanes I can quote?' },
+ },
+ {
+ id: 'ups',
+ group: 'carrier',
+ icon: '/site/img/partners/ups.svg',
+ label: 'UPS',
+ ask: { zh: '有没有 UPS 线路报价?', en: 'Do you have UPS lanes I can quote?' },
+ },
+ {
+ id: '3pe',
+ group: 'carrier',
+ icon: '',
+ label: '3PE',
+ ask: { zh: '3PE 国际快递怎么走、怎么报价?', en: 'How does 3PE express work, and how do I get a quote?' },
+ },
+];
diff --git a/IDE官网/assets/js/stage-globe.js b/src/views/site/lib/stage-globe.js
similarity index 94%
rename from IDE官网/assets/js/stage-globe.js
rename to src/views/site/lib/stage-globe.js
index 4f12cbd..1271ecb 100644
--- a/IDE官网/assets/js/stage-globe.js
+++ b/src/views/site/lib/stage-globe.js
@@ -1,12 +1,8 @@
/**
* Stage maps — five regional D3 panels with pulse dots + country labels.
- * All regions share equirectangular projection + rectangular graticule.
*/
-(function (global) {
- 'use strict';
-
- const WORLD_URL = 'assets/data/world-110m.json';
- const HUB = [114.06, 22.55];
+const WORLD_URL = '/site/data/world-110m.json';
+const HUB = [114.06, 22.55];
const LABELS = {
en: { hub: 'SZX', eu: 'EU', am: 'Americas', sea: 'SEA', au: 'Oceania' },
@@ -99,7 +95,7 @@
let worldPromise = null;
function depsReady() {
- return typeof global.d3 !== 'undefined' && typeof global.topojson !== 'undefined';
+ return typeof window.d3 !== 'undefined' && typeof window.topojson !== 'undefined';
}
function loadWorld() {
@@ -121,7 +117,7 @@
}
function createProjection() {
- return global.d3.geoEquirectangular().precision(0.12);
+ return window.d3.geoEquirectangular().precision(0.12);
}
function resolveFitTarget(config, countries, regionLand) {
@@ -186,9 +182,9 @@
const projection = createProjection();
applyProjectionFit(projection, config, fitTarget, null);
- const path = global.d3.geoPath(projection);
+ const path = window.d3.geoPath(projection);
const aspect = config.preserveAspectRatio || 'xMidYMid meet';
- const svg = global.d3
+ const svg = window.d3
.select(panelEl)
.append('svg')
.attr('class', 'ai-globe-map')
@@ -201,9 +197,9 @@
const hubLayer = svg.append('g').attr('class', 'ai-globe-map__hubs');
const markerLayer = svg.append('g').attr('class', 'ai-globe-map__markers');
- const landBounds = global.d3.geoBounds(fitTarget);
+ const landBounds = window.d3.geoBounds(fitTarget);
const gPad = 1;
- const graticule = global.d3
+ const graticule = window.d3
.geoGraticule()
.extent([
[landBounds[0][0] - gPad, landBounds[0][1] - gPad],
@@ -331,10 +327,10 @@
.each(function (d) {
const pt = projection(d.coords);
if (!pt) {
- global.d3.select(this).attr('display', 'none');
+ window.d3.select(this).attr('display', 'none');
return;
}
- global.d3
+ window.d3
.select(this)
.attr('display', null)
.attr('transform', 'translate(' + pt[0] + ',' + pt[1] + ')')
@@ -399,7 +395,7 @@
loadWorld()
.then(function (world) {
- const countries = global.topojson.feature(world, world.objects.countries);
+ const countries = window.topojson.feature(world, world.objects.countries);
panels.forEach(function (panel) {
panel.api = renderRegionPanel(panel.panelEl, panel.config, countries, labels);
});
@@ -448,5 +444,4 @@
return api;
}
- global.IDEStageGlobe = { render: render };
-})(window);
+export { render };
diff --git a/src/views/site/loadVendors.ts b/src/views/site/loadVendors.ts
new file mode 100644
index 0000000..2b773fe
--- /dev/null
+++ b/src/views/site/loadVendors.ts
@@ -0,0 +1,18 @@
+export function loadSiteScript(src: string) {
+ const exists = document.querySelector(`script[data-official-vendor][src="${src}"]`);
+ if (exists) return Promise.resolve();
+ return new Promise((resolve, reject) => {
+ const script = document.createElement('script');
+ script.src = src;
+ script.async = false;
+ script.dataset.officialVendor = '1';
+ script.onload = () => resolve();
+ script.onerror = () => reject(new Error(`Failed to load ${src}`));
+ document.body.appendChild(script);
+ });
+}
+
+export async function loadSiteMapVendors() {
+ await loadSiteScript('/site/vendor/d3/d3.min.js');
+ await loadSiteScript('/site/vendor/topojson/topojson-client.min.js');
+}
diff --git a/IDE官网/assets/css/ai-advisor.css b/src/views/site/styles/ai-advisor.css
similarity index 74%
rename from IDE官网/assets/css/ai-advisor.css
rename to src/views/site/styles/ai-advisor.css
index 2bbb867..2007eb5 100644
--- a/IDE官网/assets/css/ai-advisor.css
+++ b/src/views/site/styles/ai-advisor.css
@@ -3,7 +3,7 @@
:root {
--ai-header-h: 72px;
--ai-ease: cubic-bezier(0.22, 1, 0.36, 1);
- --ai-bg: #f5f4f1;
+ --ai-bg: #f0f3f4;
--ai-bg-soft: #faf8f6;
--ai-surface: #ffffff;
--ai-text: #121820;
@@ -50,9 +50,9 @@
--ai-muted: var(--ai-text-2);
--ai-line: var(--ai-border);
--ai-glass: var(--ai-surface);
- --ai-content-max: 1120px;
- --ai-guide-panel-w: 520px;
- --ai-routes-panel-w: 1360px;
+ --ai-content-max: 1200px;
+ --ai-guide-panel-w: 760px;
+ --ai-routes-panel-w: 1080px;
--ai-acrylic-bg: rgba(255, 255, 255, 0.32);
--ai-acrylic-bg-primary: color-mix(in srgb, var(--ai-gold-soft) 42%, rgba(255, 255, 255, 0.38));
--ai-glass-fill: linear-gradient(
@@ -68,7 +68,7 @@
rgba(255, 255, 255, 0.42) 100%
);
--ai-glass-border: rgba(255, 255, 255, 0.8);
- --ai-glass-blur: blur(28px) saturate(140%);
+ --ai-glass-blur: none;
--ai-glass-shadow:
inset 0 1px 0 rgba(255, 255, 255, 0.95),
inset 0 -1px 0 rgba(255, 255, 255, 0.18),
@@ -93,7 +93,7 @@ body.command-home {
body.command-home #header.header,
body.command-home #header.header.sticked {
display: flex !important;
- padding: 10px 0;
+ padding: 20px 0 12px;
background: transparent;
backdrop-filter: none;
-webkit-backdrop-filter: none;
@@ -110,10 +110,16 @@ body.command-home #header .container-xl {
}
body.command-home #navbar > ul > li.site-nav-tools {
+ position: relative;
display: flex;
align-items: center;
flex-shrink: 0;
- gap: 8px;
+ gap: 2px;
+ isolation: isolate;
+}
+
+body.command-home .site-nav-tools__glass {
+ display: none;
}
body.command-home .site-nav-dock {
@@ -130,6 +136,27 @@ body.command-home #navbar .site-nav-dock a {
body.command-home .site-nav-dock {
display: contents;
}
+
+ body.command-home .site-nav-dock__glass,
+ body.command-home .site-nav-dock__slider,
+ body.command-home .site-nav-tools__glass {
+ display: none;
+ }
+
+ body.command-home #navbar .site-nav-dock__item {
+ flex-direction: row;
+ gap: 10px;
+ }
+
+ body.command-home #navbar .site-nav-dock__icon {
+ width: 20px;
+ height: 20px;
+ }
+
+ body.command-home #navbar .site-nav-dock__label {
+ font-size: 1rem;
+ font-weight: 700;
+ }
}
@media (min-width: 1280px) {
@@ -157,111 +184,303 @@ body.command-home #navbar .site-nav-dock a {
z-index: 3;
transform: translate(-50%, -50%);
flex-direction: row;
- align-items: center;
+ align-items: stretch;
justify-content: center;
- gap: 20px;
- padding: 6px 12px;
- border-radius: 22px;
- border: 1px solid var(--ai-glass-border);
- background: var(--ai-glass-fill);
- backdrop-filter: var(--ai-glass-blur);
- -webkit-backdrop-filter: var(--ai-glass-blur);
- box-shadow: var(--ai-glass-shadow);
+ gap: 0;
+ width: min(560px, calc(100vw - 280px));
+ height: 60px;
+ padding: 5px;
+ overflow: hidden;
+ isolation: isolate;
+ border: none;
+ border-radius: 28px;
+ background: transparent;
+ box-shadow:
+ 0 12px 40px rgba(15, 23, 42, 0.1),
+ 0 2px 8px rgba(15, 23, 42, 0.04);
+ }
+
+ body.command-home .site-nav-dock__glass {
+ position: absolute;
+ inset: 0;
+ z-index: 0;
+ border-radius: inherit;
+ overflow: hidden;
+ pointer-events: none;
+ background: linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.16) 100%);
+ backdrop-filter: blur(32px) saturate(190%) brightness(1.08);
+ -webkit-backdrop-filter: blur(32px) saturate(190%) brightness(1.08);
+ }
+
+ body.command-home .site-nav-dock__glass::before {
+ content: '';
+ position: absolute;
+ inset: 0;
+ border-radius: inherit;
+ background: linear-gradient(
+ 165deg,
+ rgba(255, 255, 255, 0.62) 0%,
+ rgba(255, 255, 255, 0.12) 32%,
+ rgba(255, 255, 255, 0) 58%
+ );
+ }
+
+ body.command-home .site-nav-dock__glass::after {
+ content: '';
+ position: absolute;
+ inset: 0;
+ border-radius: inherit;
+ padding: 1px;
+ background: linear-gradient(
+ 180deg,
+ rgba(255, 255, 255, 0.92) 0%,
+ rgba(255, 255, 255, 0.28) 42%,
+ rgba(255, 255, 255, 0.4) 100%
+ );
+ -webkit-mask:
+ linear-gradient(#000 0 0) content-box,
+ linear-gradient(#000 0 0);
+ -webkit-mask-composite: xor;
+ mask:
+ linear-gradient(#000 0 0) content-box,
+ linear-gradient(#000 0 0);
+ mask-composite: exclude;
+ }
+
+ body.command-home .site-nav-dock__slider {
+ position: absolute;
+ top: 5px;
+ bottom: 5px;
+ z-index: 1;
+ border-radius: 23px;
+ pointer-events: none;
+ opacity: 0;
+ background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.42) 100%);
+ box-shadow:
+ 0 4px 16px rgba(15, 23, 42, 0.08),
+ inset 0 1px 0 rgba(255, 255, 255, 0.95),
+ inset 0 -1px 0 rgba(255, 255, 255, 0.2);
+ }
+
+ body.command-home .site-nav-dock__slider:not(.is-ready) {
+ transition: none;
+ }
+
+ body.command-home .site-nav-dock__slider.is-ready {
+ transition:
+ left 0.42s cubic-bezier(0.32, 0.72, 0, 1),
+ width 0.42s cubic-bezier(0.32, 0.72, 0, 1),
+ opacity 0.2s ease;
}
body.command-home #navbar li.site-nav-dock:hover > a,
body.command-home #navbar .site-nav-dock:hover > a {
- color: var(--ai-text-2);
+ color: inherit;
}
body.command-home #navbar .site-nav-dock a,
body.command-home #navbar .site-nav-dock a:focus {
position: relative;
- display: inline-flex;
+ z-index: 2;
+ flex: 1 1 0;
+ display: flex;
+ flex-direction: column;
align-items: center;
justify-content: center;
- min-height: 40px;
- padding: 8px 14px;
- border-radius: 16px;
- border: 1px solid transparent;
- color: var(--ai-text-2);
- font-size: 1rem;
- font-weight: 700;
- letter-spacing: 0.01em;
+ gap: 2px;
+ min-width: 0;
+ min-height: 0;
+ padding: 0 2px;
+ border: none;
+ border-radius: 0;
+ color: #86909c;
+ font-size: 11px;
+ font-weight: 500;
+ letter-spacing: 0;
white-space: nowrap;
background: transparent;
- transition:
- border-color 0.2s var(--ai-ease),
- background 0.2s var(--ai-ease),
- color 0.2s var(--ai-ease);
+ box-shadow: none;
+ transition: color 0.22s ease;
}
body.command-home #navbar .site-nav-dock a::after {
- content: '';
- position: absolute;
- top: 50%;
- right: 4px;
- left: auto;
- bottom: auto;
- width: 5px;
- height: 5px;
- border-radius: 50%;
- background: var(--ai-action);
- box-shadow:
- 0 0 0 0 color-mix(in srgb, var(--ai-action) 0%, transparent),
- 0 0 8px color-mix(in srgb, var(--ai-action) 0%, transparent);
- opacity: 0;
- transform: translateY(-50%) scale(0.4);
- transition:
- opacity 0.22s var(--ai-ease),
- transform 0.22s var(--ai-ease),
- box-shadow 0.22s var(--ai-ease);
- pointer-events: none;
+ display: none;
}
body.command-home #navbar .site-nav-dock a:hover {
color: var(--ai-text);
- border-color: rgba(255, 255, 255, 0.92);
- background: rgba(255, 255, 255, 0.44);
+ border-color: transparent;
+ background: transparent;
transform: none;
}
body.command-home #navbar .site-nav-dock a.active,
- body.command-home #navbar .site-nav-dock a.active:focus {
+ body.command-home #navbar .site-nav-dock a.active:focus,
+ body.command-home #navbar .site-nav-dock a.is-active,
+ body.command-home #navbar .site-nav-dock a.is-active:focus {
color: var(--ai-action);
border-color: transparent;
background: transparent;
box-shadow: none;
transform: none;
- padding-right: 16px;
+ padding-right: 2px;
}
- body.command-home #navbar .site-nav-dock a.active::after,
- body.command-home #navbar .site-nav-dock a.active:focus::after {
- opacity: 1;
- transform: translateY(-50%) scale(1);
- box-shadow:
- 0 0 0 3px color-mix(in srgb, var(--ai-action) 16%, transparent),
- 0 0 10px color-mix(in srgb, var(--ai-action) 55%, transparent);
- animation: aiNavDotPulse 2.4s var(--ai-ease) infinite;
- }
-
- body.command-home #navbar .site-nav-dock a.active:hover {
+ body.command-home #navbar .site-nav-dock a.active:hover,
+ body.command-home #navbar .site-nav-dock a.is-active:hover {
color: var(--ai-action);
- border-color: rgba(255, 255, 255, 0.92);
- background: rgba(255, 255, 255, 0.36);
+ border-color: transparent;
+ background: transparent;
+ }
+
+ body.command-home .site-nav-dock__icon {
+ display: inline-flex;
+ width: 24px;
+ height: 24px;
+ color: inherit;
+ }
+
+ body.command-home .site-nav-dock__icon svg {
+ width: 100%;
+ height: 100%;
+ display: block;
+ }
+
+ body.command-home #navbar .site-nav-dock a.is-active .site-nav-dock__icon {
+ animation: h5-dock-icon-pop 0.42s cubic-bezier(0.22, 1.35, 0.36, 1);
+ }
+
+ body.command-home .site-nav-dock__label {
+ max-width: 100%;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ font-size: 11px;
+ font-weight: 500;
+ line-height: 1.15;
+ }
+
+ body.command-home #navbar .site-nav-dock a.is-active .site-nav-dock__label {
+ font-weight: 700;
}
body.command-home #navbar > ul > li.site-nav-tools {
- display: flex;
- align-items: center;
- flex-shrink: 0;
- gap: 8px;
+ height: 60px;
+ padding: 5px;
+ overflow: hidden;
+ border: none;
+ border-radius: 28px;
+ background: transparent;
+ box-shadow:
+ 0 12px 40px rgba(15, 23, 42, 0.1),
+ 0 2px 8px rgba(15, 23, 42, 0.04);
+ }
+
+ body.command-home .site-nav-tools__glass {
+ display: block;
+ position: absolute;
+ inset: 0;
+ z-index: 0;
+ border-radius: inherit;
+ overflow: hidden;
+ pointer-events: none;
+ background: linear-gradient(180deg, rgba(255, 255, 255, 0.38) 0%, rgba(255, 255, 255, 0.16) 100%);
+ backdrop-filter: blur(32px) saturate(190%) brightness(1.08);
+ -webkit-backdrop-filter: blur(32px) saturate(190%) brightness(1.08);
+ }
+
+ body.command-home .site-nav-tools__glass::before {
+ content: '';
+ position: absolute;
+ inset: 0;
+ border-radius: inherit;
+ background: linear-gradient(
+ 165deg,
+ rgba(255, 255, 255, 0.62) 0%,
+ rgba(255, 255, 255, 0.12) 32%,
+ rgba(255, 255, 255, 0) 58%
+ );
+ }
+
+ body.command-home .site-nav-tools__glass::after {
+ content: '';
+ position: absolute;
+ inset: 0;
+ border-radius: inherit;
+ padding: 1px;
+ background: linear-gradient(
+ 180deg,
+ rgba(255, 255, 255, 0.92) 0%,
+ rgba(255, 255, 255, 0.28) 42%,
+ rgba(255, 255, 255, 0.4) 100%
+ );
+ -webkit-mask:
+ linear-gradient(#000 0 0) content-box,
+ linear-gradient(#000 0 0);
+ -webkit-mask-composite: xor;
+ mask:
+ linear-gradient(#000 0 0) content-box,
+ linear-gradient(#000 0 0);
+ mask-composite: exclude;
+ }
+
+ body.command-home #navbar .site-nav-tools .site-nav-login,
+ body.command-home #navbar .site-nav-tools .site-nav-login:focus,
+ body.command-home #navbar .site-nav-tools .site-nav-login:hover,
+ body.command-home #navbar .site-nav-tools .site-nav-login:visited,
+ body.command-home #navbar .site-nav-tools .language-toggle-link,
+ body.command-home #navbar .site-nav-tools .language-toggle-link:focus,
+ body.command-home #navbar .site-nav-tools .language-toggle-link:hover,
+ body.command-home #navbar .site-nav-tools .language-toggle-link.active,
+ body.command-home #navbar .site-nav-tools .language-toggle-link.active:focus {
+ position: relative;
+ z-index: 1;
+ height: 100%;
+ min-height: 0;
+ padding: 0 14px;
+ border: none;
+ border-radius: 23px;
+ background: transparent;
+ backdrop-filter: none;
+ -webkit-backdrop-filter: none;
+ box-shadow: none;
+ transition:
+ background 0.22s ease,
+ box-shadow 0.22s ease,
+ color 0.22s ease;
+ }
+
+ body.command-home #navbar .site-nav-tools .site-nav-login:hover,
+ body.command-home #navbar .site-nav-tools .site-nav-login:focus,
+ body.command-home #navbar .site-nav-tools .language-toggle-link:hover,
+ body.command-home #navbar .site-nav-tools .language-toggle-link.active,
+ body.command-home #navbar .site-nav-tools .language-toggle-link.active:focus {
+ background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.42) 100%);
+ box-shadow:
+ 0 4px 16px rgba(15, 23, 42, 0.08),
+ inset 0 1px 0 rgba(255, 255, 255, 0.95),
+ inset 0 -1px 0 rgba(255, 255, 255, 0.2);
+ }
+
+ body.command-home #navbar .site-nav-tools .site-nav-avatar,
+ body.command-home #navbar .site-nav-tools .site-nav-avatar:visited,
+ body.command-home #navbar .site-nav-tools .site-nav-avatar:hover {
+ position: relative;
+ z-index: 1;
+ width: 50px;
+ height: 50px;
+ border: none;
+ background: transparent;
+ box-shadow: none;
+ }
+
+ body.command-home #navbar .site-nav-tools .site-nav-avatar img {
+ width: 36px;
+ height: 36px;
+ border-radius: 50%;
}
body.command-home #navbar .language-toggle-link,
body.command-home #navbar .language-toggle-link:focus {
- padding: 0 10px 0 8px;
margin-left: 0;
}
}
@@ -280,9 +499,24 @@ body.command-home #navbar .site-nav-dock a {
}
}
+@keyframes h5-dock-icon-pop {
+ 0% {
+ transform: scale(0.88);
+ }
+ 70% {
+ transform: scale(1.08);
+ }
+ 100% {
+ transform: scale(1);
+ }
+}
+
@media (prefers-reduced-motion: reduce) {
- body.command-home #navbar .site-nav-dock a.active::after,
- body.command-home #navbar .site-nav-dock a.active:focus::after {
+ body.command-home .site-nav-dock__slider.is-ready {
+ transition: none;
+ }
+
+ body.command-home #navbar .site-nav-dock a.is-active .site-nav-dock__icon {
animation: none;
}
}
@@ -334,15 +568,19 @@ body.command-home #navbar .language-toggle-link,
body.command-home #navbar .language-toggle-link:focus,
body.command-home #navbar .language-toggle-link:hover,
body.command-home #navbar .language-toggle-link.active,
-body.command-home #navbar .language-toggle-link.active:focus {
+body.command-home #navbar .language-toggle-link.active:focus,
+body.command-home #navbar .site-nav-login,
+body.command-home #navbar .site-nav-login:focus,
+body.command-home #navbar .site-nav-login:hover,
+body.command-home #navbar .site-nav-login:visited {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
+ box-sizing: border-box;
width: auto;
height: 32px;
margin: 0;
- padding: 0 10px 0 8px;
border: 1px solid var(--ai-glass-border);
border-radius: var(--ai-radius-sm);
background: var(--ai-glass-fill);
@@ -357,7 +595,29 @@ body.command-home #navbar .language-toggle-link.active:focus {
color 0.2s var(--ai-ease);
}
+body.command-home #navbar .language-toggle-link,
+body.command-home #navbar .language-toggle-link:focus,
+body.command-home #navbar .language-toggle-link:hover,
+body.command-home #navbar .language-toggle-link.active,
+body.command-home #navbar .language-toggle-link.active:focus {
+ padding: 0 10px 0 8px;
+}
+
+body.command-home #navbar .site-nav-login,
+body.command-home #navbar .site-nav-login:focus,
+body.command-home #navbar .site-nav-login:hover,
+body.command-home #navbar .site-nav-login:visited {
+ padding: 0 12px;
+ text-decoration: none;
+ font-size: 13px;
+ font-weight: 700;
+ line-height: 1;
+ color: var(--ai-action);
+}
+
body.command-home .language-toggle-icon {
+ width: 1em;
+ height: 1em;
font-size: 15px;
line-height: 1;
color: var(--ai-text-2);
@@ -375,7 +635,9 @@ body.command-home .language-toggle__next {
body.command-home #navbar .language-toggle-link:hover,
body.command-home #navbar .language-toggle-link.active,
-body.command-home #navbar .language-toggle-link.active:focus {
+body.command-home #navbar .language-toggle-link.active:focus,
+body.command-home #navbar .site-nav-login:hover,
+body.command-home #navbar .site-nav-login:focus {
border-color: rgba(255, 255, 255, 0.94);
background: var(--ai-glass-fill-strong);
box-shadow: var(--ai-glass-shadow);
@@ -1024,24 +1286,71 @@ body.command-home .ai-stage-map--eu {
cursor: pointer;
}
-.ai-guide-panel {
+.site-nav-sheet {
position: fixed;
- top: var(--ai-header-h);
- right: 0;
- bottom: 0;
- z-index: 20;
- width: min(var(--ai-guide-panel-w), 92vw);
+ top: calc(var(--ai-header-h) + 8px);
+ left: 50%;
+ right: auto;
+ bottom: auto;
+ z-index: 996;
display: flex;
flex-direction: column;
- padding: 22px 20px 24px;
- border-left: 1px solid rgba(255, 255, 255, 0.55);
- background: color-mix(in srgb, var(--ai-bg) 90%, var(--ai-surface));
- backdrop-filter: blur(28px) saturate(160%);
- -webkit-backdrop-filter: blur(28px) saturate(160%);
- box-shadow: none;
- transform: translateX(105%);
- transition: transform 0.28s var(--ai-ease);
+ max-height: calc(100vh - var(--ai-header-h) - 20px);
overflow: hidden;
+ transform: translateX(-50%);
+ border: 1px solid var(--ai-glass-border);
+ border-radius: 24px;
+ background: color-mix(in srgb, #fff 88%, var(--ai-bg));
+ box-shadow:
+ 0 1px 0 rgba(255, 255, 255, 0.9) inset,
+ 0 18px 48px rgba(15, 23, 42, 0.12),
+ 0 0 0 1px rgba(18, 24, 32, 0.04);
+}
+
+.site-nav-sheet--routes {
+ width: min(var(--ai-routes-panel-w), calc(100vw - 40px));
+}
+
+.site-nav-sheet--services {
+ width: min(var(--ai-guide-panel-w), calc(100vw - 40px));
+}
+
+.site-nav-sheet--pricing,
+.site-nav-sheet--about {
+ width: min(720px, calc(100vw - 40px));
+}
+
+.site-nav-sheet--contact {
+ width: min(680px, calc(100vw - 40px));
+}
+
+@media (max-width: 780px) {
+ .site-nav-sheet {
+ top: auto;
+ left: 12px;
+ right: 12px;
+ bottom: 12px;
+ width: auto;
+ max-height: calc(100vh - var(--ai-header-h) - 24px);
+ transform: none;
+ border-radius: 20px;
+ }
+
+ .site-nav-sheet--routes,
+ .site-nav-sheet--services,
+ .site-nav-sheet--pricing,
+ .site-nav-sheet--about,
+ .site-nav-sheet--contact {
+ width: auto;
+ }
+
+ .ai-guide-panel__cards {
+ grid-template-columns: minmax(0, 1fr);
+ }
+}
+
+.ai-guide-panel {
+ padding: 20px 20px 18px;
}
.ai-guide-panel::before {
@@ -1053,10 +1362,6 @@ body.command-home .ai-stage-map--eu {
z-index: 1;
}
-#ai-advisor-shell.ai-guide-open .ai-guide-panel {
- transform: translateX(0);
-}
-
.ai-guide-panel__head {
display: flex;
align-items: flex-start;
@@ -1091,11 +1396,8 @@ body.command-home .ai-stage-map--eu {
width: 32px;
height: 32px;
border-radius: 12px;
- border: 1px solid rgba(255, 255, 255, 0.72);
- background: var(--ai-acrylic-bg);
- backdrop-filter: blur(28px) saturate(160%);
- -webkit-backdrop-filter: blur(28px) saturate(160%);
- box-shadow: none;
+ border: 1px solid var(--ai-border-soft);
+ background: color-mix(in srgb, #fff 70%, var(--ai-bg));
color: var(--ai-text-2);
cursor: pointer;
transition:
@@ -1106,8 +1408,8 @@ body.command-home .ai-stage-map--eu {
.ai-guide-panel__close:hover {
color: var(--ai-action);
- border-color: rgba(255, 255, 255, 0.92);
- background: rgba(255, 255, 255, 0.44);
+ border-color: color-mix(in srgb, var(--ai-action) 22%, #fff);
+ background: #fff;
}
.ai-guide-panel__sub {
@@ -1122,6 +1424,7 @@ body.command-home .ai-stage-map--eu {
min-height: 0;
overflow-y: auto;
display: grid;
+ grid-template-columns: repeat(2, minmax(0, 1fr));
align-content: start;
gap: 10px;
padding-right: 0;
@@ -1139,17 +1442,15 @@ body.command-home .ai-stage-map--eu {
grid-template-columns: 36px minmax(0, 1fr);
align-items: start;
column-gap: 12px;
- min-height: 104px;
- padding: 18px 16px 18px 14px;
- border-radius: 20px;
+ min-height: 0;
+ padding: 14px 14px 14px 12px;
+ border-radius: 16px;
text-align: left;
color: inherit;
cursor: pointer;
overflow: hidden;
- border: 1px solid rgba(255, 255, 255, 0.72);
- background: var(--ai-acrylic-bg);
- backdrop-filter: blur(28px) saturate(160%);
- -webkit-backdrop-filter: blur(28px) saturate(160%);
+ border: 1px solid var(--ai-border-soft);
+ background: color-mix(in srgb, #fff 72%, var(--ai-bg));
box-shadow: none;
transition:
border-color 0.2s var(--ai-ease),
@@ -1164,9 +1465,9 @@ body.command-home .ai-stage-map--eu {
.ai-guide-card:hover,
.ai-guide-card:focus-visible {
- border-color: rgba(255, 255, 255, 0.92);
- background: rgba(255, 255, 255, 0.44);
- box-shadow: none;
+ border-color: color-mix(in srgb, var(--ai-action) 22%, #fff);
+ background: #fff;
+ box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
transform: none;
}
@@ -1250,28 +1551,188 @@ body.command-home .ai-stage-map--eu {
line-clamp: 2;
}
-.ai-routes-panel {
- position: fixed;
- top: var(--ai-header-h);
- right: 0;
- bottom: 0;
- z-index: 20;
- width: min(var(--ai-routes-panel-w), 96vw);
- display: flex;
- flex-direction: column;
- padding: 22px 24px 16px;
- border-left: 1px solid rgba(255, 255, 255, 0.55);
- background: color-mix(in srgb, var(--ai-bg) 90%, var(--ai-surface));
- backdrop-filter: blur(28px) saturate(160%);
- -webkit-backdrop-filter: blur(28px) saturate(160%);
- box-shadow: none;
- transform: translateX(105%);
- transition: transform 0.28s var(--ai-ease);
- overflow: hidden;
+.site-topic-facts {
+ display: grid;
+ gap: 10px;
+ margin-bottom: 16px;
}
-#ai-advisor-shell.ai-routes-open .ai-routes-panel {
- transform: translateX(0);
+.site-topic-fact {
+ display: flex;
+ flex-direction: column;
+ gap: 4px;
+ padding: 14px 16px;
+ border-radius: 16px;
+ border: 1px solid var(--ai-border-soft);
+ background: color-mix(in srgb, #fff 72%, var(--ai-bg));
+}
+
+.site-topic-fact strong {
+ font-size: 0.95rem;
+ font-weight: 750;
+ line-height: 1.35;
+ color: var(--ai-ink);
+}
+
+.site-topic-fact span {
+ font-size: 0.82rem;
+ line-height: 1.55;
+ color: var(--ai-muted);
+}
+
+.site-topic-contact {
+ display: grid;
+ grid-template-columns: 188px minmax(0, 1fr);
+ gap: 16px;
+ margin-bottom: 16px;
+ align-items: stretch;
+}
+
+.site-topic-qr {
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ gap: 8px;
+ padding: 16px 12px 14px;
+ border-radius: 16px;
+ border: 1px solid var(--ai-border-soft);
+ background: color-mix(in srgb, #fff 78%, var(--ai-bg));
+}
+
+.site-topic-qr__img {
+ width: 168px;
+ height: 168px;
+ border-radius: 8px;
+ background: #fff;
+}
+
+.site-topic-qr__hint,
+.site-topic-qr__fallback {
+ margin: 0;
+ font-size: 0.75rem;
+ font-weight: 650;
+ color: var(--ai-text-3);
+ text-align: center;
+}
+
+.site-topic-methods {
+ display: grid;
+ gap: 8px;
+}
+
+.site-topic-method {
+ display: flex;
+ flex-direction: column;
+ align-items: flex-start;
+ gap: 2px;
+ width: 100%;
+ padding: 10px 12px;
+ border-radius: 14px;
+ border: 1px solid var(--ai-border-soft);
+ background: color-mix(in srgb, #fff 72%, var(--ai-bg));
+ color: inherit;
+ text-align: left;
+ text-decoration: none;
+ cursor: pointer;
+}
+
+.site-topic-method.is-static {
+ cursor: default;
+}
+
+.site-topic-method:hover:not(.is-static) {
+ border-color: color-mix(in srgb, var(--ai-action) 22%, #fff);
+ background: #fff;
+}
+
+.site-topic-method span {
+ font-size: 0.7rem;
+ font-weight: 700;
+ letter-spacing: 0.04em;
+ color: var(--ai-gold);
+}
+
+.site-topic-method strong {
+ font-size: 0.9rem;
+ font-weight: 700;
+ line-height: 1.35;
+ color: var(--ai-ink);
+ word-break: break-all;
+}
+
+.site-topic-actions {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: center;
+ gap: 8px;
+ margin-top: auto;
+}
+
+.site-topic-btn {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ min-height: 36px;
+ padding: 0 14px;
+ border-radius: 12px;
+ border: 1px solid var(--ai-border-soft);
+ background: color-mix(in srgb, #fff 70%, var(--ai-bg));
+ color: var(--ai-action);
+ font-size: 0.86rem;
+ font-weight: 700;
+ text-decoration: none;
+ cursor: pointer;
+}
+
+.site-topic-btn.is-primary {
+ border-color: var(--ai-action);
+ background: var(--ai-action);
+ color: #fff;
+}
+
+.site-topic-btn.is-ghost {
+ border-color: transparent;
+ background: transparent;
+}
+
+.site-topic-btn.is-icon {
+ width: 36px;
+ min-width: 36px;
+ padding: 0;
+ border-color: transparent;
+ background: transparent;
+ color: var(--ai-text-3);
+}
+
+.site-topic-btn.is-icon svg {
+ display: block;
+ width: 18px;
+ height: 18px;
+}
+
+.site-topic-btn:hover {
+ filter: brightness(1.03);
+}
+
+.site-topic-btn.is-ghost:hover {
+ background: color-mix(in srgb, var(--ai-action) 8%, #fff);
+}
+
+.site-topic-btn.is-icon:hover {
+ filter: none;
+ color: var(--ai-action);
+ background: color-mix(in srgb, var(--ai-action) 8%, transparent);
+}
+
+@media (max-width: 640px) {
+ .site-topic-contact {
+ grid-template-columns: minmax(0, 1fr);
+ }
+}
+
+.ai-routes-panel {
+ padding: 18px 20px 14px;
}
.ai-routes-panel__head {
@@ -1279,25 +1740,24 @@ body.command-home .ai-stage-map--eu {
align-items: center;
justify-content: space-between;
gap: 12px;
- margin-bottom: 14px;
+ margin-bottom: 10px;
}
.ai-routes-panel__intro {
display: flex;
align-items: baseline;
flex-wrap: wrap;
- gap: 8px 12px;
+ gap: 6px 10px;
min-width: 0;
}
.ai-routes-panel__title {
margin: 0;
font-size: 1.12rem;
- font-weight: 750;
+ font-weight: 780;
letter-spacing: -0.02em;
line-height: 1.2;
color: var(--ai-ink);
- flex-shrink: 0;
}
.ai-routes-panel__close {
@@ -1308,31 +1768,60 @@ body.command-home .ai-stage-map--eu {
width: 32px;
height: 32px;
border-radius: 12px;
- border: 1px solid rgba(255, 255, 255, 0.72);
- background: var(--ai-acrylic-bg);
+ border: 1px solid var(--ai-border-soft);
+ background: color-mix(in srgb, #fff 70%, var(--ai-bg));
color: var(--ai-text-2);
cursor: pointer;
}
.ai-routes-panel__close:hover {
color: var(--ai-action);
- border-color: rgba(255, 255, 255, 0.92);
- background: rgba(255, 255, 255, 0.44);
+ border-color: color-mix(in srgb, var(--ai-action) 22%, #fff);
+ background: #fff;
}
.ai-routes-panel__sub {
margin: 0;
- font-size: 0.86rem;
+ font-size: 0.82rem;
line-height: 1.35;
color: var(--ai-text-3);
- min-width: 0;
}
.ai-routes-panel__tools {
display: flex;
flex-direction: column;
gap: 10px;
- margin-bottom: 14px;
+ margin-bottom: 12px;
+}
+
+.ai-routes-dests,
+.ai-routes-groups,
+.ai-routes-terms {
+ display: flex;
+ flex-wrap: nowrap;
+ gap: 8px;
+ overflow-x: auto;
+ padding-bottom: 2px;
+ scrollbar-width: none;
+}
+
+.ai-routes-dests::-webkit-scrollbar,
+.ai-routes-groups::-webkit-scrollbar,
+.ai-routes-terms::-webkit-scrollbar {
+ display: none;
+}
+
+.ai-routes-toolrow {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px 10px;
+ align-items: center;
+}
+
+.ai-routes-toolrow .ai-routes-groups,
+.ai-routes-toolrow .ai-routes-terms {
+ flex: 0 1 auto;
+ min-width: 0;
}
.ai-routes-search {
@@ -1342,8 +1831,8 @@ body.command-home .ai-stage-map--eu {
min-height: 40px;
padding: 0 12px;
border-radius: 12px;
- border: 1px solid rgba(255, 255, 255, 0.72);
- background: var(--ai-acrylic-bg);
+ border: 1px solid var(--ai-border-soft);
+ background: color-mix(in srgb, var(--ai-input-bg) 70%, #fff);
color: var(--ai-text-3);
}
@@ -1357,17 +1846,38 @@ body.command-home .ai-stage-map--eu {
font-size: 0.9rem;
}
-.ai-routes-groups {
+.ai-routes-toolbar {
display: flex;
- flex-wrap: nowrap;
- gap: 8px;
- overflow-x: auto;
- padding-bottom: 2px;
- scrollbar-width: none;
+ flex-wrap: wrap;
+ align-items: center;
+ justify-content: space-between;
+ gap: 8px 12px;
}
-.ai-routes-groups::-webkit-scrollbar {
- display: none;
+.ai-routes-meta {
+ margin: 0;
+ font-size: 0.76rem;
+ font-weight: 650;
+ color: var(--ai-text-3);
+}
+
+.ai-routes-sticky {
+ margin-left: auto;
+ min-height: 32px;
+ padding: 0 12px;
+ border-radius: 999px;
+ border: 1px dashed color-mix(in srgb, var(--ai-gold) 45%, #fff);
+ background: color-mix(in srgb, var(--ai-gold) 12%, #fff);
+ color: var(--ai-action);
+ font-size: 0.78rem;
+ font-weight: 650;
+ cursor: pointer;
+ text-align: center;
+ white-space: nowrap;
+}
+
+.ai-routes-sticky:hover {
+ background: color-mix(in srgb, var(--ai-gold) 18%, #fff);
}
.ai-routes-chip {
@@ -1375,8 +1885,8 @@ body.command-home .ai-stage-map--eu {
min-height: 32px;
padding: 0 12px;
border-radius: 999px;
- border: 1px solid rgba(255, 255, 255, 0.72);
- background: var(--ai-acrylic-bg);
+ border: 1px solid var(--ai-border-soft);
+ background: color-mix(in srgb, #fff 70%, var(--ai-bg));
color: var(--ai-text-2);
font-size: 0.8rem;
font-weight: 600;
@@ -1390,6 +1900,12 @@ body.command-home .ai-stage-map--eu {
background: color-mix(in srgb, var(--ai-action) 10%, #fff);
}
+.ai-routes-dests .ai-routes-chip.is-active {
+ color: #fff;
+ border-color: var(--ai-action);
+ background: var(--ai-action);
+}
+
.ai-routes-panel__body {
flex: 1;
min-height: 0;
@@ -1398,230 +1914,300 @@ body.command-home .ai-stage-map--eu {
grid-template-columns: repeat(2, minmax(0, 1fr));
align-content: start;
gap: 12px;
- scrollbar-width: none;
-}
-
-.ai-routes-panel__body::-webkit-scrollbar {
- display: none;
-}
-
-.ai-routes-panel__foot {
- flex-shrink: 0;
- padding-top: 12px;
-}
-
-.ai-routes-sticky {
- width: 100%;
- min-height: 42px;
- padding: 0 14px;
- border-radius: 12px;
- border: 1px dashed color-mix(in srgb, var(--ai-gold) 45%, #fff);
- background: color-mix(in srgb, var(--ai-gold) 12%, #fff);
- color: var(--ai-action);
- font-size: 0.86rem;
- font-weight: 650;
- cursor: pointer;
- text-align: center;
-}
-
-.ai-routes-sticky:hover {
- background: color-mix(in srgb, var(--ai-gold) 18%, #fff);
+ scrollbar-width: thin;
}
.ai-route-card {
- display: grid;
- grid-template-columns: 78px minmax(0, 1fr);
- gap: 12px;
- padding: 14px 14px 14px 12px;
- border-radius: 18px;
- border: 1px solid rgba(255, 255, 255, 0.72);
- background: var(--ai-acrylic-bg);
- backdrop-filter: blur(20px) saturate(160%);
- -webkit-backdrop-filter: blur(20px) saturate(160%);
-}
-
-.ai-route-card__eta {
display: flex;
flex-direction: column;
- align-items: center;
- justify-content: center;
- gap: 2px;
- min-height: 72px;
- border-radius: 14px;
- background: color-mix(in srgb, var(--ai-action) 12%, #fff);
- color: var(--ai-action);
- text-align: center;
+ gap: 8px;
+ min-height: 0;
+ padding: 14px 16px;
+ border-radius: 16px;
+ border: 1px solid var(--ai-border-soft);
+ background: color-mix(in srgb, #fff 78%, var(--ai-bg));
}
-.ai-route-card__eta strong {
- font-size: 1.35rem;
- font-weight: 800;
- letter-spacing: -0.03em;
- line-height: 1.1;
+.ai-route-card__head {
+ display: flex;
+ align-items: flex-start;
+ justify-content: space-between;
+ gap: 12px;
}
-.ai-route-card__eta span {
- font-size: 0.72rem;
- font-weight: 650;
- opacity: 0.85;
-}
-
-.ai-route-card__eta.is-muted {
- background: color-mix(in srgb, var(--ai-border) 35%, #fff);
- color: var(--ai-text-3);
-}
-
-.ai-route-card__main {
+.ai-route-card__titles {
min-width: 0;
display: flex;
- flex-direction: column;
- gap: 6px;
+ flex-direction: row;
+ flex-wrap: wrap;
+ align-items: baseline;
+ gap: 0;
}
.ai-route-card__group {
- font-size: 0.7rem;
- font-weight: 700;
- letter-spacing: 0.04em;
- color: var(--ai-gold);
+ flex-shrink: 0;
+ font-size: 0.72rem;
+ font-weight: 600;
+ letter-spacing: 0.02em;
+ line-height: 1.3;
+ color: var(--ai-muted);
+}
+
+.ai-route-card__group::after {
+ content: '·';
+ margin: 0 6px;
+ font-weight: 500;
+ color: color-mix(in srgb, var(--ai-muted) 55%, transparent);
}
.ai-route-card__name {
margin: 0;
- font-size: 1rem;
- font-weight: 750;
+ min-width: 0;
+ font-size: 1.05rem;
+ font-weight: 800;
line-height: 1.3;
- color: var(--ai-ink);
+ letter-spacing: -0.01em;
+ color: var(--ai-action);
}
-.ai-route-card__terms {
- display: inline-flex;
- align-items: center;
- gap: 6px;
- width: fit-content;
- min-height: 24px;
- padding: 0 8px;
- border-radius: 999px;
- border: 1px solid color-mix(in srgb, var(--ai-sky) 35%, #fff);
- background: color-mix(in srgb, var(--ai-sky) 10%, #fff);
- color: var(--ai-text-2);
- font-size: 0.74rem;
+.ai-route-card__eta {
+ flex-shrink: 0;
+ margin: 0;
+ padding: 0;
+ border: 0;
+ background: none;
+ color: var(--ai-action);
+ font-size: 0.9rem;
+ font-weight: 700;
+ line-height: 1.3;
+ white-space: nowrap;
+ text-align: right;
+}
+
+.ai-route-card__eta strong {
+ font-size: 1.05rem;
+ font-weight: 800;
+ letter-spacing: -0.02em;
+}
+
+.ai-route-card__eta.is-muted {
+ color: var(--ai-text-3);
font-weight: 600;
}
-.ai-route-card__terms b {
+.ai-route-card__meta {
+ display: flex;
+ flex-wrap: wrap;
+ align-items: baseline;
+ gap: 4px 6px;
+ margin: 0;
+ font-size: 0.84rem;
+ font-weight: 600;
+ line-height: 1.4;
+ color: var(--ai-text-2);
+}
+
+.ai-route-card__meta-sep {
+ color: var(--ai-text-3);
+ font-weight: 500;
+}
+
+.ai-route-card__meta-terms b {
color: var(--ai-action);
font-weight: 800;
}
+.ai-route-card__cargo {
+ margin: 0;
+ font-size: 0.76rem;
+ line-height: 1.35;
+ color: var(--ai-text-3);
+}
+
.ai-route-card__desc {
margin: 0;
- font-size: 0.82rem;
- line-height: 1.55;
- color: var(--ai-muted);
+ font-size: 0.8rem;
+ line-height: 1.45;
+ color: var(--ai-text-3);
display: -webkit-box;
- overflow: hidden;
- -webkit-box-orient: vertical;
-webkit-line-clamp: 2;
- line-clamp: 2;
+ -webkit-box-orient: vertical;
+ overflow: hidden;
}
.ai-route-card__desc.is-expanded {
display: block;
-webkit-line-clamp: unset;
- line-clamp: unset;
overflow: visible;
}
.ai-route-card__more {
align-self: flex-start;
- border: 0;
- background: transparent;
- color: var(--ai-action);
- font-size: 0.78rem;
- font-weight: 650;
+ margin: 0;
padding: 0;
+ border: 0;
+ background: none;
+ color: var(--ai-action);
+ font-size: 0.76rem;
+ font-weight: 650;
cursor: pointer;
}
.ai-route-card__actions {
display: flex;
flex-wrap: wrap;
+ align-items: center;
+ justify-content: flex-end;
gap: 8px;
- margin-top: 4px;
+ margin-top: auto;
+ padding-top: 4px;
+}
+
+.ai-route-card__ask {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ width: 28px;
+ height: 28px;
+ margin: 0;
+ padding: 0;
+ border: 0;
+ border-radius: 8px;
+ background: transparent;
+ color: var(--ai-text-3);
+ cursor: pointer;
+ transition: color 0.15s ease, background 0.15s ease;
+}
+
+.ai-route-card__ask svg {
+ display: block;
+ width: 16px;
+ height: 16px;
+}
+
+.ai-route-card__ask:hover {
+ color: var(--ai-action);
+ background: color-mix(in srgb, var(--ai-action) 8%, transparent);
}
-.ai-route-card__ask,
-.ai-route-card__reg,
.ai-routes-retry {
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 34px;
- padding: 0 12px;
+ padding: 0 14px;
border-radius: 10px;
- font-size: 0.82rem;
+ border: 0;
+ background: var(--ai-action);
+ color: #fff;
+ font-size: 0.84rem;
font-weight: 700;
+ cursor: pointer;
+}
+
+.ai-routes-retry:hover {
+ filter: brightness(1.06);
+}
+
+.ai-route-card__reg,
+.ai-routes-ghost {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ min-height: 28px;
+ padding: 0 2px;
+ border: 0;
+ background: none;
+ color: var(--ai-text-3);
+ font-size: 0.78rem;
+ font-weight: 600;
text-decoration: none;
cursor: pointer;
}
-.ai-route-card__ask,
-.ai-routes-retry {
- border: 1px solid transparent;
- background: var(--ai-action);
- color: #fff;
-}
-
-.ai-route-card__ask:hover,
-.ai-routes-retry:hover {
- background: var(--ai-action-hover);
-}
-
-.ai-route-card__reg {
- border: 1px solid rgba(255, 255, 255, 0.72);
- background: rgba(255, 255, 255, 0.42);
- color: var(--ai-text-2);
-}
-
-.ai-route-card__reg:hover {
+.ai-route-card__reg:hover,
+.ai-routes-ghost:hover {
color: var(--ai-action);
- border-color: rgba(255, 255, 255, 0.92);
+ text-decoration: underline;
}
.ai-routes-state {
- display: grid;
- gap: 10px;
- justify-items: center;
- padding: 28px 12px;
- text-align: center;
grid-column: 1 / -1;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ gap: 10px;
+ min-height: 220px;
+ padding: 24px 16px;
+ text-align: center;
+}
+
+.ai-routes-state__title {
+ margin: 0;
+ font-size: 1rem;
+ font-weight: 750;
+ color: var(--ai-ink);
}
.ai-routes-state__text {
margin: 0;
+ max-width: 36ch;
+ font-size: 0.86rem;
+ line-height: 1.45;
color: var(--ai-text-3);
- font-size: 0.9rem;
+}
+
+.ai-routes-state__actions {
+ display: flex;
+ flex-wrap: wrap;
+ justify-content: center;
+ gap: 10px 14px;
+ margin-top: 4px;
+}
+
+.ai-routes-more {
+ grid-column: 1 / -1;
+ display: flex;
+ justify-content: center;
+ padding: 4px 0 8px;
+}
+
+.ai-routes-more__btn {
+ min-height: 36px;
+ padding: 0 18px;
+ border-radius: 999px;
+ border: 1px solid color-mix(in srgb, var(--ai-action) 30%, #fff);
+ background: color-mix(in srgb, var(--ai-action) 8%, #fff);
+ color: var(--ai-action);
+ font-size: 0.84rem;
+ font-weight: 700;
+ cursor: pointer;
+}
+
+.ai-routes-more__btn:hover {
+ background: color-mix(in srgb, var(--ai-action) 14%, #fff);
}
.ai-routes-skeleton {
- width: 100%;
- height: 96px;
- border-radius: 16px;
+ width: min(100%, 420px);
+ height: 72px;
+ border-radius: 14px;
background: linear-gradient(
90deg,
- color-mix(in srgb, var(--ai-border) 40%, #fff) 0%,
+ color-mix(in srgb, var(--ai-border) 35%, #fff) 0%,
color-mix(in srgb, var(--ai-border) 18%, #fff) 50%,
- color-mix(in srgb, var(--ai-border) 40%, #fff) 100%
+ color-mix(in srgb, var(--ai-border) 35%, #fff) 100%
);
background-size: 200% 100%;
- animation: aiRoutesShimmer 1.2s ease-in-out infinite;
+ animation: ai-routes-shimmer 1.2s ease-in-out infinite;
}
-@keyframes aiRoutesShimmer {
- from {
+@keyframes ai-routes-shimmer {
+ 0% {
background-position: 100% 0;
}
- to {
+ 100% {
background-position: -100% 0;
}
}
@@ -1801,9 +2387,12 @@ body.command-home .ai-stage-map--eu {
position: relative;
display: flex;
flex-direction: column;
- align-items: center;
+ align-items: stretch;
+ width: 100%;
+ max-width: var(--ai-content-max);
+ margin-inline: auto;
gap: 2px;
- padding: 0 8px 12px;
+ padding: 0 0 12px;
isolation: isolate;
}
@@ -1814,14 +2403,44 @@ body.command-home .ai-stage-map--eu {
display: none;
}
+body.command-home #navbar .site-nav-avatar,
+body.command-home #navbar .site-nav-avatar:visited {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ width: 32px;
+ height: 32px;
+ padding: 0;
+ overflow: hidden;
+ border-radius: 50%;
+ border: 1px solid var(--ai-glass-border);
+ background: var(--ai-glass-fill);
+ box-shadow: var(--ai-glass-shadow);
+ text-decoration: none;
+}
+
+body.command-home #navbar .site-nav-avatar img {
+ width: 32px;
+ height: 32px;
+ object-fit: cover;
+ display: block;
+}
+
+body.command-home #navbar .site-nav-avatar:hover {
+ border-color: rgba(255, 255, 255, 0.94);
+ box-shadow: var(--ai-glass-shadow);
+}
+
.ai-welcome__stack {
position: relative;
z-index: 2;
display: flex;
flex-direction: column;
- gap: 22px;
- width: min(900px, 94vw);
- margin-top: -64px;
+ gap: 16px;
+ width: 100%;
+ max-width: var(--ai-content-max);
+ margin-inline: auto;
+ margin-top: -48px;
border: none;
border-radius: 0;
background: transparent;
@@ -1850,7 +2469,6 @@ body.command-home .ai-stage-map--eu {
}
.ai-welcome-title {
- display: block;
width: auto;
max-width: 100%;
margin: 0 auto 14px;
@@ -1858,11 +2476,19 @@ body.command-home .ai-stage-map--eu {
font-weight: 800;
letter-spacing: -0.03em;
line-height: 1.22;
- white-space: normal;
+ white-space: nowrap;
text-align: center;
color: var(--kc-primary, #054f74);
}
+.ai-welcome-title__dot {
+ display: inline-block;
+ font-size: inherit;
+ font-weight: inherit;
+ line-height: 0;
+ transform: translateY(-0.28em);
+}
+
.ai-welcome-sub {
margin: 0 auto 0;
max-width: none;
@@ -2028,17 +2654,17 @@ body.command-home .ai-stage-map--eu {
display: flex;
justify-content: center;
width: 100%;
- margin: -18px 0 -8px;
+ margin: -8px 0 -12px;
pointer-events: none;
}
.ai-welcome-plane img {
position: relative;
z-index: 2;
- width: min(820px, 96vw);
+ width: min(680px, 58vw);
height: auto;
display: block;
- filter: drop-shadow(0 18px 42px rgba(var(--ai-sky-rgb), 0.14));
+ filter: drop-shadow(0 16px 36px rgba(var(--ai-sky-rgb), 0.13));
transform-origin: 50% 60%;
animation: aiPlaneIn 2.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@@ -2062,7 +2688,10 @@ body.command-home .ai-stage-map--eu {
flex-shrink: 0;
}
-.ai-welcome-cta {
+body.command-home a.ai-welcome-cta,
+body.command-home a.ai-welcome-cta:visited,
+body.command-home a.ai-welcome-cta:hover,
+body.command-home a.ai-welcome-cta:focus {
display: inline-flex;
align-items: center;
justify-content: center;
@@ -2084,7 +2713,8 @@ body.command-home .ai-stage-map--eu {
box-shadow 0.2s var(--ai-ease);
}
-.ai-welcome-cta:hover {
+body.command-home a.ai-welcome-cta:hover,
+body.command-home a.ai-welcome-cta:focus {
background: var(--ai-action-hover);
color: #fff;
transform: translateY(-1px);
@@ -2112,6 +2742,7 @@ body.command-home .ai-stage-map--eu {
align-items: center;
justify-content: flex-start;
flex: 1;
+ width: 100%;
gap: 0;
margin: 0;
padding: 0;
@@ -2238,7 +2869,7 @@ body.command-home .ai-stage-map--eu {
align-items: center;
gap: 2px;
min-width: 0;
- padding: 0 8px;
+ padding: 0 10px;
text-align: center;
}
@@ -2271,19 +2902,17 @@ body.command-home .ai-stage-map--eu {
.ai-intent-grid {
display: grid;
- grid-template-columns: 1.18fr 1fr 1fr;
- grid-template-rows: auto auto;
- gap: 8px;
+ grid-template-columns: repeat(3, minmax(0, 1fr));
+ grid-template-rows: auto;
+ gap: 10px;
}
.ai-intent-door.is-primary {
- grid-row: 1 / span 2;
- grid-column: 1;
- flex-direction: column;
+ flex-direction: row;
align-items: flex-start;
- gap: 10px;
- min-height: 156px;
- padding: 18px 16px;
+ gap: 12px;
+ min-height: 0;
+ padding: 16px 14px;
}
.ai-intent-door.is-primary .ai-intent-door__icon {
@@ -2304,26 +2933,6 @@ body.command-home .ai-stage-map--eu {
font-size: 0.82rem;
}
-.ai-intent-door:nth-child(2) {
- grid-column: 2;
- grid-row: 1;
-}
-
-.ai-intent-door:nth-child(3) {
- grid-column: 3;
- grid-row: 1;
-}
-
-.ai-intent-door:nth-child(4) {
- grid-column: 2;
- grid-row: 2;
-}
-
-.ai-intent-door:nth-child(5) {
- grid-column: 3;
- grid-row: 2;
-}
-
.ai-cover-chip {
display: inline-flex;
align-items: center;
@@ -2455,6 +3064,11 @@ body.command-home .ai-stage-map--eu {
color: var(--ai-ink);
}
+.ai-intent-door__icon .si {
+ width: 22px;
+ height: 22px;
+}
+
.ai-intent-door__copy {
min-width: 0;
display: flex;
@@ -2488,16 +3102,13 @@ body.command-home .ai-stage-map--eu {
.ai-partner-marquee__tag {
flex-shrink: 0;
- padding: 6px 10px;
- border-radius: 999px;
- border: 1px solid color-mix(in srgb, var(--ai-sky) 22%, rgba(255, 255, 255, 0.72));
- background: color-mix(in srgb, var(--ai-sky-soft) 75%, rgba(255, 255, 255, 0.4));
- backdrop-filter: blur(20px) saturate(160%);
- -webkit-backdrop-filter: blur(20px) saturate(160%);
- font-size: 0.72rem;
- font-weight: 700;
- letter-spacing: 0.04em;
- color: var(--ai-action);
+ padding: 0;
+ border: 0;
+ background: none;
+ font-size: 0.9rem;
+ font-weight: 500;
+ letter-spacing: 0;
+ color: var(--ai-text-3);
white-space: nowrap;
}
@@ -2506,22 +3117,44 @@ body.command-home .ai-stage-map--eu {
flex: 1;
min-width: 0;
overflow: hidden;
- mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
- -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
+ cursor: grab;
+ touch-action: pan-y;
+ user-select: none;
+ -webkit-user-select: none;
+ mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent);
+ -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent);
+}
+
+.ai-partner-marquee__viewport.is-dragging {
+ cursor: grabbing;
+}
+
+.ai-partner-marquee__viewport.is-static {
+ cursor: default;
+ overflow: visible;
+ mask-image: none;
+ -webkit-mask-image: none;
}
.ai-partner-marquee__track {
display: flex;
align-items: center;
- gap: 10px;
width: max-content;
- padding: 2px 0;
- animation: aiPartnerScroll 36s linear infinite;
+ will-change: transform;
+ backface-visibility: hidden;
}
-.ai-partner-marquee:hover .ai-partner-marquee__track,
-.ai-partner-marquee:focus-within .ai-partner-marquee__track {
- animation-play-state: paused;
+.ai-partner-marquee__gap {
+ flex-shrink: 0;
+ height: 1px;
+}
+
+.ai-partner-marquee__strip {
+ display: flex;
+ flex-wrap: nowrap;
+ align-items: center;
+ gap: 10px;
+ flex-shrink: 0;
}
.ai-partner-chip {
@@ -2532,20 +3165,20 @@ body.command-home .ai-stage-map--eu {
min-height: 34px;
padding: 0 14px 0 12px;
border-radius: 999px;
- border: 1px solid rgba(255, 255, 255, 0.72);
- background: var(--ai-acrylic-bg);
- backdrop-filter: blur(20px) saturate(160%);
- -webkit-backdrop-filter: blur(20px) saturate(160%);
+ border: 1px solid rgba(18, 24, 32, 0.08);
+ background: color-mix(in srgb, #fff 86%, var(--ai-bg));
color: var(--ai-text);
font-size: 0.82rem;
font-weight: 700;
letter-spacing: 0.01em;
white-space: nowrap;
- cursor: pointer;
+ cursor: inherit;
transition:
- border-color 0.2s var(--ai-ease),
- background 0.2s var(--ai-ease),
- color 0.2s var(--ai-ease);
+ border-color 0.22s var(--ai-ease),
+ background 0.22s var(--ai-ease),
+ color 0.22s var(--ai-ease),
+ transform 0.22s var(--ai-ease),
+ box-shadow 0.22s var(--ai-ease);
}
.ai-partner-chip__logo {
@@ -2553,7 +3186,9 @@ body.command-home .ai-stage-map--eu {
height: 15px;
flex-shrink: 0;
display: block;
- object-fit: contain;
+ background-repeat: no-repeat;
+ background-position: center;
+ background-size: contain;
}
.ai-partner-chip__label {
@@ -2567,10 +3202,17 @@ body.command-home .ai-stage-map--eu {
.ai-partner-chip:hover,
.ai-partner-chip:focus-visible {
- border-color: rgba(255, 255, 255, 0.92);
- background: rgba(255, 255, 255, 0.44);
+ border-color: color-mix(in srgb, var(--ai-action) 22%, rgba(18, 24, 32, 0.08));
+ background: #fff;
color: var(--ai-action);
outline: none;
+ transform: translateY(-1px);
+ box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
+}
+
+.ai-partner-marquee__viewport.is-dragging .ai-partner-chip:hover {
+ transform: none;
+ box-shadow: none;
}
.ai-partner-chip:disabled {
@@ -2578,27 +3220,22 @@ body.command-home .ai-stage-map--eu {
cursor: not-allowed;
}
-@keyframes aiPartnerScroll {
- from {
- transform: translate3d(0, 0, 0);
- }
- to {
- transform: translate3d(-50%, 0, 0);
- }
-}
-
@media (prefers-reduced-motion: reduce) {
.ai-partner-marquee__track {
- animation: none;
- flex-wrap: wrap;
+ transform: none !important;
width: auto;
max-width: 100%;
}
+ .ai-partner-marquee__strip {
+ flex-wrap: wrap;
+ }
+
.ai-partner-marquee__viewport {
+ overflow: visible;
+ cursor: default;
mask-image: none;
-webkit-mask-image: none;
- overflow: visible;
}
}
@@ -2607,6 +3244,9 @@ body.command-home .ai-stage-map--eu {
display: none;
flex-direction: column;
gap: 18px;
+ width: 100%;
+ max-width: min(840px, 100%);
+ margin-inline: auto;
padding: 20px 0 12px;
}
@@ -2941,19 +3581,65 @@ body.command-home .ai-stage-map--eu {
cursor: not-allowed;
}
+.ai-followup-chip--routes {
+ color: #fff;
+ border-color: var(--ai-action);
+ background: var(--ai-action);
+}
+
+.ai-followup-chip--routes:hover {
+ color: #fff;
+ filter: brightness(1.06);
+ background: var(--ai-action);
+}
+
.ai-welcome-compose {
margin: 0;
padding: 2px 2px 4px;
}
.ai-welcome-compose__lead {
+ margin: 0 0 10px;
+ padding: 0 4px;
+ font-size: 0.9rem;
+ font-weight: 600;
+ letter-spacing: 0;
+ text-align: left;
+ text-transform: none;
+ color: var(--ai-text-2);
+}
+
+.ai-home-dests {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 8px;
+ margin: 0 0 8px;
+ padding: 0 2px;
+}
+
+.ai-home-dest {
+ min-height: 34px;
+ padding: 0 14px;
+ border-radius: 999px;
+ border: 1px solid var(--ai-border-soft);
+ background: color-mix(in srgb, #fff 78%, var(--ai-bg));
+ color: var(--ai-text-2);
+ font-size: 0.86rem;
+ font-weight: 650;
+ cursor: pointer;
+}
+
+.ai-home-dest:hover {
+ color: var(--ai-action);
+ border-color: color-mix(in srgb, var(--ai-action) 28%, #fff);
+ background: #fff;
+}
+
+.ai-home-price-hint {
margin: 0 0 12px;
padding: 0 4px;
- font-size: 0.68rem;
- font-weight: 700;
- letter-spacing: 0.14em;
- text-align: left;
- text-transform: uppercase;
+ font-size: 0.8rem;
+ line-height: 1.45;
color: var(--ai-text-3);
}
@@ -3055,6 +3741,9 @@ body.command-home .ai-stage-map--eu {
}
.ai-composer-wrap.is-docked {
+ width: 100%;
+ max-width: min(840px, 100%);
+ margin-inline: auto;
padding: 10px 0 0;
border-top: none;
background-image: var(--ai-hairline);
@@ -3190,7 +3879,7 @@ body.command-home .ai-stage-map--eu {
.ai-trust-bar {
display: grid;
- grid-template-columns: minmax(0, 1fr) minmax(0, calc(var(--ai-content-max) - 40px)) minmax(0, 1fr);
+ grid-template-columns: minmax(0, 1fr) auto;
align-items: center;
column-gap: 16px;
width: 100vw;
@@ -3204,8 +3893,7 @@ body.command-home .ai-stage-map--eu {
font-size: 0.72rem;
}
-.ai-trust-bar a,
-.ai-trust-wechat {
+.ai-trust-bar a {
display: inline-flex;
align-items: center;
gap: 6px;
@@ -3215,37 +3903,27 @@ body.command-home .ai-stage-map--eu {
}
.ai-trust-bar a i,
-.ai-trust-wechat i {
+.ai-trust-bar a .ai-trust-glyph {
+ width: 1em;
+ height: 1em;
+ overflow: visible;
font-size: 0.92rem;
line-height: 1;
color: var(--ai-action);
flex-shrink: 0;
}
-.ai-trust-bar a:hover,
-.ai-trust-wechat:hover {
+.ai-trust-bar a:hover {
color: var(--ai-text);
}
.ai-trust-bar a:hover i,
-.ai-trust-wechat:hover i {
+.ai-trust-bar a:hover .ai-trust-glyph {
color: var(--ai-action);
}
-.ai-trust-wechat {
- grid-column: 1;
- justify-self: start;
- margin: 0;
- padding: 0;
- border: none;
- background: none;
- font: inherit;
- cursor: pointer;
- white-space: nowrap;
-}
-
.ai-trust-bar .ai-partner-marquee {
- grid-column: 2;
+ grid-column: 1;
width: 100%;
max-width: 100%;
min-width: 0;
@@ -3253,7 +3931,7 @@ body.command-home .ai-stage-map--eu {
}
.ai-trust-icp {
- grid-column: 3;
+ grid-column: 2;
justify-self: end;
white-space: nowrap;
}
@@ -3264,13 +3942,13 @@ body.command-home .ai-stage-map--eu {
}
.ai-welcome-plane {
- margin-top: -28px;
- margin-bottom: -12px;
+ margin-top: -12px;
+ margin-bottom: -16px;
}
.ai-welcome__stack {
- margin-top: -76px;
- gap: 16px;
+ margin-top: -40px;
+ gap: 12px;
}
.ai-welcome__deck {
@@ -3297,9 +3975,6 @@ body.command-home .ai-stage-map--eu {
font-size: 0.76rem;
}
- .ai-partner-marquee__track {
- animation-duration: 42s;
- }
}
@media (max-width: 860px) {
@@ -3374,7 +4049,7 @@ body.command-home .ai-stage-map--eu {
}
.ai-welcome-plane img {
- width: min(620px, 96vw);
+ width: min(520px, 78vw);
}
}
@@ -3405,7 +4080,6 @@ body.command-home .ai-stage-map--eu {
}
.ai-routes-panel {
- width: 100vw;
padding: 16px 14px 12px;
}
@@ -3414,13 +4088,7 @@ body.command-home .ai-stage-map--eu {
}
.ai-route-card {
- grid-template-columns: 68px minmax(0, 1fr);
- gap: 10px;
- padding: 12px;
- }
-
- .ai-route-card__eta strong {
- font-size: 1.15rem;
+ padding: 12px 14px;
}
.ai-welcome {
@@ -3466,7 +4134,7 @@ body.command-home .ai-stage-map--eu {
}
.ai-welcome__stack {
- margin-top: -48px;
+ margin-top: -20px;
}
.ai-partner-marquee {
@@ -3653,3 +4321,38 @@ button.ai-card-link {
font: inherit;
cursor: pointer;
}
+
+/* Paint budget: glass/blur over the globe is what makes drawers and refresh hitch. */
+body.command-home,
+body.command-home * {
+ backdrop-filter: none !important;
+ -webkit-backdrop-filter: none !important;
+}
+
+body.command-home .ai-intent-door::before,
+body.command-home .ai-intent-door::after {
+ display: none;
+}
+
+body.command-home .ai-globe-map__marker-ripple {
+ animation: none;
+ display: none;
+}
+
+body.command-home .ai-welcome-plane img {
+ filter: none;
+}
+
+body.command-home .ai-history-sidebar {
+ background: #fff;
+}
+
+body.command-home .ai-history-backdrop {
+ background: rgba(18, 24, 32, 0.28);
+}
+
+#ai-advisor-shell.ai-history-open .ai-stage-maps,
+#ai-advisor-shell.ai-history-open .ai-welcome-plane {
+ visibility: hidden;
+ pointer-events: none;
+}
diff --git a/src/views/site/styles/icons.css b/src/views/site/styles/icons.css
new file mode 100644
index 0000000..f315aad
--- /dev/null
+++ b/src/views/site/styles/icons.css
@@ -0,0 +1,21 @@
+.si {
+ display: inline-block;
+ width: 1em;
+ height: 1em;
+ flex-shrink: 0;
+ vertical-align: -0.125em;
+ background-color: currentColor;
+ -webkit-mask: var(--si) center / contain no-repeat;
+ mask: var(--si) center / contain no-repeat;
+}
+
+.si-list { --si: url("data:image/svg+xml,"); }
+.si-x { --si: url("data:image/svg+xml,"); }
+.si-x-lg { --si: url("data:image/svg+xml,"); }
+.si-translate { --si: url("data:image/svg+xml,"); }
+.si-clock-history { --si: url("data:image/svg+xml,"); }
+.si-plus-lg { --si: url("data:image/svg+xml,"); }
+.si-send-fill { --si: url("data:image/svg+xml,"); }
+.si-search { --si: url("data:image/svg+xml,"); }
+.si-chat { --si: url("data:image/svg+xml,"); }
+.si-truck { --si: url("data:image/svg+xml,"); }
diff --git a/src/views/site/styles/main.css b/src/views/site/styles/main.css
new file mode 100644
index 0000000..aaeb594
--- /dev/null
+++ b/src/views/site/styles/main.css
@@ -0,0 +1,254 @@
+:root {
+ --kc-brand: #054f74;
+ --kc-brand-hover: #054b6e;
+ --kc-brand-rgb: 5, 79, 116;
+ --kc-brand-soft: #e0edf2;
+ --kc-primary: #054f74;
+ --kc-primary-rgb: 5, 79, 116;
+ --kc-secondary: #3d6678;
+ --kc-tertiary: #054f74;
+ --kc-tertiary-rgb: 5, 79, 116;
+ --kc-page-bg: #f0f3f4;
+ --kc-neutral: #faf8f6;
+ --kc-surface: #ffffff;
+ --kc-border: #e0d9cc;
+ --kc-border-soft: #ebe4d8;
+ --kc-text: #1a2e38;
+ --kc-text-muted: #4a6270;
+ --kc-on-primary: #ffffff;
+ --kc-radius-sm: 10px;
+ --kc-radius-md: 20px;
+ --kc-radius-lg: 32px;
+ --font-default: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
+ 'Microsoft YaHei', Inter, Roboto, 'Helvetica Neue', Arial, sans-serif;
+ --font-primary: var(--font-default);
+ --font-secondary: var(--font-default);
+ --color-default: var(--kc-primary);
+ --color-primary: var(--kc-primary);
+ --color-secondary: var(--kc-secondary);
+}
+
+body.command-home {
+ background: var(--kc-page-bg);
+ color: var(--kc-text);
+ font-family: var(--font-default);
+ font-size: 1.05rem;
+ line-height: 1.55;
+}
+
+body.command-home a {
+ text-decoration: none;
+}
+
+html.command-home,
+body.command-home {
+ overflow-x: hidden;
+}
+
+.header {
+ z-index: 997;
+ padding: 30px 0;
+}
+
+.header .logo img {
+ max-height: 78px;
+ margin-right: 8px;
+}
+
+.header .logo h1 {
+ margin: 0;
+ color: var(--kc-primary);
+ font-family: var(--font-primary);
+ font-size: 2.55rem;
+ font-weight: 700;
+ letter-spacing: -0.02em;
+}
+
+.brand-lockup {
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ line-height: 1.05;
+}
+
+.brand-lockup h1 {
+ margin: 0;
+ color: var(--kc-primary);
+ font-family: var(--font-primary);
+ font-size: 2.15rem;
+ font-weight: 700;
+ letter-spacing: -0.02em;
+}
+
+.brand-lockup .brand-fullname {
+ margin-top: 2px;
+ color: var(--kc-secondary);
+ font-size: 0.68rem;
+ font-weight: 500;
+ letter-spacing: 0.04em;
+ opacity: 0.85;
+ white-space: nowrap;
+}
+
+@media (max-width: 991px) {
+ .brand-lockup .brand-fullname {
+ display: none;
+ }
+}
+
+@media (min-width: 1280px) {
+ .navbar {
+ padding: 0;
+ }
+
+ .navbar ul {
+ display: flex;
+ align-items: center;
+ margin: 0;
+ padding: 0;
+ list-style: none;
+ }
+
+ .navbar li {
+ position: relative;
+ }
+
+ .navbar a,
+ .navbar a:focus {
+ display: flex;
+ align-items: center;
+ padding: 10px 0 10px 22px;
+ color: var(--kc-secondary);
+ font-family: var(--font-primary);
+ font-size: 1.05rem;
+ font-weight: 600;
+ white-space: nowrap;
+ transition: 0.3s;
+ }
+
+ .navbar a:hover,
+ .navbar .active,
+ .navbar .active:focus,
+ .navbar li:hover > a {
+ color: var(--kc-primary);
+ }
+
+ .mobile-nav-show,
+ .mobile-nav-hide {
+ display: none;
+ }
+}
+
+@media (max-width: 1279px) {
+ .navbar {
+ position: fixed;
+ top: 0;
+ right: -100%;
+ bottom: 0;
+ z-index: 9997;
+ width: 100%;
+ max-width: 400px;
+ transition: 0.3s;
+ }
+
+ .navbar ul {
+ position: absolute;
+ inset: 0;
+ z-index: 9998;
+ margin: 0;
+ padding: 50px 0 10px;
+ overflow-y: auto;
+ background: var(--kc-primary);
+ border-top-left-radius: var(--kc-radius-lg);
+ border-bottom-left-radius: var(--kc-radius-lg);
+ transition: 0.3s;
+ }
+
+ .navbar a,
+ .navbar a:focus {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding: 12px 20px;
+ color: rgba(255, 255, 255, 0.7);
+ font-family: var(--font-primary);
+ font-size: 16px;
+ font-weight: 500;
+ white-space: nowrap;
+ }
+
+ .navbar a:hover,
+ .navbar .active,
+ .navbar .active:focus,
+ .navbar li:hover > a {
+ color: #fff;
+ }
+
+ .mobile-nav-show {
+ z-index: 9999;
+ margin-right: 10px;
+ color: #fff;
+ font-size: 28px;
+ line-height: 0;
+ cursor: pointer;
+ }
+
+ .mobile-nav-hide {
+ position: fixed;
+ top: 20px;
+ right: 20px;
+ z-index: 9999;
+ color: #fff;
+ font-size: 32px;
+ line-height: 0;
+ cursor: pointer;
+ }
+
+ .mobile-nav-active {
+ overflow: hidden;
+ }
+
+ .mobile-nav-active .navbar {
+ right: 0;
+ }
+
+ .mobile-nav-active .navbar:before {
+ content: '';
+ position: fixed;
+ inset: 0;
+ z-index: 9996;
+ background: rgba(14, 29, 52, 0.8);
+ }
+}
+
+.language-toggle-link,
+.language-toggle-link:focus {
+ display: inline-flex;
+ align-items: center;
+ justify-content: flex-start;
+ gap: 5px;
+ width: auto;
+ height: 36px;
+ margin-left: 14px;
+ padding: 0 4px 0 0;
+ border: none;
+ border-radius: 8px;
+ background: transparent;
+ color: var(--kc-text-muted);
+ font-size: 1rem;
+ font-weight: 400;
+ cursor: pointer;
+}
+
+.language-toggle-link .language-toggle-icon {
+ flex-shrink: 0;
+ width: 1em;
+ height: 1em;
+ font-size: 1.05rem;
+ line-height: 1;
+}
+
+.language-toggle-link:hover {
+ background: color-mix(in srgb, var(--kc-brand) 8%, var(--kc-surface));
+ color: var(--kc-primary);
+}
diff --git a/src/views/site/styles/vendor.css b/src/views/site/styles/vendor.css
new file mode 100644
index 0000000..d0c0b5e
--- /dev/null
+++ b/src/views/site/styles/vendor.css
@@ -0,0 +1,30 @@
+.d-flex {
+ display: flex;
+}
+.d-none {
+ display: none !important;
+}
+.align-items-center {
+ align-items: center;
+}
+.justify-content-between {
+ justify-content: space-between;
+}
+.fixed-top {
+ position: fixed;
+ top: 0;
+ right: 0;
+ left: 0;
+ z-index: 1030;
+}
+.container-fluid {
+ width: 100%;
+ padding-right: 12px;
+ padding-left: 12px;
+}
+.container-xl {
+ width: 100%;
+ max-width: 1140px;
+ margin-right: auto;
+ margin-left: auto;
+}
diff --git a/src/views/site/useSiteAdvisor.ts b/src/views/site/useSiteAdvisor.ts
new file mode 100644
index 0000000..9e110ff
--- /dev/null
+++ b/src/views/site/useSiteAdvisor.ts
@@ -0,0 +1,173 @@
+import { computed, nextTick, onBeforeUnmount, ref, type Ref } from 'vue';
+import { buildReply, SITE_NAV_TOPICS, type SiteAskExtra, type SiteFlow } from './lib/site-reply';
+import {
+ deriveThreadTitle,
+ emptyThread,
+ loadStoredThreads,
+ persistThreads,
+ type SiteChatMessage,
+ type SiteChatThread,
+} from './lib/site-threads';
+import { SITE_INTENTS, WELCOME_COPY } from './lib/site-welcome';
+
+export function useSiteAdvisor(opts: {
+ lang: Ref<'zh' | 'en'>;
+ openServices: () => void;
+ focusComposer: () => void;
+}) {
+ const isZh = computed(() => opts.lang.value === 'zh');
+ const copy = computed(() => (isZh.value ? WELCOME_COPY.zh : WELCOME_COPY.en));
+ const messages = ref([]);
+ const threads = ref([]);
+ const activeThreadId = ref('');
+ const busy = ref(false);
+ const typing = ref(false);
+ const showNewChatTip = ref(false);
+ const routesPending = ref(false);
+ const chatting = computed(() => messages.value.some((m) => m.role === 'user'));
+ const historyThreads = computed(() => [...threads.value].sort((a, b) => b.updatedAt - a.updatedAt));
+ let flow: SiteFlow = null;
+ let tipTimer: number | null = null;
+ let replyTimer: number | null = null;
+
+ function hideTip() {
+ showNewChatTip.value = false;
+ if (tipTimer) {
+ window.clearTimeout(tipTimer);
+ tipTimer = null;
+ }
+ }
+
+ function showTip() {
+ hideTip();
+ showNewChatTip.value = true;
+ tipTimer = window.setTimeout(() => hideTip(), 4200);
+ }
+
+ function activeThread() {
+ return threads.value.find((thread) => thread.id === activeThreadId.value) || null;
+ }
+
+ function save() {
+ const thread = activeThread();
+ if (thread) {
+ thread.messages = messages.value.map((msg) => ({ ...msg }));
+ thread.flow = flow ? { ...flow, data: { ...(flow.data || {}) } } : null;
+ thread.updatedAt = Date.now();
+ if (thread.messages.some((m) => m.role === 'user')) {
+ thread.title = deriveThreadTitle(thread.messages, isZh.value);
+ }
+ }
+ persistThreads(threads.value, activeThreadId.value);
+ }
+
+ function applyThread(thread: SiteChatThread | null) {
+ messages.value = thread?.messages ? thread.messages.map((msg) => ({ ...msg })) : [];
+ flow = thread?.flow ? { ...thread.flow, data: { ...(thread.flow.data || {}) } } : null;
+ }
+
+ function load() {
+ const stored = loadStoredThreads(isZh.value);
+ threads.value = stored.threads;
+ activeThreadId.value = stored.activeThreadId;
+ applyThread(activeThread());
+ }
+
+ function ask(text: string, extra?: SiteAskExtra & { fromRoutes?: boolean }) {
+ const trimmed = String(text || '').trim();
+ if (!trimmed || busy.value) return;
+ hideTip();
+ if (extra?.fromRoutes) routesPending.value = true;
+ messages.value = [...messages.value, { role: 'user', text: trimmed, card: null }];
+ save();
+ busy.value = true;
+ typing.value = true;
+ const replyPack = buildReply(trimmed, extra || null, opts.lang.value, flow);
+ flow = replyPack.flow;
+ replyTimer = window.setTimeout(() => {
+ typing.value = false;
+ messages.value = [...messages.value, { role: 'assistant', text: replyPack.reply.text, card: replyPack.reply.card }];
+ save();
+ busy.value = false;
+ if (replyPack.reply.openServices) opts.openServices();
+ void nextTick(() => opts.focusComposer());
+ }, 520 + Math.random() * 280);
+ }
+
+ function askIntent(id: string) {
+ const intent = SITE_INTENTS.find((item) => item.id === id);
+ if (!intent) return;
+ ask(isZh.value ? intent.zh.label : intent.en.label, { intentId: id });
+ }
+
+ function quoteTo(dest: string) {
+ if (!dest) return;
+ const label = isZh.value ? '发到' + dest : 'Ship to ' + dest;
+ ask(label, { intentId: 'quote', dest });
+ }
+
+ function openNavTopic(topic: string) {
+ const spec = SITE_NAV_TOPICS[topic];
+ if (!spec) return;
+ ask(isZh.value ? spec.label.zh : spec.label.en, { intentId: spec.intentId });
+ }
+
+ function startNewChat() {
+ if (busy.value) return;
+ routesPending.value = false;
+ save();
+ const current = activeThread();
+ if (current && current.messages.length === 0) {
+ showTip();
+ opts.focusComposer();
+ return;
+ }
+ const thread = emptyThread(isZh.value);
+ threads.value = [thread, ...threads.value];
+ activeThreadId.value = thread.id;
+ applyThread(thread);
+ save();
+ showTip();
+ opts.focusComposer();
+ }
+
+ function switchThread(id: string) {
+ if (busy.value || id === activeThreadId.value) return;
+ hideTip();
+ save();
+ activeThreadId.value = id;
+ applyThread(activeThread());
+ persistThreads(threads.value, activeThreadId.value);
+ }
+
+ function clearRoutesPending() {
+ routesPending.value = false;
+ }
+
+ load();
+
+ onBeforeUnmount(() => {
+ hideTip();
+ if (replyTimer) window.clearTimeout(replyTimer);
+ });
+
+ return {
+ copy,
+ messages,
+ threads: historyThreads,
+ activeThreadId,
+ busy,
+ typing,
+ chatting,
+ showNewChatTip,
+ routesPending,
+ ask,
+ askIntent,
+ quoteTo,
+ openNavTopic,
+ startNewChat,
+ switchThread,
+ clearRoutesPending,
+ hideTip,
+ };
+}
diff --git a/src/views/system/dataPerm/templates/index.vue b/src/views/system/dataPerm/templates/index.vue
index 92db468..2f7aa9c 100644
--- a/src/views/system/dataPerm/templates/index.vue
+++ b/src/views/system/dataPerm/templates/index.vue
@@ -27,7 +27,9 @@
@delete-node="handleDeleteNode"
>
- 内置
+ {{
+ t('system.dataPerm.templates.tag.builtin')
+ }}
@@ -39,7 +41,6 @@
:title="panelTitle"
:subtitle="isCreating ? '' : form.code"
:tags="templateTags"
- :stats="templateStats"
:tabs="templateTabs"
v-model:active-tab="activeTab"
:loading="detailLoading"
@@ -49,6 +50,28 @@